USB interface testing device and system

By designing a USB interface test device and automatically testing the USB interface using the comparison module and the load module, the problems of high operation and cost in the existing technology are solved, and low-cost batch testing is achieved.

CN116027099BActive Publication Date: 2025-08-22ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310165579.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2025-08-22
Estimated Expiration
2043-02-24

AI Technical Summary

Technical Problem

The existing USB interface testing method requires professional operation, and is costly and cannot achieve mass production line testing.

Method used

A USB interface test device is designed, including a comparison module, a load module, a voltage divider module, a controllable switch and a controller, and the test is realized through automatic control and signal comparison.

Benefits of technology

It realizes automated, low-cost USB interface testing, and can batch test multiple USB interfaces, improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116027099B_ABST
    Figure CN116027099B_ABST
Patent Text Reader

Abstract

The present invention discloses a testing device and system for a USB interface, which is applied to the field of testing and is provided with a comparison module, a load module, a voltage divider module, a first controllable switch, a second controllable switch, a third controllable switch, a first resistor, a first capacitor, and a controller. The controller controls the first controllable switch to be closed in advance, and the voltage of the USB interface is connected to the positive input terminal of the comparison module after passing through the voltage divider module. The first capacitor can temporarily store the voltage of the USB interface when it is not connected to a load. After a first preset time, the controller controls the first controllable switch to be disconnected and controls the second and third controllable switches to be closed. At this time, the voltage of the USB interface connected to the load module is connected to the negative input terminal of the comparison module. The controller adjusts the voltage ratio between the output terminal and the input terminal of the voltage divider module according to a preset test target to realize the USB interface test, and determines the test result according to the first signal or the second signal output by the comparison module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing, and in particular to a testing device and system for a USB interface. Background Art

[0002] Industrial control computers have anywhere from a few to dozens of USB (Universal Serial Bus) interfaces. Industrial applications also place high demands on the stability of USB interfaces. Current USB testing primarily involves performance testing for read and write speeds, SI testing for signal integrity, and voltage drop (Droop) testing for electrical characteristics. The current Droop testing method uses an oscilloscope to capture the voltage drop at the moment a USB test fixture is turned to determine whether the voltage drop complies with USB standards. This test method accurately and intuitively demonstrates whether USB voltage drop meets requirements. However, this test requires an oscilloscope and a dedicated USB test fixture, and manual evaluation of the test results is required. While conventional testing methods can ensure accurate results, they require specialized personnel, resulting in high testing costs and impracticality for mass production testing. Summary of the Invention

[0003] The purpose of the present invention is to provide a testing device and system for a USB interface to test the USB interface.

[0004] To solve the above technical problems, the present invention provides a USB interface testing device, comprising a comparison module, a load module, a voltage dividing module, a first controllable switch, a second controllable switch, a third controllable switch, a first capacitor and a controller;

[0005] The USB interface to be tested is connected to the first end of the first controllable switch, the second end of the first controllable switch is connected to the first end of the first capacitor, and the common end of the connections is connected to the input end of the voltage divider module. The second end of the first capacitor is grounded, the output end of the voltage divider module is connected to the non-inverting input end of the comparison module, the USB interface is connected to the first end of the second controllable switch, the second end of the second controllable switch is connected to the load module, and the common end of the connections is connected to the first end of the third controllable switch. The second end of the third controllable switch is connected to the inverting input end of the comparison module. The control end of the first controllable switch, the control end of the second controllable switch, the control end of the third controllable switch, and the control end of the voltage divider module are all connected to the controller.

[0006] The comparison module is used to output a first signal when the value of the non-phase input terminal is greater than the value of the inverting input terminal, and otherwise output a second signal; the load module is used to simulate the load of the USB interface; the voltage divider module is used to adjust the ratio of the voltage of the output terminal to the voltage of the input terminal according to the control of the control terminal; the controller is used to first control the first controllable switch to be closed, control the first controllable switch to be opened after a first preset time, and control the second controllable switch and the third controllable switch to be closed, and determine the test result according to the first signal or the second signal output by the comparison module.

[0007] Preferably, it further includes a first resistor;

[0008] The first end of the first resistor is connected to the second end of the first controllable switch, the second end of the first resistor is connected to the first end of the first capacitor, and the common end of the connections is connected to the input end of the voltage divider module. The first resistor is used for current limiting.

