Checking how linux detects your USB devices

Filed under: TechNotes, Linux — lars @ 06:45:50 am

Today I did some troubleshooting the transfer speeds to the FTP server on my housemate's LinkSys NSLU2. My USB HD enclosure is running at USB1.1 speeds.

I have discovered that you can check this out on any linux install it turns out by using the following command:

$cat /proc/bus/usb/devices

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.16 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:01.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=067b ProdID=3507 Rev= 1.00
S: Manufacturer=Prolific Technology Inc.
S: Product=Mass Storage Device
S: SerialNumber=00
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

...

The important things to note above are the "Spd" item on the top line of each device - which will tell you if your device is running at 12Mbit or 480Mbit. And on the 2nd line, "Ver", which tells you if the device has been detected as a USB1.1 or USB2.0 device.

I'm still not sure why my Proliant 3507 chipset enclosure (2nd item) is only running at 12Mbit even though its USB2.0 - I suspect the cable, but I've tried 2 and it hasn't made a difference...

 

Comments

No Comments for this post yet...

    Leave a comment

    Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>


    Options:
    (Line breaks become <br />)
    (Set cookies for name, email & url)




    powered by  b2evolution