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.

GAP_LINK_TERMINATED because of supervisor timeout

Hi All,

We faced with problem, namely the BLE link used to terminate with the reason 0x08 "Supervisor Timeout". The soluiton was the setting of DEFAULT_UPDATE_CONN_TIMEOUT to a larger value. It works now correctly, but we couldn't figure out the reason. The server sends notifications periodically (with a period of a few seconds), but earlier no notifications were caught on the client side, the link terminated before catching any.

I am very interested in the real cause of this error and the meaning of the DEFAULT_UPDATE_CONN_TIMEOUT parameter (used as the last parameter of GAPCentralRole_UpdateLink() in the simpleBLECentral). Could anyone explain it to me?

Thanks,

Gergo

  • Hi Gergo,

    The supervision timeout parameter specifies the maximum amount of time that either the master or slave can go before receiving a link-layer packet. Both slave and master device maintain their own “Supervision timer”, which resets to zero every time a packet is received. If supervision timer ever reaches the supervision timeout, the device considers the connection lost, and exits the connection state (returning to the advertising, scanning, or standby state).

    The Supervision Timeout is a multiple of 10ms in the range of 100ms and 32.0s. It Must be larger than (1 + slaveLatency) * (ConnInterval) where,

     

    • Slave Latency is any value between 0 and 499, though it cannot exceed:  ((supervisionTimeout / connInterval) – 1)
    • Connection Interval is a multiple of 1.25ms in range of 7.5ms and 4.0s
    Do you know the connection interval and slave latency when this happens? 
    BR

     

  • Hi Nick,

     

    Thanks for your reply. I think, I've understood this concept. The parameters satisfied the inequality above, but probably weren't set properly for this purpose.

     

    BR,

    Gergo