Rupesh Gujare <rgujare@xxxxxxxxxxxxxxx> wrote on 2012/04/03 19:31:18: > > On 03/04/12 17:56, Joakim Tjernlund wrote: > > Rupesh Gujare<rgujare@xxxxxxxxxxxxxxx> wrote on 2012/04/03 17:09:50: > >> On 03/04/12 15:39, Joakim Tjernlund wrote: > >>> We are just starting to look into the USB protocol and so got a question. > >>> > >>> We will have an USB HOST with a builtin USB hub with many ports and we need to find out which > >>> physical port an device is attached to. Is this possible? Does Linux support retrieving > >>> this port information? > >>> > >>> Jocke > >>> > >>> -- > >>> To unsubscribe from this list: send the line "unsubscribe linux-usb" in > >>> the body of a message to majordomo@xxxxxxxxxxxxxxx > >>> More majordomo info at http://vger.kernel.org/majordomo-info.html > >>> > >> $sudo lsusb -v > >> $sudo lsusb -t > > Tried that but I don't quite get it. I can see > > Hub Port Status: > > Port 1: 0000.0100 power > > Port 2: 0000.0100 power > > Port 3: 0000.0100 power > > Port 4: 0000.0100 power > > Port 5: 0000.0303 lowspeed power enable connect > > Port 6: 0000.0100 power > > > > But I cannot match 0000.0303 to a device. Can you give me an example? > > > > Jocke > > > > > Did you tried $lsusb -t Yes, but mine look: lsusb -t Bus# 2 `-Dev# 1 Vendor 0x1d6b Product 0x0002 `-Dev# 2 Vendor 0x8087 Product 0x0024 Bus# 1 `-Dev# 1 Vendor 0x1d6b Product 0x0002 `-Dev# 2 Vendor 0x8087 Product 0x0024 `-Dev# 3 Vendor 0x03f0 Product 0x0024 > > Following is output when I connect USB mass storage drive on port 4. :- > > $ sudo lsusb -t > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M > |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M > |__ Port 4: Dev 5, If 0, Class=stor., Driver=usb-storage, 480M > hmm, wonder what the problem might be. I got: lsusb -V lsusb (usbutils) 004 Jocke -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html