你好,你能帮我看看吗?下面是我的描述符,为了调试方便点,我开始只弄了音频控制的部分,没给键盘的加进去,不过还是不行,下面是数据 { { 0x12, 0x01, 0x110, 0, 0, 0, 0x10, 0x471, 0x222, 0x110, 0, 0, 0, 1 }, { 0x09, 0x02, UsbTotalCfgDescSize, 0, 1, 1, 0, 0x80, 0x32 }, { 0x09, 0x04, 0, 0, EndpCnt, 0x03, 0x00, 0x00, 0 }, { 0x09, 0x21, 0x01, 0x11, 0x00, 0x01, 0x22, 81 }, { 0x07, 0x05, 0x82, 0x03, Ep2PacketSize, 0, 0x0a }, { UsbEndpDescSize, UsbEndpDescType, 0x2, 0x03, Ep2PacketSize, 0, 0x0a } };
下面是报告描述符
0x05, 0x0C, // Usage Page (Consumer Devices) 0x09, 0x01, // Usage (Consumer Control) 0xA1, 0x01, // Collection (Application) 0x85, 0x02, // Report ID (2) 0x15, 0x00, // Logical Minimum (0) 0x25, 0x01, // Logical Maximum (1) 0x75, 0x01, // REPORT_SIZE (1) 0x95, 0x0C, // REPORT_COUNT (12) 0x09, 0xE2, // USAGE (Mute) 0x09, 0xE9, // USAGE (Volume Up) 0x09, 0xEA, // USAGE (Volume Down) 0x09, 0xCD, // USAGE (Play) 0x09, 0xB7, // USAGE (Stop) 0x09, 0xB6, // USAGE (Scan Previous Track) 0x09, 0xB5, // USAGE (Scan Next Track) 0x0A, 0x8A, 0x01, // USAGE (AL Email Reader) 0x0A, 0x92, 0x01, // USAGE (AL Calculator) 0x0A, 0x21, 0x02, // USAGE (AC Search) 0x0A, 0x23, 0x02, // USAGE (AC Home) 0x0A, 0x2A, 0x02, // USAGE (AC Favorites) 0x81, 0x62, // INPUT (Data,Var,Abs,NPrf,Null) 0x95, 0x04, // REPORT_COUNT (4) 0x81, 0x03, // INPUT (Cnst,Var,Abs) >> PADDING bits << 0xC0, // END_COLLECTION 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x09, 0x80, // USAGE (System Control) 0xA1, 0x01, // COLLECTION (Application) 0x85, 0x03, // REPORT_ID (3) 0x75, 0x02, // REPORT_SIZE (2) 0x95, 0x01, // REPORT_COUNT (1) 0x15, 0x01, // LOGICAL_MINIMUM (1) 0x25, 0x03, // LOGICAL_MAXIMUM (3) 0x09, 0x82, // USAGE (System Sleep) 0x09, 0x81, // USAGE (System Power Down) 0x09, 0x83, // USAGE (System Wake Up) 0x81, 0x60, // INPUT (Data,Ary,Abs,NPrf,Null) 0x75, 0x06, // REPORT_SIZE (6) 0x81, 0x03, // INPUT (Cnst,Var,Abs) 0xC0 // END_COLLECTION
我发送的数据格式是:0x02,0X00,0x01这样,不过没反应
下面是bus hound录的数据 Bus Hound 5.00 capture. Complements of www.perisoft.net
data
Device - Device ID (followed by the endpoint for USB devices) (18) SCSI/RAID Host Controller (19) CL3323P YRG651C [ROM=1.0 ] (20) USB 人体学输入设备 Phase - Phase Type CTL USB control transfer DI Data in 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 ------ ----- -------------------------------------------------- ---------------- 20.0 CTL 80 06 00 01 00 00 12 00 GET DESCRIPTOR 20.0 DI 12 01 10 01 00 00 00 10 71 04 22 02 10 01 00 00 ........q."..... 00 01 .. 20.0 CTL 80 06 00 02 00 00 09 00 GET DESCRIPTOR 20.0 DI 09 02 29 00 01 01 00 80 32 ..).....2 20.0 CTL 80 06 00 02 00 00 29 00 GET DESCRIPTOR 20.0 DI 09 02 29 00 01 01 00 80 32 09 04 00 00 02 03 00 ..).....2....... 00 00 09 21 01 11 00 01 22 51 00 07 05 82 03 40 ...!...."Q.....@ 00 0a 07 05 02 03 40 00 0a ......@.. 20.0 CTL 00 09 01 00 00 00 00 00 SET CONFIG 20.0 CTL 21 0a 00 00 00 00 00 00 SET IDLE 20.0 USTS 00 00 01 c0 canceled 20.0 CTL 81 06 00 22 00 00 91 00 GET DESCRIPTOR 20.0 DI 05 0c 09 01 a1 01 85 02 15 00 25 01 75 01 95 0c ..........%.u... 09 e2 09 e9 09 ea 09 cd 09 b7 09 b6 09 b5 0a 8a ................ 01 0a 92 01 0a 21 02 0a 23 02 0a 2a 02 81 62 95 .....!..#..*..b. 04 81 03 c0 05 01 09 80 a1 01 85 03 75 02 95 01 ............u... 15 01 25 03 09 82 09 81 09 83 81 60 75 06 81 03 ..%........`u... c0 . 20.0 CTL 80 06 00 02 00 00 29 00 GET DESCRIPTOR 20.0 DI 09 02 29 00 01 01 00 80 32 09 04 00 00 02 03 00 ..).....2....... 00 00 09 21 01 11 00 01 22 51 00 07 05 82 03 40 ...!...."Q.....@ 00 0a 07 05 02 03 40 00 0a ......@.. 20.2 DI 02 00 04 ... 20.2 DI 02 00 00 ... 20.2 DI 02 00 04 ... 20.2 DI 02 00 00 ... 20.2 DI 02 00 08 ... 20.2 DI 02 00 00 ... 20.2 DI 02 00 02 ... 20.2 DI 02 00 00 ... 20.2 DI 02 00 02 ... 20.2 DI 02 00 00 ... 20.2 DI 02 00 01 ... 20.2 DI 02 00 00 ... |