Hot-swap test device and system

By combining control and switching modules, the opening and closing of the transfer channel is automatically controlled, solving the problems of low accuracy and efficiency of manual hot-swap testing, and realizing efficient and accurate multi-channel parallel hot-swap testing.

CN117251324BActive Publication Date: 2026-11-17MOORE THREADS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311236742.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2026-11-17
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

In existing technologies, manual hot-plug testing suffers from inaccurate results, high complexity, low efficiency, and difficulty in simulating abnormal scenarios.

Method used

A hot-swap testing device is used, including a control module and a switching module for multiple transfer channels. The device automatically controls the opening or closing of the transfer channels through control signals to simulate the hot-swap process between devices.

Benefits of technology

It improves the efficiency and accuracy of hot-swap testing, reduces testing complexity and cost, and can automatically perform multi-channel parallel testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117251324B_ABST
    Figure CN117251324B_ABST
Patent Text Reader

Abstract

This disclosure relates to a hot-swap testing apparatus and system. The apparatus includes a control module and a switch module with multiple transfer channels. The switch module can control the first link of each transfer channel to open or close according to the control signal from the control module, which is beneficial for automatically realizing multi-channel hot-swap testing and greatly improves the testing efficiency of hot-swap.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of testing technology, and in particular to a hot-swap testing device and system. Background Technology

[0002] Hot-swapping, also known as live plugging and unplugging, refers to the technology of connecting or removing devices, boards, modules, etc., while they are powered on, from a working system without affecting system operation. In related technologies, manual hot-swapping testing is typically performed. However, during manual hot-swapping testing, frequent operations by testers can lead to loose interfaces or improper insertion, resulting in inaccurate test results. Furthermore, hot-swapping testing is complex and labor-intensive; relying on manual plugging and unplugging is inefficient and makes it difficult to simulate various abnormal scenarios, such as short intervals between multiple plugging and unplugging operations. Summary of the Invention

[0003] This disclosure proposes a hot-plug testing technique.

[0004] According to one aspect of this disclosure, a hot-plug testing device is provided, characterized in that it includes: a control module and a switch module connected to the control module, the switch module including multiple transfer channels; the control module sends a control signal to the switch module according to a received control command in a preset protocol format; the switch module controls the first link of at least one transfer channel to open or close according to the received control signal, wherein the second link of each transfer channel is in a closed state, wherein each transfer channel is disposed between a first device and a second device for simulating hot-plugging between the first device and the second device.

[0005] In one possible implementation, after the switch module controls the first link of at least one switching channel to disconnect or close according to the received control signal, it sends feedback information to the control module. The feedback information is used to characterize the connection status of at least one switching channel. The control module updates or initializes the configuration file according to the received feedback information.

[0006] In one possible implementation, the control module is further configured to: detect whether a configuration file exists in the control module in response to power-on; if a configuration file exists in the control module, control the first link of each switching channel to be disconnected or closed according to the instructions of the configuration file; or, if no configuration file exists in the control module, control the first link of all switching channels to be closed.

[0007] In one possible implementation, the preset protocol format includes a port identifier field and a port operation field. The port identifier field is used to indicate at least one switching channel. The port operation field is used to disconnect the switching channel, close the switching channel, query the connection status of the switching channel, and disconnect or close the switching channel according to a preset time or a preset number of times.

[0008] In one possible implementation, the hot-swap testing device further includes a client connected to the control module via a network. The client displays: a first control group for establishing a communication connection with the control module, a second control group for sending control commands in the preset protocol format to the control module, and a third control group for receiving feedback information from the control module. The control commands control the control module to send control signals to the switch module, and the feedback information displays the connection status of at least one switching channel.

[0009] In one possible implementation, the second control group is used to acquire a script file and send control instructions in the preset protocol format to the control module according to the script file, wherein the script file includes multiple control instructions in the preset protocol format.

[0010] In one possible implementation, each adapter channel includes a first connector and a second connector, the first connector and the second connector each including multiple types of interfaces for matching the interfaces of a first device or a second device.

[0011] In one possible implementation, the switch module further includes at least one expansion interface for expanding the number of switching channels.

[0012] In one possible implementation, the first device includes a processing device, the second device includes a display device, the first link includes a hot-plug detection link, and the second link includes all links in the transition channel other than the hot-plug detection link.

[0013] According to another aspect of this disclosure, a hot-plug testing system is provided, including the hot-plug testing apparatus as described above.

[0014] According to one aspect of this disclosure, a hot-plug testing method is provided, the method being applied to a hot-plug testing device, the hot-plug testing device including a control module and a switch module connected to the control module, the switch module including multiple transfer channels; the hot-plug testing method includes: the control module sending a control signal to the switch module according to a received control command in a preset protocol format; the switch module controlling the first link of at least one transfer channel to open or close according to the received control signal, wherein the second link of each transfer channel is in a closed state, wherein each transfer channel is disposed between a first device and a second device, for simulating hot-plugging between the first device and the second device.

