CN103501372B - The synchronous monitoring method of smart mobile phone electric current and event information - Google Patents

The synchronous monitoring method of smart mobile phone electric current and event information Download PDF

Info

Publication number
CN103501372B
CN103501372B CN201310437249.4A CN201310437249A CN103501372B CN 103501372 B CN103501372 B CN 103501372B CN 201310437249 A CN201310437249 A CN 201310437249A CN 103501372 B CN103501372 B CN 103501372B
Authority
CN
China
Prior art keywords
mobile phone
smart mobile
data
current
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310437249.4A
Other languages
Chinese (zh)
Other versions
CN103501372A (en
Inventor
郭耀
申鹏
陈向群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Original Assignee
Peking University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University filed Critical Peking University
Priority to CN201310437249.4A priority Critical patent/CN103501372B/en
Publication of CN103501372A publication Critical patent/CN103501372A/en
Application granted granted Critical
Publication of CN103501372B publication Critical patent/CN103501372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The synchronous monitoring method of a kind of smart mobile phone electric current and event information.Comprise: be connected by data wire with PC by smart mobile phone, PC end collects the current data of smart mobile phone by hardware monitoring device; Smart mobile phone end collects the event information of smart mobile phone by running background program; PC end is carried out synchronous with the data that smart mobile phone end is collected; Described data syn-chronization, refers to and the event information of smart mobile phone is corresponded to corresponding current sample point; The synchronized result monitored is shown on PC.Utilize technical scheme provided by the invention, effectively can disclose curent change reason behind in smart mobile phone application use procedure, thus the energy consumption behavior of smart mobile phone application can be analyzed, and the application larger to energy consumption expense proposes prioritization scheme.

Description

The synchronous monitoring method of smart mobile phone electric current and event information
Technical field
The invention provides a kind of smart mobile phone energy consumption monitoring and analytical method, be specifically related to a kind of supervision and analysis method based on smart mobile phone electric current and smart mobile phone synchronizing event information.
Background technology
Smart mobile phone obtains by means of its convenience and powerful function and popularizes more and more widely.Along with the development of smart mobile phone, configuration constantly promotes, and the function of support also becomes increasingly complex, and simultaneously because large scale screen becomes main flow gradually, network application gets more and more, and the energy consumption problem of smart mobile phone is day by day serious.And intelligent mobile phone battery technology does not obtain too large breakthrough, although current intelligent mobile phone battery is compared to the lifting had several years ago on some capacity, but still cannot meet the growing energy requirements of smart mobile phone, so energy consumption problem becomes the principal element of restriction smart mobile phone performance.
In actual life, a lot of smart phone user all complaint electricity fall too fast, especially android system, but often do not know again where these electricity are used on earth.For the people of research energy consumption, also wish the bottleneck finding electric quantity consumption, then provide optimal solution further.
In the support study dies instrument of smart mobile phone energy consumption, someone did some related works.Such as based on energy consumption research tool AppScope (the Chanmin Yoon of smart mobile phone hardware and system activity, ... .AppScope:Application energymetering framework for android smartphones using kernel activity monitoring.USENIX, 2012), and based on energy consumption research tool Eprof (the Abhinav Pathak that intelligent mobile phone system calls, ... .Where is the energy spentinside my app? Fine gained energy accounting on smartphones with eprof.EuroSys, 2012) etc.
Relative to inner modeling, the another kind of method analyzing the behavior of smart mobile phone energy consumption is directly read the curent change situation of smart mobile phone.
During the curent change situation of monitoring intelligent mobile phone, a lot of researcher can use the monitoring system of similar Monsoon Power Monitor, although can see very detailed curent change situation, cannot know the reason of curent change.
Summary of the invention
The object of this invention is to provide a kind of convenient energy consumption monitoring and analytical method intuitively, solve the current value that hardware monitoring tool can only obtain each sampled point, and when cannot know curent change, smart mobile phone inside there occurs the problem of which event.
Principle of the present invention is: using hardware tools monitoring intelligent mobile phone current information while, runs the event information that background program collects smart mobile phone, and uses a kind of synchronization policy, ensure synchronously temporal.
Technical scheme provided by the invention is as follows:
A synchronous monitoring method for smart mobile phone electric current and event information, comprises the steps:
A. be connected by data wire with PC by smart mobile phone, PC end collects the current data of smart mobile phone by hardware monitoring device;
B. smart mobile phone end collects the event information of smart mobile phone by running background program;
C. PC end is carried out synchronous with the data that smart mobile phone end is collected; Described data syn-chronization, refers to and the event information of smart mobile phone is corresponded to corresponding current sample point;
D. the synchronized result monitored is shown on PC.
Wherein, in steps A, Monsoon Power Monitor is used to carry out monitoring current data; Utilize the Console program PowToolCmd that Monsoon PowerMonitor provides, the beginning that utility command row control Monsoon Power Monitor samples and end; Then by the process to data file, required [time, current value, magnitude of voltage] these three data are obtained.
The implementation method of step B is:
(1) for user operation case, the interface of current screen display is set up a transparent additional functional layer, when user is operated current screen interface by touch screen or button, this extra play can receive the operation information of user, collects touch screen and key information with this;
(2) for hardware status information, according to the difference of hardware device, following several different mode is selected to obtain:
2.1) API provided by Android is obtained;
2.2) obtained by reading system configuration file;
2.3) have some equipment, when its state changes, system can send broadcast, for this kind of hardware device, needs for service registry receiver, and obtains required information by corresponding filter;
(3) for system call information, the instrument using monitoring linux system to call realizes.
In step C, the asynchronous system of feature based coupling is used to carry out synchronously smart mobile phone event information and current sample information.
In step D, graphically show at PC end the synchronized result monitored.
Described synchronous monitoring method, the situation of the following hardware device of main monitoring: CPU, screen, WIFI, bluetooth, network, GPS, volume, signal strength signal intensity and transfer of data; In order to reduce the operation of instrument to the impact of the overall energy consumption of smart mobile phone, the state information of above-mentioned hardware is collected once in setting at set intervals.
Described synchronous monitoring method, by software approach to the computation-intensive task of a short time of smart mobile phone CPU, makes current value during calculating apparently higher than average current value before, finds this jump from current sampling data; PC end is by finding this current variation to realize synchronously.
Beneficial effect of the present invention: utilize technical scheme provided by the invention, effectively can disclose curent change reason behind in smart mobile phone application use procedure, thus can analyze the energy consumption behavior of smart mobile phone application, and the application larger to energy consumption expense proposes prioritization scheme.
Accompanying drawing explanation
Fig. 1 overall framework of the present invention.
The mark of Fig. 2 data syn-chronization.
The operational effect sectional drawing of Fig. 3 example.
Fig. 4 is to the test effect sectional drawing of 360 mobile phone bodyguards.
The flow chart of Fig. 5 the method for the invention.
Embodiment
As shown in Figure 1, flow process is see Fig. 5 for the overall framework of the technical scheme that the present invention proposes.
A. be connected by data wire with PC (PC) by smart mobile phone, PC end collects the current data of smart mobile phone by hardware monitoring device.
Here Monsoon Power Monitor is used to carry out monitoring current data.Console program---the PowToolCmd that Monsoon Power Monitor provides can be utilized, the beginning that utility command row control Monsoon Power Monitor samples and end.Then by the process to data file, required (time, current value, magnitude of voltage) these three data can be obtained.
B. smart mobile phone end collects the event information of smart mobile phone by running background program.
Android phone event is divided into two large classes by us, comprises the user operation on upper strata and the change of hardware state, and the system call of bottom.
(1) user operation: mainly comprise touch screen and button operation.On the interface that current screen shows, set up a transparent additional functional layer with software approach, when user is operated current screen interface by touch screen or button, this extra play can receive the operation information of user, collects touch screen and key information with this.
(2) hardware state: the API that some hardware equipment information can be provided by Android obtains; Some then needs reading system configuration file; Also have some equipment, when its state changes, system can send broadcast, therefore needs for service registry receiver (inheriting the class example of BroadcastReceiver), and obtains required information by corresponding filter.
The situation of the following hardware device of main monitoring: CPU, screen, WIFI, bluetooth, network, GPS, volume, signal strength signal intensity and transfer of data.In order to reduce the operation of instrument to the impact of the overall energy consumption of smart mobile phone, the state information of collecting once above-mentioned hardware every 1s (this time can revise setting) can be set.
(3) system call: because android system is based on linux kernel, the instrument that monitoring linux system therefore can be used to call realizes.
We choice for use strace carries out the monitoring of system call information, and strace can trace into the system call that a process produces, and comprises parameter, return value, performs the time etc. consumed.
C. PC end is carried out synchronous with the data that smart mobile phone end is collected.
Data syn-chronization, corresponds to corresponding current sample point by the event information of smart mobile phone exactly.
The asynchronous system of feature based coupling is used to carry out synchronously smart mobile phone event information and current sample information.We to the computation-intensive task of a short time of smart mobile phone CPU, make current value during calculating apparently higher than average current value before by software approach, so just can find this jump from current sampling data, as shown in Figure 2.PC end is by finding this current variation to realize synchronously.
D. result is shown intuitively on PC.
Current data and event display aspect, we wish when mouse moves on to certain monitoring point, can show the concrete event that this point occurs.We choice for use Visifire realizes such demand, and Visifire is a powerful data visualization chart control supporting Silverlight and WPF.
Below by example, the present invention will be further described.
Embodiment 1:
According to the technical scheme that the present invention proposes, we achieve the current monitoring instrument of a band event information.Its operational effect as shown in Figure 3.
Can see, this instrument not only show the situation of change of current value, provides the event information of sampled point simultaneously.Comprising the state information of various equipment, and the situation of the system call performed.
We use this instrument, test several application, here for 360 mobile phone bodyguards, and the effect of analytic explanation instrument.As shown in Figure 4.
According to the content of dotted line frame in Fig. 4, we can see, monitor the system calls such as socket, connect, sendmsg and close at 7.8 seconds instruments.By the information of these system calls, we can analyze 360 mobile phone bodyguards when 7.8s, use socket and rpc_server to carry out once complete communication.Meanwhile, we also see that the current value of smart mobile phone also starts obviously to become large, rise to 308.75mA from 265.11mA.So we can analyze current communication is the reason causing smart mobile phone current value to rise.

