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 Reply Children
No Data
Related