CN106597143B - Test equipment and test method - Google Patents

Test equipment and test method Download PDF

Info

Publication number
CN106597143B
CN106597143B CN201610993522.5A CN201610993522A CN106597143B CN 106597143 B CN106597143 B CN 106597143B CN 201610993522 A CN201610993522 A CN 201610993522A CN 106597143 B CN106597143 B CN 106597143B
Authority
CN
China
Prior art keywords
interface
mobile terminal
charging
switch element
connecting element
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.)
Active
Application number
CN201610993522.5A
Other languages
Chinese (zh)
Other versions
CN106597143A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610993522.5A priority Critical patent/CN106597143B/en
Publication of CN106597143A publication Critical patent/CN106597143A/en
Application granted granted Critical
Publication of CN106597143B publication Critical patent/CN106597143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application proposes a test device comprising a first connection element, a second connection element, a first switching element and a second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.

Description

Test equipment and test method
Technical Field
The invention relates to the technical field of communication, in particular to a test device, and also particularly relates to a test method.
Background
The USB charging function and The OTG (On-The-Go) function are two major functions widely applied to a mobile terminal, and both The two functions are realized by interacting with The mobile terminal through a USB port. However, the roles played by the mobile terminals are different when the two functions are implemented. When the OTG equipment is inserted, the mobile terminal sets itself as the main equipment and supplies power to the inserted external equipment through the USB port. At this time, the mobile terminal is used as a power supply device to supply power to the outside. And when charging, the mobile terminal is a slave device and is charged by an external power supply device.
Due to the difference between the USB charging function and the OTG function, when the USB charging function and the OTG function are realized, interface lines adopted by the mobile terminal are different. Therefore, when the function check of the mobile terminal is carried out, the two functions are tested in two steps.
And (3) OTG function test: generally, an OTG device is inserted into a USB port of a mobile terminal, and after recognizing that the OTG device is inserted, a mobile phone supplies power to the OTG device, and then determines whether the OTG function is qualified by detecting a power supply voltage of the mobile phone.
Testing a USB charging function: the OTG equipment is pulled out, a charging device is inserted, the mobile phone identifies that the charging device is inserted, then the charging current and the charging voltage are determined with the charging device, and then whether the charging function of the mobile phone is qualified or not is judged by detecting the actual charging current and the actual charging voltage.
In the process of implementing the present application, the inventor finds that in the prior art, at least the following problems exist in the detection process of implementing the USB charging function and the OTG function of the mobile phone:
because the interface lines used for connecting the charging equipment and the OTG equipment by the mobile terminal are different when the USB charging function and the OTG function are realized, the interface lines need to be plugged and unplugged for a plurality of times to access the charging equipment or the OTG equipment when the USB charging function and the OTG function of the mobile terminal are detected. On one hand, frequent plugging and unplugging of the interface line wastes time and labor, and the efficiency of the function test of the mobile phone is reduced; on the other hand, because the USB needs to be plugged and unplugged for a plurality of times (more than two times), the risk of scratching the shell of the mobile phone is greatly increased, and the maintenance cost of the mobile phone is increased.
Therefore, how to solve the problem that the connecting wire needs to be plugged and unplugged for many times in the testing process of the USB charging function and the OTG function of the mobile terminal, so as to increase the testing efficiency of the mobile terminal and reduce the probability of scratching the mobile terminal in the testing process, is a technical problem that needs to be solved urgently by technical personnel in the field.
Disclosure of Invention
The invention provides a test device of a mobile terminal, which is used for solving the problem that a connecting wire needs to be plugged and pulled for many times in the test process of a USB charging function and an OTG function of the mobile terminal in the prior art. The application provides a test equipment, be applied to in the system that contains mobile terminal, test equipment and charging device, test equipment contains first connecting element, second connecting element, first switching element and second switching element, wherein:
the first connecting element is used for being connected with the charging equipment;
the second connecting element is used for connecting with the mobile terminal;
the first switch element is respectively connected with the first connecting element and the second connecting element, and is used for being turned on when receiving a first control signal, and enabling the charging equipment to charge the mobile terminal when being turned on, so that the testing equipment can acquire charging function data of the mobile terminal;
the second switch element is connected with the second connection element and grounded, and is used for being conducted when the second switch element receives a second control signal, and enabling the OTG control interface of the mobile terminal to be grounded when the second switch element is conducted, so that the test equipment can obtain the OTG functional data of the mobile terminal.
Correspondingly, the present application also provides a testing method, which is applied to a system including a mobile terminal, a charging device and the testing device as described above, and the method includes:
when receiving indication information for detecting the charging function of the mobile terminal, the testing equipment sends a first control signal to the first switch element and acquires charging function data of the mobile terminal;
when receiving indication information for detecting the OTG function of the mobile terminal, the test equipment sends a second control signal to the second switch element and acquires OTG function data of the mobile terminal;
the first control signal is used for instructing the first switch element to conduct itself and enabling the charging equipment to charge the mobile terminal when the first switch element is conducted;
the second control signal is used for instructing the second switch element to conduct itself, and grounding the OTG control interface of the mobile terminal when the second switch element is conducted.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the beneficial technical effects that at least:
the application proposes a test device comprising a first connection element, a second connection element, a first switching element and a second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. The switching between the mobile terminal charging function and the OTG function test can be completed through the first switch element and the second switch element. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a testing method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a testing method according to an embodiment of the present application.
Detailed Description
As described in the background art, in the existing testing process of the USB charging function and the OTG function of the mobile terminal, a power supply device and an OTG device need to be connected respectively. Because the interface lines used by the mobile terminal to connect the charging device and the OTG device are different, the interface lines need to be plugged and unplugged many times to access the charging device or the OTG device during the test process. On one hand, frequent plugging and unplugging of the interface line wastes time and labor, and the efficiency of the function test of the mobile phone is reduced; on the other hand, because the USB needs to be plugged and unplugged for a plurality of times (more than two times), the risk of scratching the shell of the mobile phone is greatly increased.
Therefore, the application provides a test equipment of a mobile terminal, which is used for solving the problem that in the prior art, a connecting wire needs to be plugged and pulled for many times in the test process of the USB charging function and the OTG function of the mobile terminal.
The test equipment that this application provided contains first connecting element, second connecting element, first switching element and second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. The switching between the mobile terminal charging function and the OTG function test can be completed through the first switch element and the second switch element. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.
Example one
Based on the above discussion, a schematic structural diagram of a mobile terminal proposed in the present application is shown in fig. 1, and includes a first connection element 101, a second connection element 102, a first switch element 103, and a second switch element 104. The description of the various important parts is as follows:
(1) first connecting element
In an embodiment of the application, the test device is connected to the charging device via a first connection element. Unlike the prior art, in the prior art, when the charging function of the mobile terminal is tested, the charging device is directly connected with the mobile terminal. In the embodiment of the application, the charging device is directly connected with the testing device, and then the testing device is connected with the mobile terminal.
In a preferred embodiment of the present application, the first connection element includes a power supply interface, a first signal interface, and a second signal interface, and during the test, the connection manner of each interface and the charging device is as follows:
the power supply interface of the first connecting element is connected with the power supply interface of the charging equipment, the first signal interface of the first connecting element is respectively connected with the first signal interface of the charging equipment and the first signal interface of the second connecting element, and the second signal interface of the first connecting element is respectively connected with the second signal interface of the charging equipment and the second signal interface of the second connecting element. As can be seen from the above connection relationship, during the test process, each interface of the first connection element is correspondingly connected to each interface of the test equipment and the second connector.
(2) Second connecting element
In an embodiment of the application, the test device is connected to the mobile terminal via a second connection element. Unlike the prior art, in the prior art, when the charging function of the mobile terminal is tested, the charging device is directly connected with the mobile terminal. In the embodiment of the application, the mobile terminal is directly connected with the testing device, and then the testing device is connected with the charging device.
In a preferred embodiment of the present application, the second connection element includes a charging interface, a first signal interface, a second signal interface, and an OTG control interface, and during the test, the connection manner between each interface and the charging device is as follows:
the charging interface of the second connecting element is connected with the charging interface of the mobile terminal, the first signal interface of the second connecting element is connected with the first signal interface of the mobile terminal, the second signal interface of the second connecting element is connected with the second signal interface of the mobile terminal, and the OTG control interface of the second connecting element is connected with the OTG control interface of the mobile terminal. As can be seen from the above connection relationship, during the test process, each interface of the second connection element is correspondingly connected to each interface of the mobile terminal and the first connector.
It should be noted that, in the embodiment of the present application, the testing device is connected to the charging device through the first connector, and is connected to the mobile terminal through the second connector. And in the testing process, the mobile terminal only needs to be connected with the testing equipment to complete the testing process. Thereby avoiding the problem that connecting wires need to be plugged and pulled for many times.
(3) A first switch element
In a preferred embodiment of the present application, the first switch element is respectively connected to the first connection element and the second connection element, and is configured to be turned on when receiving the first control signal, and enable the charging device to charge the mobile terminal when being turned on, so that the testing device obtains charging function data of the mobile terminal.
In the test process of the embodiment of the present application, the first switch element is turned on when receiving the first control signal. And when the first switch element is conducted, the charging equipment charges the mobile terminal, and the testing equipment can acquire the charging function data of the mobile terminal, so that the charging function testing process of the mobile terminal is completed.
In a preferred embodiment of the present application, the first switching element comprises an input interface and an output interface, and the interfaces are connected as follows:
the input interface of the first switch element is connected with the power supply interface of the first connecting element, and the output interface of the first switch element is connected with the charging interface of the second connecting element.
Based on the above connection mode, when the first switch element is turned on, the channel between the power supply interface of the first connection element and the power supply interface of the second connection element is in a turned-on state, at this moment, the charging device charges the mobile terminal, so that the testing device can acquire the charging function data of the mobile terminal, and the charging function of the mobile terminal is tested.
(4) Second switch element
In a preferred embodiment of the present application, the second switch element is connected to the second connection element and grounded, and is configured to be turned on when the second switch element receives the second control signal, and ground the OTG control interface of the mobile terminal when the second switch element is turned on, so that the test device obtains the OTG function data of the mobile terminal.
In the test process of the embodiment of the present application, the second switch element is turned on when receiving the second control signal. And when the second switch element is conducted, the OTG control interface of the mobile terminal is grounded, and at this time, the mobile terminal may consider that an OTG device is inserted to start the OTG function. Therefore, the test equipment can acquire the OTG functional data of the mobile terminal, thereby completing the OTG functional test process of the mobile terminal.
In a preferred embodiment of the present application, the second switching element comprises an input interface and an output interface, and the interfaces are connected as follows:
the input interface of the second switch element is connected with the OTG control interface of the second connection element, and the output interface of the second switch element is grounded.
Based on the above connection manner, when the second switch element is turned on, the OTG control interface of the second connection element will be grounded. Since the OTG control interface of the second connection element is connected to the OTG control interface of the mobile terminal, the OTG control interface of the mobile terminal is also grounded. When the OTG control interface of the mobile terminal is grounded, the mobile terminal starts the OTG function, so that the test equipment can acquire the OTG function data of the mobile terminal, and the OTG function of the mobile terminal is tested.
Therefore, by applying the test equipment provided by the application, the mobile terminal does not need to be additionally connected with OTG equipment when the OTG function of the mobile terminal is tested. The mobile terminal can complete the test of the charging function and the OTG function only by being connected with the test equipment, so that the problem that the connecting wire needs to be plugged and pulled for many times is solved.
In the preferred embodiment of the present application, the test equipment further includes a single chip, and the single chip includes a first voltage detection interface, a second voltage detection interface, a first control interface, a second control interface, and an access sensing interface. And, the first switch element also includes a control interface, the second switch element also includes a control interface, and the second connector also includes an access sensing interface. The connection relationship of the interfaces is as follows:
the first voltage detection interface of singlechip links to each other with first connecting element's power supply interface, and the second voltage detection interface of singlechip links to each other with second connecting element's the interface that charges, and the first control interface of singlechip links to each other with first switching element's control interface, and the second control interface of singlechip links to each other with second switching element's control interface, and the access response interface of singlechip links to each other with the access response interface of second connector.
In the test equipment that this application provided, the singlechip mainly plays voltage test and the effect of control first switching element and second switching element. Specifically, the function of the single chip microcomputer is as follows:
the single chip microcomputer is used for sending a first control signal to the first switch element and acquiring the charging voltage of the mobile terminal when detecting that the mobile terminal is connected with the connector.
When the first switch element is turned on and the charging device charges the mobile terminal, the single chip acquires the voltage of the power supply interface of the first connection element through the first voltage detection interface of the single chip, and considers the voltage as the charging voltage (charging function data) of the mobile terminal.
The singlechip is also used for sending a second control signal to the second switch element and acquiring the power supply voltage of the mobile terminal.
When the second switch element is turned on and the mobile terminal starts the OTG function, the single chip obtains the voltage of the charging interface of the second connection element through the second voltage detection interface of the single chip, and regards the voltage as the power supply voltage (OTG function data) of the mobile terminal.
In a preferred embodiment of the present application, the test apparatus further includes a current detection unit, the current detection unit includes a current detection chip and a current test resistor, and the current detection chip includes a first detection interface, a second detection interface and a data output interface. And the singlechip also comprises a data input interface. The connection relationship of the interfaces is as follows:
the current test resistor is respectively connected with the power supply interface of the first connecting element and the input interface of the first control switch.
The first detection interface of the current detection chip is connected with the power supply interface of the first connecting element, the second detection interface of the current detection chip is connected with the input interface of the first control switch, and the data output interface of the current detection chip is connected with the data input interface of the single chip microcomputer.
The current detection unit is used for acquiring the charging current of the mobile terminal. Specifically, when the first switching element is turned on and the charging device charges the mobile terminal, the current detection chip obtains the current on the current test resistor and considers the current as the charging current (charging function data) of the mobile terminal.
Meanwhile, the current detection chip can also send the acquired current data to the single chip microcomputer.
In a preferred embodiment of the application, the test device further comprises a third connection element, the third connector comprising the first data output interface and the second data output interface. Meanwhile, the single chip microcomputer further comprises a first data output interface and a second data output interface. The connection mode of the interfaces is as follows:
the first data output interface of the third connecting element is connected with the first data output interface of the single chip microcomputer, and the second data output interface of the third connecting element is connected with the second data output interface of the single chip microcomputer.
The third connecting element is used for connecting with a data output device, typically a PC.
At this moment, the singlechip is also used for outputting the test result to the data output equipment.
As is apparent from the above description of the test apparatus, the following advantageous effects can be achieved by applying the test apparatus of the present application.
The application proposes a test device comprising a first connection element, a second connection element, a first switching element and a second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. The switching between the mobile terminal charging function and the OTG function test can be completed through the first switch element and the second switch element. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.
Example two
Based on the test equipment provided by the first embodiment, the application provides a test method for solving the problem that in the prior art, a connecting wire needs to be plugged and pulled for many times in the test process of the USB charging function and the OTG function of the mobile terminal.
The method is applied to a system comprising the mobile terminal, the charging device and the testing device according to the first embodiment. Fig. 2 is a schematic flow chart of a testing method proposed in the present application, which at least includes the following steps:
s201, when receiving indication information for detecting the charging function of the mobile terminal, the testing device sends a first control signal to the first switch element and acquires charging function data of the mobile terminal.
The first control signal is used for indicating the first switch element to conduct the first control signal, and when the first switch element is conducted, the charging equipment is enabled to charge the mobile terminal.
S202, when receiving the indication information for detecting the OTG function of the mobile terminal, the test equipment sends a second control signal to the second switch element, and obtains the OTG function data of the mobile terminal.
The second control signal is used for instructing the second switch element to conduct itself, and grounding the OTG control interface of the mobile terminal when the second switch element is conducted.
As can be seen from the above description of the testing method, the present application provides a testing apparatus comprising a first connecting element, a second connecting element, a first switching element and a second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. The switching between the mobile terminal charging function and the OTG function test can be completed through the first switch element and the second switch element. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.
To further illustrate the technical idea of the present invention, the technical solution of the present invention will now be described with reference to specific examples.
Fig. 3 is a schematic structural diagram of a testing apparatus according to the present application. The main components and functions of the test equipment are described below.
1. The H1 connector is used for connecting intelligent charging equipment, mainly has VBUS, GND, D +, D-several circuit pins, realizes with cell-phone communication and the function of charging to the cell-phone.
2. The H2 connector is used for connecting a USB port of a mobile phone, and the circuit pins comprise VBUS, D +, D-, OTG _ ID, SHIELD and GND and are used for being in butt joint with the USB port of the mobile phone to realize the charging of the mobile phone and the testing of the OTG function.
3. The H3 connector is used for connecting a PC and outputting the test result through TX, RX and GND.
4. U1 is the current detection chip, cooperates precision resistance R7 to realize the test to charging current.
5. And the singlechip U3 is used for realizing control and test of the whole system.
6. K1 and K2 are switch circuits for controlling the on and off of the charging circuit and the OTG _ ID circuit.
7. The U2 is a power supply unit and provides stable power supply for the whole system.
Based on the test equipment proposed above, a specific test flow chart is shown in fig. 4. Specifically, the process at least comprises the following steps:
s401, detecting the insertion of the USB of the mobile phone.
Mobile phone insertion detection: the GPIO2 pin of the single chip microcomputer detects the state of the SHIELD pin of H1 in real time, when the mobile phone is inserted, the SHIELD pin of H1 is pulled low, the single chip microcomputer recognizes that the mobile phone is inserted, a test program is started, and the test starts.
S402, the charging circuit is opened to carry out a charging test.
Detecting a charging circuit of the mobile phone: the single chip microcomputer firstly controls the GPIO1 pin to output high level, the K1 enabling pin EN is pulled high, the switch circuit K1 is conducted at the moment, the intelligent charger is communicated with the mobile phone through the D + and D-pins, and charging voltage setting of the charger is completed. And meanwhile, the mobile phone is charged, and the current detection chip U1 realizes the test of the charging current by measuring the current flowing through the R7. After the test is finished, the measured data is fed back to an AD1 pin of the single chip microcomputer through an OUT pin. The charging voltage is detected by reading the voltage division on the R4 through the AD2 pin.
And S403, closing the charging circuit, opening the TOG path and performing OTG test.
Detection of OTG function of the mobile phone: after the mobile phone charging function test is finished, the single chip microcomputer controls the GPIO1 to output low level, the switch circuit K1 is disconnected, and a mobile phone charging path is disconnected. And then the GPIO3 is set to be at a high level to control the switch circuit 2 to be conducted, at the moment, the OTG _ ID pin is in short circuit with the ground, the mobile phone considers that an OTG device is inserted, at the moment, the VBUS end of the mobile phone can output 5V voltage, and the single chip microcomputer detects the divided voltage on the R6 through the AD3 pin to realize the test of the output voltage of the mobile phone, so that the test of the OTG function of the mobile phone is indirectly completed.
And S404, finishing the test and outputting a test result.
And (4) finishing the test: when the test is finished, the single chip outputs the test result through the TX pin and the RX pin.
S405, the system is reset.
And detecting whether the mobile phone is pulled out or not, initializing the system after detecting that the mobile phone is pulled out, continuously monitoring the insertion state of the mobile phone in real time, and waiting for the next test.
As can be seen from the above description of the specific embodiments, the testing apparatus proposed in the present application includes a first connecting element, a second connecting element, a first switching element, and a second switching element, wherein: the first connecting element is used for being connected with the charging equipment; the second connecting element is used for connecting with the mobile terminal; the first switch element is respectively connected with the first connecting element and the second connecting element and used for enabling the charging equipment to charge the mobile terminal when the first switch element is conducted so that the testing equipment can obtain charging function data of the mobile terminal; the second switch element is connected with the second connection element and grounded, and is used for grounding the OTG control interface of the mobile terminal when the second switch element is conducted, so that the test equipment can acquire the OTG functional data of the mobile terminal. The switching between the mobile terminal charging function and the OTG function test can be completed through the first switch element and the second switch element. Therefore, the mobile terminal can complete the testing of the charging function and the OTG function only by being connected with the testing equipment, so that the repeated connecting wire plugging and unplugging process is avoided, the testing efficiency is improved, and the risk of scratching the shell of the mobile phone is reduced.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present invention.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (8)

