【问题标题】:Simulating HID on OSX : IOBluetooth or CoreBluetooth?在 OSX 上模拟 HID:IOBluetooth 还是 CoreBluetooth?
【发布时间】:2015-06-17 18:06:13
【问题描述】:

我打算做一些简单的实验,将模拟的击键从 mac 发送到 IOS,我正在尝试决定在哪个框架上花费我的精力。

我得到的印象是CoreBluetooth 级别太高了,IOBluetooth 将是最好的选择。

IOBluetooth 是最适合用于模拟 HID 命令的框架吗?

谢谢

【问题讨论】:

    标签: ios macos core-bluetooth iobluetooth


    【解决方案1】:

    CoreBluetooth 用于蓝牙低功耗 (BLE),而 IOBluetooth 用于经典蓝牙。 iOS 设备可以通过任一传输方式连接到 HID 设备:BLE 配置文件称为 HOGP: HID over GATT Profile

    CoreBluetooth/BLE 应该更容易使用,但您仍然需要自己实现 HID 协议。

    请注意,Apple 确实阻止 iOS 应用程序通过 GATT 发布 HID,但我认为 OS X 上不存在此限制。

    【讨论】:

    • 感谢您为我解决这个问题。我很高兴可以使用 corebluetooth /BLE,因为 API 更友好。我现在可以将精力转向 HID 协议方面。
    猜你喜欢
    • 2013-01-29
    • 2014-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-08
    • 2011-09-15
    • 2011-03-29
    相关资源
    最近更新 更多