[0015] In one possible implementation, the method further includes: after the switch module controls the first link of at least one switching channel to disconnect or close according to the received control signal, the switch module sends feedback information to the control module, the feedback information being used to characterize the connection status of at least one switching channel; the control module updates or initializes the configuration file according to the received feedback information.

[0016] In one possible implementation, the method further includes: the control module detecting whether a configuration file exists in the control module in response to power-on; if a configuration file exists in the control module, controlling the first link of each switching channel to disconnect or close according to the instruction of the configuration file; or, if no configuration file exists in the control module, controlling the first link of all switching channels to close.

[0017] In one possible implementation, the preset protocol format includes a port identifier field and a port operation field. The port identifier field is used to indicate at least one switching channel; the port operation field is used to disconnect the switching channel, close the switching channel, and query the connection status of the switching channel.

[0018] In one possible implementation, the port operation field is also used to perform switching channel disconnection or closure according to a preset time or a preset number of times.

[0019] In one possible implementation, the hot-swap testing device further includes a client, which is used to display a first control group for establishing a communication connection with the control module, a second control group for issuing control commands to the control module, and a third control group for receiving feedback information from the control module; in response to an operation on the first control group, establishing a communication connection with the control module; in response to an operation on the second control group, sending control commands in the preset protocol format to the control module, so that the control module parses the control commands to obtain control signals for sending to the switch module; and in response to receiving feedback information sent by the control module, the third control group displays the connection status of at least one switching channel according to the feedback information.

[0020] In one possible implementation, the second control group is used to acquire a script file and send control instructions in the preset protocol format to the control module according to the script file, wherein the script file includes multiple control instructions in the preset protocol format.

[0021] In one possible implementation, each adapter channel includes a first connector and a second connector, the first connector and the second connector each including multiple types of interfaces for matching the interfaces of a first device or a second device.

[0022] In one possible implementation, the switch module further includes at least one expansion interface for expanding the number of switching channels.

[0023] In one possible implementation, the first device includes a processing device, the second device includes a display device, the first link includes a hot-plug detection link, and the second link includes all links in the transition channel other than the hot-plug detection link.

[0024] In this embodiment of the disclosure, the hot-swap testing device includes a control module and a switch module with multiple transfer channels. The switch module can control the first link of the multiple transfer channels to open or close according to the control signal from the control module, which is beneficial to automatically realize multi-channel parallel hot-swap testing and greatly improves the testing efficiency of hot-swap.

[0025] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the embodiments of this disclosure. Other features and aspects of the embodiments of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments conforming to the present disclosure and, together with the specification, serve to explain the technical solutions of the embodiments of the present disclosure.

[0027] Figure 1 A schematic diagram of a hot-plug testing apparatus according to an embodiment of the present disclosure is shown.

[0028] Figure 2 A schematic diagram of a high-definition multimedia interface according to an embodiment of the present disclosure is shown.

[0029] Figure 3 A schematic diagram of another hot-plug testing apparatus according to an embodiment of the present disclosure is shown.

[0030] Figure 4 A schematic diagram illustrating the application of a hot-plug testing apparatus according to an embodiment of the present disclosure is shown.

[0031] Figure 5 A flowchart illustrating a hot-plug testing method according to an embodiment of the present disclosure is shown. Detailed Implementation

[0032] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0033] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0034] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0035] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0036] In related technologies, manual hot-plug testing is usually used. However, the results of manual hot-plug testing are unreliable. Frequent hot-plug operations may result in problems such as improper insertion or loose device interfaces, leading to abnormal test results.

[0037] Furthermore, manual hot-plug testing is highly complex and labor-intensive. For example, for hot-plug testing of devices with High Definition Multimedia Interface (HDMI), an HDMI display source device such as a graphics card (GPU) can support the connection of multiple HDMI display devices. Not only do we need to verify each interface individually, but we also need to verify the combination of different interfaces. The workload of manual hot-plug testing is enormous.

[0038] In view of this, the hot-swap testing device provided in this embodiment includes a control module and a switch module with multiple transfer channels. The switch module can control the first link of the multiple transfer channels to open or close according to the control signal from the control module, which is beneficial to automatically realize multi-channel parallel hot-swap testing and greatly improves the testing efficiency of hot-swap.

[0039] Figure 1 A schematic diagram of the structure of a hot-plug testing apparatus according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, the hot-swap testing device may include: a control module 1 and a switch module 2. The control module 1 is electrically connected to the switch module 2. The control module 1 and the switch module 2 may be packaged on different circuit boards or integrated onto the same circuit board; this embodiment does not impose any limitations on this.

[0040] The control module 1 can be used to send control signals to the switch module 2 according to the received control instructions in a preset protocol format. For example, the control module 1 can be a single-chip microcomputer, a field-programmable gate array (FPGA), a programmable logic device (PLD), a complex programmable logic device (CPLD), a central processing unit (CPU), an application-specific integrated circuit (ASIC), etc., to receive control instructions in a preset protocol format and parse the received control instructions in a preset protocol format into control signals to be sent to the switch module 2.

