?你好,請問ch554對hid_report長度支持最大是多少?我這邊測試時超128 byte時pc就識別不了,如下所示:
? ? ? 一.? 以下在電腦上注冊時,鍵盤的hid_report是59 byte, 在pc上可正常注冊且鍵盤能正常使用;但鼠標的hid_report 是142 byte, 在pc上注冊不了,在pc的設(shè)置管理器那會看到一個黃色的嘆號,提示該設(shè)置無法啟動。
? ? ? 二.? 我改用hid_report為79 byte的鼠標時, 是可以正常使用的。不啥為啥超過128 byte就不行。
? ? ? 麻煩幫看下是什么問題,謝謝!
1. 設(shè)置描述符:
UINT8C DevDesc[18] =?
{
0x12,0x01,0x10,0x01,0x00,0x00,0x00,0x08,
0x8A,0x24,0x67,0x83,0x00,0x01,0x01,0x02,
0x00,0x01 ?
}
2. 配置描述符:
UINT8 CfgDesc[] =?
{
0x09,0x02,0x3B,0x00,0x02,0x01,0x00,0xA0,0x19,?
0x09,0x04,0x00,0x00,0x01,0x03,0x01,0x02,0x00,?
0x09,0x21,0x11,0x01,0x21,0x01,0x22,0x8E,0x00,?
0x07,0x05,0x82,0x03,0x08,0x00,0x04,? ? ? ??
0x09,0x04,0x01,0x00,0x01,0x03,0x01,0x01,0x00,?
0x09,0x21,0x11,0x01,0x21,0x01,0x22,0x3B,0x00,?
0x07,0x05,0x81,0x03,0x08,0x00,0x0A
}
3.? hid_report? --鼠標
UINT8 RepDesc_0[]=? ?//142 byte
{
0x05,0x01,0x09,0x02,0xA1,0x01,0x85,0x01,?
0x09,0x01,0xA1,0x00,0x05,0x09,0x19,0x01,?
0x29,0x05,0x15,0x00,0x25,0x01,0x95,0x05,?
0x75,0x01,0x81,0x02,0x95,0x01,0x75,0x03,?
0x81,0x01,0x05,0x01,0x09,0x30,0x09,0x31,?
0x15,0x81,0x25,0x7F,0x75,0x08,0x95,0x02,?
0x81,0x06,0x09,0x38,0x15,0x81,0x25,0x7F,?
0x75,0x08,0x95,0x01,0x81,0x06,0xC0,0xC0,?
0x05,0x0C,0x09,0x01,0xA1,0x01,0x85,0x03,?
0x75,0x10,0x95,0x02,0x15,0x01,0x26,0x8C,?
0x02,0x19,0x01,0x2A,0x8C,0x02,0x81,0x00,?
0xC0,0x05,0x01,0x09,0x80,0xA1,0x01,0x85,?
0x04,0x75,0x02,0x95,0x01,0x15,0x01,0x25,?
0x03,0x09,0x82,0x09,0x81,0x09,0x83,0x81,?
0x60,0x75,0x06,0x81,0x03,0xC0,0x05,0x01,?
0x09,0x00,0xA1,0x01,0x85,0x05,0x06,0x00,?
0xFF,0x09,0x01,0x15,0x81,0x25,0x7F,0x75,?
0x08,0x95,0x07,0xB1,0x02,0xC0
}
4.? hid_report? --鍵盤
UINT8 RepDesc_1[ ]=? ?//59 byte
{
0x05,0x01,0x09,0x06,0xA1,0x01,0x05,0x07,?
0x19,0xE0,0x29,0xE7,0x15,0x00,0x25,0x01,?
0x95,0x08,0x75,0x01,0x81,0x02,0x81,0x03,?
0x95,0x05,0x05,0x08,0x19,0x01,0x29,0x05,?
0x91,0x02,0x95,0x01,0x75,0x03,0x91,0x01,?
0x95,0x06,0x75,0x08,0x15,0x00,0x26,0xA4,?
0x00,0x05,0x07,0x19,0x00,0x2A,0xA4,0x00,?
0x81,0x00,0xC0
}