-   Programming (
-   -   Obtaining USB handles dynamically (

Glemu 08-16-2005 10:08 AM

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?


mic 08-16-2005 01:55 PM

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 07:51 PM.