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

HID Keyboard demo apears as joystick on Android device, not acting as HID on IOS

Dear Nordic,

I have managed to modify the HID Keyboard demo (SDK10/nRF51 DK) to have both keyboard and consumer control functions. Works fine on Android, however it shows as Joystick instead of keyboard, why? Second problem is that I can pair it with iOS device, but it won't see it as an input device, the key pressed have no effect. I use the encryption for the hid init: BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM

I already searched the forum, without any usefull post. Any input is welcomed.

Best regards, Laszlo

later update: main.c attached: main.c

  • Do you set the appearance using sd_ble_gap_appearance_set(), and if so are you setting it to BLE_APPEARANCE_HID_KEYBOARD? What is your report_map_data like? The HID report will influence how the connected central handles your HID device.

  • Yes, I call the sd_ble_gap_appearance_set(BLE_APPEARANCE_HID_KEYBOARD);

    I can't copy paste the report map here, I used the example from the SDK10, even with the origianal main.c the device was appearing as joystick. I modified to have the consumer control in, and it works on android, on iOS doesn't... Will have to check the IOS version too, maybe has some correlation.

  • Any ideas anybody? At least about why the example code shows the HID as joystick and not keyboard on Android (kitkat 4.4.2) ?

  • Unfortunately I do not have Kit Kat here, but the HID keyboard example from SDK 10 shows as a keyboard here on Android 6. Seems a little strange. But I guess the showstopper now is that it does not show as a input device for the iOS device. I will have a look around to see if I find any clues to what may be the problem. It would still be useful to know what modifications you have made. If you can not post this in an open forum, you can post a case on My page. There you will get direct help from a Nordic application engineer, and everything there is kept confidential.

  • Hi Terje,

    I can post my whole code here, just that I can't attach files in the comments. The code can be shared. Yes the showstopper is the iOS part, I can pair it, but the device is not seen as an input device, no characters are received...

1 2 3