Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Just Works -- Confirm Value Failed When Pairing

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?

ng-android.pcapng

Parents Reply
  • Hi, Martin:

    I modify as below:

    keys_exchanged.keys_central.p_enc_key  = &central_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:

    ng-android2.pcapng

Children
No Data
Related