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

"Pairing rejected by Nordic_HRM"

While I am going to pair with my android 9 Asus mobile phone with SDK 17 nRF52840. It in my mobile showing "Pairing rejected by Nordic_HRM". After that  I have added a some code line to

static void peer_manager_init(bool erase_bonds);

sec_param.bond = false;
sec_param.mitm = false;
sec_param.lesc = 0;
sec_param.keypress = 0;
sec_param.oob = false;
sec_param.min_key_size = 7;
sec_param.max_key_size = 16;
sec_param.kdist_own.enc = 0;
sec_param.kdist_own.id = 0;
sec_param.kdist_peer.enc = 0;
sec_param.kdist_peer.id = 0;
And getting same "Pairing rejected by Nordic_HRM"
After that I have added this code,
sec_param.bond = true;
sec_param.mitm = false;
sec_param.lesc = 0;
sec_param.keypress = 0;
sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
sec_param.oob = false;
sec_param.min_key_size = 7;
sec_param.max_key_size = 16;
sec_param.kdist_own.enc = 1;
sec_param.kdist_own.id = 1;
sec_param.kdist_peer.enc = 1;
sec_param.kdist_peer.id = 1;
And getting same "Pairing rejected by Nordic_HRM"
Please give some solution.
Parents
  • Hi

    Could it be that the pairing information is stored in one of the devices, as errors like these are prone to happen if one of the devices thinks it is connected to the other one? On the nRF side, please try doing an nrfjprog --eraseall with the nRF Command line tools or with the nRF Connect for Desktop Programmer application. On the Asus mobile, please try deleting bonding information as well. 

    Best regards,

    Simon

Reply
  • Hi

    Could it be that the pairing information is stored in one of the devices, as errors like these are prone to happen if one of the devices thinks it is connected to the other one? On the nRF side, please try doing an nrfjprog --eraseall with the nRF Command line tools or with the nRF Connect for Desktop Programmer application. On the Asus mobile, please try deleting bonding information as well. 

    Best regards,

    Simon

Children
No Data
Related