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

Porting Peer manager or How to do bonding

Firstly my current usecase:

We are using a STM32 as a main processor. the STM uses UART to communicate with the nRF52 using the serialization stuff. I currently have most of it working and ported. I can use the hrs example, connect to the Nordic_HRM and get heartrate measurements. This does not include bonding and pairing though.

What i want:
I want to be able to start a pairing and bonding procedure from the STM using the serialization. 

The problem:

The bonding and pairing is handeled by the peer manager and corresponding files on the nRF52 library. These files use A LOT of internal nRF parts. including atommic functions, queues flash stoage, crypto etc. And consist of a lot and a lot of files. I am trying to get this to work under the STM but can't even get it to compile. It also uses the nRF flash storage to save bonding information. I dont mind writing my own stuff for this ofcourse and eventually we will need to safe this bonding information on the SD card connected to the STM.

I would like a pointer where to start with porting this managing of peers or how to do pairing and bonding without these libraries, what information needs to be send, the events etc. 

Ideally i would have all the parts that are needed for bonding so that i have the most control over the flow on the STM and saving information etc.

Related