nRF5 SDK v15.0.0
Bond Management Application
This example requires one of the following SoftDevices: S112, S132, S140

Important: Before you run this example, make sure to program the SoftDevice.

The Bond Management Application is an example that demonstrates how to use the Bond Management Service. The example shows how to manage the storage of bond information and how to delete bonds after they have been established.

Note
This application is not power optimized!

The application includes one service:

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\ble_app_bms

Testing

Test the Bond Management Application with the nRF Toolbox app, which is available on both iOS (App Store) and Android (Google Play).

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. Connect to the device from nRF Connect (the device is advertising as 'Nordic_BMS'), then bond to the device. To bond, click the settings button for the device in nRF Connect, select "Pair", check "Perform Bonding", and click "Pair". Wait until the bond is established before you continue.
  3. Observe that the BSP_INDICATE_CONNECTED state is indicated.
  4. Observe that the services are shown in the connected device.
  5. Disconnect the device and reconnect in nRF Connect. Observe that the devices are still bonded, thus link encryption is ON.
  6. Observe that the Feature Characteristic (0x2AA5) of the Bond Management Service (0x181E) displays 20-08-02. This means that the following is supported: Deletion of the bonds for the current connection, deletion of all bonds, and deleting all but the requesting device's bond.
  7. Write '03 41 42 43 44' to the Bond Management Service Control Point Characteristic (0x2AA4). 03 is the command to delete the current bond, followed by the authorization code ABCD.
  8. Disconnect the device to trigger the bond deletion procedures.
  9. Observe that the BSP_INDICATE_ADVERTISING state is indicated.
  10. Reconnect to the device and observe that the link is not encrypted ("Security updated, mode:1, level:1").

Documentation feedback | Developer Zone | Subscribe | Updated