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
  • Hi!

    1) What version of nRF Connect SDK are you using?

    2) iPhone/Mac model and iOS version? You see the samme issue on both?

    3) Do you have any log output from the DK? 

  • Hi Sigurd, the answers are:

    1) What version of nRF Connect SDK are you using?

    NRF Connect for Desktop 4.2.0
    nRF Connect for Desktop Bluetooth Low Energy Version 4.0.4 (4.0.4.20221208.2)

    2) iPhone/Mac model and iOS version? You see the samme issue on both?

    iPhone 11 with iOS 17
    MacBook Air (M1, 2020) with macOS Monterey Version 12.6.1

    3) Do you have any log output from the DK? 
    Not really but since I'm pretty new to this development environment maybe it is because I don't know how to collect it...

    I have tried to pair with an Android 11 device and I get a "Couldn't pair" error message even though the MAC address is being shown

    Many thanks for your reply, looking forward for any hints,

    Regards, Simon

  • Dear Sigurd, I'm still waiting some light to be able to move forward. Could you please give me some hints as what can I do?
    Many thanks in advance, regards

  • 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.

Reply
  • 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.

Children
Related