Interface testing device and interface testing method
By designing an interface test device that integrates power module, data selection module, switch module and power transmission protocol module, the complexity and low efficiency of power transmission performance testing of USB Type-C interface is solved, and more comprehensive and efficient testing is achieved.
Patent Information
- Application Number
- CN202411196804.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, the power transmission performance test method of the USB Type-C interface is complex in operation, has low test efficiency, and some functions cannot be realized.
An interface testing device is designed, including a power supply module, a data selection module, a first switch module, a second switch module and a power transmission protocol module. Through the integrated design of these modules, the power transmission function test of the measured interface is realized. Simplify the testing process, improve testing efficiency, and add video source modules, key modules and load modules to enhance testing functions.
It realizes a more comprehensive test of the power transmission function of the USB Type-C interface, simplifies the test process, improves the testing efficiency, is easy to operate, and is suitable for large-scale production and interface testing.
Smart Images

Figure CN119166431A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment testing, and in particular to an interface testing device and an interface testing method. Background Art
[0002] The Universal Serial Bus (USB) Type-C interface has the characteristics of being reversible, pluggable, supporting bidirectional transmission, and supporting high-power fast charging, and has gradually become a standard interface for various devices. With the popularization of the USB Type-C interface, the power transmission protocol it supports enables more efficient power transmission and data communication between devices. Before applying the USB Type-C interface, the power transmission performance of the USB Type-C interface can be tested.
[0003] However, the prior art method for testing the power transmission performance of the USB Type-C interface has the problems of complex operation, low testing efficiency, and some test functions cannot be realized. Summary of the invention
[0004] The present invention provides an interface testing device and an interface testing method, so as to improve the testing efficiency and realize a more comprehensive test on the power transmission function.
[0005] According to one aspect of the present invention, an interface testing device is provided, the interface testing device comprising: a power supply module, a data selection module, a first switch module, a second switch module and a power transmission protocol module;
[0006] The power module is connected to the first switch module, the power transmission protocol module and the data selection module, and the power module is used to provide a power signal to the first switch module, the power transmission protocol module and the data selection module; the device under test is connected to the interface test device through the interface under test;
[0007] The power transmission protocol module is connected to the first switch module, the second switch module and the data selection module;
[0008] The power transmission protocol module is used to control the first switch module to be turned on, the second switch module to be turned off, and the data selection module to be turned on when the device under test is connected and the power transmission protocol module is used as a power supply. The power transmission protocol module sends information including the voltage output range and the current output range to the device under test, completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test;
[0009] And / or, the power transmission protocol module is used to control the second switch module to turn on, control the first switch module to turn off, and control the data selection module to turn on when the device under test is connected and the power transmission protocol module serves as the power source. The device under test provides a first voltage to the power transmission protocol module and completes power and data configuration communication, and performs a power transmission function test on the interface under test.
[0010] Optionally, the interface testing device further includes: a video source module;
[0011] The video source module is connected to the power module, and the power module is used to provide a power signal for the video source module;
[0012] The video source module is connected to the power transmission protocol module. The video source module is used to control the communication connection between the power transmission protocol module and the device under test after the video source is connected to perform the screen projection test;
[0013] The video source module is connected to the data selection module, and the data selection module is used to transmit the data signal of the video source module to the device under test.
[0014] Optionally, the interface test device further includes: a key module; the key module is connected to the power transmission protocol module;
[0015] The button module is used to control the output voltage level of the power transmission protocol module.
[0016] Optionally, the interface testing device further includes: a load module; the load module is connected to the second switch module and the power transmission protocol module;
[0017] The power transmission protocol module is used to control the load module to perform a load-drawing capacity test on the interface under test according to the maximum current of the device under test when a key action of the key module is detected.
[0018] Optionally, the power transmission protocol module includes a power transmission protocol unit;
[0019] The power transmission protocol unit and the device under test transmit data signals through the interface under test; the device under test includes a display, a hub or an adapter.
[0020] According to another aspect of the present invention, there is provided an interface testing method, the interface testing method comprising:
[0021] The power module is connected to the power supply, and the power transmission protocol module controls the first switch module and the second switch module to be turned off;
[0022] When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, controls the data selection module to turn on, and sends information including the voltage output range and the current output range to the device under test, and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test;
[0023] When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides a first voltage to the power transmission protocol module and completes power and data configuration communication, and performs a power transmission function test on the interface under test.
[0024] Optionally, when the power transmission protocol module is connected to the device under test and the power transmission protocol module serves as a power supply, the first switch module is controlled to be turned on, the second switch module is controlled to be turned off, the data selection module is controlled to be turned on, the power transmission protocol module sends information including a voltage output range and a current output range to the device under test, and completes power supply and data configuration communication, and after the power transmission function test of the interface under test is performed, it includes:
[0025] When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on;
[0026] The device under test sends information including the voltage output range and the current output range to the power transmission protocol module and completes the power supply configuration.
[0027] Optionally, after the device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes the power configuration, or the device under test does not initiate power exchange to the power transmission protocol module, or after the device under test provides a first voltage to the power transmission protocol module and completes the power and data configuration communication, and performs a power transmission function test on the interface under test, it also includes:
[0028] When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test to perform a screen projection test.
[0029] Optionally, when a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test, and after performing the screen projection test, the following steps are included:
[0030] When the button module is pressed, the load module is controlled to test the load capacity of the interface under test according to the maximum current of the device under test.
[0031] Optionally, when the key module has a key action, after controlling the load module to perform a load capacity test on the interface under test according to the maximum current of the device under test, or after no key action is detected on the key module, including:
[0032] When the device under test is unplugged, the voltage of the power transmission protocol module is set to the second voltage through the key module;
[0033] The power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0034] According to the technical solution of the embodiment of the present invention, the power module provides a power signal, the data selection module is used to select the number of channels for data transmission, the power transmission protocol module and the device under test complete the power and data configuration communication, and realize the power transmission function test of the interface under test. Through the integrated design of each module, it can meet the test requirements of the interface under test, simplify the test process, improve the test efficiency, and is easy to operate, which is suitable for large-scale production and testing of interfaces.
[0035] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 is a structural schematic diagram of an interface testing device provided according to an embodiment of the present invention;
[0038] Figure 2 is a structural schematic diagram of another interface testing device provided according to an embodiment of the present invention;
[0039] Figure 3 is a flow chart of an interface testing method provided according to an embodiment of the present invention;
[0040] Figure 4 is a flow chart of another interface testing method provided according to an embodiment of the present invention;
[0041] Figure 5 is a flow chart of another interface testing method provided according to an embodiment of the present invention;
[0042] Figure 6is a flow chart of another interface testing method provided according to an embodiment of the present invention;
[0043] Figure 7 is a flow chart of another interface testing method provided according to an embodiment of the present invention;
[0044] Figure 8 It is a specific flow chart of an interface testing method provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] Figure 1 1 is a schematic diagram of the structure of an interface testing device provided according to an embodiment of the present invention. Figure 1As shown, the interface testing device 100 includes: a power supply module 10, a data selection module 20, a first switch module 30, a second switch module 40 and a power transmission protocol module 50; the power supply module 10 is connected to the first switch module 30, the power transmission protocol module 50 and the data selection module 20, and the power supply module 10 is used to provide a power supply signal to the first switch module 30, the power transmission protocol module 50 and the data selection module 20; the device under test 300 is connected to the interface testing device 100 through the tested interface 200; the power transmission protocol module 50 is connected to the first switch module 30, the second switch module 40 and the data selection module 20; the power transmission protocol module 50 is used to connect the device under test 300 and the power transmission protocol module 50 as a power supply When the power source is connected, the first switch module 30 is controlled to be turned on, the second switch module 40 is controlled to be turned off, the data selection module 20 is controlled to be turned on, the power transmission protocol module 50 sends information including the voltage output range and the current output range to the device under test 300, and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test 200; and / or, the power transmission protocol module 50 is used to control the second switch module 40 to be turned on, the first switch module 30 is controlled to be turned off, the data selection module 20 is controlled to be turned on, the device under test 300 provides the first voltage to the power transmission protocol module 50 and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test 200.
[0048] In an embodiment of the present invention, Figure 1 The red line shown indicates the transmission of power signals, the blue line indicates the transmission of control signals, and the green line indicates the transmission of data signals. The power module 10 is used to connect the interface test device 100 to the power supply, and can provide power signals for the first switch module 30, the power transmission protocol module 50, and the data selection module 20. The power module 10 can be a switching power module, in which components such as switch tubes, transformers, inductors, and diodes are integrated, and the power transfer between components is controlled by controlling the different on and off states of the switch tubes, thereby realizing the conversion of the input voltage.
[0049] When the first switch module 30 is turned on, the power module 10 can transmit a power signal to the tested interface 200 through the first switch module 30, and the tested device 300 can achieve mutual transmission of power signals and data signals by connecting to the tested interface 200. The tested interface 200 can also transmit a power signal to the second switch module 40. When the second switch module 40 is in the on state, the tested interface 200 can provide a power signal to the device or module connected thereto through the second switch module 40.
[0050] The device under test 300 includes but is not limited to a display or an adapter, etc. The interface under test 200 may be a USB Type-C. When testing the interface under test 200 , the device under test 300 is connected to the interface testing apparatus 100 via the interface under test 200 .
[0051] When testing the power transmission function of the interface under test 200, first connect the power supply to the power supply module 10, power on and initialize, and turn off the first power supply module 30 and the second switch module 40. Then, detect whether the interface under test 200 is connected to the device under test 300. For example, detect whether a display is connected to the interface under test 200. If no display is detected, return to continue the detection; if a display is detected, the display realizes mutual data transmission with the power transmission protocol module 50 through the interface under test 200, so it is determined whether the power transmission protocol module 50 is used as a power supply or a supplied power source. When the power transmission protocol module 50 is used as a power supply, the first switch module 30 is turned on, the second switch module 40 is turned off, and the data selection module 20 is turned on. The power transmission protocol module 50 sends a control signal to the data selection module 20 to control the data selection module 20 to select different data transmission channels. The power transmission protocol module 50 sends information including the voltage output range and the current output range to the display, and completes the power supply and data configuration communication. The information including the voltage output range and the current output range sent by the power transmission protocol module 50 to the display may indicate the output voltage level and the output current capability supported by the power transmission protocol module 50 .
[0052] The first voltage is the voltage value that the power transmission protocol module 50 requests the device under test 300 to provide when the power transmission protocol module 50 acts as a supplied power source. Exemplarily, the power transmission protocol module 50 requests the device under test 300 to provide a voltage of 5V. When the power transmission protocol module 50 acts as a supplied power source, that is, when the device under test 300 acts as a power supply source, the device under test 300 provides the first voltage to the power transmission protocol module 50 and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test 200.
[0053] Power exchange can also be achieved between the power transmission protocol module 50 and the device under test 300. After the power transmission protocol module 50 completes the power and data configuration communication with the device under test 300 as a power supply, the power transmission protocol module 50 can also detect whether the device under test 300 initiates power exchange. When the device under test 300 sends a message to the power transmission protocol module 50 requesting to switch the power supply direction, the power transmission protocol module 50 accepts the power exchange, controls the first switch module 30 to close, and opens the second switch module 40. The device under test 300 sends the supported output voltage gear and output current capacity to the power transmission protocol module 50, and completes the power configuration.
[0054] According to the technical solution of the embodiment of the present invention, the power module provides a power signal, the data selection module is used to select the number of channels for data transmission, the power transmission protocol module and the device under test complete the power and data configuration communication, and realize the power transmission function test of the interface under test. Through the integrated design of each module, it can meet the test requirements of the interface under test, simplify the test process, improve the test efficiency, and is easy to operate, which is suitable for large-scale production and testing of interfaces.
[0055] Figure 2 FIG. 1 is a schematic diagram of the structure of another interface testing device provided according to an embodiment of the present invention. Figure 2 As shown, the interface testing device also includes: a video source module 60; the video source module 60 is connected to the power module 10, and the power module 10 is used to provide a power signal for the video source module 60; the video source module 60 is connected to the power transmission protocol module 50, and the video source module 60 is used to control the communication connection between the power transmission protocol module 50 and the device under test 300 after the video source is connected, so as to perform a screen projection test; the video source module 60 is connected to the data selection module 20, and the data selection module 20 is used to transmit the data signal of the video source module 60 to the device under test 300.
[0056] In an embodiment of the present invention, the interface test device 100 also includes a video source module 60, which is connected to the power module 10, and the power module 10 provides a power signal for the video source module 60. The video source module 60 is also connected to the power transmission protocol module 50, and transmits the video signal to the device under test 300 through the interface under test 200. Exemplarily, when a video source is connected, the video source module 60 controls the power transmission protocol module 50 to communicate with the display through the USB Type-C interface, and transmits the video signal to the display through the USB Type-C interface to perform a screen projection test. By integrating the video source module 60, the screen projection function test of the interface under test 200 can be realized, making the test function of the interface test device 100 more comprehensive, and improving the test efficiency and test accuracy. The video source module 60 is also connected to the data selection module 20, through which a 4-channel (LANE) / 2LANE screen projection test can be performed to achieve the selection and test of different numbers of channels.
[0057] Based on the technical solution of the above invention embodiment, Figure 2 The interface testing device further includes: a button module 70; the button module 70 is connected to the power transmission protocol module 50; the button module 70 is used to control the output voltage level of the power transmission protocol module 50.
[0058] In the embodiment of the present invention, the interface test device 100 further includes a key module 70. The key module 70 is connected to the power transmission protocol module 50. By adding the key module 70, the output voltage level of the power transmission protocol module 50 can be manually set. When the power transmission protocol module 50 communicates with the device under test 300 for power and data configuration, different voltage levels can be manually set as needed. By adding the key module 70, the power output capability of the interface under test 200 can be tested, making the test function of the interface test device 100 more comprehensive.
[0059] Based on the technical solution of the above invention embodiment, Figure 2 The interface testing device also includes: a load module 80; the load module 80 is connected to the second switch module 40 and the power transmission protocol module 50; the power transmission protocol module 50 is used to control the load module 80 to perform a load-drawing capacity test on the interface 200 under test according to the maximum current of the device 300 under test when a key action of the key module 70 is detected.
[0060] In the embodiment of the present invention, when a key action is detected in the key module 70, the power transmission protocol module 50 controls the load module 80 to perform a load-drawing capacity test on the interface 200 under test according to the maximum current of the device under test 300, and performs an aging test. By adding the load module 80, the load can be drawn according to the maximum current supported by the device under test 300, and the aging test can be implemented, so that the test function of the interface test device 100 is more comprehensive, the test efficiency and test accuracy are improved, and the test cost is reduced.
[0061] Based on the technical solution of the above invention embodiment, Figure 2 The power transmission protocol module 50 includes a power transmission protocol unit; the power transmission protocol unit and the device under test 300 transmit data signals through the device under test interface 200; the device under test includes a display, a hub or an adapter.
[0062] The technical solution of the embodiment of the present invention, through the integrated design of each module, and the addition of a video source module 60, a data selection module 20, a button module 70 and a load module 80, achieves more comprehensive test functions, improves test efficiency and test accuracy, reduces test costs, covers more test scenarios, and timely feedbacks test information during the test process, so that testers can find problems in time.
[0063] Figure 3 1 is a flow chart of an interface testing method provided according to an embodiment of the present invention. The embodiment of the present invention can be applied to the power transmission function test of the interface. The interface testing method can be executed by an interface testing device, and the interface testing device can be implemented in the form of hardware and / or software. Figure 3 As shown, the interface testing method includes:
[0064] S110 , the power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0065] Specifically, when performing a power transmission function test on the interface under test, firstly, the power supply is connected to the power supply module, and the power is turned on and initialized, and the power transmission protocol module controls the first power supply module and the second switch module to be turned off.
[0066] S120. When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, and controls the data selection module to turn on. The power transmission protocol module sends information including a voltage output range and a current output range to the device under test, completes power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0067] Specifically, it is detected whether the tested interface is connected to the tested device. For example, it is detected whether a display is connected to the tested interface. If no display is detected, it returns to continue the test. If it is detected that a display is connected, the display and the power transmission protocol module realize mutual data transmission through the tested interface, so it is determined whether the power transmission protocol module is used as a power supply or a supplied power source. When the power transmission protocol module is used as a power supply, the first switch module is turned on, the second switch module is turned off, and the data selection module is turned on. The power transmission protocol module sends a control signal to the data selection module to control the data selection module to select different data transmission channels. The power transmission protocol module sends information including the voltage output range and the current output range to the display, and completes the power and data configuration communication.
[0068] S130. When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides the first voltage to the power transmission protocol module and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0069] Specifically, when the power transmission protocol module 50 serves as the supplied power source, that is, when the device under test 300 serves as the power supply source, the device under test 300 provides the first voltage to the power transmission protocol module 50 and completes the power and data configuration communication, and performs a power transmission function test on the interface under test 200 .
[0070] According to the technical solution of the embodiment of the present invention, the power module is connected to the power supply, the data selection module selects the number of channels for data transmission, the power transmission protocol module and the device under test complete the power supply and data configuration communication, and the power transmission function test of the interface under test is realized. Through the integrated design of each module, the test requirements of the interface under test can be met, the test process is simplified, the test efficiency is improved, and the operation is simple, which is suitable for large-scale production and interface testing.
[0071] Figure 4 FIG. 1 is a flow chart of another interface testing method provided according to an embodiment of the present invention. Figure 4 As shown, the interface testing method includes:
[0072] S210: The power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0073] S220. When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, and controls the data selection module to turn on. The power transmission protocol module sends information including the voltage output range and the current output range to the device under test, completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0074] S221. When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on.
[0075] S222. The device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power supply configuration.
[0076] Specifically, power exchange can also be achieved between the power transmission protocol module and the device under test. After the power transmission protocol module completes the power and data configuration communication with the device under test as a power supply, the power transmission protocol module can also detect whether the device under test initiates power exchange. When the device under test sends a message to the power transmission protocol module requesting to switch the power supply direction, the power transmission protocol module accepts the power exchange, controls the first switch module to close, and opens the second switch module. The device under test sends the supported output voltage level and output current capability to the power transmission protocol module, and completes the power configuration.
[0077] S230. When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides the first voltage to the power transmission protocol module and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0078] Figure 5 FIG. 1 is a flow chart of another interface testing method provided according to an embodiment of the present invention. Figure 5 As shown, the interface testing method includes:
[0079] S310: The power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0080] S320. When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, and controls the data selection module to turn on. The power transmission protocol module sends information including the voltage output range and the current output range to the device under test, completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0081] S321. When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on.
[0082] S322. The device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power supply configuration.
[0083] S330, when the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides the first voltage to the power transmission protocol module and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0084] S340. When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test and perform a screen projection test.
[0085] For example, when a video source is connected, the video source module controls the power transmission protocol module to communicate with the display through the USB Type-C interface, and transmits the video signal to the display through the USB Type-C interface to perform a screen projection test. Through the video source module, the screen projection function test of the interface under test can be implemented, making the test function more comprehensive and improving the test efficiency and test accuracy.
[0086] Figure 6 FIG. 1 is a flow chart of another interface testing method provided according to an embodiment of the present invention. Figure 6 As shown, the interface testing method includes:
[0087] S410: The power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0088] S420. When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, and controls the data selection module to turn on. The power transmission protocol module sends information including the voltage output range and the current output range to the device under test, completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0089] S421: When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on.
[0090] S422. The device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power supply configuration.
[0091] S430. When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides the first voltage to the power transmission protocol module and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0092] S440. When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test and perform a screen projection test.
[0093] S450: When the button module performs a button action, the load module is controlled to perform a load-drawing capacity test on the interface under test according to the maximum current of the device under test.
[0094] Specifically, after the screen projection test, if the button module is detected to have a button action, the power transmission protocol module controls the load module to test the load capacity of the tested interface according to the maximum current of the tested device, and performs an aging test. Through the load module, the load can be pulled according to the maximum current supported by the tested device to implement the aging test, making the interface test function more comprehensive, improving the test efficiency and test accuracy, and reducing the test cost.
[0095] Figure 7 FIG. 1 is a flow chart of another interface testing method provided according to an embodiment of the present invention. Figure 7 As shown, the interface testing method includes:
[0096] S510: The power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0097] S520. When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to turn on, controls the second switch module to turn off, and controls the data selection module to turn on. The power transmission protocol module sends information including a voltage output range and a current output range to the device under test, completes power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0098] S521: When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on.
[0099] S522: The device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power supply configuration.
[0100] S530. When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, controls the data selection module to turn on, the device under test provides the first voltage to the power transmission protocol module and completes the power supply and data configuration communication, and performs a power transmission function test on the interface under test.
[0101] S540: When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test and perform a screen projection test.
[0102] S550: When the button module is pressed, the load module is controlled to perform a load-drawing capacity test on the interface under test according to the maximum current of the device under test.
[0103] S560: When the device under test is unplugged, the voltage of the power transmission protocol module is set to the second voltage through the key module.
[0104] Specifically, the second voltage is the requested working voltage of the power transmission protocol module. Exemplarily, the second voltage is 5V. After completing the power transmission function test of the tested interface, it is detected whether the tested device is unplugged. If the tested device is unplugged, the voltage of the power transmission protocol module is set to 5V through the key module.
[0105] S570: The power transmission protocol module controls the first switch module and the second switch module to be turned off.
[0106] Specifically, after the key module sets the voltage of the power transmission protocol module to 5V, the power transmission protocol module controls the first switch module and the second switch module to close, sets the key flag position to 0, and completes the power transmission capability test of the interface under test.
[0107] Figure 8FIG. 1 is a specific flow chart of an interface testing method provided according to an embodiment of the present invention. Figure 8 As shown, the interface test method includes: S610, start; S620, power supply connection power-on initialization, the power transmission protocol module controls the first switch module and the second switch module to close; S630, determine whether the interface under test is connected to the display; if not, continue to determine; if so, execute S640, determine whether the power transmission protocol module is used as a power supply; if so, execute S650, the power transmission protocol module turns on the first switch module, turns on the data selection module, and sends a message containing the supported voltage gear and current output capability to the display, and completes the power and data configuration communication; if not, execute S660, the power transmission protocol module turns on the second switch module, turns on the data selection module, and requests 5V voltage from the display, and completes the power and data configuration communication; after S650, execute S651, determine whether the display initiates power exchange; if so, execute S652, the display sends a message to the power transmission protocol module, requesting to switch the power supply direction, and the power transmission protocol module ... The protocol module accepts and closes the first switch module, opens the second switch module, and the display sends a message containing the supported voltage level and current output capacity to the power transmission protocol module, and completes the power and data configuration communication; if not, or after S652, or after S660, execute S653 to determine whether there is a video source connected; if so, execute S654, and the video source module notifies the power transmission protocol module to cast the screen; if not, or after S654, execute S655 to determine whether there is a key action; if so, execute S656, and the load module works to perform a load capacity test; if not, or after S656, execute S657 to determine whether the display is unplugged; if not, execute S653 to determine whether there is a video source connected; if so, execute S658, the power transmission protocol module sets a 5V voltage and controls the first switch module and the second switch module to close, and sets the key mark position to 0; then returns to S630 to determine whether the interface under test is connected to the display.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An interface testing device, characterized in that: include: A power supply module, a data selection module, a first switch module, a second switch module and a power transmission protocol module; The power supply module is connected to the first switch module, the power transmission protocol module and the data selection module, and the power supply module is used to provide a power signal to the first switch module, the power transmission protocol module and the data selection module; The device under test is connected to the interface testing device via the interface under test; The power transmission protocol module is connected to the first switch module, the second switch module and the data selection module; The power transmission protocol module is used to control the first switch module to be turned on, the second switch module to be turned off, and the data selection module to be turned on when the device under test is connected and the power transmission protocol module serves as a power supply. The power transmission protocol module sends information including a voltage output range and a current output range to the device under test, completes power supply and data configuration communication, and performs a power transmission function test on the interface under test; And / or, the power transmission protocol module is used to control the second switch module to turn on, control the first switch module to turn off, and control the data selection module to turn on when the device under test is connected and the power transmission protocol module serves as the power supply. The device under test provides a first voltage to the power transmission protocol module and completes power and data configuration communication, and performs a power transmission function test on the interface under test.
2. The interface testing device according to claim 1, characterized in that: Also includes: Video source module; The video source module is connected to the power supply module, and the power supply module is used to provide a power signal for the video source module; The video source module is connected to the power transmission protocol module, and the video source module is used to control the communication connection between the power transmission protocol module and the device under test after a video source is connected to perform a screen projection test; The video source module is connected to the data selection module, and the data selection module is used to transmit the data signal of the video source module to the device under test.
3. The interface testing device according to claim 1, wherein: Also includes: Button module; The button module is connected to the power transmission protocol module; The button module is used to control the output voltage level of the power transmission protocol module.
4. The interface testing device according to claim 3, characterized in that: It also includes: a load module; the load module is connected to the second switch module and the power transmission protocol module; The power transmission protocol module is used to control the load module to perform a load capacity test on the interface under test according to the maximum current of the device under test when a key action of the key module is detected.
5. The interface testing device according to claim 1, characterized in that: The power transmission protocol module includes a power transmission protocol unit; The power transmission protocol unit and the device under test transmit data signals via the device under test interface; the device under test includes a display, a hub or an adapter.
6. An interface testing method, characterized in that: Applicable to the interface testing device according to any one of claims 1 to 5, the interface testing method comprising: The power module is connected to a power source, and the power transmission protocol module controls the first switch module and the second switch module to be turned off; When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to be turned on, controls the second switch module to be turned off, and controls the data selection module to be turned on. The power transmission protocol module sends information including a voltage output range and a current output range to the device under test, completes power supply and data configuration communication, and performs a power transmission function test on the interface under test; When the device under test is connected and the power transmission protocol module serves as the power source, the power transmission protocol module controls the second switch module to turn on, controls the first switch module to turn off, and controls the data selection module to turn on. The device under test provides a first voltage to the power transmission protocol module and completes power and data configuration communication, and performs a power transmission function test on the interface under test.
7. The interface testing method according to claim 6, characterized in that: When the device under test is connected and the power transmission protocol module serves as a power supply, the power transmission protocol module controls the first switch module to be turned on, controls the second switch module to be turned off, and controls the data selection module to be turned on. The power transmission protocol module sends information including a voltage output range and a current output range to the device under test, completes power supply and data configuration communication, and performs a power transmission function test on the interface under test, including: When the device under test initiates power exchange to the power transmission protocol module, the power transmission protocol module accepts and controls the first switch module to be turned off, and controls the second switch module to be turned on; The device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power supply configuration.
8. The interface testing method according to claim 7, characterized in that: After the device under test sends information including a voltage output range and a current output range to the power transmission protocol module and completes power configuration, or the device under test does not initiate power exchange to the power transmission protocol module, or the device under test provides a first voltage to the power transmission protocol module and completes power and data configuration communication, and after performing a power transmission function test on the interface under test, the method further includes: When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test to perform a screen projection test.
9. The interface testing method according to claim 8, characterized in that: When a video source is connected to the video source module, the video source module controls the power transmission protocol module to communicate with the device under test and performs a screen projection test, including: When the button module performs a button action, the load module is controlled to perform a load capacity test on the interface under test according to the maximum current of the device under test.
10. The interface testing method according to claim 9, characterized in that: After controlling the load module to perform a load capacity test on the interface under test according to the maximum current of the device under test when the key module performs a key action, or after no key action is detected on the key module, the method includes: When the device under test is unplugged, the voltage of the power transmission protocol module is set to a second voltage through the key module; The power transmission protocol module controls the first switch module and the second switch module to be turned off.