[0041] like Figure 1As shown, the switch module 2 may include multiple transfer channels 3. For example, the switch module 2 may include N transfer channels 3, where N is a positive integer. The switch module 2 can be used to control the first link 4 of at least one transfer channel 3 to open or close according to the received control signal. Each transfer channel 3 is located between a first device and a second device. The second link 5 of each transfer channel 3 is in a closed state, and the first link 4 of each transfer channel 3 can remain open or closed according to the control signal, to simulate hot-plugging between the first device and the second device.

[0042] Each transfer channel 3's first link 4 can be equipped with a circuit switch that has both on and off states, such as a logic gate-based switch, a relay switch, or a transistor switch. The switch module 2 can control the opening or closing of the circuit switch of the first link 4 of each transfer channel 3 according to the received control signal, thereby controlling the opening or closing of each transfer channel 3.

[0043] The hot-plug testing apparatus of this disclosure controls the opening or closing of the first link 4 of each transition channel 3 in the switch module 2 via control commands. This automatically simulates the hot-plugging action between the first and second devices corresponding to each transition channel 3, improving the efficiency and reliability of hot-plug testing while reducing its cost and complexity. Furthermore, the switch module 2 can control the opening or closing of the first link 4 of multiple transition channels 3 according to control signals from the control module 1, facilitating the automatic implementation of multi-channel parallel hot-plug testing and significantly improving testing efficiency.

[0044] In one possible implementation, the control instructions can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" or similar languages. This disclosure does not limit the form of the control instructions.

[0045] In one possible implementation, the switch module 2 further includes at least one expansion interface for expanding the number of transfer channels 3. For example, assuming the switch module 2 includes N transfer channels 3, M (M≥1) switch modules 2 can be connected in parallel through the expansion interface to expand the number of transfer channels 3 to N×M.

[0046] By setting an expansion interface for switch module 2, control module 1 can control M switch modules 2 simultaneously, greatly expanding the number of transfer channels 3 and improving the testing efficiency for hot-plugging tests of a large number of first and second devices.

[0047] In one possible implementation, the switching channel 3 in the switch module 2 can be a channel of a different type in order to match different types of first and second devices.

[0048] For example, the first device includes a processing device, and the second device includes a display device. The processing device may be, for example, a video card, a host computer, or a graphics processing unit (GPU); the display device may be, for example, a digital tube display, a cathode ray tube display (CRT), a light-emitting diode display (LED), an organic light-emitting diode display (OLED), or a liquid crystal display (LCD).

[0049] In one possible implementation, where the first device includes a processing device and the second device includes a display device, each adapter channel 3 can be an adapter channel 3 based on the High Definition Multimedia Interface (HDMI), or simply an HDMI channel. Figure 2 A schematic diagram of a high-definition multimedia interface according to an embodiment of the present disclosure is shown, such as... Figure 2As shown, the first link 4 includes the hot plug detection (HPD) link corresponding to pin 19, and the second link 5 includes all links except the hot plug detection link in the transition channel 3, namely the links corresponding to pins 1 to 18. Among them, the links corresponding to pins 1 to 12 are four sets of Transition Minimized Differential Signaling (TMDS), the link corresponding to pin 13 is the Consumer Electronics Control (CEC) link, the link corresponding to pin 14 is a reserved link without any function, the links corresponding to pins 15 and 16 are Direct Digital Control (DDC) links used to read Extended Display Identification Data (EDID), the link corresponding to pin 17 is the ground line, and the link corresponding to pin 18 is the power line.

[0050] In each HDMI channel of the switch module 2, the links corresponding to pins 1 to 18 are kept closed, and the hot-plug detection link corresponding to pin 19 is equipped with a circuit switch with two states: on and off. The switch module 2 can control the hot-plug detection link corresponding to pin 19 in each HDMI channel to open or close according to the received control signal, so as to realize the hot-plug test between the processing device and the display device.

[0051] In one possible implementation, each adapter channel 3 includes a first connector and a second connector, the first connector and the second connector respectively including multiple types of interfaces for matching the interfaces of the first device or the second device.

[0052] In the example, for any adapter channel 3, an interface of the same type as the first device interface can be selected from the various types of adapter interfaces included in the first connector of the adapter channel 3, and the first connector can be plugged into the first device through this type of interface. Similarly, an interface of the same type as the second device interface can be selected from the various types of adapter interfaces included in the second connector of the adapter channel 3, and the second connector can be plugged into the second device through this type of interface. Alternatively, an interface of the same type as the second device interface can be selected from the various types of adapter interfaces included in the first connector of the adapter channel 3, and the first connector can be plugged into the second device through this type of interface. Similarly, an interface of the same type as the first device interface can be selected from the various types of adapter interfaces included in the second connector of the adapter channel 3, and the second connector can be plugged into the first device through this type of interface. This disclosure embodiment does not limit this.

