Test method, device and system of liquid leakage detection module and storage medium

By setting the fault control flag in the CPLD, the hardware failure of the liquid leakage detection module is simulated, and the problems of low testing efficiency and high cost in the existing technology are solved, and efficient and safe liquid leakage detection module testing is achieved.

CN120540913APending Publication Date: 2025-08-26EVEX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510577401.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-06
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

The test efficiency of the leakage detection module in the prior art is low and costly, and depends on the injection of real physical faults, resulting in large resource consumption and high security risks.

Method used

The substrate management control component sets the fault control flag bits of the registers in complex programmable logic devices (CPLDs) in out-of-band control, simulates hardware failures, and realizes testing of the leakage detection module to avoid real physical fault injection.

Benefits of technology

It reduces the occupation and loss of server hardware resources, improves testing efficiency, reduces testing costs, and reduces the security risks brought by manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120540913A_ABST
    Figure CN120540913A_ABST
Patent Text Reader

Abstract

The invention provides a test method, device and system of a liquid leakage detection module and a storage medium, and relates to the technical field of servers. The test method comprises the following steps: in response to a detected test instruction for a liquid leakage detection module, analyzing to obtain a to-be-tested function carried in the test instruction; and according to the to-be-tested function, controlling the substrate management control assembly to set data of a fault control flag bit of the to-be-tested function corresponding to a register in the complex programmable logic device, so that the complex programmable logic device transmits a simulation liquid leakage detection signal corresponding to the to-be-tested function to the liquid leakage detection module to test the liquid leakage detection module. Simulation of server hardware faults is achieved through automatic control, so that testing of the liquid leakage testing module does not depend on real physical fault injection, the testing efficiency is improved, and the labor cost is reduced. Besides, under the condition that normal operation of the server is not affected, testing of the liquid leakage detection module is completed, occupation and loss of hardware resources are reduced, and the testing cost is further reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a testing method, device, system and storage medium for a liquid leakage detection module. Background Art

[0002] In modern data centers and server environments, ensuring equipment reliability and safety is paramount. Servers typically operate in high-density, high-power environments, making liquid cooling an effective heat dissipation solution. However, liquid cooling systems also carry risks such as liquid leakage and damage or detachment of leak detection cables. Therefore, leak detection modules in servers have become a core component for ensuring safe server operation, and effective testing of these modules has become a key research topic in the current technology landscape.

[0003] In related technologies, testing of leak detection modules is primarily based on physical fault injection testing. Specifically, in a real hardware environment, by artificially simulating hardware anomaly scenarios (such as liquid leaks, disconnected or detached detection cables), changes in the leak detection module's internal state are triggered. Using the register monitoring mechanism of a complex programmable logic device (CPLD), the module's state changes are monitored in real time to determine whether the module's response meets design expectations.

[0004] However, this method has at least the problems of low testing efficiency and high cost. Summary of the Invention

[0005] The present application provides a testing method, device, system and storage medium for a liquid leakage detection module, which are used to solve the problems of low testing efficiency and high cost existing in the related art.

[0006] In a first aspect, the present application provides a method for testing a liquid leakage detection module, which is applied to an electronic device, wherein the electronic device is communicatively connected to a baseboard management and control component, the baseboard management and control component is connected to a complex programmable logic device, and the complex programmable logic device is further connected to the liquid leakage detection module. The testing method includes:

[0007] In response to detecting a test instruction for a liquid leakage detection module, parsing and obtaining a function to be tested carried in the test instruction;

[0008] According to the function to be tested, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0009] In a possible implementation, according to the function to be tested, the control substrate management control component sets data of a fault control flag bit of a register corresponding to the function to be tested in the complex programmable logic device, including:

[0010] Determine whether to enable the analog control switch;

[0011] If the analog control switch is enabled, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device according to the function to be tested.

[0012] In one possible implementation, the testing method further includes:

[0013] If the simulation control switch is not enabled, a prompt will appear indicating that the simulation test is not enabled, and the process will end.

[0014] In a possible implementation, the control substrate management control component sets data of a fault control flag bit of a register corresponding to a function to be tested in a complex programmable logic device, including:

[0015] The control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device to 1.

[0016] In one possible implementation, the function to be tested includes a liquid leakage detection function, the fault control flag includes a liquid leakage control flag and a line break control flag, and the control substrate management control component sets the data of the fault control flag corresponding to the function to be tested in the register of the complex programmable logic device to 1, including:

[0017] Determine whether the data of the disconnection control flag is 0;

[0018] If the data of the disconnection control flag is 0, the control substrate management control component sets the data of the leakage control flag to 1, so that the complex programmable logic device transmits a leakage fault signal corresponding to the leakage detection function to the leakage detection module. The leakage fault signal is used to simulate the presence of leakage in the detection cable.

[0019] In a possible implementation, the testing method of the liquid leakage detection module further includes:

[0020] If the data of the disconnection control flag is not 0, the control substrate management control component sets the data of the disconnection control flag to 0;

[0021] The control substrate management control component sets the data of the leakage control flag to 1.

