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

Pairing/bonding with ble_app_template example not working for me

Hi,

I just recently got into designing Bluetooth devices and I am experimenting with NRF51822 and BLE400 board. I managed to compile and upload the examples from SDK 11.0.0 to the device with SEGGER Embedded Studio and I can advertise and connect to the device with nRF Connect app on my Android phone.

When I try to bond with nRF Connect it just hangs up after a couple of seconds. A similar thing happens if I try to pair with the phone directly.

Is there something I have to implement in the code of the example app?

Parents
  • I managed to enable the logs and I got NRF_ERROR_INTERNAL I also tracked the PM_EVT_ERROR_UNEXPECTED and it gets called by SM_EVT_ERROR_UNEXPECTED on line 300 in peer_manager.c

    I will look at the tutorials maybe I will find something useful. To set up the project I just opened the GitHub project that I mentioned before. That worked out of the box. Then I imported the project from examples to SEGGER Studio and changed the .emProject file to resemble the file from GitHub project. I think that I might have missed out some detail in that process that may have caused this behavior.

Reply
  • I managed to enable the logs and I got NRF_ERROR_INTERNAL I also tracked the PM_EVT_ERROR_UNEXPECTED and it gets called by SM_EVT_ERROR_UNEXPECTED on line 300 in peer_manager.c

    I will look at the tutorials maybe I will find something useful. To set up the project I just opened the GitHub project that I mentioned before. That worked out of the box. Then I imported the project from examples to SEGGER Studio and changed the .emProject file to resemble the file from GitHub project. I think that I might have missed out some detail in that process that may have caused this behavior.

Children
No Data
Related