CN106597189A - USB port short-circuit testing method and device - Google Patents
USB port short-circuit testing method and device Download PDFInfo
- Publication number
- CN106597189A CN106597189A CN201611009862.6A CN201611009862A CN106597189A CN 106597189 A CN106597189 A CN 106597189A CN 201611009862 A CN201611009862 A CN 201611009862A CN 106597189 A CN106597189 A CN 106597189A
- Authority
- CN
- China
- Prior art keywords
- time relay
- pair
- contacts
- closed
- normally opened
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/50—Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Unknown Time Intervals (AREA)
Abstract
The invention discloses a USB port short-circuit testing method and device, and the device comprises a first time delay M1 and a second time delay M2, wherein the first and second time delays M1 and M2 respectively comprise a pair of normally-opened contacts, and are in electrical connection. The normally-opened contacts of the first time delay M1 are respectively electrically connected to a zero line and a live line of a USB port. The first time delay M1 is used for controlling the normally-opened contacts to be closed to cause the USB port to be in a short-circuit state when recorded time arrives at a first set time duration, triggering the normally-opened contacts of the second time delay M2 to be closed, thereby enabling the second time delay M2 to start timing. The first set time duration is a short-circuit interval period of the USB port. The second time delay M2 is used for opening a pair of normally-closed contacts of the second time delay M2 when the recorded time arrives at a second set time duration, and triggering the normally-opened contacts of the first time delay M1 to be cut off, thereby enabling the USB port to be in an open-circuit state. The second set time duration is the short-circuit time duration of the USB port, so as to solve a problem that the short-circuit testing of the USB port in the prior art cannot meet the testing requirements.
Description
Technical field
The present invention relates to electronic equipment automatic test field, more particularly to a kind of short circuit of USB port method of testing and
Device.
Background technology
USB (Universal Serial Bus, USB (universal serial bus)) be a new generation peripheral interface, it be by
Seven software and hardware manufacturers of Intel, Compaq, NEC, DEC, IBM, Northern Telecom, Microsoft formulate jointly
, the transfer rate of this interface has 1.5Mbps and two kinds of forms of 12Mbps, at most may be electrically connected to 127 ancillary equipment,
Because parallel port that its transfer rate is used compared with personal computer or all fast many of serial port, USB
For computer equipment can increase significantly with the efficiency of transmission of perimeter interface.
USB interface is supported in the middle of the operating systems of Windows 98, it unifies the peripheral PORT COM of personal computer
Formulate specification, for example support USB interface network card, hub, keyboard, mouse, joystick, CD drive, tape drive,
The peripheral units such as printer, scanner, digital camera, almost contain all of ancillary equipment, and these USB devices are not only supported
The ability of plug and play, and need not turn back on and just can use.
By USB, can be by different types of ancillary equipment (such as mouse, keyboard, joystick, loudspeaker, modem, scanning
Instrument, CD drive etc.), electrically connected on a personal computer by identical interface.So as to simplify personal computer
Connecting interface type.In addition, USB also has low cost, hot plug is supported, electric connecting device is more, and occupying system resources are few, supported
The advantages of various transport-type (can at most support four kinds of transport-types).
Currently for the test of USB port short circuit, when having clear and definite short circuit duration, interval in the testing standard of each major company
Between, the requirement of short-circuit number of times, but generally adopt manual type at present, manually realize that USB port is short-circuit, so it is difficult to accomplishing
Temporal Precise control, it is impossible to fully meet the requirement in testing standard.
The content of the invention
The embodiment of the present invention provides a kind of method of testing and device of USB port short circuit, to solve prior art in deposit
Cannot meet the problem of test request in USB port short-circuit test.
The inventive method includes a kind of test device of USB port short circuit, and the device includes:Very first time relay,
Two time relays, wherein, the very first time relay and second time relay respectively include a pair of normally opened contacts, institute
State very first time relay and second time relay electrical connection;
The zero line and live wire that are electrically connected to both ends of USB port of a pair of normally opened contacts of the very first time relay
On, the very first time relay, for when timing reaches first and sets duration, controlling the one of the very first time relay
To normally opened contact closure so that the zero line and live wire of the USB port are short-circuit, and trigger second time relay
A pair of normally opened contact closures, so as to second time relay starts timing, wherein, it is a length of described during first setting
The short circuit interval cycle of USB port;
Second time relay is used for when timing reaches second and sets duration, and the one of second time relay
Normally-closed contact is disconnected, the normally opened contact for triggering the very first time relay disconnects, so that the zero line of the USB port
Open a way with live wire, wherein, the short-circuit duration of a length of USB port during second setting.
Further, the very first time relay also respectively includes a pair of normally-closed contacts;
The very first time relay specifically for:When a pair of normally-closed contacts of the very first time relay are closed,
Start timing;When the very first time relay timing reaches the first setting duration, the very first time relay
A pair of normally-closed contacts disconnect, and a pair of normally opened contacts closure of the very first time relay, so that the USB port
Zero line and live wire short circuit.
Second time relay specifically for:When a pair of reset contacts of the very first time relay are closed,
A pair of normally opened contacts closure of second time relay, second time relay starts timing;When described second
Between relay timing when reaching the second setting duration, a pair of normally opened contacts of second time relay disconnect, and
A pair of normally opened contacts for triggering the very first time relay disconnect, so that the zero line of the USB port and live wire open circuit.
Further, the very first time relay and second time relay also respectively include a pair of reset contacts;
A pair of reset contacts of the very first time relay are electric with a pair of normally opened contacts of second time relay
Connection, a pair of reset contacts of second time relay are electrically connected with a pair of normally-closed contacts of the very first time relay
Connect;
The very first time relay is additionally operable to:When the very first time relay timing reaches the first setting duration
When, a pair of reset contact closures of the very first time relay, a pair of normally opened contacts for triggering second time relay are closed
Close;
Second time relay specifically for:When a pair of reset contacts of the very first time relay are closed,
A pair of normally opened contacts closure of second time relay, second time relay starts timing;When described second
Between relay timing reach it is described second setting duration when, second time relay a pair of reset contacts closure, triggering
A pair of normally-closed contacts of the very first time relay electrically connected with a pair of reset contacts of second time relay are closed
Close, and trigger a pair of normally opened contacts of the very first time relay and disconnect, so that the zero line and fire of the USB port
Line is opened a way.
Further, described device also includes also including:Enumerator;
A pair of reset contacts of the very first time relay are also electrically connected with a pair of reset contacts of the enumerator;
The very first time relay specifically for:When the very first time relay timing reaches first setting
When long, a pair of reset contact closures of the very first time relay trigger a pair of reset contacts closure of the enumerator;
The enumerator specifically for:When a pair of reset contacts of the enumerator are closed, stored count is once.
Further, the enumerator is additionally operable to:It is described when judging that the current stored count value of enumerator is less than setting value
A pair of reset contacts of enumerator are remained closed, and so as to the reset contact for triggering the very first time relay is closed, and are touched
The normally-closed contact closure for sending out very first time relay described, so as to the very first time relay starts timing;
When judging that the current stored count value of enumerator is equal to setting value, a pair of normally opened contacts closure of the enumerator,
A pair of time-out closings of contact of the very first time relay are triggered, so as to control the test device short-circuit test is suspended.
Based on same inventive concept, the embodiment of the present invention further provides a kind of method of testing of USB port short circuit,
The method includes:
When very first time relay timing reaches first sets duration, a pair of the very first time relay are normally opened tactile
Point closes the zero line and live wire short circuit so that the USB port, wherein, a pair of the very first time relay are normally opened tactile
The two ends of point electrically connect with the zero line and live wire of the USB port;
When a pair of normally opened contacts of the very first time relay are closed, very first time relay triggering with it is described
A pair of normally opened contacts closure of second time relay of a pair of normally opened contacts electrical connection of very first time relay;
When a pair of normally opened contacts of second time relay are closed, start timing;
When second time relay timing reaches second sets duration, a pair of second time relay is normally opened
Contact disconnect, so as to trigger the very first time relay a pair of normally opened contacts disconnect, so as to the USB port zero line and
Live wire is opened a way.
Further, the very first time relay and second time relay also respectively include a pair of normally-closed contacts;
It is described when very first time relay timing reach first set duration when, the first couple of the very first time relay
The closing of contact is short-circuit so as to the zero line and live wire that control the USB port, including:
When a pair of normally-closed contacts of the very first time relay are closed, start timing;
When the very first time relay timing reaches the first setting duration, the one of the very first time relay
Normally-closed contact is disconnected, and a pair of normally opened contacts closure of the very first time relay, so as to control the USB port
Zero line and live wire short circuit.
Further, the very first time relay and second time relay also respectively include a pair of reset contacts;
It is described when the very first time relay timing reach it is described first setting duration when after, also include:
A pair of reset contact closures of the very first time relay, trigger second time relay a pair are normally opened tactile
Point closure, wherein, a pair of reset contacts of the very first time relay are normally opened with a pair of second time relay to be touched
Point electrical connection;
It is described to start timing when a pair of normally opened contacts of second time relay are closed, including:
When a pair of normally opened contacts of second time relay are closed, second time relay starts timing;
It is described when second time relay timing reaches second and sets duration, second time relay triggering
A pair of normally opened contacts of the very first time relay disconnect, so as to the zero line and live wire of the USB port are opened a way, including:
When second time relay timing reaches the second setting duration, the one of second time relay
Reset contact is closed, a pair of normally-closed contacts closure of the very first time relay, and the very first time relay is triggered
A pair of normally opened contacts of device disconnect, so as to control the zero line and live wire open circuit of the USB port, wherein, second time after
A pair of reset contacts of electrical equipment are electrically connected with a pair of normally-closed contacts of the very first time relay.
Further, it is described when very first time relay timing reach first set duration when after, also include:
A pair of reset contact closures of the very first time relay, a pair of reset contacts closure of flip-flop number, wherein,
A pair of reset contacts of the very first time relay are also electrically connected with a pair of reset contacts of the enumerator;
When a pair of reset contacts of the enumerator are closed, stored count is once.
Further, when the enumerator judges that current stored count value is less than setting value, a pair of the enumerator
Reset contact is remained closed, so as to the reset contact for triggering the very first time relay is closed, and when triggering described first
Between relay normally-closed contact closure, so as to the very first time relay starts timing;
When judging that the current stored count value of enumerator is equal to setting value, a pair of normally opened contacts closure of the enumerator,
A pair of time-out closings of contact of the very first time relay are triggered, so as to control the test device short-circuit test is suspended.
The embodiment of the present invention is by for the testing requirement of USB port short circuit, devising a kind of test device, the device bag
Very first time relay and second time relay are included, so as to realize the accurate control to short-circuit duration and short circuit interval time
System, wherein, very first time relay realizes the control to the short circuit interval time, and second time relay is realized to be held to short circuit
The control of continuous duration, so, it is possible to replace tester to control manually using test device, while time control is more
Accurately such that it is able to meet test request.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of USB short-circuit test devices wiring harness schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of USB short-circuit test devices inner connecting way schematic diagram one provided in an embodiment of the present invention;
Fig. 3 is a kind of USB short-circuit test devices inner connecting way schematic diagram two provided in an embodiment of the present invention;
Fig. 4 is a kind of USB short circuit test methods schematic flow sheet one provided in an embodiment of the present invention;
Fig. 5 is a kind of USB short circuit test methods schematic flow sheet two provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into
One step ground is described in detail, it is clear that described embodiment is only present invention some embodiments, rather than the enforcement of whole
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
For the requirement in the short-circuit test requirement that refers in background technology to short-circuit test duration and short-circuit test cycle,
The embodiment of the present invention devises a kind of USB short-circuit test devices, and the device can be accessed according to the circuit connecting method shown in Fig. 1
In charging circuit, in FIG, DC source 101 is charged using the zero line and live wire of USB line 102 to mobile phone 103, wherein
The zero line and live wire of USB line 102 is linked in USB short-circuit test devices 104, and 220V alternating current power supplys 105 are USB short-circuit tests dress
104 offer power supplys are provided.Because a pair of normally opened contacts inside the time relay in USB short-circuit test devices 104 are every setting
Duration can be closed, so the zero line and live wire of the USB line 102 being connected with a pair of normally opened contacts of the time relay will
It is short-circuited every setting duration, so as to realize the purpose for carrying out short-circuit test automatically using USB short-circuit test devices.
Specifically, the time relay of very first time relay 201 and second is at least included in USB short-circuit test devices 104
202, very first time relay 201 is connected with second time relay 202, as shown in Fig. 2 the He of very first time relay 201
Second time relay 202 belongs to the relay of same specification, comprising a pair of normally opened contacts 6/8, a pair of normally-closed contacts 5/8,
A pair of reset contacts 3/1, a pair of time-out contacts 4/1, a pair of power contacts 2/7.Wherein, the contact 6 of very first time relay 201
It is connected with USB live wires, the contact 8 of very first time relay 201 is connected with USB zero lines, very first time relay 201 and
The annexation of two time relays 202 is connected for the 3/1 of very first time relay 201 with the 6/8 of second time relay 202
Connect, the 3/1 of second time relay 202 is connected with the 5/8 of very first time relay 201, certainly, very first time relay
201 and second the power contact 2/7 of the time relay 202 be all connected to (not showed that in Fig. 2) in 220V alternating current power supplys 105.
Wherein, very first time relay 201, for when timing reaches first and sets duration, controlling the pair of normally opened
Contact 6/8 closes the zero line and live wire short circuit so that the USB port, and triggers second time relay 202
A pair of normally opened contacts 6/8 are closed, so as to second time relay 202 starts timing, wherein, it is a length of during first setting
The short circuit interval cycle of the USB port.
Second time relay 202 is used for when timing reaches second and sets duration, and a pair of second time relay are normal
Closed contact 5/8 disconnects, trigger very first time relay normally opened contact 6/8 disconnect so that the zero line of the USB port and
Live wire is opened a way, wherein, the short-circuit duration of a length of USB port during second setting
Specifically, very first time relay 201 specifically for:A pair when the very first time relay 201 are normally closed tactile
When point 6/8 is powered, start timing;When the timing of very first time relay 201 reaches the first setting duration, described the
A pair of normally-closed contacts 5/8 of one time relay 201 disconnect, and a pair of normally opened contacts of the very first time relay 201
6/8 closure, so that the zero line of the USB port and live wire short circuit.
Further, the very first time relay 201 is additionally operable to:When the timing of very first time relay 201 is reached
During the first setting duration, described a pair of reset contacts of very first time relay 201 3/1 are closed, and trigger second time
A pair of normally opened contacts 6/8 of relay 202 are closed;
Further, second time relay 202 specifically for:When a pair of the very first time relay 201
When reset contact 3/1 is closed, a pair of normally opened contacts 6/8 of second time relay 202 are closed, second time relay
Device 202 starts timing;When the timing of second time relay 202 reaches the second setting duration, second time
A pair of reset contacts 3/1 of relay 202 are closed, and are triggered electric with a pair of reset contacts 3/1 of second time relay 202
A pair of normally-closed contacts 5/8 of the very first time relay 201 of connection are closed, and trigger the very first time relay
201 a pair of normally opened contacts 6/8 disconnect, so that the zero line of the USB port and live wire open circuit.
Further, there is the requirement of set point number in testing standard, therefore, a preset counter 203 is further added by,
As shown in figure 3, the phase of a pair of reset contacts 3/1 of the reset contact 3/1 of preset counter 203 and very first time relay 201
Connection, the normally-closed contact 6/8 of preset counter 203 suspends contact 4/1 and is connected with a pair of very first time relay 201.
Certainly, a pair of power contacts 2/7 of the 203 of preset counter are also connected to (not show in Fig. 3 in 220V alternating current power supplys 104
Go out).
Wherein, when the timing of very first time relay 201 reach it is described first setting duration when, the very first time after
A pair of reset contacts of electrical equipment 201 3/1 are closed, and a pair of the reset contacts 3/1 for triggering the enumerator 203 are closed;The enumerator
203 specifically for:When a pair of reset contacts 3/1 of the enumerator are closed, stored count is once.
Further, when enumerator 203 judges that current stored count value is less than setting value, a pair of the enumerator are answered
Position contact 3/1 remains closed, and so as to the reset contact 3/1 for triggering the very first time relay 201 is closed, and triggers described
The normally-closed contact 5/8 of very first time relay 201 is closed, and so as to the very first time relay starts timing, is repeated
State step;
When judging that the current stored count value of enumerator 203 is equal to setting value, a pair of normally opened contacts of the enumerator 203
6/8 closure, a pair of time-out contacts 4/1 for triggering the very first time relay 201 close, temporary so as to control the test device
Stop short-circuit test.It can be seen that, by this method, it is possible to efficiently control the number of times of USB port short-circuit test, until enumerator
When the accumulative count value of 203 judgements reaches given threshold, it is possible to be automatically stopped the test of port short circuit.
Based on the electronic equipment shown in Fig. 2, the embodiment of the present invention provides a kind of method of testing flow process of USB port short circuit and shows
It is intended to, shown in Figure 4, specifically implementation method includes:
Step S101, when very first time relay timing reaches first sets duration, the very first time relay
A pair of normally opened contacts close the zero line and live wire short circuit so that the USB port, wherein, the very first time relay
The two ends of a pair of normally opened contacts electrically connect with the zero line and live wire of the USB port.
Step S102, when a pair of normally opened contacts of the very first time relay are closed, the very first time relay
A pair of normally opened contacts of second time relay that triggering is electrically connected with a pair of normally opened contacts of the very first time relay are closed
Close.
Step S103, when a pair of normally opened contacts of second time relay are closed, starts timing.
Step S104, when second time relay timing reaches second sets duration, second time relay
A pair of normally opened contacts of device disconnect, so as to a pair of normally opened contacts for triggering the very first time relay disconnect, so as to the USB ends
The zero line and live wire open circuit of mouth.
It should be noted that the start-up operation of 201 and second time relay of very first time relay 202 in fig. 2
Before, need first to be resetted, that is, the action of numerical value zero, specifically, technical staff is manually to very first time relay 201
Hand-reset, because the reset contact 3/1 of very first time relay 201 resets, is connected with very first time relay 201
Second time relay 6/8 closure, second time relay starts timing, sets duration when timing reaches second, for example
During 50ms, the second time relay timing terminates, and the reset contact 3/1 of second time relay resets, so far, the very first time after
The time relay 202 of electrical equipment 201 and second completes the action for resetting that resets.
After second time relay 202 completes homing action, a pair of reset contacts with second time relay 202
5/8 contact of connected very first time relay starts closure, therefore very first time relay starts timing, when timing reaches the
During one setting duration, such as 2s, 5/8 contact of very first time relay disconnects, 6/8 closing of contact, and reset contact 3/1 is closed
Close, 2s timing resets, and so, the zero line and live wire of USB port are just shorted together, and are short-circuited.
Further, because the reset contact 3/1 of very first time relay 201 is connected with the 6/8 of second time relay
Connect, so, when the timing of very first time relay 201 is reached to be resetted, 6/8 closure of second time relay, so the
Such as two time relays start timing, and when timing reaches the second setting duration, during 50ms, the 6/8 of second time relay breaks
Open, while the reset contact 3/1 of second time relay is closed, therefore be connected with second time relay 3/1 first when
Between relay 5/8 closure, 6/8 disconnect.That is, disconnecting after the zero line of USB port and live wire short circuit 50ms.Because figure
5/8 closing of contact of the very first time relay in 2, therefore very first time relay restarts timing, when timing reaches 2S
When, 6/8 closes again, so as to be short-circuited again, that is to say, that interval time short-circuit twice is 2S before and after USB is short-circuit.This
Sample, can just realize that automatically controlling USB port is short-circuited by two time relays, when the duration and short circuit interval of short circuit
Between can be effectively controlled.
Further, USB port short-circuit test generally has the requirement of short-circuit test number of times in requiring, therefore, the present invention is real
Applying example further increases enumerator, and short-circuit number of times is controlled.Specifically, illustrate with reference to Fig. 3.Because preset number meter
A pair of reset contacts 3/1 of number device 203 are connected with a pair of reset contacts 3/1 of very first time relay 201, so whenever first
When the reset contact 3/1 of the time relay resets, the reset contact 3/1 of enumerator is just connected, therefore enumerator just tires out
Meter is counted 1 time, it is assumed that the threshold value that enumerator pre-sets is three times, then before enumerator judges accumulative numerical value less than 3, the
One time relay still restarts timing, and short circuit is carried out again, until when the accumulative numerical value of enumerator is equal to 3, enumerator
6/8 closing of contact, therefore the time-out contact 4/1 of very first time relay closes, therefore very first time relay stops timing, extremely
This, USB port short circuit number of times meets set point number 3, and stopping carries out short-circuit test.
For the process of the above-mentioned USB port short-circuit test that more describes in a systematic way, the embodiment of the present invention is further combined
Method flow diagram shown in Fig. 5 is illustrated, and detailed step is as follows.
Step 301, tester is by enumerator, very first time relay, second time relay according to the company shown in Fig. 3
The method of connecing is attached, and after the completion of connection, the preset times that preset counter 203 is arranged first are 3 times, very first time relay
A length of 50ms when a length of 2S, the setting of second time relay 202 during the setting of device 201.
Step 302, after 220V alternating current power supply 104 are connected, preset counter 203 and very first time relay 201, the
Two time relays 202 are powered.
Step 303, very first time relay is started working from 0, timing to 2S generation actions, i.e., a pair of normally opened contacts 6,8
The closing of contact, the live wire of USB and zero line short circuit.
Step 304, when very first time relay timing is to 2S, i.e., a pair of the closings of contact of reset contact 3,1, during triggering second
Between relay start timing, when timing is to 50ms, generation action, i.e. reset contact 3/1 are closed, triggering very first time relay 5/
8 closures, 3/1 reset, USB live wires and zero-line open-circuit.
Step 305, the 3 of very first time relay, 1 reset trigger enumerator, 203 stored count 1 time.
Step 306, enumerator judges whether current stored count numerical value is equal to 3, if being less than 3, returns execution step
303, otherwise continue executing with 307.
Step 307, the normally opened contact 6/8 of enumerator is closed, and triggers 4/1 closure of very first time relay, short-circuit test
Stop.
To sum up, the embodiment of the present invention passes through to provide a kind of short-circuit test device, so as to realize to short-circuit duration and short circuit
The precise control of interval time, wherein, very first time relay realizes the control to the short circuit interval time, the second time relay
Device realizes the control to short circuit duration duration, so, it is possible to replace tester to control manually using test device,
Simultaneously time control is more accurate such that it is able to meet test request.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. the test device of a kind of USB port short circuit, it is characterised in that the device includes:Very first time relay, the second time
Relay, wherein, the very first time relay and second time relay respectively include a pair of normally opened contacts, described first
The time relay and second time relay are electrically connected;
A pair of normally opened contacts of the very first time relay are electrically connected to both ends of on the zero line and live wire of USB port,
The very first time relay, for when timing reaches first and sets duration, controlling a pair of the very first time relay
Normally opened contact closes the zero line and live wire short circuit so that the USB port, and triggers the one of second time relay
Normally opened contact is closed, so as to second time relay starts timing, wherein, a length of USB during first setting
The short circuit interval cycle of port;
Second time relay is used for when timing reaches second and sets duration, and a pair of second time relay are normal
Closed contact disconnects, and the normally opened contact for triggering the very first time relay disconnects, so that the zero line and fire of the USB port
Line is opened a way, wherein, the short-circuit duration of a length of USB port during second setting.
2. test device as claimed in claim 1, it is characterised in that the very first time relay also respectively include a pair it is normally closed
Contact;
The very first time relay specifically for:When a pair of normally-closed contacts of the very first time relay are closed, start
Timing;When the very first time relay timing reaches the first setting duration, a pair of the very first time relay
Normally-closed contact disconnects, and a pair of normally opened contacts closure of the very first time relay, so that the zero of the USB port
Line and live wire short circuit.
Second time relay specifically for:It is described when a pair of reset contacts of the very first time relay are closed
A pair of normally opened contacts closure of second time relay, second time relay starts timing;When second time after
When electrical equipment timing reaches the second setting duration, a pair of normally opened contacts of second time relay disconnect, and trigger
A pair of normally opened contacts of the very first time relay disconnect, so that the zero line of the USB port and live wire open circuit.
3. test device as claimed in claim 2, it is characterised in that the very first time relay and second time after
Electrical equipment also respectively includes a pair of reset contacts;
A pair of reset contacts of the very first time relay are electrically connected with a pair of normally opened contacts of second time relay,
A pair of reset contacts of second time relay are electrically connected with a pair of normally-closed contacts of the very first time relay;
The very first time relay is additionally operable to:When the very first time relay timing reaches the first setting duration,
A pair of reset contact closures of the very first time relay, trigger a pair of normally opened contacts closure of second time relay;
Second time relay specifically for:It is described when a pair of reset contacts of the very first time relay are closed
A pair of normally opened contacts closure of second time relay, second time relay starts timing;When second time after
When electrical equipment timing reaches the second setting duration, a pair of reset contacts closure of second time relay is triggered and institute
A pair of normally-closed contacts closure of the very first time relay of a pair of reset contacts electrical connection of second time relay is stated, and
And a pair of normally opened contacts of the triggering very first time relay disconnect, so that the zero line and live wire of the USB port are opened
Road.
4. test device as claimed in claim 3, it is characterised in that also include:Enumerator;
A pair of reset contacts of the very first time relay are also electrically connected with a pair of reset contacts of the enumerator;
The very first time relay specifically for:When the very first time relay timing reaches the first setting duration
When, a pair of reset contact closures of the very first time relay trigger a pair of reset contacts closure of the enumerator;
The enumerator specifically for:When a pair of reset contacts of the enumerator are closed, stored count is once.
5. test device as claimed in claim 4, it is characterised in that the enumerator is additionally operable to:When judging that enumerator is current
When stored count value is less than setting value, a pair of reset contacts of the enumerator are remained closed, so as to trigger the very first time
The reset contact closure of relay, and the normally-closed contact closure of the very first time relay is triggered, during so as to described first
Between relay start timing;
When judging that the current stored count value of enumerator is equal to setting value, a pair of normally opened contacts closure of the enumerator, triggering
A pair of time-out closings of contact of the very first time relay, so as to control the test device short-circuit test is suspended.
6. the method for testing of a kind of USB port short circuit, it is characterised in that the method includes:
When very first time relay timing reaches first sets duration, a pair of normally opened contacts of the very first time relay are closed
The zero line and live wire short circuit so that the USB port is closed, wherein, a pair of normally opened contacts of the very first time relay
Two ends electrically connect with the zero line and live wire of the USB port;
When a pair of normally opened contacts of the very first time relay are closed, the very first time relay triggering and described first
A pair of normally opened contacts closure of second time relay of a pair of normally opened contacts electrical connection of the time relay;
When a pair of normally opened contacts of second time relay are closed, start timing;
When second time relay timing reaches second sets duration, described second time relay, a pair of normally opened contacts
Disconnect, so as to a pair of normally opened contacts for triggering the very first time relay disconnect, so as to the zero line and live wire of the USB port
Open circuit.
7. method as claimed in claim 6, it is characterised in that the very first time relay and second time relay
Also respectively include a pair of normally-closed contacts;
It is described when very first time relay timing reach first set duration when, a pair of contact of the very first time relay
Close so as to control the zero line and live wire short circuit of the USB port, including:
When a pair of normally-closed contacts of the very first time relay are closed, start timing;
When the very first time relay timing reaches the first setting duration, a pair of the very first time relay are normal
Closed contact disconnects, and a pair of normally opened contacts closure of the very first time relay, so as to control the zero line of the USB port
With live wire short circuit.
8. method as claimed in claim 7, it is characterised in that the very first time relay and second time relay
Also respectively include a pair of reset contacts;
It is described when the very first time relay timing reach it is described first setting duration when after, also include:
A pair of reset contact closures of the very first time relay, a pair of normally opened contacts for triggering second time relay are closed
Close, wherein, a pair of reset contacts of the very first time relay are electric with a pair of normally opened contacts of second time relay
Connection;
It is described to start timing when a pair of normally opened contacts of second time relay are closed, including:
When a pair of normally opened contacts of second time relay are closed, second time relay starts timing;
It is described when second time relay timing reaches second and sets duration, second time relay triggering is described
A pair of normally opened contacts of very first time relay disconnect, so as to the zero line and live wire of the USB port are opened a way, including:
When second time relay timing reaches the second setting duration, a pair of second time relay are answered
The position closing of contact, a pair of normally-closed contacts for triggering the very first time relay are closed, and the very first time relay
A pair of normally opened contacts disconnect, so as to control the zero line and live wire open circuit of the USB port, wherein, second time relay
A pair of reset contacts electrically connect with a pair of normally-closed contacts of the very first time relay.
9. method as claimed in claim 8, it is characterised in that described when very first time relay timing reaches first and sets
After when long, also include:
A pair of reset contact closures of the very first time relay, a pair of reset contacts closure of flip-flop number, wherein, it is described
A pair of reset contacts of very first time relay are also electrically connected with a pair of reset contacts of the enumerator;
When a pair of reset contacts of the enumerator are closed, stored count is once.
10. method as claimed in claim 9, it is characterised in that described when a pair of reset contacts of the enumerator are closed,
After stored count once, also include:
When the enumerator judges that current stored count value is less than setting value, a pair of reset contacts of the enumerator keep closing
Close, so as to the reset contact for triggering the very first time relay is closed, and trigger the normally closed of the very first time relay
The closing of contact, so as to the very first time relay starts timing;
When judging that the current stored count value of enumerator is equal to setting value, a pair of normally opened contacts closure of the enumerator, triggering
A pair of time-out closings of contact of the very first time relay, so as to control the test device short-circuit test is suspended.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009862.6A CN106597189B (en) | 2016-11-16 | 2016-11-16 | A kind of test method and device of USB port short circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009862.6A CN106597189B (en) | 2016-11-16 | 2016-11-16 | A kind of test method and device of USB port short circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106597189A true CN106597189A (en) | 2017-04-26 |
CN106597189B CN106597189B (en) | 2019-02-12 |
Family
ID=58591294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611009862.6A Active CN106597189B (en) | 2016-11-16 | 2016-11-16 | A kind of test method and device of USB port short circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106597189B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279361A (en) * | 2018-04-17 | 2018-07-13 | 南昌黑鲨科技有限公司 | A kind of test method and test circuit of the charging port of intelligent terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201035104Y (en) * | 2007-05-09 | 2008-03-12 | 深圳兆日技术有限公司 | Electric products powered on testing apparatus |
CN201663469U (en) * | 2010-01-03 | 2010-12-01 | 无锡职业技术学院 | Electric vehicle safety charger with timing power-off function |
CN103135059A (en) * | 2011-11-30 | 2013-06-05 | 海洋王照明科技股份有限公司 | Battery short-circuiting circuit and battery short circuit testing method |
CN203044819U (en) * | 2012-12-12 | 2013-07-10 | 玉林市科创机械有限公司 | Automatic sand delivery system of core shooter |
CN203365590U (en) * | 2013-08-06 | 2013-12-25 | 福建宝利特集团有限公司 | Electric appliance product on-off testing apparatus |
CN204440048U (en) * | 2014-11-14 | 2015-07-01 | 珠海格力电器股份有限公司 | Power supply timing on-off control device |
TW201606519A (en) * | 2014-08-15 | 2016-02-16 | 仁寶電腦工業股份有限公司 | Method for causing device under test to execute debugging and operational platform, and control method for server |
CN205374637U (en) * | 2016-02-02 | 2016-07-06 | 广东小天才科技有限公司 | Startup and shutdown testing device |
-
2016
- 2016-11-16 CN CN201611009862.6A patent/CN106597189B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201035104Y (en) * | 2007-05-09 | 2008-03-12 | 深圳兆日技术有限公司 | Electric products powered on testing apparatus |
CN201663469U (en) * | 2010-01-03 | 2010-12-01 | 无锡职业技术学院 | Electric vehicle safety charger with timing power-off function |
CN103135059A (en) * | 2011-11-30 | 2013-06-05 | 海洋王照明科技股份有限公司 | Battery short-circuiting circuit and battery short circuit testing method |
CN203044819U (en) * | 2012-12-12 | 2013-07-10 | 玉林市科创机械有限公司 | Automatic sand delivery system of core shooter |
CN203365590U (en) * | 2013-08-06 | 2013-12-25 | 福建宝利特集团有限公司 | Electric appliance product on-off testing apparatus |
TW201606519A (en) * | 2014-08-15 | 2016-02-16 | 仁寶電腦工業股份有限公司 | Method for causing device under test to execute debugging and operational platform, and control method for server |
CN204440048U (en) * | 2014-11-14 | 2015-07-01 | 珠海格力电器股份有限公司 | Power supply timing on-off control device |
CN205374637U (en) * | 2016-02-02 | 2016-07-06 | 广东小天才科技有限公司 | Startup and shutdown testing device |
Non-Patent Citations (3)
Title |
---|
刘逸生: "用重复循环时间继电器做产品老化试验", 《机床电器》 * |
苌凝凝: "时间继电器自动检测***的设计", 《微计算机信息》 * |
高友: "时间继电器48S-S在汽车继电器综合试验台上的应用", 《辽东学院学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279361A (en) * | 2018-04-17 | 2018-07-13 | 南昌黑鲨科技有限公司 | A kind of test method and test circuit of the charging port of intelligent terminal |
CN108279361B (en) * | 2018-04-17 | 2020-06-02 | 南昌黑鲨科技有限公司 | Test method and test circuit for charging port of intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106597189B (en) | 2019-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11799786B2 (en) | Device and method for disabling a WLAN hotspot based on data traffic value | |
CN105914810A (en) | Method for charging electronic equipment, and electronic equipment | |
CN104360921A (en) | Method, device and system for monitoring performance of mobile terminal | |
CN105762883B (en) | Method and electronic equipment for charging for electronic equipment | |
CN107452305A (en) | A kind of current sensing means detected for screen, system and method | |
CN109031104B (en) | Relay contact performance detection device for relay protection device | |
CN203813501U (en) | Charger | |
CN113590471B (en) | Communication terminal equipment simulation system and application method thereof | |
CN106597189A (en) | USB port short-circuit testing method and device | |
CN104795796A (en) | Motor fault monitoring device and method of intelligent ring main unit | |
CN105048629A (en) | Relay protection hard pressure plate anti-misoperation system | |
CN205562704U (en) | Alternating -current charging stake functional test device | |
CN105068967B (en) | Control method, device and the terminal of I2C equipment | |
CN116684343A (en) | Automatic test method, device, system, equipment and medium for switch | |
CN106980561B (en) | Power-on and power-off test system and method thereof | |
CN214376414U (en) | Device for testing power-on and power-off of expansion cabinet hard disk based on main cabinet BMC | |
CN113934661A (en) | Electronic equipment, control method, device and medium | |
CN105429907B (en) | Serial ports automatic identification equipment and method | |
CN111596148B (en) | Test method, device and equipment for starting diesel engine in case of power failure of emergency bus of nuclear power station | |
CN104979906B (en) | The anti-error alarm device of the hard pressing plate of relay protection | |
CN105743180B (en) | Method and electronic equipment for charging for electronic equipment | |
CN105490820B (en) | A kind of POE method of supplying power to and device | |
CN206640397U (en) | A kind of relay protection system | |
US20180270167A1 (en) | Information processing apparatus and network switching method | |
CN109669909A (en) | External equipment implementation method, device, terminal and storage medium |
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 |