This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using Android to Communicate with a BLE HID Device

Hi,

I'm trying to develop an Android app. My HID device is not a keyboard, mouse nor a gamepad. But my BLE firmware is based on SDK 15.2 & HID keyboard example code. I installed nrfConnect on my Android phone. The connection keeps dropping from nrfConnect app & I'm not able to read/write reports. My Android code connects to the nrf kit & recognizes the HID service UUID but then how do I read & write reports. Also I could read the battery level from battery service. I have kept the firmware code simple & I'm sending 8 bytes input report & receiving 1 byte output report.

Parents Reply
  • You can create your own app, but the HID keyboard service itself would need to be activated/connected in Android system settings -> Bluetooth.

    As mentioned in the post I linked to earlier, "If you need to add some additional features to your keyboard, you have to use a different, custom service, that only your app will be able to understand. You may have HID and other services on one device. System will use the HID service, your app others."

Children
No Data
Related