On Wed, 9 Aug 2006 [EMAIL PROTECTED] wrote:

> Hi,
> 
> I want to enumerate devices that I connect with USB. I've got two USB Host
> Controllers and I connect two USB hubs to the two USB Host Controllers.
> The first USB hub contains 7 USB ports and the second USB hub contains 4
> USB ports. In total, I can connect 11 USB devices to the hubs.
> 
> No I want to find out at what port my devices are connected. Suppose that
> I connect an USB device to the second port of the first USB hub. How can I
> write software that detects where the device is connected? My software
> should print out for example: "Mouse device detected at port 2 of the hub
> connected to Host Controller 1".
> 
> Normally I can get the data of what devices that are connected from
> /proc/bus/usb/devices, but here I only get information about the USB hubs,
> not the devices connected to the USB hubs. How can I access that data?

/proc/bus/usb/devices will contain information about every USB device the 
kernel is aware of.  If your devices don't show up, that means they aren't 
being enumerated correctly.

If you build a kernel with CONFIG_USB_DEBUG turned on, you'll get extra 
information in the dmesg log showing in detail what happens when you plug 
in a device.

Alan Stern


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to