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

Random disconnect -> timeout 0x08

Hi, i got a random disconnect and cant find the cause. I found this post devzone.nordicsemi.com/.../ and tried to folow the procedure.

I have set up breakpoints wherever sd_ble_gap_disconnect() is called.

  • on_conn_params_evt() line 183:
  • on_ble_evt() line 302 case BLE_GATTC_EVT_TIMEOUT
  • on_ble_evt() line 310 case BLE_GATTS_EVT_TIMEOUT
  • bsp_event_handler() line 431 case BSP_EVENT_DISCONNECT

but none of this are trigered.

But when i put a breakpoint

  • on_ble_evt() line 282 case BLE_GAP_EVT_DISCONNECTED

and look for a p_ble_evt->evt.gap_evt.params.disconnected.reason i got BLE_HCI_CONNECTION_TIMEOUT (0x08).

I can't find what made the disconnect and where it came from. What should i do?

Parents
  • I see. The BLE_HCI_CONNECTION_TIMEOUT disconnect reason means that the connection timed out, no packets were received from the peer and the supervision timer expired.

    If you haven't changed the supervision timeout or the output power, this is typically because of hardware issues (assuming the distance between the devices are small). For example that the antenna is not working properly, that the crystal isn't working properly and so on.

    The problem could be with the PCA10040, or the device you are connecting to. Do you have any other devices to test with?

Reply
  • I see. The BLE_HCI_CONNECTION_TIMEOUT disconnect reason means that the connection timed out, no packets were received from the peer and the supervision timer expired.

    If you haven't changed the supervision timeout or the output power, this is typically because of hardware issues (assuming the distance between the devices are small). For example that the antenna is not working properly, that the crystal isn't working properly and so on.

    The problem could be with the PCA10040, or the device you are connecting to. Do you have any other devices to test with?

Children
No Data
Related