CN100549973C - A kind of usb bus interface detection apparatus and detection method thereof - Google Patents

A kind of usb bus interface detection apparatus and detection method thereof Download PDF

Info

Publication number
CN100549973C
CN100549973C CNB2007100734895A CN200710073489A CN100549973C CN 100549973 C CN100549973 C CN 100549973C CN B2007100734895 A CNB2007100734895 A CN B2007100734895A CN 200710073489 A CN200710073489 A CN 200710073489A CN 100549973 C CN100549973 C CN 100549973C
Authority
CN
China
Prior art keywords
short
unit
described
circuit
circuit detecting
Prior art date
Application number
CNB2007100734895A
Other languages
Chinese (zh)
Other versions
CN101145123A (en
Inventor
周嵘
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to CNB2007100734895A priority Critical patent/CN100549973C/en
Publication of CN101145123A publication Critical patent/CN101145123A/en
Application granted granted Critical
Publication of CN100549973C publication Critical patent/CN100549973C/en

Links

Abstract

A kind of usb bus interface detection apparatus comprises USB adapter unit, demonstration and alarm unit and is used to detect the whether short-circuit detecting unit of short circuit of detected USB interface; The USB adapter unit has with detected USB interface respectively holds corresponding input end and output terminal; The short-circuit detecting unit comprises a plurality of input ends and at least one output terminal, and its input end connects one to one by each end of USB adapter unit and detected USB interface, and its output terminal provides the short-circuit detecting consequential signal; Demonstration and alarm unit are used to show testing result, and alarm is carried out in short circuit.Design of hardware and software of the present invention is all very simple, and speed is fast, and cost is low; Before to-be-measured cell powers on, carry out the short-circuit detecting of usb bus interface earlier, effectively guaranteed to-be-measured cell and test environment safety; This device can also be as certain applications of usb bus interface test circuitry in production test environment.

Description

A kind of usb bus interface detection apparatus and detection method thereof

[technical field]

The present invention relates to a kind of electronic detecting device and detection method thereof of communication technical field, relate in particular to a kind of usb bus interface detection apparatus and detection method thereof.

[background technology]

Usb bus uses in a large number at communication, electronic applications, in the veneer batch production process of USB interface externally is provided, need carry out testing authentication to this interface function, performance, thereby guarantees the quality of production of veneer usb function.A kind of relatively conventional, more easy way is that the outside is equipped with a USB flash disk as test environment in the middle of the prior art, by veneer the read-write operation success or not of USB flash disk is judged.Yet, this method of testing is in actual application, because may there be short circuit phenomenon in usb circuit (specifically, under the situations such as the differential signal D-of the differential signal D+ of USB and power supply VCC short circuit, USB and ground GND short circuit), veneer will occur may normally power on, and the USB interlock circuit damages (comprise and damage the USB flash disk that is used for as test environment).If VCC and GND short circuit cause bigger destruction so.

Chinese patent (application number: 200410037022.1, publication number: CN1691809A) (patent No.: 200420050364.2) " USB interface protection circuit " introduced respectively to manage to mobile phone USB interface ESD and surge by voltage dependent resistor (VDR) and TVS provides surge protection for " USB interface guard system " and Chinese patent.Yet these two technical schemes that patent provided all can't solve the short circuit problem that USB interface may occur in the production testing process.

Chinese patent (patent No.: 01103461.0) " method of testing USB port and device thereof " introduced a kind of by the method that reads USB master controller internal state register judge power supply VCC on the USB interface, GND, a pair of differential signal line (D+, the D-) situation that whether has short circuit, open circuit.But this patent has the following disadvantages: 1, need by software judge one by one power supply,, the short circuit between the differential signal line, open circuit combination, testing efficiency is lower; 2, measured device need power on and just can carry out test operation, if there is short-circuit conditions, the damage measured piece is just arranged; 3, this circuit is not easy to be applied under the production test environment USB interface is done further function, performance test.

European patent (patent No.: EP1243111A1) " METHOD AND CIRCUIT FORPROTECTION OF A UNIVERSAL SERIAL BUS TRANSCEIVERAGAINST SHORT-CIRCUIT ", introduced and a kind ofly realized short-circuit detecting and protection USB interface by USB device controller and short-circuit protection circuit.Yet, this patented technology complex structural designs, and relate to the conversion of the state machine of more complicated, circuit cost is higher; Simultaneously not too be fit to be applied in the test of under the production test environment USB interface being carried out the data transmission performance aspect.

[summary of the invention]

One of technical matters to be solved by this invention provides a kind of usb bus interface detection apparatus, and this device can be before usb bus interface to be measured power up, and whether fast detecting it exist short circuit phenomenon.

In order to solve the problems of the technologies described above, the invention provides following technical scheme:

A kind of usb bus interface detection apparatus comprises a USB adapter unit, and one is used to detect the whether short-circuit detecting unit of short circuit of detected USB interface, and main control unit, power control unit, power supply and show and alarm unit; Described USB adapter unit has with detected USB interface respectively holds corresponding input end and output terminal; Described short-circuit detecting unit comprises a plurality of input ends and at least one output terminal, and its input end connects one to one by each end of described USB adapter unit and detected USB interface, and its output terminal provides the short-circuit detecting consequential signal; Described main control unit is connected with the control end of described short-circuit detecting unit output terminal, power control unit and the input end of demonstration and alarm unit respectively, described main control unit is used to receive and analyze the short-circuit detecting consequential signal of described short-circuit detecting unit output, controls described power control unit action; Described power control unit is arranged between described power supply and the described to-be-measured cell, and its control end is connected with described main control unit, after described power control unit receives the control signal of described main control unit, connects described power supply and powers to described to-be-measured cell; Described demonstration and alarm unit are used to show testing result, and alarm is carried out in short circuit.

In described pick-up unit: described short-circuit detecting unit comprises at least three photo-couplers, described three photo-couplers are connected in series in the same way after current-limiting resistance is connected between primary power and the ground end, each photo-coupler, wherein the anode of light emitting diode and ground end are as the input end of described short-circuit detecting unit, wherein the collector of triode connects primary power through a resistance respectively, and as the output terminal of described short-circuit detecting unit; When the short-circuit detecting unit does not detect the short-circuit conditions of described detected USB interface, the output terminal of described short-circuit detecting unit is low level, when the short-circuit detecting unit detected the short-circuit conditions of described detected USB interface, at least one output terminal of described short-circuit detecting unit was a high level.

This usb bus interface detection apparatus also comprises a relay switch unit, and a test environment interface unit, described test environment interface unit have with detected USB interface respectively holds corresponding input end and output terminal, is used to connect applied environment equipment; The control end of described relay switch unit is connected with described main control unit, under the control of described main control unit, switch described short-circuit detecting unit and test environment interface unit, by turns each holds and connects one to one the input end that makes the two by described relay switch unit and USB adapter unit and detected USB interface.

Two of technical matters to be solved by this invention provides the method that a kind of usb bus interface detects.This method comprises the steps:

A, before detected USB interface powers on, is connected by each end of main control unit control short-circuit detecting unit and described detected USB interface, whether detect detected USB interface has short circuit between respectively holding;

B, when detected USB interface does not have short-circuit conditions, main control unit control switch test environmental interface unit is connected with each end of described detected USB interface, control power supply simultaneously and power on, make applied environment equipment carry out performance test to the to-be-measured cell USB interface via the test environment interface unit to to-be-measured cell; Otherwise change step C over to;

C, when detected USB interface has short-circuit conditions, give alarm.

Compared with prior art, design of hardware and software of the present invention is all very simple, and easy to operate, detection speed is fast, cost is low, before to-be-measured cell powers on, carries out the short-circuit detecting of usb bus interface earlier, has effectively guaranteed to-be-measured cell and test environment safety; This device can also be as certain applications of usb bus interface test circuitry in production test environment.In addition, the usb bus interface arrangement is easy to use, simple to operate.

[description of drawings]

Fig. 1 is a usb bus interface detection apparatus block scheme of the present invention.

Fig. 2 is a relay commutation circuit synoptic diagram of the present invention.

Fig. 3 is a short-circuit detecting circuit synoptic diagram of the present invention.

[embodiment]

With embodiment the present invention is described in further detail with reference to the accompanying drawings below.

Usb bus interface detection apparatus of the present invention, as shown in Figure 1, comprise USB adapter unit 101, relay switch unit 102, short-circuit detecting unit 103, main control unit 104, demonstration and alarm unit 105, power control unit 106, to-be-measured cell (being detected USB interface) 201, test environment interface unit 202 and power supply 203.This device has been formed jointly to usb bus interface short-circuit detecting part in unit 101~106; To-be-measured cell 201, test environment interface unit 202 and power supply 203 are the applied environment of this device.USB adapter unit 101 is a coupling arrangement, and as the USB patchcord or have the test fixture of probe, its function is that the USB interface with to-be-measured cell 201 is connected with the relay switch unit 102 of this device; Relay switch unit 102 is used for realizing each the end switching between short-circuit detecting unit 103 and test environment interface unit 202 of to-be-measured cell USB interface under the control of main control unit 104; The function that short-circuit detecting unit 103 is realized be detect each end of four signal wires of USB interface (power supply VCC, GND, differential signal anode D+, and differential signal negative terminal D-) whether have short circuit arbitrarily between any two; Demonstration and alarm unit 105 are used to show the short-circuit detecting result, show and alarm with the acousto-optic mode under the short-circuit conditions; The function of test environment interface unit 202 and USB adapter unit 101 are similar, are a coupling arrangement, are used for external applied environment equipment (as USB flash disk) is connected to this device, carry out the performance test of to-be-measured cell USB interface; Main control unit 104 has two kinds of functions, the first receives and analyzes the short-circuit detecting result of short-circuit detecting unit 103, the short-circuit detecting result is outputed to demonstration and alarm unit 105, its two be output control signal, difference pilot relay switch unit 102 and power control unit 106, according to the short-circuit detecting result, finish each the end switching between short-circuit detecting unit 103 and test environment interface unit 202 of to-be-measured cell USB interface, by turns each holds and connects one to one the input end that makes the two by described relay switch unit and USB adapter unit and detected USB interface, and 106 actions of control power control unit, realize power supply control to to-be-measured cell usb bus interface.The annexation of each unit is: the control end of relay switch unit 102 and power control unit 106 is connected with main control unit 104, the I/O of main control unit 104 exports control signal after driving, the actuating of relay on pilot relay switch unit 102 and the power control unit 106; The USB interface of to-be-measured cell 201 is received relay switch unit 102 input ends by USB adapter unit 101, and relay switch unit 102 output terminals are divided into two groups, respectively with corresponding connection of input end of short-circuit detecting unit 103 and test environment interface unit 202; Short-circuit detecting unit 103 is finished between the usb bus signal short-circuit detecting automatically and is given main control unit 104 with testing result; Main control unit 104 analyzing and testing results and outputting results to show and alarm unit 105 shows, simultaneously to the short-circuit conditions indication of reporting to the police; Power supply 203 passes through power control unit 106 under the control of main control unit 104 be to-be-measured cell 201 power supplies.

In actual applications, adopt first kind of scheme, that is: comprise USB adapter unit 101, short-circuit detecting unit 103, and show and alarm unit 105, and each input end of short-circuit detecting unit 103 is corresponding one by one with USB adapter unit 101 each output terminal, demonstration and alarm unit 105 directly receive the testing result of short-circuit detecting unit 103 outputs, just can realize detected USB interface is carried out the purpose of short-circuit test; And technical scheme shown in Figure 1, before can be implemented in to-be-measured cell and powering up, carry out the short-circuit detecting of usb bus interface earlier, when the no short circuit of test, directly control transitions to performance test to the usb bus interface, both effectively guarantee to-be-measured cell and test environment safety, and can carry out short circuit and two kinds of tests of environment to the usb bus interface again.

Relay switch unit 102 can adopt multiple circuit mode to realize, the present invention adopts the relay group to realize, is relay commutation circuit synoptic diagram of the present invention as Fig. 2, and relay switch unit 102 comprises two relays.Wherein a relay finish power supply VCC in the USB interface, the switching of GND signal between short-circuit detecting unit 103 and test environment interface unit 202, another relay is finished the switching of a pair of differential signal (D+ and D-) between short-circuit detecting unit 103 and test environment interface unit 202 of USB interface.

Also can there be multiple circuit implementation short-circuit detecting unit 103, as Fig. 3 is short-circuit detecting circuit synoptic diagram of the present invention, short-circuit detecting unit 103 is made up of optocoupler testing circuit etc., comprise three photo-couplers, three photo-couplers are connected in series in the same way after current-limiting resistance R1 is connected between primary power VCC and the ground end, light emitting diode D1 in each photo-coupler, D2, the anode of D3 and ground end are as the input end of short-circuit detecting unit, the USB-VCC that is connected the to-be-measured cell USB interface by relay switch unit 102 and USB adapter unit 101 respectively, USB-D+, and USB-D-, and USB-GND end, the collector of the triode in each photo-coupler is respectively through a resistance R 2, R3, R4 connects VCC, and as the output terminal of short-circuit detecting unit; Principle is as follows: if do not have short circuit between four signal wires of USB (VCC, GND, D+, and D-signal wire), the light emitting diode of photo-coupler 1, photo-coupler 2, photo-coupler 3 all has electric current to pass through, photo-coupler 1, photo-coupler 2, the equal conducting of photo-coupler 3 triode sides are low level with photo-coupler 1, photo-coupler 2, the corresponding respectively output signal TFLAG1 of photo-coupler 3, output signal TFLAG2, output signal TFLAG3; If USB-VCC signal wire and the short circuit of USB-D+ signal wire, USB-GND and all not short circuits of USB-D-signal wire, then photo-coupler 1 is passed through by the short circuit no current, output signal TFLAG1 is a high level, photo-coupler 2 and photo-coupler 3 normallies, output signal FLAG2 and output signal TFLAG3 are low level; If USB-D+ signal wire and the short circuit of USB-GND signal wire, USB-VCC signal wire and all not short circuits of USB-D-signal wire, then output signal TFLAG1 is a low level, output signal FLAG2 and output signal TFLAG3 are high level; In like manner can analyze other all short circuits and may have electric circuit inspection result under the situation.In a word, be high level as long as between output signal TFLAG1, output signal TFLAG2, the output signal TFLAG3 output signal is arranged, then just there is short circuit in the usb bus interface.

The usb bus interface arrangement is easy to use, simple to operate, method is as follows: 1. main control unit 104 control I/O output signal control power control units 106 disconnect to-be-measured cell 201 power supplies, and relay switch unit 102 is connected to short-circuit detecting unit 103 the corresponding interface with the switching of USB interface signal; 2. short-circuit detecting unit 103 hardware are finished the usb bus interface automatically and whether are had short circuit, and output testing result signal is to main control unit 104; 3. whether main control unit 104 exists short circuit according to the interpretation of result that short-circuit detecting unit 103 reports, and analysis result is outputed to demonstration and alarm unit 105; If there is no short-circuit conditions, main control unit 104 output I/O signal control relay switch units 102 switch to the USB interface signal with test environment interface unit 202 and are connected, and control power control unit 106 is connected to-be-measured cells 201 and powered; If there is short circuit, demonstration and alarm unit 105 can provide alarm and show that alert is handled; 4. cooperate other test environments normally to carry out other functions, the performance detection of USB interface, such as data write etc.

The present invention is not limited to above-mentioned embodiment, anyly is familiar with this operator, without departing from the spirit and scope of the present invention, all should drop within protection scope of the present invention.Main control unit 104 can adopt realizations such as PC or industrial computer; Show and alarm unit 105 can adopt display or LED light or hummer to realize finishing the test result that main control unit 104 is analyzed to show and report to the police; Power supply control 106 can adopt relay to realize that circuit is identical with relay switch unit 102.

Claims (4)

1, a kind of usb bus interface detection apparatus is characterized in that: comprise a USB adapter unit, one is used to detect the whether short-circuit detecting unit of short circuit of detected USB interface, and main control unit, power control unit, power supply and show and alarm unit; Described USB adapter unit has with detected USB interface respectively holds corresponding input end and output terminal; Described short-circuit detecting unit comprises a plurality of input ends and at least one output terminal, and its input end connects one to one by each end of described USB adapter unit and detected USB interface, and its output terminal provides the short-circuit detecting consequential signal; Described main control unit is connected with the control end of described short-circuit detecting unit output terminal, power control unit and the input end of demonstration and alarm unit respectively, described main control unit is used to receive and analyze the short-circuit detecting consequential signal of described short-circuit detecting unit output, controls described power control unit action; Described power control unit is arranged between described power supply and the described to-be-measured cell, and its control end is connected with described main control unit, after described power control unit receives the control signal of described main control unit, connects described power supply and powers to described to-be-measured cell; Described demonstration and alarm unit are used to show testing result, and alarm is carried out in short circuit.
2, device according to claim 1, it is characterized in that: described short-circuit detecting unit comprises at least three photo-couplers, described three photo-couplers are connected in series in the same way after current-limiting resistance is connected between primary power and the ground end, each photo-coupler, wherein the anode of light emitting diode and ground end are as the input end of described short-circuit detecting unit, wherein the collector of triode connects primary power through a resistance respectively, and as the output terminal of described short-circuit detecting unit; When the short-circuit detecting unit does not detect the short-circuit conditions of described detected USB interface, the output terminal of described short-circuit detecting unit is low level, when the short-circuit detecting unit detected the short-circuit conditions of described detected USB interface, at least one output terminal of described short-circuit detecting unit was a high level.
3, device according to claim 1, it is characterized in that: also comprise a relay switch unit, one test environment interface unit, described test environment interface unit have with detected USB interface respectively holds corresponding input end and output terminal, is used to connect applied environment equipment; The control end of described relay switch unit is connected with described main control unit, under the control of described main control unit, switch described short-circuit detecting unit and test environment interface unit, by turns each holds and connects one to one the input end that makes the two by described relay switch unit and USB adapter unit and detected USB interface.
4, a kind of method that the usb bus interface is detected, described method comprises the steps:
A, before detected USB interface powers on, is connected by each end of main control unit control short-circuit detecting unit and described detected USB interface, whether detect detected USB interface has short circuit between respectively holding;
B, when detected USB interface does not have short-circuit conditions, main control unit control switch test environmental interface unit is connected with each end of described detected USB interface, control power supply simultaneously and power on, make applied environment equipment carry out performance test to the to-be-measured cell USB interface via the test environment interface unit to to-be-measured cell; Otherwise change step C over to;
C, when detected USB interface has short-circuit conditions, give alarm.
CNB2007100734895A 2007-03-12 2007-03-12 A kind of usb bus interface detection apparatus and detection method thereof CN100549973C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100734895A CN100549973C (en) 2007-03-12 2007-03-12 A kind of usb bus interface detection apparatus and detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100734895A CN100549973C (en) 2007-03-12 2007-03-12 A kind of usb bus interface detection apparatus and detection method thereof

Publications (2)

Publication Number Publication Date
CN101145123A CN101145123A (en) 2008-03-19
CN100549973C true CN100549973C (en) 2009-10-14

Family

ID=39207660

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100734895A CN100549973C (en) 2007-03-12 2007-03-12 A kind of usb bus interface detection apparatus and detection method thereof

Country Status (1)

Country Link
CN (1) CN100549973C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546285B (en) * 2008-03-25 2012-01-25 鸿富锦精密工业(深圳)有限公司 Device for testing USB interface I/O board
CN101751316B (en) * 2008-12-04 2013-07-31 鸿富锦精密工业(深圳)有限公司 Universal serial bus (USB) interface module testing device
JP4900394B2 (en) * 2009-01-14 2012-03-21 ソニー株式会社 Information processing apparatus, information processing method, and program
CN101937040B (en) * 2010-08-03 2013-04-24 深圳市普联技术有限公司 Method, system and equipment for detecting interface
CN102445624A (en) * 2011-12-19 2012-05-09 四川长虹电器股份有限公司 Plug detection device
TWI483501B (en) * 2013-03-05 2015-05-01 Acer Inc Over-voltage protection device and method
CN105718011B (en) * 2014-12-02 2019-01-22 鸿富锦精密工业(武汉)有限公司 interface power supply system
US9835669B2 (en) * 2014-12-19 2017-12-05 The Boeing Company Automatic data bus wire integrity verification device
CN104502773A (en) * 2015-01-06 2015-04-08 东莞华贝电子科技有限公司 Jig and method for detecting short circuit protection function of mobile terminal
CN104793081B (en) * 2015-04-21 2017-11-24 深圳市九洲电器有限公司 USB interface detection means and method
CN106026006B (en) * 2016-06-30 2019-07-16 成绎半导体技术(上海)有限公司 A kind of USB Type-C interface female intelligent measurement and protection circuit
CN105954644B (en) * 2016-06-30 2020-02-07 成绎半导体技术(上海)有限公司 Public first intellectual detection system of USBType-C interface and protection circuit
JP2018011442A (en) * 2016-07-13 2018-01-18 ローム株式会社 Power reception device and control circuit thereof, electronic apparatus, and operation method of power supply system
WO2018152993A1 (en) * 2017-02-27 2018-08-30 华为技术有限公司 Short-circuit fault handling apparatus and method
CN108370170A (en) * 2017-02-27 2018-08-03 华为技术有限公司 Short trouble processing unit and method

Also Published As

Publication number Publication date
CN101145123A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
US10312680B2 (en) Electrical line status monitoring system
CN102054412B (en) Device for detecting different motherboard circuits by commonly using power supply and display, and switching device
CN102890235B (en) A kind of fault detection method and device
CN100529779C (en) Line open-short circuit tester
KR20110127213A (en) Cross connect patch guidance system
CN101351719B (en) Device for monitoring cell voltage
CN102975627B (en) Battery management system and electric vehicle
KR20120124372A (en) Time-domain multiplexing of power and data
CN102608456B (en) Parallel operation line failure detection device and system
CN101989246A (en) Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB)
CN101615104B (en) System for switching hard disks and switching method
CN202995027U (en) Ammeter detection system
CN101963835A (en) Electronic equipment and method for dynamically allocating USB port power
CN100592244C (en) Mainboard voltage monitoring apparatus
CN203871616U (en) USB data line
CN101860443B (en) POE load detecting method and power supply terminal equipment
CN201436591U (en) A voltage current monitoring system applied to power ageing test
US7356431B2 (en) Method for testing an input/output functional board
CN103019991A (en) Interface system, switching method, USB key and UART terminal
US9048666B2 (en) USB charging circuit
CN103473193A (en) Portable device and peripheral extension dock
CN201897627U (en) Fast-acting fuse detector
CN201829385U (en) Press switch with diagnosis function and press key switch device
CN201348654Y (en) Lithium battery protective circuit board tester
CN202362409U (en) Device for automatically testing cables of aircraft engine

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model