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

unexpected BLE_GATTC_EVT_TIMEOUT

Hi.

We use nRF5_SDK_17.0.2_d674dde as central

And phone as peripheral.

Usually system works correctly for a long time.

But sometimes it enter in strange state.

Connections are broken every 30 seconds after successful connection.


I have think previously, it is because of no activity on NUS service.

So sending NUS message after BLE_NUS_C_EVT_DISCOVERY_COMPLET was added.

But it doesn't help.

Please teach a nature of this behavior and advice steps to prevent it.

Thanks. BR.

Parents Reply
  • It will be difficult to debug without an on-air sniffer log. You can try to output all events that is occurring, and check if there is an event that only occur in one of the logs when disconnecting. E.g. output p_ble_evt->header.evt_id in ble_evt_handler(), though it will be many, but on the other end you are just looking for an event that does not occur in both logs.

    Kenneth

Children
Related