Skip to content

Commit

Permalink
Fix USB register on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
b1n-ch1kn committed Jan 10, 2024
1 parent 0866b04 commit c23da02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ x-volumes-roscube: &volumes-roscube
- ../../datasets:/home/${USERNAME}/driverless_ws/datasets
# /dev/shm is mounted in so that two foxy containers can talk to each other when using net=host, see: https://answers.ros.org/question/370595/ros2-foxy-nodes-cant-communicate-through-docker-container-border/
- /dev/shm:/dev/shm
- /dev/ttyUSB-sbg:/dev/ttyUSB-sbg
- /dev/sbg:/dev/sbg

x-volumes-jetson: &volumes-jetson
volumes:
Expand Down
9 changes: 8 additions & 1 deletion src/hardware/sensors/config/ellipse_D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
# Uart configuration
uartConf:
# Port Name
portName: "/dev/ttyUSB-sbg"
### IMPORTANT REQUIRES UDEV RULE TO BE CREATED
# sudo touch /etc/udev/rules.d/99-sbg_example.rules
# sudo nano /etc/udev/rules.d/99-sbg_example.rules
# SUBSYSTEMS=="usb", ATTRS{product}=="USB-RS232 Cable", ATTRS{serial}=="SERIAL_HERE", SYMLINK+="sbg"
### Find serial by walking through ttyUSBs
# udevadm info --name=/dev/ttyUSB0 --attribute-walk # replace with ttyUSB1... etc until you find the RS232

portName: "/dev/sbg"

# Baude rate (4800 ,9600 ,19200 ,38400 ,115200 [default],230400 ,460800 ,921600)
baudRate: 115200
Expand Down

0 comments on commit c23da02

Please sign in to comment.