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
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
--
Regards,
Rupesh Guajre
--
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