Hi all!
I am trying to create a module that transfers the data from a CO2 sensor to my cell phone. I've already managed to send the data to my cell phone via the Bluefruit UART Friend and at this stage, I am trying to manage the power consumption of the device.
For my application, a CO2 sensor measurement is needed every 3-5 minutes, so its quite wasteful to use the BLE all this time. I'd like to know how I can reduce the consumption by putting the BLE into sleep mode and how can I wake it up.
Is the command mode more power-friendly? If so, what is the consumption in command mode? Are there any commands that induce sleep mode?
Thank you in advance.
Bluefruit Friend Sleep Mode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Bluefruit Friend Sleep Mode
On BLE Friend firmware 0.7.0 and higher you have low power advertising.
https://learn.adafruit.com/introducing- ... d?view=all
>= 0.7.0: Low power advertising interval (in milliseconds), default = 417.5 ms
To save power, the Bluefruit modules automatically drop to a lower advertising rate after 'fast advertising timeout' seconds. The default value is 30 seconds ('Fast Advertising Timeout'). The low power advertising interval is hard-coded to approximately 0.6s in firmware < 0.7.0. Support to control the low power interval was added in the 0.7.0 firmware release via an optional fifth parameter.
Code: Select all
Please note the following min and max limitations for the GAP parameters:
Absolute minimum connection interval: 10ms
Absolute maximum connection interval: 4000ms
Absolute minimum fast advertising interval: 20ms
Absolute maximum fast advertisting interval: 10240ms
Absolute minimum low power advertising interval: 20ms
Absolute maximum low power advertising interval: 10240ms
Please be positive and constructive with your questions and comments.