CN103312852B - A kind of mobile terminal electric current automatic test device and method of testing thereof - Google Patents

A kind of mobile terminal electric current automatic test device and method of testing thereof Download PDF

Info

Publication number
CN103312852B
CN103312852B CN201310225659.2A CN201310225659A CN103312852B CN 103312852 B CN103312852 B CN 103312852B CN 201310225659 A CN201310225659 A CN 201310225659A CN 103312852 B CN103312852 B CN 103312852B
Authority
CN
China
Prior art keywords
mobile terminal
parallel port
measured
electric current
port switch
Prior art date
Application number
CN201310225659.2A
Other languages
Chinese (zh)
Other versions
CN103312852A (en
Inventor
王达
刘学
夏儒斐
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201310225659.2A priority Critical patent/CN103312852B/en
Publication of CN103312852A publication Critical patent/CN103312852A/en
Application granted granted Critical
Publication of CN103312852B publication Critical patent/CN103312852B/en

Links

Abstract

A kind of mobile terminal electric current automatic test device and method of testing, described device comprises interconnective programmable power supply, PC end and mobile terminal to be measured, programmable power supply is held with PC and is connected by GPIB line, also arranges a connecting line control device between PC end and mobile terminal to be measured.Said method comprising the steps of: 1. initialization electric current automatic test software, obtain the current state of parallel port switch, judge whether to open parallel port switch, is then conducting connecting line control device; 2. judge whether PC end sets up communication with mobile terminal to be measured, is perform step 3; 3.PC end reads the application information of current mobile terminal to be measured; 4. judge whether PC end disconnects parallel port switch, is disconnect thread control device, and communication is closed, complete charge; 5.PC controls programmable power supply and reads the electric current of mobile terminal to be measured and current data be saved to PC end.Present invention, avoiding test interference, the accuracy of measuring current data can be ensured.

Description

A kind of mobile terminal electric current automatic test device and method of testing thereof

Technical field

The present invention relates to a kind of current test method, particularly relate to a kind of mobile terminal electric current automatic test device and method of testing thereof.

Background technology

Mobile terminal, the electricity of such as smart mobile phone is a bottleneck always, and before battery technology obtains important breakthrough, power consumption just becomes a very important index at present, and how to carry out test to power consumption is a large problem.In prior art, such as number of patent application is 201110097078.6, patent name is a kind of automatic mobile phone current testing method, be use USB to connect to send out after mobile phone AT instruction (AT and Attention, AT instruction be generally applied to terminal equipment and PC apply between connection and communication) to open or closing hand phone application program or operation function module are tested.Problem is wherein being charged after being to connect mobile phone simultaneously, and the data of now testing are interfered.

Summary of the invention

The object of the invention is to overcome the deficiencies in the prior art, a kind of mobile terminal electric current automatic test device and method of testing thereof are provided, avoid test interference, the accuracy of measuring current data can be ensured.

In order to achieve the above object, the technical solution used in the present invention is: a kind of mobile terminal electric current automatic test device, comprise interconnective programmable power supply, PC end and mobile terminal to be measured, described programmable power supply is held with PC and is connected by GPIB line, it is characterized in that: between described PC end and mobile terminal to be measured, a connecting line control device is also set, described connecting line control device is provided with three interfaces, comprise two USB line interfaces and a parallel port interface, wherein a USB line interface is connected to the USB line interface of PC end, another USB line interface connects the USB line interface of mobile terminal to be measured, parallel port interface is connected to the parallel port interface of PC end.

Further, described PC end arranges the parallel port switch for opening parallel port interface.

Based on a method of testing for described mobile terminal electric current automatic test device, comprise the following steps:

Step 1. initialization electric current automatic test software, obtains the current state of parallel port switch, judges whether to open parallel port switch, is then conducting connecting line control device, otherwise continues the current state obtaining parallel port switch;

Step 2. judges whether PC end sets up communication with mobile terminal to be measured, is perform step 3, otherwise continues to judge whether PC end sets up communication with mobile terminal to be measured;

Step 3.PC end reads the application information of current mobile terminal to be measured;

Step 4. judges whether PC end disconnects parallel port switch, is disconnect thread control device, and communication is closed, complete charge, otherwise continues to judge whether PC end disconnects parallel port switch until disconnect parallel port switch;

Step 5.PC controls programmable power supply and reads the electric current of mobile terminal to be measured and current data be saved to PC end.

Further, described method also comprises holds SQL for opening and disconnecting parallel port switch at PC in advance.

Further, the electric current automatic test software described in step 1 is installed on PC end.

Further, the application information described in step 3 comprises the fundamental system software that acquisition mobile terminal to be measured normally runs and the application program needing measuring current.

Further, the detailed step that the PC control programmable power supply described in step 5 reads the electric current of mobile terminal to be measured is as follows:

Step 501.PC end is connected by GPIB with programmable power supply;

Step 502.PC end sends application program is read in SCPI instruction current data to programmable power supply;

The current data of reading is saved to PC end by step 503..

Compared with prior art, the invention has the beneficial effects as follows: by arranging connecting line control device, described connecting line control device is provided with three interfaces, comprise two USB line interfaces and a parallel port interface, wherein a USB line interface is connected to the USB line interface of PC end, another USB line interface connects the USB line interface of mobile terminal to be measured, parallel port interface is connected to the parallel port interface of PC end, solution can make mobile terminal to be measured and PC hold to connect, PC end obtains the current state information of mobile terminal to be measured, can not charge the test carrying out electric current upon establishment of a connection again, ensure that the accuracy of test, and it is interference-free.

Accompanying drawing explanation

Fig. 1 is apparatus structure schematic diagram of the present invention.

Embodiment

Purport of the present invention is to overcome the deficiencies in the prior art, such as to automatically test mobile terminal to be measured, the power consumption condition of one or several app (application program) that such as mobile phone runs, has two primary conditions to meet: the first, PC can set up to communicate with programmable power supply and obtain current data; The second, PC should be able to obtain the app information that mobile phone is running.Current problem is PC and mobile communication is by USB line, and mobile phone now can be caused to be in charged state, and current data is inaccurate.And the invention provides a kind of mobile terminal electric current automatic test device and method of testing, solve and mobile phone and PC can be allowed to connect, PC can obtain the current state information of mobile phone, can not charge the test carrying out electric current upon establishment of a connection again, ensure that the accuracy of test, and without interruption.

Be described in detail, to be interpretated more in-depth technical characteristic of the present invention and advantage with reference to accompanying drawing below in conjunction with embodiment.

Apparatus structure schematic diagram of the present invention as shown in Figure 1, a kind of mobile terminal electric current automatic test device, comprise interconnective programmable power supply, PC end and mobile terminal to be measured, described programmable power supply is held with PC and is connected by GPIB line, it is characterized in that: between described PC end and mobile terminal to be measured, a connecting line control device is also set, described connecting line control device is provided with three interfaces, comprise two USB line interfaces and a parallel port interface, wherein a USB line interface is connected to the USB line interface of PC end, another USB line interface connects the USB line interface of mobile terminal to be measured, parallel port interface is connected to the parallel port interface of PC end.Such as connecting line control device has three ports A, B, C, and wherein A is that generic USB line is connected to PC, and B is that mobile phone USB line is connected to mobile phone, and C is that parallel port control line is connected to PC.Connecting line control device inside is the end-to-end line of USB, and data wire wherein and ground wire are direct-connected to B by A respectively, but power line is by a switch control rule, and this switch is connected to C port.

Further, described PC end arranges the parallel port switch for opening parallel port interface.

Based on a method of testing for described mobile terminal electric current automatic test device, comprise the following steps:

Step 1. initialization electric current automatic test software, obtaining the current state of parallel port switch, judge whether to open parallel port switch, is then conducting connecting line control device, otherwise continue the current state obtaining parallel port switch, when opening parallel port switch and conducting connecting line control device; The parallel port interface of PC end is parallel port interface (the such as namely original printer interface on main frame, substantially do not connect printer now, but most of computer PC end still remains this interface), open parallel port switch by software control, the API directly called under windows completes, without the need to any other resource.

Step 2. judges whether PC end sets up communication with mobile terminal to be measured, is perform step 3, otherwise continues to judge whether PC end sets up communication until set up communication with mobile terminal to be measured; Now mobile phone is in charged state, and PC sets up with programmable power supply with mobile phone simultaneously and communicates.The communication that PC end and mobile phone are set up can obtain system service authority, can open, close, inquire about current phone application program.Programmable power supply is that whole device is powered.

Step 3.PC end reads the application information of current mobile terminal to be measured; Now can obtain the program information that mobile phone is running except fundamental system software, as game or other app of object for appreciation.But now can not direct measuring current data, because now mobile phone is still in charging, current data is inaccurate, and current data is in charging inaccurate.

Step 4. judges whether PC end disconnects parallel port switch, is disconnect thread control device, and communication is closed, complete charge, otherwise continues to judge whether PC end disconnects parallel port switch until disconnect parallel port switch; Now PC communicates normally with programmable power supply, but disconnects with mobile communication, does not recharge.

Step 5.PC controls programmable power supply and reads the electric current of mobile terminal to be measured and current data be saved to PC end." PC controls programmable power supply and reads mobile phone current data " uses SCPI (abbreviation of English StandardCommandsforProgrammableInstruments) language program-controlled instrument to obtain current data by GPIB (abbreviation of English General-PurposeInterfaceBus) communication.The current data now obtained is only accurately, and according to the data obtained, we can analyze the electricity consumption value that mobile phone runs any app.Programmable power supply carries the function of measuring current, and after PC and programmable power supply are connected by GPIB, send SCPI instruction and namely can read current data, instruction can be inquired about and learn on the operation manual of programmable power supply.Parallel port interface is used to whether control USB line disconnect.Parallel port place is communicated with mobile phone to a high level USB line and can sets up communication parallel port place with PC and just disconnect mobile phone to a low level USB line and to disconnect with PC and communicate.High level low level can pass through SQL or programming realization.Normal measuring current only needs PC to hold to communicate with programmable power supply, and adds parallel port and USB line is the information needing automatic acquisition mobile phone before measuring current, thus disconnect charge after can test by the more accurate power consumption to each application program.

Further, described method also comprises holds SQL for opening and disconnecting parallel port switch at PC in advance.

Further, the electric current automatic test software described in step 1 is installed on PC end.And this electric current automatic test software preloading is held at PC.

Further, the application information described in step 3 comprises the fundamental system software that acquisition mobile terminal to be measured normally runs and the application program needing measuring current.The power consumption of the softwares such as such as a game or chat software, beautiful figure show show, namely power consumption herein tested by power consumption electric current.

Further, the detailed step that the PC control programmable power supply described in step 5 reads the electric current of mobile terminal to be measured is as follows:

Step 501.PC end is connected by GPIB with programmable power supply;

Step 502.PC end sends application program is read in SCPI instruction current data to programmable power supply, application program be herein running single game, chat software or picture, beautiful figure software etc.;

The current data of reading is saved to PC end by step 503..

Carry out clear, complete description by the technical scheme in above embodiment to the present invention, obviously described embodiment is the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.

Claims (5)

1. the method for testing of a mobile terminal electric current automatic test device, described testing apparatus comprises interconnective programmable power supply, PC end and mobile terminal to be measured, described programmable power supply is held with PC and is connected by GPIB line, it is characterized in that: between described PC end and mobile terminal to be measured, a connecting line control device is also set, described connecting line control device is provided with three interfaces, comprise two USB line interfaces and a parallel port interface, wherein a USB line interface is connected to the USB line interface of PC end, another USB line interface connects the USB line interface of mobile terminal to be measured, parallel port interface is connected to the parallel port interface of PC end, described PC end arranges the parallel port switch for opening parallel port interface,
Described method of testing comprises the following steps:
Step 1. initialization electric current automatic test software, obtains the current state of parallel port switch, judges whether to open parallel port switch, is then conducting connecting line control device, otherwise continues the current state obtaining parallel port switch;
Step 2. judges whether PC end sets up communication with mobile terminal to be measured, is perform step 3, otherwise continues to judge whether PC end sets up communication with mobile terminal to be measured;
Step 3.PC end reads the application information of current mobile terminal to be measured;
Step 4. judges whether PC end disconnects parallel port switch, is disconnect thread control device, and communication is closed, complete charge, otherwise continues to judge whether PC end disconnects parallel port switch until disconnect parallel port switch;
Step 5.PC controls programmable power supply and reads the electric current of mobile terminal to be measured and current data be saved to PC end.
2. the method for testing of mobile terminal electric current automatic test device according to claim 1, is characterized in that: described method also comprises holds SQL for opening and disconnecting parallel port switch at PC in advance.
3. the method for testing of mobile terminal electric current automatic test device according to claim 2, is characterized in that: the electric current automatic test software described in step 1 is installed on PC end.
4. the method for testing of mobile terminal electric current automatic test device according to claim 3, is characterized in that: the application information described in step 3 comprises the fundamental system software that acquisition mobile terminal to be measured normally runs and the application program needing measuring current.
5. the method for testing of mobile terminal electric current automatic test device according to claim 4, is characterized in that, the detailed step that the PC control programmable power supply described in step 5 reads the electric current of mobile terminal to be measured is as follows:
Step 501.PC end is connected by GPIB with programmable power supply;
Step 502.PC end sends application program is read in SCPI instruction current data to programmable power supply;
The current data of reading is saved to PC end by step 503..
CN201310225659.2A 2013-06-07 2013-06-07 A kind of mobile terminal electric current automatic test device and method of testing thereof CN103312852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310225659.2A CN103312852B (en) 2013-06-07 2013-06-07 A kind of mobile terminal electric current automatic test device and method of testing thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310225659.2A CN103312852B (en) 2013-06-07 2013-06-07 A kind of mobile terminal electric current automatic test device and method of testing thereof

Publications (2)

Publication Number Publication Date
CN103312852A CN103312852A (en) 2013-09-18
CN103312852B true CN103312852B (en) 2016-03-02

Family

ID=49137628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310225659.2A CN103312852B (en) 2013-06-07 2013-06-07 A kind of mobile terminal electric current automatic test device and method of testing thereof

Country Status (1)

Country Link
CN (1) CN103312852B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763725B (en) * 2014-01-26 2018-01-12 天津市康凯特软件科技有限公司 Mobile terminal centralized Control test and management method and device
CN104486779B (en) * 2014-12-05 2018-10-30 沈阳晨讯希姆通科技有限公司 The slow clock test methodology of mobile communication terminal and its test system
CN104932962B (en) * 2015-06-05 2017-09-05 惠州Tcl移动通信有限公司 A kind of USB plugs test system and its method
CN104915297B (en) * 2015-07-08 2018-01-16 上海斐讯数据通信技术有限公司 A kind of automated testing method of the APP power consumption of android equipment
CN105450818B (en) * 2015-11-11 2018-06-29 中国联合网络通信集团有限公司 mobile terminal power consumption current measuring method and device
CN105738679A (en) * 2016-01-29 2016-07-06 广东小天才科技有限公司 Test data acquisition method used for mobile equipment and device and system thereof
CN105846263B (en) * 2016-03-23 2018-02-02 广东欧珀移动通信有限公司 A kind of charging measurement method and system of mobile terminal
CN105701049B (en) * 2016-03-23 2019-03-01 Oppo广东移动通信有限公司 System, method, apparatus and the mobile terminal of charge flag position is written
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN108548956B (en) * 2018-05-07 2020-10-02 Oppo广东移动通信有限公司 Power consumption testing device and method for intelligent terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701401B1 (en) * 2000-07-14 2004-03-02 Inventec Corporation Method for testing a USB port and the device for the same
CN101018383A (en) * 2007-01-05 2007-08-15 华为技术有限公司 Test system of the mobile terminal power consumption
CN101848043A (en) * 2010-04-30 2010-09-29 青岛海信移动通信技术股份有限公司 Radio frequency test system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701401B1 (en) * 2000-07-14 2004-03-02 Inventec Corporation Method for testing a USB port and the device for the same
CN101018383A (en) * 2007-01-05 2007-08-15 华为技术有限公司 Test system of the mobile terminal power consumption
CN101848043A (en) * 2010-04-30 2010-09-29 青岛海信移动通信技术股份有限公司 Radio frequency test system and method

Also Published As

Publication number Publication date
CN103312852A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN205003156U (en) Utilize quick blood testing arrangement of closely wireless communication transmission
CN102255637B (en) Carrier communication test equipment
CN102098714B (en) Terminal power consumption testing system and testing method
CN205050134U (en) Portable power source TYPE -C interface management circuit
CN205003228U (en) A new energy automobile detector that charges
CN103207334B (en) A kind of test macro of electric automobile combined charging equipment and method of testing thereof
CN202794497U (en) On-site comprehensive detection equipment for electric energy information acquisition terminal
CN204291015U (en) A kind of test macro of communication products
AU2011367734B2 (en) Electric quantity collection terminal function tester
CN105021891B (en) Power distribution network base station type phase checking device
CN203352291U (en) Power terminal equipment maintenance system based on WIFI technology
CN101399864A (en) Test system and method for standby current of mobile terminal
CN205407947U (en) Cell -phone consumption tester
CN101858966A (en) Simulation detection system of electric energy meter data acquisition device
CN202218068U (en) MU emulator used for detection of smart substation
CN203405523U (en) Novel intelligent transformer station hand-held digital tester
CN204331019U (en) A kind of digital electricity meter IEC61850 compliance test system
GB2565177A (en) Electric energy meter, checking method therefor, and storage medium
CN202693709U (en) Test tool and test system of electric equipment
CN103763725A (en) Mobile terminal centralized control test and management method and device
CN103487717A (en) Battery detection system and battery detection method
CN204065398U (en) The aging verifying attachment of intelligent electric meter high/low temperature
CN104569719A (en) Multicore cable testing system
CN103986416A (en) Portable photovoltaic assembly monitoring end
CN106655513A (en) In-situ feeder automation test system

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model
CP01 Change in the name or title of a patent holder

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 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP01 Change in the name or title of a patent holder