Simulating HID on OSX : IOBluetooth or CoreBluetooth?

904 views Asked by At

I'm intending on doing some simple experiments sending simulated key strokes from mac to IOS and I'm trying to decide which framework to spend my effort on.

The impression I get is that CoreBluetooth is too high level for this and that IOBluetooth would be the best choice.

Is IOBluetooth the most suitable framework to use for simulating HID commands?

Thankyou

1

There are 1 answers

2
Brendan Shanks On BEST ANSWER

CoreBluetooth is for Bluetooth low energy (BLE), whereas IOBluetooth is for classic Bluetooth. iOS devices can connect to HID devices over either transport: the BLE profile is called HOGP: HID over GATT Profile.

CoreBluetooth/BLE should be easier to work with, but you'll still need to implement the HID protocol yourself.

Note that Apple does prevent iOS applications from publishing HID over GATT but I assume that limitation is not present on OS X.