CN105791497A - Automatic testing system of power consumption of mobile terminal and working method of automatic testing system - Google Patents

Automatic testing system of power consumption of mobile terminal and working method of automatic testing system Download PDF

Info

Publication number
CN105791497A
CN105791497A CN201410838394.8A CN201410838394A CN105791497A CN 105791497 A CN105791497 A CN 105791497A CN 201410838394 A CN201410838394 A CN 201410838394A CN 105791497 A CN105791497 A CN 105791497A
Authority
CN
China
Prior art keywords
mobile terminal
power consumption
control module
tested mobile
test system
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.)
Pending
Application number
CN201410838394.8A
Other languages
Chinese (zh)
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.)
Spreadtrum Communications Shanghai Co Ltd
Spreadtrum Communications Inc
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201410838394.8A priority Critical patent/CN105791497A/en
Publication of CN105791497A publication Critical patent/CN105791497A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of electronic communication, and in particular relates to an automatic testing system of power consumption of a mobile terminal. The system comprises a control module provided with a communication interface, communicating with a tested mobile terminal through the communication interface, and used for sending a testing instruction to the tested mobile terminal and acquiring testing data of the tested mobile terminal; a power supply connected with the control module and the tested mobile terminal, and used for providing a predetermined power supply voltage to the tested mobile terminal under the control of the control module; a switch module connected with the control module and the tested mobile terminal, and used for producing the control instruction under the effect of the control module so as to open or wakeup the tested mobile terminal. The system provided by the invention can be used for measuring the power consumption data of the mobile terminal in the complex scene, the sleep state of the tested mobile terminal cannot be influenced in the testing process, the tested power consumption data is accurate, the real user operation can be simulated, and the efficient and precise automatic testing of power consumption can be realized.

Description