[0009] Preferably, the voltage dividing module includes a second resistor and a first adjustable resistor;

[0010] The first end of the second resistor serves as the input end of the voltage divider module, the second end of the second resistor is connected to the first end of the first adjustable resistor, and the common end of the connections serves as the output end of the voltage divider module, and the second end of the first adjustable resistor is grounded;

[0011] The control end of the first adjustable resistor serves as the control end of the voltage divider module, and the controller is also connected to the common end connected to the second end of the second resistor and the first end of the first adjustable resistor, and is used to control the resistance of the first adjustable resistor according to the voltage of the common end.

[0012] Preferably, it also includes a voltage stabilizing module;

[0013] The input end of the voltage stabilizing module is connected to the first end of the first capacitor, and the output end of the voltage stabilizing module is connected to the first end of the voltage dividing module, for outputting the voltage of the first end of the first capacitor to the voltage dividing module in a stable manner.

[0014] Preferably, the voltage stabilizing module includes a first operational amplifier;

[0015] The non-inverting input terminal of the first operational amplifier serves as the input terminal of the voltage stabilizing module, the inverting input terminal of the first operational amplifier is connected to the output terminal of the first operational amplifier, and the common terminal of the connections serves as the output terminal of the voltage stabilizing module, and the voltage of the output terminal of the first operational amplifier is equal to that of the non-inverting input terminal.

[0016] Preferably, the comparison module includes a second operational amplifier;

[0017] The non-inverting input terminal of the second operational amplifier serves as the non-inverting input terminal of the comparison module, the inverting input terminal of the second operational amplifier serves as the inverting input terminal of the comparison module, and the output terminal of the second operational amplifier serves as the output terminal of the comparison module;

[0018] The second operational amplifier is configured to output a first signal when the positive-phase input terminal is greater than the negative-phase input terminal, and output a second signal when the positive-phase input terminal is not greater than the negative-phase input terminal.

[0019] Preferably, it further includes a first display device;

[0020] The first display device is connected to the controller, and is used to display the voltage at the output end of the voltage divider module.

[0021] Preferably, it further includes a second display device;

[0022] The second display device is connected to the controller, and is configured to display the first signal or the second signal differently according to whether the signal output by the comparison module is the first signal or the second signal.

[0023] Preferably, when the number of USB interfaces to be tested, the number of the second controllable switches, and the number of the third controllable switches are all N, the load module includes N resistors, the N resistors have different resistance values, and the resistance values ​​of the resistors match the USB interfaces;

[0024] When testing the i-th USB interface, the controller is specifically configured to first control the first controllable switch to be closed, then control the first controllable switch to be opened after a first preset time, and control the second controllable switch and the third controllable switch corresponding to the i-th USB interface to be closed, and determine the test result of the USB interface according to the first signal or the second signal output by the comparison module, <i≤N。

[0025] To solve the above technical problems, the present invention further provides a USB interface testing system, comprising a USB interface to be tested and the above USB interface testing device, wherein the USB interface is connected to the USB interface testing device.

[0026] The present application provides a testing device and system for a USB interface, which is applied to the field of testing and is provided with a comparison module, a load module, a voltage divider module, a first controllable switch, a second controllable switch, a third controllable switch, a first resistor, a first capacitor and a controller. The controller controls the first controllable switch to be closed in advance, and the voltage of the USB interface is connected to the positive input terminal of the comparison module after passing through the voltage divider module. The first capacitor can temporarily store the voltage of the USB interface when it is not connected to a load. After a first preset time, the controller controls the first controllable switch to be disconnected and controls the second controllable switch and the third controllable switch to be closed. At this time, the voltage of the USB interface connected to the load module is connected to the inverting input terminal of the comparison module. The controller adjusts the voltage ratio between the output terminal and the input terminal of the voltage divider module according to the preset test target to realize the USB interface test, and determines the test result according to the first signal or the second signal output by the comparison module. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the prior art and the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0028] Figure 1 A schematic structural diagram of a USB interface testing device provided by the present invention;

[0029] Figure 2 This is a structural schematic diagram of another USB interface testing device provided by the present invention. DETAILED DESCRIPTION

