Confusion about BLE connection interval and how often the Peripheral will send data to the Central

Hi everyone,

Does anyone ever get confused about BLE connection interval? As explained in this post, it determines how often the Central will ask for data from the Peripheral (min 7.5 ms -- max 4 sec). For my application, I'm using a timer and set it every 10 seconds which the timer_callback function will be called to send the data to the Central. 

So 10 seconds here will be determined as how often the Peripheral will send the data to the Central, is that correct? What happens if even Central asks for data from the Peripheral, however, the Peripheral hasn't sent it yet because it was set up to send the data to Center every 10 seconds? In this case, during the connection interval, what data the Peripheral will send to the Central? 

Thanks,

Tai 

Parents
  • Hello, 

    Using timer_callback, the 10 seconds here can not be determined as how often the Peripheral will send the data to the Central.

    If no data is sent from the peripheral to the central, the BLE protocol also stipulates that heartbeat packets will be sent according to the connection interval settings.

    Hope it helps.

    BR./Zara Wu (RF-star technology)

Reply
  • Hello, 

    Using timer_callback, the 10 seconds here can not be determined as how often the Peripheral will send the data to the Central.

    If no data is sent from the peripheral to the central, the BLE protocol also stipulates that heartbeat packets will be sent according to the connection interval settings.

    Hope it helps.

    BR./Zara Wu (RF-star technology)

Children
Related