Energy Modeling of IoT Mobile Terminals on WiFi Environmental Impacts †
<p>Power meter.</p> "> Figure 2
<p>Power measurement.</p> "> Figure 3
<p>Energy consumption in 30 s vs. RSSI.</p> "> Figure 4
<p>Energy consumed along time.</p> "> Figure 5
<p>|RSSI| vs. energy model parameter <math display="inline"><semantics> <msub> <mi>β</mi> <mn>1</mn> </msub> </semantics></math>.</p> "> Figure 6
<p>Different goodness of fit tests for the three models.</p> "> Figure 7
<p>Energy consumed vs. packet amount.</p> ">
Abstract
:1. Introduction
- 1
- We concentrate on two WiFi factors, namely the WiFi signal strength and the WiFi network type: public or private network;
- 2
- We study the overall energy consumption by the hardware components of the display, CPU, memory, as well as the WiFi components on the phone.
- Q1:
- How does WiFi signal strength impact the energy consumption of a smart phone?
- Q2:
- What energy model can be constructed to indicate the impact mentioned in Q1?
- Q3:
- How do protocol packets initiated by WiFi APs impact the energy consumption of a smart phone?
- Q4:
- What energy model can be constructed to indicate the impact mentioned in Q3?
2. Related Work
2.1. Phone Energy Models of WiFi Components
2.2. Energy Consumption of Phone Components
2.3. Phone Energy Saving in WiFi Networks
3. Measurement of Energy Consumption
4. Impact of WiFi Signal Strength
4.1. Energy Measurement
- Under a given signal strength (i.e., RSSI level), the total energy draw of the phone increases with time in a near-linear trend.
- During each sampling period, under higher signal strength (i.e., higher RSSI value), the total energy draw of the phone is lower.
4.2. Energy Model
- (1)
- Create linear regression models of energy consumption vs. time under given RSSI levels: For each given RSSI level, Figure 4 illustrates a curve fitting process of the energy consumption with time, and the corresponding linear regression equation is in the following form:In Equation (2), is the total energy consumption of the phone within the time period t; and are two model parameters.
- (a)
- (b)
- (c)
- Validate models: To evaluate the model predicted data deviation from the experimental data, we perform three GoF (Goodness of Fit) tests, namely SSE (Sum of Squared Errors), R-square value and RMSE (Root Mean Squared Error). The SSE and RMSE tests are based on affinity to zero, while the R-square value should approximate to one. Suppose that and represent experimental data, model predicted data and average experimental data, respectively, and v denotes the difference between the number of experimental data and the number of adjustable parameters, then the three test methods are formulated as follows [37]:Table 2 shows the three GoF test results from Column 3–5: R-square values are close to one, and the results from the three tests are consistent with each other. It is observed that our models are able to predict experimental data very well using the error analysis methods SSE, R-square value and RMSE. Therefore, under a given RSSI level, the following model of energy consumption with time is reliable:In (6), the value of depends on the value of the RSSI level, as shown in Column 1 and 2 in Table 2.
- (2)
- Create the regression model of vs. : Figure 5 illustrates three curve fitting methods of the absolute value, , with the parameter , where the eight values (namely, 38, 40, 42, 44, 46, 47, 48 and 49) are derived from Column 2 in Table 1 and the eight values (from 1.173 to 2.291) are derived from Column 2 in Table 2. Accordingly, we set up the linear regression, quadratic linear regression and logarithmic linear regression models for with , and Figure 6 compares the GoF tests of the three models to select the best one to explain the relationship between the and suitably. From Figure 6, we can see that the quadratic linear regression model has the largest value of R-square, and the SSE and RMSE values are smaller than the other two methods. We can get the quadratic relation as follows:
- (3)
- Create the target energy model: By replacing in (6) with the right part of (7), we can get the energy model with time and RSSI levels as follows:The energy model (8) is a function of WiFi RSSI level and time. The model can simply, but reliably estimate the impact of WiFi signal strength on phone energy in real time. We can set the formula of () in (8) to zero and then get the value of with 78. This reveals that the phone energy consumption increases rapidly when the RSSI level is below −78 dBm, which is consistent with the conclusion in [8]. Furthermore, Equation (8) can be transformed to:Formula (9) illustrates that under normal WiFi signals, for RSSI levels that range from dBm to dBm, the energy consumption decreases with the increase of WiFi signal strength.
5. Impact of WiFi Protocol Packets
5.1. Energy Measurement
- (1)
- Measure energy consumption without and with packet-sending: We measure the phone’s energy consumption with and without packet-sending, respectively, where both measurements last for the same time period, e.g., 30 s. During the first measurement, the software Anysend sends no packets. During the second measurement, the software Anysend sends the group of packets. By using the method depicted in Section 3, we get the phone energy consumption and in the two measurements, respectively.
- (2)
- Compute energy consumption Edue to handling packets: The time segment used for the phone to handle all the packets in the group is also that for the power meter to have an obvious current fluctuation. Thus, by observing current fluctuation on the power meter, we can discover the time segment for the phone to handle those packets. We find that the mentioned time segment is much less than our measurement time period (i.e., 30 s) and completely contained in the time period. Thus, by subtracting the phone energy consumption in 30 min without the AP’s packet-sending, namely , from that with the AP’s packet-sending, namely , we can compute the energy draw Edue to handling the group of packets, as the following formula shows:
- UDP packets initiated by an AP have little effect on the phone energy.
- TCP packets, ICMP packets and IGMP packets initiated by an AP have obvious effects on the phone energy. For each given packet type, the impacts on energy grow linearly with the total number of packets.
- The impacts of ICMP packets or IGMP packets on energy are higher than those of TCP packets.
5.2. Energy Model
6. Discussion
7. Conclusions and Future Work
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- Cruz, L.; Abreu, R. Using Automatic Refactoring to Improve Energy Efficiency of Android Apps. In Proceedings of the CIbSE XXI Ibero-American Conference on Software Engineering, Bogota, Colombia, 23–27 April 2018. [Google Scholar]
- Pathak, A.; Hu, Y.C.; Zhang, M. Where is the energy spent inside my app?: Fine grained energy accounting on smartphones with Eprof. In Proceedings of the 7th ACM european conference on Computer Systems, Bern, Switzerland, 10–13 April 2012; pp. 29–42. [Google Scholar]
- Saranappa, R.K.; Joseph, V.B.E.; Das, D. Dynamic power saving techniques for mobile hotspot. In Proceedings of the 15th IEEE Annual Consumer Communications &, Networking Conference (CCNC), Las Vegas, NV, USA, 12–15 January 2018; pp. 1–2. [Google Scholar]
- Prasad, S.; Balaji, S. Real-Time Energy Dissipation Model for Mobile Devices; Springer: New Delhi, India, 2015; pp. 281–288. [Google Scholar]
- Spachos, P.; Gregori, S. WiFi throughput and power consumption tradeoffs in smartphones. In Proceedings of the 24th International Conference on Telecommunications (ICT), Limassol, Cyprus, 3–5 May 2017; pp. 1–5. [Google Scholar]
- Chen, X.; Ding, N.; Jindal, A.; Hu, Y.C.; Gupta, M.; Vannithamby, R. Smartphone Energy Drain in the Wild: Analysis and Implications. ACM Sigmetr. Perform. Eval. Rev. 2015, 43, 151–164. [Google Scholar] [CrossRef]
- Gupta, A.; Mohapatra, P. Energy Consumption and Conservation in WiFi Based Phones: A Measurement- Based Study. In Proceedings of the 4th Annual IEEE Communications Society Conference on Sensor, Mesh and Ad Hoc Communications and Networks, San Diego, CA, USA, 18–21 June 2007; pp. 122–131. [Google Scholar]
- Ding, N.; Wagner, D.; Chen, X.; Pathak, A.; Hu, Y.C.; Rice, A. Characterizing and modeling the impact of wireless signal strength on smartphone battery drain. ACM Sigmetr. Perform. Eval. Rev. 2013, 41, 29–40. [Google Scholar] [CrossRef]
- Sun, L.; Sheshadri, R.K.; Zheng, W.; Koutsonikolas, D. Modeling WiFi Active Power/Energy Consumption in Smartphones. In Proceedings of the IEEE International Conference on Distributed Computing Systems, Madrid, Spain, 30 June–3 July 2014; pp. 41–51. [Google Scholar]
- He, X. Design and Implementation of Power Management Software on Android. Ph.D. Thesis, University of Electronic Science and Technology of China, Chengdu, China, 2015. [Google Scholar]
- Zhang, L.; Tiwana, B.; Dick, R.P.; Qian, Z.; Mao, Z.M.; Wang, Z.; Yang, L. Accurate online power estimation and automatic battery behavior based power model generation for smartphones. In Proceedings of the Eighth IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis, Scottsdale, AZ, USA, 24–29 October 2010; pp. 105–114. [Google Scholar]
- Khan, M.O.; Dave, V.; Chen, Y.C.; Jensen, O.; Qiu, L.; Bhartia, A.; Rallapalli, S. Model-driven energy-aware rate adaptation. In Proceedings of the Fourteenth ACM International Symposium on Mobile Ad Hoc NETWORKING and Computing, Bangalore, India, 29 July–1 August 2013; pp. 217–226. [Google Scholar]
- Xu, F.; Liu, Y.; Li, Q.; Zhang, Y. V-edge: Fast self-constructive power modeling of smartphones based on battery voltage dynamics. In Proceedings of the Usenix Conference on Networked Systems Design and Implementation, Lombard, IL, USA, 2–5 April 2013; pp. 43–56. [Google Scholar]
- Xiao, Y.; Cui, Y.; Savolainen, P.; Siekkinen, M.; Wang, A.; Yang, L.; Ylä-Jääski, A.; Tarkoma, S. Modeling Energy Consumption of Data Transmission Over WiFi. IEEE Trans. Mob. Comput. 2014, 13, 1760–1773. [Google Scholar] [CrossRef]
- Garcia-Saavedra, A.; Serrano, P.; Banchs, A.; Bianchi, G. Energy consumption anatomy of 802. In 11 devices and its implication on modeling and design. In Proceedings of the 8th ACM International Conference on Emerging Networking Experiments and Technologies (CoNext 2012), Nice, France, 10–13 December 2012; pp. 169–180. [Google Scholar]
- Pathak, A.; Hu, Y.C.; Zhang, M.; Bahl, P.; Wang, Y.M. Fine-grained power modeling for smartphones using system call tracing. In Proceedings of the Sixth Conference on Computer Systems (EUROSYS 2011), Salzburg, Austria, 10–13 April 2011; pp. 153–168. [Google Scholar]
- Balasubramanian, N.; Balasubramanian, A.; Venkataramani, A. Energy consumption in mobile phones: A measurement study and implications for network applications. In Proceedings of the ACM SIGCOMM Conference on Internet Measurement, Chicago, IL, USA, 4–6 November 2009; pp. 280–293. [Google Scholar]
- Perrucci, G.P.; Fitzek, F.H.P.; Widmer, J. Survey on Energy Consumption Entities on the Smartphone Platform. In Proceedings of the Vehicular Technology Conference, Yokohama, Japan, 15–18 May 2011; pp. 1–6. [Google Scholar]
- Yoon, C.; Kim, D.; Jung, W.; Kang, C.; Cha, H. AppScope: Application energy metering framework for android smartphones using kernel activity monitoring. In Proceedings of the Usenix Conference on Technical Conference, Boston, MA, USA, 13–15 June 2012; p. 36. [Google Scholar]
- Chung, J.; Jung, H.R.; Koo, J.; Kim, Y.; Kim, U.M. A development of power consumption measurement system for Android smartphones. In Proceedings of the 11th International Conference on Ubiquitous Information Management and Communication, Beppu, Japan, 5–7 January 2017; pp. 1–4. [Google Scholar]
- Wang, C.; Guo, Y.; Shen, P.; Chen, X. E-Spector: Online energy inspection for Android applications. In Proceedings of the IEEE/ACM International Symposium on Low Power Electronics and Design, Taipei, Taiwan, 24–26 July 2017. [Google Scholar]
- Patil, P.S.; Doshi, J.; Ambawade, D. Reducing power consumption of smart device by proper management of Wakelocks. In Proceedings of the Advance Computing Conference, Banglore, India, 12–13 June 2015; pp. 883–887. [Google Scholar]
- Rawson, F. MEMPOWER: A Simple Memory Power Analysis Tool Set; Research Repot; IBM Austin Research Laboratory: Austin, TX, USA, 2004. [Google Scholar]
- Carroll, A.; Heiser, G. An analysis of power consumption in a smartphone. In Proceedings of the 2010 USENIX Conference on USENIX Annual Technical Conference, Boston, MA, USA, 23–25 June 2010; p. 21. [Google Scholar]
- Benaissa, B.; Hendrichovsky, F.; Yishida, K.; Koppen, M.; Sincak, P. Phone Application for Indoor Localization Based on Ble Signal Fingerprint. In Proceedings of the 9th IFIP International Conference on New Technologies, Mobility and Security (NTMS), Paris, France, 26–28 February 2018; pp. 1–5. [Google Scholar]
- Banerjee, A.; Chong, L.K.; Chattopadhyay, S.; Roychoudhury, A. Detecting energy bugs and hotspots in mobile apps. In Proceedings of the ACM Sigsoft International Symposium on Foundations of Software Engineering, Hong Kong, China, 16–21 November 2014; pp. 588–598. [Google Scholar]
- Ma, Z.; Poslad, S.; Bigham, J.; Zhang, X.; Men, L. A BLE RSSI ranking based indoor positioning system for generic smartphones. In Proceedings of the Wireless Telecommunications Symposium, Chicago, IL, USA, 26–28 April 2017; pp. 1–8. [Google Scholar]
- Zhang, T.; Madhani, S.; Gurung, P.; Van den Berg, E. Reducing energy consumption on mobile devices with WiFi interfaces. In Proceedings of the IEEE Global Telecommunications Conference (GLOBECOM ’05), St. Louis, MO, USA, 28 November–2 December 2005; p. 5. [Google Scholar]
- Xia, F.; Zhang, W.; Ding, F.; Hao, R. A-GPS assisted WiFi access point discovery on mobile devices for energy saving. In Proceedings of the Global Information Infrastructure Symposium, Da Nang, Vietnam, 4–6 August 2011; pp. 1–6. [Google Scholar]
- Choi, T.; Chon, Y.; Cha, H. Energy-efficient WiFi scanning for localization. Pervasive Mob. Comput. 2016, 37, 124–138. [Google Scholar] [CrossRef]
- Chavez, G.; Mabell, K. Energy Efficiency in Wireless Access Networks: Measurements, Models and Algorithms; University of Trento: Trento, Italy, 2013. [Google Scholar]
- Zhou, Z.; Wu, C.; Yang, Z.; Liu, Y. Sensorless Sensing with WiFi. Tsinghua Sci. Technol. 2015, 20, 1–6. [Google Scholar] [CrossRef]
- Kosyanchuk, V.V.; Smirnov, A.S.; Panyov, A.A. Navigation system for a wide range of tasks based on IMU aided with heterogeneous additional information. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Banff, AB, Canada, 13–16 October 2015; pp. 1–9. [Google Scholar]
- Ferris, B.; Hahnel, D.; Fox, D. Gaussian Processes for Signal Strength-Based Location Estimation. In Proceedings of the 2nd International Conference on Robotics Science and Systems (RSS 2006), Philadelphia, PA, USA, 16–19 August 2006. [Google Scholar]
- Yang, Z.; Zhou, Z.; Liu, Y. From RSSI to CSI: Indoor localization via channel response. ACM Comput. Surv. 2013, 46, 25. [Google Scholar] [CrossRef]
- PassMark Software Inc. WirelessMon™—Monitor Wireless 802.11 WiFi. Available online: http://www.passmark.com/products/wirelessmonitor.htm (accessed on 14 March 2018).
- MathWorks®. Evaluating Goodness of Fit. Available online: https://www.mathworks.com/help/curvefit/evaluating-goodness-of-fit.html (accessed on 14 March 2018).
- Ruijie Network Inc. Anysend Tool. Available online: http://download.csdn.net/detail/gamewyd/3590366 (accessed on 14 March 2018).
Distance (m) | RSSI (dBm) | Energy Consumption (J) |
---|---|---|
0.5 | −38 | 36 ± 0.44 |
1 | −40 | 40 ± 0.22 |
1.5 | −42 | 44 ± 0.22 |
2 | −44 | 48 ± 0.67 |
2.5 | −46 | 51 ± 0.22 |
3 | −47 | 55 ± 0.44 |
3.5 | −48 | 62 ± 0.44 |
4 | −49 | 70 ± 0.22 |
RSSI | Energy Model | SSE | R-Square | RMSE |
---|---|---|---|---|
−38 dBm | 0.56 | 0.99 | 0.21 | |
−40 dBm | 8.78 | 0.98 | 0.56 | |
−42 dBm | 8.36 | 0.99 | 0.52 | |
−44 dBm | 5.54 | 0.99 | 0.30 | |
−46 dBm | 8.75 | 0.98 | 0.55 | |
−47 dBm | 8.86 | 0.98 | 0.58 | |
−48 dBm | 6.75 | 0.99 | 0.42 | |
−49 dBm | 6.94 | 0.99 | 0.48 |
Packet Type | Energy Consumption (J) | |||
---|---|---|---|---|
5 Packets | 10 Packets | 15 Packets | 20 Packets | |
UDP | 0 | 0 | 0 | 0 |
TDP | 3.09 ± 0.0012 | 6.05 ± 0.0034 | 9.17 ± 0.0026 | 12.28 ± 0.0008 |
ICMP | 3.55 ± 0.0008 | 7.15 ± 0.0016 | 10.63 ± 0.0026 | 14.20 ± 0.0015 |
IGMP | 3.59 ± 0.0012 | 7.31 ± 0.0027 | 10.86 ± 0.0029 | 14.43 ± 0.0031 |
Packet Type | Energy Model | SSE | R-Square | RMSE |
---|---|---|---|---|
UDP | N/A | N/A | N/A | |
TCP | 0.01 | 0.98 | 0.05 | |
ICMP | 0.01 | 0.99 | 0.03 | |
IGMP | 0.01 | 0.98 | 0.05 |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sun, Y.; Chen, J.; Tang, Y.; Chen, Y. Energy Modeling of IoT Mobile Terminals on WiFi Environmental Impacts †. Sensors 2018, 18, 1728. https://doi.org/10.3390/s18061728
Sun Y, Chen J, Tang Y, Chen Y. Energy Modeling of IoT Mobile Terminals on WiFi Environmental Impacts †. Sensors. 2018; 18(6):1728. https://doi.org/10.3390/s18061728
Chicago/Turabian StyleSun, Yuxia, Junxian Chen, Yong Tang, and Yanjia Chen. 2018. "Energy Modeling of IoT Mobile Terminals on WiFi Environmental Impacts †" Sensors 18, no. 6: 1728. https://doi.org/10.3390/s18061728
APA StyleSun, Y., Chen, J., Tang, Y., & Chen, Y. (2018). Energy Modeling of IoT Mobile Terminals on WiFi Environmental Impacts †. Sensors, 18(6), 1728. https://doi.org/10.3390/s18061728