测试发送这些值电脑接收不到任何数据,请教是什么原因?以及应该怎么修改?
您好,127-129属于多媒体按键,
上报数据为:
静音:E2 00
音量减:EA 00
音量加:E9 00
需要在蓝牙报表描述符中添加对应的consume报表:
0x05,0x0C,//0 GLOBAL_USAGE_PAGE(Consumer)
0x09,0x01,//2 LOCAL_USAGE(Consumer Control )
0xA1,0x01, //4 MAIN_COLLECTION(Applicatior)
0x85,0x05, //6 GLOBAL_REPORT_ID(5)
0x15,0x00, //8 GLOBAL_LOGICAL_MINIMUM(0)
0x26,0xFF,0x1F,//10 GLOBAL_LOCAL_MAXIMUM(8191/8191)
0x19,0x00, //13 LOCAL_USAGE_MINIMUM(0)
0x2A,0xFF,0x1F,//15 LOCAL_USAGE_MAXIMUM(8191)
0x75,0x10, //18 GLOBAL_REPORT_SIZE(16)
0x95,0x01,//20 GLOBAL_REPORT_COUNT(1)
0x81,0x00, //22 MAIN_INPUT(data array absolute NoWrap linear PreferredState NoNullPosition NonVolatile )Input 2.0
0xC0,//24 MAIN_COLLECTION_END
————————————————————————————————————————————————————
另外,224-231是控制键,对应常规8字节键盘键值的第一个字节,例如,左ALT、左shift、左ctrl全部按下,则第一个字节键值为0x07
非常感谢