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

pairing rejected by nordic_bps

 Hi,
 
I am using nrf52840 dongle and tried to program it with the example that was provided with sdk15. I programmed it with ble_app_bps, it successfully paired with my device  in nrf connect mobile app and I could read some sample measurement which is provided in development code. Then I accidentally deleted the pairing information on my mobile phone and after that I cannot pair with the dongle anymore and it keeps disconnecting. I have tested it with other code as well but it has the same problem. The message that I get is 'pairing rejected by nordic_bps (or bms or blinky... '. This happens for other mobile devices after deleting the pairing information on mobile as well. I appreciate if you could help me to debug/solve the problem?
Best regards,
Kosar​
Parents
  • Hello,

    Can you try to allow re-pairing by adding the following in pm_evt_handler() in main.c

    case PM_EVT_CONN_SEC_CONFIG_REQ:
    {
    // Allow or reject pairing request from an already bonded peer.
    pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
    pm_conn_sec_config_reply(p_evt->conn_handle, &conn_sec_config);
    } break;

    Best regards,
    Kenneth

Reply
  • Hello,

    Can you try to allow re-pairing by adding the following in pm_evt_handler() in main.c

    case PM_EVT_CONN_SEC_CONFIG_REQ:
    {
    // Allow or reject pairing request from an already bonded peer.
    pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
    pm_conn_sec_config_reply(p_evt->conn_handle, &conn_sec_config);
    } break;

    Best regards,
    Kenneth

Children
Related