MarineRoboticsGroup / SwarmRobot

Documentation and code for The Thoroughbreds, the Marine Robotics Group's custom made robot swarm for range-based SLAM experiments.
4 stars 1 forks source link

USB device collision for USB to Serial Adapters #4

Open alanpapalia opened 3 years ago

alanpapalia commented 3 years ago

The USB to serial adapters used for the Lidar and the UWB cables are identical and as such any rules in /etc/udev/rules.d/ cannot specify the difference between the two of them. The suggested improvement is including a step in the startup procedure where the programmer from Silicon Labs is used to change the serial number of one of the devices so that they differ and the serial number can be used to specify the difference between devices. The procedure for how to do this is outlined in the comments in the link below:

https://askubuntu.com/questions/1039814/how-to-create-a-udev-rule-for-two-devices-with-the-same-manufacturer-id-product Note: this approach seems to require a windows environment

Other potentially relevant links: https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0 https://askubuntu.com/questions/49910/how-to-distinguish-between-identical-usb-to-serial-adapters https://forum.odroid.com/viewtopic.php?t=25006 https://www.silabs.com/community/interface/forum.topic.html/cp210x_not_workingo-5qdu https://electronics.stackexchange.com/questions/338883/identical-cp210x-usb-serial-converter-conflict

sophiafranklin commented 2 years ago

See "Guide to Configuring Indistinct USB_UART Conflicts.docx" in SwarmRobot/documentation for developed solution.

alanpapalia commented 2 years ago

When that's converted to Markdown we'll take a quick look over the docs and close the issue :)

great job!