Top Banner
Demo: Phone Power Monitoring with BattOr Aaron Schulman ? (student), Thomas Schmid , Prabal Dutta , Neil Spring ? [email protected] [email protected] [email protected] [email protected] ? University of Maryland University of Utah University of Michigan 1. INTRODUCTION The mobile phone research community accepts that mobile phone energy consumption is important to the design and evaluation of their systems. For example, many researchers have improved the energy efficiency of phone localization [3, 4, 11]. In several research papers, energy consumption mea- surements of mobile systems are simply plots of battery drain over time, with and without the system [4, 9]. This measurement is easy to obtain, as most phones can report battery percentage samples every few seconds. However, because the measurement is coarse-grained, researchers can not tell which part of their system is consuming the energy. Additionally, because the units are not defined, it is difficult to compare across devices and even across systems on the same type of device. To our knowledge, no power monitor exists that is mobile, inexpensive, and easy to use. A power monitor with these properties has the potential to replace the cur- rent method of quantifying energy consumption using percentage of battery consumed. Recently, phone power monitors have been used to understand the energy properties of the most energy- consuming phone peripherals, such as cellular and WiFi radios. As a result of these experiments, it is understood that cellular radios have significant tail energy [2, 5, 8] and that signal strength affects energy consumption [7]. We aim to bring such phone power monitoring to all systems built on mobile phones. An alternative approach to power monitoring is to compute energy consumed by modeling each periph- eral’s energy consumption and then monitoring the ac- tivity of the peripherals. PowerBooter [10] and the cor- responding monitoring application, PowerTutor, do just this. The advantage of modeling is that no additional hardware is needed. The disadvantages are that models only provide an estimate of power consumption and and they can only measure energy consumed while the CPU is active. With a power model, researchers can accurately ob- serve when they are using the peripherals that consume the most power, but the accuracy and precision of the power estimates is limited by the granularity of the OS Figure 1: The BattOr monitoring the power of an HTC Hero. The copper tape interceptors connect BattOr to the battery and to the phone. They transmit power to the BattOr from the phone’s battery, while providing a battery volt- age measurement. They also intercept the phone and the battery for current measurement. observations and by the complexity of the phone’s pe- ripherals. We believe that direct power measurement is feasible and that the resulting power data will help to design energy-efficient systems. Several existing tools for mobile phone power mea- surements include Monsoon’s PowerMonitor [6], lab bench multimeters [1], and a rig attached to a USB data logger (oscilloscope), which we used for the Bartendr project [7]. We found these power monitors to be useful, but inad- equate. We believe that a power monitor that will be adopted by the wider mobile phone research community must do the following: Connect to the phone and battery easily. Store power measurements while mobile. Stream power measurements while stationary. Collect hundreds of samples a second. With these criteria in mind, we design BattOr, an open source (http://www.cs.umd.edu/ schulman/battor.html), portable phone power monitor. 1
3

Demo: Phone Power Monitoring with BattOrcseweb.ucsd.edu/~schulman/docs/mobicom11-phone... · Choudhury. Did you see bob?: Human localization using mobile phones. In Conference on

Sep 26, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Demo: Phone Power Monitoring with BattOrcseweb.ucsd.edu/~schulman/docs/mobicom11-phone... · Choudhury. Did you see bob?: Human localization using mobile phones. In Conference on

Demo: Phone Power Monitoring with BattOr

Aaron Schulman? (student), Thomas Schmid†, Prabal Dutta�, Neil Spring?

[email protected] [email protected] [email protected] [email protected]?University of Maryland †University of Utah �University of Michigan

1. INTRODUCTIONThe mobile phone research community accepts that

mobile phone energy consumption is important to thedesign and evaluation of their systems. For example,many researchers have improved the energy efficiencyof phone localization [3, 4, 11].

In several research papers, energy consumption mea-surements of mobile systems are simply plots of batterydrain over time, with and without the system [4, 9].This measurement is easy to obtain, as most phones canreport battery percentage samples every few seconds.However, because the measurement is coarse-grained,researchers can not tell which part of their system isconsuming the energy. Additionally, because the unitsare not defined, it is difficult to compare across devicesand even across systems on the same type of device. Toour knowledge, no power monitor exists that is mobile,inexpensive, and easy to use. A power monitor withthese properties has the potential to replace the cur-rent method of quantifying energy consumption usingpercentage of battery consumed.

Recently, phone power monitors have been used tounderstand the energy properties of the most energy-consuming phone peripherals, such as cellular and WiFiradios. As a result of these experiments, it is understoodthat cellular radios have significant tail energy [2, 5, 8]and that signal strength affects energy consumption [7].We aim to bring such phone power monitoring to allsystems built on mobile phones.

An alternative approach to power monitoring is tocompute energy consumed by modeling each periph-eral’s energy consumption and then monitoring the ac-tivity of the peripherals. PowerBooter [10] and the cor-responding monitoring application, PowerTutor, do justthis. The advantage of modeling is that no additionalhardware is needed. The disadvantages are that modelsonly provide an estimate of power consumption and andthey can only measure energy consumed while the CPUis active.

With a power model, researchers can accurately ob-serve when they are using the peripherals that consumethe most power, but the accuracy and precision of thepower estimates is limited by the granularity of the OS

Figure 1: The BattOr monitoring the powerof an HTC Hero. The copper tape interceptorsconnect BattOr to the battery and to the phone.They transmit power to the BattOr from thephone’s battery, while providing a battery volt-age measurement. They also intercept the phoneand the battery for current measurement.

observations and by the complexity of the phone’s pe-ripherals. We believe that direct power measurement isfeasible and that the resulting power data will help todesign energy-efficient systems.

Several existing tools for mobile phone power mea-surements include Monsoon’s PowerMonitor [6], lab benchmultimeters [1], and a rig attached to a USB data logger(oscilloscope), which we used for the Bartendr project [7].We found these power monitors to be useful, but inad-equate. We believe that a power monitor that will beadopted by the wider mobile phone research communitymust do the following:

• Connect to the phone and battery easily.

• Store power measurements while mobile.

• Stream power measurements while stationary.

• Collect hundreds of samples a second.

With these criteria in mind, we design BattOr, anopen source (http://www.cs.umd.edu/∼schulman/battor.html),portable phone power monitor.

1

Page 2: Demo: Phone Power Monitoring with BattOrcseweb.ucsd.edu/~schulman/docs/mobicom11-phone... · Choudhury. Did you see bob?: Human localization using mobile phones. In Conference on

Microcontroller

microSD

USB−>UART

Phone

+

SPI

UART −

Battery

+

+−

ADC0

ADC1

Figure 2: A simplified schematic of BattOr.ADC0 measures the voltage drop over the shuntresistor inserted between the phone’s - pin andthe battery’s - contact. ADC1 measures thevoltage of the battery.

Figure 3: For comparison, this is the Bartendrphone power monitor. Although it is portable, itis also several times larger than the phone, proneto wires coming off, and it requires an externalcomputer to store measurements.

2. PORTABLE POWER MONITOR DESIGNIn this section, we introduce the design of a portable

power monitor called BattOr (Figure 1). We presentour design in the context of existing power monitors.

2.1 Power monitoring in a pocketBattOr is a circuit board that measures 2 in by 1.5i n,

small enough to fit in someone’s pocket. Figure 2 showsa simplified schematic. The microcontroller is an AtmelATMega32, which has a built-in 10 bit ADC. The shuntresistor is 0.18 Ohms and 1% tolerance. The clock is an8 MHz clock with 25 ppm precision.

We included storage options for both stationary andmobile measurements. When the BattOr is mobile, itstores samples on a microSD card. When it is station-ary, it outputs the samples over a USB UART port.To our knowledge, this is the first power monitor thatcan store measurements on its own, without an externalcomputer.

Existing power monitors require an external powersupply: either AC power for the lab bench equipment

Figure 4: The empty battery compartment of anHTC Hero (left), and the battery with BattOr’sbattery interceptor taped over the battery’s pins(right). + and − indicate the positive and nega-tive pins.

or power from a battery removed from the phone andattached to wires with a clamp (Figure 3). BattOr doesnot require an external power source, nor does it re-quire removing the phone’s battery while taking mea-surements. It intercepts the phone’s power connectionswhile the battery is inside the battery compartment.

BattOr can be powered by the phone’s battery or byUSB. The power monitor adds an insignificant load tothe phone’s battery: it consumes at most 181 mW.

2.2 Between the power source and the phoneA power-measuring device must connect between the

power source and the load. For all the mobile phonesthat we have studied, except for the iPhone, the powersource is a battery that is inserted into a compartmentin the back of the phone. The battery connects to thephone with a few small pins on side of the battery com-partment (Figure 4). These pins transmit power andbattery state (e.g., temperature). All of the phonesthat we tested will not boot with the battery removedor without the battery monitoring pins.

Lab bench power monitors and multimeters measurepower either by providing the power or by intercept-ing the connection between the power source and theload. Monsoon designed their PowerMonitor [6] specif-ically for mobile phone power measurement: it suppliesand measures the power. The advantage of this designis that the power monitor simply replaces the phone’sbattery as the power source, so it is not necessary to in-tercept the connection between the phone and its powersource. The user puts copper tape over the battery’spower contacts and inserts the battery into the phone.This setup allows the PowerMonitor to provide powerwhile maintaining the battery-monitoring signal. Thedisadvantage of this design is that the Monsoon Pow-erMonitor must be attached to wall AC power or to itsown external battery.

We introduce a new way to intercept the connectionbetween the phone and the battery using printer papersandwiched between copper tape. This provides two iso-lated conductors, thin enough to fit between the phone’s

2

Page 3: Demo: Phone Power Monitoring with BattOrcseweb.ucsd.edu/~schulman/docs/mobicom11-phone... · Choudhury. Did you see bob?: Human localization using mobile phones. In Conference on

Figure 5: The phone-battery interceptor viewedunder a microscope. A piece of regular printerpaper sandwiched between copper tape conduc-tors isolates them.

pins and the battery’s contacts. The interceptor is sothin that it is difficult to see the layers with the humaneye. In Figure 5, we show what the interceptor lookslike under a microscope.

The user tapes interceptors to the battery’s + and -contacts (Figure 4) and then shorts the contacts on the+ interceptor. BattOr measures current flowing fromthe phone to the battery over the - interceptor. Theshorted + interceptor provides the BattOr with powerand a battery voltage reference.

2.3 Next revisionFor the next revision of the board, we have been asked

to add a USB host chip. As a USB host, the BattOrwill be able to send power measurements directly to thephone, so that a system running on the phone can bedesigned to react to its own power consumption. Afterwe finish testing the board, we will design a case andmanufacture the device.

3. DEMOThe goal of this demo is to introduce the BattOr to

the research community. We hope to get feedback on thedesign from those who may use it, as well as ideas forprojects that would benefit from this tool. The demon-stration may consist of a phone connected to BattOrstreaming power measurements to a laptop.

3.1 SetupWe may need a table, a place to hang the poster, and

AC power for the laptop.

4. REFERENCES[1] Agilent. Digital multimeter, 6 digit high

performance. http://www.home.agilent.com/agilent/product.jspx?nid=-536902435.536908384.00.

[2] N. Balasubramanian and A. B. A. Venkataramani.Energy consumption in mobile phones: ameasurement study and implications for networkapplications. In Internet Measurement Conference(IMC), 2009.

[3] I. Constandache, X. Bao, M. Azizyan, and R. R.Choudhury. Did you see bob?: Human localization

using mobile phones. In Conference on MobileComputing and Networking (MobiCom), 2010.

[4] S. Gaonkar, J. Li, R. R. Choudhury, L. Cox, andA. Schmidt. Micro-blog: Sharing and queryingcontent through mobile phones and socialparticipation. In Conference on Mobile Systems,Applications, and Services (MobiSys), 2008.

[5] H. Liu, Y. Zhang, and Y. Zhou. TailTheft:Leveraging the wasted time for saving energy incellular communications. In Workshop on Mobilityin the Evolving Internet Architecture (MobiArch),2011.

[6] Monsoon. PowerMonitor. http://www.msoon.com/LabEquipment/PowerMonitor,Aug. 2011.

[7] A. Schulman, V. Navda, R. Ramjee, N. Spring,P. Deshpande, C. Grunewald, K. Jain, and V. N.Padmanabhan. Bartendr: A practical approach toenergy-aware cellular data scheduling. InConference on Mobile Computing and Networking(MobiCom), 2010.

[8] A. Sharma, V. Navda, R. Ramjee, V. N.Padmanabhan, and E. M. Belding. Cool-tether:Energy efficient on-the-fly WiFi hot-spots usingmobile phones. In Conference on emergingNetworking EXperiments and Technologies(CoNEXT), 2009.

[9] A. Thiagarajan, L. Ravindranath,H. Balakrishnan, S. Madden, and L. Girod.Accurate, low-energy trajectory mapping formobile devices. In Symposium on NetworkedSystems Design and Implementation (NSDI),2011.

[10] L. Zhang, B. Tiwana, Z. Qian, Z. Wang, R. P.Dick, Z. M. Mao, and L. Yang. Accurate onlinepower estimation and automatic battery behaviorbased power model generation for smartphones. InConference on Hardware/Software Codesign andSystem Synthesis, 2010.

[11] Z. Zhuang, K.-H. Kim, and J. P. Singh. Improvingenergy efciency of location sensing onsmartphones. In Conference on Mobile Systems,Applications, and Services (MobiSys), 2010.

3