A kind of mobile terminal power consumption automatization test system and method for work thereof
Technical field
The present invention relates to technical field of electronic communication, be specifically related to a kind of mobile terminal power consumption automatization test system and method for work thereof.
Background technology
The use of current mobile terminal is very universal, and compared with the developing rapidly of mobile terminal, the development of battery technology is relatively slower, therefore designs and develops in process at mobile terminal, it is necessary to the power consumption situation of hardware and software is measured timely, to pinpoint the problems.Carry out the test of power consumption at present mainly based on manual test, take into account part and tested by the mode of wireless connections and compunication by plug-in.It is performed manually by power consumption test and can cause that the data precision of test is not good, complex operation, inefficiency.Plug-in then can not measure the power consumption of mobile terminal sleeping pattern by the mode of radio connection with compunication, and the situation for performing business operation mobile phone sleep later cannot be measured;And power consumption is had a certain impact by plug-in, the power consumption data of test, because opening wireless module, causes affecting than actual bigger than normal grade of power consumption data.
Summary of the invention
It is an object of the invention to, it is provided that a kind of mobile terminal power consumption automatization test system, solve above technical problem;
The present invention also aims to, it is provided that the method for work of a kind of mobile terminal power consumption automatization test system, solve above technical problem.
Technical problem solved by the invention can realize by the following technical solutions:
A kind of mobile terminal power consumption automatization test system, wherein, including,
Control module, be provided with communication interface, by described communication interface and tested mobile terminal communication, send test instruction to described tested mobile terminal and obtain the test data of described tested mobile terminal;
Power supply, is connected with described control module and described tested mobile terminal respectively, provides predetermined power source voltage extremely described tested mobile terminal under the control of described control module;
Switch module, is connected with described control module and described tested mobile terminal respectively, produces control instruction to open or to wake described tested mobile terminal up under the effect of described control module.
The mobile terminal power consumption automatization test system of the present invention, described communication interface adopts serial communication interface.
The mobile terminal power consumption automatization test system of the present invention, described control module adopts a main control computer, and described main control computer arranges general purpose interface bus card, is connected with described power supply by described general purpose interface bus card.
The mobile terminal power consumption automatization test system of the present invention, described control module is connected with described switch module also by described serial communication interface.
The mobile terminal power consumption automatization test system of the present invention, also includes time block, is connected with described control module, for setting the length of one's sleep of described mobile terminal to be measured.
The mobile terminal power consumption automatization test system of the present invention, described tested mobile terminal is the mobile terminal based on Android system.
The present invention also provides for the method for work of a kind of mobile terminal power consumption automatization test system, wherein, for above-mentioned mobile terminal power consumption automatization test system, comprises the following steps:
Step 1, described power supply exports predetermined power source voltage extremely described tested mobile terminal under one first control signal effect;
Step 2, described switch module opens described tested mobile terminal under one second control signal effect;
Step 3, described tested mobile terminal performs corresponding test operation feedback test data extremely described control module under the control instruction effect of described control module.
The mobile terminal power consumption automated testing method of the present invention, also includes step 4, and described control module calculates described tested mobile terminal power consumption under set environment according to described test data.
The mobile terminal power consumption automated testing method of the present invention, after tested mobile terminal described in described control module monitors enters sleep state, produces to drive signal to drive described switch module to wake described tested mobile terminal up.
The mobile terminal power consumption automated testing method of the present invention, described tested mobile terminal keeps the setting time after entering sleep state under the effect of described control instruction, and after postponing the setting time, described control module produces to drive signal to drive described switch module to wake described tested mobile terminal up.
Beneficial effect: owing to adopting above technical scheme, the present invention can measure mobile terminal power consumption data under complex scene, test process does not affect the sleep state of tested mobile terminal, the power consumption data of test is accurate, and real user operation can be simulated, it is achieved efficiently accurate power consumption automatic test.
Accompanying drawing explanation
Fig. 1 is the circuit system connection diagram of the present invention;
Fig. 2 is the method flow schematic diagram of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention.
It should be noted that when not conflicting, the embodiment in the present invention and the feature in embodiment can be mutually combined.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
With reference to Fig. 1, the present invention provides a kind of mobile terminal power consumption automatization test system, wherein, including,
Control module 1, be provided with communication interface, communicated with tested mobile terminal 3 by communication interface, send test instruction to tested mobile terminal 3 and obtain the test data of tested mobile terminal 3;
Power supply 2, respectively with control module 1 and tested mobile terminal 3 and be connected, provide predetermined power source voltage to tested mobile terminal 3 under the control controlling module 1;
Switch module 4, is connected with control module 1 and tested mobile terminal 3 respectively, produces control instruction to open or to wake tested mobile terminal 3 up under the effect controlling module 1.
Based on the manual test that prior art exists, the present invention causes that the result of test can not be very accurate, test loaded down with trivial details, inefficiency, relatively costly shortcoming and the automatic test scene carried out based on built-in application wireless connections cover deficiency, the problem of built-in application not can completely analog subscriber operation, passage, communication port and supplying channels is controlled, it is achieved real-time Communication for Power by controlling module, power supply, setting up between switch module and tested mobile terminal.
The mobile terminal power consumption automatization test system of the present invention, communication interface can adopt serial communication interface.Using serial communication as communication mode, it can be ensured that control module and tested mobile terminal real-time communication, the advantage with low-power consumption, the power consumption of tested mobile terminal is affected less, to know the relevant information of measurement of power loss accurately.
The mobile terminal power consumption automatization test system of the present invention, control module 1 and can adopt a main control computer, main control computer arranges general purpose interface bus card (GeneralPurposeInterfaceBus is abbreviated as GPIB card), is connected with power supply 2 by general purpose interface bus card.
The mobile terminal power consumption automatization test system of the present invention, controls module 1 and is connected with switch module 4 also by serial communication interface.
The mobile terminal power consumption automatization test system of the present invention, also includes time block, is connected with controlling module 1, for setting the length of one's sleep of mobile terminal 3 to be measured.
A kind of specific embodiment, the mobile terminal power consumption automatization test system of the present invention can be mainly made up of the electrical switch of main control computer, tested mobile terminal, programmable power supply and control mobile phone state.Main control computer is connected by general purpose interface bus card with programmable power supply, for arranging the output voltage of programmable power supply and obtaining the current data of tested mobile terminal;Main control computer and tested mobile terminal are communicated by serial communication interface, it is possible to carry out real-time Communication for Power when guaranteeing not affect tested mobile terminal power consumption with tested mobile terminal;Main control computer and electrical switch are also by serial communication, main control computer controls tested mobile terminal by controlling the state of electrical switch, electrical switch is connected with the power key (Powerkey) of tested mobile terminal, and sleep awakening is done in the control by main control computer.
The mobile terminal power consumption automatization test system of the present invention, tested mobile terminal 3 can be, but not limited to all mobile terminals based on Android system.
The present invention also provides for the method for work of a kind of mobile terminal power consumption automatization test system, for above-mentioned mobile terminal power consumption automatization test system, comprises the following steps:
Step 1, power supply exports predetermined power source voltage to tested mobile terminal under one first control signal effect;
Step 2, switch module opens tested mobile terminal under one second control signal effect;
Step 3, tested mobile terminal performs corresponding test operation under the control instruction effect controlling module, and feedback test data are to controlling module.
First control signal of the present invention and the second control signal respectively by controlling module generation, can be sent to tested mobile terminal by communication interface by the test case of script edit, and tested mobile terminal foundation control instruction is to perform test operation.
In the power consumption test process of tested mobile terminal, under some scenes, mobile terminal can enter sleep, as after having performed corresponding test operation, it is possible to enters sleep state or low power consumpting state.When mobile terminal can not communicate with main control computer after entering sleep, after the control module monitors of the present invention enters sleep to tested mobile terminal, it is possible to produce to drive signal to drive switch module to wake tested mobile terminal up.
The mobile terminal power consumption automated testing method of the present invention, also includes step 4, controls module and calculates the power consumption of set environment according to test data.Test data are generally current data, control the power consumption that module can accurately calculate the tested mobile terminal of set environment according to the computational methods of prior art.
The real-time Communication for Power observing and controlling process of the present invention can be such that
S11, test system hardware runs the control software design of main control computer after connecting, according to the information that hardware is enumerated on main control computer, fill in configuration information;
S12, arranges power supply parameter by the control software design of main control computer, to provide the supply voltage needed for tested mobile terminal;
S13, the control software design of main control computer controls switch module makes tested mobile terminal normal boot-strap;
S14, the control software design of main control computer is by communication port and tested mobile terminal communication, and tested mobile terminal receives the instruction that main control computer sends, and performs relevant test;
S15, the script in tested mobile terminal sends relevant information to the control software design of main control computer, and the control software design of main control computer calculates the power consumption of set environment according to information such as the test data received.
The mobile terminal power consumption automated testing method of the present invention, some test case needs tested mobile terminal keep the setting time upon entering the sleep state, after postponing the setting time, control module produce to drive signal to drive switch module to wake tested mobile terminal up.When entering sleep state when test case there being scene need in test process, needing to increase timer function in the script write, when needs enter sleep state, intervalometer is set, tested mobile terminal is waken up with intervalometer after the time delay regular hour, the control software design that tested mobile terminal sends messages to main control computer by serial ports after being waken up realizes real-time Communication for Power, ensure the accurate and effective of measurement result, meet accuracy and high efficiency requirement that power consumption is tested automatically.And do not affect sleep.
The present invention can realize controlling module and tested mobile terminal real-time Communication for Power according to testing requirement in power consumption automatic test, main actively initiation from main control computer controls, whether detection tested mobile terminal sleeps, enter sleep and then wake tested mobile terminal up, then communicate, it is ensured that main control computer carries out power consumption test under not affecting tested mobile terminal sleep state.
The present invention can measure mobile terminal power consumption data under complex scene, does not affect the sleep state of tested mobile terminal in test process, and the power consumption data of test is accurate, and can simulate real user operation, it is achieved efficiently accurate power consumption automatic test.The present invention can realize real-time Communication for Power in power consumption test process, it is ensured that the accuracy of test, can realize automatic test simultaneously, improves testing efficiency.
The foregoing is only preferred embodiment of the present invention; not thereby restriction embodiments of the present invention and protection domain; to those skilled in the art; the equivalent replacement done by all utilizations description of the present invention and diagramatic content and the obtained scheme of apparent change should be can appreciate that, all should be included in protection scope of the present invention.

Claims (10)

1. a mobile terminal power consumption automatization test system, it is characterised in that include,
Control module, be provided with communication interface, by described communication interface and tested mobile terminal communication, send test instruction to described tested mobile terminal and obtain the test data of described tested mobile terminal;
Power supply, is connected with described control module and described tested mobile terminal respectively, provides predetermined power source voltage extremely described tested mobile terminal under the control of described control module;
Switch module, is connected with described control module and described tested mobile terminal respectively, produces control instruction to open or to wake described tested mobile terminal up under the effect of described control module.
2. a kind of mobile terminal power consumption automatization test system according to claim 1, it is characterised in that described communication interface adopts serial communication interface.
3. a kind of mobile terminal power consumption automatization test system according to claim 1, it is characterized in that, described control module adopts a main control computer, and described main control computer arranges general purpose interface bus card, is connected with described power supply by described general purpose interface bus card.
4. a kind of mobile terminal power consumption automatization test system according to claim 2, it is characterised in that described control module is connected with described switch module also by described serial communication interface.
5. a kind of mobile terminal power consumption automatization test system according to claim 1, it is characterised in that also include time block, be connected with described control module, for setting the length of one's sleep of described mobile terminal to be measured.
6. a kind of mobile terminal power consumption automatization test system according to claim 1, it is characterised in that described tested mobile terminal is the mobile terminal based on Android system.
7. the method for work of a mobile terminal power consumption automatization test system, it is characterised in that the mobile terminal power consumption automatization test system described in claim 1 to 6 any one, comprises the following steps:
Step 1, described power supply exports predetermined power source voltage extremely described tested mobile terminal under one first control signal effect;
Step 2, described switch module opens described tested mobile terminal under one second control signal effect;
Step 3, described tested mobile terminal performs corresponding test operation feedback test data extremely described control module under the control instruction effect of described control module.
8. the method for work of a kind of mobile terminal power consumption automatization test system according to claim 7, it is characterised in that also include step 4, described control module calculates described tested mobile terminal power consumption under set environment according to described test data.
9. the method for work of a kind of mobile terminal power consumption automatization test system according to claim 7, it is characterized in that, after described control module monitors enters sleep state to described tested mobile terminal, produce to drive signal to drive described switch module to wake described tested mobile terminal up.
10. the method for work of a kind of mobile terminal power consumption automatization test system according to claim 7, it is characterized in that, described tested mobile terminal keeps the setting time after entering sleep state under the effect of described control instruction, and after postponing the setting time, described control module produces to drive signal to drive described switch module to wake described tested mobile terminal up.
CN201410838394.8A 2014-12-25 2014-12-25 Automatic testing system of power consumption of mobile terminal and working method of automatic testing system Pending CN105791497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410838394.8A CN105791497A (en) 2014-12-25 2014-12-25 Automatic testing system of power consumption of mobile terminal and working method of automatic testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410838394.8A CN105791497A (en) 2014-12-25 2014-12-25 Automatic testing system of power consumption of mobile terminal and working method of automatic testing system

