$ sudo cat /sys/kernel/debug/usb/usbmon/2u > bus2data.txt
$ tail -f bus2data.txt
The first group of messages appear to be communication between the host controller and the USB port hub,
ffff880137cc2840 2476103001 S Ci:2:000:0 s 80 06 0100 0000 0040 64 < ffff880137cc2840 2476103172 C Ci:2:000:0 0 18 = 12010002 00000040 e8040613 00000102 0301
ffff880137cc2840 2476234892 S Ci:2:007:0 s 80 06 0100 0000 0012 18 < ffff880137cc2840 2476235047 C Ci:2:007:0 0 18 = 12010002 00000040 e8040613 00000102 0301
ffff880137cc2840 2476235204 S Ci:2:007:0 s 80 06 0200 0000 0009 9 < ffff880137cc2840 2476235293 C Ci:2:007:0 0 9 = 09022000 010100c0 00
Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA
The next pair is the first (and only) interface,
ffff880137cc2840 2476235412 S Ci:2:007:0 s 80 06 0200 0000 0020 32 < ffff880137cc2840 2476235547 C Ci:2:007:0 0 32 = 09022000 010100c0 00090400 00020805 50000705 02020002 00070582 02000200
Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 5 SFF-8070i bInterfaceProtocol 80 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0
ffff880137cc2840 2476235709 S Ci:2:007:0 s 80 06 0300 0000 00ff 255 < ffff880137cc2840 2476235792 C Ci:2:007:0 0 4 = 04030904 ffff880137cc2840 2476235826 S Ci:2:007:0 s 80 06 0302 0409 00ff 255 < ffff880137cc2840 2476235917 C Ci:2:007:0 0 48 = 30035300 61006d00 73007500 6e006700 20004400 69006700 69007400 61006c00 ffff880137cc2840 2476235936 S Ci:2:007:0 s 80 06 0301 0409 00ff 255 < ffff880137cc2840 2476236042 C Ci:2:007:0 0 20 = 14035300 41004d00 53005500 4e004700 20002000 ffff880137cc2840 2476236055 S Ci:2:007:0 s 80 06 0303 0409 00ff 255 < ffff880137cc2840 2476236167 C Ci:2:007:0 0 28 = 1c034500 30003000 30003000 30003000 30003000 30003000 32002000 ffff880137cc2a80 2476236645 S Co:2:007:0 s 00 09 0001 0000 0000 0 ffff880137cc2a80 2476236792 C Co:2:007:0 0 0 ffff8801122bfc00 2477238949 S Ci:2:007:0 s a1 fe 0000 0000 0001 1 < ffff8801122bfc00 2477260196 C Ci:2:007:0 0 1 = 01
0x14=decimal 20, 0x03=index 3, 0x53='S', 0x41='A', 0x4d='M', 0x53='S', 0x55='U', 0x4e='N', 0x47='G', 0x20=' ', 0x20=' '
0x1c=decimal 28, 0x03=index 3, 0x45='E', 0x30='0', 0x32='2', 0x20=' '
So these must be the info strings, although the string "camera" doesn't show up. The first byte must be the string size in bytes (wide char format), the second byte the number of info strings, in this case '3', then the actual strings ("Samsung Digital", "SAMSUNG ", and "E00000000002 ").
No comments:
Post a Comment