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

reset & disconnect

Hi,

I was considering the following scenario and didn't find an answer. Could you please help?

Assumption:

  • There in a BLE peripheral (e.g. nRF52) and central (smart device).
  • The peripheral currently sends data to the central via Indicate characteristic.

Question:-

  • for some reason the nRF is reset (e.g. reset button) while the connection to the central is active.
  • what happens to the connection?
  • how does the central (smart device) know that the peripheral was reset?
  • what happens to the Indicate characteristic, on the peripheral, central?

Thank you for your reply Matthias

  • The central will tear down it's side of the connection when the connection supervisor timeout expires for that connection. Once the peripheral stops responding to connection events from the central after the reset, the connection supervisor timeout will take care of cleaning things up on the central device.

    The peripheral should reinitialize and set up it's characteristics again. The indicate characteristic will be in it's start of the world state waiting for a connection and to be activated via a CCCD write.

Related