虽然我的代码已在我的 Android 手机上成功运行,
我还是不明白下面的东西..
当我查看 sdp.c 文件时,我发现有一些值,例如:
HIDParserVersion
//HIDParserVersion 0x0201 uint16 mandatory 4.3.2
static const uint16_t attr_parser_version = 0x0111;
我理解0x201是它的属性id,0x0111是它的属性值。
但是,我不明白为什么它的属性值必须是0x0111。
又如其子类为0xcc。
谁能告诉我:这些值的定义在哪里?
谢谢
最佳答案
请参阅“人机界面设备配置文件”部分的属性列表 https://www.bluetooth.org/Technical/AssignedNumbers/service_discovery.htm
查看详细信息,包括例如中的值“HID_SPEC_V11.pdf”来自 https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=246761 (通过 https://www.bluetooth.org/Technical/Specifications/adopted.htm )
关于安卓蓝牙HID实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10444063/