Publications (1)

Publication Number Publication Date
CN105791497A true CN105791497A (en) 2016-07-20

Family

ID=56389100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410838394.8A Pending CN105791497A (en) 2014-12-25 2014-12-25 Automatic testing system of power consumption of mobile terminal and working method of automatic testing system

Country Status (1)

Country Link
CN (1) CN105791497A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452956A (en) * 2016-09-30 2017-02-22 深圳市吉祥腾达科技有限公司 Power modem sleep wake-up test system and test method
CN106534437A (en) * 2016-10-20 2017-03-22 上海斐讯数据通信技术有限公司 System and method for testing power consumption of mobile terminal
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN108563600A (en) * 2018-04-26 2018-09-21 上海移远通信技术股份有限公司 Switching circuit and device for the test of electronic product dormancy power consumption
CN109933494A (en) * 2019-03-28 2019-06-25 晶晨半导体(上海)股份有限公司 The power consumption test method and system of hardware device
CN116047194A (en) * 2022-12-08 2023-05-02 宁波瑞森智能科技有限公司 Cluster type measurement system and measurement method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098714A (en) * 2009-12-11 2011-06-15 联芯科技有限公司 Terminal power consumption testing system and testing method
US20120322387A1 (en) * 2011-06-16 2012-12-20 The Board Of Trustees Of The Leland Stanford Junior University System for analyzing mobile browser energy consumption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098714A (en) * 2009-12-11 2011-06-15 联芯科技有限公司 Terminal power consumption testing system and testing method
US20120322387A1 (en) * 2011-06-16 2012-12-20 The Board Of Trustees Of The Leland Stanford Junior University System for analyzing mobile browser energy consumption

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN106452956A (en) * 2016-09-30 2017-02-22 深圳市吉祥腾达科技有限公司 Power modem sleep wake-up test system and test method
CN106452956B (en) * 2016-09-30 2019-06-21 深圳市吉祥腾达科技有限公司 A kind of Homeplug dormancy wake-up testing system and test method
CN106534437A (en) * 2016-10-20 2017-03-22 上海斐讯数据通信技术有限公司 System and method for testing power consumption of mobile terminal
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
CN108563600A (en) * 2018-04-26 2018-09-21 上海移远通信技术股份有限公司 Switching circuit and device for the test of electronic product dormancy power consumption
CN109933494A (en) * 2019-03-28 2019-06-25 晶晨半导体(上海)股份有限公司 The power consumption test method and system of hardware device
CN116047194A (en) * 2022-12-08 2023-05-02 宁波瑞森智能科技有限公司 Cluster type measurement system and measurement method

