Reconnecting bonded device using SDK15.2/SD6.1.0 sometimes fails with x0085 pairing not supported.

tp144_005_sdk14.log
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:00:59.783  ADV: Sys=FFFFFFFF Dev=0 VBat=4148 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> SD:  BLE_GAP_EVT_AUTH_STATUS
 0> 0:01:01.476  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GATTS_EVT_WRITE
 0> NUS:BLE_GATTS_EVT_WRITE
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  BLE_GATTS_EVT_WRITE
 0> NUS:BLE_GATTS_EVT_WRITE
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  BLE_GATTS_EVT_WRITE
 0> NUS:BLE_GATTS_EVT_WRITE
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> SD:  BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> SD:  BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> 0:01:29.708  BLE: Inactivity timeout.  Connection Lockout timer started
 0> SD:  BLE_GAP_EVT_DISCONNECTED
 0> 0:01:29.825  BLE: Disconnect Reason x0016 (TERM BY DEVICE)
 0> PMM: DISCONNECTED, active 0x0
 0> 0:01:29.865  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> NCE: bd_addr1 xEFF00F3689C3
 0> NCE: bd_addr2 xB88A60D87B55
 0> NONCE: rand_num 5B9A58F7
 0> PK:  device passkey 179A38B82A5E3F67
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:01:29.964  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  BLE_GATTS_EVT_WRITE
 0> NUS:BLE_GATTS_EVT_WRITE
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  BLE_GATTS_EVT_WRITE
 0> NUS:BLE_GATTS_EVT_WRITE
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  BLE_GAP_EVT_DISCONNECTED
 0> 0:01:33.785  BLE: Disconnect Reason x0013 (TERM BY HOST)
 0> PMM: DISCONNECTED, active 0x0
 0> 0:01:33.849  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> 0:01:34.708  BLE: Connection Lockout timer expired.  BLE access restored.
 0> SD:  BLE_GAP_EVT_TIMEOUT
 0> 0:03:01.505  ADV: Sys=FFFFFFFF Dev=0 VBat=4091 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GAP_EVT_TIMEOUT
 0> 0:05:01.435  ADV: Sys=FFFFFFFF Dev=0 VBat=4053 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  BLE_GAP_EVT_TIMEOUT

