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

PC Repeat Pair

hi

I use nrf52833 and nRF5_SDK_17.0.2_d674dde HID keyborad demo.

1. I pair PC success first , then I erase_bonds ,and repeat pair my pc. with other  address  but PC do not pair OK. if PC delect pair information, it is ok.

2. the same way   repeat pair  android phone is OK.

3. I add PM_EVT_CONN_SEC_FAILED error is BLE_GAP_SEC_STATUS_UNSPECIFIED. 

4. I add

case PM_EVT_CONN_SEC_CONFIG_REQ:
conn_sec_config.allow_repairing= true;
pm_conn_sec_config_reply(p_evt->conn_handle,&conn_sec_config);

break;

But do not run here.

Maybe Have some reason  please or my PC donot support repear pair?

Parents
  • > <info> app: HID Keyboard example started.
    00>
    00> <info> app: Erase bonds!
    00>
    00> <info> peer_manager_handler: All peers deleted.
    00>
    00> <info> app: m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8
    00>
    00> <info> app: Fast advertising.
    00>
    00> <info> app: Connected
    00>
    00> <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 136
    00>
    00> <info> app: Fast advertising.
    00>
    00> <info> app: Disconnected

Reply
  • > <info> app: HID Keyboard example started.
    00>
    00> <info> app: Erase bonds!
    00>
    00> <info> peer_manager_handler: All peers deleted.
    00>
    00> <info> app: m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8
    00>
    00> <info> app: Fast advertising.
    00>
    00> <info> app: Connected
    00>
    00> <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 136
    00>
    00> <info> app: Fast advertising.
    00>
    00> <info> app: Disconnected

Children
No Data
Related