[<<][staapl][>>][..]
Fri May 18 14:12:17 EDT 2012

USB debugging

Taking only a single URB: c40c7200


T     

  Event Type. This type refers to the format of the event, not URB
  type.  120 Available types are: S - submission, C - callback, E -
  submission error.

ADDR

  
  "Address" word (formerly a "pipe"). It consists of four fields,
  separated by colons: URB type and direction, Bus number, Device
  address, Endpoint number.  Type and direction are encoded with two
  bytes in the following manner:

    Ci Co   Control input and output
    Zi Zo   Isochronous input and output
    Ii Io   Interrupt input and output
    Bi Bo   Bulk input and output

  Bus number, Device address, and Endpoint are decimal numbers, but
  they may have leading zeros, for the sake of human readers.

S

  Status word. This is either a letter, or several numbers separated
  by colons: URB status, interval, start frame, and error count.

SETUP

  Setup packet, if present, consists of 5 words: one of each for
  bmRequestType, bRequest, wValue, wIndex, wLength, as specified by
  the USB Specification 2.0.  These words are safe to decode if Setup
  Tag was 's'. Otherwise, the setup packet was present, but not
  captured, and the fields contain filler.


URB      TIME       T TD:B:DEV:E S RT RQ VAL  INDX LEN
----------------------------------------------------------------
c40c7200 2500976461 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2500976494 C Ci:1:001:0 0 4 = 01010100

First line is input request.

RT a3 = 1010 0011   dir=dev->host, type=class, recp=other
RQ 00 = GET_STATUS

bmRequestType:

D7 Data Phase Transfer Direction
0 = Host to Device
1 = Device to Host
D6..5 Type
0 = Standard
1 = Class
2 = Vendor
3 = Reserved
D4..0 Recipient
0 = Device
1 = Interface
2 = Endpoint
3 = Other
4..31 = Reserved

Second line.

Hmm... doesn't correspond to [1]

RT = 1000 0000b
RQ = GET_STATUS (0x00)
VAL = Zero
INDX = Zero
LEN = Two

I need a working starting point...
I moved to wireshark: this has some parsing, makes it more clear.




URB      TIME       T TD:B:DEV:E S RT RQ VAL  INDX LEN             comment
--------------------------------------------------------------------------------
c40c7200 2500976461 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <        GET_STATUS
c40c7200 2500976494 C Ci:1:001:0 0 4 = 01010100
c40c7200 2500976511 S Co:1:001:0 s 23 01 0010 0001 0000 0
c40c7200 2500976522 C Co:1:001:0 0 0
c40c7200 2500976533 S Ci:1:001:0 s a3 00 0000 0002 0004 4 <
c40c7200 2500976543 C Ci:1:001:0 0 4 = 00010000
c40c7200 2501080613 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501080638 C Ci:1:001:0 0 4 = 01010000
c40c7200 2501080689 S Co:1:001:0 s 23 03 0004 0001 0000 0
c40c7200 2501080703 C Co:1:001:0 0 0
c40c7200 2501136463 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501136503 C Ci:1:001:0 0 4 = 03010000
c40c7200 2501192458 S Co:1:001:0 s 23 01 0014 0001 0000 0
c40c7200 2501192480 C Co:1:001:0 0 0

c40c7200 2501192538 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501213484 C Ci:1:000:0 -75 0
c40c7200 2501213573 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501217471 C Ci:1:000:0 -71 0
c40c7200 2501217550 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501221470 C Ci:1:000:0 -71 0
c40c7200 2501221552 S Co:1:001:0 s 23 03 0004 0001 0000 0
c40c7200 2501221569 C Co:1:001:0 0 0
c40c7200 2501276456 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501276498 C Ci:1:001:0 0 4 = 03010000
c40c7200 2501332450 S Co:1:001:0 s 23 01 0014 0001 0000 0
c40c7200 2501332472 C Co:1:001:0 0 0
c40c7200 2501436471 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501440425 C Ci:1:000:0 -71 0
c40c7200 2501440517 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501443429 C Ci:1:000:0 -71 0
c40c7200 2501443502 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501447427 C Ci:1:000:0 -71 0
c40c7200 2501447501 S Co:1:001:0 s 23 03 0004 0001 0000 0
c40c7200 2501447517 C Co:1:001:0 0 0
c40c7200 2501500454 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501500496 C Ci:1:001:0 0 4 = 03010000
c40c7200 2501556451 S Co:1:001:0 s 23 01 0014 0001 0000 0
c40c7200 2501556473 C Co:1:001:0 0 0
c40c7200 2501660468 S Co:1:001:0 s 23 01 0001 0001 0000 0
c40c7200 2501660497 C Co:1:001:0 0 0
c40c7200 2501660561 S Co:1:001:0 s 23 03 0004 0001 0000 0
c40c7200 2501660573 C Co:1:001:0 0 0
c40c7200 2501716479 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501716528 C Ci:1:001:0 0 4 = 03010000
c40c7200 2501772449 S Co:1:001:0 s 23 01 0014 0001 0000 0
c40c7200 2501772470 C Co:1:001:0 0 0
c40c7200 2501772530 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501776436 C Ci:1:000:0 -71 0
c40c7200 2501777147 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501779365 C Ci:1:000:0 -71 0
c40c7200 2501779520 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
c40c7200 2501783371 C Ci:1:000:0 -71 0
c40c7200 2501783526 S Co:1:001:0 s 23 03 0004 0001 0000 0
c40c7200 2501783548 C Co:1:001:0 0 0
c40c7200 2501836458 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
c40c7200 2501836500 C Ci:1:001:0 0 4 = 03010000


[1] http://www.beyondlogic.org/usbnutshell/usb6.shtml



[Reply][About]
[<<][staapl][>>][..]