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

HID Keyboard example Error NRF_INVALID_STATE

Hi,

I am working with the HID keyboard example in the pca10028 development kit and I facing following problem.

I can connect, pair and bod with Android and IOS devices and send receive the "hello" message sent by the program when pushing the button in the board.

The problem comes when I disconnect. In both IOS and Android it connects inmediately as they are bonded, but in Android I receive error 0x8 (NRF_INVALID_STATE) after the sd_ble_gatts_hvx(). I suppose this is because the notifications/indications are not enabled in Android device for CCCD.

The issue is that it works perfectly in IOS, so it seems that this is an Android issues. I checked different smartphones and no one works after reconnection.

I am pairing using the smartphone Bluetooth menu and I don't want to develope any other app for the smartphone, just connect my device and use it like keyboard.

Is there any solution for this? Can something be done in the firmware to enable notiications in the peer?

Thank you

Regards

Parents Reply Children
Related