Self-adaptive USB interface testing method and device
By using the SUMA_FP_USB3.0_Adapter circuit board, cup probe and motor drive system in USB interface testing, combined with Python3 testing software, a fast and accurate automated test of the 19pin FP_USB interface is achieved, solving the problems of low testing efficiency, high misjudgment rate and interface wear in the existing technology, and improving the testing efficiency and the service life of the equipment.
Patent Information
- Application Number
- CN202411157102.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2025-06-24
AI Technical Summary
The existing 19pin FP_USB interface test methods have problems such as interface wear, cumbersome testing process, high misjudgment rate and lack of automation functions, resulting in low testing efficiency, poor accuracy and high equipment maintenance costs.
It adopts SUMA_FP_USB3.0_Adapter circuit board, cup probe mechanism and motor drive system, combined with the modular testing software developed by Python3, realizes adaptive testing of USB3.0 and USB2.0 ports, providing real-time result feedback and automated operation.
It improves testing efficiency and accuracy, reduces interface wear and equipment maintenance costs, and provides intelligent exception handling and real-time feedback on test results.
Smart Images

Figure CN120196486A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of USB interface testing, and particularly to an adaptive USB interface testing method and device. Background Art
[0002] With the development of information technology, the USB (Universal Serial Bus) interface has become an indispensable part of modern computer systems. The USB interface is widely used in various computer devices, including workstations, desktop computers, laptops, etc. Traditionally, most computer motherboards are equipped with on-board USB interfaces to facilitate users to connect various USB devices. However, with the diversification of USB devices and the continuous increase in data transmission requirements, some expansion interfaces have also been introduced on the motherboard, such as the 19-pin FP_USB interface, which can support the connection and data transmission of more USB devices.
[0003] The conventional 19-pin FP_USB interface supports the connection and data transmission of USB3.0 and USB2.0 devices. Among them, the 19-pin FP_USB interface is a relatively good USB expansion interface, usually used to expand more USB3.0 and USB2.0 ports. This interface is implemented through a standard 19-pin connector, which can support two USB3.0 ports and two USB2.0 ports simultaneously, greatly facilitating users to expand USB connections in a limited space. However, for the testing of this interface, the existing technology mainly relies on manual testing methods, and there are certain problems with testing efficiency and stability.
[0004] Currently, for the testing of the 19-pin FP_USB interface on the motherboard, it is usually carried out manually. The specific process is as follows: The operator first manually inserts a 19-pin USB cable, then inserts two 1-to-2 USB cables into the extended ports, and then inserts two USB3.0 flash drives and two USB2.0 flash drives into these ports respectively. Finally, the operator needs to run Linux commands to read the USB device information and check whether each USB device can be normally recognized and work one by one.
[0005] However, this manual testing method has the following obvious defects:
[0006] 1. Interface wear: Frequent manual plugging and unplugging of the 19-pin USB cable and USB devices easily cause wear of the contact points inside the interface. Especially during a large number of tests, the pin-type male and female sockets of the 19-pin FP_USB interface are extremely prone to reaming, resulting in poor contact, which may lead to unstable testing and even device failures.
[0007] 2. Cumbersome testing process: The manual testing method requires operators to plug and unplug devices one by one and manually run test instructions. The whole process is cumbersome and time-consuming. Especially during large-scale testing, the testing efficiency is low, and it is easy to cause misoperations due to human factors.
[0008] 3. High misjudgment rate: Since the testing process mainly relies on manual operations, the identification and judgment of USB devices often depend on the experience of operators. This method not only increases the possibility of misjudgment, but also makes it difficult to effectively judge and handle problems in a timely manner when the device has intermittent failures, resulting in a relatively high misjudgment rate and failure rate in actual applications.
[0009] In the existing technology, the testing of USB devices under the Linux system usually uses shell scripts or command-line tools. These tools need to pre-configure the Bus ID and Device ID of the device, and then read and list the information of USB2.0 and USB3.0 devices one by one, and finally make comparisons and result judgments. Although this method can achieve the testing of USB devices to a certain extent, its main limitations are as follows:
[0010] 1. Cumbersome configuration: It is necessary to manually configure the Bus ID and Device ID of the device, and the operation is complex and error-prone.
[0011] 2. Lack of intuitive interface: The testing process mainly relies on command-line operations and lacks a graphical user interface (GUI), which is not intuitive enough to meet the needs of different users.
[0012] 3. Lack of automation function: During the testing process, if a failure occurs, it usually requires manual intervention to retest, and the testing process is not automated enough, affecting the overall testing efficiency.
[0013] In summary, the existing testing methods for 19-pin FP_USB interfaces have obvious deficiencies both at the hardware and software levels. Frequent manual plugging and unplugging operations lead to interface wear and poor contact problems, while the existing testing software tools limit the testing efficiency and accuracy due to complex operations, unfriendly interfaces, and low automation levels. Therefore, there is an urgent need for a new testing method and device that can improve the testing efficiency while solving the problems of interface wear and unstable testing. Summary of the Invention
[0014] In view of the deficiencies in the prior art, the present invention proposes an adaptive USB interface testing method and device for quickly and accurately automating the testing of the 19-pin FP_USB interface in an electronic device. This method uses the SUMA_FP_USB3.0_Adapter circuit board, combined with a special cup-shaped probe mechanism and a motor drive system, and through a modular testing software developed by Python3, completes the adaptive testing of USB3.0 and USB2.0 ports, and provides real-time result feedback and automated operations. By self-developed hardware circuit board and Python3 USB GUI dedicated testing software, the testing method is optimized to improve the testing efficiency and stability.
[0015] The present invention is implemented by the following technical solutions:
[0016] In the first aspect, the present invention provides an adaptive USB interface testing method, and the testing method includes the following steps:
[0017] Connect the SUMA_FP_USB3.0_Adapter circuit board to the 19-pin FP_USB interface of the main board and the FP_USB cable, and pre-connect two 1-to-2 USB cables and multiple USB flash drives;
[0018] Start the testing process, and automatically press down the circuit board through the motor drive system to make contact;
[0019] Use the modular testing software to detect the connection status and data transfer rate of the USB3.0 interface. According to the test results, when the USB3.0 interface test passes, detect the connection status and data transfer rate of the USB2.0 interface;
[0020] If all USB2.0 ports pass the test, perform the "Disengage up" operation and mark the test as successful; if any port fails, mark the test as failed and end the process;
[0021] After the test is completed, the motor drive system disengages the circuit board from the main board interface;
[0022] The test results are displayed in real time on the graphical user interface, and the test time is recorded.
[0023] As a further solution of the present invention, the SUMA_FP_USB3.0_Adapter circuit board is connected by pin to pin to the pre-connected USB devices and the FP_USB cable.
[0024] As a further solution of the present invention, one end of the SUMA_FP_USB3.0_Adapter circuit board is provided with a cup-shaped probe mechanism matching the 19-pin FP_USB interface of the main board, and the other end is connected to all USB devices to be tested.
[0025] As a further solution of the present invention, when the circuit board is automatically pressed down and contacted by the motor drive system, the cup-shaped probe is brought into contact with the 19-pin FP_USB interface of the main board.
[0026] As a further solution of the present invention, the modular test software used is the test software developed in Python3. When detecting the connection status and data transfer rate of the USB3.0 interface, the connected USB3.0 device is identified by executing a system command, and the port number and data transfer rate of the device are recorded. According to the test results, if all USB3.0 ports pass, the next step of detecting the USB2.0 interface is continued; otherwise, the "Disengage up" operation is executed, marking the test as failed and ending the process.
[0027] As a further solution of the present invention, when detecting the connection status and data transfer rate of the USB2.0 interface, the USB2.0 device information is identified and recorded through a system command, and compared with the expected results to determine whether all USB2.0 ports pass the test.
[0028] As a further solution of the present invention, the test results include the connection status of the USB interface, the data transfer function, the test time, and a fault prompt message when the test fails.
[0029] As a further solution of the present invention, after the test is completed, the motor drive system raises the circuit board to disengage the circuit board from the main board interface.
[0030] As a further solution of the present invention, the Python3 modular test software uses the tkinter module to provide a graphical user interface and executes system commands through the subprocess module to detect the connection status of USB devices.
[0031] As a further solution of the present invention, the test software displays the test status and results of each USB interface in real time on the graphical user interface, and records the test time. If an abnormality occurs, the software automatically terminates the test and prompts the user to check the device configuration or contact the engineer.
[0032] In a second aspect, the present invention also provides an adaptive USB interface test device for performing the steps of the above-mentioned adaptive USB interface test method. The adaptive USB interface test device includes:
[0033] The SUMA_FP_USB3.0_Adapter circuit board is used to connect to the 19-pin FP_USB interface of the main board and the FP_USB cable, and two 1-to-2 USB cables and multiple USB flash drives are pre-connected.
[0034] A cup-shaped probe mechanism for making contact between the SUMA_FP_USB3.0_Adapter circuit board and the 19-pin FP_USB interface of the main board;
[0035] A motor drive module for controlling the up and down movement of the cup-shaped probe mechanism to enable automatic contact and disconnection between the circuit board and the main board interface;
[0036] An interface test module for detecting the connection status and data transfer rate of USB3.0 and USB2.0 interfaces and providing real-time test result feedback;
[0037] A result processing module for collecting, analyzing test data and generating test reports, and automatically terminating the test process in case of test anomalies.
[0038] As a further solution of the present invention, the SUMA_FP_USB3.0_Adapter circuit board is connected to the 19-pin FP_USB interface and external USB devices in a pin-to-pin connection manner for real-time connection; an interface matching circuit is provided on the SUMA_FP_USB3.0_Adapter circuit board, which supports simultaneous connection of USB3.0 and USB2.0 devices and reserves an access port for the FP_USB cable.
[0039] As a further solution of the present invention, one end of the SUMA_FP_USB3.0_Adapter circuit board is connected to multiple USB devices, and the other end is equipped with a cup-shaped probe for contacting the main board interface.
[0040] Compared with the prior art, an adaptive USB interface test method and device provided by the present invention have the following beneficial effects:
[0041] 1. Improve test efficiency: By adopting an automated test process and modular design, the adaptive USB interface test method and device of the present invention can complete the test of multiple USB interfaces in a short time, avoiding the low efficiency problem caused by frequent plugging and unplugging of interfaces in traditional manual test methods, and is especially suitable for USB interface detection in mass production environments.
[0042] 2. Ensure test accuracy: Using a cup-shaped probe mechanism and a motor drive system to ensure accurate docking and stable connection between the circuit board and the 19-pin FP_USB interface of the main board, greatly reducing misjudgment caused by poor contact during the test. In addition, the software module developed by Python3 can accurately detect the connection status and data transfer ability of USB devices, thereby improving the accuracy and reliability of the test.
[0043] 3. Reduced interface loss: Through the automated control of the motor drive system, the contact and disconnection operations between the circuit board and the USB interface are completely completed by the mechanical system, avoiding the interface wear and damage that may be caused by traditional manual plugging and unplugging operations, extending the service life of the interface, and reducing the equipment maintenance cost.
[0044] 4. Real-time feedback of test results: The graphical user interface (GUI) equipped in the test device displays the test progress and results in real time. The operator can instantly understand the status and data transmission performance of each USB interface, and an automatic test report will be generated after the test is completed, facilitating subsequent data analysis and quality control.
[0045] 5. Intelligent exception handling with strong adaptability: The adaptive USB interface test device of the present invention has an automated result processing function. During the test, if an abnormal situation occurs (such as poor device connection or data transmission failure), the system can promptly terminate the test process and give a fault prompt, avoiding further problems that may be caused by continued operation. The intelligent exception handling mechanism improves the safety and reliability of the test process. The adaptive USB interface test method and device of the present invention are not only applicable to the test of USB3.0 interfaces, but also compatible with the detection of USB2.0 interfaces. By adaptively adjusting the test parameters, it ensures that comprehensive and accurate test results can be obtained for USB interfaces of different standards, meeting the requirements of different types of electronic devices.
[0046] In summary, the adaptive USB interface test method and device of the present invention provide an efficient, accurate, and stable USB interface test solution through automated and precise design, which is particularly suitable for large-scale test requirements in the production line environment, can effectively improve product quality, reduce equipment maintenance costs, and provide a simple operation experience for operators.
[0047] These aspects or other aspects of the present invention will be more clearly understood in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present invention. Brief Description of the Drawings
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following will briefly introduce the drawings required for the description of the exemplary embodiments or related technologies. The drawings are used to provide a further understanding of the present invention and constitute a part of the specification, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention. In the drawings:
[0049] Figure 1 is the flowchart of the adaptive USB interface test method in the embodiment of the present invention;
[0050] Figure 2This is a wiring schematic diagram of the SUMA_FP_USB3.0_Adapter circuit board and the 19-pin FP_USB interface of the main board in the adaptive USB interface test method and device in the embodiments of the present invention.
[0051] Figure 3 This is a flowchart of the interface test in the adaptive USB interface test method in the embodiments of the present invention. Detailed implementation manners
[0052] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] In some processes described in the specification, claims and above-mentioned drawings of the present invention, there are multiple operations that appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order in which they appear herein or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit that "first" and "second" are of different types.
[0054] Next, the technical solutions in the exemplary embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the exemplary embodiments of the present invention. Obviously, the described exemplary embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.
[0055] Since most computer motherboards (workstations, desktops, laptops, etc.) usually come with on-board USB functions by default, there are also special 19-pin FP_USB interfaces. After expansion, it supports a total of 2 USB3.0 and 2 USB2.0 ports. For the special 19-pin FP_USB 2.0mm pitch 180-degree straight-pin vertical interface on the motherboard, the manual testing method is as follows: First, manually and actually insert the 19-pin USB cable, then insert two 1-to-2 USB cables, then insert 2 USB3.0 flash drives and 2 USB2.0 flash drives respectively, and finally run Linux commands to read the USB devices respectively. The automatic testing method is as follows: Import the host computer to control the motor to automatically insert the 19-pin USB cable (pre-connected with two 1-to-2 USB cables + all flash drives). After the judging mechanism reaches the end of the stroke, run Linux commands to read all USB devices. After the test is completed, actually pull out the 19-pin FP_USB cable. Generally, the USB testing software under Linux is a shell script or command line. Configure the Bus ID and Device ID in advance, then read the USB devices and list the USB2.0 and USB3.0 one by one, compare the IDs, and finally judge the results.
[0056] Therefore, from the hardware aspect, for the conventional 19-pin FP_USB interface, whether it is manual testing or imported automated testing, in the case of frequent actual plugging and unplugging of the 19-pin male and female connectors, after a slightly long time, it is extremely easy to cause poor contact due to the enlarged holes inside the cable, making the test unstable, with a high misjudgment rate and high failure rate in the actual application process. From the software aspect, to test the flash drives one by one, it is necessary to pre-configure the configuration file, and then the program compares and judges. The test process is rather cumbersome and there is no interface to speak of.
[0057] In view of this, the present invention proposes an adaptive USB interface testing method and device for quickly and accurately automating the testing of the 19-pin FP_USB interface in electronic devices. This method uses the SUMA_FP_USB3.0_Adapter circuit board, combines a special cup-shaped probe mechanism and a motor drive system, and through the modular testing software developed by Python3, completes the adaptive testing of the USB3.0 and USB2.0 ports, and provides real-time result feedback and automated operations. The present invention manufactures the hardware circuit board "SUMA_FP_USB3.0_Adapter" and develops the latest Python3 USB GUI dedicated testing software, which drastically optimizes the testing method, significantly facilitates automated testing. After importing the circuit board, the plugging and unplugging of the previous pin-type male and female mechanism is changed to the cup-shaped probe contact later, improving stability and reliability; reducing the waste quantity of FP_USB cable consumables and lowering costs. After developing the GUI software, it realizes automatic judgment without configuration, and the test interface is very user-friendly, improving customer satisfaction.
[0058] The technical solution of the present invention will be further described below in conjunction with specific embodiments:
[0059] Refer to Figure 1 As shown, an adaptive USB interface test method provided in an embodiment of the present invention includes the following steps:
[0060] Step S10: Connect the SUMA_FP_USB3.0_Adapter circuit board to the motherboard 19-pin FP_USB interface and the FP_USB cable, and pre-connect two 1-to-2 USB cables and multiple USB flash drives.
[0061] In this step, the SUMA_FP_USB3.0_Adapter circuit board is connected to the pre-connected USB devices and the FP_USB cable through pin-to-pin connection.
[0062] Among them, one end of the SUMA_FP_USB3.0_Adapter circuit board is set as a cup-shaped probe mechanism that matches the motherboard 19-pin FP_USB interface, and the other end is connected to all USB devices to be tested.
[0063] Step S20: Start the test process, and automatically press down the circuit board through the motor drive system to make contact.
[0064] In this step, when the circuit board is automatically pressed down to make contact through the motor drive system, the cup-shaped probe is in contact with the motherboard 19-pin FP_USB interface.
[0065] Step S30: Use modular test software to detect the connection status and data transfer rate of the USB3.0 interface. According to the test results, when the USB3.0 interface passes the test, detect the connection status and data transfer rate of the USB2.0 interface.
[0066] In this step, the modular test software used is the test software developed by Python3. When detecting the connection status and data transfer rate of the USB3.0 interface, the connected USB3.0 devices are identified by executing system commands, and the port numbers and data transfer rates of the devices are recorded. According to the test results, if all USB3.0 ports pass, continue to the next step of detecting the USB2.0 interface; otherwise, perform the "Disengage up" operation, mark the test as failed and end the process.
[0067] Step S40: If all USB2.0 ports pass the test, perform the "Disengage up" operation and mark the test as successful; if there are ports that do not pass, mark the test as failed and end the process.
[0068] In this step, when detecting the connection status and data transfer rate of the USB2.0 interface, the USB2.0 device information is identified and recorded through system commands, and compared with the expected results to determine whether all USB2.0 ports pass the test.
[0069] Among them, the test results include the connection status of the USB interface, data transfer function, test time, and a fault prompt message when the test fails.
[0070] Step S50: After the test is completed, the motor drive system disconnects the circuit board from the main board interface.
[0071] In this step, after the test is completed, the motor drive system lifts the circuit board to disconnect the circuit board from the main board interface.
[0072] Step S60: The test results are displayed in real time on the graphical user interface, and the test time is recorded.
[0073] In this step, the Python3 modular test software uses the tkinter module to provide a graphical user interface, and executes system commands through the subprocess module to detect the connection status of the USB device.
[0074] Among them, the test software displays the test status and results of each USB interface in real time on the graphical user interface, and records the test time. If an exception occurs, the software automatically terminates the test and prompts the user to check the device configuration or contact the engineer.
[0075] In the embodiment of the present invention, refer to Figure 2 As shown, the SUMA_FP_USB3.0_Adapter circuit board uses a pin-to-pin connection, is equipped with peripheral circuits and mechanisms, is connected to the FP_USB cable in real time at one end (two 1-to-2 USB cables + all USB flash drives are pre-connected in advance), and a special cup-shaped probe mechanism is designed at the other end. It cooperates with the motor to automatically press down to contact the 19-pin FP_USB interface of the main board, and imports the Python3 USB GUI special test software to achieve fast and accurate testing of the 19-pin FP_USB interface of the main board.
[0076] Among them, when testing USB3.0 and USB2.0, after the test is completed, the motor rises, and the SUMA_FP_USB3.0_Adapter circuit board is disconnected from the main board.
[0077] In this embodiment, the wiring method between the SUMA_FP_USB3.0_Adapter circuit board and the 19-pin FP_USB interface of the main board is as follows: The main board (19-pin FP-USB interface) contacts the SUMA_FP_USB3.0_Adapter circuit board through a special mechanism probe. The SUMA_FP_USB3.0_Adapter circuit board is connected to the two USB3.0 interfaces of the 19-pin FP_USB cable in real time. Each USB3.0 interface is connected to a USB3.0 flash drive and a USB2.0 flash drive through a 1-to-2 USB cable.
[0078] See Figure 3 As shown, the test process is as follows: Start; Engage press down; Test USB 3.0, pass, test USB 2.0, fail, Disengage rise, test fail; Test USB 2.0, pass, Disengage rise, test succeed, fail, Disengage rise, test fail.
[0079] The adaptive USB interface test method of the present invention optimizes the test from the previous real up-and-down plugging to indirect cup-shaped probe contact by importing the SUMA_FP_USB3.0_Adapter circuit board, eliminating the worry of expanding the holes of the FP_USB cable. The tracking test results are very stable; By importing the Python3 USB GUI software, the previous command line is optimized to a GUI interface, changing the previous situation that once the test fails, manual intervention for re-test is required. Now the software automatically sets continuous timed polling search until timeout, significantly reducing the NDF rate of the test and improving efficiency; High cost performance, low test cost, no requirements for the environment; The test method is simple and reliable.
[0080] In this embodiment, the self-developed SUMA_FP_USB3.0_Adapter circuit board arranges two modules according to the pin-to-pin signal. One end is designed with a 19-pin FP_USB interface for real-time connection to the FP_USB cable. The other end is designed with 19 cup-shaped probes for contacting the 19-pin FP_USB interface of the main board. During the test, clamp the circuit board and the motor presses down; After the test is over, lift the circuit board up. The Python3 USB GUI special software analyzes the collected USB devices and finally determines the test results.
[0081] See Figure 2 As shown, in another embodiment of the present invention, an adaptive USB interface test device is further provided, which includes the following components:
[0082] SUMA_FP_USB3.0_Adapter circuit board, which is used to connect with the 19-pin FP_USB interface of the main board and the FP_USB cable, and two 1-to-2 USB cables and multiple USB flash drives are pre-connected to it;
[0083] Cup probe mechanism, which is used to make the SUMA_FP_USB3.0_Adapter circuit board contact with the 19-pin FP_USB interface of the main board;
[0084] Motor drive module, which is used to control the up and down movement of the cup probe mechanism to enable the automatic contact and disconnection between the circuit board and the main board interface;
[0085] Interface test module, which is used to detect the connection status and data transfer rate of USB3.0 and USB2.0 interfaces and provide real-time test result feedback;
[0086] Result processing module, which is used to collect, analyze test data and generate test reports, and automatically terminate the test process when an abnormality occurs during the test.
[0087] In this embodiment, the SUMA_FP_USB3.0_Adapter circuit board uses a pin-to-pin connection method to be connected in real time with the 19-pin FP_USB interface and external USB devices; an interface matching circuit is provided on the SUMA_FP_USB3.0_Adapter circuit board, which supports connecting USB3.0 and USB2.0 devices simultaneously and reserves an access port for the FP_USB cable.
[0088] One end of the SUMA_FP_USB3.0_Adapter circuit board is connected to multiple USB devices, and the other end is equipped with a cup probe for contacting the main board interface.
[0089] Based on the above test method, the adaptive USB interface test device of the present invention, by adopting an automated test process and modular design, the adaptive USB interface test method and device of the present invention can complete the test of multiple USB interfaces in a relatively short time, avoiding the low efficiency problem caused by frequent plugging and unplugging of interfaces in the traditional manual test method, and is particularly suitable for the detection of USB interfaces in a large-scale production environment. The use of a cup-shaped probe mechanism and a motor drive system ensures the precise docking and stable connection between the circuit board and the 19-pin FP_USB interface of the main board, greatly reducing the misjudgment caused by poor contact during the test. In addition, the software module developed with Python3 can accurately detect the connection status and data transmission ability of USB devices, thereby improving the accuracy and reliability of the test. Through the automated control of the motor drive system, the contact and disconnection operations between the circuit board and the USB interface are completely completed by the mechanical system, avoiding the interface wear and damage that may be caused by traditional manual plugging and unplugging operations, extending the service life of the interface, and reducing the equipment maintenance cost.
[0090] For the adaptive USB interface test device of the present invention, the graphical user interface (GUI) equipped with the test device displays the test progress and results in real time. Operators can immediately understand the status and data transmission performance of each USB interface, and an automatic test report is generated after the test is completed, facilitating subsequent data analysis and quality control. The adaptive USB interface test device of the present invention has an automated result processing function. If an abnormal situation occurs during the test (such as poor device connection or data transmission failure), the system can promptly terminate the test process and give a fault prompt, avoiding further problems that may be caused by continued operation. The intelligent abnormal handling mechanism improves the safety and reliability of the test process. The adaptive USB interface test method and device of the present invention are not only applicable to the test of USB3.0 interfaces, but also compatible with the detection of USB2.0 interfaces. By adaptively adjusting the test parameters, it is ensured that USB interfaces of different standards can obtain comprehensive and accurate test results, meeting the requirements of different types of electronic devices.
[0091] It should be noted that: With the help of Python3 tkinter, subprocess and other modules, the main code for developing the dedicated modular automatic test software for USB is:
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102] In summary, the adaptive USB interface testing method and device of the present invention provide an efficient, accurate, and stable USB interface testing solution through automated and precise design. It is particularly suitable for large-scale testing requirements in a production line environment, can effectively improve product quality, reduce equipment maintenance costs, and provide a simple operation experience for operators.
[0103] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. An adaptive USB interface testing method, characterized in that: The test method includes the following steps: Connect the SUMA_FP_USB3.0_Adapter circuit board to the 19-pin FP_USB interface on the motherboard and the FP_USB cable, and pre-connect two 1:2 USB cables and multiple USB flash drives; Start the test process and automatically press the circuit board down to make contact through the motor drive system; Use modular test software to detect the connection status and data transfer rate of the USB3.0 interface. According to the test results, if the USB3.0 interface test passes, detect the connection status and data transfer rate of the USB2.0 interface; If all USB2.0 ports pass the test, the "Disengage Up" operation is performed to mark the test as successful; if any port fails, the test is marked as failed and the process ends; After the test, the motor drive system disconnects the circuit board from the mainboard interface; The test results are displayed in real time on the graphical user interface and the test time is recorded.
2. The adaptive USB interface testing method according to claim 1, characterized in that: The SUMA_FP_USB3.0_Adapter board connects to the pre-connected USB device and FP_USB cable through pin to pin connection.
3. The adaptive USB interface testing method according to claim 2, characterized in that: One end of the SUMA_FP_USB3.0_Adapter circuit board is set as a cup-type probe mechanism that matches the 19-pin FP_USB interface of the motherboard, and the other end is connected to all the USB devices to be tested.
4. The adaptive USB interface testing method according to claim 3, characterized in that: When the circuit board is automatically pressed down by the motor drive system, the cup-shaped probe contacts the 19-pin FP_USB interface of the mainboard.
5. The adaptive USB interface testing method according to claim 4, characterized in that: The modular test software used is a test software developed by Python3. When detecting the connection status and data transmission rate of the USB3.0 interface, the connected USB3.0 device is identified by executing system commands, and the port number and data transmission rate of the device are recorded. According to the test results, if all USB3.0 ports pass, continue to the next step of detecting the USB2.0 interface; otherwise, execute the "Disengage Up" operation, mark the test failure and end the process.
6. The adaptive USB interface testing method according to claim 5, characterized in that: When detecting the connection status and data transfer rate of the USB 2.0 interface, the USB 2.0 device information is identified and recorded through system commands, and compared with the expected results to determine whether all USB 2.0 ports have passed the test.
7. The adaptive USB interface testing method according to claim 6, characterized in that: The test results include the connection status of the USB interface, data transmission function, test time, and fault prompt information when the test fails.
8. The adaptive USB interface testing method according to claim 7, characterized in that: After the test is completed, the motor drive system lifts the circuit board to disengage the circuit board from the main board interface.
9. An adaptive USB interface testing device, characterized in that: The test device is used to perform the steps of the adaptive USB interface test method according to any one of claims 1 to 8, comprising: SUMA_FP_USB3.0_Adapter circuit board, used to connect to the motherboard 19-pin FP_USB interface and FP_USB cable, pre-connected with two 1:2 USB cables and multiple USB flash drives; The cup-type probe mechanism is used to make the SUMA_FP_USB3.0_Adapter circuit board contact with the 19-pin FP_USB interface of the mainboard; The motor drive module is used to control the up and down movement of the cup-shaped probe mechanism to automatically contact and disengage the circuit board from the mainboard interface; Interface test module, used to detect the connection status and data transfer rate of USB3.0 and USB2.0 interfaces, and provide real-time test result feedback; The result processing module is used to collect and analyze test data and generate test reports, as well as automatically terminate the test process when a test is abnormal.
10. The adaptive USB interface testing device according to claim 9, characterized in that: The SUMA_FP_USB3.0_Adapter circuit board adopts a pin to pin connection method to connect to the 19pin FP_USB interface and the external USB device in real time; the SUMA_FP_USB3.0_Adapter circuit board is provided with an interface matching circuit, supports simultaneous connection of USB3.0 and USB2.0 devices, and reserves an access port for the FP_USB cable.