Obtaining USB handles dynamically
I want to connect several “Serial to USB” converters to a target with a 2.4.19 Kernel. The number of devices may vary. Therefore, I need to locate the device names dynamically, in order to open the ports within my application.
Does anyone know a system call, that returns the device names for connected USB devices?
To identify a device you can use device IDs (and number of other IDs) and libusb. Check usb.h (not linux/usb.h) and the docs on libusb homepage for details. I don't know how to read name strings, but it should be possible.
|All times are GMT -5. The time now is 11:02 AM.|