sdk 17 pca10056 s140nrf52840 pairing bonding and encryption of data

Hello,

I am currently developing an application using as template the ble_app_uart. 

My application works fine so far but we would like to add as a feature the pairing, bonding and encryption of data.

As i can understand i will need to implement the peer_manager library correct ? Do you have any examples were i can use as a basis for my application ? I have tried looking at ble_app_hrs but i was not able to make it work yet.

Also, do you have any documentation that has more information regarding pairing , bonding and encryption ?

Thanks
Kleanthis

  • FDS libraryHi,

    Most of the BLE peripheral examples use the peer manager, though ble_app_uart. There are not many code changes needed to use the peer manager, and the ble_app_hrs example which you have found is a good one to look at. What is a bit problematic is that due to the organization of the SDK there are a lot of files, include paths and sdk_config.h configurations that are needed. Therefor, it might save you time to take ble_app_hrs example as starting point, and port over your changes from your ble_app_uart based application.

    Regarding documentation, the peer manager documentation gives you a good understanding of it. Note that the peer manger depends on the FDS library for persistent flash storage, and typically 3 pages are reserved for that.

Related