Interface performance test method and system

By using test machines and equipment within the same communication line to perform automated interface identification testing, the problems of low efficiency and high false positives in existing interface testing technologies have been solved, enabling efficient and accurate testing of computer motherboard interfaces.

CN114490206BActive Publication Date: 2026-03-27HEFEI LCFC INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, testing computer motherboard interfaces is inefficient and prone to misjudgment, making it impossible to test the signal transmission quality and parameters of the interfaces in detail.

Method used

Interface testing is performed using a test machine and test equipment within the same preset communication line. Automated testing is conducted using interface identifiers, including interface access and removal detection, and supports automated testing of various interface types.

Benefits of technology

It improves the efficiency and accuracy of interface testing, avoids errors caused by manual judgment, and realizes automated testing of USB, TYPE-C, DP and HDMI interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114490206B_ABST
    Figure CN114490206B_ABST
Patent Text Reader

Abstract

The application discloses an interface performance test method and system, the method is applied to a test machine, the test machine, test equipment and a machine to be tested are connected in the same preset communication line through a network, and the method comprises the following steps: a connection instruction is sent to the test equipment and the machine to be tested, the connection instruction carries the interface identifier of the set interface of the current interface test, so that the test equipment accesses the set interface of the machine to be tested according to the interface identifier; in the case that a signal of successful access sent by the test equipment is received, an interface test instruction is sent to the test equipment; and the test result of the test equipment for performing interface test on the set interface of the machine to be tested according to the interface identifier in response to the test instruction is received. The application can automatically test different interfaces of the machine to be tested, and the human senses are no longer used for judgment, so that the detection efficiency and the detection accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of interface testing, in particular to an interface performance testing method and a testing system. BACKGROUND

[0002] In the production and testing process of a computer motherboard, it is often necessary to test whether the USB interface, Type-c interface, HDMI interface and DP (Display Port, high-definition digital display interface standard) interface of the computer motherboard can work normally.

[0003] At present, the following testing methods are mainly used: for the USB interface and Type-c interface of an electronic device, various external devices of the USB interface or Type-c interface are manually plugged in and out, and it is manually judged whether the current external device is normally connected to the motherboard of the electronic device, so as to further judge whether the interface performance of the corresponding USB interface or Type-c interface is normal. For the HDMI interface and DP interface of an electronic device, the electronic device plays a specific audio and video file, and the electronic device is connected to an external display or audio playback device, and the current DP signal output is manually observed by the ear and the naked eye to judge whether the corresponding HDMI interface or DP interface is normal.

[0004] However, these manual testing methods not only have low efficiency, but also have high possibility of misjudgment due to the difference in human perception, and the testing method is rough and cannot test the quality and parameters of the interface signal transmission in detail. SUMMARY

[0005] In order to solve the above problems, the embodiments of the present application creatively provide an interface testing method, system and testing device

[0006] According to a first aspect of the present application, an interface testing method is provided, which is applied to a testing machine, the testing machine, testing device and machine to be tested are connected in the same preset communication line through a network, and the method comprises the following steps: sending a connection instruction to the testing device and the machine to be tested, the connection instruction carrying the interface identifier of the set interface of the current interface test, so that the testing device accesses the set interface of the machine to be tested according to the interface identifier; in the case that the access success signal sent by the testing device is received, an interface testing instruction is sent to the testing device; the testing result of the testing device responding to the testing instruction and testing the set interface of the machine to be tested according to the interface identifier is received.

[0007] According to an embodiment of the present application, in the case that the interface identifier indicates that the interface type of the set interface is a DP interface or an HDMI interface, the receiving the test result of the interface test of the set interface of the machine under test by the test device in response to the test instruction according to the interface identifier comprises: receiving the test result obtained by the machine under test by sending a resolution identifier and a test signal corresponding to the resolution identifier to the test device in response to the test instruction; receiving the comparison result obtained by the test device by comparing the test signal with a corresponding original signal according to the resolution identifier; the comparison result comprises a plurality of comparison results obtained by the test device by corresponding tests for a plurality of resolutions supported by the machine under test; and sending the plurality of comparison results and the resolution identifier corresponding to each comparison result to the test machine as the test result.

[0008] According to an embodiment of the present application, in the case that the interface identifier indicates that the interface type of the set interface is a USB interface or a TYPE-C interface, the interface test instruction comprises an interface access detection instruction and an interface removal detection instruction; and correspondingly, the receiving the test result of the interface test of the set interface of the machine under test by the test device in response to the test instruction according to the interface identifier comprises: receiving the test result obtained by the machine under test by the following operations: detecting whether the set interface is successfully accessed in response to the interface access detection instruction, obtaining an interface access detection result, and sending the interface access detection result to the test machine; in the case that the test device removes the set interface, detecting whether the set interface of the machine under test is successfully removed in response to the interface removal detection instruction, obtaining an interface removal detection result; and sending the interface removal detection result to the test machine; wherein the interface removal detection instruction is an instruction sent to the machine under test by the test machine in the case that the test machine receives the interface access detection result and the interface access detection result indicates that the set interface is successfully accessed; and the test result comprises the interface access detection result and the interface removal detection result.

[0009] According to a second aspect of the present application, an interface test method is further provided, which is applied to a test device, and comprises the following steps: receiving a connection instruction sent by a test machine, wherein the connection instruction carries an interface identifier of a set interface of the present interface test; accessing the set interface of the machine under test according to the interface identifier; sending a signal indicating that the access is successful to the test machine; receiving a test instruction sent by the test machine, and performing a test on the set interface of the machine under test in response to the test instruction according to the interface identifier, and sending a test result to the test machine.

[0010] According to an embodiment of the present application, in the case that the interface identifier indicates that the interface type of the set interface is a DP interface or an HDMI interface, the receiving of the test instruction sent by the tester and the testing of the set interface of the device under test according to the interface identifier and the sending of the test result to the tester in response to the test instruction comprise: receiving a resolution identifier and a test signal corresponding to the resolution identifier sent by the device under test in response to the test instruction; comparing the test signal with a corresponding original signal according to the resolution identifier to obtain a comparison result; obtaining a plurality of comparison results for a plurality of resolutions supported by the device under test; and sending the plurality of comparison results and the resolution identifier corresponding to each comparison result as the test result to the tester.

[0011] According to an embodiment of the present application, in the case that the interface identifier indicates that the interface type of the set interface is a USB interface or a TYPE-C interface, the receiving of the test instruction sent by the tester and the testing of the set interface of the device under test according to the interface identifier and the sending of the test result to the tester in response to the test instruction comprise: receiving an interface access detection result of the set interface detected by the device under test in response to the interface access detection instruction and sending the interface access detection result to the tester; removing the set interface in response to the interface removal detection instruction; receiving an interface removal detection result of the set interface detected by the device under test in response to the removal detection instruction and sending the interface removal detection result to the tester; wherein the interface removal detection instruction is an instruction sent by the tester to the device under test in the case that the interface access detection result is received and the interface access detection result indicates that the set interface is successfully accessed; and the test result comprises the interface access detection result and the interface removal detection result.

[0012] According to a third aspect of the present application, an interface performance testing system is further provided, which comprises: a tester configured to send a connection instruction and a test instruction and receive a test result of an interface test of a set interface of a device under test by a test device according to the test instruction, the connection instruction comprising an interface identifier of the set interface for this test, and the test instruction carrying an interface test requirement for this interface test; the test device configured to connect a corresponding interface of the device under test according to the interface identifier of the set interface; the test device further configured to test the interface of the device under test according to the test instruction of the tester; and the device under test configured to receive a test result generated by the test device in the detection of the set interface and send the test result to the tester; wherein the tester, the test device and the device under test can be connected in the same preset communication line through a network.

[0013] According to an embodiment of the present application, the test device comprises: a body, a network interface is arranged on the body, and is used for communication with the machine to be tested and the test machine; an interface access mechanism, which is arranged in the body, is connected with the interface of the machine to be tested, and is used for enabling the test device to access different interfaces of the machine to be tested; an interface detection mechanism, which is arranged in the body, is connected with the interface access mechanism, and is used for testing the interface of the machine to be tested; and a master control chip, which is arranged in the body, is connected with the network interface, the interface access mechanism and the interface detection mechanism, and is used for receiving the instruction of the test machine; the master control chip is further used for controlling the interface access mechanism and the interface detection mechanism.

[0014] According to an embodiment of the present application, the interface access mechanism comprises: a DP access port, which is used for connecting the DP interface of the machine to be tested; an HDMI access port, which is used for connecting the HDMI interface of the machine to be tested; a USB access port, which is connected with a USB port switching module and the machine to be tested, and comprises a plurality of USB interfaces; the USB port switching module is connected with the USB access port and the master control chip, and is used for realizing free switching of the plurality of USB interfaces to access the machine to be tested according to the instruction of the master control chip; and a TYPE-C access port, which is connected with a TYPE-C port switching module and the machine to be tested, and comprises a plurality of TYPE-C interfaces; the TYPE-C port switching module is connected with the TYPE-C access port, and is used for realizing free switching of the plurality of TYPE-C interfaces to access the machine to be tested according to the instruction of the master control chip.

[0015] According to an embodiment of the present application, the interface detection mechanism comprises: a signal decoding module, which is connected with the interface access mechanism and a data detection module, and is connected with the master control chip, and is used for receiving the signal sent by the machine to be tested through the interface access mechanism, and generating test data by decoding the signal; and the data detection module, which is used for comparing the test data with corresponding original data to generate a detection result, and sending the detection result to the test machine.

[0016] The embodiment of the present application can realize automatic testing of different interfaces (USB interface, TYPE-C interface, DP interface and HDMI interface) on the machine to be tested, and compared with manual plugging and unplugging of the interfaces for testing different interfaces, the embodiment of the present application also does not use human senses to judge the performance of the interfaces, thereby improving the detection efficiency and detection accuracy.

[0017] It should be understood that the teachings of the present application do not require all the beneficial effects described above to be achieved, and specific technical solutions can achieve specific technical effects, and other embodiments of the present application can also achieve beneficial effects not mentioned above. Attached Figure Description

[0018] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated in the drawings by way of example and not limitation, wherein:

[0019] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0020] Figure 1 This diagram illustrates the implementation flow of the interface performance testing method according to an embodiment of the present invention. Figure 1 ;

[0021] Figure 2 This diagram illustrates the implementation flow of the interface performance testing method according to an embodiment of the present invention. Figure 2 ;

[0022] Figure 3 A connection diagram of the interface performance testing system according to an embodiment of the present invention is shown;

[0023] Figure 4 This diagram illustrates the composition and structure of the test equipment in the interface performance testing system according to an embodiment of the present invention. Figure 1 ;

[0024] Figure 2 This diagram illustrates the composition and structure of the test equipment in the interface performance testing system according to an embodiment of the present invention. Figure 1 . Detailed Implementation

[0025] The principles and spirit of the invention will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided to make the invention more thorough and complete, and to fully convey the scope of the invention to those skilled in the art.

[0026] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0027] Firstly, the application scenario of the interface performance test method of the embodiment of the application is described. The test machine, test equipment and machine to be tested in the application can be connected in the same preset line through a network. Specifically, a network interface can be set on the test machine and test equipment to realize network connection. The machine to be tested can set a network interface or directly connect to the network through wireless. Correspondingly, the test machine, test equipment and machine to be tested can communicate with each other through TCP / IP protocol and MQTT protocol after being connected in the same preset line. It should be noted that the method of enabling the test machine, test equipment and machine to be tested to communicate with each other through TCP / IP protocol and MQTT protocol is not limited. Here, only an example is given. As long as the method can enable the test machine, test equipment and machine to be tested to communicate with each other through TCP / IP protocol and MQTT protocol, it belongs to the protection scope of the application.

[0028] Further, the test machine in the application is a test terminal. After successful connection, the test machine can design Case (test case) according to the interface type and test performance type required by the machine to be tested. For example, when the interface type to be tested by the machine to be tested is a USB interface or a TYPE-C interface, the test performance type can include access performance and removal performance. Correspondingly, the Case can include the following instructions: connecting the USB / TYPE-C interface, testing the access performance of the USB / TYPE-C interface, removing the USB / TYPE-C interface and testing the removal performance of the USB / TYPE-C interface, etc. When the interface type to be tested by the machine to be tested is a DP interface or an HDMI interface, the test performance type can include testing the performance of the interface under different resolutions. Correspondingly, the Case also includes the following instructions: connecting the DP / HDMI interface, testing the interface performance of the DP interface and HDMI interface under different resolutions, etc. It should be noted that the application supports testing of multiple interface types. However, the application can design the Case according to the type of the interface to be tested by the machine to be tested, so as to issue the corresponding designed Case to test the interface to be tested by the machine to be tested. Here, when the machine to be tested needs to be tested, the order of testing is not limited.

[0029] Further, after the machine to be tested and the test machine (such as a terminal device) are connected to the same preset channel through a network, the test machine can issue a pre-set instruction to download the test tool, so that the machine to be tested (such as a computer) can download and install the test tool required for this test, such as a USB detection tool, a TYPE-C detection tool, a resolution switching tool, etc. according to the instruction. Moreover, the instruction to download the test tool can also be placed in the first step of the Case. After the Case is issued, the machine to be tested will first download and install the test tool required for use according to the instruction for subsequent use.

[0030] It should be noted that the application scenarios of the interface performance test method of the embodiments of the application described above are exemplary descriptions given for more clearly describing the schemes, and in actual application processes, the interface performance test method of the embodiments of the application can also be applied to other applicable scenarios, and the application does not make specific limitations on this.

[0031] Figure 1 The implementation flowchart of the interface performance test method of the embodiments of the application is shown Figure 1 .

[0032] Referring to Figure 2 The interface performance test method provided in the embodiment is applied to a test machine, and the method comprises the following steps: in step 101, a connection instruction is sent to a test device and a machine to be tested, the connection instruction carrying an interface identifier of a set interface to be tested this time, so that the test device accesses the set interface of the machine to be tested according to the interface identifier; in step 102, an interface test instruction is sent to the test device in the case where an access success signal sent by the test device is received; and in step 103, a test result of interface test of the set interface of the machine to be tested by the test device in response to the test instruction according to the interface identifier is received.

[0033] Specifically, first, the interfaces to be tested of the machine to be tested are connected with the corresponding access ports of the test device, and then the test device and the machine to be tested first perform self-checking and send the self-checking results to the test machine through TCP / IP protocol and MQTT protocol. In the process of testing the interface performance of the machine to be tested, the test machine always monitors the states of the test device and the machine to be tested through the network, so that the internal hardware of the test device and the machine to be tested and the network state are good, and the corresponding operations can be completed.

[0034] In operation 101, the test machine can send a connection instruction to the test device and the machine to be tested through TCP / IP protocol and MQTT protocol. The test device can determine the set interface of the machine to be tested that needs to be connected for testing according to the interface identifier of the set interface to be tested this time carried in the connection instruction, and connect the test connection end of the test device with the set interface of the machine to be tested. Here, the interface identifier shows the set interface of the machine to be tested that needs to be tested this time, such as USB1.0, USB2.0, TYPE-C1.0, HDMI interface or DP interface, etc.

[0035] The test connection end of the test device refers to a connection line in the test device that is pre-configured for testing the setting interface of the device under test, and is configured with interfaces of multiple types that match the setting interface of the device under test, for example, can include a USB interface, a TYPE-C interface, an HDMI interface, a DP interface, and the like. The interface identifier of the interface test carried by the connection instruction can include the device identifier of the device under test and the interface type and interface number of the setting interface to be tested.

[0036] In operations 102-103, after the test device connects the test connection end to the setting interface of the device under test according to the connection instruction, the test device can send a connection success signal to the test machine, and correspondingly, the test machine can receive the connection success signal sent by the test device through the TCP / IP protocol and the MQTT protocol. After the test machine receives the connection success signal, the test machine can issue a test instruction through the TCP / IP protocol and the MQTT protocol, so that the test device detects the corresponding setting interface of the device under test according to the test instruction, and receives the test result of the test device after detecting the setting interface.

[0037] In this embodiment of the application, in the case where the interface identifier indicates that the interface type of the setting interface of the device under test for this test is a DP interface or an HDMI interface, the test machine can receive the test result obtained by the device under test by responding to the test instruction to send a resolution identifier and a test signal corresponding to the resolution identifier to the test device, receiving the comparison result obtained by the test device by comparing the test signal with the corresponding original signal according to the resolution identifier, and sending the multiple comparison results obtained by the test device for the multiple resolutions supported by the device under test and the resolution identifier corresponding to each comparison result to the test machine as the test result.

[0038] Specifically, the device under test can support transmission and processing operations of audio and video signals of multiple resolutions, and when testing the DP interface and the HDMI interface, the interface performance of different resolutions supported by the device under test needs to be detected. Correspondingly, the device under test can send a resolution identifier and a test signal corresponding to the resolution identifier to the test device, and after the test device compares the test signal under each resolution with the original signal in sequence, receives the multiple comparison results corresponding to different resolutions sent by the test device. Further, the device under test can send the resolution parameter identifier for identifying the resolution and the comparison result corresponding to each resolution parameter identifier as the test result of the interface for this test to the test machine. In this way, for the device under test supporting multiple resolutions, the application can automatically test the performance of the interface of the device under test under multiple resolutions.

[0039] Further, the comparison of the test signal and the corresponding original signal to obtain a comparison result includes: comparing the test signal and the corresponding original signal to obtain a comparison result, and comparing the comparison result with preset parameter standard information; if the comparison result is within an error allowable range, the comparison result is displayed as good interface performance; if the comparison result is not within the error allowable range, the error is too large, and the comparison result is displayed as interface performance error. The comparison result can include the comparison results of the bit number, refresh rate, resolution and other parameters of the color digital signal.

[0040] In this embodiment of the application, in a case where the interface identifier indicates that the interface type of the set interface is a USB interface or a TYPE-C interface, the interface test instruction includes an interface access detection instruction and an interface removal detection instruction; correspondingly, the test result of the test device for testing the set interface of the machine under test according to the interface identifier in response to the test instruction includes: the test result obtained by the machine under test in response to the interface access detection instruction, the test result including: detecting whether the set interface is successfully accessed, obtaining an access detection result, and sending the access detection result to the test machine; in a case where the test device removes the set interface, detecting whether the set interface of the machine under test is successfully removed in response to the interface removal detection instruction, obtaining an interface removal detection result; and sending the interface removal detection result to the test machine; wherein the interface removal detection instruction is an instruction sent by the test machine to the machine under test in a case where the test machine receives the access detection result and the access detection result indicates that the set interface is successfully accessed.

[0041] Specifically, the machine under test can include multiple USB or TYPE-C interfaces, and thus all USB or TYPE-C interfaces of the machine under test need to be tested. Therefore, after the test device connects and turns on the access port corresponding to the USB interface or TYPE interface to be tested according to the connection instruction and the interface identifier carried by the connection instruction, the machine under test can receive, through the TCP / IP protocol and the MQTT protocol, a signal indicating that the test device has been turned on, that is, has accessed the corresponding test interface, and then test whether the interface is successfully accessed at this time according to the test instruction and send the detection result to the test machine. If the interface is not accessed, it is recorded as an interface access function damage; if the interface is successfully accessed, it is recorded as an interface access function intact. In a case where the interface access detection result sent by the machine under test and received by the test machine is intact, the test machine sends an interface removal instruction. In a case where the test device closes the corresponding interface access port, that is, removes the interface, the machine under test detects whether the interface has been successfully removed and sends the interface removal detection result to the test machine. The access detection result and the interface removal detection result are collectively referred to as the test result of the set interface in this detection.

[0042] Figure 2 An implementation flowchart of the interface performance test method of the embodiment of the application is shown Figure 1.

[0043] With reference Figure 1 The interface performance test method provided by the embodiment of the present application is applied to a test device, and the method comprises the following steps: 201, receiving a connection instruction sent by a test machine, wherein the connection instruction carries an interface identifier of a set interface for this time of interface test; 202, accessing the set interface of the test machine according to the interface identifier; 203, sending a signal of access success to the test machine; 204, receiving a test instruction sent by the test machine, and testing the set interface of the test machine according to the interface identifier in response to the test instruction, and sending a test result to the test machine.

[0044] Specifically, the test device receives a connection instruction issued by the test machine through a TCP / IP protocol and an MQTT protocol, and then the test device turns on the interface of a test connection end connected with the interface to be tested according to the interface identifier of the interface for this time of test to access the corresponding test interface of the test machine in response to the connection instruction. After the corresponding interface is turned on, the test device sends an access success signal to the test machine through the TCP / IP protocol and the MQTT protocol, receives a test instruction issued by the test machine to test the interface for this time of test, and finally sends a test result of the interface for this time of test to the test machine through the TCP / IP protocol and the MQTT protocol.

[0045] In the embodiment of the present application, in the case where the interface identifier for this time of test indicates that the interface type of the set interface for this time of test is a DP interface or an HDMI interface, receiving a test instruction sent by the test machine, and testing the set interface of the test machine according to the interface identifier in response to the test instruction and sending a test result to the test machine, comprises: receiving a resolution identifier and a test signal corresponding to a plurality of resolution identifiers sent by the test machine in response to the test instruction; comparing the test signal with a corresponding original signal according to the resolution identifier to obtain a comparison result; obtaining a plurality of comparison results for a plurality of resolutions supported by the test machine; and sending the plurality of comparison results to the test machine, so that the test machine sends the plurality of comparison results and the resolution identifier corresponding to each comparison result as a test result to the test machine.

[0046] In this embodiment of the present application, in the case that the interface type of the set interface of the tested machine is a USB interface or a TYPE-C interface, the test instruction sent by the tester is received, and the set interface of the tested machine is tested according to the interface identifier in response to the test instruction, and the test result is sent to the tester, which comprises: receiving the interface access detection result obtained by the tested machine in response to the interface access detection instruction for detecting whether the set interface is successfully accessed; removing the set interface in response to the interface removal detection instruction; receiving the interface removal detection result of the set interface detected by the tested machine in response to the removal detection instruction, and sending the interface removal detection result to the tester; wherein the interface removal detection instruction is an instruction sent by the tester to the tested machine in the case that the access detection result is received and the access detection result shows that the set interface is successfully accessed; and the test result comprises the interface access detection result and the interface removal detection result.

[0047] Specifically, after the test equipment is connected to and turned on the access port corresponding to the set interface of this test according to the interface identifier carried by the access instruction issued by the tester, the tested machine can detect the set interface. For example, after the tested machine detects the access performance of the set interface and sends the access detection result to the tester through the TCP / IP protocol and the MQTT protocol, the test equipment receives the removal detection instruction issued by the tester through the TCP / IP protocol and the MQTT protocol, and responds to the removal detection instruction to turn off the access port connected to the set interface of this test to remove the set interface of the tested machine. After the test equipment determines that the corresponding interface is successfully removed, the test equipment sends a removal completion signal to the tested machine through the TCP / IP protocol and the MQTT protocol, so that the tested machine receives the removal signal and detects whether the set interface of this test is successfully removed according to the removal detection instruction and sends the result to the tester.

[0048] It should be pointed out here that the above description of the interface performance test method applied to the test equipment and the method applied to the tested machine shown in the embodiments of the present application is similar, and has the same beneficial effects as the above-mentioned method shown in the embodiments of the present application, and thus will not be described in detail. Figure 3 The method applied to the tested machine shown in the embodiments of the present application is similar, and has the same beneficial effects as the above-mentioned method shown in the embodiments of the present application, and thus will not be described in detail. Figure 3 The method shown in the embodiments of the present application is similar, and has the same beneficial effects as the above-mentioned method shown in the embodiments of the present application, and thus will not be described in detail.

[0049] Similarly, based on the above-mentioned interface performance test method, the present application also provides an interface performance test system, which comprises a test equipment and a tested machine. Figure 3As shown, the system 30 includes: a test machine 301, used to issue connection commands and test commands, and receive test results from the test device sent by the machine under test (DUT) to perform interface testing on the DUT's designated interface according to the test commands. The connection command includes the interface identifier of the designated interface for this test, and the test command carries the interface test requirements for this interface test; a test device 302, used to connect to the corresponding interface of the DUT according to the interface identifier of the designated interface; and to test the interface of the DUT based on the test commands from the test machine; and a DUT 303, used to receive the test results generated by the test device in detecting the designated interface, and send the test results to the test machine; wherein the test machine, the test device, and the DUT can be connected to the same preset communication line via a network.

[0050] Specifically, the test machine is used to issue commands and receive results. The test equipment and the machine under test are used to receive the corresponding commands issued by the test machine to complete the corresponding test actions and send the test results back to the test machine. In this way, when a user views the interface test results of a certain machine under test, they can easily view the test results of all interfaces of the machine under test through the test machine.

[0051] It should be noted that, Figure 4 The RJ-45 network interface between the test equipment and the device under test is only an example; in practical applications, other suitable interfaces can be used for connection and communication, such as J-tag. Furthermore, Figure 5 The interfaces (USB interface, TYPE-C interface, DP interface and HDMI interface) in the figure are only illustrative and may include these interfaces. In actual applications, there may be multiple interfaces, or some of these interface types may not be included. Similarly, other interface types not shown in the figure may also be included. This application does not limit the number or type of interfaces included.

[0052] In this embodiment of the invention, the testing equipment may include: a body having a network interface for connecting to a network, thereby enabling communication with the machine under test (DUT) and the testing machine via the network; an interface access mechanism, located within the body and connected to the interface of the DUT, for accessing different interfaces of the DUT; an interface detection mechanism, located within the body and connected to the interface access mechanism, for testing the interface of the DUT; and a main control chip, located within the body and connected to the network interface, the interface access mechanism, and the interface detection mechanism, for receiving instructions from the testing machine and sending instructions to the interface access mechanism and the interface detection mechanism.

[0053] In this embodiment of the invention, the interface access mechanism may include: a DP access port, a USB access port, a TYPE-C access port, and an HDMI access port for accessing the machine under test; a USB switching module for receiving instructions from the main control chip to freely switch multiple USB interfaces in the USB access port to access the machine under test; and a TYPE-C switching module for freely switching multiple TYPE-C interfaces in the TYPE-C access port to access the machine under test according to instructions from the main control chip.

[0054] In this embodiment of the invention, the interface testing mechanism may include a signal decoding module and a data detection module. The signal decoding module decodes the test signal and generates test data, while the data detection module compares the decoded test data with the corresponding original data and sends the comparison result to the testing machine.

[0055] Specifically, when the testing equipment performs performance testing on the USB or Type-C interface of the machine under test according to the testing instructions, refer to... ​ The main control chip (e.g., a microcontroller unit, or MCU) connects to an RJ-45 network interface to receive commands from the test machine. Furthermore, the main control chip also communicates with the USB port switching module and the TYPE-C port module via the I2C (Inter-Integrated Circuit) interface to allow the main control chip to transmit commands to the corresponding modules via IC2. It should be noted that the connection method between the main control chip and each module is not limited; any connection method that enables the communication described in this application is within the scope of protection of this application.

[0056] The USB port switching module and the TYPE-C port switching module are connected to the corresponding USB and TYPE-C access ports for receiving USB and TYPE-C signals, respectively. They receive instructions from the main control chip to freely switch between multiple USB or TYPE-C interfaces connected to the device under test (DUT) for testing different interfaces. This effectively avoids the conventional manual plugging and unplugging of different interfaces when testing different interfaces of the DUT, significantly improving the efficiency of interface performance testing.

[0057] Furthermore, to better provide the TYPE-C signal to the device under test (DUT), the test equipment may also include a PD module. The PD module is connected to the TYPE-C access port and the TYPE-C interface switching module, and is used to parse the TYPE-C signal and provide it to the DUT. Additionally, the PD module can also be used to assist the TYPE-C interface in charging the DUT.

[0058] When the test device detects the performance of the DP interface or the HDMI interface of the machine under test according to the detection instruction, the test device further comprises an interface detection mechanism, which can obtain the test signals of different resolutions sent by the machine under test through the interface access mechanism, then compare the test signals with the corresponding original signals to generate comparison results, and finally send the multiple comparison results and the resolution identifiers corresponding to the comparison results as test results to the test machine through the TCP / IP protocol and the MQTT protocol. ​

[0059] Further, in order to better test the signals sent by the machine under test, the interface detection mechanism can further include a signal decoding module and a data detection module, wherein the signal decoding module can be a combination of an FPGA chip and an IT6535 chip, and communicates with the host chip through I2C, and the data detection module can receive the instructions of the MCU through UART (serial port). Specifically, when the host chip transmits the instructions of the test machine to the signal decoding module, the signal decoding module decodes the test signals obtained from the DP access port or the HDMI access port accordingly, and transmits the decoded data to the data detection module, and then the data detection module compares the test data with the corresponding original data to generate comparison results. It should be noted that the composition of the signal decoding module is not limited in the present application, as long as the signal decoding module can decode the test signals of different resolutions, and the composition of the signal decoding module belongs to the protection scope of the present application.

[0060] It should be noted that in this document, the terms "comprise", "comprise", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of another identical element in the process, method, article or device that includes the element.

[0061] ​In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are merely exemplary. For example, the division of the units is merely a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling, or direct coupling or communication connection between the components can be indirect coupling or communication connection through some interfaces, devices, or units, and can be electrical, mechanical, or in other forms.

[0062] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units; they can be located in one place, or distributed on multiple network units; and some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0063] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be realized in the form of hardware or in the form of hardware plus software functional units.

[0064] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by a program instructing related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the above-mentioned method embodiments when executed; and the foregoing storage medium includes mobile storage devices, read-only memories (ROM), magnetic discs or optical discs, and various storage media that can store program codes.

[0065] Alternatively, the integrated units of the present application, if implemented in the form of software functional modules and sold or used as independent products, can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various storage media that can store program codes.

[0066] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of interface performance testing, characterized by, The method is applied to a test machine, the test machine, test equipment and a machine to be tested are connected in the same preset communication line through a network, the test machine, the test equipment and the machine to be tested interact and communicate through a TCP / IP protocol and an MQTT protocol, and the method comprises the following steps: sending a connection instruction to the test equipment and the machine to be tested, the connection instruction carrying an interface identifier of a set interface of this interface test, so that the test equipment accesses the set interface of the machine to be tested according to the interface identifier; the set interface comprises a DP interface, an HDMI interface, a USB interface and a TYPE-C interface; in the case that a signal of successful access sent by the test equipment is received, sending an interface test instruction to the test equipment; in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the interface test instruction comprises an interface access detection instruction and an interface removal detection instruction; receiving a test result of interface test of the set interface of the machine to be tested by the test equipment in response to the test instruction according to the interface identifier; in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the test result comprises an interface access detection result and an interface removal detection result; wherein, in the case that the interface identifier shows that the interface type of the set interface is a DP interface or an HDMI interface, the receiving of the test result of interface test of the set interface of the machine to be tested by the test equipment in response to the test instruction according to the interface identifier comprises: receiving a test result obtained by the machine to be tested through the following operation: sending a resolution identifier and a test signal corresponding to the resolution identifier to the test equipment in response to the test instruction; receiving a comparison result obtained by the test equipment by comparing the test signal with a corresponding original signal according to the resolution identifier; the comparison result comprises a plurality of comparison results obtained by the test equipment for a plurality of resolutions supported by the machine to be tested; sending the plurality of comparison results and the resolution identifier corresponding to each comparison result as the test result to the test machine.

2. The method of claim 1, wherein, in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the interface test instruction comprises an interface access detection instruction and an interface removal detection instruction; accordingly, the receiving of the test result of interface test of the set interface of the machine to be tested by the test equipment in response to the test instruction according to the interface identifier comprises: receiving a test result obtained by the machine to be tested through the following operation: detecting whether the set interface is successfully accessed in response to the interface access detection instruction, obtaining an interface access detection result, and sending the interface access detection result to the test machine; in the case that the test equipment removes the set interface, detecting whether the set interface of the machine to be tested is successfully removed in response to the interface removal detection instruction, and obtaining an interface removal detection result; send the interface removal detection result to the test machine; wherein the interface removal detection instruction is an instruction sent to the test machine by the test machine in the case that the interface access detection result is received and the interface access detection result shows that the set interface is successfully accessed; the test result comprises the interface access detection result and the interface removal detection result.

3. A method of interface performance testing, characterized by, The method is applied to a test device, and the method comprises: receiving a connection instruction sent by the test machine, the connection instruction carrying an interface identifier of a set interface of the current interface test; accessing the set interface of the test machine according to the interface identifier; the set interface comprises a DP interface, an HDMI interface, a USB interface and a TYPE-C interface; sending a signal of successful access to the test machine; receiving a test instruction sent by the test machine, and testing the set interface of the test machine according to the interface identifier in response to the test instruction, and sending a test result to the test machine; in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the test instruction comprises an interface access detection instruction and an interface removal detection instruction; in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the test result comprises an interface access detection result and an interface removal detection result; wherein, in the case that the interface identifier shows that the interface type of the set interface is a DP interface or an HDMI interface, the receiving of the test instruction sent by the test machine and the testing of the set interface of the test machine according to the interface identifier in response to the test instruction and the sending of the test result to the test machine comprise: receiving a resolution identifier and a test signal corresponding to a plurality of resolution identifiers sent by the test machine in response to the test instruction; comparing the test signal with a corresponding original signal according to the resolution identifier to obtain a comparison result; obtaining a plurality of comparison results for a plurality of resolutions supported by the test machine; sending the plurality of comparison results and the resolution identifier corresponding to each comparison result to the test machine; The test machine, the test device and the test machine are connected in the same preset communication line through a network, and the test machine, the test device and the test machine interact and communicate through TCP / IP protocol and MQTT protocol.

4. The method of claim 3, wherein, in the case that the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the receiving of the test instruction sent by the test machine and the testing of the set interface of the test machine according to the interface identifier in response to the test instruction and the sending of the test result to the test machine comprise: receiving an interface access detection result of the set interface detected by the test machine in response to the interface access detection instruction, and sending the interface access detection result to the test machine; removing the set interface in response to the interface removal detection instruction; receive an interface removal detection result of the set interface detected by the to-be-tested machine in response to the removal detection instruction, and send the interface removal detection result to the test machine; wherein the interface removal detection instruction is an instruction sent by the test machine to the to-be-tested machine in a case where the test machine receives the interface access detection result and the interface access detection result shows that the set interface is successfully accessed; the test result includes the interface access detection result and the interface removal detection result.

5. An interface performance test system, characterized by, The system comprises: a test machine configured to send a connection instruction and a test instruction, and receive a test result of an interface test on the set interface of the to-be-tested machine by a test device of the to-be-tested machine according to the test instruction, the connection instruction including an interface identifier of the set interface for this test, and the test instruction carrying an interface test requirement for this interface test; the set interface includes a DP interface, an HDMI interface, a USB interface, and a TYPE-C interface; in a case where the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the interface test instruction includes an interface access detection instruction and an interface removal detection instruction; the test device is configured to connect a corresponding interface of the to-be-tested machine according to the interface identifier of the set interface; the test device is further configured to test the interface of the to-be-tested machine according to the test instruction of the test machine; the to-be-tested machine is configured to receive a test result generated by the test device in the detection on the set interface, and send the test result to the test machine; in a case where the interface identifier shows that the interface type of the set interface is a USB interface or a TYPE-C interface, the test result includes an interface access detection result and an interface removal detection result; wherein, in a case where the interface identifier shows that the interface type of the set interface is a DP interface or an HDMI interface, the test device tests the interface of the to-be-tested machine according to the test instruction of the test machine, including: receiving a resolution identifier and a test signal corresponding to a plurality of resolution identifiers sent by the to-be-tested machine in response to the test instruction; comparing the test signal with a corresponding original signal according to the resolution identifier to obtain a comparison result; obtaining a plurality of comparison results for a plurality of resolutions supported by the to-be-tested machine; sending the plurality of comparison results and the resolution identifier corresponding to each comparison result to the test machine; the test machine, the test device, and the to-be-tested machine can be connected in the same preset communication line through a network connection, and the test machine, the test device, and the to-be-tested machine can interact and communicate through TCP / IP protocol and MQTT protocol.

6. The system of claim 5, the test device comprising: a machine body, on which a network interface is arranged, for communication with the to-be-tested machine and the test machine; an interface access mechanism arranged in the machine body, for connecting with the interface of the to-be-tested machine, so as to enable the test device to access different interfaces of the to-be-tested machine. An interface detection mechanism is arranged in the body and connected with the interface access mechanism, and is used for testing the interface of the machine to be tested; A main control chip is arranged in the body and connected with the network interface, the interface access mechanism and the interface detection mechanism, and is used for receiving the instruction of the test machine; the main control chip is also used for controlling the interface access mechanism and the interface detection mechanism.

7. The system of claim 6, wherein, The interface access mechanism comprises: A DP access port is used for connecting the DP interface of the machine to be tested; An HDMI access port is used for connecting the HDMI interface of the machine to be tested; A USB access port is connected with a USB port switching module and the machine to be tested, and comprises a plurality of USB interfaces; The USB port switching module is connected with the USB access port and the main control chip, and is used for freely switching the plurality of USB interfaces to access the machine to be tested according to the instruction of the main control chip; A TYPE-C access port is connected with a TYPE-C port switching module and the machine to be tested, and comprises a plurality of TYPE-C interfaces; The TYPE-C port switching module is connected with the TYPE-C access port and the main control chip, and is used for freely switching the plurality of TYPE-C interfaces to access the machine to be tested according to the instruction of the main control chip.

8. The system of claim 7, wherein, The interface detection mechanism comprises: A signal decoding module is connected with the interface access mechanism and a data detection module, and is connected with the main control chip, and is used for receiving the test signal sent by the machine to be tested through the interface access mechanism, and decoding and processing the test signal to generate test data; The data detection module is used for comparing the test data with corresponding original data to generate a detection result, and sending the detection result to the test machine.

Citation Information

Patent Citations

  • Terminal testing method and device and terminal testing system

    CN110069952A

  • Test equipment and test method

    CN112752096A