[0030] The core of the present invention is to provide a USB interface testing device and system for testing the USB interface.

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0032] Considering that industrial control computers have anywhere from a few to dozens of USB ports, the industry also places high demands on USB port stability. Current USB testing primarily involves performance testing for read and write speeds, SI testing for signal integrity, and voltage drop (Droop) testing for electrical characteristics. The current Droop testing method uses an oscilloscope to capture the voltage drop at the moment a USB test fixture is connected to the device to determine whether the voltage drop complies with USB standards. This test method accurately and intuitively demonstrates whether USB voltage drop meets requirements. However, this test requires an oscilloscope and a dedicated USB test fixture, and manual evaluation of the test results is required. While conventional testing methods can ensure accurate results, they require specialized personnel, resulting in high testing costs and impracticality for mass production testing.

[0033] Figure 1 A schematic structural diagram of a USB interface testing device provided by the present invention, comprising a comparison module 1, a load module 2, a voltage divider module 3, a first controllable switch K1, a second controllable switch K2, a third controllable switch K3, a first capacitor C1, and a controller 4;

[0034] The USB interface to be tested is connected to the first end of the first controllable switch K1, the second end of the first controllable switch K1 is connected to the first end of the first capacitor C1, and the common end of the connections is connected to the input end of the voltage divider module 3. The second end of the first capacitor C1 is grounded. The output end of the voltage divider module 3 is connected to the non-inverting input end of the comparison module 1. The USB interface is connected to the first end of the second controllable switch K2, the second end of the second controllable switch K2 is connected to the load module 2, and the common end of the connections is connected to the first end of the third controllable switch K3. The second end of the third controllable switch K3 is connected to the inverting input end of the comparison module 1. The control end of the first controllable switch K1, the control end of the second controllable switch K2, the control end of the third controllable switch K3, and the control end of the voltage divider module 3 are all connected to the controller 4.

[0035] The comparison module 1 is used to output a first signal when the value of the non-phase input terminal is greater than the value of the inverting input terminal, and otherwise output a second signal; the load module 2 is used to simulate the load of the USB interface; the voltage divider module 3 is used to adjust the ratio of the voltage at the output terminal to the voltage at the input terminal according to the control of the control terminal; the controller 4 is used to first control the first controllable switch K1 to be closed, and after a first preset time, control the first controllable switch K1 to be opened, and control the second controllable switch K2 and the third controllable switch K3 to be closed, and determine the test result based on the first signal or the second signal output by the comparison module 1.

[0036] When controller 4 controls the first controllable switch K1 to close, the voltage of the USB interface under test passes through the first controllable switch K1 and reaches the input of voltage divider module 3. The ratio of the input and output of voltage divider module 3 is set as needed, and the output of voltage divider module 3 is connected to the positive input of comparison module 1. After a first preset time, controller 4 controls the first controllable switch K1 to open and controls the second and third controllable switches K2 and K3 to close. At this time, the USB interface under test is connected to load module 2, and the voltage input to the inverting input of comparison module 1 is the voltage of the USB interface under test connected to the load. If the voltage at the inverting input is greater than or equal to the positive input, comparison module 1 outputs a second signal. If the voltage at the inverting input is less than the positive input, comparison module 1 outputs a first signal.

[0037] For example, if the voltage of the USB interface to be tested without a load is 5V and the maximum allowable drop voltage is 0.5V, then the voltage at the input end of the voltage divider module 3 is 5V and the voltage at the output end is 4.5V. When the voltage of the USB interface to be tested with a load is greater than or equal to 4.5V, the comparison module 1 outputs the second signal, indicating that the test result is successful. When the voltage of the USB interface to be tested with a load is less than 4.5V, the comparison module 1 outputs the first signal, indicating that the test result is failed.

[0038] It should be noted that the capacitance of the first capacitor C1 is relatively large, and it can store the voltage of the USB interface to be tested when no load is connected for a short period of time, so as to facilitate subsequent testing.

[0039] The ratio of the input end and the output end of the voltage divider module 3 is pre-set by the controller 4. The set ratio is determined by actual needs and is not further limited in this application.

[0040] The present application provides a USB interface testing device, which is used in the field of testing and is provided with a comparison module 1, a load module 2, a voltage divider module 3, a first controllable switch K1, a second controllable switch K2, a third controllable switch K3, a first resistor R1, a first capacitor C1 and a controller 4. The controller 4 pre-controls the first controllable switch K1 to close, and the voltage of the USB interface is connected to the positive input terminal of the comparison module 1 after passing through the voltage divider module 3. The first capacitor C1 can temporarily store the voltage of the USB interface when it is not connected to the load. After a first preset time, the controller 4 controls the first controllable switch K1 to open and controls the second controllable switch K2 and the third controllable switch K3 to close. At this time, the voltage of the USB interface connected to the load module 2 is connected to the inverting input terminal of the comparison module 1. The controller 4 adjusts the voltage ratio between the output terminal and the input terminal of the voltage divider module 3 according to the preset test target to realize the USB interface test, and determines the test result according to the first signal or the second signal output by the comparison module 1.

[0041] Based on the above embodiment:

[0042] Figure 2 A schematic structural diagram of another USB interface testing device provided by the present invention;

[0043] As a preferred embodiment, it further includes a first resistor R1;

[0044] The first end of the first resistor R1 is connected to the second end of the first controllable switch K1 , the second end of the first resistor R1 is connected to the first end of the first capacitor C1 , and the common end of the connections is connected to the input end of the voltage divider module 3 . The first resistor R1 is used for current limiting.

[0045] The first resistor R1 is provided between the first controllable switch K1 and the first capacitor C1 and is used for current limiting to prevent excessive current from damaging subsequent devices.

[0046] As a preferred embodiment, the voltage dividing module 3 includes a second resistor R2 and a first adjustable resistor R3;

[0047] A first end of the second resistor R2 serves as an input end of the voltage divider module 3 , a second end of the second resistor R2 is connected to a first end of the first adjustable resistor R3 , and a common end of the connections serves as an output end of the voltage divider module 3 , and a second end of the first adjustable resistor R3 is grounded;

[0048] The control end of the first adjustable resistor R3 serves as the control end of the voltage divider module 3. The controller 4 is also connected to the common end connected to the second end of the second resistor R2 and the first end of the first adjustable resistor R3, and is used to control the resistance of the first adjustable resistor R3 according to the voltage of the common end.

[0049] Considering the simplicity of circuit connection, two resistors are still connected in series for voltage division. At the same time, in order to facilitate the adjustment of the ratio of the voltages at the input and output ends of the voltage-dividing resistors, a second resistor R2 with a fixed resistance and a first adjustable resistor R3 with an adjustable resistance are provided. The controller 4 adjusts the ratio of the voltages at the input and output ends of the voltage-dividing module 3 by adjusting the resistance of the first adjustable resistor R3. At the same time, the controller 4 does not adjust the resistance of the first adjustable resistor R3 arbitrarily. Instead, the controller 4 collects the common end connected to the second resistor R2 and the first adjustable resistor R3, that is, the output end of the voltage-dividing module 3, and adjusts the resistance of the first adjustable resistor R3 as needed to adjust the voltage at the output end of the voltage-dividing module 3.

[0050] Specifically, the controller 4 collects the voltage of the voltage divider module 3 through AD.

[0051] It should be noted that the first adjustable resistor R3 may be a resistor with adjustable resistance, such as a sliding resistor or a potentiometer.

[0052] As a preferred embodiment, it further includes a voltage stabilizing module 5;

[0053] The input end of the voltage stabilizing module 5 is connected to the first end of the first capacitor C1 , and the output end of the voltage stabilizing module 5 is connected to the first end of the voltage dividing module 3 , for outputting the voltage of the first end of the first capacitor C1 to the voltage dividing module 3 in a stable manner.

[0054] Considering that the voltage value of electricity stored by the capacitor is not stable, a voltage stabilizing module 5 is provided. The voltage stabilizing module 5 can stably output the voltage value output by the first capacitor C1 to the voltage dividing module 3 for subsequent processing by the comparison module 1.

[0055] As a preferred embodiment, the voltage stabilizing module 5 includes a first operational amplifier;

[0056] The positive input terminal of the first operational amplifier serves as the input terminal of the voltage stabilizing module 5, the negative input terminal of the first operational amplifier is connected to the output terminal of the first operational amplifier, and the common terminal of the connections serves as the output terminal of the voltage stabilizing module 5, and the voltage of the output terminal of the first operational amplifier is equal to that of the positive input terminal.

