I have the following problem. Im developing an embedded system and I have two USB to UART devices (FT232). The problem is that I need to differentiate them because sometimes when booting one shows up as /dev/TTYUSB0 and others as /dev/TTYUSB1.
If I use libusb to read their info its exactly the same:
Bus 003 Device 028 ID 0403:6001 DeviceDescriptor { bLength: 18, bDescriptorType: 1, bcdUSB: 512, bDeviceClass: 0, bDeviceSubClass: 0, bDeviceProtocol: 0, bMaxPacketSize: 8, idVendor: 1027, idProduct: 24577, bcdDevice: 1536, iManufacturer: 1, iProduct: 2, iSerialNumber: 3, bNumConfigurations: 1 }
Bus 003 Device 027 ID 0403:6001 DeviceDescriptor { bLength: 18, bDescriptorType: 1, bcdUSB: 512, bDeviceClass: 0, bDeviceSubClass: 0, bDeviceProtocol: 0, bMaxPacketSize: 8, idVendor: 1027, idProduct: 24577, bcdDevice: 1536, iManufacturer: 1, iProduct: 2, iSerialNumber: 3, bNumConfigurations: 1 }
The only difference is that one is plugged to a different physical port in the hub, but as far as I know its impossible to access / talk the actual Hub to see what is connected where.
The only solution would be to talk to the hub (if its even possible) and see what tty is assigned to a device on an specific physical socket?
Thanks!