HIDS keyboard recognized but not character sent

Hi team, by following the guide Bluetooth: Peripheral HIDS keyboard I was able to install the sample on the nRF52840DK and both my iPhone and Mac recognize the board acting as a Keyboard.

I'm able to pair the board and Led2 is turned ON as it should indicating one device is connected.

So far so good, the problem is that nothing happens when Button 1 is pressed (meaning no text is received in the text editor running on the Mac),

I have NFC_OOB_PAIRING already cleared as explained in the guide.

What am I missing?

Any hints will be greatly appreciated.

Regards, Simon

Parents Reply Children
  • Hi,

    I tested this on a Macbook. Using nRF Connect SDK v2.4.0.

    1) I flashed the sample, without any modification to a nRF52840-DK.

    2) I pressed button 4 on the DK, in order to start advertising.

    3) On the MAC, go to System Preferences -> Bluetooth. The device should appear as "Nordic_HIDS_keyboard".

    4) Press Pair/Connect. In the terminal(UART logging from the DK), a passkey will be printed. 

    5) Enter the passkey on the MAC, and it should pair successfully. 

    6 ) Go into a text field, e.g. a text editor, and press button 1 on the DK. It sends one character of the predefined input ("hello\n") to the Mac.

  • Hi Sigurd, many thanks for your answers, remarks below

    I tested this on a Macbook. Using nRF Connect SDK v2.4.0.

    I'm using nRF Connect SDK v2.4.2

    1) I flashed the sample, without any modification to a nRF52840-DK.

    same

    2) I pressed button 4 on the DK, in order to start advertising.

    Pressing button 4 nothing happens, after turning the board OFF and ON it starts advertising.

    3) On the MAC, go to System Preferences -> Bluetooth. The device should appear as "Nordic_HIDS_keyboard".

    It does

    4) Press Pair/Connect.

    I Pair using the instructions as they appear on the guide

    "Button 1

    When pairing, press this button to confirm the passkey value that is printed on the COM listener to pair with the other device."

    I never enter this following step since the device is already paired. As a matter of fact I don't even know what are you referring to with UART logging from the DK

    In the terminal(UART logging from the DK), a passkey will be printed. 

    5) Enter the passkey on the MAC, and it should pair successfully. 

    I don't need to do this as the board is already paired and seen by the MAC

    6 ) Go into a text field, e.g. a text editor, and press button 1 on the DK. It sends one character of the predefined input ("hello\n") to the Mac.

    nothing happens

    There must be something I'm missing...once again sorry if I'm too basic but I'm completely new to this development environment

    I'd really appreciate if you can help me further, regards

  • Hi!

    isimon said:
    As a matter of fact I don't even know what are you referring to with UART logging from the DK

    This is log output from the DK. You can e.g. view it using the Serial Terminal app in nRF Connect for Desktop:

    I suggest removing the pairing/bonding on the Mac, erase the flash on the DK (nrfjrpog --recover) so that we are sure that pairng/bonding is removed there as well, and then flash the sample again, and try bonding/pairing again. Make sure that you have the serial terminal open, and can view the log when pairing/bonding.

  • HI Sigurd, please see below my sequence

    1 - Paring with Mac removed

    2 - DK erased

    3 - Visual Studio Reloaded

    4 - Flash OK

    5 - Terminal working

    6 - Even though it says "Advertising successfully started" Led 1 is not flashing and the Mac doesn't see the DK

    7 - Turn OFF/ON the DK: Led 1 starts flashing, nothing appears on the Terminal but Mac sees the DK

    8 - Connect button pressed 

    9 - Button 1 on the DK pressed (Led 1 & Led 4 solid ON)

    10 - Button 1 pressed several times and nothing appears on the Terminal

  • Sigurd, where in Visual Code can I enable/disable the NFC_OOB_PAIRING flag ? I'm not familiar with Visual Code and can't find the check box that does it...i was able to uncheck it before but I don't remember where is it :-) 

Related