Thanks in advanced. Both platforms are: nrf52832, sdk17.0.2. The peripheral is based on ble_app_gls and I set static passkey 123456, the central is based on ble_app_hrs_c, so both sides have peer manager mechanism, I set sec_param.lesc=1 on both sides. I've implemented nus on both sides, I can use cell phone to pair/bond with the peripheral. But with nrf52832 central, I get below traces:
0> <info> app_timer: RTC: initialized. 0> <info> app: Heart Rate collector example started. 0> <info> app: Starting scan. 0> <info> app: Connecting to target F92A1B6369F4 0> <info> app: Connected. 0> <info> app: GATT ATT MTU on connection 0x0 changed to 247. 0> <info> app: Data length for connection 0x0 updated to 251. 0> <info> app: BLE_GAP_EVT_LESC_DHKEY_REQUEST 0> <info> nrf_ble_lesc: Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0 0> <info> app: Discovery complete. 0> <info> app: Connected to device with Nordic UART Service. 0> <info> peer_manager_handler: Connection secured: role: Central, conn_handle: 0, procedure: Bonding 0> <info> app: BLE_GAP_EVT_AUTH_STATUS: status=0x0 bond=0x1 lv4: 0 kdist_own:0x3 kdist_peer:0x2 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update 0> <info> app: Disconnected. 0> <info> app: Starting scan. 0> <info> app: Disconnected, reason 0x13. 0> <info> app: Starting scan. 0> <info> app: Connecting to target F92A1B6369F4 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change 0> <info> app: Connected. 0> <info> app: GATT ATT MTU on connection 0x0 changed to 247. 0> <info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352 0> <info> app: Disconnected. 0> <info> app: Starting scan. 0> <info> app: Disconnected, reason 0x13. 0> <info> app: Starting scan. 0> <info> app: Connecting to target F92A1B6369F4 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change 0> <info> app: Connected. 0> <info> app: GATT ATT MTU on connection 0x0 changed to 247. 0> <info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352 0> <info> app: Disconnected. 0> <info> app: Starting scan. 0> <info> app: Disconnected, reason 0x13.
I don't know how to input passkey in central, the central only has display capability by RTT Viewer. Would anyone tell me how to input passkey and get authority passed?