tp144_005_sdk15.log
 0> BLE: Passkey received.  Unauthorized timer restarted
 0> on_write:565 resp 1
 0> status 0 err_code 0
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> BLE_NUS_EVT_RX_DATA
 0> 0:01:46.274  BLE host detected
 0> 
 0> 
 0> on_write:565 resp 0
 0> 0:01:46.277  Session End
 0> 0:01:46.277  NAK: 010001 01 (Session Not Started)
 0> 
 0> 0:01:46.278  BLE host terminated
 0> SD:  57 BLE_GATTS_EVT_HVN_TX_COMPLETE
 0> SD:  57 BLE_GATTS_EVT_HVN_TX_COMPLETE
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:01:46.995  BLE: Disconnect Reason x0013 (TERM BY HOST)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:01:47.045  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> SD:  10 BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:01:54.217  ADV: Sys=FFFFFFFF Dev=0 VBat=4118 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
 0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_START
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> smd_params_reply:825
 0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
 0> PM:  PM_EVT_CONN_SEC_FAILED
 0> 0:01:54.554  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> 0:01:55.555  BLE: Connection Lockout timer expired.  BLE access restored.
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> 0:02:02.385  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> 0:02:24.144  BLE: Inactivity timeout.  Connection Lockout timer started
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:02:24.285  BLE: Disconnect Reason x0016 (TERM BY DEVICE)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:02:24.299  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> SD:  10 BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:02:26.889  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
 0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_START
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> smd_params_reply:825
 0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
 0> PM:  PM_EVT_CONN_SEC_FAILED
 0> 0:02:27.255  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> 0:02:28.255  BLE: Connection Lockout timer expired.  BLE access restored.
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> SD:  50 BLE_GATTS_EVT_WRITE
 0> on_write:457 resp 0
 0> on_write:565 resp 0
 0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
 0> 0:02:56.866  BLE: Inactivity timeout.  Connection Lockout timer started
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:02:56.956  BLE: Disconnect Reason x0016 (TERM BY DEVICE)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:02:56.971  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  10 BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:02:57.370  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
 0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_START
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> smd_params_reply:825
 0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
 0> PM:  PM_EVT_CONN_SEC_FAILED
 0> 0:02:57.675  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> 0:02:58.676  BLE: Connection Lockout timer expired.  BLE access restored.
 0> 0:03:27.298  BLE: Inactivity timeout.  Connection Lockout timer started
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:03:27.376  BLE: Disconnect Reason x0016 (TERM BY DEVICE)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:03:27.452  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  10 BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:03:27.850  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
 0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_START
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> smd_params_reply:825
 0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
 0> PM:  PM_EVT_CONN_SEC_FAILED
 0> 0:03:28.157  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> 0:03:29.157  BLE: Connection Lockout timer expired.  BLE access restored.
 0> 0:03:57.776  BLE: Inactivity timeout.  Connection Lockout timer started
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:03:57.857  BLE: Disconnect Reason x0016 (TERM BY DEVICE)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:03:57.932  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  10 BLE_GAP_EVT_CONNECTED
 0> BLE: Remote xB88A60D87B55
 0> BLE: GAP connected.  Unauthenticated timer restarted
 0> PM:  PM_EVT_BONDED_PEER_CONNECTED
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  Connected to a previously bonded device.
 0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
 0> PMM: CONNECTED, stored 1 peers
 0> 0:03:58.131  ADV: Sys=FFFFFFFF Dev=0 VBat=4088 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
 0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
 0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
 0> PM:  PM_EVT_CONN_SEC_START
 0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
 0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
 0> smd_params_reply:825
 0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
 0> PM:  PM_EVT_CONN_SEC_FAILED
 0> 0:03:58.517  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> 0:03:59.518  BLE: Connection Lockout timer expired.  BLE access restored.
 0> 0:04:02.415  ADV: Sys=FFFFFFFF Dev=0 VBat=4044 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
 0> SD:  11 BLE_GAP_EVT_DISCONNECTED
 0> 0:04:27.318  BLE: Disconnect Reason x0013 (TERM BY HOST)
 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
 0> 0:04:27.416  ADV: Sys=FFFFFFFF Dev=0 VBat=4044 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
 0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED

# Logging stopped @ 14 Feb 2020 14:40:39

