Portable USB interface data read-write rate test and eye pattern analysis test device
Through the portable USB interface data read and write rate test and eye diagram analysis test device, combined with the microprocessor, USB Host controller and data acquisition and processing module, the problem of USB eye diagram test equipment in the existing technology being difficult to use on site is solved. It implements efficient read and write performance testing and eye diagram generation of USB ports, suitable for rapid diagnosis and maintenance.
Patent Information
- Application Number
- CN202410894934.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-08
AI Technical Summary
Most of the existing USB eye diagram test equipment is used in laboratory environments, which is difficult to meet the needs of rapid on-site testing, and lacks integrated portable tools to perform data read and write rate testing and eye diagram analysis at the same time.
A portable USB interface data read and write rate test and eye diagram analysis test device is designed, including a microprocessor, USB Host controller and data acquisition and processing module, which can perform high-speed sampling and generate eye diagrams under preset timing, and evaluate USB signal transmission quality, simple structure and portability, suitable for rapid on-site diagnosis and maintenance.
It makes it easier and more efficient to complete USB port read and write performance testing and eye diagram generation on site, simplifies the rapid diagnosis and maintenance of USB signal quality, and meets the needs for rapid response and multi-interface adaptation.
Smart Images

Figure CN118748035A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic testing equipment, and more specifically, to a portable USB interface data reading and writing rate test and eye diagram analysis test device. Background Art
[0002] With the continuous evolution of USB technology, the USB interface has become one of the standard interfaces for data transmission between electronic devices. Its high-speed transmission capability places higher demands on signal integrity. Eye diagram testing is a key means of evaluating USB signal quality and diagnosing signal integrity issues. However, existing USB eye diagram testing solutions are mostly based on laboratory environments, with bulky and inconvenient equipment to carry, making it difficult to adapt to the needs of rapid on-site testing.
[0003] In addition, the market lacks a portable tool that integrates data read / write rate testing and eye diagram analysis, which limits the ability of technicians to quickly locate and solve USB communication faults on site. Therefore, it is necessary to study a device that is more suitable for evaluating USB read / write rate and signal quality on site. Summary of the invention
[0004] The present invention aims at solving the technical problems existing in the prior art and provides a portable USB interface data read / write rate test and eye diagram analysis test device, which can complete the read / write performance test and eye diagram generation of the USB port more simply and efficiently, and has a simple structure and portability, and is particularly suitable for on-site rapid diagnosis and maintenance work.
[0005] In order to solve the above problems, the present invention provides a portable USB interface data read and write rate test and eye diagram analysis test device, comprising:
[0006] A microprocessor, used for issuing rate test instructions and eye diagram generation instructions, and also used for calculating the data reading and writing rate of the device under test through the time from when the device under test receives the test data packet to when it responds to the test data packet;
[0007] A USB Host controller, used for sending test data packets to the device under test and receiving test data packets according to the rate test instruction;
[0008] The data acquisition and processing module is used to perform high-speed sampling of USB signals and reconstruct eye diagrams at a preset timing according to the eye diagram generation instruction, and is also used to perform performance evaluation on the reconstructed eye diagrams.
[0009] Based on the above technical solution, the present invention can also make the following improvements.
[0010] Optionally, the data acquisition and processing module includes a high-speed ADC, a DSP module and an FPGA module, wherein:
[0011] The FPGA module is used to configure the working mode and sampling trigger condition of the high-speed ADC according to the eye diagram generation instruction;
[0012] The high-speed ADC is used to perform high-speed sampling of USB signals from the device under test at a preset timing, sampling rate and bit depth according to the configured working mode and sampling trigger conditions;
[0013] The DSP module is used to process the sampling data of the high-speed ADC using a digital signal processing algorithm to reconstruct an eye diagram; and is also used to analyze key parameters of the eye diagram to evaluate the transmission quality of the USB signal from the device under test.
[0014] Optionally, the testing device also includes a signal conditioning module, which is arranged at the front end of the high-speed ADC and is used to adjust the USB signal of the input device to a preset state according to the requirements of the configuration parameters to ensure that the USB signal of the input device meets the sampling requirements before reaching the ADC.
[0015] Optionally, the testing device further comprises a user interaction module, wherein the user interaction module comprises an OLED display module and a touch control module, wherein the display module and the touch control module are respectively connected to the microprocessor for communication.
[0016] The display module is used to display the data read and write rate test results, the eye diagram and the eye diagram evaluation results through a display screen;
[0017] The touch control module is used to provide a user command input channel.
[0018] Optionally, the testing device further includes a wireless communication module, which is communicatively connected to the microprocessor and is used to implement wireless communication with an external device.
[0019] Optionally, the testing device further includes a power supply management module, wherein the power supply management module includes a DC converter, a battery module and a charging management module;
[0020] The DC converter is used to convert the external input DC voltage into a DC voltage suitable for the battery module;
[0021] The battery module is used to charge according to the DC voltage converted by the DC converter, and to provide working power for the electrical devices in the test device;
[0022] The charging management module is used to control the working status of the DC converter and the battery module.
[0023] Optionally, the testing device further comprises a storage module, which is respectively communicatively connected with the microprocessor and the data acquisition and processing module, and is used for storing testing software, historical records and user setting information.
[0024] Optionally, the test device further includes an interface adapter, the interface adapter includes a USB output end and a plurality of different types of USB input ends, the USB output end is connected to the plurality of different types of USB input ends through an interface conversion module; the interface adapter further includes a line hub control chip module, a signal adjustment module and a power management module;
[0025] The multiple input terminals of the line control chip module are connected to multiple different types of USB input terminals in a one-to-one correspondence, the output terminal of the line control chip module is connected to the USB output terminal, and the line control chip module is used to manage and coordinate the data transmission between multiple devices under test and the device through a single USB output terminal;
[0026] The signal conditioning module is used to pre-process signals input from multiple different types of USB input terminals, wherein the pre-processing at least includes signal shaping and amplification, noise suppression, and adaptability / compatibility adjustment;
[0027] The interface conversion module is used to realize the conversion between the interface structure form of different USB input terminals and the interface structure form of the USB output terminal;
[0028] The power management module is used to provide working power for the electrical components in the interface adapter.
[0029] Optionally, the interface adapter further includes a protection unit, which is connected to the interface conversion module and is used to provide any one or more of over-current protection, short-circuit protection, electrostatic discharge protection and temperature protection.
[0030] Optionally, the testing device also includes a USB data cable.
[0031] The invention provides a portable USB interface data read / write rate test and eye diagram analysis test device, which can complete the read / write performance test and eye diagram generation of the USB port more simply and efficiently, and has a simple structure and portability, and is particularly suitable for on-site rapid diagnosis and maintenance work. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the appearance structure of a portable USB interface data read / write rate test and eye diagram analysis test device provided by the present invention;
[0033] Figure 2A schematic diagram of the internal components of the portable USB interface data read / write rate test and eye diagram analysis test device provided in a certain embodiment;
[0034] Figure 3 A schematic diagram of the connection between the portable USB interface data read / write rate test and eye diagram analysis test device and the device under test in a certain implementation scenario;
[0035] Figure 4 A schematic diagram of the internal components of an interface adapter in a certain implementation scenario;
[0036] Figure 5 The figure is a schematic diagram of the working process of the portable USB interface data read and write rate test and eye diagram analysis test device in a certain implementation scenario.
[0037] In the accompanying drawings, the components represented by the reference numerals are listed as follows:
[0038] 001, device under test, 002, interface of the device under test;
[0039] 003, test device, 0031, type A male USB, 0032, OLED display screen, 0033, housing unit; 10, signal conditioning module, 20, power supply management module, 21, DC converter, 22, battery module, 23, charging management module, 30, microprocessor, 40, communication storage module, 41, storage module, 42, USB Host controller, 43, wireless communication module, 50, data acquisition and processing module, 51, high-speed ADC, 52, DSP module, 53, FPGA module, 60, user interaction module, 61, OLED display module, 62, touch module;
[0040] 004, interface adapter, 0041, USB Type-A, 0042, USB Type-B, 0043, Micro-USB, 0044, USB Type-C, 0045, Mini-USB, 0046, Type A female USB, 0047, line hub control chip module, 0048, signal conditioning module, 0049, power management module, 0410, protection unit, 0411, interface conversion module, 0412, PCB board; 005, USB data cable. DETAILED DESCRIPTION
[0041] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0042] See also Figure 1-2 As shown, Figure 1A schematic diagram of the appearance and structure of a portable USB interface data read / write rate test and eye diagram analysis test device provided in this embodiment is shown; Figure 2 The internal structure diagram of the portable USB interface data read and write rate test and eye diagram analysis test device is shown.
[0043] Combination Figure 1 and Figure 2 As shown, a portable USB interface data read / write rate test and eye diagram analysis test device provided in this embodiment at least includes a microprocessor 30, a USB Host controller 42 and a data acquisition and processing module 50, wherein:
[0044] The microprocessor 30 is used to issue rate test instructions and eye diagram generation instructions, and is also used to calculate the data read and write rate of the device under test 001 through the time from the device under test 001 receiving the test data packet to responding to the test data packet. The microprocessor 30 is the core component of this embodiment. It is a CPU for processing complex computing tasks, with high-speed processing capabilities and high efficiency. It integrates a multi-core architecture, a large cache, and supports high-speed buses and memory interfaces. It can provide powerful data processing and computing capabilities while low power consumption. The microprocessor 30 needs to meet the requirements of small size, high performance, low power consumption, scalability and flexibility, and advanced functions. NVIDIA Jetson AGX Xavier is recommended first, and Qualcomm Snapdragon888 is the second choice.
[0045] The USB Host controller 42 is used to send and receive test data packets to the device under test 001 according to the rate test instruction. Specifically, the USB Host controller 42 is mainly responsible for the communication protocol handshake with the external device / device under test 001, and the sending and receiving of data packets. It needs to meet the characteristics of versatility, high-speed transmission, low power consumption, easy development, and compactness. FTDI FT231X is recommended first, and Silicon Labs CP210x series, such as CP2102N, is second.
[0046] The data acquisition and processing module 50 is used to perform high-speed sampling of the USB signal and reconstruct the eye diagram at a preset timing according to the eye diagram generation instruction, and is also used to perform performance evaluation on the reconstructed eye diagram.
[0047] It can be understood that the portable USB interface data read and write rate test and eye diagram analysis test device provided by the present invention can more easily and efficiently complete the read and write performance test and eye diagram generation of the USB port, and has a simple structure and portability, and is particularly suitable for on-site rapid diagnosis and maintenance work.
[0048] like Figure 1The portable USB interface data read / write rate test and eye diagram analysis test device includes a housing unit 0033, on which a display screen for displaying the test process and test results is provided. Figure 1 The OLED display screen 0032 shown; the housing unit 0033 is also provided with a USB interface for connecting to the device under test 001, for example Figure 1 The Type A male USB 0031 is shown.
[0049] More specifically, the housing unit 0033 mentioned above can be made of conventional plastic material, which has the characteristics of lightness, low cost, easy molding, rich colors, strong durability, strong environmental adaptability, etc. The housing unit 0033 is preferably made of ABS, PC, or TPU.
[0050] The Type-A male port USB 0031 is a conventional USB connection interface, which is a flat rectangular shape, with one end wider and the other end having a small bevel design to prevent wrong insertion. The standard Type-A male port size is about 12mm wide and about 4.5mm thick. The above-mentioned Type-A male port USB 0031 has the characteristics of high maturity, strong ease of use, wide compatibility, and low price. The USB 3.1Gen 2-A male head is preferred.
[0051] The OLED display screen 0032 is based on self-luminous display technology made of organic materials. Compared with the traditional LCD (liquid crystal display), the OLED display screen 0032 does not need a backlight source, and each pixel can emit light by itself. It has the characteristics of bright color performance, wide visual range, fast response speed, energy saving, and thin and light design. Samsung AMOLED or Flexible OLED is preferred.
[0052] During the test, the test device 003 communicates with the device under test 001 via the Type A male USB port 0031 provided on the housing unit 0033, and then implements USB interface data transmission rate test and eye diagram generation and analysis through the microprocessor 30, USB Host controller 42 and data acquisition and processing module 50, and intuitively displays the test process and test results through the OLED display screen 0032, which is particularly suitable for on-site rapid diagnosis and maintenance work.
[0053] In a possible embodiment, Figure 2 The figure shows the internal functional module composition diagram of the portable USB interface data read and write rate test and eye diagram analysis test device. The data acquisition and processing module 50 includes a high-speed ADC 51, a DSP module 52 and an FPGA module 53, wherein:
[0054] The FPGA module 53 is used to configure the working mode and sampling trigger conditions of the high-speed ADC 51 according to the eye diagram generation instruction; specifically, the FPGA module 53 is an integrated circuit whose internal structure can be reconfigured by programming in the hands of the user to realize specific digital logic functions. Its flexibility and programmability can realize various digital circuits such as state machines, arithmetic logic units, filters, etc. according to user needs, and can have functions such as logic design implementation, high-speed data processing, interface bridging and protocol conversion, prototype verification, reconfigurability, etc. It has the characteristics of high flexibility, upgradeability, low latency, high performance, low power consumption, small size, easy integration, etc., and the Xilinx Artix-7 series is recommended first: such as Artix-7FPGA, and the Lattice iCE40 UltraPlus series is second: such as CSFBGA-38;
[0055] The high-speed ADC 51 is used to perform high-speed sampling of the USB signal from the device under test 001 at a preset timing, sampling rate and bit depth according to the configured working mode and sampling trigger conditions; the high-speed ADC 51 is mainly responsible for quickly and accurately converting the analog signal into a digital signal, and has the functions of high sampling rate, high resolution, low distortion and noise, multi-channel capability, and active interface, and has the characteristics of high speed, high precision, low power consumption, and high integration. The preferred recommendation is: Analog Devices AD9288, and the second choice is Texas Instruments ADC12J4000;
[0056] The DSP module 52 is used to process the sampled data of the high-speed ADC 51 using a digital signal processing algorithm to reconstruct an eye diagram; it is also used to analyze key parameters of the eye diagram to evaluate the transmission quality of the USB signal from the device under test 001. The DSP module 52 is mainly responsible for processing the digital signal processed by the high-speed ADC 51. It has the advantages of high-speed data processing, parallel processing capability, low power consumption, flexible programming, and rich interfaces. It has the advantages of high efficiency and high integration. Texas Instruments (TI) C6000 series: such as TMS320C6748 is preferred, and Analog Devices (ADI) Blackfin series: such as ADSP-BF707 is second.
[0057] like Figure 2 As shown, the test device 003 also includes a signal conditioning module 10, which is arranged at the front end of the high-speed ADC 51 and is used to adjust the USB signal of the input device to a preset state according to the requirements of the configuration parameters to ensure that the USB signal of the input device meets the sampling requirements before reaching the ADC.
[0058] More specifically, the signal conditioning module 10 is a device for signal conditioning, which includes a differential signal amplifier (such as THS4531) and a line driver / receiver (such as SN65LVDS14A) to ensure signal integrity. It has the advantages of improving signal strength and quality, increasing system stability, simplifying complex designs, and high flexibility and compatibility. The National Instruments (NI) SC Series is preferred, and the Maxim Integrated MAX4208 / MAX4209 series is second.
[0059] like Figure 2 As shown, the testing device 003 further includes a user interaction module 60 , and the user interaction module 60 includes an OLED display module 61 and a touch control module 62 , and the OLED display module 61 and the touch control module 62 are respectively connected to the microprocessor 30 for communication.
[0060] The OLED display module 61 is used to display the data read and write rate test results, the eye diagram and the eye diagram evaluation results through the OLED display screen 0032; the display module in this embodiment preferably adopts the OLED display module 61, whose main component is the OLED display screen 0032, which is a self-luminous display technology made of organic materials. Compared with the traditional LCD (liquid crystal display), the OLED display screen 0032 does not require a backlight source, and each pixel can emit light by itself. It has the characteristics of bright color performance, wide visual range, fast response speed, energy saving, and light and thin design. Samsung AMOLED or Flexible OLED is recommended.
[0061] The touch module 62 is used to provide a user command input channel. In this embodiment, the touch module 62 is a device that integrates touch detection and processing functions, allowing users to input commands or data by directly touching the screen, supporting touch detection, multi-touch, gesture recognition, touch feedback, high durability, and its advantages are intuitive interaction, no physical buttons, high flexibility, high efficiency, and wide application. Capacitive touch screens are preferred, such as BOE's fully laminated capacitive screens, and projected capacitive screens are second, such as Elo TouchSystems or NEXCOM's industrial-grade touch screens.
[0062] like Figure 2 As shown, the testing device 003 further includes a power supply management module 20 , and the power supply management module 20 includes a DC converter 21 , a battery module 22 and a charging management module 23 .
[0063] The DC converter 21 is used to convert the external input DC voltage into a DC voltage adapted to the battery module 22. In this embodiment, the DC converter 21 is a device that can convert a DC voltage level into another DC voltage of a different level, and can increase (boost) or decrease (buck), and can also switch between boost and buck (bidirectional converter). It needs to meet the characteristics of small size, low power consumption, high efficiency, wide input voltage range, low noise, intelligence, etc. Texas Instruments LMZ series is preferred: such as LMZ14001, and Richtek RT6158A is second.
[0064] The battery module 22 is used to charge according to the DC voltage converted by the DC converter 21, and to provide working power for the electrical devices in the test device 003. The battery module 22 is responsible for powering the entire test instrument, and it has a stable power output and strong energy storage. In order to improve the portability of the test device 003, it needs to have the characteristics of small size, high energy density, safety, intelligence, fast charging and discharging, etc. As a preferred choice, Murata17670BluetoothSmart Ready Rechargeable Battery Module is recommended first, and Adafruit 1500mAh Slim Lithium IonBattery is the second choice.
[0065] The charging management module 23 is used to control the working state of the DC converter 21 and the battery module 22. It can be understood that the charging management module 23 is an electronic system responsible for monitoring and controlling the battery charging process. It plays a key role in ensuring safe and efficient charging of the battery. Its functions mainly include voltage and current control, thermal management, charging state monitoring, safety protection, battery balancing, communication, etc. Because it needs to meet the characteristics of high safety, extended battery life, improved charging efficiency, design flexibility, and easy integration, Texas Instruments BQ24190 is recommended first, and Linear Technology (Analog Devices) LTC4000 is second.
[0066] like Figure 2 As shown, the testing device 003 further includes a wireless communication module 43, and the wireless communication module 43 is communicatively connected to the microprocessor 30 for realizing wireless communication with external devices.
[0067] It can be understood that the wireless communication module 43 is mainly responsible for wireless communication with external devices and sending the test results to the cloud or the user's PC or any designated device. It needs to have the characteristics of small size, low power consumption, strong compatibility, easy integration, global certification, etc. ESP32-S2 is recommended first, and nRF52840 by Nordic Semiconductor is second.
[0068] like Figure 2 As shown, the test device 003 also includes a storage module 41, which is respectively connected to the microprocessor 30 and the data acquisition and processing module 50 for storing test software, historical records and user setting information. The storage module 41 needs to have functions such as large capacity, low cost, fast reading and writing, high reliability, data preservation after power failure, and support for code execution. Micron Serial NOR Flash of NOR Flash is preferred: such as Micron MT25QL series, and eMMC is second: such as Samsung KLMBG4GE4A-B041 eMMC 5.1.
[0069] In this embodiment, the wireless communication module 43, the storage module 41 and the USB Host controller 42 together constitute the communication storage module 40. The communication storage module 40 is responsible for the communication protocol handshake with the external device, the sending and receiving of data packets, the storage of test software, historical records and user setting information, and the support of remote transmission of test results and device firmware update.
[0070] Figure 3 The schematic diagram of the connection between the portable USB interface data read / write rate test and eye diagram analysis test device and the device under test 001 in this embodiment is shown. In order to make the test device 003 of the above-mentioned embodiments of the present invention applicable to devices under test 001 of more USB interface types, the test device 003 also includes an interface adapter 004, and the interface adapter 004 includes a USB output end and multiple different types of USB input ends, and the USB output end is connected to multiple different types of USB input ends through an interface conversion module 0411. Figure 3 As shown, during the test process, the test device 003 is in communication connection with the device under test 001 via the interface adapter 004 and / or the USB data line 005 .
[0071] The interface adapter 004 is a signal adapter device that supports multiple interfaces and converts one type of USB interface into another type of USB interface. Figure 4 The figure shows the internal structure of the interface adapter 004, combined with Figure 3 and Figure 4As shown, the interface adapter 004 also includes a hub control chip module 0047 , a signal adjustment module 0048 and a power management module 0049 .
[0072] The multiple input terminals of the line control chip module 0047 are connected to multiple different types of USB input terminals in a one-to-one correspondence, for example Figure 3 and Figure 4 The USB Type-A 0041, USB Type-B 0042, Micro-USB 0043, USB Type-C 0044, Mini-USB 0045 shown, any one or more of the USB Type-A 0041, USB Type-B 0042, Micro-USB 0043, USB Type-C 0044, Mini-USB 0045 can be connected to the device under test 001, and the output end of the hub control chip module 0047 is connected to the USB output end, for example Figure 3 and Figure 4 The A-type female USB 0046 is shown, and the A-type female USB 0046 is correspondingly connected to the A-type male USB 0031 of the test device 003. The hub control chip module 0047 is used to manage and coordinate the data transmission between multiple devices under test 001 and the device through a single USB output terminal.
[0073] It can be understood that the hub control chip module 0047 is the core component of the interface adapter 004, which is mainly responsible for managing and coordinating the data transmission between multiple USB devices and the test device 003 host through a single USB port. It needs to have the advantages of strong compatibility, support for multiple protocols, low resource usage, high efficiency, intelligence, low power consumption, easy installation and integration, and low heat dissipation. The VAVAUSB C hub is recommended, and the Anker 7-in-1USB C Hub is the second choice.
[0074] The signal conditioning module 0048 is used to pre-process the signals input from multiple different types of USB input terminals, and the pre-processing includes at least signal shaping and amplification, noise suppression, and adaptability / compatibility adjustment. The signal conditioning module 0048 is mainly responsible for pre-processing the signals of the input device such as shaping and amplification, noise suppression, adaptability, and compatibility adjustment. It needs to have the characteristics of improving data transmission quality, increasing long-distance transmission, high compatibility, and extending the service life of the device. Cable Matters USB 3.0 Active Extension Cable is recommended first, and Aten USB3.0 Extender is the second choice.
[0075] The interface conversion module 0411 is used to realize the conversion between the interface structure forms of different USB input terminals and the interface structure forms of the USB output terminals. Specifically, the interface conversion unit is responsible for the conversion between different USB interface structures to ensure that data and power signals can be correctly and efficiently transmitted between USB interfaces of different standards. It needs to have high compatibility and support multiple interfaces, such as USB Type-A0041, USB Type-A0041, Micro USB, USB Type-C0044, Mini-USB 0045, Type A female USB 0046, etc., simplify upgrade transition, extend equipment life, and be highly convenient. StarTech is recommended first, and Cable Matters is the second choice.
[0076] The power management module 0049 is used to provide working power for the power-consuming devices in the interface adapter 004. Specifically, the power management module 0049 is responsible for providing and controlling the power supply to the connected devices, ensuring that each port can safely and efficiently distribute power according to the device requirements. It needs to have the characteristics of high safety, high efficiency and energy saving, wide compatibility, and support for fast charging protocols. Anker 5-in-1USB C Hub with Power Delivery is recommended first, and RAVPower 61WUSB C Hub with GaN Tech is second.
[0077] In order to improve the safety of the testing process, Figure 4 As shown, the interface adapter 004 further includes a protection unit 0410, which is connected to the interface conversion module 0411 and is used to provide any one or more of over-current protection, short-circuit protection, electrostatic discharge protection, and temperature protection. Specifically, the protection unit 0410 is responsible for over-current protection, short-circuit protection, electrostatic discharge protection, temperature protection, etc. for the entire device, and needs to have the characteristics of high security, high durability, high compatibility, and high trust. UGREEN USB-C Hub with Power Delivery is recommended first, and Anker 4-Port USB 3.0 Ultra Slim Data Hub is the second choice.
[0078] As a preferred embodiment, Figure 4As shown, each component module in the interface converter can be integrated on a PCB board 0412. The PCB board 0412 is the physical carrier of all electronic components (including the interface conversion unit, the power management module 0049, the signal adjustment module 0048, the protection unit 0410, etc.), which needs to have high integration, signal integrity, reliability, customization and high compatibility. The Anker USB-C Hub series is recommended first, and the Satechi Aluminum Multi-PortAdapter series is second.
[0079] The working principle of the portable USB interface data read / write rate test and eye diagram analysis test device provided by the embodiment of the present invention is now described by way of example in conjunction with a specific implementation scenario.
[0080] Figure 5 The following is a schematic diagram of the working process of the portable USB interface data read / write rate test and eye diagram analysis test device in a certain implementation scenario. Figure 5 As shown in the figure, the workflow of USB interface data read and write rate test and the workflow of eye diagram generation and analysis are demonstrated.
[0081] Example 1: USB interface data read and write rate test
[0082] Test preparation: After the test device 003 is powered on, its power management module 20 starts to supply power to the test device 003, and the microprocessor 30 starts to execute the self-test program and completes the initialization (including hardware status check, loading the test software into RAM, initializing the operating system and various peripheral drivers), etc., so that the test device 003 reaches the optimal detection state.
[0083] Configuration parameters: The user selects test parameters through the OLED display screen 0032 and the touch module 62, such as selecting the test mode (USB read and write test, USB eye diagram analysis), USB standard version (USB 2.0, 3.0, 3.1, etc.), configuring parameters according to the actual scenario (standard test request sequence), and selecting the corresponding test configuration file (standard test data packet), such as the USB read and write rate test in this implementation case;
[0084] Establishing connection: The user uses the device under test interface 002, such as the Type A female USB 0046 of the vehicle computer (device under test 001), to physically connect with the Type A male USB 0031 of the test device 003. If the device under test interface 002 is another type of interface, such as a Type-C port or other standard USB interface, it can be physically connected to the Type A male USB 0031 of the test device 003 through a USB interface adapter 004 and a USB data cable 005;
[0085] Device identification: After the device under test 001 and the test apparatus 003 are successfully physically connected, the microprocessor 30 controls the USB Host controller 42 to send a standard request sequence according to the configuration file selected by the user, performs a protocol handshake with the device under test 001, identifies the type, manufacturer information, device ID, etc. of the device under test 001, and confirms whether the device under test 001 supports the selected USB standard.
[0086] Data preparation: The microprocessor 30 configures the USB Host controller 42 to enter a corresponding working mode, and is ready to send (standard test request sequence) and receive test data packets.
[0087] Data construction: According to the USB standard and USB protocol specification, construct a data packet (Data Packet, including pid, Data Field, CRC16) containing a specific identifier (Pattern Data, random data, repeated sequence number) and its related token packet {Token Packet, including the direction of transmission (IN or OUT), device address and endpoint number} and handshake packet (Handshake Packet, such as ACK (0010b) indicates that the data packet is successfully received, NAK (1110b) indicates that it is not ready to receive more data, and others such as STALL (1101b) indicate an error).
[0088] Data transmission: The data packet (Data Packet, including pid, Data Field, CRC16) is sent through microprocessor control, and the time from the reception to the response of the device under test interface 002 of the device under test 001 is recorded to calculate the actual read and write speed.
[0089] Display results: After calculating the USB read and write speed through the microprocessor, according to a specific display template (such as format, type, collected data, results, result analysis, suggestions, etc.), after the statistical value template, the test results (report) are displayed to the user through the OLED display module 61 and the OLED display screen 0032;
[0090] Result output: Generated test results (report). Through the user interaction module 60, the user can choose to generate a detailed test report, which contains all key test parameters, analysis results and suggestions. The report can be uploaded to the cloud server or synchronized to the user's computer or mobile device through the wireless communication module.
[0091] Through the above steps, you can complete the USB read and write speed test.
[0092] Example 2: Eye diagram generation and analysis
[0093] Test preparation: After the test device 003 is powered on, its power management module 20 starts to supply power to the test device 003, and the microprocessor 30 starts to execute the self-test program and completes the initialization (including hardware status check, loading the test software into RAM, initializing the operating system and various peripheral drivers), etc., so that the test device 003 reaches the optimal detection state.
[0094] Configuration parameters: The user selects test parameters through the OLED display 0032 and the touch module 62, such as selecting the test mode (USB read and write test, USB eye diagram analysis), USB standard version (USB 2.0, 3.0, 3.1, etc.), configuring parameters according to the actual scenario (standard test request sequence), and selecting the corresponding test configuration file (standard test data packet), such as the USB eye diagram analysis in this implementation case;
[0095] Establishing connection: The user uses the device under test interface 002, such as the Type A female USB 0046 of the vehicle computer, to physically connect with the Type A male USB 0031 of the test device 003. If the device under test interface 002 is a Type-C port or other standard USB interface, it can be physically connected with the Type A male USB 0031 of the test device 003 through the USB interface adapter 004 and the USB data cable 005;
[0096] Device identification: After the device is successfully physically connected, the microprocessor 30 controls the USB Host controller 42 to send a standard request sequence according to the configuration file selected by the user, performs a protocol handshake with the device under test 001, identifies the type, manufacturer information, device ID, etc. of the device under test 001, and confirms whether the device under test 001 supports the selected USB standard.
[0097] ADC configuration: Through the configuration manually selected by the user, according to the requirements of the eye diagram analysis, the microprocessor 30 is responsible for passing specific configuration parameters to the FPGA module 53. The FPGA module 53 first needs to send an initialization command to the high-speed ADC 51 through a control bus (such as SPI, I2C or a dedicated control interface) to set its working mode. This includes but is not limited to resetting the high-speed ADC 51, configuring the clock source, clock division, etc., to ensure that the high-speed ADC 51 is in a known initial state.
[0098] The FPGA module 53 sets the sampling rate of the high-speed ADC 51. The sampling rate should be high enough to satisfy the Nyquist sampling theorem, and is usually at least twice the highest frequency component of the measured signal to avoid aliasing and accurately reconstruct the signal.
[0099] The FPGA module 53 configures the bit depth (eg, 12 bits, 14 bits, 16 bits, etc.) of the high-speed ADC 51. The higher the bit depth, the more subtle the difference in signal amplitude that can be resolved.
[0100] If the eye diagram analysis requires specific trigger conditions (such as the start of a data packet, a specific timing point), the FPGA also needs to configure the ADC's trigger mode and synchronization mechanism to ensure that sampling starts and ends at the correct time.
[0101] Configure the data reading mode, such as continuous sampling or single trigger sampling, and configure an appropriate buffer to temporarily store the collected data for transmission to the subsequent processing unit.
[0102] Signal path preparation: The signal conditioning module 10 adjusts the circuit signal to the optimal state (expected threshold value) according to the requirements of the configuration parameters to ensure the quality of the USB signal for data transmission and reception.
[0103] Signal capture: The high-speed ADC 51 continuously and at high speed collects the signal input to the test device 003 from the USB signal line under the precise timing control of the FPGA module 53 to form a specific database, and transmits the collected data to the storage module 41;
[0104] Eye diagram reconstruction: The DSP module 52 uses a digital signal processing algorithm to extract the data transmitted to the storage module 41, processes the sampled data through filtering, averaging, clock recovery and other means, and reconstructs the eye diagram.
[0105] Performance evaluation: Analyze the key parameters of the USB eye diagram, such as opening, jitter, and noise, through the DSP module 52 to evaluate the transmission quality of the USB signal;
[0106] Display result: After the DSP module 52 performs performance evaluation, a USB eye diagram of the device under test interface 002 is formed according to a specific format, style, parameters, graphics, etc. At the same time, the USB eye diagram is displayed to the user through the OLED display module 61 and the OLED display screen 0032;
[0107] Result output: Generated test results (report). Through the user interaction module 60, the user can choose to generate a detailed test report, which contains all key test parameters, analysis results and suggestions. The report can be uploaded to the cloud server or synchronized to the user's computer or mobile device through the wireless communication module.
[0108] Through the above implementation case, it will be possible to more conveniently test the USB read / write rate and USB eye diagram of the device under test interface 002 of the device under test 001, so as to solve the problem of lack of portable and instant generation of USB eye diagram analysis reports in the prior art.
[0109] A portable USB interface data read / write rate test and eye diagram analysis test device provided by an embodiment of the present invention can complete the read / write performance test and eye diagram generation of a USB port more simply and efficiently, and has a simple structure and portability, and is particularly suitable for on-site rapid diagnosis and maintenance work.
[0110] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0112] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0113] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0115] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0116] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A portable USB interface data read and write rate test and eye diagram analysis test device, characterized in that: include: A microprocessor (30) is used to issue a rate test instruction and an eye diagram generation instruction, and is also used to calculate the data read and write rate of the device under test (001) through the time from when the device under test (001) receives a test data packet to when it responds to the test data packet; A USB Host controller (42) is used to send a test data packet to the device under test (001) and receive a test data packet according to the rate test instruction; The data acquisition and processing module (50) is used to perform high-speed sampling of USB signals and eye diagram reconstruction at a preset timing according to the eye diagram generation instruction, and is also used to perform performance evaluation on the reconstructed eye diagram.
2. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The data acquisition and processing module (50) comprises a high-speed ADC (51), a DSP module (52) and an FPGA module (53), wherein: The FPGA module (53) is used to configure the working mode and sampling trigger condition of the high-speed ADC (51) according to the eye diagram generation instruction; The high-speed ADC (51) is used to perform high-speed sampling of the USB signal from the device under test (001) at a preset timing, sampling rate and bit depth according to the configured working mode and sampling trigger condition; The DSP module (52) is used to process the sampling data of the high-speed ADC (51) using a digital signal processing algorithm to reconstruct an eye diagram; and is also used to analyze key parameters of the eye diagram to evaluate the transmission quality of a USB signal from a device under test (001).
3. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 2, characterized in that: The test device (003) further comprises a signal conditioning module (10), which is arranged at the front end of the high-speed ADC (51) and is used to adjust the USB signal of the input device to a preset state according to the requirements of the configuration parameters, so as to ensure that the USB signal of the input device meets the sampling requirements before reaching the ADC.
4. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The testing device (003) further comprises a user interaction module (60), wherein the user interaction module (60) comprises an OLED display module (61) and a touch control module (62), wherein the display module (61) and the touch control module (62) are respectively connected to the microprocessor (30) for communication; The display module (61) is used to display the data reading and writing rate test result, the eye diagram and the eye diagram evaluation result through a display screen; The touch control module (62) is used to provide a user command input channel.
5. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The testing device (003) further comprises a wireless communication module (43), wherein the wireless communication module (43) is communicatively connected to the microprocessor (30) and is used to realize wireless communication with an external device.
6. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The test device (003) further comprises a power supply management module (20), wherein the power supply management module (20) comprises a DC converter (21), a battery module (22) and a charging management module (23). The DC converter (21) is used to convert an externally input DC voltage into a DC voltage that is adapted to the battery module (22); The battery module (22) is used to charge according to the direct current voltage converted by the DC converter (21), and to provide working power for electrical components in the test device (003); The charging management module (23) is used to control the operating states of the DC converter (21) and the battery module (22).
7. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The testing device (003) further comprises a storage module (41), wherein the storage module (41) is respectively communicatively connected with the microprocessor (30) and the data acquisition and processing module (50), and is used for storing testing software, historical records and user setting information.
8. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The test device (003) further comprises an interface adapter (004), the interface adapter (004) comprising a USB output terminal and a plurality of different types of USB input terminals, the USB output terminal being connected to the plurality of different types of USB input terminals via an interface conversion module (0411); the interface adapter (004) further comprises a line control chip module (0047), a signal adjustment module (0048) and a power management module (0049); The multiple input ends of the line control chip module (0047) are connected to multiple different types of USB input ends in a one-to-one correspondence, the output end of the line control chip module (0047) is connected to the USB output end, and the line control chip module (0047) is used to manage and coordinate the data transmission between multiple devices under test (001) and the device through a single USB output end; The signal conditioning module (0048) is used to pre-process signals input from multiple different types of USB input terminals, wherein the pre-processing at least includes signal shaping and amplification, noise suppression, and adaptability / compatibility adjustment; The interface conversion module (0411) is used to realize the conversion between the interface structure form of different USB input terminals to the interface structure form of the USB output terminal; The power management module (0049) is used to provide working power for the electrical components in the interface adapter (004).
9. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 8, characterized in that: The interface adapter (004) further comprises a protection unit (0410), wherein the protection unit (0410) is connected to the interface conversion module (0411) and is used to provide any one or more of over-current protection, short-circuit protection, electrostatic discharge protection and temperature protection.
10. A portable USB interface data read / write rate test and eye diagram analysis test device according to claim 1, characterized in that: The testing device (003) also includes a USB data cable (005).
Citation Information
Cited By
USB transmission automatic compensation method, device and equipment
CN120407491A
A method, device and equipment for automatic compensation of USB transmission
CN120407491B
