USB port properties

Is there any command that will show the capabilities of a particular USB port? Can I tell whether it supports USB 1,2 ,3 and what sort of throughput I can expect.

Also can I programmatically switch it off?
 
Code:
usbconfig list
gives you the basic speed setting.
I was trying to get details for a particular device using lsusb() using the '-s' option...

-s [[bus]:][devnum]
Show only devices in specified bus and/or devnum. Both ID's are
given in decimal and may be omitted.


lsusb without any options showed:
......
Bus /dev/usb Device /dev/ugen1.14: ID 1221:3234 Unknown manufacturer Disk (Thumb drive)

......
After many attempts with '-s' I gave up and eventually found I could run:-

usbconfig -d ugen1.14

which showed:

ugen1.14: <vendor 0x1221 Flash Disk> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)

dmesg shows:

umass4: <vendor 0x1221 Flash Disk, class 0/0, rev 2.00/0.00, addr 14> on usbus1

It's difficult to get all info from one place.
 
It's difficult to get all info from one place.
What do you mean saying "all info"?
usbconfig's commands dump_device_desc and dump_all_desc will give you plenty of information.

However, in the original question you asked about a port, not a device:
the capabilities of a particular USB port
In such case you could look into the info on the corresponding USB hub ― assuming that all ports of the same hub would have the same capabilities. The assumption may be wrong though.
 
Back
Top