1. A test device for use in a system comprising a mobile terminal, the test device and a charging device, wherein the test device comprises a first connection element, a second connection element, a first switch element and a second switch element, wherein:
the first connecting element is used for being connected with the charging equipment;
the second connecting element is used for connecting with the mobile terminal;
the first switch element is respectively connected with the first connecting element and the second connecting element, and is used for being turned on when receiving a first control signal, and enabling the charging equipment to charge the mobile terminal when being turned on, so that the testing equipment can acquire charging function data of the mobile terminal;
the second switch element is connected with the second connection element and grounded, and is used for being turned on when the second switch element receives a second control signal, and enabling the OTG control interface of the mobile terminal to be grounded when the second switch element is turned on, so that the test equipment can acquire OTG functional data of the mobile terminal;
the test equipment further comprises a single chip microcomputer, the single chip microcomputer comprises a first voltage detection interface, a second voltage detection interface, a first control interface, a second control interface and an access induction interface, the first switch element further comprises a control interface, the second switch element further comprises a control interface, and the second connecting element further comprises an access induction interface;
the test equipment further comprises a current detection unit, the current detection unit comprises a current detection chip and a current test resistor, the current detection chip comprises a first detection interface, a second detection interface and a data output interface, and the single chip microcomputer further comprises a data input interface.
2. The device of claim 1, wherein the first connection element comprises a power supply interface, a first signal interface, and a second signal interface, and the second connection element comprises a charging interface, a first signal interface, a second signal interface, and an OTG control interface, wherein:
the power supply interface of the first connecting element is connected with the power supply interface of the charging equipment, the first signal interface of the first connecting element is respectively connected with the first signal interface of the charging equipment and the first signal interface of the second connecting element, and the second signal interface of the first connecting element is respectively connected with the second signal interface of the charging equipment and the second signal interface of the second connecting element;
the charging interface of the second connecting element is connected with the charging interface of the mobile terminal, the first signal interface of the second connecting element is connected with the first signal interface of the mobile terminal, the second signal interface of the second connecting element is connected with the second signal interface of the mobile terminal, and the OTG control interface of the second connecting element is connected with the OTG control interface of the mobile terminal.
3. The apparatus of claim 2, wherein the first switching element comprises an input interface and an output interface, and the second switching element comprises an input interface and an output interface, wherein:
an input interface of the first switch element is connected with a power supply interface of the first connecting element, and an output interface of the first switch element is connected with a charging interface of the second connecting element;
the input interface of the second switch element is connected with the OTG control interface of the second connection element, and the output interface of the second switch element is grounded.
4. The device of claim 3, wherein a first voltage detection interface of the single chip microcomputer is connected with a power supply interface of the first connecting element, a second voltage detection interface of the single chip microcomputer is connected with a charging interface of the second connecting element, a first control interface of the single chip microcomputer is connected with a control interface of the first switching element, a second control interface of the single chip microcomputer is connected with a control interface of the second switching element, and an access induction interface of the single chip microcomputer is connected with an access induction interface of the second connecting element.
5. The apparatus of claim 4, wherein:
the single chip microcomputer is used for sending the first control signal to the first switch element and acquiring the charging voltage of the mobile terminal, sending the second control signal to the second switch element and acquiring the power supply voltage of the mobile terminal when detecting that the mobile terminal is in a connection state with the first connection element.
6. The apparatus of claim 5, wherein the current test resistor is connected to the power supply interface of the first connection element and the input interface of the first control switch, respectively;
a first detection interface of the current detection chip is connected with a power supply interface of the first connecting element, a second detection interface of the current detection chip is connected with an input interface of the first control switch, and a data output interface of the current detection chip is connected with a data input interface of the singlechip;
the current detection unit is used for acquiring the charging current of the mobile terminal.
7. The apparatus of claim 5, wherein the test apparatus further comprises a third connection element, the third connection element comprising a first data output interface and a second data output interface, the single-chip microcomputer further comprising a first data output interface and a second data output interface, wherein:
the first data output interface of the third connecting element is connected with the first data output interface of the single chip microcomputer, and the second data output interface of the third connecting element is connected with the second data output interface of the single chip microcomputer;
the third connecting element is used for being connected with data output equipment;
the single chip microcomputer is also used for outputting a test result to the data output equipment.
8. A testing method applied to a system comprising a mobile terminal, a charging device and the testing device according to any one of claims 1 to 7, the method comprising:
when receiving indication information for detecting the charging function of the mobile terminal, the testing equipment sends a first control signal to the first switch element and acquires charging function data of the mobile terminal;
when receiving indication information for detecting the OTG function of the mobile terminal, the test equipment sends a second control signal to the second switch element and acquires OTG function data of the mobile terminal;
the first control signal is used for instructing the first switch element to conduct itself and enabling the charging equipment to charge the mobile terminal when the first switch element is conducted;
the second control signal is used for instructing the second switch element to conduct itself, and grounding the OTG control interface of the mobile terminal when the second switch element is conducted.
CN201610993522.5A 2016-11-10 2016-11-10 Test equipment and test method Active CN106597143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610993522.5A CN106597143B (en) 2016-11-10 2016-11-10 Test equipment and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610993522.5A CN106597143B (en) 2016-11-10 2016-11-10 Test equipment and test method

