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

How to determine if a disconnection is due to a bad signal (signal loss)

Hi,

I am trying to detect if a disconnection occurs due to a signal loss.

In the application's BLE Stack event handler, I have found that there is a disconnect reason in the ble_evt_t parameter : p_ble_evt->evt->gap_evt->params->disconnected->reason

In case of proper disconnection from peripheral or central, I have got 0x13 or 0x16 which are correct values accordign to the SDK : devzone.nordicsemi.com/.../a01162.html

But the reason value is never the same (0x90, 0x8F, 0x4E, ... not initialized?) in case of disconnection due to a bad signal, I don't find any constant in the documentation for this case.

Is there a possibility to know that a disconnection occurs due to a signal loss?

Thanks

Parents Reply Children
No Data
Related