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

disconnect reason 0x8

  • When I use this example:ble_central\ble_app_uart_c   (SDK_17.0.2  S132  nrf52832)  

  • It disconnects every few seconds and reason 0x8.  
  • LOG :

    <info> app: conn_Param Update Request

    <info> app: conn_Param Update: 12,12,0,200

    <info> app: Disconnected.

    <debug> ble_scan: Scanning

    <info> app: Disconnected. conn_handle: 0x0, reason: 0x8

  • These Log Printed by
  • case BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST:
    // Accepting parameters requested by peer.
    NRF_LOG_INFO("conn_Param Update Request");
    err_code = sd_ble_gap_conn_param_update(p_gap_evt->conn_handle,
    &p_gap_evt->params.conn_param_update_request.conn_params);
    APP_ERROR_CHECK(err_code);
    break;
  • case BLE_GAP_EVT_CONN_PARAM_UPDATE:
    NRF_LOG_INFO("conn_Param Update: %d,%d,%d,%d",
    p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.min_conn_interval,
    p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.max_conn_interval,
    p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.slave_latency,
    p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.conn_sup_timeout
    );
    break;
  • case BLE_GAP_EVT_DISCONNECTED:

    NRF_LOG_INFO("Disconnected. conn_handle: 0x%x, reason: 0x%x",
    p_gap_evt->conn_handle,
    p_gap_evt->params.disconnected.reason);
    break;

  • If I don't call sd_ble_gap_conn_param_update when BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST event occerd,It will not disconnect and work good. 
Parents Reply Children
Related