Dears,
I try to use CC2541 devices in a mission critical application, where the data transfer must to be always active or in case of lost connection retry to reconnect. Currently, the peripheral device don't know when the central device turn off. In this case, when the central device restart, cannot reconnect to the device because is already in Connected state.
I'm using the BLEv1.4.0 in a Central & Peripheral application. I use a Keyfob as peripheral and a SmartRF05 board as Central.
In both devices, I use a supervision timeout of 1000ms:
#define DEFAULT_UPDATE_CONN_TIMEOUT 100
The central device is connected with the peripheral without problem. However, If the central device is turn OFF, the LED in the peripheral device continuing blinking. This will disconnect ~20 seconds later. Before that, the central device cannot reconnect with the peripheral device.
However, in the following two (2) cases, the the peripheral device will disconnect according with the supervision timeout (1000ms):
- I use the method "GAPCentralRole_UpdateLink" in the central device after the connection is established.
- I setup a notification in the peripheral device after the connection is established.
I have some questions:
- The value "DEFAULT_UPDATE_CONN_TIMEOUT" is used by the stack when the connection is established?
- Is required to update the link (GAPCentralRole_UpdateLink) every time that the peripheral is connected?
- There are other parameters that need to change? or this is an known issue?
Thanks for any advice,
JC