[0057] By connecting the output terminal of the first operational amplifier to the inverting input terminal, the voltage follower function of the first operational amplifier is realized, that is, the voltage values ​​of the output terminal and the output terminal of the first operational amplifier are equal.

[0058] The voltage output by the first capacitor C1 is stably output to the voltage dividing module 3 through the voltage following function realized by the first operational amplifier.

[0059] As a preferred embodiment, the comparison module 1 includes a second operational amplifier;

[0060] The non-inverting input terminal of the second operational amplifier serves as the non-inverting input terminal of the comparison module 1, the inverting input terminal of the second operational amplifier serves as the inverting input terminal of the comparison module 1, and the output terminal of the second operational amplifier serves as the output terminal of the comparison module 1;

[0061] The second operational amplifier is configured to output a first signal when the positive-phase input terminal is greater than the negative-phase input terminal, and output a second signal when the positive-phase input terminal is not greater than the negative-phase input terminal.

[0062] Considering that the main function of the comparison module 1 is to compare the voltages at the non-inverting input terminal and the inverting input terminal, a second operational amplifier is provided as the comparison module 1 .

[0063] Specifically, a high level is output when the positive input terminal is greater than the negative input terminal, and a low level is output when the positive input terminal is not greater than the negative input terminal. The controller 4 determines whether the test result is successful based on the high level or low level.

[0064] As a preferred embodiment, it further includes a first display device 6;

[0065] The first display device 6 is connected to the controller 4 , and is used to display the voltage at the output end of the voltage divider module 3 .

[0066] Considering that the tester cannot determine the voltage output by the voltage divider module 3 during the test, a first display device 6 is provided to display the voltage of the voltage divider module 3 to the user so that the user can record it.

[0067] Specifically, the first display device 6 may be a 4-digit 7-segment digital tube. For example, when the voltage is 14.75V, the 4-digit 7-segment digital tube displays 1475; when the voltage is 7.5V, the 4-digit 7-segment digital tube displays 0750.

[0068] It should be noted that the first display device 6 includes but is not limited to the above-mentioned 4-digit 7-segment digital tube, and can also be other displays. This application does not make too many restrictions here. In addition, the display mode of the 4-digit 7-segment digital tube includes but is not limited to the above-mentioned mode. This application does not make too many restrictions here.

[0069] As a preferred embodiment, it further includes a second display device 7;

[0070] The second display device 7 is connected to the controller 4 , and is used for performing different displays according to whether the signal output by the comparison module 1 is the first signal or the second signal.

[0071] In order to facilitate the user to determine the test result, a second display device 7 is provided. The second display device 7 is used to display according to the first signal and the second signal so that the tester can determine and record the test result.

[0072] Specifically, the second display device 7 may be an LED display light, which displays different colors, or displays the test result in a light-on or light-off manner.

[0073] It should be noted that the second display device 7 includes but is not limited to the above-mentioned LED display light, and can also be other display devices, and this application does not make too many restrictions here.

[0074] As a preferred embodiment, when the number of USB interfaces to be tested, the number of second controllable switches K2, and the number of third controllable switches K3 are all N, the load module 2 includes N resistors, the N resistors have different resistance values, and the resistance values ​​of the resistors match the USB interfaces;

[0075] When testing the i-th USB interface, the controller 4 is specifically used to first control the first controllable switch K1 to be closed, and then control the first controllable switch K1 to be opened after a first preset time, and control the second controllable switch K2 and the third controllable switch K3 corresponding to the i-th USB interface to be closed, and determine the test result of the USB interface according to the first signal or the second signal output by the comparison module 1. <i≤N。

[0076] Considering that in the process of testing the USB interface in the prior art, one device can only test one USB interface, the testing efficiency is too low.

[0077] The present application determines the number of second controllable switches K2, the number of third controllable switches K3, and the number of resistors in the load module 2 based on the number of USB interfaces to be tested. The resistors in the load module 2 simulate the load of the USB interface, and different resistor sizes are connected based on the different requirements of the USB interface protocol, such as USB 2.0 or USB 3.0.

