CN203433062U - A USB interface automatic testing apparatus - Google Patents
A USB interface automatic testing apparatus Download PDFInfo
- Publication number
- CN203433062U CN203433062U CN201320549281.7U CN201320549281U CN203433062U CN 203433062 U CN203433062 U CN 203433062U CN 201320549281 U CN201320549281 U CN 201320549281U CN 203433062 U CN203433062 U CN 203433062U
- Authority
- CN
- China
- Prior art keywords
- usb interface
- usb
- tested
- processing unit
- central processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
The utility model provides a USB interface automatic testing apparatus. A tested USB device comprises a first central processor, a tested USB interface connected with the first central processor, and a first universal asynchronous receiver transmitter (UART). A master testing circuit board machine comprises a second central processor, a second UART, a first USB interface, and a power supply module, wherein the second UART, the first USB interface, and the power supply module are connected with the second central processor. The second UART is connected with the first UART. A slave testing circuit board comprises a second USB interface and a voltage generating module connected with the second USB interface. The second USB interface is connected with the first USB interface. The voltage generating module is connected with the VBUS power line of the tested USB interface. The USB interface automatic testing apparatus has characteristics of replacing a PC, decreasing the cost of testing equipment, achieving automatic test of the USB interface, achieving strong practicality, enabling easy manipulation, decreasing manpower and testing time, reducing misjudgment rate of manual judgment, and increasing USB interface testing efficiency and success rate.
Description
Technical field
The utility model relates to a kind of USB interface automatic testing equipment.
Background technology
USB interface is used for the interface of storage/transmission/charging as digital electronic device widely.In the USB interface device fabrication Zhong, of flood tide digital electronic device manufacturer, require to detect quickly and accurately each function of test USB interface.And classic method test USB interface storage/transmission need to be set up the test that usb protocol completes D+/D-with PC communication, the test duration is longer, and the test of charge function is connected to test with PC and does not guarantee stability.Specifically, the circuit of USB interface is generally 4 lines, comprises VBUS power lead, GND power lead, D+(DP) signal wire and D-(DM) signal wire, in addition, micro A USB and mini USB can many ID Pin signal wires.
Whether the signal of these several lines of the main test of USB interface test is working properly, comprising:
1, VBUS test, is connected with USB Cable line tested USB interface with PC, whether the test procedure of tested USB interface mainboard detects VBUS state the voltage starting of 5v, and judges that whether charge function is normal;
2, D+/D-test, is connected with USB Cable line tested USB interface with PC, set up USB communications protocol, by passing mutually the success or not of data between USB and PC, judges that whether USB interface D+/D-is normal;
3, ID Pin test, is connected with USB device with USB OTG cable, and whether the state variation that detects ID pin is normal.
Above-mentioned existing method of testing has following shortcoming:
1, test is with PC, to be connected test by USB cable with D+/D-in above-mentioned VBUS test, due to PC interface VBUS power supply potentially unstable, can cause the test result judgement of program to have deviation;
2, in production, the tested USB interface equipment of flood tide is frequently connected with PC, then sets up USB communication, passes mutually data, and this process time is relatively long, affects testing efficiency;
3, the signal wire of test I D, need USB equipment under test to test under host and device kinds of patterns, because the USB interface of conventional PC can only be held as HOST, and tested USB device can only be as device, the host pattern of the ID Pin of equipment under test USB, the USB cable that need to change ID pin when test carries out other host test, switches manually cost manpower and time;
4, owing to inserting the USB Cable line difference of tested USB interface in VBUS, D+/D-test processs different from ID Pin, can not once test, the test result of the whole USB interface of automatic decision, need artificial judgment to confirm whether the every test of USB is passed through, there will be to leak and see or see less, cause producing defective products.
Utility model content
The purpose of this utility model is to provide a kind of USB interface automatic testing equipment, can substitute PC, reduce testing apparatus cost, realize the automatic test of USB interface, practical, simple to operate, reduce manpower and test duration, the disconnected rate of erroneous judgement that reduces artificial judgment, improves USB interface detection efficiency and success ratio.
For addressing the above problem, the utility model provides a kind of USB interface automatic testing equipment, comprises tested USB device, main measurement circuit plate machine and auxiliary measurement circuit plate, wherein,
Described tested USB device comprises the first central processing unit, the tested USB interface and the first universal asynchronous receiving-transmitting transmitter that are connected with described the first central processing unit;
Main measurement circuit plate machine comprises the second central processing unit, the second universal asynchronous receiving-transmitting transmitter, the first USB interface and the supply module that are connected with described the second central processing unit respectively, and described the second universal asynchronous receiving-transmitting transmitter is connected with described the first universal asynchronous receiving-transmitting transmitter;
Auxiliary measurement circuit plate comprise secondary USB interface, with the voltage generating module that described secondary USB interface is connected, described secondary USB interface is connected with the first USB interface, described voltage generating module is connected with the VBUS power lead of described tested USB interface.
Further, in said apparatus, described voltage generating module is also connected with the ID Pin signal wire of described tested USB interface.
Further, in said apparatus, described tested USB device also comprises a drive current module being connected with described the first central processing unit.
Further, in said apparatus, described drive current module is also connected with the VBUS power lead of described tested USB interface.
Further, in said apparatus, described tested USB device also comprises a USB controller being connected with described the first central processing unit.
Further, in said apparatus, described USB controller is also connected with the D+/D-signal wire of described tested USB interface.
Compared with prior art, the utility model comprises tested USB device, main measurement circuit plate machine and auxiliary measurement circuit plate, wherein, described tested USB device comprises the first central processing unit, the tested USB interface and the first universal asynchronous receiving-transmitting transmitter that are connected with described the first central processing unit; Main measurement circuit plate machine comprises the second central processing unit, the second universal asynchronous receiving-transmitting transmitter, the first USB interface and the supply module that are connected with described the second central processing unit respectively, and described the second universal asynchronous receiving-transmitting transmitter is connected with described the first universal asynchronous receiving-transmitting transmitter; Auxiliary measurement circuit plate comprises secondary USB interface, the voltage generating module being connected with described secondary USB interface, described secondary USB interface is connected with the first USB interface, described voltage generating module is connected with the VBUS power lead of described tested USB interface, can substitute PC, reduces testing apparatus cost, realize the automatic test of USB interface, practical, simple to operate, reduce manpower and test duration, the disconnected rate of erroneous judgement that reduces artificial judgment, improves USB interface detection efficiency and success ratio.
Accompanying drawing explanation
Fig. 1 is the structural drawing of the USB interface automatic testing equipment of the utility model one embodiment.
In figure,
The tested USB device of 1-, 11-the first central processing unit, the tested USB interface of 12-, 121-VBUS power lead, 122-ID Pin signal wire, 123-D+/D-signal wire, 13-the first universal asynchronous receiving-transmitting transmitter, 14-drive current module, 15-USB controller;
The main measurement circuit plate of 2-machine, 21-the second central processing unit, 22-the second universal asynchronous receiving-transmitting transmitter, 23-the first USB interface, 24-supply module;
The auxiliary measurement circuit plate of 3-, 31-secondary USB interface, 32-voltage generating module.
Embodiment
For above-mentioned purpose of the present utility model, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the utility model is described in further detail.
As shown in Figure 1, the utility model provides a kind of USB interface automatic testing equipment, comprises tested USB device 1, main measurement circuit plate machine 2 and auxiliary measurement circuit plate 3.
Described tested USB device (UUT) 1 comprises the first central processing unit 11, the tested usb 12 and the first universal asynchronous receiving-transmitting transmitter 13 that are connected with described the first central processing unit 11.
Described main measurement circuit plate machine (MTB) 2 comprises the second central processing unit 21, the second universal asynchronous receiving-transmitting transmitter 22, the first USB interface 23 and the supply module 24 that are connected with described the second central processing unit 21 respectively, described the second universal asynchronous receiving-transmitting transmitter (Uart) 22 is connected with described the first universal asynchronous receiving-transmitting transmitter (Uart) 13, and described the second universal asynchronous receiving-transmitting transmitter (Uart) 22 and described the first universal asynchronous receiving-transmitting transmitter (Uart) 13 are for accepting to send RS232 order.
Described auxiliary measurement circuit plate (TB) 3 comprises secondary USB interface 31 and the voltage generating module 32 being connected with described secondary USB interface 31, described secondary USB interface 31 is connected with the first USB interface 23, and described voltage generating module 32 is connected with the VBUS power lead 121 of described tested usb 12.Concrete, whether the VBUS power lead that needs to test USB interface here starts in 5v left and right under charge function, do not having under charged state, whether the state AVV that the first central processing unit 11 of UUT detects VBUS power lead 121 by program is 0, AVV=0 represents that VBUS power lead 121 do not input 5V voltage, if 1, test finishes, and VBUS power lead 121 test results of tested usb 12 are unsuccessfully (Fail).If 0, the first central processing unit 11 programs of UUT are sent out rs 232 serial interface signal CMD1 to MTB, MTB receives CMD1, by controlling the IOVBUS_SEL of the voltage generating module 32 of TB, export high, make TB to the voltage of the VBUS power lead 121 output 5v of tested usb 12, whether the first central processing unit 11 of UUT detects AVV again by program is that 1(AVV=1 represents that VBUS has input 5V voltage), if 1, the test result of the VBUS power lead 121 of tested usb 12 is successfully (PASS).If 0, the test result of the VBUS power lead 121 of tested usb 12 is unsuccessfully (Fail).
Detailed, in USB Bus agreement in USB interface each line status as following table:
Preferably, described voltage generating module 32 is also connected with the ID Pin signal wire 122 of described tested usb 12.Concrete, here the state variation that needs test I D Pin signal wire 122, whether the state that the first central processing unit 11 of UUT detects ID Pin signal wire 122 by program is 1, USB ID=0 represents that USB OTG interface does not have equipment to insert, if 0, test finishes, and the test result of the ID Pin signal wire 122 of tested usb 12 is unsuccessfully (Fail).If 1, the first central processing unit 11 of UUT is sent out rs 232 serial interface signal CMD1 to MTB by program, MTB receives CMD1, by controlling the TB IO OTG_ID_EN of voltage generating module 32, export high, make USB ID is whether the first central processing unit 11 of 0, UUT USB ID to be detected be again that 0, USB ID=0 represents that USB OTG interface has equipment to insert, if 0, the test result of the ID Pin signal wire 122 of tested usb 12 is successfully (PASS).The test result of the ID Pin signal wire 122 of 1 tested usb 12 is unsuccessfully (Fail) if, and test finishes.
Preferably, described tested USB device 1 also comprises a drive current module 14 being connected with described the first central processing unit 11, and described drive current module 14 is also connected with the VBUS power lead 121 of described tested usb 12.Concrete, when tested usb 12 is during as main equipment, the OTG(on the go of tested usb 1 2) certain electric current must be provided, for outside, establish and make sure, according to OTG protocol specification, this electric current is 500mA, voltage is at 4.75~5.25v.During test, UUT starts drive current module 14 generation 5V electric currents to the VBUS power lead 121 of tested usb 12, then UUT hangs up load to this electric current, the first central processing unit 11 detects current value again, if electric current is greater than 500mA, and voltage is greater than 4.80V, the test result of the OTG drive current of tested usb 12 is successfully (PASS), otherwise this test result is unsuccessfully (Fail), and test finishes.
Preferably, described tested USB device 1 also comprises a USB controller 15 being connected with described the first central processing unit 11, and described USB controller 15 is also connected with the D+/D-signal wire 123 of described tested usb 12.Concrete, the J of D+/D-signal wire 123 in upper table, K, SE0, the state variation of SE1.Whether the mode bit of the first central processing unit 11 detecting USB controllers 15 is SE0, if not SE0, D+/D-signal wire 123 test crashs (Fail) of tested USB device 1, test finishes, if SE0, the first central processing unit 11 is drawn high D+, D-drags down, whether the mode bit of detecting again USB controller 15 is J state, if not J state, D+/D-signal wire 123 test crashs (Fail), test finishes, if J state, the first central processing unit 11 drags down D+, D-draws high, whether the mode bit of detecting USB controller 15 is K states, if not K state, D+/D-signal wire 123 test crashs (Fail), test finishes, if K state, UUT the first central processing unit 11 drags down D+, D-drags down, whether the mode bit of detecting USB controller 15 is to return to SE0 state. if SE0 state, D+/D-signal wire 123 is tested successfully (PASS).
In sum, this is implemented novel USB interface automatic testing equipment tool and has the following advantages:
1. substitute PC, reduce testing apparatus cost, without tested USB interface being connected with PC with USB Cable line, without judging that by passing mutually the success or not of data between USB and PC whether USB interface is normal;
2. realize the automatic test of USB interface, improve USB interface detection efficiency and success ratio;
3. reduce costs, raise the efficiency, reduce manpower and test duration;
4. automatic decision test result, reduces the disconnected rate of erroneous judgement of artificial judgment.
Obviously, those skilled in the art can carry out various changes and modification and not depart from spirit and scope of the present utility model utility model.Like this, if within of the present utility model these are revised and modification belongs to the scope of the utility model claim and equivalent technologies thereof, the utility model is also intended to comprise these change and modification.
Claims (6)
1. a USB interface automatic testing equipment, is characterized in that, comprises tested USB device, main measurement circuit plate machine and auxiliary measurement circuit plate, wherein,
Described tested USB device comprises the first central processing unit, the tested USB interface and the first universal asynchronous receiving-transmitting transmitter that are connected with described the first central processing unit;
Described main measurement circuit plate machine comprises the second central processing unit, the second universal asynchronous receiving-transmitting transmitter, the first USB interface and the supply module that are connected with described the second central processing unit respectively, and described the second universal asynchronous receiving-transmitting transmitter is connected with described the first universal asynchronous receiving-transmitting transmitter;
Described auxiliary measurement circuit plate comprise secondary USB interface, with the voltage generating module that described secondary USB interface is connected, described secondary USB interface is connected with the first USB interface, described voltage generating module is connected with the VBUS power lead of described tested USB interface.
2. USB interface automatic testing equipment as claimed in claim 1, is characterized in that, described voltage generating module is also connected with the ID Pin signal wire of described tested USB interface.
3. USB interface automatic testing equipment as claimed in claim 1, is characterized in that, described tested USB device also comprises a drive current module being connected with described the first central processing unit.
4. USB interface automatic testing equipment as claimed in claim 3, is characterized in that, described drive current module is also connected with the VBUS power lead of described tested USB interface.
5. USB interface automatic testing equipment as claimed in claim 1, is characterized in that, described tested USB device also comprises a USB controller being connected with described the first central processing unit.
6. USB interface automatic testing equipment as claimed in claim 5, is characterized in that, described USB controller is also connected with the D+/D-signal wire of described tested USB interface.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201320549281.7U CN203433062U (en) | 2013-09-05 | 2013-09-05 | A USB interface automatic testing apparatus |
TW102223571U TWM483428U (en) | 2013-09-05 | 2013-12-13 | USB interface automatic test apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201320549281.7U CN203433062U (en) | 2013-09-05 | 2013-09-05 | A USB interface automatic testing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN203433062U true CN203433062U (en) | 2014-02-12 |
Family
ID=50062090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201320549281.7U Expired - Fee Related CN203433062U (en) | 2013-09-05 | 2013-09-05 | A USB interface automatic testing apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN203433062U (en) |
TW (1) | TWM483428U (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105182154A (en) * | 2015-08-25 | 2015-12-23 | 广东欧珀移动通信有限公司 | Universal serial bus interface detection circuit and method |
CN105891736A (en) * | 2016-05-25 | 2016-08-24 | 东莞博力威新能源有限公司 | QC2.0 fast charge detection circuit and detection method |
CN113820583A (en) * | 2020-06-19 | 2021-12-21 | 北京君正集成电路股份有限公司 | USB OTG test method |
-
2013
- 2013-09-05 CN CN201320549281.7U patent/CN203433062U/en not_active Expired - Fee Related
- 2013-12-13 TW TW102223571U patent/TWM483428U/en not_active IP Right Cessation
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105182154A (en) * | 2015-08-25 | 2015-12-23 | 广东欧珀移动通信有限公司 | Universal serial bus interface detection circuit and method |
CN105182154B (en) * | 2015-08-25 | 2017-11-17 | 广东欧珀移动通信有限公司 | A kind of USB detection circuit and method |
CN105891736A (en) * | 2016-05-25 | 2016-08-24 | 东莞博力威新能源有限公司 | QC2.0 fast charge detection circuit and detection method |
CN113820583A (en) * | 2020-06-19 | 2021-12-21 | 北京君正集成电路股份有限公司 | USB OTG test method |
CN113820583B (en) * | 2020-06-19 | 2024-02-27 | 北京君正集成电路股份有限公司 | USB OTG test method |
Also Published As
Publication number | Publication date |
---|---|
TWM483428U (en) | 2014-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101674366B (en) | Mobile terminal USB, or charger inserting identification method and identification device thereof | |
CN102393837B (en) | USB charger recognition device and method | |
CN201550170U (en) | USB/charger insert recognition device of mobile terminal | |
TWI398759B (en) | Power supply device, portable electronic apparatus and related method for determining types of a power supply device | |
CN104103868B (en) | Charging method and system for charger of mobile terminal | |
CN102231543B (en) | System capable of identifying charging capability of charger and charging method thereof | |
CN103427460B (en) | A kind of power supply terminal, charge control method and device | |
CN103208661A (en) | Intelligent terminal and method for carrying out large-current charging | |
KR20130035971A (en) | Charger detection with proprietary charger support | |
CN203433062U (en) | A USB interface automatic testing apparatus | |
CN105071484B (en) | A kind of charging method and device of the terminal with data exchanging function | |
CN103024195A (en) | Smart mobile terminal and implementation method of charging of smart mobile terminal | |
CN204627281U (en) | A kind of intelligent safe and intelligent safe system | |
CN109298266A (en) | Test macro, test method, test device and storage medium | |
CN101989751B (en) | Power supply device, portable electronic device and related judgment method | |
CN104569673B (en) | Test circuit, method and apparatus | |
CN105891736A (en) | QC2.0 fast charge detection circuit and detection method | |
CN202815143U (en) | Short/open-circuit testing circuit for flexible circuit board touch screen IC channel | |
CN105048018A (en) | Charging method and device for terminal having on-the-go (OTG) function | |
CN204790511U (en) | A equipment is write in into to information that is used for digital electron detonator production line | |
CN105445604A (en) | USB 3.1 C type cable automatic test method | |
CN204496490U (en) | The address card that a kind of upper pull-up voltage is adjustable | |
CN204256725U (en) | A kind of pick-up unit | |
CN106774769A (en) | The changing method and device of a kind of terminal work mode, handheld terminal | |
CN102879705B (en) | Flexible circuit board touch screen IC passage is short/out of circuit test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140212 Termination date: 20180905 |
|
CF01 | Termination of patent right due to non-payment of annual fee |