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

Problems with bonding using "Heart Rate Application" example

I am using SDK 15.2

I downloaded both nRF Toolbox and nRF Connect applications on my phone (Lenovo K6 which is running Android 7.0 but i tested the same thing on multiple different android phones with the same result). Uploaded the ble_app_hrs example on the nRF52-DK board.

When I use the nRF Connect I can see the Nordic_HRM device and I can connect to it and I get notification to pair to the device but once I try to pair the device disconnects... Same happens when I use nRF Toolbox using the HRM section, I can connect and I get notification to pair and when I try to pair the device disconnects. If I dont pair I receive values from the board in the nRF Toolbox HRM section but only for few seconds then the board disconnects.

Serial connection displays this info when I try to pair:

<info> app: Connected.
<info> app: GATT ATT MTU on connection 0x0 changed to 247.
<info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
<info> app: BLE_GAP_EVT_AUTH_STATUS: status=0x85 bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0
<info> app: Fast advertising.
<info> app: Disconnected, reason 19.

In the old documentation (found here https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fexamples.html) it says that:

"You can also test the application with nRF Connect by performing the following steps:

  1. Compile and program the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated.
  2. Enable LESC pairing in nRF Connect. Click the settings button, select "Security Settings", check "Enable LE Secure Connection pairing", and click "Apply".
  3. Connect to the device from nRF Connect (the device is advertising as 'Nordic_HRM'). Observe that the BSP_INDICATE_CONNECTED state is indicated.
  4. Observe that the services are shown in the connected device and that you can start receiving values for the Heart Rate and the Battery Service by clicking the 'Play' button. Heart Rate notifications are received every second, and Battery Level notifications are received every two seconds."

but I cant find such options "Enable LE Secure Connection pairing" in the Settings screen of the nRF Connect app... Where can I find the new documentation for the SDK? Where can I find more info about the examples? And lastly how can I fix the pairing issue?

Thanks in advance and best wishes.

Related