Publications (2)

Publication Number Publication Date
CN106597143A CN106597143A (en) 2017-04-26
CN106597143B true CN106597143B (en) 2022-01-14

Family

ID=58591330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610993522.5A Active CN106597143B (en) 2016-11-10 2016-11-10 Test equipment and test method

Country Status (1)

Country Link
CN (1) CN106597143B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108072775B (en) * 2017-11-06 2020-08-07 Oppo广东移动通信有限公司 Testing device of mobile terminal
CN108008285A (en) * 2017-12-04 2018-05-08 丰顺县培英电声有限公司 A kind of vehicle multimedia system test device and its method
CN109298266B (en) * 2018-10-29 2021-06-29 Oppo广东移动通信有限公司 Test system, test method, test apparatus, and storage medium
CN111030226B (en) * 2019-12-20 2021-08-24 维沃移动通信有限公司 Equipment detection method and electronic equipment
CN113820583B (en) * 2020-06-19 2024-02-27 北京君正集成电路股份有限公司 USB OTG test method
CN113312227B (en) * 2021-06-25 2023-01-17 展讯通信(上海)有限公司 OTG function detection method, system, device and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101949966A (en) * 2010-08-17 2011-01-19 惠州Tcl移动通信有限公司 Mobile terminal capable of accurately detecting charging current
CN103698640A (en) * 2013-12-31 2014-04-02 青岛歌尔声学科技有限公司 Intelligent charging detection circuit and movable power supply
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
CN104978300A (en) * 2015-07-16 2015-10-14 广东欧珀移动通信有限公司 Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
KR101657940B1 (en) * 2015-08-12 2016-09-22 주식회사 네오텍 Portable voltage measurement device and voltage measurement method using the same based on USB OTG
CN106066438A (en) * 2016-07-26 2016-11-02 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal is based on the method and system of OTG detection equipment charge state
CN107480086A (en) * 2017-08-04 2017-12-15 青岛海信移动通信技术股份有限公司 Support circuit, terminal and its control method of OTG functions
US20200132734A1 (en) * 2016-11-23 2020-04-30 Huawei Technologies Co., Ltd. Detection circuit and detection method for on-the-go device, and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2927353Y (en) * 2006-04-04 2007-07-25 陈建青 USB wire device with data-transmission and charging functions
CN102629772A (en) * 2012-04-05 2012-08-08 福兴达科技实业(深圳)有限公司 Mobile terminal and charging method of mobile terminal
CN202872406U (en) * 2012-09-19 2013-04-10 青岛海信移动通信技术股份有限公司 Interface multiplexing circuit and mobile terminal
CN203368103U (en) * 2013-08-08 2013-12-25 方洪福 Multifunctional mobile power supply
CN105786664A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 Automatic test system for simulating user operation
CN204392072U (en) * 2015-02-06 2015-06-10 深圳市利民盛新材料科技有限公司 A kind of Multifunction transducer
CN105701049B (en) * 2016-03-23 2019-03-01 Oppo广东移动通信有限公司 System, method, apparatus and the mobile terminal of charge flag position is written

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101949966A (en) * 2010-08-17 2011-01-19 惠州Tcl移动通信有限公司 Mobile terminal capable of accurately detecting charging current
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
CN103698640A (en) * 2013-12-31 2014-04-02 青岛歌尔声学科技有限公司 Intelligent charging detection circuit and movable power supply
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit
CN104978300A (en) * 2015-07-16 2015-10-14 广东欧珀移动通信有限公司 Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
KR101657940B1 (en) * 2015-08-12 2016-09-22 주식회사 네오텍 Portable voltage measurement device and voltage measurement method using the same based on USB OTG
CN106066438A (en) * 2016-07-26 2016-11-02 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal is based on the method and system of OTG detection equipment charge state
US20200132734A1 (en) * 2016-11-23 2020-04-30 Huawei Technologies Co., Ltd. Detection circuit and detection method for on-the-go device, and terminal
CN107480086A (en) * 2017-08-04 2017-12-15 青岛海信移动通信技术股份有限公司 Support circuit, terminal and its control method of OTG functions

Also Published As

Publication number Publication date
CN106597143A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106597143B (en) Test equipment and test method
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
CN101355259B (en) Portable communication device and method for charging through discernment of charging cable
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
US8756358B2 (en) Method and device for identifying universal serial bus (USB) insertion or charger insertion of mobile terminal
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
CN108475227B (en) Test functional assembly and data debugging method
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
US20100052620A1 (en) Battery charger ic including built-in usb detection
CN102694400B (en) Imput output circuit
CN101601001A (en) A plurality of connections to single serial interface
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
WO2012167677A1 (en) Device and method for communication and charging for external device via usb interface
CN101426038A (en) Portable electronic device and accessory identification method
CN103237189A (en) Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method
US10079499B2 (en) Type-C factory and special operating mode support
CN109494822B (en) Terminal equipment, charger, charging system and charging method
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
WO2023134458A1 (en) Electronic device
CN107658916A (en) Cue circuit and electronic equipment
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN104919388A (en) Charging an electrical device via a data interface
CN109254210A (en) Electronic device port type detection method, apparatus, detection circuit and electronic equipment
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function

Legal Events

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

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.