下面这段数据是MINI mouse枚举成功数据,希望对于初学者有帮助.
USB鼠标枚举成功数据(Human Interface Device):
Bus Hound 5.00 capture. Complements of www.perisoft.net
Device - Device ID (followed by the endpoint for USB devices)
(7) USB Root Hub
(12) USB 人体学输入设备
(13) HID-compliant mouse
Phase - Phase Type
CTL USB control transfer(控制传输)
DI Data in(数据输入)
LEN Data length(数据长度)
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)
------ ----- -------------------------------------- ---------------- ------------------
7.0 CTL a3 00 00 00 01 00 04 00 GET STATUS 1.1.0(2)
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 01:设备
(00 04:长度4
7.0 LEN 04 00 00 00 4
(00 00 00 04:4个字节数
7.0 DI 01 01 01 00
7.0 CTL 23 01 10 00 01 00 00 00 CLEAR FEATURE
(23:其它类型请求=主机到设备
(01:指定命令=CLEAR FEATURE
(00 10:特性选择符
(00 01:设备
(00 00:长度0
7.0 CTL a3 00 00 00 01 00 04 00 GET STATUS
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 01:设备
(00 00:长度4
7.0 LEN 04 00 00 00 4
7.0 DI 01 01 00 00 ....
7.0 CTL 23 03 04 00 01 00 00 00 SET FEATURE
(23:其它类型请求=主机到设备
(03:指定命令=SET FEATURE
(00 04:特性选择符
(00 01:设备
(00 00:长度0
7.0 CTL a3 00 00 00 01 00 04 00 GET STATUS
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 01:设备
(00 00:长度4
7.0 LEN 04 00 00 00 4
7.0 DI 03 01 10 00 ....
7.0 CTL 23 01 14 00 01 00 00 00 CLEAR FEATURE
(23:其它类型请求=主机到设备
(01:指定命令=CLEAR FEATURE
(00 14:特性选择符
(00 01:设备
(00 00:长度0
7.0 CTL a3 00 00 00 01 00 04 00 GET STATUS
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 01:设备
(00 00:长度4
7.0 LEN 04 00 00 00 4
7.0 DI 03 01 00 00 ....
7.0 CTL 23 03 04 00 01 00 00 00 SET FEATURE
(23:其它类型请求=主机到设备
(03:指定命令=SET FEATURE
(00 04:特性选择符
(00 01:设备
(00 00:长度0
7.0 CTL a3 00 00 00 01 00 04 00 GET STATUS
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 01:设备
(00 04:长度4
7.0 LEN 04 00 00 00 4
7.0 DI 03 01 10 00
7.0 CTL 23 01 14 00 01 00 00 00 CLEAR FEATURE
(23:其它类型请求=主机到设备
(01:指定命令=CLEAR FEATURE
(00 14:特性选择符
(00 01:设备
(00 00:长度0
7.0 CTL 80 06 00 03 00 00 ff 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(03 00:字符串描述符,索引0
(00 00:0或语言ID
(00 FF:描述符长度FF
7.0 LEN 04 00 00 00 4
7.0 DI 04 03 09 04 ....
7.0 CTL 80 06 03 03 09 04 ff 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(03 03:字符串描述符,索引03
(04 09:语言ID或0
(00 FF:描述符长度FF
7.0 LEN 16 00 00 00 22
7.0 DI 16 03 32 00 30 00 30 00 37 00 2d 00 30 00 33 00
2d 00 33 00 30 00
7.0 CTL 80 06 00 02 00 00 ff 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(02 00:配置描述符,索引0
(00 00:0 或语言ID
(00 FF:描述符长度FF
7.0 LEN 29 00 00 00 41 16.2.0
7.0 DI 09 02 29 00 01 01 00 a0 fa 09 04 00 00 02 03 01 ..)..........
02 00 09 21 10 01 21 01 22 34 00 07 05 82 03 40 ...!..!."4.....@
00 0a 07 05 02 03 40 00 0a ......@..
7.0 CTL a3 00 00 00 02 00 04 00 GET STATUS
(A3:其它类型请求=设备到主机
(00:指定命令=GET STATUS
(00 00:值为0
(00 02:配置
(00 04:长度4
7.0 LEN 04 00 00 00 4
7.0 DI 00 01 00 00 ....
12.0 CTL 80 06 00 01 00 00 12 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(01 00:设备描述符,索引0
(00 00:0 或语言ID
(00 12:描述符长度18
12.0 LEN 12 00 00 00 18
12.0 DI 12 01 10 01 00 00 00 10 71 04 66 06 01 00 01 02 ........q.f.....
03 01 ..
12.0 CTL 80 06 00 02 00 00 09 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(02 00:配置描述符,索引0
(00 00:0 或语言ID
(00 09:描述符长度9
12.0 LEN 09 00 00 00 9
12.0 DI 09 02 29 00 01 01 00 a0 fa ..)......
12.0 CTL 80 06 00 02 00 00 29 00 GET DESCRIPTOR
(80:设备标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(02 00:配置描述符,索引0
(00 00:0 或语言ID
(00 29:描述符长度41
12.0 LEN 29 00 00 00 41
12.0 DI 09 02 29 00 01 01 00 a0 fa 09 04 00 00 02 03 01 ..).......
02 00 09 21 10 01 21 01 22 34 00 07 05 82 03 40 ...!..!."4.....@
00 0a 07 05 02 03 40 00 0a ......@..
12.0 CTL 00 09 01 00 00 00 00 00 SET CONFIG
(00:设备标准请求=主机到设备
(09:指定命令=SET CONFIGURATION
(00 01:配置值=1
(00 00:0
(00 00:0
12.0 CTL 21 0a 00 00 00 00 00 00 SET IDLE
(21:接口类型请求=主机到设备
(0A:指定命令=GET INTERFACE
(00 00:0
(00 00:接口0
(00 00:长度0
12.0 CTL 81 06 00 22 00 00 74 00 GET DESCRIPTOR
(81:接口标准请求=设备到主机
(06:指定命令=GET DESCRIPTOR
(22 00:描述符类型22,索引0
(00 00:0 或语言ID
(00 74:描述符长度116
12.0 LEN 74 00 00 00 116
12.0 DI 05 01 09 02 a1 01 09 01 a1 00 05 09 19 01 29 03 ..............).
15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 03 ..%...u.....u...
05 01 09 30 09 31 09 38 15 81 25 7f 75 08 95 03 ...0.1.8..%.u...
81 06 c0 c0 04 03 09 04 16 03 32 00 30 00 30 00 ..........2.0.0.
37 00 2d 00 30 00 33 00 2d 00 33 00 30 00 50 03 7.-.0.3.-.3.0.P.
20 5f 20 4f 50 4e 84 76 55 00 53 00 42 00 20 9f _ OPN.vU.S.B.
07 68 7a 00 68 00 61 00 6e 00 67 00 63 00 68 00 .hz.h.a.n.g.c.h.
75 00 61 00 u.a.
12.2 LEN 04 00 00 00 4
12.2 DI 00 00 00 00