CN106407068A - A device automatically controlling connection and disconnection of USB cables and a testing method - Google Patents
A device automatically controlling connection and disconnection of USB cables and a testing method Download PDFInfo
- Publication number
- CN106407068A CN106407068A CN201510469189.3A CN201510469189A CN106407068A CN 106407068 A CN106407068 A CN 106407068A CN 201510469189 A CN201510469189 A CN 201510469189A CN 106407068 A CN106407068 A CN 106407068A
- Authority
- CN
- China
- Prior art keywords
- controlled switch
- usb interface
- pin
- usb
- control module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention provides a device automatically controlling connection and disconnection of USB cables and a testing method. The device comprises a first USB interface pluggably connected with a USB interface of a tested terminal, a second USB interface pluggably connected with a USB interface of a testing computer, a controlled switch arranged between the first USB interface and the second USB interface, and a switching control module establishing data connection with the testing computer. The switching control module acquires a first switching command from the testing computer, and generates a connection signal according to the first switching command to control corresponding pins of the first USB interface and the second USB interface to be connected; the switching control module acquires a second switching command from the testing computer and generates a disconnection signal according to the second switching command to control the corresponding pins of the first USB interface and the second USB interface to be disconnected. According to the invention, butt-joint USB pins between a tested terminal and a testing computer can be disconnected automatically and manual operations are not needed, so that the testing efficiency is greatly increased.
Description
Technical field
The present invention relates to technical field of electronic communication, more particularly to one kind automatically control USB cable
The device of break-make and method of testing.
Background technology
With scientific and technological development, smart mobile phone function on the market is stronger and stronger, software complexity
Also more and more higher, the correspondingly positioning requirements also more and more higher to stability problem.Existing mobile phone
Test is all based on calculation machine and connects measured terminal by USB data line, and measured terminal is entered
The test of row various functions.
But the field of this test mode of measured terminal and real user is connected by USB data line
Scape is distinguishing in itself.
Specifically:When user uses mobile phone, mobile phone is usually not connected to USB data line, and
And, existing mobile phone cannot dormancy after connecting USB data line.
Therefore, in existing mobile phone test, because calculation machine and measured terminal need to keep USB
Data cube computation, thus measured terminal cannot dormancy, just cannot cover dormancy awakening scene, and very
Many whens, the stability problem of mobile phone just occurred under dormancy awakening scene.
Existing test does not solve this problem very well, and existing test at present is mostly to be to be surveyed by artificial
Examination, that is, manually disconnect usb data connect, to solve mobile phone keep usb data connect when no
Method enters resting state thus cannot be carried out the technical problem of resting state test, but existing skill
Art mainly by pure artificial operation it is impossible to automatization, therefore inefficiency.
Content of the invention
The application is mainly solving the technical problems that a kind of offer automatically controls USB cable break-make
Device and method of testing, this test device is arranged between measured terminal and calculation machine, can be
When measured terminal need to carry out resting state test, make and docking between measured terminal and calculation machine
USB pin disconnects automatically, need not manually operate, thus drastically increasing testing efficiency.
In a first aspect, providing a kind of device automatically controlling USB cable break-make, including:First
USB interface, the pluggable connection with the USB interface of measured terminal;Secondary USB interface, with survey
The pluggable connection of USB interface of examination computer, wherein calculation machine is used for testing measured terminal;
Controlled switch, is arranged between the first USB interface and secondary USB interface;Switching control module,
Switching control module and calculation machine set up data cube computation, in calculation machine, measured terminal are entered
During the test of row non-sleep state, switching control module receives the first switching life that calculation machine sends
Order, and the first USB interface and the 2nd USB are controlled by controlled switch according to the first switching command
Connection between the corresponding pin of interface, carries out resting state survey in calculation machine to measured terminal
During examination, switching control module receives the second switching command of sending of calculation machine, and according to second
Switching command controls the corresponding pin of the first USB interface and secondary USB interface by controlled switch
Between disconnection.
In the first possible implementation of first aspect, controlled switch includes first and controlled opens
Close, the second controlled switch and the 3rd controlled switch, controlled switch is arranged on the first USB interface and the
It is specially between two USB interface:The first end of the first controlled switch and the first USB interface
VBUS pin connects, the second end is connected with the VBUS pin of secondary USB interface;Second is subject to
The first end of control switch is connected with the D+ pin of the first USB interface, the second end and the 2nd USB
The D+ pin of interface connects;The first end of the 3rd controlled switch and the D- pin of the first USB interface
Connect, the second end is connected with the D- pin of secondary USB interface.
According to the first possible implementation of first aspect, in the possible implementation of second
In, switching control module produces communications signals according to the first switching command, according to the second switching command
Produce cut-off signal, wherein:3rd end of the first controlled switch receives connection from switching control module
Signal or cut-off signal, when the 3rd end of the first controlled switch receives communications signals, first is controlled
Second end of switch is connected with first end, receives cut-off signal at the 3rd end of the first controlled switch
When, the second end of the first controlled switch is disconnected with first end;3rd end of the second controlled switch is from cutting
Change control module and receive communications signals or cut-off signal, receive even at the 3rd end of the second controlled switch
During messenger, the second end of the second controlled switch is connected with first end, the of the second controlled switch
When three ends receive cut-off signal, the second end of the second controlled switch is disconnected with first end;3rd is controlled
3rd end of switch receives communications signals or cut-off signal from switching control module, controlled opens the 3rd
When the 3rd end closed receives communications signals, the second end of the 3rd controlled switch is connected with first end,
When 3rd end of the 3rd controlled switch receives cut-off signal, second end and first of the 3rd controlled switch
End disconnects.
In the third possible implementation of first aspect, this device also includes the 3rd USB
Interface, the 3rd USB interface and the pluggable connection of third party's terminal, controlled switch is arranged on first
Between USB interface and secondary USB interface and be arranged on the first USB interface and the 3rd USB
Between interface.
According to the third possible implementation of first aspect, in the 4th kind of possible implementation
In, controlled switch includes the 4th controlled switch, the 5th controlled switch, the 6th controlled switch and
Seven controlled switch, controlled switch be arranged between the first USB interface and secondary USB interface and
It is arranged on and be specially between the first USB interface and the 3rd USB interface:The of 4th controlled switch
One end is connected with the VBUS pin of the first USB interface, the second end and secondary USB interface
VBUS pin connects, the 3rd end is connected with the VBUS pin of the 3rd USB interface;5th is subject to
The first end of control switch is connected with the D+ pin of the first USB interface, the second end and the 2nd USB
The D+ pin of interface connects, the 3rd end is connected with the D+ pin of the 3rd USB interface;6th is subject to
The first end of control switch is connected with the D- pin of the first USB interface, the second end is connect with the 2nd USB
The D- pin of mouth connects, the 3rd end is connected with the D- pin of the 3rd USB interface;7th controlled opens
The first end closed is connected with the ID pin of the first USB interface, the second end and the 3rd USB interface
ID pin connects.
According to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation
In, switching control module receives the first switching command or the second switching life that calculation machine sends
Order, and communications signals are produced according to the first switching command, produced according to the second switching command and disconnect letter
Number, wherein:4th end of the 4th controlled switch receives communications signals or disconnection from switching control module
Signal, when the 4th end of the 4th controlled switch receives communications signals, the first of the 4th controlled switch
End is connected with the 3rd end, and when the 3rd end of the 4th controlled switch receives cut-off signal, the 4th is controlled
The first end of switch is connected with the second end;4th end of the 5th controlled switch connects from switching control module
Receive communications signals or cut-off signal, when the 4th end of the 5th controlled switch receives communications signals, the
The first end of five controlled switch is connected with the 3rd end, receives at the 4th end of the 5th controlled switch and disconnects
During signal, the first end of the 5th controlled switch is connected with the second end;4th end of the 6th controlled switch
Receive communications signals or cut-off signal from switching control module, in the 4th termination of the 3rd controlled switch
When receiving communications signals, the first end of the 6th controlled switch is connected with the 3rd end, in the 6th controlled switch
The 4th end receive cut-off signal when, the first end of the 6th controlled switch is connected with the second end;7th
The first end of controlled switch receives communications signals or cut-off signal from switching control module, is subject to the 3rd
When 4th end of control switch receives communications signals, the first end of the 7th controlled switch is with the second end even
Logical, when the 4th end of the 7th controlled switch receives cut-off signal, the first end of the 7th controlled switch
Disconnect with the second end.
According to arbitrary in first aspect, first to the 5th kind of possible implementation of first aspect
Person, in the 6th kind of possible implementation, the number that switching control module is set up with calculation machine
According to being connected as, serial ports connects, parallel port connects, bluetooth connection or USB connect.
Second aspect, provides a kind of method of testing, the method be applied to according to first aspect, first
The first of aspect is to the device described in any one of the 6th kind of possible implementation, this test side
Method includes:Calculation machine sends the first switching command to device so that device by data cube computation
Controlled between the first USB interface and the corresponding pin of secondary USB interface according to the first switching command
Connection;Calculation machine passes through the first USB interface and secondary USB interface sends test script
To measured terminal;Calculation machine by data cube computation send the second switching command to device so that
Device controls the corresponding pin of the first USB interface and secondary USB interface according to the second switching command
Between disconnection;After calculation machine waits the scheduled time, send first by data cube computation and cut
Change order to device so that device controls the first USB interface and second according to the first switching command
Connection between the corresponding pin of USB interface, and connect by the first USB interface and the 2nd USB
Mouth obtains the test result that measured terminal produces after testing results script, and wherein measured terminal is pre-
Fix time interior testing results script.
It is different from the situation of prior art, embodiment of the present invention need to carry out dormancy shape in measured terminal
During state test, the second switching command is obtained from calculation machine by switching control module, and according to
Second switching command produces cut-off signal to control the right of the first USB interface and secondary USB interface
Answer the separated of pin, the USB pin docking between measured terminal and calculation machine can be made automatic
Disconnecting, need not manually operating, thus drastically increasing testing efficiency.
Brief description
Fig. 1 is a kind of device automatically controlling USB cable break-make according to a first embodiment of the present invention
Apparatus structure schematic diagram;
Fig. 2 is a kind of device automatically controlling USB cable break-make according to a second embodiment of the present invention
Apparatus structure schematic diagram;
Fig. 3 is a kind of device automatically controlling USB cable break-make according to a third embodiment of the present invention
Apparatus structure schematic diagram;And
Fig. 4 is a kind of flow chart of method of testing according to embodiments of the present invention.
Specific embodiment
Referring firstly to Fig. 1, Fig. 1 is that one kind according to a first embodiment of the present invention automatically controls USB
The apparatus structure schematic diagram of the device of cable break-make, as shown in figure 1, it includes:
First usb 1 01, the pluggable connection with the USB interface of measured terminal 200;
Secondary USB interface 102, the pluggable connection with the USB interface of calculation machine 300;
Controlled switch, is arranged between the first usb 1 01 and secondary USB interface 102;
Switching control module 103, setting up with calculation machine 300 has data cube computation, wherein, cuts
Change and preferably employ serial communication between control module 103 and calculation machine 300 and be connected, but,
In the alternative embodiment of the present invention, data cube computation can for RS-232-C serial ports, parallel port, bluetooth,
Or the connected mode such as USB.
Wherein, the present embodiments relate to USB pin be defined as follows table:
Pin | Title | Explanation |
1 | VCC | + 5V voltage |
2 | D- | Data wire negative pole |
3 | D+ | Data wire positive pole |
4 | ID | Host peripheral state-detection |
5 | GND | Ground connection |
In the present embodiment, controlled switch includes the first controlled switch 104, the second controlled switch 105
And the 3rd controlled switch 106.
As shown in figure 1, the first end of the first controlled switch 104 and the first usb 1 01
VBUS pin connects, the second end is connected with the VBUS pin of secondary USB interface 102, the
Three ends obtain communications signals or cut-off signal from switching control module 103, and in the first controlled switch
When 104 the 3rd end obtains communications signals, the second end of the first controlled switch 104 is with first end even
Logical, when the 3rd end of the first controlled switch 104 obtains cut-off signal, the first controlled switch 104
The second end and first end disconnect.
The first end of the second controlled switch 105 is connected with the D+ pin of the first usb 1 01,
Second end is connected with the D+ pin of secondary USB interface 102, the 3rd end is from switching control module 103
Obtain communications signals or cut-off signal, and obtain connection letter at the 3rd end of the second controlled switch 105
Number when, the second end of the second controlled switch 105 is connected with first end, in the second controlled switch 105
The 3rd end when obtaining cut-off signal, the second end of the second controlled switch 105 and first end disconnect.
The first end of the 3rd controlled switch 106 is connected with the D- pin of the first usb 1 01,
Second end is connected with the D- pin of secondary USB interface 102, the 3rd end is from switching control module 103
Obtain communications signals or cut-off signal, and obtain connection letter at the 3rd end of the 3rd controlled switch 106
Number when, the second end of the 3rd controlled switch 106 is connected with first end, in the 3rd controlled switch 106
The 3rd end when obtaining cut-off signal, the second end of the 3rd controlled switch 106 and first end disconnect.
When the first usb 1 01 is connected with the USB interface of measured terminal 200, and the 2nd USB
When interface 102 is connected with the USB interface of calculation machine 300, calculation machine 300 can be to quilt
Survey terminal 200 and carry out USB interface test, wherein USB interface test includes resting state test
With non-sleep state test.Setting up between calculation machine 300 and measured terminal 200 has USB
During data cube computation, measured terminal 200 can not enter resting state, therefore can not carry out resting state survey
Examination, can only carry out non-sleep state test.
When calculation machine 300 will carry out non-sleep state test to measured terminal 200, pass through
Data wire 120 sends the first switching command, switching control module 103 to switching control module 103
Receive the first switching command that calculation machine 300 sends, and produced even according to the first switching command
Messenger is to control between the first usb 1 01 and the corresponding pin of secondary USB interface 102
Connection.
When calculation machine 300 will carry out resting state test to measured terminal 200, by number
Send the second switching command according to line 120 to switching control module 103, switching control module 103 connects
The second switching command that Acceptance Tests computer 300 sends, and disconnection is produced according to the second switching command
Signal is to control the interruption of the first usb 1 01 and the corresponding pin of secondary USB interface 102
Open.
Specifically, when switching control module 103 produces communications signals, this communications signals is respectively
Input to the 3rd end of the first controlled switch 104, the 3rd end of the second controlled switch 105 and
3rd end of three controlled switch 106 is so that the first end of the first controlled switch 104 and the second end connect
The logical, first end of the second controlled switch 105 connects with the second end, the of the 3rd controlled switch 106
One end connects with the second end.So that the VBUS pin and second of the first usb 1 01
The VBUS pin connection of usb 1 02, the D+ pin and second of the first usb 1 01
The D+ pin connection of usb 1 02, the D- pin of the first usb 1 01 and the 2nd USB
The D- pin connection of interface 102.Now set up between calculation machine 300 and measured terminal 200
Usb data connects, and calculation machine 300 can send to measured terminal 200 or receive USB number
According to so that measured terminal 200 can carry out non-sleep state test.
When switching control module 103 produces cut-off signal, this cut-off signal is separately input into first
3rd end of controlled switch 104, the 3rd end of the second controlled switch 105 and the 3rd controlled switch
106 the 3rd end is so that the first end of the first controlled switch 104 and the second end disconnect, second is subject to
The first end of control switch 105 and the disconnection of the second end, the first end and second of the 3rd controlled switch 106
End disconnects so that the VBUS pin of the first usb 1 01 and secondary USB interface 102
The disconnection of VBUS pin, the D+ pin of the first usb 1 01 and secondary USB interface 102
D+ pin disconnect, the D- pin of the first usb 1 01 and secondary USB interface 102
D- pin disconnects.Now it is not set up USB between calculation machine 300 and measured terminal 200
Data cube computation is so that measured terminal 200 can carry out resting state test.
Wherein, during measured terminal 200 carries out resting state test, calculation machine 300 can
The setting time delay corresponding time, specifically can be after calculation machine 300 sends the second switching command
Counted, during counting, calculation machine 300 will not be attempted entering with measured terminal 200 at once
Row usb communication.
Measured terminal 200 can carry out resting state test by running resting state test script,
And this resting state test script can be logical before sending the second switching command by calculation machine 300
In the usb data linkup transmit set up before this to measured terminal 200.
After the completion of resting state test, calculation machine 300 can be by data wire 120 to switching
Control module 103 sends the first switching command so that calculation machine 300 and measured terminal 200
Re-establish usb data to connect, calculation machine 300 is connected from tested end by usb data
End 200 acquisition resting state test result.
In the present embodiment, due to setting up USB between calculation machine 300 and measured terminal 200
During data cube computation, measured terminal 200 can not enter resting state, thus resting state can not be completed
Test, therefore the device automatically controlling USB cable break-make of the present invention is arranged on calculation machine 300
And measured terminal 200 between, when measured terminal 200 need to carry out resting state test, this device
Produce cut-off signal by obtaining the second switching command from calculation machine 300, and according to disconnection
Signal controls controlled switch to disconnect the usb data between measured terminal 200 and calculation machine 300
Connect, so that measured terminal 200 can enter resting state, to complete resting state test.
In the present embodiment, calculation machine 300 can provide the corresponding controlling interface with instruction user to be
No measured terminal 200 is carried out non-sleep state test or resting state test.It is right to select in user
When measured terminal 200 carries out non-sleep state test, the corresponding generation first of calculation machine 300 is cut
Change order, when user selects measured terminal 200 is carried out resting state test, calculation machine
300 corresponding generation the second switching commands.
Therefore in the present embodiment, when measured terminal 200 carries out resting state test, achievable quilt
Survey the USB pin docking between terminal 200 and calculation machine 300 automatically to disconnect, need not be artificial
Operation, thus drastically increase testing efficiency.
It should be noted that in the alternative embodiment of the present invention, controlled switch concretely one leads to
Road selects chip, specifically can be found in Fig. 2, Fig. 2 be one kind according to a second embodiment of the present invention from
The apparatus structure schematic diagram of the dynamic device controlling USB cable break-make, as shown in Fig. 2 in Fig. 1
First controlled switch 104, the second controlled switch 105 and the 3rd controlled switch 106 can be integrated in
Path selects in chip 110, and path selects chip in the connection receiving switching control module 103
During signal, connect VBUS pin and the secondary USB interface 102 of the first usb 1 01 simultaneously
VBUS pin, the D- pin of the first usb 1 01 and secondary USB interface 102
The D+ pin of D- pin, the D+ pin of the first usb 1 01 and secondary USB interface 102;
Path selects chip when receiving the cut-off signal of switching control module 103, simultaneously switches off first
The VBUS pin of usb 1 01 and the VBUS pin of secondary USB interface 102, first
The D- pin of usb 1 01 is connect with the D- pin of secondary USB interface 102, a USB
The D+ pin of mouth 101 and the D+ pin of secondary USB interface 102.
And, in an embodiment of the present invention, the connection to GND pin is not construed as limiting, first
Permissible between the GND pin of the GND pin of usb 1 01 and secondary USB interface 102
Setting controlled switch with control the two connection or disconnect it is also possible to directly or indirectly be connected (Fig. 1 and
It is in Fig. 2 and is joined directly together).
And the GND of the GND pin in the first usb 1 01 and secondary USB interface 102
When arranging controlled switch between pin, this controlled switch also can be integrated in path and select in chip 110,
Path selects chip 110 when receiving the communications signals of switching control module 103, connects simultaneously
The VBUS pin of the first usb 1 01 and the VBUS pin of secondary USB interface 102,
The D- pin of the first usb 1 01 and the D- pin of secondary USB interface 102, a USB
The D+ pin of interface 101 is connect with the D+ pin of secondary USB interface 102 and a USB
The GND pin of mouth 101 and the GND pin of secondary USB interface 102;Path selects chip
110 when receiving the cut-off signal of switching control module 103, simultaneously switches off the first USB interface
101 VBUS pin and the VBUS pin of secondary USB interface 102, the first USB interface
101 D- pin and the D- pin of secondary USB interface 102, the first usb 1 01
D+ pin and the D+ pin of secondary USB interface 102 and the GND of the first usb 1 01
Pin and the GND pin of secondary USB interface 102.
Referring firstly to Fig. 3, Fig. 3 is that one kind according to a third embodiment of the present invention automatically controls USB
The apparatus structure schematic diagram of the device of cable break-make, as shown in figure 3, it includes:
First usb 1 01 ', the pluggable connection with the interface of measured terminal 200;
Secondary USB interface 102 ', the pluggable connection with the USB interface of calculation machine 300;
3rd usb 1 08 ', the pluggable connection with the USB interface of third party's mobile phone 400;
Multiple controlled switch, be arranged on the first usb 1 01 ' and secondary USB interface 102 ' it
Between;
Switching control module 103 ', setting up with calculation machine 300 has data cube computation, wherein, cuts
Change and preferably employ serial communication between control module 103 ' and calculation machine 300 and be connected.
In the present embodiment, multiple controlled switch include the 4th controlled switch 104 ', the 5th controlled open
Close the 105 ', the 6th controlled switch 106 ' and the 7th controlled switch 107 '.
It should be noted that similar with a upper embodiment, the 4th controlled switch 104 ', the 5th controlled
Switch the 105 ', the 6th controlled switch 106 ' and the also available passageway choosing of the 7th controlled switch 107 '
Select chip to realize, do not repeat in this.
As shown in figure 3, the first end of the 4th controlled switch 104 ' and the first usb 1 01 '
VBUS pin connect, the second end be connected with the VBUS pin of secondary USB interface 102 ',
3rd end is connected with the VBUS pin of the 3rd usb 1 08 ', the 4th end is from switching control mould
Block 103 ' obtains communications signals or cut-off signal, and obtains at the 4th end of the 4th controlled switch 104 '
When taking communications signals, the first end of the 4th controlled switch 104 ' is connected with the 3rd end, is subject to the 4th
When 4th end of control switch 104 ' obtains cut-off signal, the first end of the 4th controlled switch 104 '
Connect with the second end.
The first end of the 5th controlled switch 105 ' is connected with the D+ pin of the first usb 1 01 ',
Second end is connected with the D+ pin of secondary USB interface 102 ', the 3rd end and the 3rd USB interface
108 ' D+ pin connects, the 4th end obtains communications signals or disconnection from switching control module 103 '
Signal, and when the 4th end of the 5th controlled switch 105 ' obtains communications signals, the 5th controlled opens
The first end of pass 105 ' is connected with the 3rd end, obtains at the 4th end of the 5th controlled switch 105 '
During cut-off signal, the first end of the 5th controlled switch 105 ' is connected with the second end.
The first end of the 6th controlled switch 106 ' is connected with the D- pin of the first usb 1 01 ',
Second end is connected with the D- pin of secondary USB interface 102 ', the 3rd end and the 3rd USB interface
108 ' D- pin connects, the 4th end obtains communications signals or disconnection from switching control module 103 '
Signal, and when the 4th end of the 6th controlled switch 106 ' obtains communications signals, the 6th controlled opens
The first end of pass 106 ' is connected with the 3rd end, obtains at the 4th end of the 6th controlled switch 106 '
During cut-off signal, the first end of the 6th controlled switch 106 ' is connected with the second end.
The first end of the 7th controlled switch 107 ' is connected with the ID pin of the first usb 1 01 ',
Second end is connected with the ID pin of secondary USB interface 102 ', the 3rd end is from switching control module 103 '
Obtain communications signals or cut-off signal, and obtain connection at the 3rd end of the 7th controlled switch 107 '
During signal, the first end of the 7th controlled switch 107 ' is connected with the second end, in the 7th controlled switch
When 107 ' the 3rd end obtains cut-off signal, the first end of the 7th controlled switch 107 ' and the second end
Disconnect.
When the first usb 1 01 ' is connected with the USB interface of measured terminal 200, the 2nd USB
Interface 102 ' is connected with the USB interface of calculation machine 300, and the 3rd usb 1 08 '
When being connected with the USB interface of third party's mobile phone 400, calculation machine 300 can be to measured terminal
200 carry out USB interface test, wherein USB interface test includes resting state test and non-not
Dormancy state verification.Set up between calculation machine 300 and measured terminal 200 and have usb data even
When connecing, measured terminal 200 can not enter resting state, therefore can not carry out resting state test, only
Non-sleep state test can be carried out.
When calculation machine 300 will carry out non-sleep state test to measured terminal 200, pass through
Data wire sends the first switching command to switching control module 103 ', and switching control module 103 ' is from survey
Examination computer 300 obtains the first switching command, produces communications signals to control according to the first switching command
Make and connect between the first usb 1 01 ' and the corresponding pin of secondary USB interface 102 ', and control
Make the separated of the first usb 1 01 ' and the corresponding pin of the 3rd usb 1 08 '.
When calculation machine 300 will carry out resting state test to measured terminal 200, by number
Send the second switching command according to line to switching control module 103 ', switching control module 103 ' is from test
Computer 300 obtains the second switching command, produces cut-off signal to control according to the second switching command
First usb 1 01 ' is separated with the corresponding pin of secondary USB interface 102 ', and controls
Connect between first usb 1 01 ' and the corresponding pin of the 3rd usb 1 08 '.
Specifically, when switching control module 103 ' produces communications signals, this communications signals is respectively
Input to the 4th end of the 4th controlled switch 104 ', the 4th end of the 5th controlled switch 105 ',
3rd end of the 4th end of the 6th controlled switch 106 ' and the 7th controlled switch 107 ' so that
The first end of the 4th controlled switch 104 ' connects with the 3rd end, the of the 5th controlled switch 105 '
One end connects with the 3rd end, the first end of the 6th controlled switch 106 ' connects with the 3rd end, the 7th
The first end of controlled switch 107 ' and the second end disconnect.So that the first usb 1 01 '
VBUS pin connect with the VBUS pin of secondary USB interface 102 ', the first USB interface
101 ' D+ pin is connected with the D+ pin of secondary USB interface 102 ', the first usb 1 01 '
D- pin connect with the D- pin of secondary USB interface 102 '.Now calculation machine 300 with
Usb data connection, third party's mobile phone 400 and measured terminal 200 is set up between measured terminal 200
Between be not set up usb data connect, calculation machine 300 can send to measured terminal 200 or
Receive usb data, so that measured terminal 200 can carry out non-sleep state test.
When switching control module 103 ' produces cut-off signal, this cut-off signal is separately input into the 4th
4th end of controlled switch 104 ', the 4th end of the 5th controlled switch 105 ', the 6th controlled open
Close 106 ' the 4th end and the 3rd end of the 7th controlled switch 107 ' so that the 4th controlled opens
The first end of pass 104 ' connects with the second end, the first end and second of the 5th controlled switch 105 '
End connection, the first end of the 6th controlled switch 106 ' connect with the second end, the 7th controlled switch 107 '
First end connect with the second end.So that the VBUS pin of the first usb 1 01 ' with
The VBUS pin connection of the 3rd usb 1 08 ', the D+ pin of the first usb 1 01 '
Connect with the D+ pin of the 3rd usb 1 08 ', the D- pin of the first usb 1 01 '
Connect with the D- pin of the 3rd usb 1 08 ', the ID pin of the first usb 1 01 '
Connect with the ID pin of the 3rd usb 1 08 '.Now calculation machine 300 and tested end
It is not set up usb data connection, third party's mobile phone 400 and measured terminal 200 between end 200
Between set up usb data connect so that measured terminal 200 can carry out resting state test.In quilt
During survey terminal 200 carries out resting state test, it is corresponding that calculation machine 300 can arrange time delay
Time, specifically can be counted after calculation machine 300 sends the second switching command at once,
During counting, calculation machine 300 will not be attempted carrying out usb communication with measured terminal 200.
And due in the present embodiment, measured terminal 200 is set up with third party's mobile phone 400 USB
Data cube computation, therefore during measured terminal 200 carries out resting state test, can be with third party's handss
Machine 400 carry out OTG (On The Go) MHL plug stability test.
After the completion of resting state test, calculation machine 300 can be by data wire to switching control
Module 103 ' send the first switching command so that calculation machine 300 with measured terminal 200 again
Set up usb data to connect, calculation machine 300 is connected from measured terminal 200 by usb data
Obtain resting state test result.
In the present embodiment, calculation machine 300 can provide the corresponding controlling interface with instruction user to be
No measured terminal 200 is carried out non-sleep state test or resting state test.It is right to select in user
When measured terminal 200 carries out non-sleep state test, the corresponding generation first of calculation machine 300 is cut
Change order, when user selects measured terminal 200 is carried out resting state test, calculation machine
300 corresponding generation the second switching commands.
Therefore in the present embodiment, when measured terminal 200 carries out resting state test, achievable quilt
Survey the USB pin docking between terminal 200 and calculation machine 300 automatically to disconnect and tested
The USB pin docking between mobile phone and third party's mobile phone 400, from being dynamically connected, need not manually operate,
Thus drastically increasing testing efficiency.
It should be noted that above-mentioned switching control module can pass through MCU (Microcontroller
Unit, micro-control unit) realize, and the present invention automatically control the device of USB cable break-make more
Can switch control knob and display screen in arranging plate, user can be by pressing corresponding on-board switching
Button can make this device send communications signals or cut-off signal.
Hereinafter refer to Fig. 4, Fig. 4 is a kind of flow chart of method of testing according to embodiments of the present invention,
The method method is applied to disclosed above device 100, and the method includes comprising the following steps:
Step 401:Calculation machine 300 sends the first switching command to device by data cube computation
100 so that device 100 controls the first USB interface to connect with the 2nd USB according to the first switching command
Connection between the corresponding pin of mouth;
Step 402:Calculation machine 300 is sent out by the first USB interface and secondary USB interface
Send test script to measured terminal 200;
Step 403:Calculation machine 300 sends the second switching command to device by data cube computation
100 so that device 100 controls the first USB interface to connect with the 2nd USB according to the second switching command
Disconnection between the corresponding pin of mouth;
Step 404:After calculation machine 300 waits the scheduled time, sent by data cube computation
First switching command is to device 100 so that device 100 controls a USB according to the first switching command
Connection between interface and the corresponding pin of secondary USB interface, and by the first USB interface and
Secondary USB interface obtains the test result that measured terminal 200 produces after testing results script, its
Middle measured terminal 200 runs this test script in the given time.
By this method of testing, calculation machine 300 can be in measured terminal 200 testing results script
When, disconnect USB and connect so that measured terminal 200 can enter under conditions of not having USB to connect
Row test, therefore can automatically realize measured terminal 200 and be surveyed in dormancy awakening scene
Examination.
It should be noted that measured terminal concretely mobile phone, transmitter receiver, panel computer, intelligence
Mobile phone or PDA (Personal Digital Assistant, personal digital assistant).
Due to the second switching command is obtained from calculation machine by switching control module, and according to the
Two switching commands control between the first USB interface and the corresponding pin of secondary USB interface from dynamic circuit breaker
Open, the device automatically controlling USB cable break-make of embodiment of the present invention announcement can need in measured terminal
When carrying out resting state test, make the USB pin docking between measured terminal and calculation machine certainly
Dynamic circuit breaker is opened, and need not manually operate, thus drastically increasing testing efficiency.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention,
Equivalent structure or equivalent flow conversion that every utilization description of the invention and accompanying drawing content are made, or
Directly or indirectly it is used in other related technical fields, all include the patent in the present invention in the same manner and protect
In the range of shield.
Claims (8)
1. a kind of device automatically controlling USB cable break-make is it is characterised in that include:
First USB interface, the pluggable connection with the USB interface of measured terminal;
Secondary USB interface, pluggable connection, wherein said with the USB interface of calculation machine
Calculation machine is used for testing described measured terminal;
Controlled switch, is arranged between described first USB interface and described secondary USB interface;
Switching control module, described switching control module and described calculation machine set up data even
Connect, when described calculation machine carries out non-sleep state test to described measured terminal, described cut
Change control module and receive the first switching command of sending of described calculation machine, and according to described first
Switching command controls described first USB interface to connect with described 2nd USB by described controlled switch
Connection between the corresponding pin of mouth, carries out dormancy in described calculation machine to described measured terminal
During state verification, described switching control module receives the second switching life that described calculation machine sends
Order, and described first USB interface is controlled by described controlled switch according to described second switching command
The disconnection and corresponding pin of described secondary USB interface between.
2. device according to claim 1 is it is characterised in that described controlled switch includes
First controlled switch, the second controlled switch and the 3rd controlled switch,
Described controlled switch is arranged between described first USB interface and described secondary USB interface
It is specially:
The VBUS of the first end of described first controlled switch and described first USB interface draws
Foot connects, the second end is connected with the VBUS pin of described secondary USB interface;
The first end of described second controlled switch is connected with the D+ pin of described first USB interface
Connect, the second end is connected with the D+ pin of described secondary USB interface;
The first end of described 3rd controlled switch is connected with the D- pin of described first USB interface
Connect, the second end is connected with the D- pin of described secondary USB interface.
3. device according to claim 2 is it is characterised in that described switching control module
Communications signals are produced according to described first switching command, is produced according to described second switching command and disconnect
Signal, wherein:
3rd end of described first controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described first controlled switch the 3rd end receive described communications signals
When, the second end of described first controlled switch is connected with first end, in described first controlled switch
When 3rd end receives described cut-off signal, broken with first end in the second end of described first controlled switch
Open;
3rd end of described second controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described second controlled switch the 3rd end receive described communications signals
When, the second end of described second controlled switch is connected with first end, in described second controlled switch
When 3rd end receives described cut-off signal, broken with first end in the second end of described second controlled switch
Open;
3rd end of described 3rd controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described 3rd controlled switch the 3rd end receive described communications signals
When, the second end of described 3rd controlled switch is connected with first end, in described 3rd controlled switch
When 3rd end receives described cut-off signal, broken with first end in the second end of described 3rd controlled switch
Open.
4. device according to claim 1 is it is characterised in that described device also includes the 3rd
USB interface, described 3rd USB interface and the pluggable connection of third party's terminal, described controlled open
Pass is arranged between described first USB interface and described secondary USB interface and is arranged on described
Between first USB interface and described 3rd USB interface.
5. device according to claim 4 is it is characterised in that described controlled switch includes
Four controlled switch, the 5th controlled switch, the 6th controlled switch and the 7th controlled switch,
Described controlled switch is arranged between described first USB interface and described secondary USB interface,
And be arranged between described first USB interface and described 3rd USB interface specially:
The first end of described 4th controlled switch is drawn with the VBUS of described first USB interface
Foot connects, the second end is connected with the VBUS pin of described secondary USB interface, the 3rd end and institute
The VBUS pin stating the 3rd USB interface connects;
The first end of described 5th controlled switch is connected with the D+ pin of described first USB interface
Connect, the second end is connected with the D+ pin of described secondary USB interface, the 3rd end and described 3rd USB
The D+ pin of interface connects;
The first end of described 6th controlled switch is connected with the D- pin of described first USB interface
Connect, the second end is connected with the D- pin of described secondary USB interface, the 3rd end and described 3rd USB
The D- pin of interface connects;
The first end of described 7th controlled switch is connected with the ID pin of described first USB interface
Connect, the second end is connected with the ID pin of described 3rd USB interface.
6. device according to claim 5 is it is characterised in that described switching control module
Receive described first switching command or described second switching command that described calculation machine sends, and
Communications signals are produced according to described first switching command, is produced according to described second switching command and disconnect
Signal, wherein:
4th end of described 4th controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described 4th controlled switch the 4th end receive described communications signals
When, the first end of described 4th controlled switch is connected with the 3rd end, in described 4th controlled switch
When 3rd end receives described cut-off signal, the first end of described 4th controlled switch is with the second end even
Logical;
4th end of described 5th controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described 5th controlled switch the 4th end receive described communications signals
When, the first end of described 5th controlled switch is connected with the 3rd end, in described 5th controlled switch
When 4th end receives described cut-off signal, the first end of described 5th controlled switch is with the second end even
Logical;
4th end of described 6th controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described 3rd controlled switch the 4th end receive described communications signals
When, the first end of described 6th controlled switch is connected with the 3rd end, in described 6th controlled switch
When 4th end receives described cut-off signal, the first end of described 6th controlled switch is with the second end even
Logical;
The first end of described 7th controlled switch receives described connection letter from described switching control module
Number or described cut-off signal, described 3rd controlled switch the 4th end receive described communications signals
When, the first end of described 7th controlled switch is connected with the second end, in described 7th controlled switch
When 4th end receives described cut-off signal, the first end of described 7th controlled switch is broken with the second end
Open.
7. the device according to any one of claim 1 to 6 is it is characterised in that described switching
The data cube computation that control module is set up with described calculation machine is connected for serial ports, parallel port connects, blue
Tooth connects or USB connects.
8. a kind of method of testing is it is characterised in that methods described is applied to claim 1 to 7 times
Device described in one, including:
It is extremely described that described calculation machine passes through described data cube computation described first switching command of transmission
Device is so that described device controls described first USB interface and institute according to described first switching command
State the connection between the corresponding pin of secondary USB interface;
Described calculation machine is sent by described first USB interface and described secondary USB interface
Test script is to described measured terminal;
It is extremely described that described calculation machine passes through described data cube computation described second switching command of transmission
Device is so that described device controls described first USB interface and institute according to described second switching command
State the disconnection between the corresponding pin of secondary USB interface;
After described calculation machine waits the scheduled time, send described the by described data cube computation
One switching command is to described device so that described device is according to described first switching command controls
Connection between the corresponding pin of the first USB interface and described secondary USB interface, and pass through institute
State the first USB interface and described secondary USB interface obtains described measured terminal and running described survey
The test result producing after training originally, wherein said measured terminal runs institute within the described scheduled time
State test script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510469189.3A CN106407068A (en) | 2015-07-30 | 2015-07-30 | A device automatically controlling connection and disconnection of USB cables and a testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510469189.3A CN106407068A (en) | 2015-07-30 | 2015-07-30 | A device automatically controlling connection and disconnection of USB cables and a testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106407068A true CN106407068A (en) | 2017-02-15 |
Family
ID=58007501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510469189.3A Pending CN106407068A (en) | 2015-07-30 | 2015-07-30 | A device automatically controlling connection and disconnection of USB cables and a testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106407068A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018210307A1 (en) * | 2017-05-19 | 2018-11-22 | 杭州青奇科技有限公司 | Debugging device and system |
CN109239442A (en) * | 2018-11-08 | 2019-01-18 | 广东电网有限责任公司 | Split-core type meter loop switch device and split-core type meter |
CN110750408A (en) * | 2019-09-30 | 2020-02-04 | 湖南新云网科技有限公司 | Method, device and apparatus for controlling USB debug mode switch, and storage medium |
CN111220827A (en) * | 2020-01-10 | 2020-06-02 | 上海企顺信息系统有限公司 | Automatic plugging and unplugging test method and control device |
CN111324501A (en) * | 2020-03-04 | 2020-06-23 | 苏州浪潮智能科技有限公司 | Device and method for diagnosing USB interface by simulating manual plugging of USB equipment |
CN111723040A (en) * | 2020-05-11 | 2020-09-29 | 百富计算机技术(深圳)有限公司 | USB interface switching device, switching method and terminal equipment |
CN111766509A (en) * | 2020-09-02 | 2020-10-13 | 深圳芯邦科技股份有限公司 | Chip testing method and related equipment |
CN112968428A (en) * | 2021-02-03 | 2021-06-15 | 深圳市普洛威电子有限公司 | Test switching protection plate and test method |
CN113419911A (en) * | 2021-06-24 | 2021-09-21 | 展讯通信(上海)有限公司 | Compatibility testing device, compatibility testing method and system |
CN113868169A (en) * | 2021-08-31 | 2021-12-31 | 浪潮(山东)计算机科技有限公司 | Computer equipment and signal processing system thereof |
CN116069702A (en) * | 2023-03-03 | 2023-05-05 | 山东华翼微电子技术股份有限公司 | NFC-based USB on-off controller and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960296A (en) * | 2006-10-09 | 2007-05-09 | 华为技术有限公司 | Implementation system and method for testing intermittent disconnection of signal |
CN102023912A (en) * | 2009-09-11 | 2011-04-20 | 鸿富锦精密工业(深圳)有限公司 | Dormancy wake-up testing system and method |
CN102647746A (en) * | 2011-02-22 | 2012-08-22 | 鸿富锦精密工业(深圳)有限公司 | Automated testing method of mobile phone |
CN102937928A (en) * | 2011-08-16 | 2013-02-20 | 鸿富锦精密工业(深圳)有限公司 | Main board sleeping and waking device |
CN202773083U (en) * | 2011-12-02 | 2013-03-06 | 刘伟 | An automatic test system for movable terminals |
WO2014108048A1 (en) * | 2013-01-10 | 2014-07-17 | 上海海尔集成电路有限公司 | Apparatus for testing touchscreen module and touchscreen module |
-
2015
- 2015-07-30 CN CN201510469189.3A patent/CN106407068A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960296A (en) * | 2006-10-09 | 2007-05-09 | 华为技术有限公司 | Implementation system and method for testing intermittent disconnection of signal |
CN102023912A (en) * | 2009-09-11 | 2011-04-20 | 鸿富锦精密工业(深圳)有限公司 | Dormancy wake-up testing system and method |
CN102647746A (en) * | 2011-02-22 | 2012-08-22 | 鸿富锦精密工业(深圳)有限公司 | Automated testing method of mobile phone |
CN102937928A (en) * | 2011-08-16 | 2013-02-20 | 鸿富锦精密工业(深圳)有限公司 | Main board sleeping and waking device |
CN202773083U (en) * | 2011-12-02 | 2013-03-06 | 刘伟 | An automatic test system for movable terminals |
WO2014108048A1 (en) * | 2013-01-10 | 2014-07-17 | 上海海尔集成电路有限公司 | Apparatus for testing touchscreen module and touchscreen module |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018210307A1 (en) * | 2017-05-19 | 2018-11-22 | 杭州青奇科技有限公司 | Debugging device and system |
CN109239442A (en) * | 2018-11-08 | 2019-01-18 | 广东电网有限责任公司 | Split-core type meter loop switch device and split-core type meter |
CN110750408A (en) * | 2019-09-30 | 2020-02-04 | 湖南新云网科技有限公司 | Method, device and apparatus for controlling USB debug mode switch, and storage medium |
CN111220827A (en) * | 2020-01-10 | 2020-06-02 | 上海企顺信息系统有限公司 | Automatic plugging and unplugging test method and control device |
CN111324501A (en) * | 2020-03-04 | 2020-06-23 | 苏州浪潮智能科技有限公司 | Device and method for diagnosing USB interface by simulating manual plugging of USB equipment |
CN111723040A (en) * | 2020-05-11 | 2020-09-29 | 百富计算机技术(深圳)有限公司 | USB interface switching device, switching method and terminal equipment |
CN111766509A (en) * | 2020-09-02 | 2020-10-13 | 深圳芯邦科技股份有限公司 | Chip testing method and related equipment |
CN111766509B (en) * | 2020-09-02 | 2020-12-25 | 深圳芯邦科技股份有限公司 | Chip testing method and related equipment |
CN112968428A (en) * | 2021-02-03 | 2021-06-15 | 深圳市普洛威电子有限公司 | Test switching protection plate and test method |
CN113419911A (en) * | 2021-06-24 | 2021-09-21 | 展讯通信(上海)有限公司 | Compatibility testing device, compatibility testing method and system |
CN113868169A (en) * | 2021-08-31 | 2021-12-31 | 浪潮(山东)计算机科技有限公司 | Computer equipment and signal processing system thereof |
CN116069702A (en) * | 2023-03-03 | 2023-05-05 | 山东华翼微电子技术股份有限公司 | NFC-based USB on-off controller and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106407068A (en) | A device automatically controlling connection and disconnection of USB cables and a testing method | |
CN102572352B (en) | HDMI multiplexing method, HDMI, and equipped provided with HDMI | |
CN111817373B (en) | Charging management device, one-to-many charging wire, quick charging system and management method | |
CN105635885A (en) | USB interface multiplex circuit, mobile terminal and earphone | |
CN102665302B (en) | A kind of wireless communication system | |
EP3905714A1 (en) | Terminal device, adapter, and charging method | |
CN208547675U (en) | A kind of plug test module for USB Type-C interface | |
CN103260124A (en) | Audio testing method and system of mobile terminal | |
CN203520391U (en) | Data transmission multiplexing device | |
CN204761690U (en) | Head circuit | |
CN110247265B (en) | Multifunctional data line, switching circuit and switching method | |
CN106843091A (en) | The CAN test system and method for testing of comprehensive cable tester | |
CN104269709B (en) | A kind of fast charging adapter and its control method, electronic equipment | |
CN103491412B (en) | MHL equipment identification circuit with standby charging function | |
CN106354597B (en) | A kind of interface circuit and method for supporting SWP and 7816 interfaces while debugging | |
CN105655684B (en) | A kind of NFC terminal of compatible metal rear shell and plastics rear shell | |
CN107070746A (en) | A kind of comprehensive cable tester and its method of testing | |
CN203643893U (en) | Terminal equipment | |
CN204968062U (en) | Portable earphone | |
CN104994320B (en) | A kind of HDMI service equipments | |
CN211579637U (en) | One drags many charging wires | |
CN107346295A (en) | A kind of data transmission cable and data transmission method | |
CN204013697U (en) | Communication terminal audio frequency production line test device | |
CN207650282U (en) | Intelligent nuclear phase meter | |
CN208798186U (en) | A kind of audio payment control circuit and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant after: Huawei Device Co., Ltd. Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant before: HUAWEI terminal (Dongguan) Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |