Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Beacon Ranging vs GPS tracking battery usage

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?

like image 269
Eric B. Avatar asked Mar 21 '15 17:03

Eric B.


1 Answers

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.

like image 124
davidgyoung Avatar answered Sep 28 '22 18:09

davidgyoung