Author:DriverMonkey
Mail:[email protected]
Phone:13410905075
QQ:196568501
Bus Hound 6.01 capture on Windows XP Service Pack 3 (x86). Complements of www.perisoft.net
Device - Device ID (followed by the endpoint for USB devices)
(16) USB 人体学输入设备
(18) HID-compliant mouse
(25) Linux File-CD Gadget [ROM=0000]
Phase - Phase Type
CTL USB control transfer
IN Data in transfer
USTS USB status
Data - Hex dump of the data transferred
Descr - Description of the phase
Cmd... - Position in the captured data
Device Phase Data Description Cmd.Phase.Ofs(rep)
------ ----- -------------------------------------------------- ---------------- ------------------
1. 16.0 CTL 80 06 00 03 00 00 ff 00 GET DESCRIPTOR 1.1.0(2)
1)80 device-to-host,standard,device - 数据传输方向是Device 向host传输,获取的是标准描述符,接受方式device
2)06 request type:GET_DESCRIPTOR - 请求类型是描述符类型
3)00 03 STRING-描述符类型
4)ff 00 Descriptor Length-描述符长度
2. 16.0 IN 04 03 09 04 .... 1.2.0
1)04 Size of this descriptor in bytes - 大小
2)03 STRING Descriptor Type - 描述符类型
3)09 04 LANGID code x - 英文字符
3. 16.0 CTL 80 06 02 03 09 04 ff 00 GET DESCRIPTOR 2.1.0(2)
1)80 06 同1.1,1.2
2)02 03 index=2,type=string;疑问02代表什么意思?
3)09 04 英文
4)ff 00 大小 GET DESCRIPTOR 2.1.0(2)
4. 16.0 IN 24 03 55 00 53 00 42 00 20 00 4f 00 50 00 54 00 $.U.S.B. .O.P.T. 2.2.0
49 00 43 00 41 00 4c 00 20 00 4d 00 4f 00 55 00 I.C.A.L. .M.O.U. 2.2.16
53 00 45 00 S.E. 2.2.32
1)24 大小
2)03 DEVICE Descriptor Type
3)... 返回的信息
5. 16.0 CTL 80 06 00 01 00 00 12 00 GET DESCRIPTOR 5.1.0(2)
1)80 06
2)00 01 设备描述符
...
6. 16.0 IN 12 01 10 01 00 00 00 08 3a 09 10 25 00 01 01 02 ........:..%.... 5.2.0
00 01 .. 5.2.16
1)12 01 大小为12,描述符类型为设备描述符
2)10 01 bcdUSB; USB Specification Release Number in Binary-Coded Decimal; USB 版本号1.1
3)00 bDeviceClass; If this field is reset to zero, each interface within a configuration specifies its own
class information and the various
interfaces operate independently.
4)00 SubClass;If the bDeviceClassfield is reset to zero, this field must also be reset to zero
5)00 Protocol;If this field is reset to zero, the device does not use class-specific protocols on a device basis.
6)08 bMaxPacketSize0;Maximum packet size for endpoint zero.
7)3a 09 idVendor
8)10 25 idProduct
9)00 01 Device release number in binary-coded decimal
10)01 iManufacturer
11)02 iProduct
12)00 iSerialNumber
13)01 bNumConfigurations
7. 16.0 CTL 80 06 00 02 00 00 09 00 GET DESCRIPTOR 6.1.0(2)
1)80 06 同上
2)00 02 discribtor type:configuration 配置描述符
...
8. 16.0 IN 09 02 22 00 01 01 04 a0 32 ..".....2 6.2.0
1)0902 配置描述符,大小为9
2)22 00 wTotalLength; Total length of data returned for this configuration.
3)01 bNumInterfaces; Number of interfaces supported by this configuration
4)01 bConfigurationValue;Value to use as an argument to the SetConfiguration() request to select this
configuration
5)04 Index of string descriptor describing this configuration
6)a0 bmAttributes; Configuration characteristics
D7: Reserved (set to one)
D6: Self-powered
D5: Remote Wakeup
D4...0: Reserved (reset to zero)
7)32 bMaxPower
9. 16.0 CTL 80 06 00 02 00 00 22 00 GET DESCRIPTOR 7.1.0(2)
1) 获取配置描述符大小为0x22
10. 16.0 IN 09 02 22 00 01 01 04 a0 32 09 04 00 00 01 03 01 ..".....2....... 7.2.0
02 00 09 21 11 01 00 01 22 3e 00 07 05 81 03 04 ...!....">...... 7.2.16
00 0a
1) 09 02 22 00 01 01 04 a0 32 配置描述符
2) 09 04 00(bInterfaceNumber) 00(bAlternateSetting) 01(bNumEndpoints)
03(bInterfaceClass) 01(bInterfaceSubClass) 02(bInterfaceProtocol) 00(iInterface) 接口描述符
3) 09 21 11 01 00 01 22 3e 00 人机接口描述符
4) 07 05 81 03 04 端点描述符
11. 16.0 CTL 00 09 01 00 00 00 00 00 SET CONFIG 11.1.0
1)00 host-to-device,standard,device
2)09 SET_CONFIGURATION
3)01 configuration value(这个值有8.4返回?)
12. 16.0 CTL 21 0a 00 00 00 00 00 00 SET IDLE 12.1.0
1) host-to-device, type:class, recipient:inerface
16.0 USTS c0000004 stall pid 12.2.0
16.0 CTL 81 06 00 22 00 00 7e 00 GET DESCRIPTOR 13.1.0
16.0 IN 05 01 09 02 a1 01 05 09 19 01 29 03 15 00 25 01 ..........)...%. 13.2.0
95 03 75 01 81 02 95 01 75 05 81 03 05 01 09 01 ..u.....u....... 13.2.16
a1 00 09 30 09 31 15 81 25 7f 75 08 95 02 81 06 ...0.1..%.u..... 13.2.32
c0 09 38 15 81 25 7f 75 08 95 01 81 06 c0 ..8..%.u...... 13.2.48
1) HID相关的东西