CN-122019440-A - Connection device supporting hot plug, hot plug method, test method and medium
Abstract
The invention discloses a connecting device supporting hot plug, a hot plug method, a testing method and a medium, which relate to the technical field of hot plug, wherein a fixed end of a gating module is connected with target equipment, a gating end is connected with a computer system, a control module can control connection or disconnection of physical links between different fixed ends and different gating ends in the gating module, when a certain target equipment is required to be inserted into the computer system, the control module can control connection of the physical links between the corresponding fixed ends and the gating ends, when the certain target equipment is required to be pulled out of the computer system, the control module can control disconnection of the physical links between the corresponding fixed ends and the gating ends, so that the hot plug of the target equipment is effectively realized, and the complete pulling-out of the target equipment is realized through disconnection of the physical links. The control module can dynamically control any target device to carry out hot plug according to requirements, and a quick and efficient hot plug process is automatically realized.
Inventors
- XIAO ZHANHUI
Assignees
- 山东云海国创云计算装备产业创新中心有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260130
Claims (10)
- 1. A connection device supporting hot plug, comprising: the system comprises a gating module, a control module and a control module, wherein the gating module comprises N gating ends and M fixing ends, N is a positive integer, M is a positive integer, the fixing ends are used for establishing connection with target equipment, and the gating ends are used for establishing connection with a computer system; The control module is connected with the control end of the gating module and is used for controlling the physical link between the target fixed end and the gating end corresponding to the target fixed end to be connected so as to insert the target equipment connected with the target fixed end into the corresponding computer system; the target fixed end is a fixed end connected with target equipment which is required to be hot plugged in the gating module currently.
- 2. The connection device supporting hot plug according to claim 1, further comprising: The N first physical ports are in one-to-one correspondence with the N gating ends, are arranged at the corresponding gating ends and are used for establishing connection with a computer system; and the M second physical ports are in one-to-one correspondence with the M fixed ends, are arranged on the corresponding fixed ends and are used for establishing connection with target equipment.
- 3. The connection apparatus supporting hot plug according to claim 2, wherein the target device is a USB device, and the first physical port and the second physical port are both USB interfaces.
- 4. The connection device supporting hot plug according to claim 2, wherein the target device is an SD card, and the first physical port and the second physical port are both SD card slots.
- 5. The connection device supporting hot plug according to claim 1, wherein an input of the control module is connected to an output of the computer system; the control module is also used for receiving a control signal output by the computer system and determining a hot plug strategy for the target equipment based on the control signal; The hot plug strategy comprises target equipment which needs hot plug currently and hot plug actions which need to be executed currently.
- 6. The connection device supporting hot plug according to any one of claims 1 to 5, wherein at least one of M fixed ends of the gating module is in a suspended state, M being a positive integer greater than 1; Controlling the physical link between the target fixed end and the corresponding gating end to be disconnected so as to pull out the target equipment connected with the target fixed end from the corresponding computer system, wherein the method comprises the following steps: If the target fixed end and the fixed end in the suspended state are the same gating end supporting gating, controlling the physical link between the gating end corresponding to the target fixed end and the fixed end in the suspended state to be connected so as to disconnect the physical link between the target fixed end and the gating end corresponding to the target fixed end; Or alternatively, the first and second heat exchangers may be, If another target device needs to be inserted into the computer system corresponding to the target device connected with the target fixed end, controlling the physical link between the gating end corresponding to the target fixed end and the fixed end connected with the other target device to be connected so as to disconnect the physical link between the target fixed end and the gating end corresponding to the target fixed end; The other target device supports gating for a gating end corresponding to the target fixed end, and the other target device is other than the target device connected with the target fixed end.
- 7. A hot plug method, characterized in that it is applied to the connection device supporting hot plug according to any one of claims 1 to 6, and the hot plug method includes: Determining a target fixed end which is correspondingly connected with target equipment which needs to be hot plugged at present and a hot plug action which needs to be executed at present; If the current hot plug action to be executed is insertion, controlling the physical link between the target fixed end and the corresponding gating end to be connected so as to insert the target equipment connected with the target fixed end into the corresponding computer system; and if the current hot plug action to be executed is the extraction, controlling the physical link between the target fixed end and the corresponding gating end to be disconnected so as to extract the target equipment connected with the target fixed end from the corresponding computer system.
- 8. A hot plug testing method, characterized by being applied to a test controller in a hot plug testing system, the hot plug testing system further comprising a computer system, a target device and the connection device supporting hot plug according to any one of claims 1 to 6, the hot plug testing method comprising: Establishing connection between each fixed end in the connecting device supporting hot plug and corresponding target equipment, and establishing connection between each gating end in the connecting device supporting hot plug and corresponding computer system; determining a target fixed end which is correspondingly connected with target equipment which needs to be tested for the hot plug function at present; controlling target equipment connected with the target fixed end to be inserted into a corresponding computer system through the connecting device supporting hot plug; testing, by the computer system, availability of the inserted target device; and after the availability test of the target equipment is completed, controlling the target equipment connected with the target fixed end to pull out a corresponding computer system through the connecting device supporting hot plug.
- 9. The method of hot plug testing according to claim 8, wherein testing, by the computer system, the availability of the inserted target device comprises: determining whether the computer system is capable of identifying the target device inserted; if the computer system can identify the inserted target equipment, controlling the computer system to execute preset read-write operation through the inserted target equipment; if the computer system can complete the preset read-write operation through the inserted target equipment, judging that the inserted target equipment passes an availability test; And if the computer system fails to recognize that the inserted target device or the computer system fails to complete the preset read-write operation through the inserted target device, judging that the inserted target device fails the usability test.
- 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the hot plug method according to claim 7 or the steps of the hot plug test method according to any of claims 8-9.
Description
Connection device supporting hot plug, hot plug method, test method and medium Technical Field The present invention relates to the field of hot plug technologies, and in particular, to a connection device supporting hot plug, a hot plug method, a test method, and a medium. Background With the continuous development of computer technology, the demand for hot-plug (hot-plugging) functions is also becoming more and more widespread. In the important fields of military, telecommunication, finance and the like, after a computer system is put into operation, the computer system must be operated on a night and day by day, and when the equipment or components connected with the computer system are disassembled, maintained and expanded, the computer system cannot be shut down, and the shutdown represents a great economic loss. This requires that devices or components connected to the computer system be able to be accessed or removed, i.e., hot swappable, when the computer system is running on power. The hot plug function allows a user to take out or replace damaged hard disk or board card equipment without turning off the computer system and cutting off the power supply, so that the timely recovery capability, expansibility, flexibility and the like of the computer system in the face of disasters are improved, for example, some disk mirror systems facing high-end application can provide the hot plug function of a disk at present. It can be seen that how to implement hot plug of devices or components connected to a computer system is a problem that one skilled in the art needs to solve. Disclosure of Invention The embodiment of the invention aims to provide a connecting device supporting hot plug, a hot plug method, a testing method and a medium, which can solve the technical problem of how to realize hot plug of equipment or components connected with a computer system. In order to solve the above technical problems, an embodiment of the present invention provides a connection device supporting hot plug, including: The system comprises a gating module, a control module and a control module, wherein the gating module comprises N gating ends and M fixing ends, N is a positive integer, M is a positive integer, and the fixing ends are used for establishing connection with target equipment and the gating ends are used for establishing connection with a computer system; The control module is connected with the control end of the gating module and is used for controlling the physical link between the target fixed end and the gating end corresponding to the target fixed end to be connected so as to insert the target equipment connected with the target fixed end into the corresponding computer system; The target fixed end is a fixed end connected with target equipment which is required to be hot plugged in the gating module currently. Optionally, the connection device supporting hot plug further includes: N first physical ports corresponding to the N gating ends one by one, wherein the first physical ports are arranged at the corresponding gating ends and are used for establishing connection with a computer system; And the M second physical ports are in one-to-one correspondence with the M fixed ends, are arranged on the corresponding fixed ends and are used for establishing connection with target equipment. Optionally, the target device is a USB device, and the first physical port and the second physical port are USB interfaces. Optionally, the target device is an SD card, and the first physical port and the second physical port are SD card slots. Optionally, the input end of the control module is connected with the output end of the computer system; The control module is also used for receiving a control signal output by the computer system and determining a hot plug strategy for the target equipment based on the control signal; The hot plug strategy comprises target equipment which needs hot plug currently and hot plug actions which need to be executed currently. Optionally, at least one of the M fixed ends of the gating module is in a suspended state, and M is a positive integer greater than 1; controlling the disconnection of a physical link between a target fixed end and a corresponding gating end thereof to pull out a target device connected with the target fixed end from the corresponding computer system, comprising: if the target fixed end and the fixed end in the suspended state are the same gating end supporting gating, controlling the physical link between the gating end corresponding to the target fixed end and the fixed end in the suspended state to be connected so as to disconnect the physical link between the target fixed end and the gating end corresponding to the target fixed end; Or alternatively, the first and second heat exchangers may be, If a computer system corresponding to the target equipment, which is connected with the target fixed end, of another target equipment is needed to be inserted, the phys