CN103312852A - Automatic mobile terminal current testing device and testing method thereof - Google Patents

Automatic mobile terminal current testing device and testing method thereof Download PDF

Info

Publication number
CN103312852A
CN103312852A CN2013102256592A CN201310225659A CN103312852A CN 103312852 A CN103312852 A CN 103312852A CN 2013102256592 A CN2013102256592 A CN 2013102256592A CN 201310225659 A CN201310225659 A CN 201310225659A CN 103312852 A CN103312852 A CN 103312852A
Authority
CN
China
Prior art keywords
portable terminal
parallel port
electric current
port switch
measured
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.)
Granted
Application number
CN2013102256592A
Other languages
Chinese (zh)
Other versions
CN103312852B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses an automatic mobile terminal current testing device and a testing method thereof. The device comprises a programmable power supply, a PC (personal computer) side and a to-be-tested mobile terminal which are connected with one another. The programmable power supply is connected with the PC side through a GPIB (general purpose interface bus). A connecting line controller is further arranged between the PC side and the to-be-tested mobile terminal. The method includes the following steps: 1, initializing automatic current testing software, acquiring a current state of a parallel-port switch, judging whether to turn on the parallel-port switch or not, and if yes, connecting the connecting line controller; 2, judging whether communication is established between the PC side and the to-be-tested mobile terminal or not, if yes, performing step 3; 3, reading application program information of the current to-be-tested mobile terminal by the PC side; 4, judging whether to turn off the parallel-port switch by the PC side or not, and if yes, disconnecting the connecting line controller, closing the communication and completing charging; 5, controlling the programmable power supply to read currents of the to-be-tested mobile terminal and storing current data to the PC side by a PC. With the device and the method, testing interference is avoided and accuracy of current data testing can be guaranteed.

Description

