Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set up BLE bonding

Dear Nordic,

we are devepoling FW based on nRF52832, SDK 17.0.2. We have 2 devices:

BLE Central with SD S332

BLE Peripheral with SD S112

We setted up an open BLE communication, the data are exchanging fine. At this development stage we need to add the bonding feature because we need a thrusted communication between central an peripheral.

Could you please suggest us some clear documentation on how to set up the peer manager link well?

There are many questions here on the forum but unfortunately there are no adequate answers for our case. Could you give us the correct links to the documentation?
Please don't tell us to use your examples, we'd rather read a guide with clear explanations rather than having to debug examples that have little documentation.

Thanks for your help!

Parents Reply Children
  • I setted BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM in the gap_params_init function
    Typically when you init the services and characteristics you also define the security requirements to access them

    Usually the services and characteristics aren't initialized in gap_params_init. I'm guessing you still have the characteristics set to BLE_GAP_CONN_SEC_MODE_SET_OPEN.

    I have a project based on one of the SDK examples, and the only security feature set in gap_params_init is for the device name. So I think you may have only set the requirement for changing the device name.

  • mrono said:
    I have a project based on one of the SDK examples, and the only security feature set in gap_params_init is for the device name. So I think you may have only set the requirement for changing the device name.

    Good observation, I did not think of that. Yes, he should go into the services_init() and check the permissions set there.

Related