CN104092804B - A kind of mobile terminal power consumption method of testing and system - Google Patents
A kind of mobile terminal power consumption method of testing and system Download PDFInfo
- Publication number
- CN104092804B CN104092804B CN201410342915.0A CN201410342915A CN104092804B CN 104092804 B CN104092804 B CN 104092804B CN 201410342915 A CN201410342915 A CN 201410342915A CN 104092804 B CN104092804 B CN 104092804B
- Authority
- CN
- China
- Prior art keywords
- test cases
- power consumption
- mobile terminal
- test
- hardware
- 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.)
- Expired - Fee Related
Links
Landscapes
- Telephone Function (AREA)
Abstract
The present invention is applied to technical field of mobile terminals, there is provided a kind of mobile terminal power consumption method of testing and system, including:After the mobile terminal is fully charged, the connection with charge power supply is disconnected;N number of test cases is run, each test cases correspondence one systems soft ware and at least one hardware in N number of test cases;Record the power consumption of each test cases in N number of test cases;The power consumption of each test cases in described N number of test cases according to record, determines the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases.The present invention is by after mobile terminal is fully charged, disconnect the connection with charge power supply, run N number of test cases, record the power consumption of each test cases in N number of test cases, the power consumption of the corresponding systems soft ware of each test cases and hardware is determined again, so as to be accurately positioned where the power problemses of mobile terminal.
Description
Technical field
The invention belongs to technical field of mobile terminals, more particularly to a kind of mobile terminal power consumption method of testing and system.
Background technology
The power problemses of mobile terminal are one of key issues of influence user experience.It is existing that mobile terminal is entered
The method of row power consumption test is that analog subscriber is operated repeatedly after mobile terminal installs some third-party application softwares,
The use time of electricity is confirmed, so as to judge the power consumption levels of mobile terminal.But, the power consumption test mode of above-mentioned mobile terminal
The power problemses of mobile terminal system software and third-party application software can be obscured, so as to the work(of mobile terminal can not be accurately positioned
Where consumption problem.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of mobile terminal power consumption method of testing, cannot to solve prior art
Problem where being accurately positioned power problemses.
The embodiment of the present invention is achieved in that a kind of mobile terminal power consumption method of testing, including:
After the mobile terminal is fully charged, the connection with charge power supply is disconnected;
N number of test cases is run, each test cases in N number of test cases one systems soft ware of correspondence and extremely
Few hardware, wherein, N is the integer more than or equal to 1;
Record the power consumption of each test cases in N number of test cases;
The power consumption of each test cases in described N number of test cases according to record, determines N number of test cases
In the corresponding systems soft ware of each test cases and hardware power consumption.
The another object of the embodiment of the present invention is to provide a kind of mobile terminal power consumption test system, including:
Electricity preparation block, for after the mobile terminal is fully charged, disconnecting the connection with charge power supply;
Test cases runs module, for running N number of test cases, each test cases in N number of test cases
Correspondence one systems soft ware and at least one hardware, wherein, N is the integer more than or equal to 1;
Power consumption logging modle, the power consumption for recording each test cases in N number of test cases;
Power consumption determining module, for according to record described N number of test cases in each test cases power consumption, really
The power consumption of the corresponding systems soft ware of each test cases and hardware in fixed N number of test cases.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:The embodiment of the present invention is by mobile terminal
After fully charged, the connection with charge power supply is disconnected, run N number of test cases, record each test cases in N number of test cases
Power consumption, further according to the power consumption of each test cases in N number of test cases of record, each in N number of test cases
The power consumption of the corresponding systems soft ware of test cases and hardware, so as to be accurately positioned where the power problemses of mobile terminal.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to embodiment or description of the prior art
Needed for the accompanying drawing to be used be briefly described, it should be apparent that, drawings in the following description are only more of the invention
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is that mobile terminal power consumption method of testing provided in an embodiment of the present invention realizes flow chart;
Fig. 2 is that the mobile terminal power consumption method of testing that another embodiment of the present invention is provided realizes flow chart;
Fig. 3 is the structured flowchart of mobile terminal power consumption test system provided in an embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention runs N number of test case by after mobile terminal is fully charged, disconnecting the connection with charge power supply
Example, records the power consumption of each test cases in N number of test cases, further according to each survey in N number of test cases of record
Try the power consumption of case, the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases, so that accurately
Position the power problemses place of mobile terminal.
Mobile terminal in the embodiment of the present invention can include mobile phone (or being " honeycomb " phone) and with movement
The computer of terminal, for example, it may be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device,
They exchange language and/or data with wireless access network.For example, PCS (Personal Communication
Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone,
WLL (Wireless Local Loop, WLL) is stood, personal digital assistant (Personal Digital
Assistant, PDA) etc. equipment, be not limited thereto.
What Fig. 1 showed mobile terminal power consumption method of testing provided in an embodiment of the present invention realizes flow chart, and details are as follows:
In step S101, after the mobile terminal is fully charged, the connection with charge power supply is disconnected.
In embodiments of the present invention, after mobile terminal is fully charged, all connections with charge power supply are disconnected, is made mobile whole
End carries out power consumption test in the case where being connected without charge power supply, accurately to judge the power consumption of mobile terminal system software, hardware.
In step s 102, N number of test cases is run, each test cases correspondence one in N number of test cases
Systems soft ware and at least one hardware, wherein, N is the integer more than or equal to 1.
The operation duration of N number of test cases pre-sets.For example, the first test cases is to carry sound with mobile terminal system
Happy player plays music, the operation duration of the first test cases is 60 minutes, and the corresponding hardware of the first test cases is to raise one's voice
Device and audio decoder.Second test cases is that the video player carried with mobile terminal system plays video, the second test
The operation duration of case is 60 minutes, and the corresponding hardware of the second test cases is screen, loudspeaker and Video Decoder.3rd surveys
Examination case is to carry camera with mobile terminal system to take pictures, and the operation duration of the 3rd test cases is 30 minutes, the 3rd test case
The corresponding hardware of example is camera.To open flash lamp, the operation duration of the 4th test cases is 10 minutes to 4th test cases,
The corresponding hardware of 4th test cases is flash lamp.5th test cases is to carry software with mobile terminal system to realize GPS
(Global Position System, global positioning system) is positioned, and the operation duration of the 5th test cases is 10 minutes, the 5th
The corresponding hardware of test cases is GPS sensor.6th test cases is to carry software with mobile terminal system to call, the
The operation duration of six test cases is 60 minutes, and the corresponding hardware of the 6th test cases is call chip and antenna.7th test
Case is to carry browser with mobile terminal system to realize website browsing, specially loads browser kernel control, controls this interior
Core control connects network, and the socket that will be got shows.The operation duration of the 7th test cases is 60 minutes, the
The corresponding hardware of seven test cases is online chip and antenna.8th test cases is to carry software with mobile terminal system to realize
The operation of CPU (Central Processing Unit, central processing unit) occupation rate high, is specially floated using multithreading
Point processing, makes CPU computings at full capacity.The operation duration of the 8th test cases is 30 minutes, the corresponding hardware of the 8th test cases
It is CPU.9th test cases is to carry the read-write repeatedly that software realizes file data with mobile terminal system, specially reads and moves
One file of dynamic terminal storage, and this document is copied to another storage location of mobile terminal, then delete, then repeatedly
Carry out the reading of file, replicate and deletion action.The operation duration of the 9th test cases is 30 minutes, the 9th test cases pair
The hardware answered is memory.Tenth test cases is to carry software continuous with mobile terminal system to cause mobile terminal to shake, the
The operation duration of ten test cases is 10 minutes, and the corresponding hardware of the tenth test cases is vibrations motor.11st test cases
It is to carry software for drawing with mobile terminal system to draw 3D (3Dimensions, three-dimensional) animation, the operation of the 11st test cases
Shi Changwei 30 minutes, the corresponding chip of the 11st test cases is Image Rendering chip.12nd test cases is persistent switch
Wi-Fi (Wireless Fidelity, adopting wireless fidelity technology) equipment and bluetooth equipment, concretely comprise the following steps, and open Wi-Fi equipment,
Scanning Wi-Fi Hotspot, closes Wi-Fi equipment, opens bluetooth equipment, and the bluetooth equipment near scanning mobile terminal closes bluetooth
Equipment, then Wi-Fi equipment is opened, circulate according to this.The operation duration of the 12nd test cases is 30 minutes, the 12nd test cases
Corresponding hardware is Wi-Fi equipment and bluetooth equipment.
It should be noted that operate above duration being used only for for example, being not used to limit the present embodiment.Additionally,
The number of test cases, sequentially it is also not necessarily limited to described above, can be recombinated according to actual conditions.
In step s 103, the power consumption of each test cases in N number of test cases is recorded.
Before the operation of each test cases, the dump energy of mobile terminal is recorded, it is finished in test cases operation
Afterwards, the dump energy of mobile terminal is re-recorded, the power consumption of each test cases is thus calculated, and records the consumption of the test cases
Electricity.
In step S104, the power consumption of each test cases in described N number of test cases according to record determines institute
State the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases.
As one embodiment of the present of invention, for each test cases, standard power consumption is pre-set.By record each
The power consumption of test cases is contrasted with standard power consumption, thus judges the corresponding systems soft ware of each test cases and hardware
Power consumption levels level.
Preferably, N number of test cases is run described in step S102 to be specially:
N number of test cases described in circular flow, until the electricity of the mobile terminal exhausts.
In embodiments of the present invention, for example, there are 12 test cases, then the first test cases to the 12nd is run in order
Test cases, after the operation of the 12nd test cases is finished, rerun the first test cases, thus the N number of test of circular flow
Case, until mobile terminal because electricity exhausts automatic shutdown, thus complete mobile terminal by the fully charged work(exhausted to electricity
Consumption test.
Preferably, after N number of test cases is run described in step S102, methods described also includes:
Record the mobile terminal from the fully charged whole machine operation duration exhausted to electricity.
Herein, mobile terminal is referred to as whole machine operation duration from the fully charged run time exhausted to electricity.Record is moved
The whole machine operation duration of dynamic terminal, can be used to judge the overall power level of mobile terminal, the i.e. systems soft ware of mobile terminal, hard
The overall power level of part.
Further, the power consumption that each test cases in N number of test cases is recorded described in step S103 includes:
Power consumption of each test cases in N number of test cases within the unit interval is recorded, and records each
Power consumption of the test cases in the operation duration of the test cases.
Wherein, the unit interval can be 1 minute, be not limited thereto.Each test cases is recorded within the unit interval
After power consumption, the power consumption water of each test cases can be judged by contrasting power consumption of each test cases within the unit interval
It is flat, so as to judge the power consumption levels of the corresponding systems soft ware of each test cases and hardware.
Fig. 2 shows the flow chart of realizing of the mobile terminal power consumption method of testing that another embodiment of the present invention is provided, detailed description
It is as follows:
In step s 201, factory reset, to delete all third-party application softwares.
In step S202, after the mobile terminal is fully charged, the connection with charge power supply is disconnected.
In step S203, N number of test cases is run, each test cases correspondence one in N number of test cases
Systems soft ware and at least one hardware, wherein, N is the integer more than or equal to 1.
In step S204, the power consumption of each test cases in N number of test cases is recorded.
In step S205, the power consumption of each test cases in described N number of test cases according to record determines institute
State the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases.
Wherein, step S202 to step S205 is identical to step S104 with step S101, will not be repeated here.In step
In S201, all third-party application softwares are deleted in mobile terminal factory reset, thus make the power consumption test of mobile terminal not
Influenceed by third-party application software, so as to the power problemses of mobile terminal to be positioned at the systems soft ware and hardware of mobile terminal
On, it is easy to find out the power problemses place of mobile terminal.
The embodiment of the present invention runs N number of test case by after mobile terminal is fully charged, disconnecting the connection with charge power supply
Example, records the power consumption of each test cases in N number of test cases, further according to each survey in N number of test cases of record
Try the power consumption of case, the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases, so that accurately
Position the power problemses place of mobile terminal.
Fig. 3 shows the structured flowchart of mobile terminal power consumption test system provided in an embodiment of the present invention, and the system can be with
For the mobile terminal power consumption method of testing described in service chart 1 and Fig. 2.For convenience of description, illustrate only and the present embodiment phase
The part of pass.
Reference picture 3, the system includes:
Electricity preparation block 31, for after the mobile terminal is fully charged, disconnecting the connection with charge power supply;
Test cases runs module 32, for running N number of test cases, each the test case in N number of test cases
Example correspondence one systems soft ware and at least one hardware, wherein, N is the integer more than or equal to 1;
Power consumption logging modle 33, the power consumption for recording each test cases in N number of test cases;
Power consumption determining module 34, for the power consumption of each test cases in the described N number of test cases according to record,
Determine the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases.
Preferably, test cases operation module 32 specifically for:
N number of test cases described in circular flow, until the electricity of the mobile terminal exhausts.
Preferably, the system also includes:
Whole machine operation duration logging modle, for recording the mobile terminal from the fully charged whole machine operation exhausted to electricity
Duration.
Further, the power consumption logging modle 33 specifically for:
Power consumption of each test cases in N number of test cases within the unit interval is recorded, and records each
Power consumption of the test cases in the operation duration of the test cases.
Preferably, the system also includes:
Recovery module, for factory reset, to delete all third-party application softwares.
The embodiment of the present invention runs N number of test case by after mobile terminal is fully charged, disconnecting the connection with charge power supply
Example, records the power consumption of each test cases in N number of test cases, further according to each survey in N number of test cases of record
Try the power consumption of case, the power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases, so that accurately
Position the power problemses place of mobile terminal.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (6)
1. a kind of mobile terminal power consumption method of testing, it is characterised in that including:
Before the mobile terminal is fully charged, factory reset, to delete all third-party application softwares;
After the mobile terminal is fully charged, the connection with charge power supply is disconnected;
N number of test cases is run, each test cases correspondence one systems soft ware and at least one in N number of test cases
Individual hardware, wherein, N is the integer more than or equal to 1;The N number of test cases of operation is specially:N number of case described in circular flow
Example, until the electricity of the mobile terminal exhausts;
Record the power consumption of each test cases in N number of test cases;
The power consumption of each test cases in described N number of test cases according to record, in determining N number of test cases
The power consumption of the corresponding systems soft ware of each test cases and hardware, specifically:To each test cases, standard work(is pre-set
Consumption, the power consumption of each test cases for recording is contrasted with standard power consumption, thus judges that each test cases is corresponding
The power consumption levels of systems soft ware and hardware;
The power consumption for recording each test cases in N number of test cases is specifically included:
Before the operation of each test cases, the dump energy of the mobile terminal is recorded, finished in the operation of each test cases
Afterwards, the dump energy of the mobile terminal is re-recorded, the power consumption of each test cases is thus calculated.
2. method as claimed in claim 1, it is characterised in that after the N number of test cases of operation, methods described is also wrapped
Include:
Record the mobile terminal from the fully charged whole machine operation duration exhausted to electricity.
3. the method for claim 1, it is characterised in that described each test case recorded in N number of test cases
The power consumption of example includes:
Power consumption of each test cases in N number of test cases within the unit interval is recorded, and records each test
Power consumption of the case in the operation duration of the test cases.
4. a kind of mobile terminal power consumption test system, it is characterised in that including:
Recovery module, for factory reset, to delete all third-party application softwares;
Electricity preparation block, for after the mobile terminal is fully charged, disconnecting the connection with charge power supply;
Test cases runs module, for running N number of test cases, each test cases correspondence in N number of test cases
One systems soft ware and at least one hardware, wherein, N is the integer more than or equal to 1;The N number of test cases tool of operation
Body is:N number of case described in circular flow, until the electricity of the mobile terminal exhausts;
Power consumption logging modle, the power consumption for recording each test cases in N number of test cases;
Power consumption determining module, for the power consumption of each test cases in the described N number of test cases according to record, determines institute
The power consumption of the corresponding systems soft ware of each test cases and hardware in N number of test cases is stated, specifically:To each test case
Example, pre-sets standard power consumption, and the power consumption of each test cases for recording is contrasted with standard power consumption, thus judges every
The power consumption levels of the corresponding systems soft ware of individual test cases and hardware;
The power consumption logging modle, specifically for before the operation of each test cases, recording the residue of the mobile terminal
Electricity, after the operation of each test cases is finished, re-records the dump energy of the mobile terminal, thus calculates each test
The power consumption of case.
5. system as claimed in claim 4, it is characterised in that the system also includes:
Whole machine operation duration logging modle, for record the mobile terminal from the fully charged whole machine that is exhausted to electricity run when
It is long.
6. system as claimed in claim 4, it is characterised in that the power consumption logging modle specifically for:
Power consumption of each test cases in N number of test cases within the unit interval is recorded, and records each test
Power consumption of the case in the operation duration of the test cases.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342915.0A CN104092804B (en) | 2014-07-17 | 2014-07-17 | A kind of mobile terminal power consumption method of testing and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342915.0A CN104092804B (en) | 2014-07-17 | 2014-07-17 | A kind of mobile terminal power consumption method of testing and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104092804A CN104092804A (en) | 2014-10-08 |
CN104092804B true CN104092804B (en) | 2017-06-23 |
Family
ID=51640484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410342915.0A Expired - Fee Related CN104092804B (en) | 2014-07-17 | 2014-07-17 | A kind of mobile terminal power consumption method of testing and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104092804B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105786697A (en) * | 2014-12-25 | 2016-07-20 | 展讯通信(上海)有限公司 | Automatic power consumption test data processing method |
CN107870841B (en) * | 2016-09-26 | 2020-09-01 | 展讯通信(上海)有限公司 | Mobile terminal power consumption analysis method and system |
CN106953956A (en) * | 2017-03-20 | 2017-07-14 | 上海与德科技有限公司 | Test system of continuing a journey and method |
CN107911525B (en) * | 2017-11-02 | 2020-06-26 | 中国电子技术标准化研究院 | Method and device for detecting power consumption of mobile phone application |
CN109799385A (en) * | 2019-01-17 | 2019-05-24 | 晶晨半导体(上海)股份有限公司 | The power consumption test method and system of hardware device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8538484B2 (en) * | 2009-08-14 | 2013-09-17 | Google Inc. | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
CN102918473B (en) * | 2010-06-07 | 2015-07-08 | 松下电器(美国)知识产权公司 | Mobile-type information processing terminal |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
US8650552B1 (en) * | 2012-06-22 | 2014-02-11 | Google Inc. | Methods and systems for simulation of energy consumption in mobile operating system emulators |
CN103701970A (en) * | 2013-12-04 | 2014-04-02 | 中国科学院深圳先进技术研究院 | Power consumption prompting method and device for mobile terminal and mobile terminal |
-
2014
- 2014-07-17 CN CN201410342915.0A patent/CN104092804B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN104092804A (en) | 2014-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104092804B (en) | A kind of mobile terminal power consumption method of testing and system | |
CN108415739B (en) | Hook method and device for dynamic link library function and storage medium | |
US9560185B2 (en) | Hybrid telecommunications network connection indicator | |
JP5426758B2 (en) | System and method for recording and sharing mobile application activity | |
EP3029678A1 (en) | Recording method, playing method, device, terminal and system | |
US11202066B2 (en) | Video data encoding and decoding method, device, and system, and storage medium | |
CN104253740B (en) | Picture is registered method, Apparatus and system | |
CN103699309B (en) | A kind of method for recording of synchronization video, device and mobile terminal | |
CN103220392B (en) | A kind of method of automatic recording, device and mobile terminal | |
CN105187733A (en) | Video processing method, device and terminal | |
CN104158506A (en) | Method, device and terminal for adjusting volume | |
CN105204046B (en) | Location system, positioning apparatus, storage device and positioning method | |
CN104967865A (en) | Video previewing method and apparatus | |
CN106294168A (en) | A kind of method and system carrying out Application testing | |
CN108170787A (en) | A kind of image file delet method, mobile terminal and computer readable storage medium | |
CN106406924A (en) | Application startup and exiting image control method and apparatus, and mobile terminal | |
CN108055052A (en) | System, electronic device and communication means | |
KR20110100014A (en) | Usb dongle device and operation method thereof, dongle expanded device connected the usb dongle device | |
CN103338313A (en) | Method and device for processing telephone numbers | |
CN116109734A (en) | Picture processing method and device | |
CN105718141A (en) | Method for moving desktop icon and mobile terminal | |
CN102281530A (en) | Method for providing game service and mobile terminal game platform | |
CN104391742B (en) | Optimizing application method and apparatus | |
US20150326727A1 (en) | Delivery of visual voicemail over multimedia messaging service | |
CN103873631A (en) | Method and device for displaying call interface of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170623 |