Claims (6)

1. a synchronous monitoring method for smart mobile phone electric current and event information, is characterized in that, comprises the steps:
A. be connected by data wire with PC by smart mobile phone, PC end collects the current data of smart mobile phone by hardware monitoring device;
B. smart mobile phone end collects the event information of smart mobile phone by running background program, and implementation method is:
(1) for user operation case, the interface of current screen display is set up a transparent additional functional layer, when user is operated current screen interface by touch screen or button, this extra play can receive the operation information of user, collects touch screen and key information with this;
(2) for hardware status information, according to the difference of hardware device, following several different mode is selected to obtain:
2.1) API provided by Android is obtained;
2.2) obtained by reading system configuration file;
2.3) have some equipment, when its state changes, system can send broadcast, for this kind of hardware device, needs for service registry receiver, and obtains required information by corresponding filter;
(3) for system call information, the instrument using monitoring linux system to call realizes;
C. PC end is carried out synchronous with the data that smart mobile phone end is collected; Described data syn-chronization, refers to and the event information of smart mobile phone is corresponded to corresponding current sample point;
D. the synchronized result monitored is shown on PC.
2. synchronous monitoring method as claimed in claim 1, is characterized in that, in steps A, uses Monsoon Power Monitor to carry out monitoring current data; Utilize the Console program PowToolCmd that Monsoon Power Monitor provides, the beginning that utility command row control Monsoon Power Monitor samples and end; Then by the process to data file, required [time, current value, magnitude of voltage] these three data are obtained.
3. synchronous monitoring method as claimed in claim 1, is characterized in that, in step C, uses the asynchronous system of feature based coupling to carry out synchronously smart mobile phone event information and current sample information.
4. synchronous monitoring method as claimed in claim 1, is characterized in that, in step D, graphically shows at PC end the synchronized result monitored.
5. synchronous monitoring method as claimed in claim 1, is characterized in that, the situation of the following hardware device of main monitoring: CPU, screen, WIFI, bluetooth, network, GPS, volume, signal strength signal intensity and transfer of data; In order to reduce the operation of instrument to the impact of the overall energy consumption of smart mobile phone, the state information of above-mentioned hardware is collected once in setting at set intervals.
6. synchronous monitoring method as claimed in claim 3, it is characterized in that, by software approach to the computation-intensive task of a short time of smart mobile phone CPU, make current value during calculating apparently higher than average current value before, from current sampling data, find this jump; PC end is by finding this current variation to realize synchronously.
CN201310437249.4A 2013-09-24 2013-09-24 The synchronous monitoring method of smart mobile phone electric current and event information Active CN103501372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310437249.4A CN103501372B (en) 2013-09-24 2013-09-24 The synchronous monitoring method of smart mobile phone electric current and event information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310437249.4A CN103501372B (en) 2013-09-24 2013-09-24 The synchronous monitoring method of smart mobile phone electric current and event information

