I am developing an embedded solution using C and I am working with two USB sensors. If I connect each sensor alone they take this names:
Device 1 (I do not know why it takes 6 names...)
- /dev/ttyACM0
- /dev/ttyACM1
- /dev/ttyACM2
- /dev/ttyACM3
- /dev/ttyACM4
- /dev/ttyACM5
- /dev/ttyACM6
Device 2
- /dev/ttyACM0
So when I start as an embedded system and both sensors are connected, the fastest one takes /dev/ACM0 but it not always the same. So, when I try to read device 2 I could be reading device 1...
I think that It would be great to change the default names of the sensors. I guess that it is going to be possible but I do not find anything.
biosdevname=1
for stable names. It may or may not work. The discussion is better taken on other sites in the Stack Exchange network, like Unix & Linux Stack Exchange. Also see Consistent Network Device Naming in Linux. – jww/dev/ttyACM0
instead of/dev/ACM0
, etc. – David Grayson