[0053] For example, each adapter channel 3 of the switch module 2 can provide an HDMI interface, a Video Graphics Array (VGA) interface, and a Thunderbolt interface. In a scenario where the first device has an HDMI interface and the second device has a VGA interface, the HDMI interface of the first connector can be plugged into the HDMI interface of the first device, and the VGA interface of the second connector can be plugged into the VGA interface of the second device. Alternatively, the HDMI interface of the second connector can be plugged into the HDMI interface of the first device, and the VGA interface of the first connector can be plugged into the VGA interface of the second device.

[0054] It should be understood that when the adapter channel 3 is an HDMI channel, an interface converter (such as an HDMI to VGA converter) can be set in the first connector and the second connector to convert the HDMI interface to other types of interfaces.

[0055] By configuring the first and second connectors to include multiple types of interfaces, the applicability of the hot-plug test device can be improved.

[0056] In one possible implementation, the preset protocol format includes a port identifier field and a port operation field. The port identifier field is used to indicate at least one switching channel 3; the port operation field is used to disconnect the switching channel 3, close the switching channel 3, and query the connection status of the switching channel 3.

[0057] For example, assuming there are N (N is a positive integer) transfer channels 3 in the switch module 2, the port identification field is used to indicate at least one transfer channel 3. For example, setting the port identification field to "0" can represent all physical ports, used to indicate all N transfer channels 3; setting the port identification field to "1" represents physical port 1, used to indicate the first transfer channel 3; setting the port identification field to "2" represents physical port 2, used to indicate the second transfer channel 3; and so on, setting the port identification field to "N" represents physical port N, used to indicate the Nth transfer channel 3.

[0058] The port operation field is used to disconnect, close, and query the connection status of transfer channel 3. For example, setting the port operation field to "0" indicates that transfer channel 3 is disconnected; setting it to "1" indicates that transfer channel 3 is closed; and setting it to "2" indicates that the connection status of transfer channel 3 is queried. Each transfer channel 3 of switch module 2 can respond to the query command and return a status code indicating the connection status, where status code "0" indicates a disconnected state and status code "1" indicates a closed state.

[0059] In practical applications, to facilitate the parsing of control commands by control module 1, the preset protocol format can also include a command prefix, such as "hpd". Thus, when control module 1 receives the control command "hpd 0 0", it can send a control signal to switch module 2 to disconnect all transfer channels 3; when control module 1 receives the control command "hpd 0 1", it can send a control signal to switch module 2 to close all transfer channels 3; when control module 1 receives the control command "hpd 0 2", it can send a control signal to switch module 2 to query the connection status of all transfer channels 3; when control module 1 receives the control command "hpdN 0", it can send a control signal to switch module 2 to disconnect the Nth transfer channel 3; when control module 1 receives the control command "hpd N 1", it can send a control signal to switch module 2 to close the Nth transfer channel 3; when control module 1 receives the control command "hpd N 2", it can send a control signal to switch module 2 to query the connection status of the Nth transfer channel 3.

[0060] In this way, hot-plug testing can be performed using control commands, reducing the complexity of hot-plug testing.

[0061] In one possible implementation, the port operation field is also used to open or close the transfer channel according to a preset time or a preset number of times. For example, if the port operation field is set to "TP", it means that the preset time is P seconds (P>0), and the transfer channel 3 can be opened or closed once every P seconds; or if the port operation field is set to "FP", it means that the preset number of times is P times (P>0), and the transfer channel 3 can be opened or closed P times.

[0062] In the example, when control module 1 receives the control command "hpd 0T-1", it can send a control signal to switch module 2 to make all transfer channels 3 open or close once every 1 second. According to the control signal, switch module 2 can close all transfer channels 3 in the 1st second, open in the 2nd second, close in the 3rd second, open in the 4th second, until switch module 2 receives new control information.

[0063] In the example, when control module 1 receives the control command "hpd 0F-10", it can send a control signal to switch module 2 to make all transfer channels 3 perform three open or close operations. According to the control signal, switch module 2 will first perform a close operation, then an open operation, and then a close operation.

[0064] It should be understood that testers can determine the preset time or preset number of times based on the actual application scenario, and this disclosure does not impose any restrictions on this.

[0065] By setting a preset number of insertions and removals, multiple hot-plug tests between the first and second devices can be performed, which helps to improve the efficiency and accuracy of hot-plug testing.

[0066] During hot-swap testing using a hot-swap testing device, if an abnormal situation such as a power outage occurs, the hot-swap test is interrupted and needs to be retested, reducing testing efficiency. Therefore, the hot-swap testing device of this disclosure also includes a port reset mechanism and a power outage recovery mechanism.

[0067] In one possible implementation, the switch module 2 is further configured to: after controlling the first link 4 of at least one switching channel 3 to disconnect or close according to the received control signal, send feedback information to the control module 1, the feedback information being used to characterize the connection status of at least one switching channel 3; the control module 1 is further configured to: update or initialize the configuration file according to the received feedback information.

