A detection device of USB3.0 interface and a detection method thereof
By combining the adjustability of capacitive and resistive loads with a voltage detection module, the problems of high cost and low efficiency in USB 3.0 interface testing are solved, achieving efficient and accurate testing results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR BUSINESS MACHINE CO LTD
- Filing Date
- 2022-12-20
- Publication Date
- 2026-05-29
AI Technical Summary
Existing technologies for testing USB 3.0 interfaces are costly and inefficient, and the results of plug-in/plug-out tests are inaccurate and fail to cover the entire testing range.
It employs capacitive loads with adjustable capacitance and resistive loads, combined with a voltage detection module, to adjust the output value according to the USB 3.0 interface specification standard, and to determine the plug-in/plug-out and static load voltage test.
It reduces testing costs, improves testing efficiency and accuracy, and covers the entire testing range of USB 3.0 interfaces.
Smart Images

Figure CN116028287B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of testing technology, and in particular to a testing device and method for a USB 3.0 interface. Background Technology
[0002] Because the USB (Universal Serial Bus) 3.0 interface can support a large number of peripheral devices, it has become the standard interface for many hardware devices. The USB 3.0 interface specification clearly defines its electrical characteristics. If a hardware device's USB 3.0 interface exceeds the design specifications of the standard, it will cause abnormal operation of the hardware device. Therefore, compliant testing of hardware device USB 3.0 interfaces is particularly important.
[0003] In existing technologies, standard testing of USB 3.0 interfaces on hardware devices typically requires both plug-in / plug-out testing and static load voltage testing. However, static load voltage testing of USB 3.0 interfaces requires equipment such as oscilloscopes and electronic loads, resulting in high testing costs. Plug-in / plug-out testing, on the other hand, requires additional USB devices, leading to very low testing efficiency. Furthermore, since voltage drop is crucial for plug-in / plug-out testing of USB 3.0 interfaces, using a single type of USB device cannot cover the entire testing range, resulting in inaccurate and unreliable test results. Currently, there is no effective solution to these problems. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a testing device and method for a USB 3.0 interface, so as to reduce the investment cost in performing standardization testing on USB 3.0 interfaces of hardware devices, while also improving the testing efficiency and accuracy. The specific solution is as follows:
[0005] A USB 3.0 interface testing device includes: a capacitive load with adjustable capacitance, a resistive load with adjustable resistance, and a voltage detection module for setting the output values of the capacitive load and the resistive load according to the USB 3.0 interface specification standard, and for determining whether a target electronic device can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test based on its own output voltage; the target electronic device is an electronic device with a USB 3.0 interface.
[0006] The positive input terminal of the voltage detection module is connected to the positive terminal of the capacitive load and the positive terminal of the resistive load, respectively, and the negative input terminal of the voltage detection module is connected to the negative terminal of the capacitive load and the negative terminal of the resistive load, respectively.
[0007] Preferred options also include:
[0008] A button battery connected to the voltage detection module for supplying power to the voltage detection module.
[0009] Preferred options also include:
[0010] A first cable and a second cable are respectively connected to the positive and negative terminals of the capacitive load; wherein the first cable and the second cable are of the same length.
[0011] Preferred options also include:
[0012] A display screen connected to the voltage detection module is used to display the output voltage of the voltage detection module.
[0013] Preferably, the capacitive load is specifically m capacitors connected in parallel, and the resistive load is specifically n resistors connected in parallel; where m > 1 and n > 1.
[0014] Preferred options also include:
[0015] A DIP switch connected to the voltage detection module, used to adjust the output capacitance of the capacitive load and the output resistance of the resistive load according to the control signal output by the voltage detection module.
[0016] Accordingly, the present invention also discloses a method for detecting a USB 3.0 interface, applied to the voltage detection module in the aforementioned USB 3.0 interface detection device, comprising:
[0017] The output values of the capacitive load and the resistive load are set according to the specifications of the USB 3.0 interface, and the target electronic device is judged to pass the USB 3.0 interface plug-in test and static load voltage test based on its own output voltage.
[0018] Preferably, the process of setting the output values of the capacitive load and the resistive load according to the USB 3.0 interface specification standard, and determining whether the target electronic device can pass the USB 3.0 interface plug-in / unplug test and static load voltage test based on its own output voltage, includes:
[0019] According to the aforementioned standard, the output capacitance value of the capacitive load is set to a first preset value, and the output resistance value of the resistive load is set to a second preset value;
[0020] When the target electronic device performs a plugging / unplugging operation, it is determined whether the output voltage of the voltage detection module is within the preset voltage threshold range;
[0021] If the output voltage of the voltage detection module is within the preset voltage threshold range, then the target electronic device is determined to have passed the USB 3.0 interface plug-in / plug-out test.
[0022] If the output voltage of the voltage detection module is not within the preset voltage threshold range, the target electronic device is determined to have failed the USB 3.0 interface plug-in / plug-out test.
[0023] According to the aforementioned standard, the output capacitance value of the capacitive load is set to the first preset value, and the output resistance value of the resistive load is set to the third preset value; wherein, the current power supply voltage of the voltage detection module is the preset power supply voltage;
[0024] When it is necessary to detect the static load voltage of the target electronic device, it is determined whether the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range.
[0025] If the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range, then the target electronic device is determined to have passed the static load voltage test of the USB 3.0 interface.
[0026] If the output voltage of the voltage detection module is less than the lower limit of the preset voltage threshold range, the target electronic device is determined to have failed the static load voltage test of the USB 3.0 interface.
[0027] Preferably, after determining that the target electronic device has passed the USB 3.0 interface plug-in / unplug test, the process further includes:
[0028] The voltage detection module is reset, and the output capacitance value of the capacitive load at the current moment is accumulated according to the preset capacitance value.
[0029] When the target electronic device performs a plugging and unplugging operation, it is determined whether the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range;
[0030] If the output voltage of the voltage detection module does not exceed the upper limit of the preset voltage threshold range, then the steps of resetting the voltage detection module and accumulating the output capacitance value of the capacitive load at the current moment according to the preset capacitance value will continue to be executed.
[0031] When the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range, the output capacitance value of the capacitive load at the current moment is obtained to obtain the target capacitance value, and the difference between the target capacitance value and the first preset value is determined as the capacitance output margin of the target electronic device.
[0032] Preferably, after determining that the target electronic device has passed the static load voltage test of the USB 3.0 interface, the process further includes:
[0033] The output resistance of the resistive load at the current moment is accumulated according to the preset resistance value, and the output voltage of the voltage detection module at the current moment is detected;
[0034] If the output voltage of the voltage detection module at the current moment is greater than the lower limit of the preset voltage threshold range, then the steps of accumulating the output resistance of the resistive load at the current moment according to the preset resistance value and detecting the output voltage of the voltage detection module at the current moment continue to be executed until the output voltage of the voltage detection module is equal to the lower limit of the preset voltage threshold range.
[0035] Obtain the output resistance value of the resistive load at the current moment to obtain the target resistance value, and obtain the current value of the resistive load at the current moment based on the target resistance value to obtain the target current value;
[0036] The difference between the target current value and the preset current value is determined as the current output margin of the target electronic device.
[0037] As can be seen, the testing device provided by this invention includes an adjustable capacitive load, an adjustable resistive load, and a voltage detection module. The voltage detection module can set the output values of the capacitive and resistive loads according to the USB 3.0 interface specification, and determine whether an electronic device with a USB 3.0 interface can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test based on its own output voltage. Compared to existing technologies, this testing device can perform both plug-in / plug-out tests and static load voltage tests on the target electronic device. Furthermore, it eliminates the need for expensive equipment such as oscilloscopes and electronic loads. Therefore, this device not only improves the testing efficiency for standardizing USB 3.0 interfaces of hardware devices but also reduces the cost of such testing. Meanwhile, since the output values of both capacitive and resistive loads are adjustable, this device can cover the entire testing range of USB 3.0 interfaces when performing conformal testing on hardware devices. This significantly improves the accuracy of the test results when performing conformal testing on USB 3.0 interfaces. Accordingly, the USB 3.0 interface testing method provided by this invention also has the above-mentioned beneficial effects. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0039] Figure 1 This is a structural diagram of a USB 3.0 interface detection device provided in an embodiment of the present invention;
[0040] Figure 2 This is a structural diagram of another USB 3.0 interface detection device provided in an embodiment of the present invention;
[0041] Figure 3 This is a flowchart of a USB 3.0 interface detection method provided in an embodiment of the present invention. Detailed Implementation
[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] Please see Figure 1 , Figure 1 This is a structural diagram of a USB 3.0 interface testing device provided in an embodiment of the present invention. The device includes: a capacitive load 11 with adjustable capacitance, a resistive load 12 with adjustable resistance, and a voltage detection module 13 for setting the output values of the capacitive load 11 and the resistive load 12 according to the USB 3.0 interface specification, and for determining whether the target electronic device can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test based on its own output voltage; the target electronic device is an electronic device with a USB 3.0 interface.
[0044] The positive input terminal of the voltage detection module 13 is connected to the positive terminal of the capacitive load 11 and the positive terminal of the resistive load 12, respectively, and the negative input terminal of the voltage detection module 13 is connected to the negative terminal of the capacitive load 11 and the negative terminal of the resistive load 12, respectively.
[0045] This embodiment provides a USB 3.0 interface detection device, which can be used to detect whether the USB 3.0 interface of a target electronic device conforms to the USB 3.0 interface specification standard. The target electronic device refers to an electronic device equipped with a USB 3.0 interface.
[0046] The testing device includes a capacitive load 11 with adjustable capacitance, a resistive load 12 with adjustable resistance, and a voltage detection module 13. The voltage detection module 13 can set the output values of the capacitive load 11 and the resistive load 12 according to the USB 3.0 interface specification, and can also determine whether the target electronic device can pass the USB 3.0 interface plug-in test and static load voltage test based on its own output voltage.
[0047] Understandably, because the output capacitance of capacitive load 11 and the output resistance of resistive load 12 can be flexibly adjusted, and the USB 3.0 interface specification clearly defines the operating voltage range, maximum continuous current value, and voltage drop range of the target electronic device, when the testing device needs to perform plug-in / plug-out tests and static load voltage tests on the target electronic device, the voltage detection module 13 can adjust the output values of capacitive load 11 and resistive load 12 in the testing device according to the USB 3.0 interface specification. Then, combined with the output voltage of the voltage detection module 13 itself, the operating state of the target electronic device can be inferred. Based on this, plug-in / plug-out tests and static load tests can be performed on the USB 3.0 interface of the target electronic device.
[0048] In practical applications, the voltage detection module 13 can be set as an FPGA (Field Programmable Gate Array) or MCU (Micro Controller Unit), etc. The capacitive load 11 with adjustable capacitance can be set as an adjustable capacitor, a surface-mount adjustable capacitor, or multiple capacitors connected in parallel, etc. Furthermore, the resistive load 12 with adjustable resistance can be set as an adjustable resistor, a resistance box, a sliding rheostat, etc.
[0049] Obviously, the testing device provided in this embodiment can perform both plug-in / plug-out tests and static load voltage tests on the target electronic device. Furthermore, when testing the compliance of the USB 3.0 interface of the target electronic device, only the output values of the capacitive load 11 and the resistive load 12 need to be adjusted, and combined with the output value of the voltage detection module 13, it can be determined whether the USB 3.0 interface of the target electronic device meets the standard specifications. Therefore, this device can significantly improve the testing efficiency when testing the compliance of the USB 3.0 interface of hardware devices. Moreover, this testing device does not require expensive equipment such as oscilloscopes and electronic loads, thus reducing the cost of testing the compliance of the USB 3.0 interface of hardware devices. In addition, since the output values of the capacitive load 11 and the resistive load 12 are adjustable, the testing of the USB 3.0 interface of hardware devices can cover the entire testing range of the USB 3.0 interface. Therefore, this device can significantly improve the accuracy and reliability of the test results of the USB 3.0 interface of the target electronic device.
[0050] As can be seen, the testing device provided in this embodiment includes an adjustable capacitive load, an adjustable resistive load, and a voltage detection module. The voltage detection module can set the output values of the capacitive and resistive loads according to the USB 3.0 interface specification, and determine whether an electronic device with a USB 3.0 interface can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test based on its own output voltage. Compared to existing technologies, this testing device can perform both plug-in / plug-out tests and static load voltage tests on the target electronic device. Furthermore, it eliminates the need for expensive equipment such as oscilloscopes and electronic loads. Therefore, this device not only improves the testing efficiency when performing standard testing on USB 3.0 interfaces of hardware devices, but also reduces the cost of such testing. Meanwhile, since the output values of both capacitive and resistive loads are adjustable, this device can cover the entire testing range of USB 3.0 interfaces when performing standard testing on hardware devices, thus significantly improving the accuracy of the test results.
[0051] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Please refer to [link / reference]. Figure 2 , Figure 2 This is a structural diagram of another USB 3.0 interface detection device provided in an embodiment of the present invention. In a preferred embodiment, the device further includes:
[0052] A button battery 14 is connected to the voltage detection module 13 and is used to supply power to the voltage detection module 13.
[0053] It is understandable that, since the button battery 14 not only has the advantages of large storage capacity and long service life, but also has the advantages of small size and light weight, when the button battery 14 is used to power the voltage detection module 13, the space occupied by the detection device of the USB 3.0 interface provided in this application can be further reduced.
[0054] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Please refer to [link / reference]. Figure 2 , Figure 2 This is a structural diagram of another USB 3.0 interface detection device provided in an embodiment of the present invention. In a preferred embodiment, the device further includes:
[0055] A first cable 15 and a second cable 16 are respectively connected to the positive and negative terminals of the capacitive load 11; wherein the first cable 15 and the second cable 16 are of the same length.
[0056] In this embodiment, to make the detection device provided by this application applicable to various detection scenarios, a first cable 15 and a second cable 16 of equal length are connected to the positive and negative terminals of the capacitive load 11. It is conceivable that when the lengths of the first cable 15 and the second cable 16 are close to zero, the USB 3.0 interface detection device can be configured as a detection device similar to a USB flash drive; when the lengths of the first cable 15 and the second cable 16 are set to approximately 50 centimeters, the USB 3.0 interface detection device can be configured as a detection device similar to a wired mouse.
[0057] Obviously, the technical solution provided in this embodiment makes the configuration structure of the detection device provided in this application more flexible and diverse.
[0058] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Please refer to [link / reference]. Figure 2 , Figure 2 This is a structural diagram of another USB 3.0 interface detection device provided in an embodiment of the present invention. In a preferred embodiment, the device further includes:
[0059] A display screen 17 is connected to the voltage detection module 13 and is used to display the output voltage of the voltage detection module 13.
[0060] In this embodiment, in order to enable the testing personnel to see the output voltage of the voltage detection module 13 more clearly and intuitively, a display screen 17 is also connected to the voltage detection module 13, and the display screen 17 is used to display the output voltage of the voltage detection module 13.
[0061] Specifically, the display screen 17 can be configured as a CRT (Cathode Ray Tube) display screen, an LCD (Liquid Crystal Display) display screen, an LED (Light Emitting Diode) display screen, etc.
[0062] Clearly, the technical solution provided in this embodiment can further improve the testing experience for testing personnel when viewing the output voltage of the voltage detection module.
[0063] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Please refer to [link / reference]. Figure 2 , Figure 2This is a structural diagram of another USB 3.0 interface detection device provided in an embodiment of the present invention. In a preferred embodiment, the capacitive load 11 specifically comprises m capacitors connected in parallel, and the resistive load 12 specifically comprises n resistors connected in parallel; wherein m > 1, n > 1.
[0064] In this embodiment, the capacitive load 11 is set as m capacitors connected in parallel, and the resistive load 12 is set as n resistors connected in parallel. Because capacitors and resistors are not only commonly used components in circuit design, but also relatively inexpensive, setting the capacitive load 11 and resistive load 12 in this structural form can relatively reduce the design cost of the capacitive load 11 and resistive load 12.
[0065] In a preferred embodiment, the above-described apparatus further includes:
[0066] A DIP switch 18 is connected to the voltage detection module 13 and is used to adjust the output capacitance value of the capacitive load and the output resistance value of the resistive load according to the control signal output by the voltage detection module 13.
[0067] Specifically, in practical applications, the DIP switch 18 can be used to adjust the output capacitance of the capacitive load 11 and the output resistance of the resistive load 12. Because the DIP switch 18 has multiple control channels, by connecting these channels to the individual capacitors in the capacitive load and the individual resistors in the resistive load, the output capacitance and resistance of the capacitive load can be flexibly adjusted directly using the DIP switch 18. Please refer to [link / reference]. Figure 2 The DIP switch 18 can reset the voltage detection module 13 via a reset signal. The DIP switch 18 can control the capacitors 1 to m in the capacitive load 11 via capacitor control signals 1 to m respectively. Furthermore, the DIP switch 18 can control the resistors 1 to n in the resistive load 12 via resistor control signals 1 to n respectively.
[0068] Obviously, the technical solution provided in this embodiment can further improve the convenience of adjusting the output capacitance value of capacitive loads and the output resistance value of resistive loads.
[0069] Accordingly, this invention also provides a method for detecting a USB 3.0 interface, applied to the voltage detection module in the aforementioned USB 3.0 interface detection device. The method includes:
[0070] The output values for capacitive and resistive loads are set according to the USB 3.0 interface specification, and the target electronic device is judged based on its own output voltage to determine whether it can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test.
[0071] In the USB 3.0 interface testing device provided in this embodiment, the voltage detection module sets the output values of capacitive and resistive loads according to the USB 3.0 interface specification standard, and determines whether the target electronic device can pass the USB 3.0 interface plug-in / plug-out test and static load voltage test based on its own output voltage.
[0072] Understandably, because the USB 3.0 interface specification clearly defines the operating voltage range, maximum continuous current, and voltage drop range of the target electronic device, when the testing device needs to perform plug-in / plug-out tests and static load voltage tests on the target electronic device, the voltage detection module can adjust the output values of the capacitive and resistive loads in the testing device according to the USB 3.0 interface specification. Combined with the voltage detection module's own output voltage, the operating state of the target electronic device can be inferred. Based on this, plug-in / plug-out tests and static load voltage tests can be performed on the target electronic device's USB 3.0 interface.
[0073] Please see Figure 3 , Figure 3 This is a flowchart illustrating a USB 3.0 interface testing method provided in an embodiment of the present invention. In a preferred embodiment, the above steps—setting the output values of capacitive and resistive loads according to the USB 3.0 interface specification, and determining whether the target electronic device can pass the USB 3.0 interface plug-in / unplug test and static load voltage test based on its own output voltage—include:
[0074] Step S11: Set the output capacitance value of the capacitive load to the first preset value and the output resistance value of the resistive load to the second preset value according to the standard.
[0075] Step S12: When the target electronic device performs a plug-in / plug-out operation, determine whether the output voltage of the voltage detection module is within the preset voltage threshold range;
[0076] Step S13: If the output voltage of the voltage detection module is within the preset voltage threshold range, it is determined that the target electronic device has passed the USB 3.0 interface plug-in / plug-out test.
[0077] Step S14: If the output voltage of the voltage detection module is not within the preset voltage threshold range, it is determined that the target electronic device has failed the USB 3.0 interface plug-in / plug-out test.
[0078] Step S15: Set the output capacitance value of the capacitive load to the first preset value and the output resistance value of the resistive load to the third preset value according to the standard; wherein, the current power supply voltage of the voltage detection module is the preset power supply voltage;
[0079] Step S16: When the static load voltage of the target electronic device needs to be detected, determine whether the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range.
[0080] Step S17: If the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range, then the target electronic device is determined to have passed the static load voltage test of the USB 3.0 interface.
[0081] Step S18: If the output voltage of the voltage detection module is less than the lower limit of the preset voltage threshold range, it is determined that the target electronic device has failed the static load voltage test of the USB3.0 interface.
[0082] In this embodiment, when the testing device performs a plug-in / plug-out test on the USB 3.0 interface of the target electronic device, the voltage detection module in the testing device first sets the output capacitance of the capacitive load to a first preset value and the output resistance of the resistive load to a second preset value according to the USB 3.0 interface specification. Specifically, according to the current USB 3.0 interface specification, the output capacitance of the capacitive load is set to 10uF and the output resistance of the resistive load is set to 27Ω. Furthermore, the voltage detection module pre-stores the voltage threshold range of the USB 3.0 interface, which is 4.75V to 5.25V. That is, the preset voltage threshold range is 4.75V to 5.25V.
[0083] When the target electronic device performs a plug-in / plug-out operation in the testing device, the output voltage value of the voltage detection module can be used to determine whether the target electronic device can pass the USB 3.0 interface plug-in / plug-out test. Specifically, during the plug-in / plug-out operation, if the output voltage of the voltage detection module is within the preset voltage threshold range, it means that the target electronic device has passed the USB 3.0 interface plug-in / plug-out test; if the output voltage of the voltage detection module is not within the preset voltage threshold range, it means that the target electronic device has failed the USB 3.0 interface plug-in / plug-out test.
[0084] When the testing device performs a static load voltage test on the USB 3.0 interface of a target electronic device, the voltage detection module first sets the output capacitance of the capacitive load to a first preset value and the output resistance of the resistive load to a third preset value, according to the USB 3.0 interface specification. According to the current USB 3.0 interface specification, the output capacitance of the capacitive load is set to 10uF and the output resistance of the resistive load is set to 5Ω. Furthermore, according to the USB 3.0 interface specification, the ideal voltage for a USB 3.0 interface is 5V. Therefore, when performing a static load voltage test on the USB 3.0 interface of a target electronic device, the current supply voltage of the voltage detection module also needs to be set to the preset supply voltage of 5V.
[0085] Based on the above settings, a static load voltage test can be performed on the USB 3.0 interface of the target electronic device. Specifically, when the target electronic device is plugged into the testing device, if the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range of 4.75V, it indicates that the USB 3.0 interface of the target electronic device can pass the static load voltage test; if the output voltage of the voltage detection module is less than the lower limit of the preset voltage threshold range of 4.75V, it indicates that the USB 3.0 interface of the target electronic device cannot pass the static load voltage test.
[0086] In addition, to further improve the user experience for testing personnel when performing plug-in / plug-out tests and static load voltage tests on the USB 3.0 interface of the target electronic device in practical applications, an LED can be connected to the output of the voltage detection module. If the LED emits a red light, it indicates that the USB 3.0 interface of the target electronic device has failed the plug-in / plug-out test and static load voltage test; if the LED emits a green light, it indicates that the USB 3.0 interface of the target electronic device has passed the plug-in / plug-out test and static load voltage test. Alternatively, in practical applications, a buzzer can also be used to characterize the test results of the target electronic device. That is, a buzzer can be connected to the output of the voltage detection module. If the buzzer sounds, it indicates that the USB 3.0 interface of the target electronic device has failed the plug-in / plug-out test and static load voltage test; if the buzzer does not sound, it indicates that the USB 3.0 interface of the target electronic device has passed the plug-in / plug-out test and static load voltage test.
[0087] As a preferred embodiment, after determining the process of the target electronic device undergoing the USB 3.0 interface plug-in / plug-out test, the above step further includes:
[0088] The voltage detection module is reset, and the output capacitance value of the capacitive load at the current moment is accumulated according to the preset capacitance value.
[0089] When the target electronic device performs a plugging or unplugging operation, it is determined whether the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range;
[0090] If the output voltage of the voltage detection module does not exceed the upper limit of the preset voltage threshold range, the steps of resetting the voltage detection module and accumulating the output capacitance value of the capacitive load at the current moment according to the preset capacitance value will continue.
[0091] When the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range, the output capacitance value of the capacitive load at the current moment is obtained to obtain the target capacitance value, and the difference between the target capacitance value and the first preset value is determined as the capacitance output margin of the target electronic device.
[0092] In this embodiment, to determine the capacitance output margin of the target electronic device, after determining that the USB 3.0 interface of the target electronic device has passed the plug-in / plug-out test, the voltage detection module can be reset, and the output capacitance value of the capacitive load at the current moment can be accumulated according to a preset capacitance value. Therefore, when the target electronic device performs a plug-in / plug-out operation again, if the output voltage of the voltage detection module does not exceed the upper limit of the preset voltage threshold range, the steps of resetting the voltage detection module and accumulating the output capacitance value of the capacitive load at the current moment according to the preset capacitance value are continued.
[0093] When the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range, it indicates that the output capacitance value of the capacitive load at the current moment is the maximum output capacitance value that the target electronic device can withstand. In this case, it is necessary to obtain the output capacitance value of the capacitive load at the current moment, obtain the target capacitance value, and determine the difference between the target capacitance value and the first preset value of 10uf as the capacitance output margin of the target electronic device.
[0094] It should be noted that in practical applications, the preset capacitance value can be set to a range of 1.0uF to 2.2uF. Furthermore, to accurately observe the change process of the target electronic device's capacitance output margin, the initial output capacitance value of the capacitive load can be set to a value less than 10uF. Then, the output capacitance value of the capacitive load is sequentially accumulated according to the preset capacitance value to determine the capacitance output margin of the target electronic device. The calculation process can be found in the relevant descriptions of this embodiment, and will not be elaborated upon here.
[0095] As a preferred embodiment, after determining the static load voltage test of the target electronic device via the USB 3.0 interface, the above step further includes:
[0096] The output resistance of the resistive load at the current moment is accumulated according to the preset resistance value, and the output voltage of the voltage detection module at the current moment is detected.
[0097] If the output voltage of the voltage detection module at the current moment is greater than the lower limit of the preset voltage threshold range, then continue to execute the steps of accumulating the output resistance of the resistive load at the current moment according to the preset resistance value and detecting the output voltage of the voltage detection module at the current moment, until the output voltage of the voltage detection module is equal to the lower limit of the preset voltage threshold range.
[0098] Obtain the output resistance value of the resistive load at the current moment to get the target resistance value, and obtain the current value of the resistive load at the current moment based on the target resistance value to get the target current value;
[0099] The difference between the target current value and the preset current value is determined as the current output margin of the target electronic device.
[0100] In this embodiment, to determine the voltage output margin of the target electronic device, when it is determined that the USB 3.0 interface of the target electronic device has passed the static load voltage test, the output resistance value of the resistive load at the current moment can be accumulated according to a preset resistance value, and the output voltage of the voltage detection module at the current moment can be detected. If the output voltage of the voltage detection module at the current moment is greater than the lower limit of the preset voltage threshold range of 4.75V, then the steps of accumulating the output resistance value of the resistive load at the current moment according to the preset resistance value and detecting the output voltage of the voltage detection module at the current moment need to be continued until the output voltage of the voltage detection module is equal to the lower limit of the preset voltage threshold range of 4.75V.
[0101] When the output voltage of the voltage detection module equals the lower limit of the preset voltage threshold range of 4.75V, the output resistance value of the resistive load at the current moment is obtained, along with the current value of the resistive load at the current moment, to obtain the target current value. In this case, the difference between the target current value and the preset current value can be determined as the current output value of the target electronic device. Specifically, the preset current value is: 5V / 5Ω = 1A.
[0102] Obviously, the technical solution provided in this embodiment can also determine the capacitance output margin and current output margin of the target electronic device, which can further improve the user experience when using the target electronic device.
[0103] The various embodiments described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Finally, it should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0104] The above provides a detailed description of a USB 3.0 interface detection device and detection method provided by the present invention. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for detecting a USB 3.0 interface, characterized in that, A voltage detection module is provided in a USB 3.0 interface testing device. The USB 3.0 interface testing device includes: an adjustable capacitive load, an adjustable resistive load, and a voltage detection module for setting the output values of the capacitive load and the resistive load according to the USB 3.0 interface specification, and for determining whether a target electronic device can pass the USB 3.0 interface insertion / removal test and static load voltage test based on its own output voltage; the target electronic device is an electronic device with a USB 3.0 interface. The positive input terminal of the voltage detection module is connected to the positive terminal of the capacitive load and the positive terminal of the resistive load, respectively, and the negative input terminal of the voltage detection module is connected to the negative terminal of the capacitive load and the negative terminal of the resistive load, respectively. The process of setting the output values of the capacitive load and the resistive load according to the USB 3.0 interface specification, and determining whether the target electronic device can pass the USB 3.0 interface plug-in / unplug test and static load voltage test based on its own output voltage, includes: According to the aforementioned standard, the output capacitance value of the capacitive load is set to a first preset value, and the output resistance value of the resistive load is set to a second preset value; When the target electronic device performs a plugging / unplugging operation, it is determined whether the output voltage of the voltage detection module is within the preset voltage threshold range; If the output voltage of the voltage detection module is within the preset voltage threshold range, then the target electronic device is determined to have passed the USB 3.0 interface plug-in / plug-out test. If the output voltage of the voltage detection module is not within the preset voltage threshold range, the target electronic device is determined to have failed the USB 3.0 interface plug-in / plug-out test. According to the aforementioned standard, the output capacitance value of the capacitive load is set to the first preset value, and the output resistance value of the resistive load is set to the third preset value; wherein, the current power supply voltage of the voltage detection module is the preset power supply voltage; When it is necessary to detect the static load voltage of the target electronic device, it is determined whether the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range. If the output voltage of the voltage detection module is greater than or equal to the lower limit of the preset voltage threshold range, then the target electronic device is determined to have passed the static load voltage test of the USB 3.0 interface. If the output voltage of the voltage detection module is less than the lower limit of the preset voltage threshold range, it is determined that the target electronic device has failed the static load voltage test of the USB 3.0 interface. The output of the voltage detection module is connected to an LED. If the LED emits a red light, it is determined that the USB 3.0 interface of the target electronic device has failed the plug-in / plug-out test and the static load voltage test; if the LED emits a green light, it is determined that the USB 3.0 interface of the target electronic device has passed the plug-in / plug-out test and the static load voltage test.
2. The detection method according to claim 1, characterized in that, The detection device for the USB 3.0 interface also includes: A button battery connected to the voltage detection module for supplying power to the voltage detection module.
3. The detection method according to claim 1, characterized in that, The detection device for the USB 3.0 interface also includes: A first cable and a second cable are respectively connected to the positive and negative terminals of the capacitive load; wherein the first cable and the second cable are of the same length.
4. The detection method according to claim 1, characterized in that, The detection device for the USB 3.0 interface also includes: A display screen connected to the voltage detection module is used to display the output voltage of the voltage detection module.
5. The detection method according to claim 1, characterized in that, The capacitive load is specifically... A parallel capacitor, and the resistive load is specifically a A series of resistors connected in parallel; among them, , .
6. The detection method according to claim 5, characterized in that, The detection device for the USB 3.0 interface also includes: A DIP switch connected to the voltage detection module, used to adjust the output capacitance of the capacitive load and the output resistance of the resistive load according to the control signal output by the voltage detection module.
7. The detection method according to claim 1, characterized in that, After determining that the target electronic device has passed the USB 3.0 interface plug-in / unplug test, the process further includes: The voltage detection module is reset, and the output capacitance value of the capacitive load at the current moment is accumulated according to the preset capacitance value. When the target electronic device performs a plugging and unplugging operation, it is determined whether the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range; If the output voltage of the voltage detection module does not exceed the upper limit of the preset voltage threshold range, then the steps of resetting the voltage detection module and accumulating the output capacitance value of the capacitive load at the current moment according to the preset capacitance value will continue to be executed. When the output voltage of the voltage detection module exceeds the upper limit of the preset voltage threshold range, the output capacitance value of the capacitive load at the current moment is obtained to obtain the target capacitance value, and the difference between the target capacitance value and the first preset value is determined as the capacitance output margin of the target electronic device.
8. The detection method according to claim 1, characterized in that, After determining whether the target electronic device has passed the static load voltage test of the USB 3.0 interface, the process further includes: The output resistance of the resistive load at the current moment is accumulated according to the preset resistance value, and the output voltage of the voltage detection module at the current moment is detected; If the output voltage of the voltage detection module at the current moment is greater than the lower limit of the preset voltage threshold range, then the steps of accumulating the output resistance of the resistive load at the current moment according to the preset resistance value and detecting the output voltage of the voltage detection module at the current moment continue to be executed until the output voltage of the voltage detection module is equal to the lower limit of the preset voltage threshold range. Obtain the output resistance value of the resistive load at the current moment to obtain the target resistance value, and obtain the current value of the resistive load at the current moment based on the target resistance value to obtain the target current value; The difference between the target current value and the preset current value is determined as the current output margin of the target electronic device.