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

Why am I get BLE_CONN_PARAMS_EVT_FAILED event?

static void on_conn_params_evt(ble_conn_params_evt_t * p_evt) { uint32_t err_code;

if(p_evt->evt_type == BLE_CONN_PARAMS_EVT_FAILED)
{
    err_code = sd_ble_gap_disconnect(m_conn_handle,     BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);
}
	APP_ERROR_CHECK(err_code);

}

Hi,

When I use notify every 3 seconds to send 8bytes data to phone(Like heart rate service). About 10 minutes,I will get a "on_conn_params_evt" ,event type is BLE_CONN_PARAMS_EVT_FAILED

I have two questions

  1. Why am I receive this event?

  2. When I get this event, it will do "sd_ble_gap_disconnect" function and error_code is not successful,then device will reset because APP_ERROR_CHECK function. Why error_code is not successful?

Thank you.

Elliot.

Parents
  • Hi Elliot,

    This does not look like an error raised by SDK or the SoftDevice. The file ble_f.c is neither part of SDK nor the SoftDevice. Also the error code 0x20002530 does not look like an error that the SDK or the SoftDevice would return. Is my understanding correct that ble_f.c is part of the module you (or someone in your company) have written? In that case, I request you to take at look at line number 141 (hex 0x8d) of that file to see why it is returning an error.

    Cheers, Balaji

Reply
  • Hi Elliot,

    This does not look like an error raised by SDK or the SoftDevice. The file ble_f.c is neither part of SDK nor the SoftDevice. Also the error code 0x20002530 does not look like an error that the SDK or the SoftDevice would return. Is my understanding correct that ble_f.c is part of the module you (or someone in your company) have written? In that case, I request you to take at look at line number 141 (hex 0x8d) of that file to see why it is returning an error.

    Cheers, Balaji

Children
Related