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

HID over GATT (HOGP) and custom services on Android

Hello all,

in my previous question (Switch between applications (multiple services.h)) I got the advice to merge my two services into one service, including a HID over GATT and a custom service with custom characteristics.

I avoided this because I could not any information about the behavior of android in this case. Since Android 4.4 KitKat the Android system tries to automatically connect to HOGP devices after bonding. Enables you to use BLE keyboards with Android. Does somebody know how this would affect the custom service and the ability of applications to connect to the device? A use case for that would be a keyboard, able to do standard key input but also equipped with vendor specific keys, controlling a application. Is this possible? Both modes are not needed to run parallel in my application.

Otherwise I would try to solve it with a Service Change Indication (also mentioned in the previous question), although I do not know how the Android device would react in this case. Neither do I know yet, how to actually change services with the nRF8001 device, without losing bonding information.

I would also appreciate suggestions for solving this problem in a complete other way as I mentioned. There might be an Android specific solution for these kind of use cases? Is it even possible? Thanks for your help.

Related