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

Ble connection only on certain events

I want to connect a central and peripheral and only have ble on when the peripheral senses a certain event that exceeds a threshold. Do the devices need to connect on startup to recognize eachother? How is the best way to turn the connection on/off? I am using the heart rate collector as a base.

Parents
  • How often do you expect the peripheral to send data, that is, how often will it pass the threshold? If you establish a connection at the beginning and use a slow connection interval you can use our online power profiler to check the average current consumption of the ble chip. However, if you choose to disconnect between transmits you will have to spend time reconnecting, and; if you don't use bonding you will have to enable notifications every time you connect. If you use bonding you will have to wait until encryption is started before you can start sending notifications. if you scan every 30 second, you will have to advertise for some time for the scanner to pick up the advertisement packet, but I assume that doesn't matter in your application?

Reply
  • How often do you expect the peripheral to send data, that is, how often will it pass the threshold? If you establish a connection at the beginning and use a slow connection interval you can use our online power profiler to check the average current consumption of the ble chip. However, if you choose to disconnect between transmits you will have to spend time reconnecting, and; if you don't use bonding you will have to enable notifications every time you connect. If you use bonding you will have to wait until encryption is started before you can start sending notifications. if you scan every 30 second, you will have to advertise for some time for the scanner to pick up the advertisement packet, but I assume that doesn't matter in your application?

Children
No Data
Related