Network and Battery Usage
To evaluate battery usage for Data Source component that generates data from sensors as well as network usage for datacollector. Here follows Android's standard method battery-historian
Prerequisites
-
Presently, Data Source on android only collects GpsProbe data(for basepackage) with different frequencies, refer to Configuration for Data Source
-
Test on a demo auto-generated android app with only datasource and datacollector integrated. Keep the app running foreground with datasource and datacollector working standalone.
-
Clear logcat and previous battery data, then disconnect device and perform test, finally retrieve statistics out of bugreport.zip generated
Estimated Statistics
Below list statistics of battery and network consumption per hour for low/medium/high collect levels, on a Samsung S6 tablet(Android API 9, 6000mAh), when basepackage in Datasource is configured which only collects Gps data.
Usage/Level | low(0.1Hz) | medium(0.2Hz) | high(1Hz) |
---|---|---|---|
Battery | 42mAh(0.7% total) | 60mAh(1% total) | 270mAh(4.5% total) |
Network | 20 KB(uploaded) | 25 KB(uploaded) | 120 KB(uploaded) |