[0022] In a second aspect, the present application provides a testing system for a liquid leakage detection module, comprising:

[0023] An electronic device, configured to execute the test method of the liquid leakage detection module of the first aspect;

[0024] The baseboard management control component is used to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device under the control of the electronic equipment;

[0025] A complex programmable logic device is used to transmit an analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0026] In one possible implementation, the complex programmable logic device is further configured to:

[0027] In the case that the simulated liquid leakage detection signal is a disconnection fault signal or a leakage fault signal, the simulated liquid leakage detection signal is delayed for a set time and then transmitted to the leakage detection module.

[0028] In a third aspect, the present application provides a test device for a liquid leakage detection module, which is applied to an electronic device, wherein the electronic device is communicatively connected to a baseboard management control component, the baseboard management control component is connected to a complex programmable logic device, and the complex programmable logic device is further connected to the liquid leakage detection module. The test device includes:

[0029] A parsing module, configured to respond to a test instruction for the liquid leakage detection module and parse and obtain a function to be tested carried in the test instruction;

[0030] The control module is used to control the substrate management control component to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device according to the function to be tested, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0031] In one possible implementation, the control module is specifically used to: determine whether to enable the analog control switch; when enabling the analog control switch, control the substrate management control component to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device according to the function to be tested.

[0032] In a possible implementation, the control module is further configured to: when the simulation control switch is not enabled, prompt that the simulation test is not enabled and end the process.

[0033] In a possible implementation manner, the control module is further configured to: control the substrate management control component to set the data of a fault control flag bit corresponding to the function to be tested in the register of the complex programmable logic device to 1.

[0034] In one possible embodiment, the function to be tested includes a leakage detection function, the fault control flag includes a leakage control flag and a disconnection control flag, and the control module is further used to: determine whether the data of the disconnection control flag is 0; when the data of the disconnection control flag is 0, the control substrate management control component sets the data of the leakage control flag to 1, so that the complex programmable logic device transmits a leakage fault signal corresponding to the leakage detection function to the leakage detection module, and the leakage fault signal is used to simulate the presence of leakage in the detection cable.

[0035] In a possible implementation, the control module is further configured to: when the data of the disconnection control flag is not 0, control the substrate management control component to set the data of the disconnection control flag to 0; and control the substrate management control component to set the data of the leakage control flag to 1.

[0036] In a fourth aspect, the present application provides an electronic device, comprising: a memory, a processor;

[0037] Memory stores computer-executable instructions;

[0038] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0039] In a fifth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect and / or various possible implementation methods of the first aspect as described above.

[0040] In a sixth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementations of the first aspect.

[0041] The present application provides a testing method, device, system, and storage medium for a liquid leakage detection module. When an electronic device detects a test instruction for the liquid leakage detection module, the system parses and obtains the function to be tested carried in the test instruction. Based on the function to be tested, the system controls the baseboard management control component to set the data in the fault control flag bit of a register corresponding to the function to be tested in the complex programmable logic device (CPLD), causing the CPLD to transmit a simulated liquid leakage detection signal corresponding to the function to be tested to the liquid leakage detection module. By controlling the baseboard management control component to set the data in the fault control flag bit of the register in the CPLD in an out-of-band control manner, server hardware faults can be simulated. This allows testing of the liquid leakage detection module to be independent of real physical fault injection, allowing testing of the liquid leakage detection module to be completed without affecting the normal operation of the server. This reduces the occupancy and loss of server hardware resources, thereby lowering testing costs. Automated control replaces manual construction of real physical faults, improving fault construction efficiency, testing efficiency, and further reducing testing costs. Furthermore, the system avoids safety risks associated with manual operation and improves test safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] Figure 1 A schematic diagram of a scenario of a testing method for a liquid leakage detection module provided in an embodiment of the present application;

[0044] Figure 2 A schematic flow chart of a testing method for a liquid leakage detection module provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the structure of a test system for a liquid leakage detection module provided in an embodiment of the present application;

[0046] Figure 4 Schematic diagram of the implementation process of the test solution of the leakage detection module provided in the embodiment of the present application Figure 1 ;

[0047] Figure 5 Schematic diagram of the implementation process of the test solution of the leakage detection module provided in the embodiment of the present application Figure 2 ;

[0048] Figure 6 A schematic diagram of the structure of a testing device for a liquid leakage detection module provided in an embodiment of the present application;

[0049] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0050] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0052] The terms "first", "second" etc. in the specification and claims of the present application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or that are inherent to these processes, products or equipment.

[0053] In related technologies, the ability of a leak detection module to detect the connection status of a leak detection cable is verified by artificially simulating hardware anomaly scenarios, for example, by plugging and unplugging a leak detection cable or creating a poor contact scenario. The module's ability to detect leaks is verified by simulating a real-world leak environment by dripping a conductive liquid onto the leak detection cable to reduce its impedance. The module's ability to detect disconnection faults is verified by manually cutting the leak detection cable to simulate a physical disconnection. In these test scenarios, the leak detection module's response to the fault is verified to determine whether it meets expectations, such as whether a corresponding fault alarm is reported and whether the status flags in the CPLD register are updated accordingly (e.g., whether the "leakage status flag" in the CPLD register is set within a preset time window, whether the "disconnection status flag" is set, and whether the "in-place status flag" is set). In other words, the status flags are updated based on real physical hardware anomalies and reflect the actual fault status of the current server device.