A kind of portable 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 portable terminal electric current automatic test device and method of testing thereof.
Background technology
Portable terminal, for example the electric weight of smart mobile phone is a bottleneck always, and before battery technology was obtained important breakthrough, power consumption just became an at present very important index, and how power consumption being tested is a large problem.In the prior art, for example number of patent application is 201110097078.6, patent name is a kind of automatic mobile phone current testing method, to use USB to connect to send out behind the mobile phone AT instruction (AT is Attention, and the AT instruction generally is applied to being connected and communicating by letter between terminal equipment and the PC application) 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 this moment, the data of test were interfered.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of portable terminal electric current automatic test device and method of testing thereof are provided, avoid test to disturb, can guarantee the accuracy of measuring current data.
In order to achieve the above object, the technical solution used in the present invention is: a kind of portable terminal electric current automatic test device, comprise interconnective programmable power supply, PC end and portable terminal to be measured, described programmable power supply is connected by the GPIB line with the PC end, it is characterized in that: between described PC end and the portable terminal to be measured a connecting line control device is set also, 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 portable terminal to be measured, and the parallel port interface is connected to the parallel port interface of PC end.
Further, described PC end is provided for opening the parallel port switch of parallel port interface.
A kind of method of testing based on described portable terminal electric current automatic test device may further comprise the steps:
Step 1. initialization electric current automatic test software obtains the current state of parallel port switch, judges whether to open the parallel port switch, is conducting connecting line control device then, otherwise continues to obtain the current state of parallel port switch;
Step 2. judges whether PC end and portable terminal to be measured set up communication, is execution in step 3 then, otherwise continues to judge whether PC end and portable terminal to be measured set up communication;
Step 3.PC end reads the application information of current portable terminal to be measured;
Step 4. judges whether the PC end disconnects the parallel port switch, is then to disconnect thread control device, and communication is closed, complete charge, otherwise continue to judge whether the PC end disconnects the parallel port switch until disconnect the parallel port switch;
Step 5. PC control programmable power supply reads the electric current of portable terminal to be measured and current data is saved to the PC end.
Further, described method also comprises in advance at PC end SQL and is used for opening and disconnecting the parallel port switch.
Further, the described electric current automatic test of step 1 software is installed on the PC end.
Further, the described application information of step 3 comprises the fundamental system software that obtains the normal operation of portable terminal to be measured and the application program that needs measuring current.
Further, it is as follows that the described PC of step 5 control programmable power supply reads the detailed step of electric current of portable terminal to be measured:
Step 501. PC end connects by GPIB with programmable power supply;
Step 502. PC end sends application program is read in the SCPI instruction to programmable power supply current data;
Step 503. is saved to the PC end with the current data that reads.
Compared with prior art, the invention has the beneficial effects as follows: by the connecting line control device is 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 portable terminal to be measured, the parallel port interface is connected to the parallel port interface of PC end, solution can make portable terminal to be measured and PC end connect, the PC end obtains the current state information of portable terminal to be measured, can after connecting, not charge to carry out the test of electric current again, guaranteed the accuracy of test, and interference-free.
Description of drawings
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, for example want automation ground test portable terminal to be measured, one or several app(application program of mobile phone operation for example) power consumption situation, have two primary conditions to satisfy: the first, PC can set up communicate by letter with programmable power supply and obtain current data; The second, PC should be able to obtain the app information that mobile phone is moving.Present problem is that PC and mobile communication are by the USB line, and can cause mobile phone to be in charged state this moment, and current data is inaccurate.And the invention provides a kind of portable terminal electric current automatic test device and method of testing, solve and to allow mobile phone and PC connect, PC can obtain the current state information of mobile phone, can after connecting, not charge to carry out the test of electric current again, guaranteed the accuracy of test, and interference-free.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in order to technical characterictic of the present invention and advantage are carried out more deep annotation.
Apparatus structure schematic diagram of the present invention as shown in Figure 1, a kind of portable terminal electric current automatic test device, comprise interconnective programmable power supply, PC end and portable terminal to be measured, described programmable power supply is connected by the GPIB line with the PC end, it is characterized in that: between described PC end and the portable terminal to be measured a connecting line control device is set also, 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 portable terminal to be measured, and the parallel port interface is connected to the parallel port interface of PC end.For example the connecting line control device has three port A, B, C, and wherein A is that the generic USB line is connected to PC, and B is that mobile phone USB line is connected to mobile phone, and C is that the 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 controlled by a switch, and this switch is connected to the C port.
Further, described PC end is provided for opening the parallel port switch of parallel port interface.
A kind of method of testing based on described portable terminal electric current automatic test device may further comprise the steps:
Step 1. initialization electric current automatic test software, obtaining the current state of parallel port switch, judge whether to open the parallel port switch, is conducting connecting line control device then, otherwise continuing to obtain the current state of parallel port switch, is conducting connecting line control device when opening the parallel port switch; The parallel port interface of PC end is that the parallel port interface on the main frame (for example is original printer interface, substantially do not connect now printer, but most of computer PC end has still kept this interface), open the parallel port switch by software control, the API that directly calls under the windows finishes, and need not any other resource.
Step 2. judges whether PC end and portable terminal to be measured set up communication, is execution in step 3 then, otherwise continues to judge whether PC end and portable terminal to be measured set up communication until set up communication; This moment, mobile phone was in charged state, and PC sets up with programmable power supply with mobile phone simultaneously and communicates by letter.The PC end can obtain the system service authority with the communication that mobile phone is set up, and can open, close, inquire about the current phone application program.Programmable power supply is whole device power supply.
Step 3.PC end reads the application information of current portable terminal to be measured; Can obtain the program information that mobile phone is moving this moment except fundamental system software, such as game or other app that plays.But this moment is the measuring current data directly, because this moment, mobile phone still charged, current data is inaccurate, and the current data in charging is inaccurate.
Step 4. judges whether the PC end disconnects the parallel port switch, is then to disconnect thread control device, and communication is closed, complete charge, otherwise continue to judge whether the PC end disconnects the parallel port switch until disconnect the parallel port switch; This moment, PC communicated by letter normally with programmable power supply, but disconnected with mobile communication, did not recharge.
Step 5. PC control programmable power supply reads the electric current of portable terminal to be measured and current data is saved to the PC end." PC control programmable power supply read the mobile phone current data " is by the abbreviation of the English General-Purpose Interface of GPIB(Bus) communication uses the abbreviation of SCPI(English Standard Commands for Programmable Instruments) the language program-controlled instrument obtains current data.The current data that obtain this moment is only accurately, and we can analyze the power consumption value that mobile phone moves any app according to the data of obtaining.Programmable power supply carries the function of measuring current, after PC and programmable power supply connect by GPIB, sends the SCPI instruction and gets final product the reading current data, and instruction can be learnt in the operation manual inquiry of programmable power supply.The parallel port interface is to control parallel port that whether the USB line disconnect to locate to be communicated with mobile phone to individual high level USB line and can set up the communication parallel port with PC and locate just to disconnect mobile phone to individual low level USB line and communicate by letter with the PC disconnection.The high level low level can realize by SQL or programming.Normal measuring current only needs the PC end to communicate by letter with programmable power supply get final product, and adds the parallel port and the USB line is the information that needed the automatic acquisition mobile phone before measuring current, thereby can test the power consumption of each application program more accurately after disconnection is charged.
Further, described method also comprises in advance at PC end SQL and is used for opening and disconnecting the parallel port switch.
Further, the described electric current automatic test of step 1 software is installed on the PC end.And this electric current automatic test software preloading is held at PC.
Further, the described application information of step 3 comprises the fundamental system software that obtains the normal operation of portable terminal to be measured and the application program that needs measuring current.The power consumption of softwares such as a game or chat software, beautiful figure show show, power consumption is herein namely tested by the power consumption electric current.
Further, it is as follows that the described PC of step 5 control programmable power supply reads the detailed step of electric current of portable terminal to be measured:
Step 501. PC end connects by GPIB with programmable power supply;
Step 502. PC end sends application program is read in the SCPI instruction to programmable power supply current data, and application program herein is single game, chat software or the picture that is moving, beautiful figure software etc.;
Step 503. is saved to the PC end with the current data that reads.
By the technical scheme among the above embodiment the present invention is carried out clear, complete description, obvious described embodiment is the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.

Claims (7)

1. portable terminal electric current automatic test device, comprise interconnective programmable power supply, PC end and portable terminal to be measured, described programmable power supply is connected by the GPIB line with the PC end, it is characterized in that: between described PC end and the portable terminal to be measured a connecting line control device is set also, 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 portable terminal to be measured, and the parallel port interface is connected to the parallel port interface of PC end.
2. portable terminal electric current automatic test device according to claim 1 is characterized in that: described PC end is provided for opening the parallel port switch of parallel port interface.
3. the method for testing based on each described portable terminal electric current automatic test device in the claim 1~2 is characterized in that, may further comprise the steps:
Step 1. initialization electric current automatic test software obtains the current state of parallel port switch, judges whether to open the parallel port switch, is conducting connecting line control device then, otherwise continues to obtain the current state of parallel port switch;
Step 2. judges whether PC end and portable terminal to be measured set up communication, is execution in step 3 then, otherwise continues to judge whether PC end and portable terminal to be measured set up communication;
Step 3.PC end reads the application information of current portable terminal to be measured;
Step 4. judges whether the PC end disconnects the parallel port switch, is then to disconnect thread control device, and communication is closed, complete charge, otherwise continue to judge whether the PC end disconnects the parallel port switch until disconnect the parallel port switch;
Step 5. PC control programmable power supply reads the electric current of portable terminal to be measured and current data is saved to the PC end.
4. portable terminal electric current automated testing method according to claim 3 is characterized in that: described method also comprises in advance and is used for opening and disconnecting the parallel port switch at PC end SQL.
5. portable terminal electric current automated testing method according to claim 4 is characterized in that: the described electric current automatic test of step 1 software is installed on the PC end.
6. portable terminal electric current automated testing method according to claim 5 is characterized in that: the described application information of step 3 comprises the fundamental system software that obtains the normal operation of portable terminal to be measured and the application program that needs measuring current.
7. portable terminal electric current automated testing method according to claim 6 is characterized in that, it is as follows that the described PC of step 5 control programmable power supply reads the detailed step of electric current of portable terminal to be measured:
Step 501. PC end connects by GPIB with programmable power supply;
Step 502. PC end sends application program is read in the SCPI instruction to programmable power supply current data;
Step 503. is saved to the PC end with the current data that reads.
CN201310225659.2A 2013-06-07 2013-06-07 A kind of mobile terminal electric current automatic test device and method of testing thereof Expired - Fee Related 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 true CN103312852A (en) 2013-09-18
CN103312852B CN103312852B (en) 2016-03-02

Family

ID=49137628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310225659.2A Expired - Fee Related 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763725A (en) * 2014-01-26 2014-04-30 天津市康凯特软件科技有限公司 Mobile terminal centralized control test and management method and device
CN104486779A (en) * 2014-12-05 2015-04-01 沈阳晨讯希姆通科技有限公司 Slow clock test method for mobile communication terminal and test system thereof
CN104915297A (en) * 2015-07-08 2015-09-16 上海斐讯数据通信技术有限公司 APP electricity consumption automatic test method for android device
CN104932962A (en) * 2015-06-05 2015-09-23 惠州Tcl移动通信有限公司 USB (Universal Serial Bus) plug testing system and method thereof
CN105450818A (en) * 2015-11-11 2016-03-30 中国联合网络通信集团有限公司 Power current measuring method and device for mobile terminal
CN105701049A (en) * 2016-03-23 2016-06-22 广东欧珀移动通信有限公司 System, method and device for writing in charging zone bit and mobile terminal
CN105738679A (en) * 2016-01-29 2016-07-06 广东小天才科技有限公司 Test data acquisition method, device and system for mobile equipment
CN105846263A (en) * 2016-03-23 2016-08-10 广东欧珀移动通信有限公司 USB adapter cable, charging testing method and charging testing system of mobile terminal
CN106291060A (en) * 2016-08-29 2017-01-04 深圳天珑无线科技有限公司 A kind of current test of mobile telephone system and current test of mobile telephone method
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN108548956A (en) * 2018-05-07 2018-09-18 Oppo广东移动通信有限公司 Power consumption test device and method for intelligent terminal
CN111007336A (en) * 2019-11-29 2020-04-14 四川爱联科技有限公司 Module production test power-on and power-off automatic detection system and method based on serial port communication

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

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763725A (en) * 2014-01-26 2014-04-30 天津市康凯特软件科技有限公司 Mobile terminal centralized control test and management method and device
CN104486779A (en) * 2014-12-05 2015-04-01 沈阳晨讯希姆通科技有限公司 Slow clock test method for mobile communication terminal and test system thereof
CN104486779B (en) * 2014-12-05 2018-10-30 沈阳晨讯希姆通科技有限公司 The slow clock test methodology of mobile communication terminal and its test system
CN104932962A (en) * 2015-06-05 2015-09-23 惠州Tcl移动通信有限公司 USB (Universal Serial Bus) plug testing system and method thereof
CN104915297B (en) * 2015-07-08 2018-01-16 上海斐讯数据通信技术有限公司 A kind of automated testing method of the APP power consumption of android equipment
CN104915297A (en) * 2015-07-08 2015-09-16 上海斐讯数据通信技术有限公司 APP electricity consumption automatic test method for android device
CN105450818B (en) * 2015-11-11 2018-06-29 中国联合网络通信集团有限公司 mobile terminal power consumption current measuring method and device
CN105450818A (en) * 2015-11-11 2016-03-30 中国联合网络通信集团有限公司 Power current measuring method and device for mobile terminal
CN105738679A (en) * 2016-01-29 2016-07-06 广东小天才科技有限公司 Test data acquisition method, device and system for mobile equipment
CN105846263A (en) * 2016-03-23 2016-08-10 广东欧珀移动通信有限公司 USB adapter cable, charging testing method and charging testing system of mobile terminal
CN105846263B (en) * 2016-03-23 2018-02-02 广东欧珀移动通信有限公司 A kind of charging measurement method and system of mobile terminal
CN105701049A (en) * 2016-03-23 2016-06-22 广东欧珀移动通信有限公司 System, method and device for writing in charging zone bit and mobile terminal
CN105701049B (en) * 2016-03-23 2019-03-01 Oppo广东移动通信有限公司 System, method, apparatus and the mobile terminal of charge flag position is written
CN106291060A (en) * 2016-08-29 2017-01-04 深圳天珑无线科技有限公司 A kind of current test of mobile telephone system and current test of mobile telephone method
CN106291060B (en) * 2016-08-29 2023-12-12 唯科终端技术(东莞)有限公司 Mobile phone current testing system and mobile phone current testing method
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN108548956A (en) * 2018-05-07 2018-09-18 Oppo广东移动通信有限公司 Power consumption test device and method for intelligent terminal
CN108548956B (en) * 2018-05-07 2020-10-02 Oppo广东移动通信有限公司 Power consumption testing device and method for intelligent terminal
CN111007336A (en) * 2019-11-29 2020-04-14 四川爱联科技有限公司 Module production test power-on and power-off automatic detection system and method based on serial port communication

Also Published As

Publication number Publication date
CN103312852B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN103312852A (en) Automatic mobile terminal current testing device and testing method thereof
CN204536493U (en) Intelligent gas meter veneer automatically testing platform
CN103344863B (en) The method of testing of mobile terminal and test system
CN107678960B (en) Intelligent ammeter software black box testing system and method
CN105785199A (en) Multifunctional power distribution terminal integrated test system and operating method thereof
CN104298224A (en) Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system
CN104267715A (en) Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN104133146A (en) On-site test method for feeder automation fault treatment logic
CN105842559B (en) Test result wiring method, device and test macro and mobile terminal
CN103916507A (en) Testing method and system for smart wristband
CN204116942U (en) Vehicle-mounted electronic control unit LIN bus communication automatic test device
CN105792239A (en) SIM (Subscriber Identity Module) card compatibility test system and control method thereof
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN105785113A (en) System and method for automatically testing power consumption
CN103969546A (en) Intelligent tester for secondary polarities of four-star voltage transformers
CN205982401U (en) Cell -phone current test system
CN203117358U (en) Intelligent tester for secondary polarity of four-star-shaped voltage transformer
CN203490285U (en) Unmanned plane full-automatic impedance detection device
CN101662519B (en) System and method for controlling current test of mobile telephone
CN105071489A (en) Charging method and apparatus of terminal having data exchange function
CN103529829A (en) Test system for electric vehicle controller
CN105356955A (en) Business simulation device applicable to network performance test and method
CN210136402U (en) Intelligent electric energy meter daily timing error adjusting and measuring device based on high and low temperature experiment box
CN204882853U (en) Electric energy meter pressure resistance test installation
CN104569901B (en) A kind of detecting system of intelligent electric energy meter

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
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160302

CF01 Termination of patent right due to non-payment of annual fee