Universal serial bus hub test system, method, and related apparatus
By designing an automated USB bus hub testing system, the problem of low testing efficiency for USB hubs was solved, especially for the testing of USB 4.0 protocol interfaces, achieving efficient automated testing and saving labor costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN XFANIC TECH CO LTD
- Filing Date
- 2022-12-02
- Publication Date
- 2026-06-02
AI Technical Summary
Existing USB hubs are inefficient to test and lack comprehensive testing of the USB 4.0 protocol interface. Manual testing is inefficient and inaccurate.
Design a universal serial bus hub test system, including a protocol detection module, a channel switch module, a communication test module, a power test module, and a USB interface test module, to realize automated communication and power testing of USB hub interfaces, especially testing of USB 4.0 protocol interfaces.
It enables automated testing of USB Hubs, saving labor costs and improving testing efficiency, especially in terms of testing capabilities for USB 4.0 protocol interfaces.
Smart Images

Figure CN115934438B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of USB technology, specifically to a universal serial bus hub testing system, method, and related apparatus. Background Technology
[0002] The widespread use of USB Hub (Universal Serial Bus Hub) has brought convenience in many ways. Before a USB Hub is put on the market, its performance needs to be tested to determine whether it is qualified. However, at present, testing is often limited to manual testing, which is inefficient. Summary of the Invention
[0003] This application provides a universal serial bus hub testing system, method, and related apparatus, which can realize automated communication testing and power testing of USB Hub interfaces, especially for USB 4.0 protocol interfaces, thus saving labor costs and improving testing efficiency.
[0004] In a first aspect, embodiments of this application provide a universal serial bus hub testing system, including:
[0005] The protocol detection module is connected to the channel switch module, the target USB Hub, the communication test module, the control center module, the power test module, and the USB interface test module, respectively. Upon receiving a start test notification from the control center module, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub, and sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. It also controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module to switch to the communication test channel, it sends a communication test notification to the communication test module; after controlling the channel switch module to switch to the power test channel, it sends a power test notification to the power test module; and after controlling the channel switch module to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module.
[0006] The communication test module is connected to the target USB Hub and the control center module respectively, and is used to receive the first protocol version and the plurality of second protocol versions. When receiving the communication test notification sent by the protocol detection module, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0007] The control center module, connected to the target USB Hub, is used to send a first instruction to the protocol detection module to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, a second instruction to switch to the power test channel is sent to the protocol detection module.
[0008] The power testing module is connected to the target USB Hub and is used to perform power testing on each of the downlink USB interfaces when receiving the power testing notification sent by the protocol detection module, and to send a third instruction to the protocol detection module to switch to the USB interface test channel after completing the power testing on each of the downlink USB interfaces.
[0009] The USB interface testing module is connected to the target USB Hub and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection module. When receiving the USB interface test notification sent by the protocol detection module, the module selects the downstream USB interface of the target USB Hub with the second protocol version being USB4.0 as the target USB interface and performs transmitter test, receiver test, return loss test and sideband signal test on the target USB interface.
[0010] Secondly, embodiments of this application provide an electronic device, including:
[0011] The protocol detection module is connected to the channel switch module, the target USB Hub, the communication test module, the control center module, the power test module, and the USB interface test module, respectively. Upon receiving a start test notification from the control center module, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub, and sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. It also controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module to switch to the communication test channel, it sends a communication test notification to the communication test module; after controlling the channel switch module to switch to the power test channel, it sends a power test notification to the power test module; and after controlling the channel switch module to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module.
[0012] The communication test module is connected to the target USB Hub and the control center module respectively, and is used to receive the first protocol version and the plurality of second protocol versions. When receiving the communication test notification sent by the protocol detection module, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0013] The control center module, connected to the target USB Hub, is used to send a first instruction to the protocol detection module to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, a second instruction to switch to the power test channel is sent to the protocol detection module.
[0014] The power testing module is connected to the target USB Hub and is used to perform power testing on each of the downlink USB interfaces when receiving the power testing notification sent by the protocol detection module, and to send a third instruction to the protocol detection module to switch to the USB interface test channel after completing the power testing on each of the downlink USB interfaces.
[0015] The USB interface testing module is connected to the target USB Hub and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection module. When receiving the USB interface test notification sent by the protocol detection module, the module selects the downstream USB interface of the target USB Hub with the second protocol version being USB4.0 as the target USB interface and performs transmitter test, receiver test, return loss test and sideband signal test on the target USB interface.
[0016] Thirdly, this application provides a universal serial bus hub testing method, which is applied to electronic devices or universal serial bus hub testing systems. The electronic devices include: a channel switch module, a protocol detection module, a communication testing module, a power testing module, a USB interface testing module, and a control center module.
[0017] The method includes:
[0018] When the protocol detection module receives the start test notification sent by the control center module, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub. It then sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. Furthermore, it controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module to switch to the communication test channel, it sends a communication test notification to the communication test module. After controlling the channel switch module to switch to the power test channel, it sends a power test notification to the power test module. After controlling the channel switch module to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module.
[0019] The communication test module receives the first protocol version and the plurality of second protocol versions. When it receives the communication test notification sent by the protocol detection module, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0020] When the control center module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, it sends a first instruction to the protocol detection module to switch to the communication test channel, and sequentially calculates the target data volume sent by each downlink USB interface within a preset time to obtain a plurality of target data volumes. It then determines whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After determining whether each downlink USB interface communication test is qualified, the control center module sends a second instruction to the protocol detection module to switch to the power test channel.
[0021] When the power test module receives the power test notification sent by the protocol detection module, it performs a power test on each of the downlink USB interfaces, and after completing the power test on each of the downlink USB interfaces, it sends a third instruction to the protocol detection module to switch to the USB interface test channel.
[0022] The USB interface testing module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, and when it receives the USB interface test notification sent by the protocol detection module, it takes the downstream USB interface of the target USB Hub with the second protocol version of USB4.0 as the target USB interface, and performs transmitting end test, receiving end test, return loss test and sideband signal test on the target USB interface.
[0023] Fourthly, embodiments of this application provide an electronic device including a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including steps for performing some or all of the steps described in the method of the third aspect of embodiments of this application.
[0024] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the method of the third aspect of embodiments of this application.
[0025] As can be seen from this embodiment, when the protocol detection module receives the start test notification sent by the control center module, it determines the first protocol version of the target USB Hub's uplink USB interface and multiple second protocol versions of its multiple downlink USB interfaces. It then sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. The communication test module and the control center module complete the communication test of the target USB Hub based on the first protocol version and the multiple second protocol versions. Next, the power test module performs a power test on the target USB Hub. Finally, the USB interface test module performs transmitter testing, receiver testing, return loss testing, and sideband signal testing on the USB 4.0 protocol interface. This achieves automated communication and power testing of the USB Hub's USB interface, especially enabling testing of USB 4.0 protocol interfaces, which helps save labor costs and improve testing efficiency. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application, 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 some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a schematic diagram of the architecture of a universal serial bus hub test system 1a provided in an embodiment of this application;
[0028] Figure 2a This is a schematic diagram of the structure of a universal serial bus hub test system 1a provided in an embodiment of this application;
[0029] Figure 2b This is a schematic diagram of another general-purpose serial bus hub test system 1a provided in this application embodiment;
[0030] Figure 2c This is a schematic diagram of another general-purpose serial bus hub test system 1a provided in this application embodiment;
[0031] Figure 2dThis is a schematic diagram of another general-purpose serial bus hub test system 1a provided in this application embodiment;
[0032] Figure 2e This is a schematic diagram of another general-purpose serial bus hub test system 1a provided in this application embodiment;
[0033] Figure 2f This is a schematic diagram of another general-purpose serial bus hub test system 1a provided in this application embodiment;
[0034] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0035] Figure 4 This is a flowchart illustrating a universal serial bus hub testing method provided in an embodiment of this application;
[0036] Figure 5 This is a functional block diagram of a universal serial bus hub testing device provided in an embodiment of this application. Detailed Implementation
[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0038] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0039] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0040] 1) The electronic devices involved in the embodiments of this application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (UE), mobile station (MS), terminal device, etc. For ease of description, the devices mentioned above are collectively referred to as electronic devices.
[0041] 2) A Universal Serial Bus (USB) hub is a device that can expand a single USB interface into multiple interfaces, and allow the expanded interfaces to be used simultaneously. The expanded interfaces are downstream USB interfaces. The USB protocol versions of the upstream and downstream interfaces of the USB hub can be USB 2.0, USB 2.1, USB 3.0, USB 3.1, USB 3.2, and USB 4.0. The USB hub can have four or more interfaces, which is not limited here.
[0042] Currently, when testing multi-port USB hubs, it is often necessary to perform communication tests on each USB port, which is inefficient and the test data is often inaccurate. Furthermore, there is no complete test for interfaces using the USB 4.0 transmission protocol.
[0043] To address the aforementioned issues, this application proposes a universal serial bus hub testing system, method, and related apparatus, which will be described in detail below.
[0044] Please see Figure 1 , Figure 1 This is a schematic diagram of the architecture of a Universal Serial Bus (USB) hub test system 1a provided in an embodiment of this application. It includes the USB hub test system 1a and a target USB Hub 1b. The USB hub test system 1a includes:
[0045] The protocol detection module 10 is connected to the channel switch module 20, the target USB Hub 1b, the communication test module 30, the control center module 40, the power test module 50, and the USB interface test module 60, respectively. Upon receiving a start test notification from the control center module 40, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of multiple downlink USB interfaces of the target USB Hub 1b, and sends the first protocol version and the multiple second protocol versions to the communication test module 30, the control center module 40, and the USB interface test module 60, respectively. It also controls the channel switch module 20 to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module 20 to switch to the communication test channel, it sends a communication test notification to the communication test module 30; after controlling the channel switch module 20 to switch to the power test channel, it sends a power test notification to the power test module 50; and after controlling the channel switch module 20 to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module 60.
[0046] The communication test module 30 is connected to the target USB Hub1b and the control center module 40 respectively. It is used to receive the first protocol version and the plurality of second protocol versions. When it receives the communication test notification sent by the protocol detection module 10, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module 40 through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0047] The control center module 40, connected to the target USB Hub 1b, is used to send a first instruction to the protocol detection module 10 to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module 10, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, it sends a second instruction to the protocol detection module 10 to switch to the power test channel.
[0048] The power test module 50 is connected to the target USB Hub1b and is used to perform power tests on each of the downlink USB interfaces when it receives the power test notification sent by the protocol detection module 10, and to send a third instruction to the protocol detection module 10 to switch to the USB interface test channel after completing the power test on each of the downlink USB interfaces.
[0049] The USB interface testing module 60 is connected to the target USB Hub 1b and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection module 10. When receiving the USB interface test notification sent by the protocol detection module 10, the downstream USB interface of the target USB Hub 1b with the second protocol version of USB 4.0 is taken as the target USB interface, and the target USB interface is tested for transmitting end, receiving end, return loss and sideband signal.
[0050] The first protocol version can be USB 2.0, USB 3.0, or USB 4.0. The second protocol version can also be USB 2.0, USB 3.0, or USB 4.0. The difference between the target USB interface of the USB 4.0 protocol and the USB interface of the USB 3.0 protocol is that the target USB interface is a connection-oriented tunnel architecture, which is intended to combine multiple protocols onto a single physical interface, thereby dynamically sharing the total speed and performance of the USB 4.0 Fabric. It also allows USB data transfer to operate in parallel with other independent protocols specific to display, loading, storage, and host interfaces.
[0051] The Universal Serial Bus Hub Test System 1a includes a data transmission channel, a communication test channel, a power test channel, and a USB interface test channel.
[0052] The protocol detection module 10 can control the channel switch module 20 to switch the data channel to the communication test channel according to the first instruction, switch the data channel to the power test channel according to the second instruction, and switch the data channel to the USB interface test channel according to the third instruction. The test sequence is to first perform communication test on each downstream USB interface, then perform power test, then confirm the target USB interface, that is, the USB interface with the USB4.0 protocol version, and finally perform USB interface test on the target USB interface.
[0053] Sending preset data packets according to the first protocol version requires determining the sending speed based on the first protocol version. For example, for the downstream USB interface of the USB 3.0 protocol, the determined sending speed can be high speed or low speed, while for the downstream USB interface of the USB 2.0 protocol, the determined sending speed is low speed. It should be noted that low speed and high speed here are relative to different protocol versions and are not the same as high speed and low speed in the USB protocol standard.
[0054] The preset data packets are associated with the first protocol version. Considering that the USB interfaces of the first protocol version being tested differ in the data type, data volume, and transmission speed, the preset data packets corresponding to different first protocol versions may also differ. For example, the preset data packets corresponding to the USB 3.0 protocol and the USB 4.0 protocol are different. The differences in the preset data packets are reflected in the data packet content and data volume. For example, the difference lies in the data type, namely the difference in data types such as image data, text data, etc., and the data volume of different data types will also be different.
[0055] The control center module 40 also compares the target data content corresponding to the received target data volume with the preset data packet to determine the integrity of the data sent through the USB interface. The factors considered in determining whether the USB interface communication test is qualified also include whether the target data content is consistent with the preset data packet. Only when the target data volume is in the first preset range and the target data content is consistent with the preset data packet is the USB interface communication test qualified.
[0056] The first preset interval is associated with the first protocol version, and the first preset intervals corresponding to different first protocol versions may be the same or different.
[0057] As can be seen from this embodiment, when the protocol detection module 10 in the USB Hub testing system 1a receives the start test notification sent by the control center module 40, it determines the first protocol version of the uplink USB interface and the multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub 1b, and sends the first protocol version and the multiple second protocol versions to the communication testing module 30, the control center module 40, and the USB interface testing module 60, respectively. The communication testing module 30 and the control center module 40 complete the communication test of the target USB Hub according to the first protocol version and the multiple second protocol versions. Then, the power testing module 50 performs a power test on the target USB Hub. Finally, the USB interface testing module 60 performs transmitter test, receiver test, return loss test, and sideband signal test on the interface with the USB 4.0 protocol version. In this way, automated communication testing and power testing of the USB Hub's USB interface are realized, especially the corresponding testing of the USB 4.0 protocol interface, which helps to save labor costs and improve testing efficiency.
[0058] It should be noted that in this application, "multiple" can refer to two or more, which will not be elaborated further.
[0059] In one possible example, such as Figure 2a As shown, the communication test module 30 includes multiple CyUSB3014 modules. Each CyUSB3014 module corresponds to a module number. Each CyUSB3014 module is connected to each downstream USB interface of the target USB Hub1b. The CyUSB3014 module is used to send the preset data packet to the control center module 40 through the corresponding downstream USB interface according to the module number and the first protocol version.
[0060] The number of CyUSB3014 modules is consistent with the number of downstream interfaces of the target USB Hub1b. When the target USB Hub1b has four downstream USB interfaces, the multiple CyUSB3014 modules refer to CyUSB3014 module 1 (301), CyUSB3014 module 2 (302), CyUSB3014 module 3 (303), and CyUSB3014 module 4 (304).
[0061] Specifically, sending a preset data packet to the control center module 40 via the corresponding downlink USB interface according to the module number and the first protocol version means that CyUSB3014 module 1 (301) first sends a preset data packet to the control center module 40 via the corresponding downlink USB interface according to the first protocol version, then CyUSB3014 module 2 (302) sends a preset data packet to the control center module 40 via the corresponding downlink USB interface according to the first protocol version, then CyUSB3014 module 3 (303) sends a preset data packet to the control center module 40 via the corresponding downlink USB interface according to the first protocol version, and finally CyUSB3014 module 4 (304) sends a preset data packet to the control center module 40 via the corresponding downlink USB interface according to the first protocol version.
[0062] Considering the high data transfer rates of USB interfaces corresponding to USB 4.0 and USB 3.0 protocols, the CyUSB3014 module was selected to meet the high-speed data transfer requirements of the USB interfaces corresponding to USB 4.0 and USB 3.0 protocols.
[0063] As can be seen in this example, the CyUSB3014 module can be used to perform communication tests on downstream USB interfaces with USB 3.0, USB 4.0 and USB 2.0 protocols, which is beneficial to improving the communication testing capabilities of USB hub USB interfaces.
[0064] In one possible example, such as Figure 2b As shown, the USB interface test module 60 includes a USB interface test control module 610, a transmitter test module 620, a receiver test module 630, a return loss test module 640, and a sideband signal test module 650. The transmitter test module 620 performs eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitter of the target USB interface. The receiver test module 630 performs error burst testing and signal frequency variation testing on the receiver of the target USB interface. The return loss test module 640 performs differential return loss testing and common-mode loss testing on both the transmitter and receiver of the target USB interface. The sideband signal test module 650 performs sideband signal voltage testing, sideband signal rise time testing, and sideband signal fall time testing on the sideband signal.
[0065] In terms of performing transmitter testing, receiver testing, return loss testing, and sideband signal testing on the target USB interface, the USB interface test control module 610 is specifically used for:
[0066] The transmitter test module 620 is controlled to perform the transmitter test on the target USB interface, the receiver test module 630 is controlled to perform the receiver test on the target USB interface, the return loss test module 640 is controlled to perform the return loss test on the target USB interface, and the sideband signal test module 650 is controlled to perform the sideband signal test on the target USB interface.
[0067] The target USB interface includes a signal transmitter (TX) and a signal receiver (RX). The transmitter test module 620 is connected to the transmitter (TX) of the target USB interface, the receiver test module 630 is connected to the receiver (RX) of the target USB interface, the return loss test module 640 is connected to both the transmitter and receiver of the target USB interface, and the sideband signal test module 650 is connected to the transmitter of the target USB interface.
[0068] The eye diagram test measures eye diagram parameters such as intraocular height X1, extraocular height X2, and horizontal eye height Y1. The jitter test, considering the higher data transfer speed of the target USB interface, aims to better reflect the signal quality transmitted by the target USB interface. This jitter test measures total jitter (TJ), the sum of uncorrelated DJ and RJ components (UJ), data-dependent jitter (DDJ), deterministic jitter uncorrelated to the transmitted data (UDJ), deterministic jitter uncorrelated to the transmitted data in the low-frequency range (UDJ-LF), and even-odd jitter (DCD) related to duty cycle distortion. To ensure the stability of the spread spectrum clock of the target USB interface, a spread spectrum clock test is performed, including testing the spread spectrum clock's downspan range, modulation rate, phase offset, and slew rate. Meanwhile, as the speed of the high-speed serial signal of the USB interface of the USB 4.0 protocol continues to increase, this high-speed serial signal is similar to a microwave signal. In order to ensure the stability of signal transmission, the return loss test module 640 is used to perform differential return loss test and mode return loss test on both the transmitting end and the receiving end. In addition, when there is high-speed traffic at the target USB interface, in order to ensure the normal operation of the local bus and router components, so that debugging and link training can work normally, it is necessary to test the sideband signal of the transmitting end, including sideband signal voltage test, sideband signal rise time test, and sideband signal fall time test.
[0069] As can be seen in this example, the USB interface test module performs transmitter test, receiver test, return loss test, and sideband signal test on the target USB interface. It can test the quality of the transmitted signal, the stability of the spread spectrum clock, and the stability of the signal transmission of the target USB interface, which is beneficial to improving the testing capability of the target USB interface with the transmission protocol version USB4.0.
[0070] In one possible example, such as Figure 2c As shown, the transmitter test module 620 includes an equalization calibration module 621, an eye diagram test module 622, a jitter test module 623, and a spread spectrum clock test module 624. The eye diagram test module 622 is used to determine the eye diagram indicator information associated with the equalization of the target transmitter in the target USB interface, and to determine whether the eye diagram indicator data corresponding to the eye diagram indicator information is greater than a corresponding first preset threshold. If the eye diagram indicator data is greater than the first preset threshold, the eye diagram test of the target USB interface is determined to be qualified; if the eye diagram indicator data is less than or equal to the first preset threshold, the eye diagram test of the target USB interface is determined to be unqualified. The jitter test... Module 623 is used to determine the jitter index information associated with the equalization of the target transmitting end in the target USB interface, and to determine whether the jitter index data corresponding to the jitter index information is greater than the corresponding second preset threshold. If the jitter index data is greater than the second preset threshold, the jitter test of the target USB interface is determined to be qualified. If the jitter index data is less than or equal to the second preset threshold, the jitter test of the target USB interface is determined to be unqualified. The spread spectrum clock test module 624 is used to perform spread spectrum clock down-spread range test, down-spread rate test, phase offset test and conversion rate test associated with the equalization of the target transmitting end on the target USB interface.
[0071] In performing eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitting end of the target USB interface, the equalization calibration module 621 is specifically used for:
[0072] The equalizer at the transmitting end of the target USB interface is calibrated to obtain the calibrated target equalizer. Then, the eye diagram test module 622 is controlled to perform the eye diagram test on the target USB interface, the jitter test module 623 is controlled to perform the jitter test on the target USB interface, and the spread spectrum clock test module 624 is controlled to perform the spread spectrum clock test on the target USB interface.
[0073] To compensate for the losses caused by the lossy link, the target USB interface sets 16 equalization values during high-speed signal transmission. Therefore, before performing eye diagram testing, jitter testing, and spread spectrum clock testing, it is necessary to calibrate the transmitter equalization, that is, select the transmitter equalization that can provide the smallest DDJ value as the target transmitter equalization.
[0074] Among them, eye diagram indicators such as height X1, external eye height X2, and horizontal eye height Y1 correspond to different first preset thresholds. The eye diagram testing module 622 determines that the target USB interface eye diagram test is unqualified if any eye diagram indicator data is less than or equal to the corresponding first preset threshold, and determines that the target USB interface eye diagram test is qualified if every eye diagram indicator data is greater than the corresponding first preset threshold. Jitter indicators such as TJ, UJ, DDJ, UDJ, UDJ-LF, and DCD correspond to different second preset thresholds. The jitter testing module 623 determines that the target USB interface eye diagram test is qualified if any jitter indicator data is less than or equal to the corresponding first preset threshold. A threshold is set to determine if the target USB interface jitter test is unqualified. If the data of each eye diagram index is greater than the corresponding first preset threshold, the target USB interface jitter test is determined to be qualified. Spread spectrum clock indices such as downspread range, modulation rate, phase offset, and slew rate correspond to different second preset intervals. The spread spectrum clock test module 624 determines that the target USB interface spread spectrum clock test is qualified when each spread spectrum clock index data is within the corresponding second preset interval, and determines that the target USB interface spread spectrum clock test is unqualified when any spread spectrum clock index data is not within the corresponding second preset interval.
[0075] The first and second preset thresholds both correspond to the protocol version of the target USB interface, namely, the USB 4.0 protocol.
[0076] As can be seen in this example, the equalization calibration module, eye diagram test module, jitter test module, and spread spectrum clock test module in the transmitter test module can complete the eye diagram test, jitter test, and spread spectrum clock test of the transmitter, and can test the signal quality, signal differentiation, and spread spectrum clock stability of the target USB interface transmitter.
[0077] In one possible example, such as Figure 2dAs shown, the receiving - end test module 630 includes a waveform calibration module 631, an error burst test module 632, and a signal frequency change training test module 633. Among them, the error burst test module 632 is used to detect the target probability of restart errors after the receiving end of the target USB interface correctly receives a decision signal of a preset number of bits, and to determine whether the target probability is less than a third preset threshold. If the target probability is less than the third preset threshold, it is determined that the error burst test of the target USB interface is qualified; if the target probability is greater than or equal to the third preset threshold, it is determined that the error burst test of the target USB interface is unqualified. The signal frequency change training test module 633 is used to determine the bit error probability of the transmission signal of the receiving end of the target USB interface, and to determine whether the bit error probability is less than a fourth preset threshold. If the bit error probability is less than the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is qualified; if the bit error probability is greater than or equal to the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is unqualified.
[0078] In terms of performing the error burst test and the signal frequency change test on the receiving end of the target USB interface, the waveform calibration module 631 is specifically used for:
[0079] Calibrating the detected signal waveform of the target USB interface, and sequentially controlling the error burst test module to perform an error burst test on the USB interface, and controlling the signal frequency change training test module to perform a signal frequency change training test on the target USB interface.
[0080] Among them, when performing the error burst test and the signal frequency change training test on the receiving end of the target USB interface, there will be situations where direct testing is not possible. The waveform calibration module 631 needs to first calibrate the detected signal waveform of the receiving end before further analyzing the calibrated target signal. The target signal includes the decision signal and the transmission signal.
[0081] Among them, the third preset threshold and the fourth preset threshold both correspond to the protocol version of the target USB interface, that is, the USB4.0 protocol.
[0082] Among them, the error burst test module 632 indirectly verifies whether the performance of the receiving end of the target USB interface meets the expectations. By detecting the target probability of an immediate restart error burst after the receiving end correctly receives a decision signal of a preset number of bits, it determines whether the error burst test is qualified based on the magnitude relationship between the target probability and the third preset threshold. If it is qualified, it means that the performance of the receiving end of the target USB interface is qualified.
[0083] Among them, to test whether the signal adjustment of the receiving end is reliable, the signal frequency change training test module 633 needs to perform signal frequency change training test on the receiving end of the target USB interface.
[0084] As can be seen, in this example, the performance of the target USB interface receiver can be indirectly tested through the waveform calibration module, the error burst test module, and the signal frequency change training test module, i.e., the error burst test, and the reliability test of the transmission signal adjustment can be achieved through the signal frequency change training test module.
[0085] In one possible example, such as Figure 2e As shown, the power testing module 50 includes a test judgment module 501. The test judgment module 501 is used to test whether the power supply voltage corresponding to each downlink USB interface is within a preset range, and to test whether the power supply power corresponding to each downlink USB interface is within a preset power range. If the power supply voltage corresponding to the downlink USB interface is not within the preset range or the power supply power is not within the preset power range, the downlink USB interface power test is determined to be unqualified. If the power supply voltage corresponding to the downlink USB interface is within the preset range and the power supply power is within the preset power range, the downlink USB interface power test is determined to be qualified.
[0086] The preset power range and preset voltage range can be set manually or by system default, and are not limited here.
[0087] The power test module 50 may include multiple test judgment modules 501. Each test judgment module 501 corresponds to a module number and each test judgment module corresponds to a downlink USB interface. The number of test judgment modules 501 is equal to the number of downlink USB interfaces. The module number can be used to indicate the test order of the test judgment module 501 for the corresponding downlink USB interface.
[0088] As can be seen in this example, the power test module can automatically complete the test of the power supply voltage and power supply of each downstream USB interface according to the module number. It can determine whether the power supply of the downstream USB interface is qualified by the relationship between the power supply voltage and the preset voltage range, and the relationship between the power supply and the preset power range, which helps to improve the test efficiency.
[0089] In one possible example, such as Figure 2fAs shown, the power test module also includes multiple USB load modules 502 and a load adjustment module 503. Each USB load module 502 is connected to each downstream USB interface of the target USB Hub1b. The load adjustment module 503 is connected to each USB load module 502 and the test judgment module 501 respectively. The load adjustment module 503 is used to adjust the load corresponding to the load module 502, and after adjusting the load, sends a target test notification to the test judgment module 501.
[0090] The number of USB load modules 502 is the same as the number of downstream USB interfaces, and each USB load module has a corresponding module number, which is the same as the module number of the USB load module connected to the same downstream USB interface and the module number of the test judgment module.
[0091] The load adjustment module 503 can first dynamically adjust the load corresponding to the load module to generate a first target test notification and send the first target test notification to the test judgment module 501. After receiving the first target test notification, the test judgment module 501 will test the first power supply voltage and first power supply of the downstream USB interface corresponding to the load in real time. The test judgment module 501 will then determine whether the dynamic load test of the downstream USB interface is qualified according to the preset voltage range and preset power range. Then, the load is adjusted to a target power load, the target power is the upper limit of the preset power range, and a second target test notification is generated and sent to the test judgment module 501. After receiving the second target test notification, the test judgment module 501 will test the second power supply voltage and second power supply of the downstream USB interface corresponding to the load. The test judgment module 501 will then determine whether the full load test of the downstream USB interface is qualified according to the preset voltage range and preset power range.
[0092] The load adjustment module 503 can sequentially perform dynamic load testing and full load testing on each downstream USB interface according to the module number of the USB load module 502. When both the full load test and dynamic load test of the downstream USB interface are qualified, the load test of the downstream USB interface is qualified.
[0093] Optionally, to test whether the power supply voltage and power supply of the downstream USB interface are stable when each USB interface is connected to a load, the load adjustment module 503 can adjust each USB interface to a preset power load and send a third target test notification to the test judgment module 501. After receiving the third target test notification, the test judgment module 501 will test the third power supply voltage and third power supply of each downstream USB interface corresponding to the load. The test judgment module 501 will then determine whether the target USB Hub is powered stably when all USB interfaces are connected to a load based on the third power supply voltage and the preset voltage range and the third power supply power and the preset power range. If the third power supply voltage is within the preset voltage range and the third power supply power is within the preset power range, it is determined that the target USB Hub is powered stably when all downstream USB interfaces are connected to a load; otherwise, it is determined that the target USB Hub is powered unstable when all downstream USB interfaces are connected to a load.
[0094] As can be seen, in this example, the power test module can dynamically adjust the load connected to the downlink USB interface through the load adjustment module, and then notify the test judgment module to perform test judgment. Furthermore, the load adjustment module can adjust the load corresponding to the USB interface to the target power load, and then notify the test judgment module to perform test judgment, which helps to improve the comprehensiveness and accuracy of power testing.
[0095] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device 1 provided in an embodiment of this application. The electronic device 1 includes:
[0096] The protocol detection module 10 is connected to the channel switch module 20, the target USB Hub 1b, the communication test module 30, the control center module 40, the power test module 50, and the USB interface test module 60, respectively. Upon receiving a start test notification from the control center module 40, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of multiple downlink USB interfaces of the target USB Hub 1b, and sends the first protocol version and the multiple second protocol versions to the communication test module 30, the control center module 40, and the USB interface test module 60, respectively. It also controls the channel switch module 20 to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module 20 to switch to the communication test channel, it sends a communication test notification to the communication test module 30; after controlling the channel switch module 20 to switch to the power test channel, it sends a power test notification to the power test module 50; and after controlling the channel switch module 20 to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module 60.
[0097] The communication test module 30 is connected to the target USB Hub1b and the control center module 40 respectively. It is used to receive the first protocol version and the plurality of second protocol versions. When it receives the communication test notification sent by the protocol detection module 10, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module 40 through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0098] The control center module 40, connected to the target USB Hub 1b, is used to send a first instruction to the protocol detection module 10 to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module 10, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, it sends a second instruction to the protocol detection module 10 to switch to the power test channel.
[0099] The power test module 50 is connected to the target USB Hub1b and is used to perform power tests on each of the downlink USB interfaces when it receives the power test notification sent by the protocol detection module 10, and to send a third instruction to the protocol detection module 10 to switch to the USB interface test channel after completing the power test on each of the downlink USB interfaces.
[0100] The USB interface testing module 60 is connected to the target USB Hub 1b and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection module 10. When receiving the USB interface test notification sent by the protocol detection module 10, the downstream USB interface of the target USB Hub 1b with the second protocol version of USB 4.0 is taken as the target USB interface, and the target USB interface is tested for transmitting end, receiving end, return loss and sideband signal.
[0101] As can be seen from this embodiment, when the protocol detection module 10 in the electronic device 1 receives the start test notification sent by the control center module 40, it determines the first protocol version of the uplink USB interface of the target USB Hub 1b and the multiple second protocol versions of the multiple downlink USB interfaces. It then sends the first protocol version and the multiple second protocol versions to the communication test module 30, the control center module 40, and the USB interface test module 60, respectively. The communication test module 30 and the control center module 40 complete the communication test of the target USB Hub based on the first protocol version and the multiple second protocol versions. Next, the power test module 50 performs a power test on the target USB Hub. Finally, the USB interface test module 60 performs transmitter test, receiver test, return loss test, and sideband signal test on the USB 4.0 protocol interface. This achieves automated communication and power testing of the USB Hub's USB interface, especially enabling corresponding tests on the USB 4.0 protocol interface, which helps save labor costs and improve testing efficiency.
[0102] Please see Figure 4 , Figure 4 This is a flowchart illustrating a universal serial bus hub testing method provided in this application embodiment. It is applied to electronic devices or universal serial bus hub testing systems. The electronic devices include: a channel switch module, a protocol detection module, a communication testing module, a power testing module, a USB interface testing module, and a control center module. As shown in the figure, this universal serial bus hub testing method includes the following operations.
[0103] S401. Upon receiving the start test notification from the control center module, the protocol detection module determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub. The first protocol version and the multiple second protocol versions are then sent to the communication test module, the control center module, and the USB interface test module, respectively. The module also controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After switching the channel switch module to the communication test channel, a communication test notification is sent to the communication test module. After switching the channel switch module to the power test channel, a power test notification is sent to the power test module. After switching the channel switch module to the USB interface test channel, a USB interface test notification is sent to the USB interface test module.
[0104] S402. The communication test module receives the first protocol version and the plurality of second protocol versions. When the communication test notification sent by the protocol detection module is received, it is determined whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, a preset data packet is sent to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0105] S403. When the control center module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, it sends a first instruction to the protocol detection module to switch to the communication test channel, and sequentially calculates the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes. It then determines whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, a second instruction to switch to the power test channel is sent to the protocol detection module.
[0106] S404. When the power test module receives the power test notification sent by the protocol detection module, it performs a power test on each of the downlink USB interfaces, and after completing the power test on each of the downlink USB interfaces, it sends a third instruction to the protocol detection module to switch to the USB interface test channel.
[0107] S405. The USB interface testing module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, and when it receives the USB interface test notification sent by the protocol detection module, it takes the downstream USB interface of the target USB Hub with the second protocol version of USB4.0 as the target USB interface, and performs transmitting end test, receiving end test, return loss test and sideband signal test on the target USB interface.
[0108] As can be seen from this embodiment, when the protocol detection module receives the start test notification sent by the control center module, it determines the first protocol version of the target USB Hub's uplink USB interface and multiple second protocol versions of its multiple downlink USB interfaces. The first protocol version and the multiple second protocol versions are then sent to the communication test module, the control center module, and the USB interface test module, respectively. The communication test module and the control center module complete the communication test of the target USB Hub based on the first protocol version and the multiple second protocol versions. Next, the power test module performs a power test on the target USB Hub. Finally, the USB interface test module performs transmitter, receiver, return loss, and sideband signal tests on the USB 4.0 protocol interface. This achieves automated communication and power testing of the USB Hub's USB interface, particularly enabling testing of USB 4.0 protocol interfaces, which helps save labor costs and improves testing efficiency.
[0109] In one possible example, the communication test module includes multiple CyUSB3014 modules, each of which corresponds to a module number. Each CyUSB3014 module is connected to each of the downstream USB interfaces of the target USB Hub. The CyUSB3014 module is used to send the preset data packet to the control center module through the corresponding downstream USB interface according to the module number and the first protocol version.
[0110] In one possible example, the USB interface testing module includes a USB interface testing control module, a transmitter testing module, a receiver testing module, a return loss testing module, and a sideband signal testing module. The transmitter testing module performs eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitter of the target USB interface. The receiver testing module performs error burst testing and signal frequency variation testing on the receiver of the target USB interface. The return loss testing module performs differential return loss testing and common-mode loss testing on both the transmitter and receiver of the target USB interface. The sideband signal testing module performs sideband signal voltage testing, sideband signal rise time testing, and sideband signal fall time testing on the sideband signals.
[0111] Regarding the testing of the target USB interface, including transmitting end testing, receiving end testing, return loss testing, and sideband signal testing, the USB interface test control module is specifically used for:
[0112] The system controls the transmitting end test module to perform the transmitting end test on the target USB interface, controls the receiving end test module to perform the receiving end test on the target USB interface, controls the return loss test module to perform the return loss test on the target USB interface, and controls the sideband signal test module to perform the sideband signal test on the target USB interface.
[0113] In one possible example, the transmitter test module includes an equalization calibration module, an eye diagram test module, a jitter test module, and a spread spectrum clock test module. The eye diagram test module is used to determine eye diagram metric information associated with the equalization of the target transmitter in the target USB interface, and to determine whether the eye diagram metric data corresponding to the eye diagram metric information is greater than a corresponding first preset threshold. If the eye diagram metric data is greater than the first preset threshold, the eye diagram test of the target USB interface is determined to be qualified; if the eye diagram metric data is less than or equal to the first preset threshold, the eye diagram test of the target USB interface is determined to be unqualified. The jitter test module... The system is used to determine the jitter index information associated with the equalization of the target transmitting end in the target USB interface, and to determine whether the jitter index data corresponding to the jitter index information is greater than the corresponding second preset threshold. If the jitter index data is greater than the second preset threshold, the jitter test of the target USB interface is determined to be qualified. If the jitter index data is less than or equal to the second preset threshold, the jitter test of the target USB interface is determined to be unqualified. The spread spectrum clock test module is used to perform spread spectrum clock down-spread range test, down-spread rate test, phase offset test and conversion rate test associated with the equalization of the target transmitting end on the target USB interface.
[0114] In performing eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitting end of the target USB interface, the equalization calibration module is specifically used for:
[0115] The transmitter equalizer of the target USB interface is calibrated to obtain the calibrated target transmitter equalizer. Then, the eye diagram test module is controlled to perform the eye diagram test on the target USB interface, the jitter test module is controlled to perform the jitter test on the target USB interface, and the spread spectrum clock test module is controlled to perform the spread spectrum clock test on the target USB interface.
[0116] In a possible example, the receiving - end test module includes a waveform calibration module, an error burst test module, and a signal frequency change training test module. Among them, the error burst test module is used to detect the target probability of restart errors after the receiving end of the target USB interface correctly receives a decision signal with a preset number of bits, and to determine whether the target probability is less than a third preset threshold. If the target probability is less than the third preset threshold, it is determined that the error burst test of the target USB interface is qualified; if the target probability is greater than or equal to the third preset threshold, it is determined that the error burst test of the target USB interface is unqualified. The signal frequency change training test module is used to determine the bit error probability of the transmission signal at the receiving end of the target USB interface, and to determine whether the bit error probability is less than a fourth preset threshold. If the bit error probability is less than the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is qualified; if the bit error probability is greater than or equal to the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is unqualified.
[0117] In terms of performing the error burst test and the signal frequency change test on the receiving end of the target USB interface, the waveform calibration module is specifically used for:
[0118] Calibrating the signal waveform of the detected target USB interface, and sequentially controlling the error burst test module to perform an error burst test on the USB interface, and controlling the signal frequency change training test module to perform a signal frequency change training test on the target USB interface.
[0119] In a possible example, the power test module includes a test judgment module. The test judgment module is used to test whether the supply voltage corresponding to each of the downstream USB interfaces is within a preset range, and to test whether the supply power corresponding to each of the downstream USB interfaces is within a preset power range. If the supply voltage corresponding to the downstream USB interface is not within the preset range or the supply power is not within the preset power range, it is determined that the power test of the downstream USB interface is unqualified; if the supply voltage corresponding to the downstream USB interface is within the preset range and the supply power is within the preset power range, it is determined that the power test of the downstream USB interface is qualified.
[0120] In a possible example, the power test module further includes multiple USB load modules and a load adjustment module. Each of the USB load modules is connected to each of the downstream USB interfaces of the target USB Hub. The load adjustment module is respectively connected to the USB load module and the test judgment module. The load adjustment module is used to adjust the load corresponding to the load module, and after adjusting the load, send a target test notification to the test judgment module.
[0121] The above primarily describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0122] This application embodiment can divide the electronic device into functional units according to the above method example. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0123] When dividing each function into modules according to its corresponding function. Figure 5 A functional unit block diagram of a universal serial bus hub test device 5 is presented, which is applied to electronic devices, such as... Figure 5 As shown, the Universal Serial Bus hub test apparatus 5 may include:
[0124] Protocol detection unit 51 is connected to channel switch unit 52, target USB Hub, communication test unit 53, control center unit 54, power test unit 55, and USB interface test unit 56, respectively. When receiving a start test notification from control center unit 54, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of multiple downlink USB interfaces of the target USB Hub, and sends the first protocol version and the multiple second protocol versions to communication test unit 53, control center unit 54, and USB interface test unit 56, respectively. It also controls channel switch unit 52 to switch between communication test channel, power test channel, and USB interface test channel according to instructions. After controlling channel switch unit 52 to switch to communication test unit 53, it sends a communication test notification to communication test module. After controlling channel switch unit 52 to switch to power test channel, it sends a power test notification to power test unit 55. After controlling channel switch unit 52 to switch to USB interface test channel, it sends a USB interface test notification to USB interface test unit 56.
[0125] The communication test unit 53 is connected to the target USB Hub and the control center unit 54 respectively, and is used to receive the first protocol version and the plurality of second protocol versions. When receiving the communication test notification sent by the protocol detection unit 51, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center unit 54 through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet.
[0126] The control center unit 54, connected to the target USB Hub, is used to send a first instruction to the protocol detection unit 51 to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection unit 51, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and to determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, it sends a second instruction to the protocol detection unit 51 to switch to the power test channel.
[0127] The power testing unit 55 is connected to the target USB Hub and is used to perform power testing on each of the downlink USB interfaces when receiving the power testing notification sent by the protocol detection unit 51, and to send a third instruction to the protocol detection unit to switch to the USB interface test channel after completing the power testing on each of the downlink USB interfaces.
[0128] The USB interface testing unit 56 is connected to the target USB Hub and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection unit 51. When receiving the USB interface test notification sent by the protocol detection unit 51, the downstream USB interface of the target USB Hub with the second protocol version of USB4.0 is taken as the target USB interface, and the target USB interface is tested for transmitting end, receiving end, return loss and sideband signal.
[0129] As can be seen from this embodiment, when the protocol detection unit 51 receives the start test notification sent by the control center unit 54, it determines the first protocol version of the uplink USB interface of the target USB Hub and the multiple second protocol versions of the multiple downlink USB interfaces. It then sends the first protocol version and the multiple second protocol versions to the communication test unit 53, the control center unit 54, and the USB interface test unit 55, respectively. The communication test unit 53 and the control center unit 54 complete the communication test of the target USB Hub based on the first protocol version and the multiple second protocol versions. Next, the power test unit performs a power test on the target USB Hub. Finally, the USB interface test unit 55 performs transmitter testing, receiver testing, return loss testing, and sideband signal testing on the USB 4.0 protocol interface. This achieves automated communication and power testing of the USB Hub's USB interface, especially enabling testing of the USB 4.0 protocol interface, which helps save labor costs and improve testing efficiency.
[0130] In one possible example, the communication test module includes multiple CyUSB3014 modules, each of which corresponds to a module number. Each CyUSB3014 module is connected to each of the downstream USB interfaces of the target USB Hub. The CyUSB3014 module is used to send the preset data packet to the control center module through the corresponding downstream USB interface according to the module number and the first protocol version.
[0131] In one possible example, the USB interface testing module includes a USB interface testing control module, a transmitter testing module, a receiver testing module, a return loss testing module, and a sideband signal testing module. The transmitter testing module performs eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitter of the target USB interface. The receiver testing module performs error burst testing and signal frequency variation testing on the receiver of the target USB interface. The return loss testing module performs differential return loss testing and common-mode loss testing on both the transmitter and receiver of the target USB interface. The sideband signal testing module performs sideband signal voltage testing, sideband signal rise time testing, and sideband signal fall time testing on the sideband signals.
[0132] Regarding the testing of the target USB interface, including transmitting end testing, receiving end testing, return loss testing, and sideband signal testing, the USB interface test control module is specifically used for:
[0133] The system controls the transmitting end test module to perform the transmitting end test on the target USB interface, controls the receiving end test module to perform the receiving end test on the target USB interface, controls the return loss test module to perform the return loss test on the target USB interface, and controls the sideband signal test module to perform the sideband signal test on the target USB interface.
[0134] In one possible example, the transmitter test module includes an equalization calibration module, an eye diagram test module, a jitter test module, and a spread spectrum clock test module. The eye diagram test module is used to determine eye diagram metric information associated with the equalization of the target transmitter in the target USB interface, and to determine whether the eye diagram metric data corresponding to the eye diagram metric information is greater than a corresponding first preset threshold. If the eye diagram metric data is greater than the first preset threshold, the eye diagram test of the target USB interface is determined to be qualified; if the eye diagram metric data is less than or equal to the first preset threshold, the eye diagram test of the target USB interface is determined to be unqualified. The jitter test module... The system is used to determine the jitter index information associated with the equalization of the target transmitting end in the target USB interface, and to determine whether the jitter index data corresponding to the jitter index information is greater than the corresponding second preset threshold. If the jitter index data is greater than the second preset threshold, the jitter test of the target USB interface is determined to be qualified. If the jitter index data is less than or equal to the second preset threshold, the jitter test of the target USB interface is determined to be unqualified. The spread spectrum clock test module is used to perform spread spectrum clock down-spread range test, down-spread rate test, phase offset test and conversion rate test associated with the equalization of the target transmitting end on the target USB interface.
[0135] In performing eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitting end of the target USB interface, the equalization calibration module is specifically used for:
[0136] The transmitter equalizer of the target USB interface is calibrated to obtain the calibrated target transmitter equalizer. Then, the eye diagram test module is controlled to perform the eye diagram test on the target USB interface, the jitter test module is controlled to perform the jitter test on the target USB interface, and the spread spectrum clock test module is controlled to perform the spread spectrum clock test on the target USB interface.
[0137] In a possible example, the receiving end test module includes a waveform calibration module, an error burst test module, and a signal frequency change training test module. Among them, the error burst test module is used to detect the target probability of restart errors after the receiving end of the target USB interface correctly receives a decision signal with a preset number of bits, and to determine whether the target probability is less than a third preset threshold. If the target probability is less than the third preset threshold, it is determined that the error burst test of the target USB interface is qualified; if the target probability is greater than or equal to the third preset threshold, it is determined that the error burst test of the target USB interface is unqualified. The signal frequency change training test module is used to determine the bit error probability of the transmission signal of the receiving end of the target USB interface, and to determine whether the bit error probability is less than a fourth preset threshold. If the bit error probability is less than the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is qualified; if the bit error probability is greater than or equal to the fourth preset threshold, it is determined that the signal frequency change test of the target USB interface is unqualified;
[0138] In terms of performing the error burst test and the signal frequency change test on the receiving end of the target USB interface, the waveform calibration module is specifically used for:
[0139] Calibrating the signal waveform of the detected target USB interface, and sequentially controlling the error burst test module to perform an error burst test on the USB interface, and controlling the signal frequency change training test module to perform a signal frequency change training test on the target USB interface.
[0140] In a possible example, the power test module includes a test judgment module. The test judgment module is used to test whether the supply voltage corresponding to each of the downstream USB interfaces is within a preset range, and to test whether the supply power corresponding to each of the downstream USB interfaces is within a preset power range. If the supply voltage corresponding to the downstream USB interface is not within the preset range or the supply power is not within the preset power range, it is determined that the power test of the downstream USB interface is unqualified; if the supply voltage corresponding to the downstream USB interface is within the preset range and the supply power is within the preset power range, it is determined that the power test of the downstream USB interface is qualified.
[0141] In a possible example, the power test module further includes a plurality of USB load modules and a load adjustment module. Each of the USB load modules is connected to each of the downstream USB interfaces of the target USB Hub. The load adjustment module is respectively connected to the USB load module and the test judgment module. The load adjustment module is used to adjust the load corresponding to the load module, and after adjusting the load, send a target test notification to the test judgment module.
[0142] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0143] The electronic device provided in this embodiment is used to perform the above-described Universal Serial Bus hub testing method, and therefore can achieve the same effect as the above implementation method.
[0144] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.
[0145] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer includes a control platform.
[0146] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0147] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0149] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0150] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0151] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0152] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk, or an optical disk, etc.
[0153] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A universal serial bus hub testing system, characterized in that, include: The protocol detection module is connected to the channel switch module, the target USB Hub, the communication test module, the control center module, the power test module, and the USB interface test module, respectively. Upon receiving a start test notification from the control center module, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub, and sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. It also controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module to switch to the communication test channel, it sends a communication test notification to the communication test module; after controlling the channel switch module to switch to the power test channel, it sends a power test notification to the power test module; and after controlling the channel switch module to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module. The communication test module is connected to the target USB Hub and the control center module respectively, and is used to receive the first protocol version and the plurality of second protocol versions. When receiving the communication test notification sent by the protocol detection module, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet. The control center module, connected to the target USB Hub, is used to send a first instruction to the protocol detection module to switch to the communication test channel when it receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, and to sequentially calculate the target data volume sent by each of the downlink USB interfaces within a preset time period to obtain a plurality of target data volumes, and determine whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After completing the determination of whether each downlink USB interface communication test is qualified, a second instruction to switch to the power test channel is sent to the protocol detection module. The power testing module is connected to the target USB Hub and is used to perform power testing on each of the downlink USB interfaces when receiving the power testing notification sent by the protocol detection module, and to send a third instruction to the protocol detection module to switch to the USB interface test channel after completing the power testing on each of the downlink USB interfaces. The USB interface testing module is connected to the target USB Hub and is used to receive the first protocol version and the plurality of second protocol versions sent by the protocol detection module. When receiving the USB interface test notification sent by the protocol detection module, the module selects the downstream USB interface of the target USB Hub with the second protocol version being USB4.0 as the target USB interface and performs transmitter test, receiver test, return loss test and sideband signal test on the target USB interface.
2. The system according to claim 1, characterized in that, The communication test module includes multiple CyUSB3014 modules, each of which corresponds to a module number. Each CyUSB3014 module is connected to each downstream USB interface of the target USB Hub. The CyUSB3014 module is used to send the preset data packet to the control center module through the corresponding downstream USB interface according to the module number and the first protocol version.
3. The system according to claim 1, characterized in that, The USB interface testing module includes a USB interface testing control module, a transmitter testing module, a receiver testing module, a return loss testing module, and a sideband signal testing module. The transmitter testing module performs eye diagram testing, jitter testing, and spread spectrum clock testing on the transmitter of the target USB interface. The receiver testing module performs error burst testing and signal frequency variation testing on the receiver of the target USB interface. The return loss testing module performs differential return loss testing and common-mode loss testing on both the transmitter and receiver of the target USB interface. The sideband signal testing module performs sideband signal voltage testing, sideband signal rise time testing, and sideband signal fall time testing on the sideband signals. Regarding the testing of the target USB interface, including transmitting end testing, receiving end testing, return loss testing, and sideband signal testing, the USB interface test control module is specifically used for: The system controls the transmitting end test module to perform the transmitting end test on the target USB interface, controls the receiving end test module to perform the receiving end test on the target USB interface, controls the return loss test module to perform the return loss test on the target USB interface, and controls the sideband signal test module to perform the sideband signal test on the target USB interface.
4. The system according to claim 3, characterized in that, The sending - end test module includes an equalization calibration module, an eye - diagram test module, a jitter test module, and a spread - spectrum clock test module. Among them, the eye - diagram test module is used to determine the eye - diagram metric information associated with the target sending - end equalization in the target USB interface, and to judge whether the eye - diagram metric data corresponding to the eye - diagram metric information is greater than the corresponding first preset threshold. If the eye - diagram metric data is greater than the first preset threshold, it is determined that the eye - diagram test of the target USB interface is qualified; if the eye - diagram metric data is less than or equal to the first preset threshold, it is determined that the eye - diagram test of the target USB interface is unqualified. The jitter test module is used to determine the jitter metric information associated with the target sending - end equalization in the target USB interface, and to judge whether the jitter metric data corresponding to the jitter metric information is greater than the corresponding second preset threshold. If the jitter metric data is greater than the second preset threshold, it is determined that the jitter test of the target USB interface is qualified; if the jitter metric data is less than or equal to the second preset threshold, it is determined that the jitter test of the target USB interface is unqualified. The spread - spectrum clock test module is used to perform a spread - spectrum clock down - range test, a down - rate test, a phase - offset test, and a slew - rate test on the target USB interface associated with the target sending - end equalization; In terms of performing an eye - diagram test, a jitter test, and a spread - spectrum clock test on the sending end of the target USB interface, the equalization calibration module is specifically used for: Calibrating the sending - end equalization of the target USB interface to obtain the calibrated target sending - end equalization, and sequentially controlling the eye - diagram test module to perform the eye - diagram test on the target USB interface, controlling the jitter test module to perform the jitter test on the target USB interface, and controlling the spread - spectrum clock test module to perform the spread - spectrum clock test on the target USB interface.
5. The system according to claim 3, characterized in that, The receiving - end test module includes a waveform calibration module, an error - burst test module, and a signal - frequency - change training test module. Among them, the error - burst test module is used to detect the target probability of a restart error after the receiving end of the target USB interface correctly receives a decision signal of a preset number of bits, and to judge whether the target probability is less than a third preset threshold. If the target probability is less than the third preset threshold, it is determined that the error - burst test of the target USB interface is qualified; if the target probability is greater than or equal to the third preset threshold, it is determined that the error - burst test of the target USB interface is unqualified. The signal - frequency - change training test module is used to determine the bit - error probability of the transmission signal of the receiving end of the target USB interface, and to judge whether the bit - error probability is less than a fourth preset threshold. If the bit - error probability is less than the fourth preset threshold, it is determined that the signal - frequency - change test of the target USB interface is qualified; if the bit - error probability is greater than or equal to the fourth preset threshold, it is determined that the signal - frequency - change test of the target USB interface is unqualified; In terms of performing error burst testing and signal frequency variation testing on the receiving end of the target USB interface, the waveform calibration module is specifically used for: The detected signal waveform of the target USB interface is calibrated, and the error burst test module is sequentially controlled to perform error burst test on the USB interface, and the signal frequency change training test module is controlled to perform signal frequency change training test on the target USB interface.
6. The system according to claim 1, characterized in that, The power testing module includes a test judgment module, which is used to test whether the power supply voltage corresponding to each downlink USB interface is within a preset range, and to test whether the power supply power corresponding to each downlink USB interface is within a preset power range. If the power supply voltage or the power supply power corresponding to the downlink USB interface is not within the preset range, the downlink USB interface power test is determined to be unqualified. If the power supply voltage and the power supply power corresponding to the downlink USB interface are within the preset range, the downlink USB interface power test is determined to be qualified.
7. The system according to claim 6, characterized in that, The power testing module further includes multiple USB load modules and a load adjustment module. Each USB load module is connected to each downstream USB interface of the target USB Hub. The load adjustment module is connected to the USB load module and the test judgment module respectively. The load adjustment module is used to adjust the load corresponding to the USB load module and, after adjusting the load, send a target test notification to the test judgment module.
8. A test method for a universal serial bus hub, characterized in that, This system is applied to testing electronic devices or universal serial bus hubs. The electronic devices include: a channel switch module, a protocol detection module, a communication test module, a power test module, a USB interface test module, and a control center module. The method includes: When the protocol detection module receives the start test notification sent by the control center module, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of multiple downlink USB interfaces of the target USB Hub. It then sends the first protocol version and the multiple second protocol versions to the communication test module, the control center module, and the USB interface test module, respectively. Furthermore, it controls the channel switch module to switch between the communication test channel, the power test channel, and the USB interface test channel according to instructions. After controlling the channel switch module to switch to the communication test channel, it sends a communication test notification to the communication test module. After controlling the channel switch module to switch to the power test channel, it sends a power test notification to the power test module. After controlling the channel switch module to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test module. The communication test module receives the first protocol version and the plurality of second protocol versions. When it receives the communication test notification sent by the protocol detection module, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center module through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet. When the control center module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module, it sends a first instruction to the protocol detection module to switch to the communication test channel, and sequentially calculates the target data volume sent by each downlink USB interface within a preset time to obtain a plurality of target data volumes. It then determines whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it is determined that the downlink USB interface communication test corresponding to the target data volume is qualified. After determining whether each downlink USB interface communication test is qualified, the control center module sends a second instruction to the protocol detection module to switch to the power test channel. When the power test module receives the power test notification sent by the protocol detection module, it performs a power test on each of the downlink USB interfaces, and after completing the power test on each of the downlink USB interfaces, it sends a third instruction to the protocol detection module to switch to the USB interface test channel. The USB interface testing module receives the first protocol version and the plurality of second protocol versions sent by the protocol detection module. When it receives the USB interface test notification sent by the protocol detection module, it takes the downstream USB interface of the target USB Hub with the second protocol version of USB4.0 as the target USB interface and performs transmitting end test, receiving end test, return loss test and sideband signal test on the target USB interface.
9. A universal serial bus hub testing device, characterized in that, An application in a Universal Serial Bus (USB) hub testing system, the USB hub testing device includes a protocol detection unit, a communication testing unit, a control center unit, a power testing unit, and a USB interface testing unit, wherein... When the protocol detection unit receives the start test notification sent by the control center unit, it determines the first protocol version of the uplink USB interface and multiple second protocol versions of the multiple downlink USB interfaces of the target USB Hub, and sends the first protocol version and the multiple second protocol versions to the communication test unit, the control center unit and the USB interface test unit respectively. It also controls the interface test unit to switch between the communication test channel, the power test channel and the USB interface test channel according to instructions. After controlling the interface test unit to switch to the communication test channel, it sends a communication test notification to the communication test unit; after controlling the interface test unit to switch to the power test channel, it sends a power test notification to the power test unit; and after controlling the interface test unit to switch to the USB interface test channel, it sends a USB interface test notification to the USB interface test unit. The communication testing unit receives the first protocol version and the plurality of second protocol versions. When it receives the communication test notification sent by the protocol detection unit, it determines whether the first protocol version is the same as each of the plurality of second protocol versions. If the first protocol version is the same as each of the plurality of second protocol versions, it sends a preset data packet to the control center unit through each of the downlink USB interfaces according to the first protocol version. The first protocol version is associated with the preset data packet. When the control center unit receives the first protocol version and the plurality of second protocol versions sent by the protocol detection unit, it sends a first instruction to the protocol detection unit to switch to the communication test channel, and sequentially calculates the target data volume sent by each downlink USB interface within a preset time to obtain a plurality of target data volumes. It then determines whether each target data volume is within a first preset interval corresponding to the first protocol version. If the target data volume is not within the first preset interval, it determines that the downlink USB interface communication test corresponding to the target data volume is unqualified. If the target data volume is within the first preset interval, it determines that the downlink USB interface communication test corresponding to the target data volume is qualified. After determining whether each downlink USB interface communication test is qualified, it sends a second instruction to the protocol detection unit to switch to the power test channel. When the power testing unit receives the power testing notification sent by the protocol detection unit, it performs a power test on each of the downlink USB interfaces and, after completing the power test on each of the downlink USB interfaces, sends a third instruction to the protocol detection unit to switch to the USB interface test channel. The USB interface testing unit receives the first protocol version and the plurality of second protocol versions sent by the protocol detection unit, and when it receives the USB interface test notification sent by the protocol detection unit, it takes the downstream USB interface of the target USB Hub with the second protocol version of USB4.0 as the target USB interface, and performs transmitting end test, receiving end test, return loss test and sideband signal test on the target USB interface.
10. A computer-readable storage medium, characterized in that, A computer program for electronic data interchange is stored, wherein the computer program causes a computer to perform the method as described in claim 8.