[0068] For example, assuming there are N transfer channels 3 in the switch module 2, at time T1, the switch module 2, based on the received control signal, controls the first link 4 of all N transfer channels 3 to disconnect. The feedback information transmitted by the switch module 2 to the control module 1 may include N status codes "0" corresponding to the N transfer channels 3, indicating that all N transfer channels 3 are in a disconnected state. The control module 1 can initialize a configuration file based on the received feedback information. This configuration file contains configuration parameters indicating that all N transfer channels 3 are in a disconnected state.

[0069] At time T2, the switch module 2 controls the first link 4 of the second transfer channel 3 to close according to the received control signal. The feedback information transmitted by the switch module 2 to the control module 1 may include the status code "1" corresponding to the second transfer channel 3, indicating that the second transfer channel 3 is in a closed state. The control module 1 can update the configuration file according to the received feedback information. The updated configuration file includes configuration parameters indicating that the second transfer channel 3 is in a closed state and all other transfer channels 3 are in an open state.

[0070] In this way, the configuration file can update and save the connection status information of each transfer channel 3 in the switch module 2 in real time. This configuration file can be used to restore the connection status of each transfer channel 3 in the event of an abnormal situation such as a power outage.

[0071] In one possible implementation, the control module 1 is further configured to: detect whether a configuration file exists in the control module 1 in response to power-on; if a configuration file exists in the control module 1, control the first link 4 of each transfer channel 3 to disconnect or close according to the instruction of the configuration file; or, if no configuration file exists in the control module 1, control the first link 4 of all transfer channels 3 to close.

[0072] If a configuration file is detected in control module 1, since the configuration file records the connection status of each transfer channel 3 in switch module 2 before power-on, control module 1 can generate control signals based on the configuration file to restore each transfer channel 3 in switch module 2 to its connection status before power-off. If no configuration file is detected in control module 1, it can automatically generate the control command "dhp 0 1" and determine the control signal to be sent to switch module 2 based on the control command "dhp 0 1" to control the closure of the first link 4 of all transfer channels 3.

[0073] In this way, a power failure recovery mechanism for the hot-swap test device can be implemented according to the configuration file. The hot-swap test device can continue the test process before the power failure, which helps to improve the stability and test efficiency of the hot-swap test device.

[0074] In one possible implementation, Figure 3 A schematic diagram of another hot-plug testing apparatus according to an embodiment of the present disclosure is shown, such as... Figure 3 As shown, the hot-swap testing device further includes a client 0, which is used to display a first control group for establishing a communication connection with the control module 1, a second control group for sending control commands to the control module 1, and a third control group for receiving feedback information from the control module 1; in response to an operation on the first control group, establishing a communication connection with the control module 1; in response to an operation on the second control group, sending control commands in the preset protocol format to the control module 1 so that the control module 1 can parse the control commands to obtain control signals for sending to the switch module 2; and in response to receiving feedback information sent by the control module 1, the third control group displays the connection status of at least one transfer channel 3 according to the feedback information.

[0075] Client 0 and control module 1 can communicate via a network to enable client 0 to remotely control the opening or closing of the first link 4 of each transfer channel 3. The network connecting control module 1 and client 0 can be a wide area network (WAN) or a local area network (LAN); this embodiment does not limit the specific type of network. Client 0 can be user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc.; this embodiment does not limit this as well.

[0076] In the example, a control interface can be displayed on the screen of client 0, and hot-plug testing can be performed using a graphical control interface to make the testing process of the hot-plug testing device more intuitive and convenient. Client 0 can be any electronic device loaded with a hot-plug testing software package; this disclosure does not limit this.

[0077] The control interface may include various control groups with different functions, and each control group may include at least one control. The controls may represent encapsulation of data and methods, and may include text box controls, report controls, chart controls, scroll bar controls, button controls, etc. This embodiment does not limit the number or type of controls included in each control group. For example, the control interface displayed on the client 0 screen may include three control groups: a first control group, a second control group, and a third control group.

[0078] In the example, the tester can perform input operations such as selection, editing, and clicking on the controls in the first control group. For example, the first control group may include a text box control for inputting the Internet Protocol (IP) address and / or verification code of the control module 1 to be matched, and a connection button. The tester can input the IP address and / or verification code of the control module 1 to be matched into the text box control in the first control group and click the connection button in the first control group. In response to the tester's operation on the above controls in the first control group, client 0 can send a communication request carrying the IP address and / or verification code to control module 1 to establish a communication connection between client 0 and control module 1.

[0079] In this embodiment, if the communication request includes a verification code for control module 1, control module 1, upon receiving the communication request from client 0, will verify the verification code in the communication request. If the received verification code matches the pre-stored verification code in control module 1, a communication connection can be successfully established; otherwise, the communication connection establishment fails. The verification code can be a string composed of letters, special symbols, numbers, etc., and this embodiment does not limit the form of the verification code. By setting a verification code in this way, the possibility of control module 1 being mistakenly accessed or even maliciously accessed by other clients 0 can be reduced. Thus, in a scenario of multi-person collaborative hot-plug testing, each tester can use the first control group in their respective client 0's control interface to establish a communication connection with their respective control module 1, and the hot-plug tests performed by each tester can proceed without interference.

