Devices on fixed USB ports
I have a problem with my USB port names.
In my system with a UP Squared board equipped with Ubilinux I use all the three USB. One of them is connected to a fixed device (i.e. a small webcam), while the other two are connected to a two devices. I call these two devices as DEV0 and DEV1, only for simplicity.
I would need that DEV0 is always connected to a port called /dev/ttyUSB0 and that DEV1 is always connected do /dev/ttyUSB1. The names can be different, of course, but they must not changed when the devices are off and the turn on again.
Up to now, my devices changed the name of the port where they are connected...
For instance, DEV0, now is connected to: /dev/serial/by-path/pci-0000:00:15.0-usb-0:3:1.0-port0 and DEV1 to /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI050EYN-if00-port0.
Why does it happen?
Futhremore I cannot associate device ID to a specific USB using the udev rules, since DEV0 and DEV1 can change for other system with the same configuration and I do not know "a-priori" the ID of DEV0 and DEV1...
Summarizing, in a few word I would like that DEV0 and DEV1 are always connected to /dev/ttyUSB0 and /dev/ttyUSB1 respectively whatever they are.
Could you help me to solve my problem?
Thanks in advance.
Eng. Silvano Bertoldo, PhD