Publications (2)

Publication Number Publication Date
CN103501372A CN103501372A (en) 2014-01-08
CN103501372B true CN103501372B (en) 2015-09-23

Family

ID=49866542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310437249.4A Active CN103501372B (en) 2013-09-24 2013-09-24 The synchronous monitoring method of smart mobile phone electric current and event information

Country Status (1)

Country Link
CN (1) CN103501372B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204981A (en) * 2014-05-28 2015-12-30 北京奇虎科技有限公司 Application performance test method and device
CN104065779A (en) * 2014-07-17 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for testing module power consumption
CN104503881B (en) * 2014-12-19 2017-05-31 广东欧珀移动通信有限公司 The method of handheld device consumption detection, device and handheld device
CN105095057A (en) * 2015-08-20 2015-11-25 百度在线网络技术(北京)有限公司 Method and device for detecting power consumption of application
CN106933323B (en) * 2015-12-30 2020-06-26 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment
CN106708696B (en) * 2016-07-01 2020-04-28 腾讯科技(深圳)有限公司 Method and device for detecting power consumption of function in application program of mobile terminal
CN111949538A (en) * 2020-08-14 2020-11-17 Oppo广东移动通信有限公司 Data analysis method, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011186596A (en) * 2010-03-05 2011-09-22 Nec Corp Current monitoring safety system, method for operating the same, and portable equipment
CN103179241B (en) * 2013-03-08 2018-11-09 百度在线网络技术(北京)有限公司 A kind of automated testing method and system of mobile terminal power consumption

