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

Pairing unsuccessful with phone

I designed a reduced size PCB that used an nRF52832 and will act as a BLE HID device.

With the original nRF52DK evaluation board I was able to use the example ble_app_hids_mouse SDK V15 and pair it with Android and iPhones.

But when I used the new PCB with ble_app_hids_mouse, It only worked 1 out of 15 or 20 tries. Otherwise I got the message 'Pairing Unsuccessful: Pairing takes too long..'. However this new PCB works with other non-hid examples such as ble_app_hrs. I did try another commercial unit such as the 'Red Bear Nano' and it has the same issue as mine.

It seems like a hardware issue at first. However I noticed is that even the Nordic nRF52DK eval board has the same issue with SDK V11 (pairing unsuccessful). The nRF52DK board works better with SDK V15 and ble_app_hids_mouse. 

My question is what is mainly required for in a pairing process? Is there a way I can modify any parameter to ease the condition for pairing, such as the number of peers, white list, etc.. to make it work? Since the PCB worked fine with other applications that don't require pairing.

Parents
  • Hello,

    are you trying to make the ble_app_hids_mouse example in sdk 11 work on your custom board?

  • Yes. First I want to see if the ble_app_hids_mouse example (unchanged) in sdk works on my PCB. I tried both V11 and V15. I also tried with a commercial unit, the Red Bear Nano BLE, and have the same problem. They don't work neither with V11 nor V15 ble_app_hids_mouse. But they still work with other non-hid app that don't require pairing.

    However, The nRF52DK eval board works with V15 but not V11 (ble_app_hids_mouse).

    We badly need Nordic nRF52 to work as a BLE HID device. That will be our main product.

  • Does it also happen with the ble_app_hids_keyboard example?

  • Interestingly, the ble_app_hids_keyboard can be paired with the iPhone only once. After that the pairing was mostly unsuccessful, just like the ble_app_hids_mouse.

    The ble_app_hids_keyboard is not even seen by Android phone when I go to Settings->Bluetooth. At least with ble_app_hids_mouse I can see it in both Android and iPhone, even though pairing was unsuccessful.

    What I can see here is that both ble_app_hids_mouse and ble_app_hids_keyboard were able to pair only once the first time the firmware was loaded into flash. Then after that the pairing was always unsuccessful. It looks like some variables were initialized correctly at first. Then after that they affected the subsequent pairing process that prevented it from being paired again.

Reply
  • Interestingly, the ble_app_hids_keyboard can be paired with the iPhone only once. After that the pairing was mostly unsuccessful, just like the ble_app_hids_mouse.

    The ble_app_hids_keyboard is not even seen by Android phone when I go to Settings->Bluetooth. At least with ble_app_hids_mouse I can see it in both Android and iPhone, even though pairing was unsuccessful.

    What I can see here is that both ble_app_hids_mouse and ble_app_hids_keyboard were able to pair only once the first time the firmware was loaded into flash. Then after that the pairing was always unsuccessful. It looks like some variables were initialized correctly at first. Then after that they affected the subsequent pairing process that prevented it from being paired again.

Children
Related