jabberwok wrote:I have multiple USB devices in my PI, and when I reboot, sometimes their "dev" path changes - e.g. from /dev/ttyUSB0 to /dev/ttyUSB1.
Is there a way to control that so that the same USB device will always have the same dev path? Or is there another path somewhere else that I can consistently access the expected USB device?
Long story short, I use the PI as a serial server, so I ssh to it to connect to attached USB devices. Sometimes they shuffle on reboot which is confusing.
Are the devices always
plugged into the same USB ports on the Pi? For example USB sticks can end up with swapped /dev/sd?? entries if not (auto-)mounted by label or UUID if not physically plugged into the same ports and I'm wondering if the same applies to serial devices.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm