USB interface testing device and method
By introducing control modules and switching modules into the USB interface test device, using wireless communication and multiple signal channels, unified testing of multiple USB interface types is achieved, and the problems of low testing efficiency and high cost in the existing technology are solved, and the problems of high testing efficiency in the existing technology are improved. The versatility and efficiency of the tests are achieved.
Patent Information
- Application Number
- CN201910619195.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-10
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2039-07-10
AI Technical Summary
In the prior art, USB interfaces of multiple specifications require different types of testing devices, resulting in inefficient testing and high cost, and the unification of unified testing of multiple USB interfaces is not possible.
A USB interface test device including a control module and a switching module is designed. Through wireless communication and multiple signal channels, the switching module can be controlled to connect to the corresponding signal channel according to the test signal of the terminal to be tested for data transmission, and the interface test results can be displayed. , realize unified testing of multiple USB interface types.
Improves the versatility and efficiency of the test, reduces the cost of testing, and makes the test results clear, without changing different test devices based on different types or specifications of USB interfaces.
Smart Images

Figure CN110489283B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of testing, and in particular to a testing device and method for a USB interface. [Background technology]
[0002] At present, most terminals use USB (Universal Serial Bus) interfaces to communicate with external devices. In order to ensure that the USB interfaces of the terminals can transmit data normally, a large number of functional tests need to be performed on the USB interfaces. However, terminals on the market usually have USB interfaces of various specifications. For example, the USB interfaces of mobile phones are divided into Type-C and Micro USB. Due to the existence of various specifications of USB interfaces, test devices of different specifications are required to test them. The test devices are not universal, resulting in low test efficiency, and a large number of test devices are required, which is costly.
[0003] In view of this, it is necessary to provide a new USB interface testing device and method to overcome the above defects. [Summary of the invention]
[0004] The object of the present invention is to provide a USB interface testing device and method which can test a plurality of terminals to be tested having USB interfaces of different models, has high test versatility, improves test efficiency, and reduces test costs.
[0005] In order to achieve the above-mentioned purpose, the present invention provides a testing device for a USB interface, comprising a control module and a switching module; the switching module comprises a plurality of connection ports and a plurality of signal channels corresponding to the plurality of connection ports, and the connection ports are used to connect a terminal to be tested; the control module wirelessly communicates with the terminal to be tested and the control module is connected to the switching module, the control module is used to receive a test signal sent by the terminal to be tested and send a corresponding control signal to the switching module according to the test signal, the switching module is used to receive the control signal and connect a corresponding signal channel according to the control signal to transmit data, and trigger the terminal to be tested to detect the transmission information of the data and display the interface test result according to the transmission information.
[0006] In a preferred embodiment, the control module performs wireless communication with the terminal to be tested via a wireless data module, and the wireless data module is a Bluetooth module or a Wi-Fi module.
[0007] In a preferred embodiment, the switching module further comprises a signal port, wherein the signal port is used to connect a USB device, and the USB device transmits data with the terminal to be tested via the signal port and the connected signal channel.
[0008] In a preferred embodiment, the control module is an MCU chip.
[0009] In a preferred implementation, the connection port is connected to the terminal to be tested via a USB data cable.
[0010] In a preferred embodiment, the USB data cable is a Micro USB interface data cable or a Type-c interface data cable.
[0011] The present invention also provides a method for testing a USB interface, comprising the following steps: receiving a test signal sent by a terminal to be tested and sending a corresponding control signal according to the test signal; receiving the control signal and connecting a corresponding signal channel according to the control signal to transmit data; triggering the terminal to be tested to detect the transmission information of the data and displaying the interface test result according to the transmission information.
[0012] In a preferred embodiment, the step of receiving a test signal sent by the terminal to be tested and sending a control signal according to the test signal is: receiving a test signal sent by the terminal to be tested via Bluetooth or Wi-Fi and sending a control signal according to the test signal.
[0013] In a preferred embodiment, before the step of receiving a test signal sent by the terminal to be tested and sending a control signal according to the test signal, the following step is also included: connecting the terminal to be tested via a USB data cable and connecting a USB device via a signal port.
[0014] In a preferred embodiment, in the step of receiving the control signal and connecting a corresponding signal channel according to the control signal to transmit data: the data transmission is the data transmission between the terminal to be tested and the USB device.
[0015] Compared with the prior art, the USB interface testing device and method provided by the present invention include a control module and a switching module, the switching module includes multiple signal channels, when the data transmission function of the USB interface of the terminal to be tested is tested, after the switching module is connected to the terminal to be tested and the USB device respectively, the control module can control the switching module to connect to a corresponding signal channel for data transmission according to the test signal of the terminal to be tested, and trigger the transmission information of the terminal to be tested to detect data and display the interface test result according to the transmission information, therefore, the USB interface testing device and method provided by the present invention can select the corresponding test channel according to different USB interface types through the switching module to realize the transmission of data of the USB interfaces of different terminals to be tested, and trigger the transmission of the mobile terminal detection data, and can realize the testing of multiple terminals to be tested with different models of USB interfaces, without the need to replace different test devices according to different types or specifications of USB interfaces, the test has high versatility, improves the test efficiency, reduces the test cost, and the test results are clear and easy to see.
[0016] In order to make the above-mentioned objects, features and advantages of the invention more obvious and easy to understand, the preferred embodiments of the present invention are specifically cited below and described in detail with reference to the attached drawings.
Brief Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A functional block diagram of a USB interface testing device provided by the present invention;
[0019] Figure 2 The present invention provides a flow chart of a method for testing a USB interface. [Specific implementation method]
[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0021] See also Figure 1 , Figure 1 The principle block diagram of the USB interface testing device 100 provided by the present invention. The USB interface testing device 100 provided by the present invention comprises a control module 10 and a switching module 20.
[0022] The switching module 20 includes multiple connection ports 21 and multiple signal channels 22 corresponding to the multiple connection ports 21, the connection port 21 is used to connect the terminal 200 under test; the control module 10 wirelessly communicates with the terminal 200 under test and the control module 10 is connected to the switching module 20, the control module 10 is used to receive the test signal sent by the terminal 200 under test and send the corresponding control signal to the switching module 20 according to the test signal, the switching module 20 is used to receive the control signal and connect a corresponding signal channel 22 according to the control signal to transmit data, and trigger the terminal 200 under test to detect the data transmission information and display the interface test result according to the transmission information.
[0023] Specifically, the control module 10 is a MCU (Microcontroller Unit) chip. The control module 10 wirelessly communicates with the terminal 200 to be tested via a wireless data module (not shown). The wireless data module may be a Bluetooth module or a Wi-Fi module.
[0024] The connection port 21 of the switching module 20 is connected to the terminal 200 to be tested via a USB data cable 30. The terminal 200 to be tested has a USB interface 201. The terminal 200 to be tested can transmit and communicate data with the outside world through the USB interface 201. The terminal 200 to be tested can be, for example, a mobile phone. Correspondingly, the USB data cable 30 can be a Micro USB interface data cable or a Type-c interface data cable, that is, one end of the USB data cable 30 is inserted into the USB interface 201 of the terminal 200 to be tested, and the other end of the USB data cable 30 is inserted into the connection port 21 to realize the connection between the switching module 20 and the terminal 200 to be tested.
[0025] In this embodiment, the switching module 20 also includes a signal port 23, which is used to connect a USB device 300. The USB device 300 transmits data with the terminal 200 to be tested through the signal port 23 and a connected signal channel 22. The USB device 300 can be, for example, a USB flash drive. It can be understood that the signal channel 22 is used for data transmission. Each connection port 21 corresponds to a signal channel 22 that matches the connection port 21, that is, multiple signal channels 22 are used to transmit data accessed by the corresponding multiple types of connection ports 21.
[0026] The USB interface testing device 100 provided by the present invention, when testing the data transmission function of the USB interface 201 of the terminal 200 to be tested, firstly, the switching module 20 is connected to the terminal 200 to be tested through the USB data line 30, and the switching module 20 is connected to the USB device through the signal port 23, that is, the switching module 20 is connected to the terminal 200 to be tested and the USB device 300 respectively; secondly, the control module 10 connected to the switching module 20 receives the test signal sent by the terminal 200 to be tested and sends a corresponding control signal according to the test signal, specifically, the test signal includes the USB interface information of the terminal 200 to be tested, and the control signal corresponds to the USB interface information; the switching module 20 receives the control signal and connects a corresponding signal channel 22 according to the control signal to perform data transmission, that is, the switching module 20 connects a signal channel 22 corresponding to the USB interface information to transmit data, and after the signal channel 22 is connected, the terminal 200 to be tested is triggered to detect the data transmission information and the interface test result is displayed according to the transmission information. Specifically, the terminal 200 under test can detect whether the data transmission is successful and whether the data transmission rate meets the requirements. When the data transmission is successful and the data transmission rate meets the requirements, the terminal 200 under test displays the interface test result of passing the test; otherwise, the terminal 200 under test displays the interface test result of failing the test.
[0027] Taking the terminal 200 to be tested as a mobile phone and the USB device 300 as a U disk as an example, when the USB interface 201 of the mobile phone is a Type-c interface, when the data transmission function of the Type-c interface of the mobile phone is tested, first, the switching module 20 is connected to the mobile phone through the Type-c interface data cable 30, and the switching module 20 is connected to the U disk through the signal port 23; secondly, the control module 10 connected to the switching module 20 receives the test signal sent by the mobile phone and sends a corresponding control signal according to the test signal. Specifically, the test signal includes the USB interface information of the mobile phone. At this time, the USB interface information is a Type-c interface. , the control signal is a control signal corresponding to the Type-c interface information; the switching module 20 receives the control signal and connects the corresponding signal channel 22 according to the control signal for data transmission, that is, the switching module 20 connects a signal channel 22 corresponding to the Type-c interface information for data transmission. After the signal channel 22 is connected, the mobile phone is triggered to detect the transmission information of the data, that is, to detect whether the data is successfully written into the U disk and can be read, and to detect the reading and writing rate of the data. When the data transmission is successful and the data transmission rate meets the requirements, the mobile phone displays the interface test result of the test passing, otherwise, the mobile phone displays the interface test result of the test failing. When the USB interface 201 of the mobile phone is a Micro USB interface, the test process is the same as the above content principle, and will not be repeated here.
[0028] The USB interface test device 100 provided by the present invention comprises a control module 10 and a switching module 20, wherein the switching module 20 comprises a plurality of signal channels 22, and the control module 10 can control the switching module 20 to connect to a corresponding signal channel 22 for data transmission according to the test signal of the terminal 200 to be tested, and trigger the terminal 200 to detect the transmission information of the data and display the interface test result according to the transmission information. Therefore, the USB interface test device 100 provided by the present invention can test a plurality of terminals 200 to be tested with different models of USB interfaces, and the test device 100 has high versatility, improves the test efficiency, reduces the test cost, and the test result is clear and easy to see.
[0029] Please also read Figure 2 , Figure 2 The flowchart of the USB interface testing method provided by the present invention. The USB interface testing method provided by the present invention comprises the following steps:
[0030] S10: receiving a test signal sent by the terminal to be tested and sending a corresponding control signal according to the test signal.
[0031] Specifically, the test signal includes the USB interface information of the terminal under test 200, and the control signal corresponds to the USB interface information, that is, different types of USB interface information correspond to different control signals. Step S10 is to receive the test signal sent by the terminal under test via Bluetooth or Wi-Fi and send a control signal according to the test signal.
[0032] S20: receiving a control signal and connecting a corresponding signal channel according to the control signal to perform data transmission.
[0033] Among them, the signal channel is used for data transmission, and the multiple signal channels are respectively used to transmit the data accessed by the corresponding multiple types of connection ports. After receiving the control signal, a signal channel corresponding to the USB interface information is connected according to the USB interface information corresponding to the control signal to realize the test of the data transmission function. Specifically, the data transmission in step S20 is the transmission of data between the terminal to be tested and the USB device.
[0034] S30: triggering the terminal to be tested to detect the transmission information of the data and displaying the interface test result according to the transmission information.
[0035] Specifically, in step S30, after the signal channel is connected, the terminal to be tested is triggered to detect whether the data transmission is successful and whether the data transmission rate meets the requirements. When the data transmission is successful and the data transmission rate meets the requirements, the terminal to be tested displays the interface test result of the test passing. Otherwise, the terminal to be tested displays the interface test result of the test failing.
[0036] In this implementation manner, before step S10, the following steps are also included:
[0037] S11: Connect the terminal to be tested via a USB data cable and connect the USB device via the signal port.
[0038] The USB interface testing method provided by the present invention, when testing the data transmission function of the USB interface of the terminal to be tested, first, the switching module 20 is connected to the terminal to be tested 200 through the USB data line, and the switching module 20 is connected to the USB device 300 through the signal port, that is, the switching module 20 is connected to the terminal to be tested and the USB device respectively, then, the test signal sent by the terminal to be tested is received and the corresponding control signal is sent according to the test signal, secondly, the control signal is received and a corresponding signal channel is connected according to the control signal to perform data transmission, and finally, the transmission information of the terminal to be tested is triggered to detect the data and the interface test result is displayed according to the transmission information. Therefore, the USB interface testing method provided by the present invention can realize the transmission of data of the USB interface of different terminals to be tested by selecting the corresponding test channel according to different USB interface types through the switching module, and trigger the transmission of the mobile terminal detection data, and can realize the testing of multiple terminals to be tested with different models of USB interfaces, without having to replace different test devices according to different types or specifications of USB interfaces, the test method has high versatility, improves the test efficiency, reduces the test cost, and the test result is clear and easy to see.
[0039] It should be noted that all embodiments of the USB interface testing device 100 provided by the present invention are applicable to the above-mentioned USB interface testing method, and can achieve the same or similar beneficial effects.
[0040] In summary, the USB interface testing device 100 and method provided by the present invention can test a variety of terminals with different types of USB interfaces, and the test has high versatility, improves test efficiency, reduces test costs, and the test results are clear and visible.
[0041] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, is included in the protection scope of the present invention.
Claims
1. A USB interface testing device, characterized in that: It comprises a control module and a switching module; the switching module comprises a plurality of connection ports and a plurality of signal channels corresponding to the plurality of connection ports, the signal channels are used for data transmission, the plurality of signal channels are used for transmitting data accessed by the corresponding plurality of types of connection ports, and the connection port is used for connecting a terminal to be tested; the control module wirelessly communicates with the terminal to be tested and the control module is connected to the switching module, the control module is used for receiving a test signal sent by the terminal to be tested and sending a corresponding control signal to the switching module according to the test signal, the test signal comprises USB interface information of the terminal to be tested, the control signal corresponds to the USB interface information, the switching module is used for receiving the control signal and connecting a corresponding one of the signal channels according to the control signal to transmit data, and triggering the terminal to be tested to detect the transmission information of the data and displaying the interface test result according to the transmission information; the switching module also comprises a signal port, the signal port is used for connecting a USB device, and the USB device transmits data with the terminal to be tested through the signal port and the connected one of the signal channels.
2. The USB interface testing device according to claim 1, characterized in that: The control module performs wireless communication with the terminal to be tested via a wireless data module, and the wireless data module is a Bluetooth module or a Wi-Fi module.
3. The USB interface testing device as claimed in claim 2, characterized in that: The control module is an MCU chip.
4. The USB interface testing device as claimed in claim 3, characterized in that: The connection port is connected to the terminal to be tested via a USB data line.
5. The USB interface testing device as claimed in claim 4, characterized in that: The USB data cable is a Micro USB interface data cable or a Type-c interface data cable.
6. A method for testing a USB interface, characterized in that: The steps include: Receiving a test signal sent by the terminal to be tested and sending a corresponding control signal according to the test signal; receiving the control signal and connecting a corresponding signal channel according to the control signal to transmit data; wherein the signal channel is used for data transmission, and the plurality of signal channels are respectively used to transmit data accessed by the corresponding plurality of types of connection ports, and after receiving the control signal, connecting a signal channel corresponding to the USB interface information according to the USB interface information corresponding to the control signal; Triggering the terminal to be tested to detect transmission information of the data and displaying an interface test result according to the transmission information; Before the step of receiving a test signal sent by the terminal to be tested and sending a control signal according to the test signal, the following steps are also included: Connect the terminal to be tested via a USB data cable and connect the USB device via the signal port; In the step of receiving the control signal and connecting a corresponding signal channel according to the control signal to transmit data: The data transmission is data transmission between the terminal to be tested and the USB device.
7. The USB interface testing method as claimed in claim 6, characterized in that: The step of receiving a test signal sent by the terminal to be tested and sending a control signal according to the test signal is: Receive a test signal sent by the terminal to be tested via Bluetooth or Wi-Fi and send a control signal according to the test signal.
Citation Information
Patent Citations
Test device and test method for universal serial bus (USB) port
CN102122260A