SDK_V10, S110_V8.0.0,
Just Works, getting error BLE_GAP_SEC_STATUS_CONFIRM_VALUE when bonding, attached file is Sniffer data. What is the problem?
SDK_V10, S110_V8.0.0,
Just Works, getting error BLE_GAP_SEC_STATUS_CONFIRM_VALUE when bonding, attached file is Sniffer data. What is the problem?
What does sd_ble_gap_sec_params_reply() return?
Hi, Martin:
I modify as below:
keys_exchanged.keys_central.p_enc_key = ¢ral_peer_enc_key; keys_exchanged.keys_central.p_id_key = &m_peer_table[m_connection_table[index].bonded_dev_id].peer_id; keys_exchanged.keys_central.p_sign_key = NULL; keys_exchanged.keys_periph.p_enc_key = &m_bond_table[index].peer_enc_key; keys_exchanged.keys_periph.p_id_key = NULL; keys_exchanged.keys_periph.p_sign_key = NULL; err_code = sd_ble_gap_sec_params_reply(p_ble_evt->evt.gap_evt.conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, &m_application_table[0].sec_param, &keys_exchanged); if (err_code != NRF_SUCCESS) { DM_LOG("[DM]: Security parameter reply request failed, reason 0x%08X.\r\n", err_code); event_result = err_code; notify_app = false; }
But after bonding successfully several times, it still return Confirm Value Failed error. Please check the Sniffer data:
Hi, Martin:
I modify as below:
keys_exchanged.keys_central.p_enc_key = ¢ral_peer_enc_key; keys_exchanged.keys_central.p_id_key = &m_peer_table[m_connection_table[index].bonded_dev_id].peer_id; keys_exchanged.keys_central.p_sign_key = NULL; keys_exchanged.keys_periph.p_enc_key = &m_bond_table[index].peer_enc_key; keys_exchanged.keys_periph.p_id_key = NULL; keys_exchanged.keys_periph.p_sign_key = NULL; err_code = sd_ble_gap_sec_params_reply(p_ble_evt->evt.gap_evt.conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, &m_application_table[0].sec_param, &keys_exchanged); if (err_code != NRF_SUCCESS) { DM_LOG("[DM]: Security parameter reply request failed, reason 0x%08X.\r\n", err_code); event_result = err_code; notify_app = false; }
But after bonding successfully several times, it still return Confirm Value Failed error. Please check the Sniffer data: