I'm looking at implementing a beacon based app to do some location tracking based on beacon placement. From what I've read and understood, beacon monitoring is fairly innocuous on battery life but ranging definitely takes a bigger hit on battery life.
Are there any specs or tricks/techniques to minimize battery consumption when ranging? How does battery life when ranging compare to GPS location tracking?
Beacon ranging uses much less battery than GPS tracking, because it powers up the Bluetooth Low Energy radio receiver vs. the GPS receiver. Although, I don't have specific numbers, the GPS receiver is much more power hungry.
The difference in power consumption between Ranging and Monitoring is a bit muddy and is different between iOS and Android. On iOS, ranging is only allowed in the foreground unless you have a special background permission (which you can only get if you have a navigation app). When done in the foreground, ranging uses much less power than the screen, so it is insignificant.
Constant ranging in the background (possible on Android and on iOS with special permission) will drain the battery at a rate similar to cellular standby. In other words, expect that the battery of a phone that is ranging will drain twice as fast as a phone that is just sitting idle with its screen off but its cellular radio on.
An important caveat is that just because you enable ranging for an app and move it to the background, doesn't mean it will range constantly. As mentioned, iOS will normally shut down ranging five seconds after the app leaves the foreground. Similarly, Android devices using the Android Beacon Library will throttle background ranging to only happen 10 seconds out of every five minutes. On Android you must specifically configure it to do otherwise, and on iOS you must provide special permission.
What special tricks can you do to minimize battery consumption when ranging? Don't do it constantly. Accept the defaults above or throttle ranging manually so you only range 10% of the time or less.
Monitoring in the background uses less power than constant ranging because it doesn't do an active scan all the time. iPhone 5+ and Android 5+ devices use hardware assist in the bluetooth chip to trigger off of beacon patterns without doing an active scan. iPhone 4S and Android 4.x devices throttle the scanning automatically to keep battery usage low.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With