开发USB往往需要些工具辅助分析,诸如USB的是如何枚举的,如何一步步进行。要想了解这些没有好的工具那可不行,现在公司穷。买不起什么高档的USB分析仪,特别是安捷伦的就不敢奢望了。普遍上许多的嵌入式软件工程师采用了个叫做houndbus的工具。可是它不能看到USB的枚举工程,然而HHD的USB device monitor工具则可以。数据都解析出来,如上行还是下行等。目前还没哟破解的版本,好像CSDN网有人已经将试用期做成可以反复使用了。数据如下:官网网址http://www.hhdsoftware.com/[attachimg]129036[/attachimg]
004096: PnP Event: Device Connected (UP), 18.02.2010 21:50:13.879 +72.864
The USB device has just been connected to the system.
004097: Get Descriptor Request (DOWN), 18.02.2010 21:50:13.879 +0.0
Descriptor Type: Device
Descriptor Index: 0x0
Transfer Buffer Size: 0x12 bytes
004098: Control Transfer (UP), 18.02.2010 21:50:13.889 +0.010. Status: 0x00000000
Pipe Handle: 0x84d96818
12 01 10 01 00 00 00 08 D9 15 37 0A 00 01 00 01 | ........ù.7..... |
Setup Packet
80 06 00 01 00 00 12 00 | ?....... |
Recipient: Device
Request Type: Standard
Direction: Device->Host
Request: 0x6 (GET_DESCRIPTOR)
Value: 0x100
Index: 0x0
Length: 0x12
004099: Get Descriptor Request (DOWN), 18.02.2010 21:50:13.889 +0.0
Descriptor Type: Configuration
Descriptor Index: 0x0
Transfer Buffer Size: 0x9 bytes
004100: Control Transfer (UP), 18.02.2010 21:50:13.889 +0.0. Status: 0x00000000
Pipe Handle: 0x84d96818
09 02 22 00 01 01 00 A0 32 | ..".... 2 |
Setup Packet
80 06 00 02 00 00 09 00 | ?....... |
Recipient: Device
Request Type: Standard
Direction: Device->Host
Request: 0x6 (GET_DESCRIPTOR)
Value: 0x200
Index: 0x0
Length: 0x9
004101: Get Descriptor Request (DOWN), 18.02.2010 21:50:13.889 +0.0
Descriptor Type: Configuration
Descriptor Index: 0x0
Transfer Buffer Size: 0x22 bytes
004102: Control Transfer (UP), 18.02.2010 21:50:13.899 +0.010. Status: 0x00000000
Pipe Handle: 0x84d96818
09 02 22 00 01 01 00 A0 32 09 04 00 00 01 03 01 | ..".... 2....... |
Setup Packet
80 06 00 02 00 00 22 00 | ?.....". |
Recipient: Device
Request Type: Standard
Direction: Device->Host
Request: 0x6 (GET_DESCRIPTOR)
Value: 0x200
Index: 0x0
Length: 0x22
004103: Select Configuration (DOWN), 18.02.2010 21:50:13.899 +0.0
Configuration Index: 1
004105: Select Configuration (UP), 18.02.2010 21:50:13.919 +0.0. Status: 0x00000000
Configuration Index: 1
Configuration Handle: 0x848c22d0
004106: Class-Specific Request (DOWN), 18.02.2010 21:50:13.919 +0.0
Destination: Interface, Index 0
Reserved Bits: 34
Request: 0xa
Value: 0x0
Send 0x0 bytes to the device
004107: Control Transfer (UP), 18.02.2010 21:50:13.919 +0.0. Status: 0x00000000
Pipe Handle: 0x84d96818
Setup Packet
21 0A 00 00 00 00 00 00 |
文章评论(0条评论)
登录后参与讨论