Two traces are attached performing the same function. A connection is made to a bonded device. The peripheral times out and the central tries to reconnect. with SDK 14/SD5.0.0 the reconnect is successful and a new secure connection takes place. With SDK 15.2/SD16.1.0, the reconnect also takes place but fails to be able to secure the connection because of an error 0x0085 pairing not supported.

  • Hi Mark

    It seems like only the version with SDK v.15.2 is using the Peer Manager to call the PM_EVT_CONN_SEC_PARAMS_REQ event. I'm assuming that this request is not handled properly in your newer version as there are some changes between SDK versions. Please check out the peer manager library in order to see what events need to be handled by you.

    Best regards,

    Simon

  • tp144_005_sdk15v4.log
    # SEGGER J-Link RTT Viewer V6.16a Terminal Log File
    # Compiled: 12:44:10 on Jun  6 2017
    # Logging started @ 18 Feb 2020 10:37:02
     0> WDT Event       0x0000000000000000
     0> WDT Channel 0   0x000001350000c71f
     0> WDT Channel 1   0x000001350000c715
     0> WDT Channel 2   0x000001350000c56b
     0> WDT Thread      3
     0> 
     0> wdt_register_long_timer:  1 for 199813
     0> 
     0> REBOOT (310)
     0> Bluetooth Name  NM04-000008 
     0> Board Type      D045 
     0> Model Type      ETM 
     0> FPGA Ver        Model 4 Version 4 
     0> Firmware Ver    1.8.330 
     0> Firmware Type   FIELD_BLE_UART
     0> SoftDevice Ver  6.1.0
     0> BootLoader Ver  6 (INSTALLED)
     0> Mfg Data Ver    4 
     0> Sys Config Ver  10 
     0> AStimulation     Enabled
     0> Acceleration    Disabled (0)
     0> Force Error     Disabled (0)
     0> Electrode Map   Field 8 Contact
     0> Reboot Reason   Restart
     0> 
     0> wdt_register_long_timer:  2 for 190825
     0> BLE: Local BDADDR xEFF00F3689C3
     0> wdt_register_long_timer:  0 for 241797
     0> 0:00:01.448  PWR: Entering normal power
     0> WDT: enable 0
     0> Register TTAP: added handler[0]=x2C4F5
     0> WDT: enable 0
     0> 0:00:01.451  STIM STATE: SEARCHING
     0> 0:00:01.452  ADV: Sys=FFFFFFFF Dev=0 VBat=4158 Amp=0 Err=00 Col=02 Prg=F Ins=0 Post=0 Stim=1 LowP=0 LowB=0 Sess=0 Buzz=1
     0> WDT: enable 1
     0> SD:  10 BLE_GAP_EVT_CONNECTED
     0> BLE: Remote xB88A60D87B55
     0> BLE: GAP connected.  Unauthenticated timer restarted
     0> 0:00:01.565  STIM EVENT: DEVICE FOUND 
     0> 0:00:01.565  STIM STATE: VERIFYING
     0> 0:00:01.653  ADV: Sys=FFFFFFFF Dev=0 VBat=4158 Amp=0 Err=00 Col=02 Prg=F Ins=0 Post=0 Stim=1 LowP=0 LowB=0 Sess=0 Buzz=1
     0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
     0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
     0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
     0> PM:  PM_EVT_CONN_SEC_START
     0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
     0> p_peer_params 20009470, p_context 20009418
     0> before bond 1 mitm 0 lesec 1 keypress 0 io_caps 3 oob 0 min_key_size 0 max key size 16
     0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16
     0> 0:00:02.101  Detected Device ID=x00000325 (not registered)
     0> 0:00:02.102  Registered trim data not found.
     0> 0:00:02.104  Connected to device x00000325
     0> 0:00:02.104  STIM EVENT: IPG CONNECTED 
     0> 0:00:02.104  STIM STATE: CONNECTED IDLE
     0> Unregister TTAP: handler not found: x45271
     0> 0:00:02.149  ADV: Sys=FFFFFFFF Dev=0 VBat=4123 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
     0> SD:  1A BLE_GAP_EVT_CONN_SEC_UPDATE
     0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
     0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
     0> PM:  PM_EVT_CONN_SEC_SUCCEEDED
     0> PM:  Connection secured. Procedure: 1  Role: 1  conn_handle: 0
     0> PMM: CONNECTED, stored 1 peers
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  35 SD_BLE_GATTC_CHAR_VALUE_BY_UUID_READ
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
     0> SD:  52 BLE_GATTS_EVT_SYS_ATTR_MISSING
     0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
     0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
     0> SD:  51 BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST
     0> on_write:457 resp 1
     0> BLE_NUS_EVT_HOST_PASSKEY_DATA
     0> 0:00:06.709  PK:  Authentication OK
     0> BLE: Passkey received.  Unauthorized timer restarted
     0> on_write:565 resp 1
     0> status 0 err_code 0
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> BLE_NUS_EVT_RX_DATA
     0> 0:00:06.830  BLE host detected
     0> 
     0> 
     0> on_write:565 resp 0
     0> 0:00:06.832  Session End
     0> 0:00:06.832  NAK: 010001 01 (Session Not Started)
     0> 
     0> 0:00:06.832  BLE host terminated
     0> SD:  57 BLE_GATTS_EVT_HVN_TX_COMPLETE
     0> SD:  57 BLE_GATTS_EVT_HVN_TX_COMPLETE
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  11 BLE_GAP_EVT_DISCONNECTED
     0> 0:00:07.429  BLE: Disconnect Reason x0013 (TERM BY HOST)
     0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
     0> 0:00:07.528  ADV: Sys=FFFFFFFF Dev=0 VBat=4123 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
     0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
     0> SD:  10 BLE_GAP_EVT_CONNECTED
     0> BLE: Remote xB88A60D87B55
     0> BLE: GAP connected.  Unauthenticated timer restarted
     0> PM:  PM_EVT_BONDED_PEER_CONNECTED
     0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
     0> p_peer_params 00000000, p_context 20009378
     0> before bond 0 mitm 0 lesec 0 keypress 0 io_caps 0 oob 0 min_key_size 4 max key size 0
     0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16
     0> PM:  Connected to a previously bonded device.
     0> PM:  PM_EVT_LOCAL_DB_CACHE_APPLIED
     0> PMM: CONNECTED, stored 1 peers
     0> 0:00:19.182  ADV: Sys=FFFFFFFF Dev=0 VBat=4123 Amp=0 Err=00 Col=02 Prg=F Ins=3 Post=0 Stim=2 LowP=0 LowB=0 Sess=0 Buzz=1
     0> SD:  55 BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
     0> SD:  3A SD_BLE_GATTC_EXCHANGE_MTU_REQUEST
     0> SD:  13 BLE_GAP_EVT_SEC_PARAMS_REQUEST
     0> PM:  PM_EVT_CONN_SEC_START
     0> PM:  PM_EVT_CONN_SEC_PARAMS_REQ
     0> p_peer_params 20009470, p_context 20009418
     0> before bond 1 mitm 0 lesec 1 keypress 0 io_caps 3 oob 0 min_key_size 0 max key size 16
     0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16
     0> PM:  PM_EVT_CONN_SEC_CONFIG_REQ
     0> smd_params_reply:825
     0> SD:  19 BLE_GAP_EVT_AUTH_STATUS
     0> PM:  PM_EVT_CONN_SEC_FAILED
     0> 0:00:19.489  PM:  Failed to secure connection.  Error: 0085.  Connection Lockout timer started
     0> SD:  26 BLE_GAP_EVT_ADV_SET_TERMINATED
     0> 0:00:20.490  BLE: Connection Lockout timer expired.  BLE access restored.
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  12 BLE_GAP_EVT_CONN_PARAM_UPDATE
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
     0> SD:  50 BLE_GATTS_EVT_WRITE
     0> on_write:457 resp 0
     0> on_write:565 resp 0
     0> PM:  PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
    
    # Logging stopped @ 18 Feb 2020 10:37:51
    

    Adding printing of the data received in the PM_EVT_CONN_SEC_PARAMS_REQ and the data sent in the response.

    Looks the same as when the secure connection was initially established.

    51 0> before bond 1 mitm 0 lesec 1 keypress 0 io_caps 3 oob 0 min_key_size 0 max key size 16
    52 0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16
    116 0> PMM: DISCONNECTED, active 0x0 keep_bond_state 1
    125 0> before bond 0 mitm 0 lesec 0 keypress 0 io_caps 0 oob 0 min_key_size 4 max key size 0
    126 0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16
    127 0> PM: Connected to a previously bonded device.
    137 0> before bond 1 mitm 0 lesec 1 keypress 0 io_caps 3 oob 0 min_key_size 0 max key size 16
    138 0> after bond 1 mitm 0 lesec 0 keypress 0 io_caps 3 oob 0 min_key_size 7 max key size 16

    142 0> PM: PM_EVT_CONN_SEC_FAILED
    143 0> 0:00:19.489 PM: Failed to secure connection. Error: 0085. Connection Lockout timer started

  • Hi

    Have you set allow_repairing to true in the pm_conn_sec_config_t? If not, you'll have to, as the peer manager does not allow re-pairing by default. Please check out this case for a more thorough explanation of the matter.

    Best regards,

    Simon

  • Hi Mark

    Okay, then I think that's the reason why you're not able to reconnect/re-pair with your device. You'll either have to enable re-pairing or delete the bonding information on both devices when they're disconnected like this.

    Best regards,

    Simon

    NOTE: I see that I forgot to add the link to the case explaining this yesterday. I have updated my previous reply to include the link now, and I apologize for not doing so yesterday.

    Best regards,

    Simon

Related