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

BLE pairing method in nRF52810...

Hello All,

I am working on nRF52810 custom board. I used segger studio in windows 7. For reference i used nRF52 SDK 15.2.0.In my application i used i2c peripheral.

My problem is that i am trying to connection between device(mobile) and BLE. But in this i am not use any pairing method. right now i am add pairing method in my code for secure connectivity. But i don't know how to use pairing method and secure connection between device(mobile) and BLE . In my application i need to pairing connection like user can add password and save bounding of that. And next time same device connect automatically without entering the password??.

And also how can save previous bounding in custom board??.

Which type of pairing method i can use?.

And i am not use any keyboard and display in custom board. Right now i use example of template from SdK.

nRF5_SDK_15.2.0_9412b96_1->examples->ble_peripheral->ble_app_template->pca10040e->s112->ses

In this not use any pairing method.

So please give me suggestion as soon as possible and also give example related it for reference if possible... 

Thanks & regards,

Urvisha Andani 

Parents
  • Hi Urvisha, 

    We already provided you a library for handling pairing and bonding. It's called peer manager library. You can have a look here.

    It's used in ble_app_template, please look for peer_manager_init() in the code. 

    Note that if you want to obligate  pairing and bonding, you would need to modify the attribute permission to require encryption, instead of SEC_OPEN, you can use SEC_JUST_WORKS or SEC_MITM in security_req_t

    You can have a look at ble_app_proximity example which we do have pairing required. 

Reply
  • Hi Urvisha, 

    We already provided you a library for handling pairing and bonding. It's called peer manager library. You can have a look here.

    It's used in ble_app_template, please look for peer_manager_init() in the code. 

    Note that if you want to obligate  pairing and bonding, you would need to modify the attribute permission to require encryption, instead of SEC_OPEN, you can use SEC_JUST_WORKS or SEC_MITM in security_req_t

    You can have a look at ble_app_proximity example which we do have pairing required. 

Children
No Data
Related