[0054] Although the above methods can meet the functional testing requirements for the leakage detection module, the problems of test efficiency and resource consumption are extremely prominent. For example, in the leakage test scenario, the amount of conductive liquid must be controlled within the threshold range (too little will result in failure to trigger, and too much will make it difficult to dry the leakage detection cable); in the disconnection fault test scenario, each version needs to cut the leakage detection cable, resulting in significant material damage; in the cable connection status test scenario, to ensure that each leakage detection cable can be accurately monitored for abnormalities, only one cable can be tested at a time during the test phase, and manual simulation of faults leads to low test efficiency. Taking a CPLD version of a liquid-cooled server as an example, the complete leakage detection module test process requires 11 man-days of work and relies on the deployment of a full set of leakage detection cables at the whole machine level. The underlying reasons can be attributed to the following dimensions:

[0055] 1. Excessive dependence on hardware.

[0056] The assembly of the entire machine is highly complex: the layout path of the integrated leakage detection cable of the liquid cooling equipment is deeply coupled with key components such as the cold plate and solenoid valve.

[0057] Lack of test isolation: The current testing method requires testing after the entire machine is assembled. As a result, each test requires disassembly and assembly of the machine, adjustment of cables, etc., and the operation takes a long time.

[0058] 2. Manual operation is inefficient.

[0059] Repetitive disassembly and assembly operations: Almost every test requires a disassembly and assembly cycle. A single cycle takes about 1-2 hours and requires 2-3 people to work together.

[0060] 3. Resource occupation and cost bottlenecks.

[0061] Exclusive use of entire device resources: The entire device must be occupied during testing, and other verification tasks cannot be carried out in parallel.

[0062] Serious cable loss: Frequent plugging, unplugging, and cutting operations significantly shorten the life of leakage detection cables, and the cost of replacing spare parts is high.

[0063] In response to the above technical problems, the test method of the leakage detection module provided by the present application sets the data of the fault control flag bit of the register in the CPLD in an out-of-band control manner by controlling the baseboard management control component to simulate the server hardware fault, thereby affecting the data of the status flag bit corresponding to the real fault in the register, so that the test of the leakage test module does not rely on the injection of real physical faults. The test of the leakage detection module is completed without affecting the normal operation of the server, reducing the occupancy and loss of server hardware resources, thereby reducing the testing cost. The method replaces the manual construction of real physical faults with automated control, improves the efficiency of fault construction, improves the testing efficiency, and further reduces the testing cost. In addition, the safety risks caused by manual operation are avoided and the test safety is improved.

[0064] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0065] Figure 1 A schematic diagram of a scenario of a test method for a liquid leakage detection module provided in an embodiment of the present application, such as Figure 1 As shown, the specific application scenario of the present application includes a user 11, an electronic device 12, and a server under test 13, wherein an automated test script is deployed in the electronic device 12 to test the liquid leakage detection module in the server under test 13, and the user 11 acts on the electronic device 12. This triggers the execution of the automated test script on the electronic device 12. For example, before the software version is released, the software version is burned into the server under test 13, and the function of the liquid leakage detection module of the server under test 13 under the current version is tested through the automated script. Specifically, the test method of the liquid leakage detection module provided in the embodiment of the present application is completed through the joint cooperation of the electronic device 12, the CPLD in the server under test 13, and the baseboard management control component (Baseboard Management Controller, BMC).

[0066] It should be noted that the electronic device can be a terminal device such as a laptop, desktop computer, or PDA, or it can be a server with a certain computing power. The server can also be replaced by a server cluster. The number of electronic devices can be one or more. This application does not limit the type and number of electronic devices.

[0067] The following combination Figure 1 For application scenarios, refer to Figure 2The test method of the liquid leakage detection module provided in the embodiment of the present application is described. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not affected by Figure 1 Limitations of the application scenario shown.

[0068] Figure 2 The flow chart of the test method of the liquid leakage detection module provided in the embodiment of the present application is as follows: Figure 1 The electronic device 11 in the embodiment is executed. Figure 2 As shown, the testing method of the leakage detection module includes:

[0069] S201 : In response to detecting a test instruction for a liquid leakage detection module, the function to be tested carried in the test instruction is parsed and obtained.

[0070] For example, a user triggers the execution of an automated test script on an electronic device, thereby generating a test instruction for the leak detection module. This automated test script is used to perform a functional test on the leak detection module. When the electronic device detects this test instruction, it parses the contents of the test instruction according to a predefined protocol or data format. This content may include, but is not limited to, the instruction type (such as starting a test, stopping a test, or querying status), a timestamp, a function code (the function code corresponds to the function to be tested in the leak detection module), and the location of the leak detection cable (which may include multiple cables).

[0071] S202. According to the function to be tested, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0072] Specifically, the electronic device communicates with the BMC. The electronic device (test script) communicates with the BMC via a network or interface, enabling remote access control of the BMC. The BMC connects to the CPLD, which controls the CPLD through out-of-band management, issuing control commands to the CPLD to configure the CPLD and read relevant status information from it. For example, the BMC sends control commands via the Inter-Integrated Circuit (I2C) bus or the Serial Peripheral Interface (SPI) to configure the CPLD, transfer data, or read CPLD status information. The CPLD also connects to the liquid leakage detection module to transmit relevant data to the module.

[0073] For example, the electronic device remotely logs into the BMC and instructs the BMC to send a control instruction for the fault control flag of the function under test to the CPLD, thereby setting the fault control flag stored in the register of the CPLD. It is understood that the register of the CPLD stores multiple fault control flags, each corresponding to a different function under test, and the data of the fault control flags is updated under the control of the BMC.

[0074] The CPLD polls the voltage level of the leak detection cable and transmits a leak detection signal to the leak detection module in real time or at a scheduled time. This leak detection signal can be generated by a real fault or a simulated fault. After the BMC sets the fault control flag stored in the CPLD register, the CPLD transmits a simulated leak detection signal to the leak detection module. For example, the BMC sets the fault control flag corresponding to the leak detection cable in-place detection function stored in the CPLD register to 1, indicating that a cable is disconnected (cable not in place) in the server under test. After this fault control flag is set to 1, the leak detection signal transmitted by the CPLD to the leak detection module is a simulated leak detection signal (cable disconnected). The leak detection module responds to this simulated leak detection signal (cable disconnected), for example, by reporting a fault alarm to the BMC and setting the in-place status flag stored in the CPLD register to 1.

[0075] It should be noted that if there are multiple leakage detection cables, for the same function to be tested, the register in the CPLD stores the fault control flags corresponding to the multiple cables. When testing the leakage detection module, the same simulation test process is performed for each cable.

[0076] In an embodiment of the present application, by controlling the BMC in an out-of-band control manner to set the data of the fault control flag bit of the register in the CPLD, a simulation of a server hardware fault is achieved, so that the test of the leakage test module does not rely on the injection of a real physical fault. The test of the leakage detection module is completed without affecting the normal operation of the server, reducing the occupancy and loss of server hardware resources, thereby reducing the testing cost. By replacing the manual construction of real physical faults with automated control, the efficiency of fault construction is improved, and the testing efficiency is improved. For a single test version, 7.7 people / days can be saved, further reducing the testing cost. In addition, the safety risks caused by manual operation are avoided, and the test safety is improved.

[0077] In some embodiments, according to the function to be tested, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device, including: determining whether to enable the analog control switch; if the analog control switch is enabled, then according to the function to be tested, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device.

[0078] The register in the CPLD also stores an analog control switch flag bit. Setting the analog control switch flag bit to 0 indicates that the analog control switch is not enabled, and not setting the analog control switch flag bit to 0 indicates that the analog control switch is enabled.

[0079] For example, the analog control switch flag can be fixed by burning a test version into the server under test, and can also be set through the BMC. During the execution of the automated test script, the electronic device reads the data of the analog control switch flag from the register in the CPLD by accessing the control BMC. If the analog control switch flag is read as 0, the analog control switch is determined to be disabled. If the analog control switch flag is not set to 0, such as 1, 2, etc., the analog control switch is determined to be enabled.

[0080] Only when the simulation control switch is enabled will the simulation test be executed. This means the BMC is controlled to set the fault control flag stored in the register using out-of-band control, thus simulating a hardware fault in the server under test. Based on the simulated fault scenario, the leakage detection module is tested.

[0081] Correspondingly, in some embodiments, when it is determined that the analog control switch is not enabled, a prompt is given that the analog test is not enabled, and the process ends.

[0082] For example, on the automation execution result interface, a prompt message such as "Simulation test is not enabled, please confirm to enable" is output, and this round of automation test process ends.

[0083] It's understandable that when simulation testing is disabled, the leak detection module is actually tested based on a real hardware fault. That is, if a real hardware fault occurs in the server under test (such as a liquid leak, a disconnected or detached detection line, etc.), the CPLD will transmit a leak detection signal generated based on the real hardware fault to the leak detection module. Furthermore, the register status flags are updated based on the real hardware fault, reflecting the actual fault status of the server under test. When simulation testing is enabled, the register status flags are updated based on the simulated hardware fault, reflecting the simulated fault status of the server under test.

[0084] This embodiment of the present application introduces an analog control switch. Based on the switch's enabled state, the system determines whether to perform a simulation test. This provides a hybrid verification solution for leak detection module testing, enhancing testing flexibility. While retaining the ability to respond to real leak detection signals, it also adds fault simulation via out-of-band control, making testing independent of real physical fault injection. Furthermore, if the analog control switch is determined not to be enabled, a prompt indicates that simulation testing is not enabled, improving the user experience during the test.

[0085] In some embodiments, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device, including: the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device to 1.

[0086] The functions to be tested include a disconnection detection function and a leakage detection cable in-place detection function. Correspondingly, the fault control flag bits stored in the register include a disconnection control flag bit and an in-place control flag bit.

[0087] For example, when the function to be tested is the leakage detection cable presence detection function, the corresponding fault control flag is the presence control flag, which can be expressed as "LEAK_CPLD_PRESENT_N". The BMC is controlled to set the data of the presence control flag stored in the register of the CPLD to 1, and the CPLD transmits an absence fault signal corresponding to the leakage detection cable presence detection function to the leakage detection module. The absence fault signal is used to simulate the presence of a detection cable detachment.

[0088] In another example, when the function to be tested is the line break detection function, the corresponding fault control flag is the line break control flag, which can be expressed as "LEAK_LINE_OFF". The BMC is controlled to set the data of the line break control flag stored in the register of the CPLD to 1, and the CPLD transmits the line break fault signal corresponding to the line break detection function to the leakage detection module. The line break fault signal is used to simulate the physical disconnection of the detection cable.

[0089] It should be noted that to prevent configuration changes during the current test from affecting subsequent tests, after each test cycle, the BMC can be controlled to clear the data stored in the CPLD registers (including status flags and fault control flags), or the server can be reset or powered off to initialize the registers. After resetting or powering off the server, the server will initialize. This initialization includes setting the general-purpose input / output (GPIO) corresponding to the leak detection cable to high-impedance input mode to suppress electrostatic interference and clearing the registers.

[0090] Considering that in actual applications, there may be failures in register data clearing, initialization failure, and human modification of register flag data after clearing, etc., in order to ensure that the simulated leakage fault signal can take effect when testing the leakage detection function, it is necessary to ensure that the server under test does not logically have a disconnection fault. Therefore, in some embodiments, when the function to be tested includes a leakage detection function, and the fault control flag includes a leakage control flag and a disconnection control flag, the control substrate management control component sets the data of the fault control flag of the register corresponding to the function to be tested in the complex programmable logic device to 1, including: determining whether the data of the disconnection control flag is 0; if the data of the disconnection control flag is 0, the control substrate management control component sets the data of the leakage control flag to 1, so that the complex programmable logic device transmits the leakage fault signal corresponding to the leakage detection function to the leakage detection module, and the leakage fault signal is used to simulate the presence of leakage in the detection cable.

[0091] For example, the BMC is controlled to read the line break control flag data stored in the CPLD register. If "LEAK_LINE_OFF" is 0, it indicates that the line break fault is not being simulated, that is, the line is not broken. Only when the line is not broken can the simulated leakage fault signal be effective. In this case, the BMC can be controlled to set the leakage control flag data "LEAK_LINE_SHORT" to 1, triggering the leakage fault and generating a leakage fault signal. The CPLD then transmits the leakage fault signal to the leakage detection module.

[0092] Furthermore, the test method of the leakage detection module further includes: if the data of the disconnection control flag is not 0, controlling the substrate management control component to set the data of the disconnection control flag to 0; and controlling the substrate management control component to set the data of the leakage control flag to 1.

[0093] As you can understand, if LEAK_LINE_OFF is not 0, it indicates a simulated line break fault and a line break fault signal has been generated. If the line is broken, the leakage fault signal remains inactive and cannot take effect, thus preventing the leakage fault from being triggered. Therefore, you need to first control the BMC to set LEAK_LINE_OFF to 0 and then set LEAK_LINE_SHORT to 1 to trigger the leakage fault. The CPLD then transmits the leakage fault signal to the leakage detection module.

[0094] In an embodiment of the present application, when verifying the leakage detection function of the leakage detection module, before setting the data of the leakage control flag bit to 1, it is first judged whether the disconnection control flag bit is 0 to determine whether the leakage fault signal can be effective. On the premise of ensuring that the leakage fault signal can be effective, the leakage control flag bit is set to 1 through BMC out-of-band control, thereby triggering the leakage fault, improving the effectiveness of the simulated fault triggering, and thereby improving the accuracy and efficiency of the test results.

[0095] Optionally, in one example, if it is determined to enable the analog control switch, according to the function to be tested, the BMC is controlled to set the data of the fault control flag bit of the register corresponding to the function to be tested in the CPLD to 0, then a prompt is given to exit the analog test process and the analog test process ends.

[0096] Understandably, enabling simulation testing doesn't trigger a simulated fault. In reality, the leak detection module is still being tested based on a real hardware fault, and the simulation test doesn't interfere with the actual leak detection signal. In other words, if a real hardware fault occurs in the server under test (such as a liquid leak, a disconnected or detached detection cable, etc.), the CPLD will transmit a leak detection signal generated based on the actual hardware fault to the leak detection module. Furthermore, the register status flags will be updated based on the actual hardware fault, reflecting the actual fault status of the server under test.

[0097] From the above examples, it can be seen that when the fault control flags of the functions to be tested are all set to 0, the test of the leakage detection module reverts to the test based on real hardware failures, that is, the ability to respond to real leakage detection signals is retained. The hybrid verification solution provided by this application ensures the independence of the real leakage detection logic and the simulated leakage detection logic while being highly reusable.

[0098] Figure 3 This is a schematic diagram of the structure of the test system of the leakage detection module provided in the embodiment of the present application. Figure 3 As shown, the test system 30 of the leakage detection module includes:

[0099] An electronic device 12, configured to execute the test method of the liquid leakage detection module described in the above embodiment;

[0100] The baseboard management control component 31 is used to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device 32 under the control of the electronic device 12;

[0101] The complex programmable logic device 32 is used to transmit an analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0102] Taking into account that a real leakage detection signal usually has a delay of ms level, in some embodiments, the complex programmable logic device 32 is also used to: when the simulated leakage detection signal is a disconnection fault signal or a leakage fault signal, delay the simulated leakage detection signal for a set period of time and then transmit it to the leakage detection module.

[0103] The duration can be customized. For example, a delay module is configured in the CPLD. Before transmitting the disconnection fault signal (or leakage fault signal) to the leakage detection module, the CPLD first transmits the disconnection fault signal (or leakage fault signal) to the delay module. After a set delay (for example, 30ms, 40ms, etc.), the leakage fault signal is transmitted.

[0104] In the embodiment of the present application, by delaying the line break fault signal and the leakage fault signal before transmitting them to the leakage detection module, the authenticity and reliability of the simulated leakage detection signal are increased, and the simulated leakage detection signal is closer to the real leakage detection signal, thereby improving the accuracy and reliability of the test results.

[0105] To facilitate understanding of the technical solution of this application, Figure 4 and Figure 5 To further explain this application, Figure 4 Schematic diagram of the implementation process of the test solution of the leakage detection module provided in the embodiment of the present application Figure 1 , Figure 5 Schematic diagram of the implementation process of the test solution of the leakage detection module provided in the embodiment of the present application Figure 2 .

[0106] like Figure 4 As shown in the figure, the implementation logic of the disconnection detection function and the leakage detection function is explained. The implementation process includes:

[0107] 1.1. After the server under test is powered on or reset, the CPLD collects the voltage levels of each leakage detection cable through polling.

[0108] 1.2. The electronic device responds to detecting a test instruction for the liquid leakage detection module and parses the test instruction to obtain the function to be tested.

[0109] 1.3. Determine whether to enable the analog control switch.

[0110] By determining whether to enable the analog control switch as a branch condition, you can choose to execute the test logic based on the real fault or the test logic based on the simulated fault. If the analog switch is enabled, the test logic based on the simulated fault is executed. If the analog switch is not enabled, the test logic based on the real fault is executed. Specifically:

[0111] If enabled, and the function to be tested is the disconnection detection function, proceed to step 1.4;

[0112] If enabled, and the function to be tested is the leakage detection function, proceed to step 1.6;

[0113] If it is not enabled, the simulation test will not be performed, the simulation test process will end, and the test of the leakage detection module will return to the test based on the real hardware failure. The CPLD will transmit the leakage detection signal generated based on the real hardware failure to the leakage detection module.

[0114] 1.4. Control BMC to set "LEAK_LINE_OFF" to 1.

[0115] When "LEAK_LINE_OFF" is 1, it logically indicates that the line is broken and a line break fault signal is generated. At this time, the leakage fault signal will remain in an invalid state and cannot take effect, and thus the leakage fault cannot be triggered.

[0116] 1.5. The CPLD delays the disconnection fault signal for a set period of time and transmits it to the leakage detection module to test the disconnection detection function of the leakage detection module.

[0117] 1.6. Determine whether "LEAK_LINE_OFF" is 1.

[0118] If it is 1, you need to control the BMC to set "LEAK_LINE_OFF" to 0, and then perform step 1.7;

[0119] If it is 0 (i.e. the line is not broken, and the leakage fault signal is only valid when the line is not broken), go to step 1.7.

[0120] 1.7. Control BMC to set "LEAK_LINE_SHORT" to 1.

[0121] When "LEAK_LINE_SHORT" is 1, a leakage fault is triggered and a leakage fault signal is generated. At this time, the leakage fault signal is valid.

[0122] 1.8. The CPLD delays the leakage fault signal for a set period of time and transmits it to the leakage detection module to test the leakage detection function of the leakage detection module.

[0123] It's understandable that after enabling simulation testing, if the BMC is controlled to set "LEAK_LINE_SHORT" to 0, indicating that no simulated leak fault has been triggered, the leak detection module is still being tested based on a real hardware fault, and the simulation test does not interfere with the actual leak detection signal. In other words, if a real hardware fault (liquid leakage) occurs in the server under test, the CPLD will transmit a leak detection signal generated based on the actual hardware fault to the leak detection module. Furthermore, the register status flag is updated based on the actual hardware fault, reflecting the actual fault status of the server under test.

[0124] like Figure 5The following figure illustrates the implementation logic of the leakage detection cable in-place detection function. The implementation process includes:

[0125] 2.1. After the server under test is powered on or reset, the CPLD collects the voltage levels of each leakage detection cable through polling.

[0126] 2.2. The electronic device responds to detecting a test instruction for the liquid leakage detection module and parses the test instruction to obtain the function to be tested.

[0127] 2.3. Determine whether to enable the analog control switch.

[0128] By determining whether to enable the analog control switch as a branch condition, you can choose to execute the test logic based on the real fault or the test logic based on the simulated fault. If the analog switch is enabled, the test logic based on the simulated fault is executed. If the analog switch is not enabled, the test logic based on the real fault is executed. Specifically:

[0129] If enabled, and the function to be tested is the leakage detection cable in-place detection function, proceed to step 2.4;

[0130] If it is not enabled, the simulation test will not be performed, the simulation test process will end, and the test of the leakage detection module will return to the test based on the real hardware failure. The CPLD will transmit the leakage detection signal generated based on the real hardware failure to the leakage detection module.

[0131] 2.4. Control BMC to set LEAK_CPLD_PRESENT_N to 1.

[0132] When LEAK_CPLD_PRESENT_N is 1, an absent fault signal is generated. Even if the leakage detection cable is actually in place, it will be determined by the leakage detection module as absent.

[0133] 2.5. The CPLD transmits the absence fault signal to the leakage detection module to test the presence detection function of the leakage detection cable.

[0134] It's understandable that after enabling simulation testing, if the BMC controls "LEAK_CPLD_PRESENT_N" to 0, this indicates that the simulated absent fault is not triggered. In reality, the leak detection module is still tested based on a real hardware fault, and the simulation test does not interfere with the actual leak detection signal. In other words, if a real hardware fault occurs in the server under test (such as a disconnected detection cable), the CPLD will transmit a leak detection signal generated based on the actual hardware fault to the leak detection module. Furthermore, the register status flag is updated based on the actual hardware fault, reflecting the actual fault status of the server under test.

[0135] comprehensive Figure 4 and Figure 5 It can be seen that the test scheme for the leakage detection module provided in this application provides a hybrid verification scheme for the testing of the leakage detection module. Logical decoupling is achieved through the isolation of register flag bits in the CPLD (i.e., including fault control flag bits and status flag bits) and analog control switches. Regardless of whether it is the test logic of simulated faults or the test logic based on real faults, the final result judgment is converged to the leakage detection module. While ensuring the independence and authenticity of the test logic of real faults, it also has a high degree of reusability.

[0136] In summary, this application has at least the following advantages:

[0137] First, by controlling the BMC out-of-band to set the data in the fault control flag bits of the CPLD register, server hardware faults can be simulated. This allows testing of the leakage detection module to be independent of real physical fault injection, without impacting normal server operation. This reduces server hardware resource usage and loss, thereby lowering testing costs. Replacing manual construction of real physical faults with automated control improves fault construction efficiency and testing efficiency. For a single test version, this can save 7.7 man-days, further reducing testing costs. Furthermore, it avoids the safety risks associated with manual operation and improves test security.

[0138] Second, the introduction of an analog control switch determines whether to perform simulation testing based on its enabled state. This provides a hybrid verification solution for leak detection module testing, enhancing testing flexibility. While retaining the ability to respond to real leak detection signals, it also adds fault simulation through out-of-band control, making testing independent of real physical fault injection. Furthermore, if the analog control switch is determined to be disabled, a prompt indicates that simulation testing is not enabled, improving the user experience during the test process.

[0139] 3. By delaying the disconnection fault signal and the leakage fault signal before transmitting them to the leakage detection module, the authenticity and reliability of the simulated leakage detection signal are increased, making the simulated leakage detection signal closer to the real leakage detection signal, thereby improving the accuracy and reliability of the test results.

[0140] Figure 6 This is a structural diagram of a test device for a liquid leakage detection module provided in an embodiment of the present application. The test device for a liquid leakage detection module provided in an embodiment of the present application is applied to an electronic device, the electronic device is connected to a baseboard management control component for communication, the baseboard management control component is connected to a complex programmable logic device, and the complex programmable logic device is also connected to the liquid leakage detection module. Figure 6As shown, the test device 60 of the leakage detection module provided in this embodiment includes: an analysis module 61 and a control module 62, wherein:

[0141] The parsing module 61 is configured to respond to a test instruction for the liquid leakage detection module and parse the test instruction to obtain a function to be tested;

[0142] The control module 62 is used to control the substrate management control component to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device according to the function to be tested, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

[0143] In one possible implementation, the control module 62 is specifically used to: determine whether to enable the analog control switch; if the analog control switch is enabled, then according to the function to be tested, the control substrate management control component sets the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device.

[0144] In a possible implementation, the control module 62 is further configured to: if the simulation control switch is not enabled, prompt that the simulation test is not enabled and end the process.

[0145] In a possible implementation, the control module 62 is further configured to: control the substrate management control component to set the data of a fault control flag bit corresponding to the function to be tested in the register of the complex programmable logic device to 1.

[0146] In one possible embodiment, the function to be tested includes a liquid leakage detection function, the fault control flag includes a liquid leakage control flag and a line break control flag, and the control module 62 is further used to: determine whether the data of the line break control flag is 0; if the data of the line break control flag is 0, the control substrate management control component sets the data of the liquid leakage control flag to 1, so that the complex programmable logic device transmits a liquid leakage fault signal corresponding to the liquid leakage detection function to the liquid leakage detection module, and the liquid leakage fault signal is used to simulate the presence of liquid leakage in the detection cable.

[0147] In a possible implementation, the control module 62 is further configured to: control the substrate management control component to set the data of the disconnection control flag to 0 if the data of the disconnection control flag is not 0; and control the substrate management control component to set the data of the leakage control flag to 1.

[0148] The testing device for the liquid leakage detection module provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0149] Figure 7This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the electronic device 70 further includes a communication component 703. The processor 701, the memory 702 and the communication component 703 are connected via a bus 704.

[0150] During the specific implementation process, at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that the at least one processor 701 performs the above method.

[0151] The specific implementation process of the processor 701 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0152] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0153] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.

[0154] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0155] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0156] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned method is implemented.

[0157] The readable storage medium may be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0158] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0159] The division of units is merely a logical functional division; actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, any direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units, either through an interface, electrical, mechanical, or other means.

[0160] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0161] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0162] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0163] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0164] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.

Claims

1. A testing method for a liquid leakage detection module, characterized in that: Applied to electronic equipment, the electronic equipment is communicatively connected to a baseboard management and control component, the baseboard management and control component is connected to a complex programmable logic device, and the complex programmable logic device is further connected to the leakage detection module. The testing method includes: In response to detecting a test instruction for the liquid leakage detection module, parsing and obtaining a function to be tested carried in the test instruction; According to the function to be tested, the baseboard management control component is controlled to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

2. The testing method of the liquid leakage detection module according to claim 1, characterized in that: According to the function to be tested, controlling the baseboard management control component to set data of a fault control flag bit of a register in a complex programmable logic device corresponding to the function to be tested includes: Determine whether to enable the analog control switch; If the analog control switch is enabled, the baseboard management control component is controlled to set data of a fault control flag bit of a register in the complex programmable logic device corresponding to the function to be tested according to the function to be tested.

3. The testing method of the liquid leakage detection module according to claim 2, characterized in that: The test method further comprises: If the simulation control switch is not enabled, a prompt will appear indicating that the simulation test is not enabled, and the process will end.

4. The method for testing a liquid leakage detection module according to any one of claims 1 to 3, characterized in that: The controlling the baseboard management control component to set data of a fault control flag bit of a register in the complex programmable logic device corresponding to the function to be tested includes: The baseboard management control component is controlled to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device to 1.

5. The testing method of the liquid leakage detection module according to claim 4, characterized in that: The function to be tested includes a liquid leakage detection function, the fault control flag includes a liquid leakage control flag and a line break control flag, and controlling the baseboard management control component to set the data of the fault control flag corresponding to the function to be tested in the register of the complex programmable logic device to 1 includes: Determine whether the data of the disconnection control flag is 0; If the data of the disconnection control flag is 0, the baseboard management control component is controlled to set the data of the leakage control flag to 1, so that the complex programmable logic device transmits the leakage fault signal corresponding to the leakage detection function to the leakage detection module, and the leakage fault signal is used to simulate the presence of leakage in the detection cable.

6. The method for testing a liquid leakage detection module according to claim 5, wherein: Also includes: If the data of the disconnection control flag is not 0, controlling the baseboard management control component to set the data of the disconnection control flag to 0; The baseboard management control component is controlled to set the data of the leakage control flag to 1.

7. A test system for a liquid leakage detection module, characterized in that: include: An electronic device, configured to execute the test method of the liquid leakage detection module according to any one of claims 1 to 6; A baseboard management control component is used to set data of a fault control flag bit of a register corresponding to a function to be tested in a complex programmable logic device under the control of the electronic device; A complex programmable logic device is used to transmit a simulated leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

8. The test system for the liquid leakage detection module according to claim 7, characterized in that: The complex programmable logic device is further used for: In the case that the simulated liquid leakage detection signal is a disconnection fault signal or a liquid leakage fault signal, the simulated liquid leakage detection signal is delayed for a set time and then transmitted to the liquid leakage detection module.

9. A testing device for a liquid leakage detection module, characterized in that: Applied to electronic equipment, the electronic equipment is communicatively connected to a baseboard management and control component, the baseboard management and control component is connected to a complex programmable logic device, and the complex programmable logic device is also connected to the leakage detection module. The testing device includes: a parsing module, configured to respond to a test instruction for the liquid leakage detection module and parse the test instruction to obtain a function to be tested; The control module is used to control the baseboard management control component to set the data of the fault control flag bit of the register corresponding to the function to be tested in the complex programmable logic device according to the function to be tested, so that the complex programmable logic device transmits the analog leakage detection signal corresponding to the function to be tested to the leakage detection module to test the leakage detection module.

10. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed.