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 PDFInfo
- 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
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 32
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000004891 communication Methods 0.000 claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 9
- 230000007812 deficiency Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Landscapes
- Telephone Function (AREA)
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
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..
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 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) |
Families Citing this family (12)
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, device and system for mobile equipment |
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 and device for writing in charging zone bit and mobile terminal |
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 |
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 |
Citations (3)
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 |
-
2013
- 2013-06-07 CN CN201310225659.2A patent/CN103312852B/en not_active Expired - Fee Related
Patent Citations (3)
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 |
---|---|---|
CN103312852B (en) | A kind of mobile terminal electric current automatic test device and method of testing thereof | |
CN103344863A (en) | Mobile terminal testing method and mobile terminal testing system | |
CN105785113A (en) | System and method for automatically testing power consumption | |
CN201732472U (en) | Automatic testing device of concentrated electric energy meter reading equipment | |
CN115150875A (en) | Test method and test system for Bluetooth function of intelligent electric energy meter | |
CN103499750A (en) | Portable multifunctional shore power system tester | |
CN204649868U (en) | Low-voltage electric cable pair verifies instrument | |
CN204065308U (en) | A kind of polycore cable is to line and fault detection system | |
CN203191816U (en) | Test System for Automatic Control Equipment of Distribution Network | |
CN208077394U (en) | A kind of the communication test plate and communication test system of concentrator communication module | |
CN210136402U (en) | Intelligent electric energy meter daily timing error adjusting and measuring device based on high and low temperature experiment box | |
CN210579258U (en) | Wireless signal detection device suitable for power equipment terminal | |
CN104092499A (en) | Portable Wireless Fiber Optic Transceiver | |
CN205374620U (en) | Portable digital relay protection tester | |
CN205079789U (en) | Aviation test platform equipment | |
CN203178475U (en) | Full-performance test system of data acquisition terminal of special transformer | |
CN203444053U (en) | Integrated network transformer scan test device | |
CN202856737U (en) | 10G EPON OLT optical module tester | |
CN203552056U (en) | Electric vehicle controller test system | |
CN206270460U (en) | To the test circuit of the power management chip of quick charge portable power source | |
CN201878172U (en) | Electrical protocol message analysis tester | |
CN206593729U (en) | A kind of hand-held detection configurating terminal of intellectual water meter | |
CN212749194U (en) | Hand-held type electric leakage detector | |
CN205643683U (en) | Ampere meter with measurement interface | |
CN104730309A (en) | Wireless distributed power-frequency integrated measuring device |
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 |