From: Johannes E. <joh...@er...> - 2003-04-03 19:10:01
|
On Wed, Apr 02, 2003, Manish Madan <mm...@no...> wrote: > I am planning to write routines to detect particulars of all > existing USB devices on a Linux system. This information is available in > /proc/bus/usb/devices file. And also /proc/bus/usb/BB/ddd files (where > BB are bus numbers and ddd are device numbers). I realise that it would > be more efficient to read and interpret the binary data in the ddd files > than write parsing routines for the usb/devices file. The only problem > is, I do not know how information is dumped into the binary "ddd" files. > For example, which two bytes hold the vendor id ? I couldn't find > documentation for this. Could anyone help please... Why don't you use libusb? It does this all for you. I assume that's why you're posting on this list. However, if you really want to know what the data is, look at the USB spec. It's the device descriptor. JE |