Liquid leakage detection device, method, electronic device, storage medium and program product
By combining the baseboard management controller and the digital-to-analog converter, the voltage threshold is dynamically adjusted, which solves the problem of unadjustable sensitivity in the leakage detection system and achieves high reliability and fast response leakage detection.
Patent Information
- Application Number
- CN202510885240.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2045-06-30
AI Technical Summary
In existing leakage detection systems, the sensitivity of leakage detection cannot be flexibly adjusted, resulting in false alarms or missed alarms, and low detection accuracy.
The voltage threshold is dynamically adjusted by using the baseboard management controller (BMC) to control the output reference voltage of the digital-to-analog converter. The sensitivity adjustment and fast response of leakage detection are achieved by combining the hardware voltage comparison circuit and the general input and output port pin interrupt signal.
The sensitivity and accuracy of leakage detection are improved, false alarms and missed alarms are reduced, and the reliability and real-time performance of the device are enhanced.
Smart Images

Figure CN120385462B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of heat dissipation technology, and in particular to a liquid leakage detection device, method, electronic device, storage medium and program product. Background Art
[0002] At present, air cooling can no longer meet the cooling needs of high-performance servers. The cooling system is developing towards water cooling, liquid cooling and air cooling and water cooling hybrid cooling. The water cooling system has the advantages of high economy, high cooling efficiency and low noise. The water cooling system requires a reliable leakage detection system to accurately monitor the leakage and deal with it in time. Otherwise, the leakage will cause irreversible damage to the server. The leakage monitoring system usually wraps the leakage detection line around the water pipe. When the water pipe leaks, the impedance of the leakage detection line will change. The leakage monitoring is achieved by detecting the change in impedance. In related technologies, the leakage monitoring system uses a voltage comparator to compare the voltage at both ends of the leakage detection line with the reference voltage to determine whether a leakage has occurred. However, the reference voltage is fixed, which makes it impossible to flexibly adjust the sensitivity of the leakage detection. At the same time, the relationship between the impedance of the leakage detection line and the leakage amount is nonlinear and unstable. Therefore, the output of the comparator will fluctuate when a leak occurs, which is prone to false alarms. Summary of the Invention
[0003] The present application provides a liquid leakage detection device, method, electronic device, storage medium and program product to at least solve the problems in the related art that the sensitivity of liquid leakage detection cannot be flexibly adjusted and the detection accuracy is low.
[0004] The present application provides a liquid leakage detection device, which includes a liquid leakage signal acquisition module, a voltage comparison module and a liquid leakage detection module;
[0005] The leakage signal acquisition module includes a leakage detection line;
[0006] The liquid leakage detection module includes a baseboard management controller, the baseboard management controller includes a liquid leakage detection unit, the output end of the baseboard management controller includes a digital-to-analog converter, the input end of the baseboard management controller includes a general input / output port pin, the input end of the liquid leakage detection unit is connected to the general input / output port pin, and the first output end of the liquid leakage detection unit is connected to the digital-to-analog converter;
[0007] The voltage comparison module includes a voltage comparator, the positive input terminal of the voltage comparator is connected to the leakage detection line, the negative input terminal of the voltage comparator is connected to the digital-to-analog converter, and the output terminal of the voltage comparator is connected to the general input and output port pin.
[0008] The present application also provides a liquid leakage detection method, which includes:
[0009] Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0010] In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0011] The real-time voltage collected by the leakage signal acquisition module is input into the voltage comparator, and the level signal generated based on the comparison result of the real-time voltage and the reference voltage is input into the general input and output port pin;
[0012] Determine whether a leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0013] In response to the need to perform a liquid leakage alarm operation, the liquid leakage alarm operation is performed.
[0014] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the following steps of the liquid leakage detection method when executing the computer program:
[0015] Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0016] In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0017] The real-time voltage collected by the leakage signal acquisition module is input into the voltage comparator, and the level signal generated based on the comparison result of the real-time voltage and the reference voltage is input into the general input and output port pin;
[0018] Determine whether a leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0019] In response to the need to perform a liquid leakage alarm operation, the liquid leakage alarm operation is performed.
[0020] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the following steps of the liquid leakage detection method are implemented:
[0021] Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0022] In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0023] The real-time voltage collected by the leakage signal acquisition module is input into the voltage comparator, and the level signal generated based on the comparison result of the real-time voltage and the reference voltage is input into the general input and output port pin;
[0024] Determine whether a leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0025] In response to the need to perform a liquid leakage alarm operation, the liquid leakage alarm operation is performed.
[0026] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the following steps of the liquid leakage detection method:
[0027] Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0028] In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0029] The real-time voltage collected by the leakage signal acquisition module is input into the voltage comparator, and the level signal generated based on the comparison result of the real-time voltage and the reference voltage is input into the general input and output port pin;
[0030] Determine whether a leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0031] In response to the need to perform a liquid leakage alarm operation, the liquid leakage alarm operation is performed.
[0032] This application uses a baseboard management controller to control the output reference voltage of the digital-to-analog converter to dynamically adjust the voltage threshold, effectively solving the problem that the sensitivity of the leakage detection device cannot be flexibly adjusted, which leads to false alarms or missed alarms. It eliminates the problem of frequent triggering and clearing of alarms due to fluctuations when the leakage voltage is at a critical value, thereby improving the reliability of the device. This application uses a hardware voltage comparison circuit to determine whether a leakage has occurred, and uses a general input and output port pin interrupt signal to notify the baseboard management controller of the corresponding judgment result, which has a fast response speed and improves the real-time detection. In this application, the digital-to-analog converter output voltage function of the baseboard management controller is implemented by the underlying circuit. The baseboard management controller software only needs to process the general input and output port pin signals, which takes up less resources and makes the device more stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 A structural block diagram of a liquid leakage detection device is provided for an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a voltage comparison circuit of a liquid leakage detection device is provided for an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the overall process of a liquid leakage detection method is provided for an embodiment of the present application;
[0037] Figure 4 A voltage variation trend diagram of a leakage detection method is provided for an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a reference voltage for a liquid leakage detection method is provided for an embodiment of the present application;
[0039] Figure 6 Another overall flow chart of a liquid leakage detection method is provided for an embodiment of the present application;
[0040] Figure 7 FIG. 1 is a diagram showing the internal structure of an electronic device in one embodiment.
[0041] Figure 1: Liquid leakage signal acquisition module 100; voltage comparison module 200; baseboard management controller 300; liquid leakage detection line 101; voltage comparator 201; power supply 102; parallel resistor R1; voltage divider resistor R2; liquid leakage detection unit 301; digital-to-analog converter 302; general input / output port pin 303; alarm unit 304; first pin 1001; second pin 1002. DETAILED DESCRIPTION
[0042] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0043] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0044] It should be noted that the terms "S1", "S2", etc. are used only for the purpose of describing the steps and do not specifically refer to the order or sequence, nor are they used to limit this application. They are merely for the convenience of describing the method of this application and should not be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that ordinary technicians in this field can implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0045] According to the background technology, the related technology uses a voltage comparator to compare the voltage at both ends of the leakage detection line with the reference voltage to determine whether a leakage has occurred. However, the reference voltage is fixed, resulting in the inability to flexibly adjust the sensitivity of the leakage detection. At the same time, the relationship between the impedance of the leakage detection line and the leakage amount is nonlinear and unstable, so the output of the comparator will fluctuate when a leakage occurs, which is prone to false alarms.
[0046] In order to solve the above-mentioned technical problems, the present application discloses a leakage detection device, method, electronic device, storage medium and program product, which uses a baseboard management controller to control the output reference voltage of the digital-to-analog converter to dynamically adjust the voltage threshold, effectively solving the problem that the sensitivity of the leakage detection device cannot be flexibly adjusted, resulting in false alarms or missed alarms, and eliminating the problem of frequent triggering and canceling of alarms due to fluctuations when the leakage voltage is at a critical value, thereby improving the reliability of the device. The present application uses a hardware voltage comparison circuit to determine whether a leakage has occurred, and uses a general input and output port pin interrupt signal to notify the baseboard management controller of the corresponding judgment result, which has a fast response speed and improves the real-time detection. In the present application, the digital-to-analog converter output voltage function of the baseboard management controller is implemented by the underlying circuit, and the baseboard management controller software only needs to process the general input and output port pin signals, which takes up less resources and makes the device more stable.
[0047] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0048] like Figure 1As shown, the present application provides a liquid leakage detection device, which includes a liquid leakage signal acquisition module 100, a voltage comparison module 200 and a baseboard management controller 300;
[0049] The leakage signal acquisition module 100 includes a leakage detection line 101;
[0050] The baseboard management controller 300 includes a baseboard management controller 300, the baseboard management controller 300 includes a liquid leakage detection unit 301, an output end of the baseboard management controller 300 includes a digital-to-analog converter 302, an input end of the baseboard management controller 300 includes a general-purpose input / output port pin 303, an input end of the liquid leakage detection unit 301 is connected to the general-purpose input / output port pin 303, and a first output end of the liquid leakage detection unit 301 is connected to the digital-to-analog converter 302;
[0051] The voltage comparison module 200 includes a voltage comparator 201 , a positive input terminal of the voltage comparator 201 connected to the leakage detection line 101 , an inverting input terminal of the voltage comparator 201 connected to the digital-to-analog converter 302 , and an output terminal of the voltage comparator 201 connected to the general input / output port pin 303 .
[0052] Specifically, the leakage detection line 101 is a cable whose resistance changes after being soaked in water. According to the characteristic of its resistance change, it is connected to the voltage divider resistor R2. When the server leaks, the resistance of the leakage detection line 101 changes, and the voltage at both ends of the leakage detection line 101 also changes, and then the leakage of the server is determined by detecting the voltage change; the baseboard management controller 300 refers to the BMCBaseboard Management Controller. The BMC is an independent service processor based on the intelligent platform management interface IPMI specification. The BMC monitors the hardware status data of the server power supply 102, CPU central processing unit, memory, hard disk and environmental parameters in real time through the built-in sensor network, and supports out-of-band communication with the motherboard through the baseband management interface. In terms of functional implementation, it has remote power on and off control, firmware update, event log recording and fault diagnosis capabilities, and is widely used in scenarios such as data center server cluster monitoring and distributed equipment remote maintenance; the digital-to-analog converter 302 refers to the DACDigital to analog converter A D / A converter, also known as a digital-to-analog converter, converts digital quantities into analog quantities, typically converting binary numbers into DC voltages. A D / A converter essentially consists of four components: a weighted resistor network, an operational amplifier, a reference power supply, and an analog switch. Pin 303 of the general-purpose input / output port refers to the GPIO (General-Purpose Input / Output) pin. GPIO stands for General-Purpose Input / Output (GPIO). It can be configured in input mode to receive input signals. A GPIO is a very common interface on microcontrollers or microprocessors, allowing for the input and output of digital signals. GPIOs allow developers to connect microcontrollers to various external devices, such as sensors, LEDs, and switches. Each GPIO port can be configured in input or output mode and can be programmed to operate at a high or low level. In input mode, a GPIO port is used to read the status of an external device, such as whether a button is pressed. In output mode, a GPIO port is used to control the status of an external device, such as turning an LED on or off. GPIO ports process digital signals, meaning a high level is typically 3.3V or 5V, and the low level is usually 0V; voltage comparator 201 is implemented using an operational amplifier, used to compare the real-time voltage with the reference voltage and generate a comparison result. The non-inverting input terminal is an input terminal of the operational amplifier (Op-Amp), usually marked "+" or "Vp". In the circuit, the non-inverting input terminal is used to receive a non-inverting input signal. When the signal is input through the non-inverting input terminal, the output signal is in phase with the input signal, that is, the polarity of the signal remains unchanged. The inverting input terminal is an input terminal of the operational amplifier, usually marked "-". Its core characteristic is that the phase of the input signal is exactly opposite to the output signal. When the input signal is connected through the inverting input terminal, the phase of the output voltage is 180° different from the input signal, that is, the opposite.
[0053] In some specific embodiments, the leakage signal acquisition module 100 further includes a parallel resistor R1, a voltage divider resistor R2, and a power supply 102;
[0054] The leakage detection line 101 and the parallel resistor R1 are connected in parallel, one end of the voltage divider resistor R2 is connected to the parallel node of the leakage detection line 101 and the parallel resistor R1, and the other end of the voltage divider resistor R2 is connected to the power supply 102;
[0055] The liquid leakage detection line 101 includes a conductor and an insulating layer, the insulating layer covers the insulating layer, and the liquid leakage detection line 101 is wound on the liquid cooling water pipe;
[0056] The liquid leakage detection line 101 includes a first pin 1001 and a second pin 1002;
[0057] The first pin 1001 is connected to one end of the voltage divider resistor R2, one end of the parallel resistor R1 and the non-inverting input terminal of the voltage comparator 201 respectively;
[0058] The second pin 1002 is connected to the other end of the parallel resistor R1 and is grounded.
[0059] Specifically, such as Figure 2 As shown, the parallel resistor is R1, the voltage divider resistor is R2, the leakage detection line 101 is Conn, the first pin 1001 is Pin1, and the second pin 1002 is Pin2. The leakage detection line 101 is regarded as a variable resistor. The leakage detection line 101 is connected in parallel with the parallel resistor R1, and then a voltage divider resistor R2 is connected in series. One end of the voltage divider resistor R2 is connected to Pin1, and the other end of the voltage divider resistor R2 is connected to the power supply 102VCC. The other end of the parallel resistor R1 is connected to Pin2 and grounded.
[0060] In some specific implementations, the baseboard management controller 300 further includes an alarm unit 304 ; an input terminal of the alarm unit 304 is connected to the second output terminal of the liquid leakage detection unit 301 .
[0061] Specifically, the overall structure of the leakage detection device is as follows Figure 1 As shown, the working principle of the leakage detection device includes: the voltage signal of the leakage signal acquisition module 100 is connected to the non-inverting input terminal of the voltage comparison module 200, the DAC port of the BMC is connected to the inverting input terminal of the voltage comparison module 200 to output a reference voltage, and the output terminal of the voltage comparison module 200 is connected to the GPIO pin of the BMC. When the GPIO signal changes, an interrupt is triggered and the signal is transmitted to the leakage detection unit 301 inside the BMC, a log alarm is generated, and power is turned off according to demand. Further, the specific voltage comparison circuit is as follows Figure 2 As shown, the resistance value of the leakage detection line 101 changes with the amount of water immersion. The greater the amount of water immersion, the smaller the resistance value. Therefore, the leakage detection line 101Conn can be regarded as a variable resistor. The leakage detection line 101 is connected in parallel with the parallel resistor R1, and then a voltage divider resistor R2 is connected in series. The middle connection point V s The voltage of the leakage detection line 101 is used as the voltage signal when leakage occurs. When leakage occurs, the resistance of the leakage detection line 101 decreases, V s The voltage will also decrease, V s The voltage of the comparator 201 is connected to the positive input terminal of the voltage comparator 201 as the input signal. The BMC controls the DAC port to output a reference voltage V according to the alarm threshold or release threshold preset in the software. REF , as the reference voltage of the voltage comparator 201, is connected to the inverting input terminal. s >V REF When no leakage occurs, the voltage comparator 201 outputs a high level signal. s <V REF When leakage occurs, the voltage comparator 201 outputs a low-level signal and sends a high-level signal or a low-level signal to the GPIO. The BMC detects the change of the GPIO through software to realize leakage detection and controls the DAC to output the corresponding threshold voltage to issue a leakage alarm or release the leakage alarm.
[0062] In the above embodiment, the output voltage of the DAC module of the BMC is used as the reference voltage to distinguish the alarm threshold and the alarm release threshold, which solves the signal jitter problem caused by the nonlinear change of the leakage line resistance and avoids the BMC false alarm and missed alarm; the BMC sets the alarm threshold and the alarm release threshold. Compared with adjusting the alarm threshold by setting a voltage divider resistor in the hardware circuit, this application can more flexibly adjust the sensitivity of leakage detection and facilitate compatibility with different models of leakage detection lines; using a voltage comparator and a GPIO interrupt signal to notify the BMC of the alarm signal can quickly process the leakage alarm and occupy less BMC software resources.
[0063] For the description of the features in the embodiments corresponding to the leakage detection device, please refer to the relevant description of the embodiments corresponding to the leakage detection method below, and will not be repeated here. Each module in the above-mentioned leakage detection device can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0064] like Figure 3 As shown, the embodiment of the present application provides a method for detecting liquid leakage, which is applied to Figure 1 The leakage detection device in the embodiment is used as an example to illustrate, which includes the following steps:
[0065] S1: Initialize the baseboard management controller and determine the alarm threshold and the clear alarm threshold for liquid leakage detection.
[0066] It should be noted that initializing the baseboard management controller is used to configure the alarm threshold and clear alarm threshold for leakage detection, and to set the GPIO pin to interrupt mode. Configuring the GPIO pin to interrupt mode means setting the GPIO pin to a mode that can respond to external signal changes (such as level changes) and trigger an interrupt handler. This mode enables the microcontroller to respond to external events in real time without continuous polling. The alarm threshold and clear alarm threshold for leakage detection are both voltage thresholds. The alarm threshold is generally used when a server leaks, and the clear alarm threshold is generally used when the server's leakage fault is resolved.
[0067] S2: In response to the completion of initialization of the baseboard management controller, determine a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold.
[0068] It should be noted that when the current state of the baseboard management controller is the leakage detection alarm state, the reference voltage output by the digital-to-analog converter to the voltage comparator is determined according to the alarm threshold, and the alarm threshold is defined as the reference voltage. When the current state of the baseboard management controller is the leakage detection alarm release state, the reference voltage output by the digital-to-analog converter to the voltage comparator is determined according to the alarm release threshold, and the alarm release threshold is defined as the reference voltage.
[0069] S3: The real-time voltage collected by the leakage signal acquisition module is input to the voltage comparator, and the level signal generated based on the comparison result of the real-time voltage and the reference voltage is input to the general input and output port pin.
[0070] It should be noted that the real-time voltage refers to the middle connection point The voltage V_ amp , the voltage V_amp Input the voltage to the positive input terminal of the voltage comparator, input the reference voltage to the negative input terminal of the voltage comparator, compare the real-time voltage and the reference voltage through the voltage comparator, obtain the comparison result, generate a level signal, and send the level signal to the GPIO pin.
[0071] S4: Determine whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin.
[0072] It should be noted that if Figure 4 As shown, the level signal includes a high-level signal and a low-level signal. For example, the high-level signal is GPIO=1, and the low-level signal is GPIO=0. When the level signal is a high-level signal, it indicates that there is no leakage and no leakage alarm is required. When the level signal is a low-level signal, it indicates that there is leakage. At this time, the leakage alarm is triggered and the leakage alarm operation is executed.
[0073] S5: In response to the need to perform a liquid leakage alarm operation, perform a liquid leakage alarm operation.
[0074] It should be noted that the leakage alarm operation generally includes powering off the leaking node and issuing an alarm message to prompt technical personnel to handle the leakage fault in a timely manner.
[0075] In the above embodiment, the voltage threshold is dynamically adjusted by using a baseboard management controller to control the output reference voltage of the digital-to-analog converter, which effectively solves the problem that the sensitivity of the leakage detection device cannot be flexibly adjusted, resulting in false alarms or missed alarms. The problem of frequent triggering and clearing of alarms due to fluctuations when the leakage voltage is at a critical value is eliminated, thereby improving the reliability of the device. The present application uses a hardware voltage comparison circuit to determine whether a leakage has occurred, and uses a general input and output port pin interrupt signal to notify the baseboard management controller of the corresponding judgment result, which has a fast response speed and improves the real-time detection.
[0076] In some embodiments, initializing the baseboard management controller includes:
[0077] Verify that the power supply is normal and the physical connection is correct. The baseboard management controller is powered by the device power supply. The BMC typically requires standby power to start. Verifying that the physical connection is correct means that the BMC's dedicated management network port (such as RJ-45) is connected to the network, or that the serial port (if any) is correctly configured.
[0078] In response to the power supply being normal and the physical connection being correct, entering a configuration interface and obtaining configuration items of a baseboard management controller, wherein the configuration interface may be a BIOS (basic input and output system) interface, etc.;
[0079] Based on configuration items (such as Server Management), set the alarm threshold and clear alarm threshold for leakage detection. At the same time, set the general input and output port pins of the baseboard management controller to interrupt mode.
[0080] In the above embodiment, by initializing the baseboard management controller, the out-of-band management function of the server is ensured to operate stably and safely, and corresponding alarm thresholds and clear alarm thresholds for leakage detection are set. At the same time, the general input and output port pins of the baseboard management controller are set to interrupt mode to provide a reference voltage and detection environment, thereby improving the accuracy of leakage detection.
[0081] In some specific embodiments, after initializing the baseboard management controller, the method further includes:
[0082] The current state of the baseboard management controller is set to a liquid leakage detection alarm state, and the reference voltage output by the digital-to-analog converter to the voltage comparator is determined according to the alarm threshold and / or the alarm release threshold.
[0083] In the above embodiment, when the baseboard management controller is in normal operating state, its current state is set to the leakage detection alarm state, and the alarm threshold is set to the reference voltage, and the DAC is controlled to output the corresponding reference voltage, so that the baseboard management controller can detect the server leakage fault in time, thereby improving the real-time performance of leakage detection.
[0084] In some specific implementations, the method for generating the alarm threshold and the de-alarm threshold includes:
[0085] Obtain a first voltage of the leakage detection line when it is in an insulating state, and a second voltage of the leakage detection line when leakage begins, wherein Figure 5 As shown in the figure, when the server is not leaking, the leakage detection line is insulated and has a high resistance. The voltage across the line can be calculated based on the voltage divider resistor and remains essentially unchanged. This voltage is the first voltage. When leakage begins (i.e., dripping), the voltage drops momentarily. As dripping continues, an irregular curve appears, showing a downward trend. At this point, the voltage at the start of leakage is defined as the second voltage.
[0086] generating a target voltage range value based on the first voltage and the second voltage, that is, defining a set of voltage values between the first voltage and the second voltage as the target voltage range value;
[0087] like Figure 6As shown, according to the detection sensitivity requirement, the first target voltage and the second target voltage in the target voltage range value are extracted, wherein the first target voltage and the second target voltage can be selected according to actual requirements. If the sensitivity requirement is higher, a higher voltage value is selected as the alarm threshold, and vice versa. Generally, in practical applications, the change curve is not smooth, and there is jitter due to factors such as temperature. In order to avoid frequent changes near the critical value, the two thresholds are dynamically adjusted, and the alarm release threshold is increased, that is, the second target voltage is greater than the first target voltage. The larger the difference between the two, the smaller the alarm jitter. Among them, the relationship between several voltages should be: VCC> leakage detection line voltage when there is no leakage> alarm release voltage> alarm voltage> leakage line voltage when there is leakage;
[0088] The first target voltage is defined as an alarm threshold, and the second target voltage is defined as a clear alarm threshold.
[0089] In the above embodiment, by dynamically adjusting the alarm threshold and the alarm release threshold, a timely and accurate alarm can be given for a leakage fault, and the alarm can be ended in a timely manner after the fault is repaired. By setting the second target voltage higher than the first target voltage, frequent changes near the critical value can be avoided, resulting in frequent triggering of alarms and alarm release signals, thereby improving the reliability of leakage detection.
[0090] In some specific embodiments, a method for determining a difference between a first target voltage and a second target voltage includes:
[0091] Obtaining a first target voltage and a second target voltage of the server in different time periods within a plurality of time periods, wherein the length of the time period can be set according to actual needs, such as one week, and the length of the time period can be set according to actual needs, such as one day;
[0092] determining a first number of occurrences of a first target voltage and a second number of occurrences of a second target voltage that are identical in different time periods;
[0093] In response to the first number and the second number being greater than a preset threshold, determining whether a first target voltage corresponding to the first number and a second target voltage corresponding to the second number are in the same time period, wherein the preset threshold can be set according to actual needs;
[0094] If they are in the same time period, the first target voltage and the second target voltage are marked, and a mapping relationship between the first target voltage, the second target voltage and the time period is saved;
[0095] If they are not in the same time period, the first target voltage and the second target voltage are not marked;
[0096] In response to the server entering a target time period of a next time period, comparing the target time period with the plurality of stored mapping relationships;
[0097] In response to the comparison being successful, the first target voltage and the second target voltage in the target mapping relationship are extracted, and the first target voltage and the second target voltage are defined as an alarm threshold and a release threshold, respectively.
[0098] In the above embodiment, by marking the first target voltage and the second target voltage that appear multiple times in a time period, the marked first target voltage and the second target voltage are directly used as the alarm threshold and the alarm release threshold in the same time period in the next time cycle, thereby improving the efficiency of leakage detection.
[0099] In some specific implementations, the method for generating a level signal includes:
[0100] Obtaining a target voltage of the parallel node, defining the target voltage as a real-time voltage, and defining an alarm threshold as a reference voltage. At this time, the baseboard management controller is in a leakage detection alarm state;
[0101] Compare the real-time voltage with the reference voltage;
[0102] In response to the real-time voltage being greater than the reference voltage, determining that no leakage occurs, and generating a high-level signal in response to no leakage occurs;
[0103] In response to the real-time voltage being less than the reference voltage, it is determined that liquid leakage occurs, and in response to the liquid leakage occurring, a low-level signal is generated.
[0104] In some specific implementations, determining whether a liquid leakage alarm operation needs to be performed according to a level signal received by a general purpose input / output port pin includes:
[0105] In response to the level signal received by the general input / output port pin being a low level signal, determining that a liquid leakage alarm operation needs to be performed;
[0106] In response to the level signal received by the general input / output port pin being a high level signal, it is determined that the liquid leakage alarm operation does not need to be performed.
[0107] In some specific embodiments, after performing the liquid leakage alarm operation in response to the need to perform the liquid leakage alarm operation, the method further includes:
[0108] The current state of the baseboard management controller is set to the liquid leakage detection alarm release state, and the target voltage of the parallel node is obtained;
[0109] The target voltage is defined as the real-time voltage, and the alarm release threshold is defined as the reference voltage;
[0110] Compare the real-time voltage with the reference voltage;
[0111] In response to the real-time voltage being greater than the reference voltage, the liquid leakage alarm operation is stopped.
[0112] Specifically, the BMC sets the current state to the leakage detection alarm and sets the DAC output leakage detection alarm threshold voltage. Then, the BMC monitors the signal of the GPIO pin. When the GPIO receives a low level, the leakage alarm is triggered and the monitoring is turned off. Otherwise, the detection continues. When the leakage alarm is triggered, the current state is set to the leakage detection alarm release. The DAC output leakage detection alarm release threshold voltage is set. Then, the BMC monitors the signal of the GPIO pin. When the GPIO receives a high level, the leakage alarm is triggered and the monitoring is turned off. Then, the BMC sets the current state to the leakage detection alarm. The above steps are repeated. Otherwise, the detection continues.
[0113] In the above embodiment, based on the comparison result generated by comparing the real-time voltage and the reference voltage, a corresponding level signal is determined, and based on the level signal, a GPIO interrupt signal is used to notify the BMC to determine whether a leakage alarm operation needs to be executed or stopped, thereby improving the response speed of leakage detection.
[0114] In the above-mentioned liquid leakage detection method, the method includes: initializing a baseboard management controller, determining an alarm threshold and an alarm release threshold for liquid leakage detection; in response to the completion of the initialization of the baseboard management controller, determining a reference voltage output by a digital-to-analog converter to a voltage comparator according to the alarm threshold and / or the alarm release threshold; inputting a real-time voltage collected by a liquid leakage signal acquisition module into the voltage comparator, and inputting a level signal generated based on a comparison result of the real-time voltage and the reference voltage into a general input / output port pin; determining whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input / output port pin; and in response to the need to execute a liquid leakage alarm operation, Perform leakage alarm operation, execute leakage alarm operation, this application dynamically adjusts the voltage threshold by using the baseboard management controller to control the output reference voltage of the digital-to-analog converter, effectively solving the problem that the sensitivity of the leakage detection device cannot be flexibly adjusted, resulting in false alarms or missed alarms, and eliminating the problem of frequent triggering and releasing of alarms due to fluctuations when the leakage voltage is at a critical value, thereby improving the reliability of the device. This application uses a hardware voltage comparison circuit to determine whether a leakage occurs, and uses a general input and output port pin interrupt signal to notify the baseboard management controller of the corresponding judgment result, with a fast response speed and improved real-time detection.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0116] It should be understood that although Figure 3-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 3-Figure 4 At least part of the steps 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 in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0117] In one embodiment, an electronic device is provided. The electronic device may be a terminal, including but not limited to: computing devices such as servers, switching devices, and storage devices. The internal structure diagram thereof may be as follows: Figure 7 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a liquid leakage detection method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0118] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0119] An embodiment of the present application provides an electronic device including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to perform the steps of an embodiment of a liquid leakage detection method, including:
[0120] S1: Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0121] S2: In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0122] S3: Input the real-time voltage collected by the leakage signal acquisition module to the voltage comparator, and input the level signal generated by the comparison result of the real-time voltage and the reference voltage to the general input and output port pin;
[0123] S4: Determine whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0124] S5: In response to the need to perform a liquid leakage alarm operation, perform a liquid leakage alarm operation.
[0125] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the steps of the embodiment of the liquid leakage detection method when running, including:
[0126] S1: Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0127] S2: In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0128] S3: Input the real-time voltage collected by the leakage signal acquisition module to the voltage comparator, and input the level signal generated by the comparison result of the real-time voltage and the reference voltage to the general input and output port pin;
[0129] S4: Determine whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0130] S5: In response to the need to perform a liquid leakage alarm operation, perform a liquid leakage alarm operation.
[0131] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0132] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the embodiment of the liquid leakage detection method are implemented, including:
[0133] S1: Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0134] S2: In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0135] S3: Input the real-time voltage collected by the leakage signal acquisition module to the voltage comparator, and input the level signal generated by the comparison result of the real-time voltage and the reference voltage to the general input and output port pin;
[0136] S4: Determine whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0137] S5: In response to the need to perform a liquid leakage alarm operation, perform a liquid leakage alarm operation.
[0138] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps in the embodiment of the liquid leakage detection method are implemented, including:
[0139] S1: Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection;
[0140] S2: In response to the completion of initialization of the baseboard management controller, determining a reference voltage output by the digital-to-analog converter to the voltage comparator according to an alarm threshold and / or an alarm release threshold;
[0141] S3: Input the real-time voltage collected by the leakage signal acquisition module to the voltage comparator, and input the level signal generated by the comparison result of the real-time voltage and the reference voltage to the general input and output port pin;
[0142] S4: Determine whether a liquid leakage alarm operation needs to be executed according to the level signal received by the general input and output port pin;
[0143] S5: In response to the need to perform a liquid leakage alarm operation, perform a liquid leakage alarm operation.
[0144] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0145] The above is a detailed introduction to a liquid leakage detection method, device, electronic device and storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. A liquid leakage detection device, characterized in that: The device comprises a liquid leakage signal acquisition module (100), a voltage comparison module (200) and a baseboard management controller (300); The liquid leakage signal acquisition module (100) comprises a liquid leakage detection line (101); The baseboard management controller (300) comprises a liquid leakage detection unit (301), an output end of the baseboard management controller (300) comprises a digital-to-analog converter (302), an input end of the baseboard management controller (300) comprises a universal input / output port pin (303), an input end of the liquid leakage detection unit (301) is connected to the universal input / output port pin (303), and a first output end of the liquid leakage detection unit (301) is connected to the digital-to-analog converter (302); The voltage comparison module (200) comprises a voltage comparator (201), a positive input terminal of the voltage comparator (201) is connected to the liquid leakage detection line (101), an inverting input terminal of the voltage comparator (201) is connected to the digital-to-analog converter (302), and an output terminal of the voltage comparator (201) is connected to the universal input / output port pin (303); The digital-to-analog converter (302) is used to output a reference voltage to a voltage comparator, and the reference voltage is determined by an alarm threshold and / or an alarm release threshold.
2. The liquid leakage detection device according to claim 1, characterized in that: The leakage signal acquisition module (100) further includes a parallel resistor R1, a voltage divider resistor R2, and a power supply (102); The liquid leakage detection line (101) and the parallel resistor R1 are connected in parallel, one end of the voltage divider resistor R2 is connected to the parallel node of the liquid leakage detection line (101) and the parallel resistor R1, and the other end of the voltage divider resistor R2 is connected to the power supply (102).
3. The liquid leakage detection device according to claim 1 or 2, characterized in that: include: The liquid leakage detection line (101) comprises a conductor and an insulating layer, the insulating layer covers the insulating layer, and the liquid leakage detection line (101) is wound around a liquid cooling water pipe.
4. The liquid leakage detection device according to claim 2, characterized in that: The liquid leakage detection line (101) comprises a first pin (1001) and a second pin (1002); The first pin (1001) is respectively connected to one end of the voltage-dividing resistor R2, one end of the parallel resistor R1, and the non-inverting input end of the voltage comparator (201); The second pin (1002) is connected to the other end of the parallel resistor R1 and is grounded.
5. The liquid leakage detection device according to claim 1, characterized in that: The baseboard management controller (300) further includes an alarm unit (304); The input end of the alarm unit (304) is connected to the second output end of the liquid leakage detection unit (301).
6. A liquid leakage detection method applied to the liquid leakage detection device according to any one of claims 1 to 5, characterized in that: The method comprises: Initialize the baseboard management controller and determine the alarm threshold and clear alarm threshold for leakage detection; In response to completion of initialization of the baseboard management controller, determining a reference voltage output by a digital-to-analog converter to a voltage comparator according to the alarm threshold and / or the alarm release threshold; Inputting the real-time voltage collected by the leakage signal collection module into the voltage comparator, and inputting the level signal generated based on the comparison result of the real-time voltage and the reference voltage into the general input and output port pin; Determining whether a liquid leakage alarm operation needs to be performed according to the level signal received by the general input / output port pin; In response to the need to perform a liquid leakage alarm operation, the liquid leakage alarm operation is performed.
7. The liquid leakage detection method according to claim 6, characterized in that: Initializing the baseboard management controller includes: Check whether the power supply is normal and the physical connections are correct; In response to the power supply being normal and the physical connection being accurate, entering a configuration interface and obtaining configuration items of the baseboard management controller; Based on the configuration items, an alarm threshold and an alarm release threshold for liquid leakage detection are set, and at the same time, the general input and output port pins of the baseboard management controller are set to an interrupt mode.
8. The liquid leakage detection method according to claim 6 or 7, characterized in that: After initializing the baseboard management controller, the method further includes: The current state of the baseboard management controller is set to a liquid leakage detection alarm state, and the reference voltage output by the digital-to-analog converter to the voltage comparator is determined according to the alarm threshold and / or the alarm release threshold.
9. The liquid leakage detection method according to claim 8, characterized in that: The method for generating the alarm threshold and the de-alarm threshold includes: obtaining a first voltage of the liquid leakage detection line when the liquid leakage detection line is in an insulating state, and a second voltage of the liquid leakage detection line when the liquid leakage begins; generating a target voltage range value based on the first voltage and the second voltage; Extracting a first target voltage and a second target voltage from the target voltage range according to a detection sensitivity requirement; The first target voltage is defined as the alarm threshold, and the second target voltage is defined as the alarm release threshold.
10. The liquid leakage detection method according to claim 6, characterized in that: The method for generating the level signal includes: Obtaining a target voltage of a parallel node, defining the target voltage as the real-time voltage, and defining the alarm threshold as a reference voltage; comparing the real-time voltage with the reference voltage; In response to the real-time voltage being greater than the reference voltage, determining that no leakage occurs, and generating a high-level signal in response to no leakage occurs; In response to the real-time voltage being less than the reference voltage, it is determined that liquid leakage occurs, and in response to the liquid leakage occurring, a low-level signal is generated.
11. The liquid leakage detection method according to claim 10, characterized in that: Determining whether a liquid leakage alarm operation needs to be performed according to the level signal received by the universal input / output port pin includes: In response to the level signal received by the universal input / output port pin being a low level signal, determining that a liquid leakage alarm operation needs to be performed; In response to the level signal received by the general input / output port pin being a high level signal, it is determined that there is no need to perform a liquid leakage alarm operation.
12. The liquid leakage detection method according to claim 6, characterized in that: After the liquid leakage alarm operation is performed in response to the need to perform the liquid leakage alarm operation, the method further includes: Setting the current state of the baseboard management controller to a liquid leakage detection alarm release state, and obtaining a target voltage of the parallel node; The target voltage is defined as the real-time voltage, and the alarm release threshold is defined as the reference voltage; comparing the real-time voltage with the reference voltage; In response to the real-time voltage being greater than the reference voltage, the liquid leakage alarm operation is stopped.
13. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the liquid leakage detection method according to any one of claims 6 to 12 when executing the computer program.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the liquid leakage detection method according to any one of claims 6 to 12.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the liquid leakage detection method according to any one of claims 6 to 12 are implemented.
Citation Information
Patent Citations
Liquid leakage detection device and method for liquid cooling heat dissipation
CN113884251A