This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Supervision timeout in central device

Hi,

I am using CC2541F256.

I am using Central mode in my application.

I have kept following values in connection parameters

// minimum connection interval

#define DEFAULT_UPDATE_MIN_CONN_INTERVAL 400

// maximum connection interval

#define DEFAULT_UPDATE_MAX_CONN_INTERVAL      800

//supervision time out 

#define DEFAULT_UPDATE_CONN_TIMEOUT           600

i guess , after connection with peripheral device if i move my central device out of range from peripheral 

Central should take 6 seconds for link terminate.

But it takes around 18 seconds in my case.

What can be the reason for that 

  • Hello smitesh,

    I have the same issue.

    Some news?

    Regards

    JC

  • Hey JC,

    There can be a couple things happening. What is your peripheral device and does it allow connection parameter updates?

    Are you actually seeing the connection paramter update packet? This is sent from the central after a HAL_KEY_RIGHT press which depending on your HW might not be getting pressed.

    The default timeout for a new connection is 20sec which might be what you are seeing (check the variable TGAP_CONN_EST_SUPERV_TIMEOUT_DEFAULT). This value is used to set the timeout for any connections established using GAP_EstablishLinkReq() and then the update packet must be sent and the peripheral device must allow conn updates to change the timeout.

    You could also use Gap_SetParamValue() to change TGAP_CONN_EST_SUPERV_TIMEOUT from the default 20 seconds.

    -Matt

     

  • Hello Math,

    Thanks for your reply.

    I used GAP_SetParamValue(TGAP_CONN_EST_SUPERV_TIMEOUT, 100); in the Init function and now the peripheral device is disconnected after 1000ms in all the conditions.

    Regards

    Julio