Also Published As

Publication number Publication date
CN103501372A (en) 2014-01-08

Similar Documents

Publication Publication Date Title
CN103501372B (en) The synchronous monitoring method of smart mobile phone electric current and event information
CN103499806B (en) For portable detector and the method for electric energy measuring equipment
CN104318708A (en) Embedded intelligent security protection system of ARM-based Linux operating system
CN109358904B (en) Centralized distribution of application analytics
WO2015010621A1 (en) Method and device for obtaining application program power consumption information, and mobile terminal
CN106648707B (en) Intelligent terminal application information collection method and system and intelligent terminal
CN105677141A (en) Application program management method and terminal
CN105138318A (en) Application icon updating method and apparatus
Govindarajan et al. Performance analysis of smart energy monitoring systems in real-time
CN104391250A (en) Electric vehicle battery mobile phone monitoring system
CN203135590U (en) Intelligent power grid integrated data acquisition system
CN105100208A (en) Communication method of mobile terminal and wearable device
CN102739415A (en) Method and device for determining network failure data and recording network instantaneous state data
CN105354130A (en) Application management method and mobile terminal
CN202870927U (en) Handheld routing inspection device for power equipment
CN202535544U (en) Hand-hold monitor used in monitoring system
CN105356955A (en) Business simulation device applicable to network performance test and method
CN104699365A (en) Portable electronic device and interface display method thereof
CN104346262A (en) Method and device for acquiring power consumption information of application program and mobile terminal
CN112596459A (en) Intelligent bus duct temperature and humidity abnormity early warning system
CN209184612U (en) A kind of detector and detection system
CN104254051A (en) Device, method and system for automatic testing of indoor wireless signals
CN103207582A (en) Wireless paperless recording instrument based on 3G (third-generation telecommunication)/Beidou satellite communication technology
Zhao et al. An embedded laboratory security monitoring system
CN104168590A (en) Method and device for analysis of micro-power wireless communication protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant