This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

BLE pairing with IOT SDK

I am trying to add pairing option in IOT examples provided in nrf51_iot_sdk_0.8.0. I don't see device manager interface in this SDK. Are there sample examples I can use to implement ble pairing with this SDK?

Even the IOT SDK documentation doesn't talk about pairing APIs.

  • The IoT SDK doesn't include Device Manager (or Pstorage used by Device Manager). This just means that it hasn't been tested, so there are no examples. I think it should work, but I can't guarantee it. Arnaud Nelissen tried to add Pstorage to the IoT SDK (see this), he had some issues, I'm not sure if he resolved them. If you want to try, you can fetch the libraries from the normal SDK, and follow this tutorial on implementing Device Manager. If you decide to do this, and get into trouble, please add a new question with a reference to this question, and describe what you have tried, and what is happening.

    I'll try to look into this some more, I'll update this question with my findings.

    Edit 04.08.2015: I'm sorry, I misread your question, I read bonding not pairing. If you only want to pair you don't need to use the device manager (or pstorage). Then you can just reply when you get BLE_GAP_EVT_SEC_PARAMS_REQUEST. Please see this MSC. Or if you want to ask the central to pair you can call sd_ble_gap_authenticate(), please see this MSC. This is however from the peripheral side, I'm not sure how the central side, the router, will behave.

    I have given this some thought I would like to ask you what the use case is of doing pairing. If it is to encrypt the IPv6 packets between the node and the router it may not make much sense, the packets will still be unsecure when they leave the router. Please try to update your question to include some information about what you want to achieve with pairing.

Related