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, 

    SebastianGutzwiller said:
    The reason for disconnect on nRF side has been integrated long time ago, see initial description.

    From your nrf-Connect-Log-1.txt, we saw the disconnection reason is Connection terminated by peer (status 19). If you send disconnect request from your peripheral, you get onConnectionStateChanged with status = 19 (0x13 = GATT CONN TERMINATE PEER USER). That is why we want you to print the disconnect reason in the code. However, you indicated the disconnect reason is HMI error code 0x08 and you also said: 

    SebastianGutzwiller said:
    After several tries with 'nRF Connect' no supervision timeout happened, see one example with BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION in ndk_s7_nrf_connect.pcapng

    You have to identify what is the disconnection reason.  

    For BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION, you have to check if you are calling sd_ble_gap_disconnect(). For BLE_HCI_CONNECTION_TIMEOUT, you will get status = 8 (0x08 = GATT CONN TIMEOUT) on RF connect side if you just restart your device, or you go out of range, or other reason of loss of comms. 

    What is the Android OS on your phone? Not sure this post can help or not. 

    If you are debugging this with SES, you might find this video useful.

    -Amanda H.

Children
Related