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

Pairing with static passkey without bonding

I am using ble_app_gls s130 SDK_11. Is it possible to have pairing with static passkey without bonding? This is because the nRF device will be connected to different smartphones all the time and there is no need to remember past phones that were connected.

I have already implemented static passkey on ble_app_gls. I do not know which part of the code to change to remove bonding.

Parents
  • It is possible. It should be to simply to change SEC_PARAM_BOND to 0.

    Please be aware that there could be issues with iOS disconnecting if you try to only pair, not bond.

    Edit 08.08.2016:

    You also need set the following to 0:

    sec_param.kdist_own.enc     = 0;
    sec_param.kdist_own.id      = 0;
    sec_param.kdist_peer.enc    = 0;
    sec_param.kdist_peer.id     = 0;
    

    or else pm_sec_params_set() will return an error.

Reply
  • It is possible. It should be to simply to change SEC_PARAM_BOND to 0.

    Please be aware that there could be issues with iOS disconnecting if you try to only pair, not bond.

    Edit 08.08.2016:

    You also need set the following to 0:

    sec_param.kdist_own.enc     = 0;
    sec_param.kdist_own.id      = 0;
    sec_param.kdist_peer.enc    = 0;
    sec_param.kdist_peer.id     = 0;
    

    or else pm_sec_params_set() will return an error.

Children
Related