[0078] When testing the i-th USB interface, the first controllable switch K1 is closed for a first preset time and then controlled to be disconnected, and the second controllable switch K2 and the third controllable switch K3 corresponding to the i-th USB interface are controlled to be closed. At this time, the i-th USB interface is connected to its corresponding load, thereby realizing subsequent testing.

[0079] Specifically, the first USB interface USB_PORT1 will be connected to USB_PORT1 LOAD, the second USB interface USB_PORT2 will be connected to USB_PORT2 LOAD, the third USB interface USB_PORT3 will be connected to USB_PORT3 LOAD, and so on.

[0080] The present application also provides a USB interface testing system, including a USB interface to be tested and the above-mentioned USB interface testing device, wherein the USB interface is connected to the USB interface testing device.

[0081] When controller 4 controls the first controllable switch K1 to close, the voltage of the USB interface under test passes through the first controllable switch K1 and reaches the input of voltage divider module 3. The ratio of the input and output of voltage divider module 3 is set as needed, and the output of voltage divider module 3 is connected to the positive input of comparison module 1. After a first preset time, controller 4 controls the first controllable switch K1 to open and controls the second and third controllable switches K2 and K3 to close. At this time, the USB interface under test is connected to load module 2, and the voltage input to the inverting input of comparison module 1 is the voltage of the USB interface under test connected to the load. If the voltage at the inverting input is greater than or equal to the positive input, comparison module 1 outputs a second signal. If the voltage at the inverting input is less than the positive input, comparison module 1 outputs a first signal.

[0082] For example, if the voltage of the USB interface to be tested without a load is 5V and the maximum allowable drop voltage is 0.5V, then the voltage at the input end of the voltage divider module 3 is 5V and the voltage at the output end is 4.5V. When the voltage of the USB interface to be tested with a load is greater than or equal to 4.5V, the comparison module 1 outputs the second signal, indicating that the test result is successful. When the voltage of the USB interface to be tested with a load is less than 4.5V, the comparison module 1 outputs the first signal, indicating that the test result is failed.

[0083] It should be noted that the capacitance of the first capacitor C1 is relatively large, and it can store the voltage of the USB interface to be tested when no load is connected for a short period of time, so as to facilitate subsequent testing.

[0084] The ratio of the input end and the output end of the voltage divider module 3 is pre-set by the controller 4. The set ratio is determined by actual needs and is not further limited in this application.

[0085] The present application provides a USB interface testing system, which is applied to the testing field and is provided with a comparison module 1, a load module 2, a voltage divider module 3, a first controllable switch K1, a second controllable switch K2, a third controllable switch K3, a first resistor R1, a first capacitor C1 and a controller 4. The controller 4 controls the first controllable switch K1 to be closed in advance, and the voltage of the USB interface is connected to the positive input terminal of the comparison module 1 after passing through the voltage divider module 3. The first capacitor C1 can temporarily store the voltage of the USB interface when it is not connected to the load. After a first preset time, the controller 4 controls the first controllable switch K1 to be disconnected and controls the second controllable switch K2 and the third controllable switch K3 to be closed. At this time, the voltage of the USB interface connected to the load module 2 is connected to the inverting input terminal of the comparison module 1. The controller 4 adjusts the voltage ratio between the output terminal and the input terminal of the voltage divider module 3 according to the preset test target to realize the USB interface test, and determines the test result according to the first signal or the second signal output by the comparison module 1.

[0086] For an introduction to the USB interface testing system provided in this application, please refer to the above embodiments and will not be repeated here.

[0087] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0088] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0089] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A USB interface testing device, characterized in that: It includes a comparison module, a load module, a voltage dividing module, a first controllable switch, a second controllable switch, a third controllable switch, a first capacitor and a controller; The USB interface to be tested is connected to the first end of the first controllable switch, the second end of the first controllable switch is connected to the first end of the first capacitor, and the common end of the connections is connected to the input end of the voltage divider module. The second end of the first capacitor is grounded, the output end of the voltage divider module is connected to the non-inverting input end of the comparison module, the USB interface is connected to the first end of the second controllable switch, the second end of the second controllable switch is connected to the load module, and the common end of the connections is connected to the first end of the third controllable switch. The second end of the third controllable switch is connected to the inverting input end of the comparison module. The control end of the first controllable switch, the control end of the second controllable switch, the control end of the third controllable switch, and the control end of the voltage divider module are all connected to the controller. The comparison module is used to output a first signal when the value of the non-phase input terminal is greater than the value of the inverting input terminal, and otherwise output a second signal; the load module is used to simulate the load of the USB interface; the voltage divider module is used to adjust the ratio of the voltage of the output terminal to the voltage of the input terminal according to the control of the control terminal; the controller is used to first control the first controllable switch to be closed, control the first controllable switch to be opened after a first preset time, and control the second controllable switch and the third controllable switch to be closed, and determine the test result according to the first signal or the second signal output by the comparison module.

2. The USB interface testing device according to claim 1, wherein: Also comprising a first resistor; The first end of the first resistor is connected to the second end of the first controllable switch, the second end of the first resistor is connected to the first end of the first capacitor, and the common end of the connections is connected to the input end of the voltage divider module. The first resistor is used for current limiting.

3. The USB interface testing device according to claim 1, wherein: The voltage dividing module includes a second resistor and a first adjustable resistor; The first end of the second resistor serves as the input end of the voltage divider module, the second end of the second resistor is connected to the first end of the first adjustable resistor, and the common end of the connections serves as the output end of the voltage divider module, and the second end of the first adjustable resistor is grounded; The control end of the first adjustable resistor serves as the control end of the voltage divider module, and the controller is also connected to the common end connected to the second end of the second resistor and the first end of the first adjustable resistor, and is used to control the resistance of the first adjustable resistor according to the voltage of the common end.

4. The USB interface testing device according to claim 1, wherein: Also includes voltage regulator module; The input end of the voltage stabilizing module is connected to the first end of the first capacitor, and the output end of the voltage stabilizing module is connected to the first end of the voltage dividing module, for outputting the voltage of the first end of the first capacitor to the voltage dividing module in a stable manner.

5. The USB interface testing device according to claim 4, wherein: The voltage stabilization module includes a first operational amplifier; The non-inverting input terminal of the first operational amplifier serves as the input terminal of the voltage stabilizing module, the inverting input terminal of the first operational amplifier is connected to the output terminal of the first operational amplifier, and the common terminal of the connections serves as the output terminal of the voltage stabilizing module, and the voltage of the output terminal of the first operational amplifier is equal to that of the non-inverting input terminal.

6. The USB interface testing device according to claim 1, wherein: The comparison module includes a second operational amplifier; The non-inverting input terminal of the second operational amplifier serves as the non-inverting input terminal of the comparison module, the inverting input terminal of the second operational amplifier serves as the inverting input terminal of the comparison module, and the output terminal of the second operational amplifier serves as the output terminal of the comparison module; The second operational amplifier is configured to output a first signal when the positive-phase input terminal is greater than the negative-phase input terminal, and output a second signal when the positive-phase input terminal is not greater than the negative-phase input terminal.

7. The USB interface testing device according to claim 1, wherein: Also included is a first display device; The first display device is connected to the controller, and is used to display the voltage at the output end of the voltage divider module.

8. The USB interface testing device according to claim 1, wherein: Also comprising a second display device; The second display device is connected to the controller, and is configured to display the first signal or the second signal differently according to whether the signal output by the comparison module is the first signal or the second signal.

9. The USB interface testing device according to any one of claims 1 to 8, wherein: When the number of USB interfaces to be tested, the number of the second controllable switches, and the number of the third controllable switches are all N, the load module includes N resistors, the N resistors have different resistance values, and the resistance values ​​of the resistors match the USB interfaces; When testing the i-th USB interface, the controller is specifically configured to first control the first controllable switch to be closed, then control the first controllable switch to be opened after a first preset time, and control the second controllable switch and the third controllable switch corresponding to the i-th USB interface to be closed, and determine the test result of the USB interface according to the first signal or the second signal output by the comparison module, <i≤N。 10. A USB interface testing system, characterized in that: The invention comprises a USB interface to be tested and a USB interface testing device according to any one of claims 1 to 9, wherein the USB interface is connected to the USB interface testing device.

Citation Information

Patent Citations

  • Connecting jig

    CN103185815A

  • Testing circuit for a data interface

    US20070118322A1