[0080] It should be understood that the text box controls in the first control group input the IP address and / or verification code of the control module 1 to be debugged, in order to identify the control module 1 that matches it. Besides inputting the IP address and / or verification code in the text box controls of the first control group, matching information such as the location information, model information, and identity document (ID) information of the control module 1 can also be input. This embodiment of the disclosure does not limit the number of text box controls in the first control group, nor the type of matching information that can be input into each text box control. Testers can input matching information of the corresponding type into at least one text box control in the first control group, so that client 0 sends a communication request with at least one matching piece of information to control module 1, establishing a communication connection between client 0 and control module 1.

[0081] For example, the first control group may only include a connection button, which testers can directly click. In response to the tester's click on the connection control in the first control group, client 0 can establish a communication connection between client 0 and control module 1 according to preset connection rules. For example, client 0 can send a communication request to the control module 1 to be debugged within a preset range (e.g., a preset target area range), establishing a communication connection between client 0 and the earliest responding control module 1 (or the closest control module 1).

[0082] The communication connection between the debugging tool and the control module 1 can be established based on technologies such as full-duplex communication protocol (WebSocket), Hypertext Transfer Protocol (HTTP), and event-based real-time bidirectional communication protocol (Socket.io). This embodiment of the disclosure does not limit the method of establishing the communication connection.

[0083] In the example, after establishing a communication connection between client 0 and control module 1, client 0 can send control commands to control module 1 to control switch module 2, or receive feedback information from control module 1.

[0084] For example, testers can perform input operations such as selecting, editing, and clicking on the controls in the second control group. In response to the tester's operations on the second control group, client 0 can send control commands in a preset protocol format to control module 1. After being parsed by control module 1, the generated control signals can disconnect or close the first link 4 of one or more transfer channels 3 in switch module 2. The second control group may include multiple different controls. In response to different operations performed by the tester on different controls, different control commands can be sent to control module 1, causing control module 1 to control switch module 2 to perform different operations. This embodiment of the present disclosure does not impose any limitations on this.

[0085] For example, the second control group is used to acquire a script file and send control instructions in the preset protocol format to the control module 1 according to the script file. The script file includes multiple control instructions in the preset protocol format. For example, multiple script files can be pre-configured on client 0, with different script files corresponding to different application scenarios. Each script file may include control instructions executed in different orders. Testers can perform input operations such as selecting, editing, and clicking on the controls in the second control group to acquire the script file for the current test scenario and send control instructions to the control module 1 according to the script file. By setting script files, the convenience and efficiency of hot-swap testing can be further improved.

[0086] For example, control module 1 can periodically send feedback information to client 0. In response to receiving the feedback information from control module 1, client 0 causes the third control group to display the connection status of the first link 4 of one or more switching channels 3 in switch module 2 as open or closed, based on the feedback information. The third control group may include multiple different controls, and in response to receiving different feedback information, different information can be displayed at different controls within the third control group. This embodiment of the present disclosure does not impose any limitations on this.

[0087] In this embodiment of the disclosure, by displaying a first control group for establishing a communication connection with the control module 1, a second control group for sending information to the control module 1, and a third control group for receiving information from the control module 1 on the control interface, testers can operate at least one control in each control group according to the actual application scenario, thereby remotely realizing real-time hot-plug testing and improving the convenience and efficiency of hot-plug testing.

[0088] The following description uses the hot-plug test of High Definition Multimedia Interface (HDMI) as an example to illustrate the hot-plug test apparatus of this disclosure. Figure 4 This diagram illustrates the application of a hot-plug testing apparatus according to an embodiment of the present disclosure, such as... Figure 4 As shown, control module 1 supports an Ethernet interface and establishes a network connection with client 0 via network protocols. When a tester inputs control commands on client 0, control module 1 can remotely receive the control commands via wired / wireless network and parse the received control commands into control signals. For example, if control module 1 receives the control command "hpd 3 0", it will parse it into a control signal to disconnect the third conversion channel 3.

[0089] like Figure 4 As shown, switch module 2 supports one-to-one link mapping between multiple ports / pins, with each conversion channel 3 in switch module 2 corresponding to a one-to-one link mapping. Switch module 2 receives control signals sent by control module 1 and accurately executes the opening and closing operations of the corresponding conversion channel 3.

[0090] In this context, a one-to-one link mapping relationship means that the first device (e.g., an HDMI signal source device) and the second device (e.g., an HDMI display device) to be hot-plugged are plugged into the same conversion channel 3. For example... Figure 4 As shown, the HDMI interface 131 of the first device is plugged into the first connector of the third adapter channel 3, and the HDMI interface 132 of the second device is plugged into the first connector of the third adapter channel 3; the HDMI interface 121 of the first device is plugged into the first connector of the third adapter channel 3, and the HDMI interface 122 of the second device is plugged into the first connector of the third adapter channel 3; the HDMI interface 111 of the first device is plugged into the first connector of the third adapter channel 3, and the HDMI interface 112 of the second device is plugged into the first connector of the third adapter channel 3. It should be understood that... Figure 4 Taking only the 3-way switching channel 3 as an example, this embodiment of the disclosure does not limit the number of switching channels 3 in the switching module 2.

[0091] In each adapter channel 3 of the switch module 2, the second link 5 corresponding to pins 1-18 of the HDMI interface is physically directly connected, while the first link 4 corresponding to pin 19 of the HDMI interface, i.e., the hot plug detection (HPD) link, is equipped with a circuit switch. This circuit switch can be connected to the control module 1 to perform an open or close operation according to the control information from the control module 1, thereby controlling the connection status of the adapter channel 3.

[0092] In the example, if a hot-plug test is to be performed on the HDMI signal source device and HDMI display device connected to HDMI interfaces 121 and 122, the process is as follows: Client 0 establishes a network connection with control module 1 via a network protocol. Client 0 sends the control command "hpd 2 0" to control module 1, requesting to disconnect HDMI interfaces 121 and 122. Control module 1 receives the control command "hpd 2 0", parses it, and sends a control signal to disconnect the second conversion channel 3 to switch module 2. Switch module 2 receives the control signal and executes the operation to disconnect the second conversion channel 3. After the control command is executed, control module 1 can save the status code "0" representing the disconnection of the second conversion channel 3 to the configuration file and return feedback information, such as status code "0", to client 0.

[0093] Similarly, client 0 sends the control command "hpd 2 1" to control module 1, requesting connection to HDMI interface 121 and HDMI interface 122. Upon receiving the control command "hpd 2 1", control module 1 parses it and sends a control signal to switch module 2 to connect to the second adapter channel 3. Switch module 2 then executes the operation to connect to the second adapter channel 3. After the control command is executed, control module 1 can save the status code "1" representing the connection of the second adapter channel 3 to a configuration file and return feedback information, such as status code "1", to client 0.

[0094] It should be understood that the first adapter channel 3 corresponding to HDMI interfaces 111 and 112, and the third adapter channel 3 corresponding to HDMI interfaces 131 and 132, are similar to the hot-plug test of the second adapter channel 3, and will not be described again here. The hot-plug testing device of this embodiment can use automated scripts to arrange and combine control commands to verify the stability and compatibility of the hot-plug function, reducing the probability of unreliable test results caused by human factors, greatly reducing the complexity and execution cost of hot-plug testing.

[0095] It is understood that the various embodiments mentioned in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, the embodiments in this disclosure will not be described in detail.

[0096] This disclosure also proposes a hot-swap testing system, including the hot-swap testing apparatus described above. The hot-swap testing system may include one or more hot-swap testing apparatuses, as well as a test host (e.g., a graphics card) and a device under test (e.g., a display device).

[0097] Figure 5A flowchart illustrating a hot-plug testing method according to an embodiment of the present disclosure is shown, the method being applied to, for example... Figure 1 The hot-swap testing device shown includes a control module 1 and a switch module 2 connected to the control module 1. The switch module 2 includes a multi-channel transfer channel 3.

[0098] like Figure 5 As shown, the hot-plug test method includes: in step S11, the control module 1 sends a control signal to the switch module 2 according to the received control command in a preset protocol format; in step S12, the switch module 2 controls the first link 4 of at least one switching channel 3 to open or close according to the received control signal, wherein the second link 5 of each switching channel 3 is in a closed state, wherein each switching channel 3 is set between a first device and a second device to simulate hot-plugging between the first device and the second device.

[0099] In one possible implementation, the method further includes: after the switch module 2 controls the first link 4 of at least one transfer channel 3 to disconnect or close according to the received control signal, the switch module 2 sends feedback information to the control module 1, the feedback information being used to characterize the connection status of at least one transfer channel 3; the control module 1 updates or initializes the configuration file according to the received feedback information.

[0100] In one possible implementation, the method further includes: the control module 1, in response to being powered on, detecting whether a configuration file exists in the control module 1; if a configuration file exists in the control module 1, controlling the first link 4 of each transfer channel 3 to disconnect or close according to the instructions of the configuration file; or, if no configuration file exists in the control module 1, controlling the first link 4 of all transfer channels 3 to close.

[0101] In one possible implementation, the preset protocol format includes a port identifier field and a port operation field. The port identifier field is used to indicate at least one switching channel 3; the port operation field is used to disconnect the switching channel 3, close the switching channel 3, and query the connection status of the switching channel 3.

[0102] In one possible implementation, the port operation field is also used to disconnect or close the transfer channel 3 according to a preset time or a preset number of times.

[0103] In one possible implementation, the hot-swap testing device further includes a client 0, which is used to display a first control group for establishing a communication connection with the control module 1, a second control group for issuing control commands to the control module 1, and a third control group for receiving feedback information from the control module 1; in response to an operation on the first control group, establishing a communication connection with the control module 1; in response to an operation on the second control group, sending control commands in the preset protocol format to the control module 1, so that the control module 1 parses the control commands to obtain control signals for sending to the switch module 2; and in response to receiving feedback information sent by the control module 1, the third control group displays the connection status of at least one transfer channel 3 according to the feedback information.

