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

nRF52840 with SDK 15.2 running with BLE and Data Length Extension

Hi all,

I observe a connection supervision timeout (HMI error code 0x08) in my Nordic firmware with certain Android smartphones (controller).

Additional info regarding GATT events: After the last connection parameter update and some GATT events the softdevice stops reporting BLE_GATTS_EVT_HVN_TX_COMPLETE and BLE_GATTS_EVT_WRITE.

After exchanging the MTU request in GATT the controller sends data length update requests over GAP with

  • Max number of payload octets to receive of  251 bytes
  • Max reception time of 2120 us
  • Max number of payload octets to transmit of  135 bytes
  • Max transmission time of 1192 us (BAD CASE) and 2120 us (GOOD CASE)

Any ideas?

Parents Reply
  • Hi, 

    It seems like the nRF terminated the connection. Maybe you can check if you are calling sd_ble_gap_disconnect() in the function on_conn_params_evt(). 

    If you are calling sd_ble_gap_disconnect(), you will see 0x16 (BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION) as disconnect reason on nRF side. Disconnect reason can be printed on the nRF side in ble_evt_handler() like this, snippet:

    case BLE_GAP_EVT_DISCONNECTED:
    NRF_LOG_INFO("Disconnected reason: 0x%x",p_ble_evt->evt.gap_evt.params.disconnected.reason)

    -Amanda H.

Children
Related