Similar Documents

Publication Publication Date Title
CN105791497A (en) Automatic testing system of power consumption of mobile terminal and working method of automatic testing system
CN105785113A (en) System and method for automatically testing power consumption
CN105067928B (en) A kind of automobile electronics dark current automated testing method and device
CN105785199A (en) Multifunctional power distribution terminal integrated test system and operating method thereof
CN103312852B (en) A kind of mobile terminal electric current automatic test device and method of testing thereof
CN102520272B (en) Test system of power down protection function of smart card and method
CN101287264B (en) Method, system and control device for measuring standby/call current of mobile phone
CN104202099B (en) A kind of for calibrating the method for 3G network interface card
CN104219746B (en) Method, device and terminal for autonomously adjusting wake-up time
CN105067930A (en) Test method and system of automatic test platform
CN111984479A (en) Method and system for carrying out startup and shutdown and restart tests on Android mainboard based on single chip microcomputer
CN203465715U (en) Automatic startup and shutdown test system
CN100570389C (en) A kind of device for testing functions and method that is used for small electric quantity extra battery
CN113407393A (en) Chip verification method, terminal device, verification platform and storage medium
CN104268041A (en) Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display
CN202693709U (en) Test tool and test system of electric equipment
CN105070022A (en) Meter end device and wireless meter reading system and method
CN103037099B (en) Mobile phone photographing preview method and device
CN106776330A (en) Application testing method and device and electronic equipment
CN103576019B (en) Testing tool, system and method of electrical equipment
CN105786698A (en) Script-based power consumption automatic test system for mobile terminal
CN211928046U (en) Automatic distribution's power distribution terminal tester of simulation main website of distribution
CN202475392U (en) Selector switch capable of controlling on-off of power supply
CN105072672A (en) Wireless function control method and system, and wireless device
CN102411527B (en) Detecting method for image-processing chip, developing plate and detecting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication