Liquid leakage detection method and device, electronic equipment, storage medium and program product
By setting up an op amp comparator and counter in the liquid-cooling refrigeration system, using the induction line to detect liquid leakage and count the leakage time, the problem of the inability to accurately detect the early state of the leakage in the prior art was solved, and high-accurate liquid leakage detection and early warning were achieved.
Patent Information
- Application Number
- CN202510220488.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-05-30
AI Technical Summary
The existing liquid cooling and refrigeration methods cannot accurately detect the leakage status during the liquid leakage, which poses a safety risk.
By setting up an op amp comparator, analog-to-digital converter and liquid cooling device, the leakage is detected using the induction line, and by setting the first time parameter value and the second time parameter value, the leakage time is counted using the counter to accurately detect the leakage pre-stage status.
Accurate detection of the early leakage status is achieved, false alarms and safety risks are reduced, and system stability is improved.
Smart Images

Figure CN120063602A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular, to a liquid leakage detection method, device, electronic device, storage medium, and program product. Background Art
[0002] As an important platform for data storage and computing, a server can meet different business requirements and application scenarios. With the increase in the application scenarios of servers and the increase in the demand quantity density, the heat dissipation technology of servers also needs to be improved. For high-density server heat dissipation, liquid cooling can be adopted. The liquid cooling method can effectively improve the cooling effect, reduce noise, and lower power consumption, etc. However, the liquid cooling method has a certain risk of liquid leakage. The liquid cooling method has high costs and is difficult to maintain. Liquid leakage will cause great losses to the server. Therefore, to avoid this situation, it is necessary to monitor in real time whether there is a liquid leakage problem in the liquid cooling system.
[0003] Some liquid leakage detection methods set induction wires. After the wires sense liquid leakage, the resistance value of the series resistor will change. The more liquid leakage, the smaller the resistance value. The voltage connected to the induction wires is detected to determine whether there is liquid leakage. However, this method can only be detected and alarmed when the liquid leakage reaches a certain level, and it cannot accurately detect the state in the early stage of liquid leakage, and there are certain safety risks. Summary of the Invention
[0004] The present application provides a liquid leakage detection method, device, electronic device, storage medium, and program product for accurately detecting liquid leakage.
[0005] In a first aspect, the present application provides a liquid leakage detection method, which is applied to a controller of a liquid leakage detection system. The liquid leakage detection system includes an operational amplifier comparator, an analog-to-digital converter connected to the negative electrode of the operational amplifier comparator, and a liquid cooling device. The controller is connected to the output end of the operational amplifier comparator and is also connected to the analog-to-digital converter, and is used to output a safety voltage to the negative electrode of the operational amplifier comparator through the analog-to-digital converter. The positive electrode of the operational amplifier comparator is connected to the liquid cooling device, and the liquid cooling device is provided with a resistance induction wire. The method includes:
[0006] Set a first time parameter value and a second time parameter value;
[0007] Set a first counter and a second counter, and determine a third time parameter value in a liquid leakage state within the second time parameter value based on the first counter, the second counter, and a first output value of the operational amplifier comparator;
[0008] Based on the first time parameter value and the third time parameter value, determine whether it is in a liquid leakage alarm state within the time corresponding to the second time parameter value.
[0009] In one implementable manner, determining a third time parameter value in a liquid leakage state within the second time parameter value based on the first output value of the first counter, the second counter, and the operational amplifier comparator includes:
[0010] During each count when the clock of the first counter rises to the second time parameter value, obtain the first output value of the operational amplifier comparator;
[0011] If the first output value is a preset value, increment the count of the second counter, and determine the count obtained by the corresponding increment of the second counter as the third time parameter value.
[0012] In one implementable manner, determining whether it is in a liquid leakage alarm state within the time corresponding to the second time parameter value based on the first time parameter value and the third time parameter value includes:
[0013] Set a state machine, and determine the state of the state machine based on the first time parameter value and the third time parameter value;
[0014] Determine whether it is in a liquid leakage alarm state within the time corresponding to the second time parameter value based on the state of the state machine.
[0015] In one implementable manner, setting the state machine and determining the state of the state machine based on the first time parameter value and the third time parameter value includes:
[0016] If the first output value is a preset value, determine that the state machine is in the first state;
[0017] When the state machine is in the first state and the first time parameter value is less than or equal to the third time parameter value, determine that the state machine is in the second state, and the second state is used to indicate the liquid leakage alarm state.
[0018] In one implementable manner, the method further includes:
[0019] Preset an initial state for the state machine;
[0020] If the first output value is greater than the preset value, determine that the state of the state machine changes from the initial state to the third state, and the third state is used to indicate a safe state;
[0021] If the state machine is in the third state and it is detected that the first output value is a preset value, determine that the state of the state machine changes from the third state to the first state;
[0022] If the state machine is in the first state, and it is detected that the first output value is greater than the preset value and the first time parameter value is greater than the third time parameter value, then it is determined that the state of the state machine changes from the first state to the third state;
[0023] If the state machine is in the second state and it is detected that the first time parameter value is greater than the third time parameter value, then it is determined that the state of the state machine changes from the second state to the initial state.
[0024] In one implementable manner, the method further includes:
[0025] If it is determined that the leakage alarm state exists within the time corresponding to the second time parameter value, obtain the leakage detection result in the leakage alarm state;
[0026] If the leakage detection result indicates no leakage, perform an increasing process on the first time parameter value, and / or perform a decreasing process on the second time parameter value.
[0027] In a second aspect, the present application provides a leakage detection device, which is applied to a controller of a leakage detection system. The leakage detection system includes an operational amplifier comparator, the controller connected to the output end of the operational amplifier comparator, an analog-to-digital converter connected to the negative electrode of the operational amplifier comparator, and a liquid cooling device. The controller is connected to the analog-to-digital converter and is used to output a safety voltage to the negative electrode of the operational amplifier comparator through the analog-to-digital converter. The positive electrode of the operational amplifier comparator is connected to the liquid cooling device, and the liquid cooling device is provided with a resistance induction wire. The device includes:
[0028] A parameter setting module, which is used to set a first time parameter value and a second time parameter value;
[0029] A counting processing module, which is used to set a first counter and a second counter, and determine a third time parameter value in a leakage state within the second time parameter value based on the first counter, the second counter, and the first output value of the operational amplifier comparator;
[0030] A state detection module, which is used to determine whether the leakage alarm state exists within the time corresponding to the second time parameter value based on the first time parameter value and the third time parameter value.
[0031] In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0032] The memory stores computer execution instructions;
[0033] The processor executes the computer execution instructions stored in the memory to implement the method as described in the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions, which when executed by a processor are used to implement the method according to the first aspect.
[0035] In a fifth aspect, the present application provides a computer program product including a computer program, which when executed by a processor implements the method described in the first aspect.
[0036] The liquid leakage detection method, device, electronic device, storage medium and program product provided by the present application connect the positive electrode of an operational amplifier comparator through an induction wire, and the controller connects the negative electrode of the operational amplifier comparator through an analog-to-digital converter and outputs a safety voltage. Thus, it is possible to determine whether it may be in a liquid leakage state based on the voltage output by the operational amplifier comparator, and two time parameters are proposed. Through the two time parameters, two counters are used to count the time when liquid leakage may occur within the second time parameter value, that is, the third time parameter value. In this way, the state in the early stage of liquid leakage can be accurately detected, and it is determined whether the current state is a liquid leakage alarm state by comparing the first time parameter value and the second time parameter value. This process can accurately perform liquid leakage early warning. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0038] Figure 1 is a structural diagram of a liquid cooling detection system shown in an exemplary embodiment;
[0039] Figure 2 is an implementation scenario diagram shown in an exemplary embodiment;
[0040] Figure 3 is a flowchart of a liquid leakage detection method shown in an exemplary embodiment;
[0041] Figure 4 is a flowchart of a liquid leakage detection method shown in another exemplary embodiment;
[0042] Figure 5 is a schematic diagram of a state machine state transition method shown in an exemplary embodiment;
[0043] Figure 6 is a structural diagram of a liquid leakage detection device shown in an exemplary embodiment;
[0044] Figure 7 is a block diagram of an electronic device shown in an exemplary embodiment.
[0045] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and will be described in more detail hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by reference to specific embodiments. Detailed Description of the Specific Embodiment
[0046] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0047] Servers usually have high processing capabilities, memory, and storage capacities to be able to handle requests from multiple clients simultaneously. As the application scenarios of servers increase and the demand quantity density increases, the heat dissipation technology of servers also needs to be improved. In some scenarios, air-cooling refrigeration methods are used, but the noise generated by air-cooling is very large and the energy consumption is relatively high. For high-density server heat dissipation, liquid-cooling refrigeration methods can be adopted. Liquid-cooling methods can effectively improve the refrigeration effect, reduce noise, and lower power consumption, etc.
[0048] The liquid-cooling refrigeration method also has a certain risk of liquid leakage. For high-density integrated servers, once liquid leakage occurs, it may be a fatal situation for the server to operate. Since the liquid-cooling method has a high cost and is difficult to maintain, liquid leakage will cause great losses to the server. Therefore, to avoid this situation from occurring, it is necessary to monitor in real time whether there is a liquid leakage problem in the liquid-cooling system.
[0049] Figure 1 A liquid-cooling detection system is shown, which includes a liquid-cooling device and a main board. The liquid-cooling device provides a resistance value of the liquid leakage state, and the main board can monitor the liquid leakage state in real time.
[0050] Figure 1In the liquid cooling device, a resistor R2 and an induction wire are connected in series. When the induction wire senses liquid leakage, the resistance value of the series resistor will change. The more liquid leaks, the smaller the resistance value. The induction wire is connected to the devices on the main board. One end of the induction wire is connected to the ground GND1 through a resistor R1, and the other end is connected to the positive electrode (non-inverting input terminal) of the operational amplifier comparator D. In the circuit connecting the induction wire to the positive electrode of the operational amplifier comparator, there is a shunt path connected to the ground GND1 through a resistor R7, and a shunt path in which a resistor R6 is connected in series with the potential point EP2. The main board is used for voltage division, and the voltage value after voltage division enters the positive electrode of the operational amplifier comparator D. A fixed voltage value is input to the negative electrode (inverting input terminal) of the operational amplifier comparator. The potential point EP1 is connected to the negative electrode of the operational amplifier comparator in series with a resistor R4, and voltage division is performed by connecting a shunt path in which R3 is connected in series with the ground GND1 in parallel between R4 and the negative electrode of the operational amplifier comparator, so as to input a fixed voltage value to the negative electrode of the operational amplifier comparator. The output terminal of the operational amplifier comparator D is connected to the controller. The more liquid leaks, the smaller the resistance value, and the smaller the voltage division value detected by the positive electrode of the operational amplifier comparator. When the voltage value output by the liquid cooling device to the positive electrode of the operational amplifier comparator is less than the voltage value at the inverting input terminal of the operational amplifier comparator, the operational amplifier comparator outputs a low level, which is detected by the controller and will trigger a liquid leakage warning prompt.
[0051] In some embodiments, the controller may be a device such as a Baseboard Management Controller (BMC) that can perform data processing and analysis.
[0052] However Figure 1 the liquid cooling detection system in only triggers the operational amplifier comparator to output a low level state when the liquid leakage reaches a certain level, which is detected by the controller and alarms. The liquid cooling detection system cannot accurately detect the state in the early stage of liquid leakage, and there are certain safety risks.
[0053] The liquid leakage detection method, device, electronic device, storage medium and program product provided by this application aim to solve the above technical problems in the prior art.
[0054] The following uses specific embodiments to elaborate in detail on the technical solution of this application and how the technical solution of this application solves the above technical problems. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0055] For example Figure 2It is a diagram of an implementation scenario shown in an exemplary embodiment. This implementation scenario corresponds to another liquid leakage detection system, which includes a main board and a liquid cooling device. The main board is provided with an operational amplifier comparator D, a controller C, an analog-to-digital converter A, a resistor R7, a resistor R1, a ground GND1, a potential point EP2, and a resistor R6. The output terminal of the operational amplifier comparator D is connected to the controller C, the negative terminal of the operational amplifier comparator D is connected to the analog-to-digital converter A, and the controller C is connected to the analog-to-digital converter A for outputting a safety voltage to the negative terminal of the operational amplifier comparator D through the analog-to-digital converter A. The positive terminal of the operational amplifier comparator D is connected to the liquid cooling device, and the liquid cooling device is provided with a resistance induction wire.
[0056] In some embodiments, a resistor R2 in the liquid cooling device is connected in series with the resistance induction wire. One end of the resistance induction wire is connected in series with the resistor R1 and connected to the ground GND1, and the other end is connected to the positive terminal of the operational amplifier comparator D. The link where the resistance induction wire is connected to the positive terminal of the operational amplifier comparator D includes two shunt paths. One shunt path is the resistor R7 connected in series with the ground GND1, and the other shunt path is the resistor R6 connected in series with the potential point EP2. After the resistance induction wire senses liquid leakage, the series resistance value will change. The more liquid leaks, the smaller the resistance value, and the smaller the divided voltage value monitored by the operational amplifier comparator D.
[0057] At the same time, the controller is connected to the SCL (Serial Clock Line) port and the SDA (Serial Data Line) port of the analog-to-digital converter A. In this way, the controller C can poll and control the analog-to-digital converter A to output a fixed voltage value through I2C communication, such as Figure 2 the Vout port of the analog-to-digital converter A is connected to the negative terminal of the operational amplifier comparator D to output a fixed voltage value.
[0058] In some embodiments, the controller C can poll and control the Vout port of the analog-to-digital converter A to output voltage values in three stages through I2C communication, namely the safe area voltage, the suspected liquid leakage area voltage, and the liquid leakage area voltage value. The safe area voltage value can avoid the occurrence of false triggering of liquid leakage caused by power supply voltage fluctuations. The suspected liquid leakage area voltage value can give an early warning of liquid leakage. The liquid leakage area voltage value can accurately locate the severity of liquid leakage. The controller C continuously sends commands through I2C communication to poll and control the analog-to-digital converter A to output voltage values in each interval, and monitors the output status of each voltage value corresponding to the operational amplifier comparator in real time to monitor in which state the liquid leakage situation is. Once the controller detects that the operational amplifier comparator outputs a low level state, corresponding processing actions are taken according to the voltage interval at this time.
[0059] In some embodiments, there may be other situations such as voltage instability and false triggering that cause the operational amplifier comparator to detect a low level state.
[0060] In some other embodiments, a first time parameter value and a second time parameter value are set in the controller C; a first counter and a second counter are set, and a third time parameter value in a liquid leakage state within the second time parameter value is determined based on the first counter, the second counter, and the first output value of the operational amplifier comparator; whether it is in a liquid leakage alarm state within the time corresponding to the second time parameter value is determined based on the first time parameter value and the third time parameter value, so as to accurately perform liquid leakage early warning and avoid the situation where the operational amplifier comparator detects a low level state for alarm caused by other situations such as accidental touch.
[0061] In an embodiment of the present application, a liquid leakage detection method is proposed. This liquid leakage detection method is applied to the controller of the liquid leakage detection system in Fig. 2. It can be understood that the liquid leakage detection device can be set in the Figure 2 controller shown in, but the implementation environment shown in this embodiment, such as Figure 2 shown, is only exemplary. In other embodiments, the liquid leakage detection method can also be applied to other implementation environments, and the liquid leakage detection device can also be set in other structures in other implementation environments, and no specific limitation is made here.
[0062] Figure 3 is a flowchart of a liquid leakage detection method shown in an exemplary embodiment, which is applied to the Figure 2 controller C shown in, as Figure 3 shown. This method includes steps S301 to S303, which are introduced in detail as follows:
[0063] S301. Set a first time parameter value and a second time parameter value.
[0064] In some embodiments, whether liquid leakage occurs within the second time parameter value is judged by setting two time parameter values.
[0065] The second time parameter value is the time period length value for calculating liquid leakage once. Whether liquid leakage occurs can be judged within the time corresponding to this second time parameter value.
[0066] The first time parameter value is a judgment condition for judging liquid leakage within the second time parameter value. When it is detected that within the time corresponding to the second time parameter value, there is a time length greater than the possible time length of liquid leakage corresponding to the second time parameter value, it can be determined that liquid leakage has occurred within the time corresponding to this second time parameter value, that is, when liquid leakage may occur is detected within a certain time length of the second time parameter value, and the numerical value of this time length is greater than this first time parameter value, it can be determined that there is liquid leakage in the second time parameter value.
[0067] The first time parameter value and the second time parameter value can be judged according to empirical parameters.
[0068] In some embodiments, the second time parameter value is greater than or equal to the first time parameter value.
[0069] S302. Set a first counter and a second counter, and determine a third time parameter value in a liquid leakage state within the second time parameter value based on the first counter, the second counter, and the first output value of the operational amplifier comparator.
[0070] In some embodiments, the first counter and the second counter are used to determine a third time parameter value that may be in a liquid leakage state during the time corresponding to the second time parameter value.
[0071] The third time parameter value is the length of the time detected in a liquid leakage state during the time corresponding to the second time parameter value.
[0072] In some embodiments, it can be determined whether the server is in a liquid leakage state through the first output value of the operational amplifier comparator.
[0073] It can be understood that the liquid leakage state proposed in this embodiment is an intermediate value. When it is determined that the server is in a liquid leakage state, it does not indicate that the server is in a liquid leakage alarm state and does not perform a liquid leakage alarm. That is, this liquid leakage state corresponds to a state where liquid leakage may occur. By counting the time in this liquid leakage state, it is further determined whether the current server is in a liquid leakage alarm state. When in a liquid leakage alarm state, it indicates that the server has had a liquid leakage behavior and an alarm is performed.
[0074] In some embodiments, as Figure 2 shown, the analog-to-digital converter outputs a safety voltage to the negative electrode of the operational amplifier comparator, and the operational amplifier comparator outputs a first output value according to the safety voltage and the voltage value detected at the positive electrode.
[0075] In some embodiments, Figure 2 when the resistance sensing line detects liquid leakage in [], the resistance value decreases, and the voltage value detected at the positive electrode of the analog-to-digital converter decreases. When the voltage value detected at the positive electrode of the analog-to-digital converter is less than the safety voltage, the first output value corresponds to a low level, indicating a liquid leakage state.
[0076] In some embodiments, the first counter is used to count the duration corresponding to the second time parameter value, and the second counter is used to count the duration in a liquid leakage state.
[0077] In some embodiments, within each count when the clock of the first counter rises to the second time parameter value, the first output value of the operational amplifier comparator is obtained; if the first output value is a preset value, the count of the second counter is increased, and the count obtained by correspondingly increasing the second counter is determined as the third time parameter value.
[0078] The preset value indicates that the first output value is at a low level. For example, the preset value can be 0. Of course, the preset value can also be other values indicating that the first output value is at a low level, and no specific limitation is made here.
[0079] S303. Determine whether it is in the liquid leakage alarm state within the time corresponding to the second time parameter value based on the first time parameter value and the third time parameter value.
[0080] In some embodiments, a state machine can be set up to determine the states corresponding to the state machine in different situations based on the first time parameter value and the third time parameter, so as to determine whether it is in the liquid leakage alarm state within the time corresponding to the second time parameter value according to the state of the state machine.
[0081] In some embodiments, a scenario where the third time parameter value is greater than or equal to the first time parameter value can be determined as a certain state of the state machine, and the state of the state machine at this time indicates the liquid leakage alarm state.
[0082] In some embodiments, the states corresponding to the state machine in different situations can also be determined according to the first output value of the operational amplifier comparator, the first time parameter value, and the third time parameter, and the transitions of the state machine in different states can be set, so as to determine whether it is in the liquid leakage alarm state within the time corresponding to the second time parameter value.
[0083] In the embodiments of the present application, the positive electrode of the operational amplifier comparator is connected through an induction wire, and the controller is connected to the negative electrode of the operational amplifier comparator through an analog-to-digital converter and outputs a safety voltage. Thus, it is possible to determine whether it may be in a liquid leakage state based on the voltage output by the operational amplifier comparator, and two time parameters are proposed. Through the two time parameters, two counters are used to count the time when liquid leakage may occur in the second time parameter value, that is, the third time parameter value. The state in the early stage of liquid leakage can be accurately detected at one time, and it is determined whether the current state is the liquid leakage alarm state by comparing the first time parameter value and the second time parameter value. This process can accurately perform liquid leakage early warning.
[0084] Figure 4 It is a flowchart of a liquid leakage detection method shown in another exemplary embodiment, which is applied to Figure 2 the controller C in Figure 4 as shown. This method includes steps S401 to S402. This method proposes a way to determine the third time parameter value, which is introduced in detail as follows:
[0085] S401. Obtain the first output value of the operational amplifier comparator during each count when the clock of the first counter rises to the second time parameter value.
[0086] In some embodiments, a first counter is used to count the length of a second time parameter value. Each time the clock rises, it represents the passage of a time unit length. For example, if the time unit is seconds, each time the clock of the first counter rises, the count is represented as 1, indicating that 1 second has passed, and the corresponding time parameter value is 1. This continues until the clock of the first counter rises to the corresponding time parameter being the second time parameter value.
[0087] In this embodiment, starting from 0 for the technique of the first counter, within each count when the clock of the first counter rises to the second time parameter value, the first output value of the operational amplifier comparator is obtained. Thus, within the corresponding count of the first counter, the first output value for each count can be obtained.
[0088] In some embodiments, the count of the first counter is set to cnt_1. cnt_1 is incremented by 1 at each clock rising edge until T1 cycles, at which point cnt_1 is reset to zero. Here, T1 represents the second time parameter value. When cnt_1 is incremented by 1 at each clock rising edge, the first output value is obtained.
[0089] S402: If the first output value is a preset value, increment the count of the second counter, and determine the count obtained by incrementing the second counter as the third time parameter value.
[0090] In some embodiments, within each count of the first counter, if the first output value is a preset value, increment the count of the second counter. This preset value indicates that the server is in a liquid leakage state during the time corresponding to this count of the first counter. At this time, the count of the second counter is incremented by 1, and the count of the second counter can represent the value of the duration in the liquid leakage state.
[0091] In some embodiments, the count of the second counter is preset to zero. Whenever the first output value is a preset value within one count of the first counter, the count of the second counter is incremented by 1 until the count of the first counter reaches the second time parameter value.
[0092] In some embodiments, the count of the second counter is set to cnt_2. cnt_2 is incremented by 1 when cnt_1 rises at each clock and the first output value is a preset value, until cnt_1 = T1, at which point cnt_2 is reset to zero. Before cnt_2 is reset to zero, the count of cnt_2 is the third time parameter value.
[0093] In this way, through two counters, one counter is used to count the duration corresponding to the second time parameter value, and the other counter is used to count the duration in the liquid leakage state within the second time parameter value. The value corresponding to the count of the duration in the liquid leakage state within the second time parameter value is the third time parameter value, so that the duration in the liquid leakage state within the second time parameter value can be accurately counted.
[0094] In some embodiments, a method for determining whether it is in a liquid leakage alarm state during the time corresponding to the second time parameter value based on the first time parameter value and the third time parameter value is also proposed: a state machine is set, and the state of the state machine is determined based on the first time parameter value and the third time parameter value; whether it is in the liquid leakage alarm state during the time corresponding to the second time parameter value is determined based on the state of the state machine.
[0095] In some embodiments, by setting a state machine, it can be automatically determined whether it is in the liquid leakage alarm state during the time corresponding to the second time parameter value.
[0096] In this state machine, different states of the state machine can be set according to the magnitude between the first time parameter value and the third time parameter value or their positions in different regions. In this way, after determining the first time parameter value and the third time parameter value, the state of the state machine corresponding to the first time parameter value and the third time parameter value is determined, and whether it is in the liquid leakage alarm state is determined according to the state of the state machine.
[0097] It can be understood that multiple states of the state machine can be set, and one state of the state machine corresponds to the liquid leakage alarm state.
[0098] In some embodiments, a method for setting the state of the state machine is also proposed. If the first output value is a preset value, the state machine is determined to be in the first state; when the state machine is in the first state and the first time parameter value is less than or equal to the third time parameter value, the state machine is determined to be in the second state, and the second state is used to indicate the liquid leakage alarm state.
[0099] In some embodiments, when the first output value is a preset value, the state machine can be directly set to the first state. This first state corresponds to the liquid leakage state, indicating that liquid leakage may occur and is used for early warning. Only after the state machine is in the first state can it be further determined whether the state machine is in the second state.
[0100] It can be understood that when the third time parameter value is not zero, there must be a first output value corresponding to a certain count of the first counter that is the preset value, that is, the state machine must be in the first state. At this time, after the state machine is in the first state, it is further determined whether the state machine is in the second state according to the first time parameter value and the third time parameter value.
[0101] In some embodiments, if the first time parameter value is less than or equal to the third time parameter value, it indicates that during the time corresponding to the second time parameter value, there is a time longer than the duration corresponding to the first time parameter value in the liquid leakage state. At this time, it can be determined as the liquid leakage alarm state, that is, the second state corresponding to the state machine.
[0102] In some embodiments, another way to set the state of the state machine is also proposed: preset an initial state for the state machine; if the first output value is greater than the preset value, determine that the state of the state machine changes from the initial state to the third state, and the third state is used to indicate a safe state; if the state machine is in the third state and it is detected that the first output value is the preset value, determine that the state of the state machine changes from the third state to the first state; if the state machine is in the first state and it is detected that the first output value is greater than the preset value, determine that the state of the state machine changes from the first state to the third state; if the state machine is in the second state and it is detected that the first time parameter value is greater than the third time parameter value, determine that the state of the state machine changes from the second state to the initial state.
[0103] In some embodiments, as Figure 5 shown, Figure 5 set V as the first output value, T0 as the first time parameter value, and T as the third time parameter value in. V = 0 indicates that the first output value is the preset value. When the first counter starts counting, the state machine can be set to the initial state. If the first output value is greater than the preset value, it indicates that the first output value is a high level. At this time, it is not in the liquid leakage state, and it is determined that the state of the state machine changes from the initial state to the third state. The third state is used to indicate a safe state. When the first counter is counting, if the first output value is always greater than the preset value, it can be determined that the state machine is always in the third state.
[0104] When the state machine is in the initial state and the third state, if the first output value in the counting of the first counter is the preset value, the state of the state machine can change from the initial state to the first state, or from the third state to the first state.
[0105] After the first counter finishes counting, if the state machine is in the first state, and it is detected that the first output value is greater than the preset value and the first time parameter value is greater than the third time parameter value, determine that the state of the state machine changes from the first state to the third state.
[0106] During the counting process of the first counter, if the state machine is in the first state and the first time parameter value is less than or equal to the third time parameter value, determine that the state machine is in the second state. After the first counter finishes counting and returns to zero, a new round of counting starts. At this time, the state machine is in the second state, but within the new round of calculation, if the first time parameter value is greater than the third time parameter value, the state of the state machine changes from the second state to the initial state.
[0107] In the embodiments of the present application, through the first output value, the first time parameter value, and the third time parameter value, it is possible to accurately count whether the state is a liquid leakage alarm state within the time corresponding to the second time parameter value, avoid the situation of too many "false alarms" caused by the liquid leakage detection system being too sensitive, and at the same time avoid the risk of the circuit board being burned out due to liquid leakage of the server, which helps to improve the stability of the system.
[0108] In some embodiments, a method for feedback adjustment of the first time parameter value and the second time parameter value is also proposed: If it is determined that the liquid leakage alarm state exists within the time corresponding to the second time parameter value, obtain the liquid leakage detection result of the liquid leakage alarm state; If the liquid leakage detection result indicates no liquid leakage, increase the first time parameter value and / or decrease the second time parameter value.
[0109] In some embodiments, when the controller determines the liquid leakage alarm state and gives an alarm, the detection personnel can monitor whether liquid leakage has occurred in the server according to the alarm information and obtain the liquid leakage detection result. The liquid leakage detection result includes two types: liquid leakage or no liquid leakage. When the liquid leakage detection result indicates no liquid leakage, it can indicate that there is an error in the setting of the first time parameter value and / or the second time parameter value, and the two parameter values can be adjusted.
[0110] In some embodiments, when the liquid leakage detection result indicates no liquid leakage, increase the first time parameter value. At this time, the second time parameter value can remain unchanged or decrease, or the first time parameter value can remain unchanged and the second time parameter value can be decreased, thereby improving the accuracy of the liquid leakage detection result.
[0111] In the embodiments of the present application, by modifying the first time parameter value and the second time parameter value through the liquid leakage detection result, an effect similar to "training" can be achieved, thereby ensuring that the settings of the first time parameter value and the second time parameter value can improve the accuracy of liquid leakage detection.
[0112] Figure 6 It is a structural diagram of a liquid leakage detection device shown in an exemplary embodiment. The liquid leakage detection device 600 is applied to the controller of the liquid leakage detection system. The liquid leakage detection system includes an operational amplifier comparator, an analog-to-digital converter connected to the negative electrode of the operational amplifier comparator, and a liquid cooling device. The controller is connected to the output terminal of the operational amplifier comparator and is also connected to the analog-to-digital converter for outputting a safety voltage to the negative electrode of the operational amplifier comparator through the analog-to-digital converter. The positive electrode of the operational amplifier comparator is connected to the liquid cooling device, and the liquid cooling device is provided with a resistance induction wire, which may include:
[0113] A parameter setting module 610, configured to set the first time parameter value and the second time parameter value;
[0114] A counting processing module 630, configured to set a first counter and a second counter, and determine a third time parameter value in a liquid leakage state within the second time parameter value based on the first counter, the second counter, and the first output value of the operational amplifier comparator;
[0115] A state detection module 650, configured to determine whether it is in the liquid leakage alarm state within the time corresponding to the second time parameter value based on the first time parameter value and the third time parameter value.
[0116] In an implementable manner, the counting processing module includes:
[0117] The first counting unit is configured to obtain the first output value of the operational amplifier comparator during each count when the clock of the first counter rises to the second time parameter value;
[0118] The second counting unit is configured to, if the first output value is a preset value, increment the count of the second counter and determine the count obtained by correspondingly incrementing the second counter as the third time parameter value.
[0119] In an implementable manner, the state detection module includes:
[0120] The state machine setting unit is configured to set the state machine and determine the state of the state machine based on the first time parameter value and the third time parameter value;
[0121] The state determination unit is configured to determine whether it is in the liquid leakage alarm state during the time corresponding to the second time parameter value based on the state of the state machine.
[0122] In an implementable manner, the state determination unit includes:
[0123] The first state setting section is configured to determine that the state machine is in the first state if the first output value is a preset value;
[0124] The second state setting section is configured to determine that the state machine is in the second state if the state machine is in the first state and the first time parameter value is less than or equal to the third time parameter value, and the second state is used to indicate the liquid leakage alarm state.
[0125] In an implementable manner, the liquid leakage detection device further includes:
[0126] The initial state determination module is configured to preset the initial state for the state machine;
[0127] The third state determination module is configured to determine that the state of the state machine changes from the initial state to the third state if the first output value is greater than the preset value, and the third state is used to indicate the safe state;
[0128] The first state transition module is configured to determine that the state of the state machine changes from the third state to the first state if the state machine is in the third state and it is detected that the first output value is the preset value;
[0129] The second state transition module is configured to determine that the state of the state machine changes from the first state to the third state if the state machine is in the first state, it is detected that the first output value is greater than the preset value and the first time parameter value is greater than the third time parameter value;
[0130] The third state transition module is used to determine that the state of the state machine is transitioned from the second state to the initial state if the state machine is in the second state and it is detected that the first time parameter value is greater than the third time parameter value.
[0131] In one possible implementation, the liquid leakage detection device further includes:
[0132] A detection result determination module, configured to obtain a leakage detection result of the leakage alarm state if it is determined that the second time parameter value is in the leakage alarm state within the time corresponding to the second time parameter value;
[0133] The feedback module is used to increase the first time parameter value and / or decrease the second time parameter value if the leakage detection result indicates that there is no leakage.
[0134] The liquid leakage detection device provided in this embodiment can be used to execute the above-mentioned liquid leakage detection method. Its implementation principle and technical effects are similar, and this embodiment will not be repeated here.
[0135] Figure 7 is a block diagram of an electronic device shown in an exemplary embodiment, see Figure 7 The electronic device 700 may include: a processor 71 and a memory 72, wherein the processor 71 and the memory 72 can communicate; illustratively, the processor 71 and the memory 72 communicate via a communication bus 73, the memory 72 is used to store computer execution instructions, and the processor 71 is used to call the computer execution instructions in the memory to execute the liquid leakage detection method shown in any of the above method embodiments.
[0136] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0137] The present application provides a computer-readable storage medium, on which computer-executable instructions are stored; when the computer-executable instructions are executed by a processor, they are used to implement a liquid leakage detection method as described in any of the above embodiments.
[0138] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned liquid leakage detection method is implemented.
[0139] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0140] Furthermore, it should be noted that although the steps in the flowchart are displayed sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order restriction, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0141] It should be understood that the above device embodiments are illustrative only, and the devices of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0142] In addition, without special description, in each embodiment of this application, each functional unit / module can be integrated in one unit / module, or each unit / module can exist physically alone, or two or more units / modules can be integrated together. The above integrated unit / module can be implemented in the form of hardware or in the form of a software program module.
[0143] When the integrated unit / module is implemented in the form of hardware, the hardware can be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic storage medium or magneto-optical storage medium, such as resistive random access memory (RRAM), dynamic random access memory (DRAM), static random access memory (SRAM), enhanced dynamic random access memory (EDRAM), high-bandwidth memory (HBM), hybrid memory cube (HMC), etc.
[0144] When the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of this application. The aforementioned memory includes: USB flash drives, read-only memory (ROM), random access memory (RAM), external hard drives, magnetic disks, or optical discs, etc., all of which can store program codes.
[0145] In the above embodiments, the descriptions of the various embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0146] Other embodiments of the present application will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
[0147] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A method for detecting a liquid leakage, characterized in that: A controller applied to a liquid leakage detection system, the liquid leakage detection system comprising an operational amplifier comparator, an analog-to-digital converter connected to the negative electrode of the operational amplifier comparator, and a liquid cooling device, the controller being connected to the output end of the operational amplifier comparator, and the controller being connected to the analog-to-digital converter, and being used to output a safety voltage to the negative electrode of the operational amplifier comparator through the analog-to-digital converter, the positive electrode of the operational amplifier comparator being connected to the liquid cooling device, and the liquid cooling device being provided with a resistance sensing line, the method comprising: Setting a first time parameter value and a second time parameter value; Setting a first counter and a second counter, and determining a third time parameter value in a leakage state within the second time parameter value based on the first counter, the second counter and a first output value of the operational amplifier comparator; Based on the first time parameter value and the third time parameter value, it is determined whether the second time parameter value is in a liquid leakage alarm state within the time corresponding to the second time parameter value.
2. The method according to claim 1, characterized in that The determining of a third time parameter value in a leakage state within the second time parameter value based on the first counter, the second counter and the first output value of the operational amplifier comparator comprises: In each count when the clock of the first counter rises to the second time parameter value, obtaining the first output value of the operational amplifier comparator; If the first output value is a preset value, the count of the second counter is increased, and the count obtained by the corresponding increase of the second counter is determined as the third time parameter value.
3. The method according to claim 1, characterized in that The determining, based on the first time parameter value and the third time parameter value, whether the second time parameter value is in a liquid leakage alarm state within a time period corresponding to the second time parameter value comprises: Setting a state machine, and determining a state of the state machine based on the first time parameter value and the third time parameter value; Based on the state of the state machine, it is determined whether the second time parameter value is in a liquid leakage alarm state within the time corresponding to the second time parameter value.
4. The method according to claim 3, characterized in that The setting of the state machine and determining the state of the state machine based on the first time parameter value and the third time parameter value includes: If the first output value is a preset value, determining that the state machine is in the first state; When the state machine is in the first state and the first time parameter value is less than or equal to the third time parameter value, the state machine is determined to be in the second state, and the second state is used to indicate the liquid leakage alarm state.
5. The method according to claim 4, characterized in that The method further comprises: Presetting an initial state for the state machine; If the first output value is greater than the preset value, determining that the state of the state machine is changed from the initial state to a third state, the third state is used to indicate a safe state; If the state machine is in the third state and it is detected that the first output value is a preset value, determining that the state of the state machine is changed from the third state to the first state; If the state machine is in the first state, and it is detected that the first output value is greater than the preset value and the first time parameter value is greater than the third time parameter value, it is determined that the state of the state machine is changed from the first state to the third state; If the state machine is in the second state and it is detected that the first time parameter value is greater than the third time parameter value, it is determined that the state of the state machine is changed from the second state to the initial state.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If it is determined that the second time parameter value is in a liquid leakage alarm state within the time corresponding to the second time parameter value, obtaining a liquid leakage detection result in the liquid leakage alarm state; If the leakage detection result indicates that there is no leakage, the first time parameter value is increased and / or the second time parameter value is decreased.
7. A liquid leakage detection device, characterized in that: A controller applied to a liquid leakage detection system, the liquid leakage detection system comprising an operational amplifier comparator, an analog-to-digital converter connected to the negative electrode of the operational amplifier comparator, and a liquid cooling device, the controller being connected to the output end of the operational amplifier comparator, and the controller being connected to the analog-to-digital converter, and being used to output a safety voltage to the negative electrode of the operational amplifier comparator through the analog-to-digital converter, the positive electrode of the operational amplifier comparator being connected to the liquid cooling device, the liquid cooling device being provided with a resistance induction line, and the device comprising: A parameter setting module, used to set a first time parameter value and a second time parameter value; a counting processing module, configured to set a first counter and a second counter, and determine a third time parameter value in a leakage state within the second time parameter value based on the first counter, the second counter and a first output value of the operational amplifier comparator; A state detection module is used to determine whether the second time parameter value is in a liquid leakage alarm state within a time period corresponding to the second time parameter value based on the first time parameter value and the third time parameter value.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. 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 by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.