2016年6月16日 星期四

Bus Hound USB Get_Descriptor Command之分析

使用Bus Hound 發送Get_Descriptor command

目前先將實驗解果稍作分析,未來對USB有更深入的了解後,有機會在更新這部分的資料。

  • Cmd: 80 06 00 01 00 00 FF 00

Value: 00 01
USB回傳訊息:會回傳USB的Device Descriptor,裡面包含了VID&PID的資料。

Device Descriptor 內容可對照usb_2.0 spec 表9-8。


  • Cmd: 80 06 00 02 00 00 FF 00
Value: 00 01
USB回傳訊息:會回傳HID configuration descriptor,可以看出此裝置是甚麼樣的device(Mouse, Keyboard...)。
HID Configuration descriptor的架構如下
Configuration descriptor
...Interface descriptor
......HID descriptor
.........Endpoint descriptor (for HID interrupt IN Endpoint)
.........Optional Endpoint descriptor (for HID interrupt Out Endpoint)

詳細內容可參考usb_2.0 spec 
9.6.3 Configuration
9.6.5 Interface
9.6.6 Endpoint


  • Cmd: 80 06 01 03 00 00 FF 00~80 06 05 03 00 00 FF 00
此command可以取得儲存在USB的string。

沒有留言:

張貼留言