[0104] In one possible implementation, the second control group is used to acquire a script file and send control instructions in the preset protocol format to the control module 1 according to the script file, wherein the script file includes multiple control instructions in the preset protocol format.

[0105] In one possible implementation, each adapter channel 3 includes a first connector and a second connector, the first connector and the second connector respectively including multiple types of interfaces for matching the interfaces of the first device or the second device.

[0106] In one possible implementation, the switch module 2 further includes at least one expansion interface for expanding the number of transfer channels 3.

[0107] In one possible implementation, the first device includes a processing device, the second device includes a display device, the first link 4 includes a hot-plug detection link, and the second link 5 includes all links other than the hot-plug detection link in the transfer channel 3.

[0108] Those skilled in the art will understand that in the methods described above in specific embodiments, the specific execution order of each step should be determined by its function and possible internal logic. In some embodiments, the functions or modules included in the apparatus provided in this disclosure can be used to execute the methods described in the above method embodiments, and their specific implementation can be referred to the description of the above apparatus embodiments, which will not be repeated here for the sake of brevity.

[0109] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0110] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0111] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A hot plug test apparatus, characterized by, include: A control module and a switch module connected to the control module, wherein the switch module includes a multi-channel switching channel; The control module sends control signals to the switch module according to the received control instructions in a preset protocol format; The switching module controls the first link of at least one switching channel to open or close according to the received control signal. The second link of each switching channel is in a closed state where the physical link is directly connected. Each switching channel is set between a first device and a second device to simulate hot-plugging between the first device and the second device. The first link includes a hot-plug detection link, and the second link includes all links in the switching channel except for the hot-plug detection link. The control module is further configured to: detect whether a configuration file exists in the control module in response to power-on; and, if a configuration file exists in the control module, control the first link of each switching channel to be disconnected or closed according to the instructions of the configuration file. Each adapter channel includes a first connector and a second connector. The first connector and the second connector each include multiple types of interfaces for matching the interfaces of the first device or the second device.

2. The apparatus of claim 1, wherein, After the switching module controls the first link of at least one transfer channel to be disconnected or closed according to the received control signal, it sends feedback information to the control module. The feedback information is used to characterize the connection status of at least one transfer channel. The control module updates or initializes the configuration file based on the received feedback information.

3. The apparatus of claim 2, wherein, The control module is also used to: control the closure of the first link of all switching channels when there is no configuration file in the control module.

4. The apparatus of claim 1, wherein, The preset protocol format includes a port identifier field and a port operation field. The port identifier field is used to indicate at least one switching channel; The port operation field is used to disconnect the transfer channel, close the transfer channel, query the connection status of the transfer channel, and disconnect or close the transfer channel according to a preset time or a preset number of times.

5. The apparatus of claim 1, wherein, The hot-swap testing device also includes a client, which is connected to the control module via a network. The client displays: a first control group for establishing a communication connection with the control module, a second control group for sending control commands in the preset protocol format to the control module, and a third control group for receiving feedback information from the control module. The control command controls the control module to send control signals to the switch module, and the feedback information displays the connection status of at least one switching channel.

6. The apparatus of claim 5, wherein, The second control group is used to acquire a script file and send control instructions in the preset protocol format to the control module according to the script file. The script file includes multiple control instructions in the preset protocol format.

7. The apparatus of any one of claims 1-6, wherein, The switch module also includes at least one expansion interface for expanding the number of transfer channels.

8. The apparatus of any one of claims 1-6, wherein, The first device includes a processing device, and the second device includes a display device.

9. A hot plug test system, comprising: Includes the hot-plug test apparatus according to any one of claims 1-8.

10. A hot plug test method, comprising: The method is applied to a hot-swap testing device, which includes a control module and a switch module connected to the control module. The switch module includes multiple switching channels. The hot-plug test method includes: The control module sends control signals to the switch module according to the control instructions received in the preset protocol format; The switching module controls the first link of at least one switching channel to open or close according to the received control signal. The second link of each switching channel is in a closed state where the physical link is directly connected. Each switching channel is set between a first device and a second device to simulate hot-plugging between the first device and the second device. The first link includes a hot-plug detection link, and the second link includes all links in the switching channel except for the hot-plug detection link. The method further includes: in response to the power-on of the control module, detecting whether a configuration file exists in the control module; if a configuration file exists in the control module, controlling the first link of each switching channel to be disconnected or closed according to the instructions of the configuration file; Each adapter channel includes a first connector and a second connector. The first connector and the second connector each include multiple types of interfaces for matching the interfaces of the first device or the second device.

Citation Information

Patent Citations

  • Hot plug testing device and method

    CN101551770A

  • Storage test equipment and hot plug test device thereof

    CN115129532A

  • Hot plug test device and system

    CN220773579U