Hello guys,
There was a similar topic but that is for i2c connected Arduinos.
My project is one raspberry pi and 2 USB connected Arduino Pro Micros.
These ones shown up as:
crw-rw---- 1 root dialout 166, 0 Feb 24 10:42 /dev/ttyACM0
crw-rw---- 1 root dialout 166, 1 Feb 24 10:40 /dev/ttyACM1
lsusb | grep -i spar
Bus 001 Device 002: ID 1b4f:9206 SparkFun SparkFun Pro Micro
Bus 003 Device 002: ID 1b4f:9206 SparkFun SparkFun Pro Micro
Now the problem is sometimes rebooting the raspberry the serial ports gets swapped ttyACM0 becomes 1 and vice versa. Is there any way to make this static?
As you see it even makes it more difficult that the two are exactly identical so even the device id is the same
I found a similar discussion here: tty - Assign static /dev/ttyACM[0-9] static - Unix & Linux Stack Exchange
Not really helpful. For example for me: /dev/serial/by-id/long-garbage
ls -al /dev/serial/by-id/
total 0
drwxr-xr-x 2 root root 60 Feb 24 10:21 .
drwxr-xr-x 4 root root 80 Feb 24 10:21 ..
lrwxrwxrwx 1 root root 13 Feb 24 10:21 usb-SparkFun_SparkFun_Pro_Micro-if00 -> ../../ttyACM0
Only one is showing up here while both works just fine