bluez是否支持HID over GATT (HoG)作为客户端?即用鼠标和键盘请求控制外部设备。
我找不到任何示例代码。我将非常感谢任何链接到任何可用的例子,或其他类似的帮助。
非常感谢
发布于 2020-11-01 17:14:46
这与BlueZ GATT Server示例类似,不同之处在于应用程序需要通过GATT (HoG)专门公开HID信息。您还需要使用特定于HoG的Advertisement来广告服务。
查看https://www.bluetooth.com/specifications/gatt/上的HID over GATT Profile (HoGP)文档
详细介绍该服务的XML可在以下位置获得:https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.human_interface_device.xml
通过使用https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/<replace with characteristic type>.xml的基URL并将其修改为服务XML中感兴趣的特征,可以找到每个特征的XML。例如,对于HID Information,URL将是:https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.hid_information.xml
如果您想用自己喜欢的编程语言搜索更具体的代码示例,那么使用诸如BLE peripheral HID之类的术语可能会得到更好的结果。
https://stackoverflow.com/questions/64560190
复制相似问题