A wireless valve tower water leakage detection method, system, device and storage medium
By using a wireless valve tower leakage detection method, microcontrollers and related modules are used to acquire and process valve tower leakage information, solving the problems of low efficiency and high cost of traditional detection methods. This method enables fast and accurate leakage detection, improving the system's security and flexibility.
Patent Information
- Application Number
- CN202110474675.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2041-04-29
AI Technical Summary
Traditional valve tower leakage detection methods are inefficient, have complex equipment structures and high costs, and are difficult to detect leakage quickly and accurately.
The system employs a wireless valve tower leakage detection method. By acquiring the target characteristic parameters of the interrupt source port line, it determines whether the preset leakage rules are met, generates a target data packet, and sends it to the gateway. The system includes a microcontroller, a leakage detection module, a timer module, a communication module, and a power supply module, enabling fast, long-distance, and real-time detection.
It improves the efficiency of valve tower leakage detection, reduces costs, simplifies equipment structure, enhances detection accuracy and flexibility, and ensures system safety and reliability.
Smart Images

Figure CN113218578B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of valve tower leak detection, and relates to a wireless valve tower leak detection method, system, device and storage medium. BACKGROUND
[0002] In high-voltage direct current transmission, the converter valve is the core equipment of the converter station, and the converter valve tower usually adopts a component series layered distribution structure. The valve cooling system pipeline is complex in distribution, the pipeline types are different, and the pipeline interfaces are numerous, so the valve tower is prone to water leakage. Therefore, how to efficiently and quickly detect the water leakage of the valve tower has become a key problem to be solved at present.
[0003] In the traditional valve tower leak detection method, when the color of the water contact color-changing ink layer on the module water drop display pipe is transparent, it is determined that water leakage has occurred.
[0004] Since the traditional valve tower leak detection method can only detect water leakage when the module water drop display pipe and the water contact color-changing ink layer are provided, the water leakage detection efficiency is not high, the equipment structure is complex, and the cost is also high. SUMMARY
[0005] The present application aims to solve the problems of low water leakage detection efficiency, complex equipment structure and high cost in the traditional valve tower leak detection method by providing a wireless valve tower leak detection method, system, device and storage medium.
[0006] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows:
[0007] In a first aspect, the embodiments of the present application provide a wireless valve tower leak detection method, which comprises:
[0008] Obtaining a target feature parameter on an interrupt source port line;
[0009] Determining whether the target feature parameter meets a preset water leakage rule to determine a target determination result;
[0010] Obtaining a target data packet matched with the target determination result; wherein the target data packet comprises a data packet generated when a target object has a water leakage condition;
[0011] Sending the target data packet to a gateway.
[0012] Optionally, when the target feature parameter comprises a current level on the interrupt source port line, the determination of whether the target feature parameter meets the preset water leakage rule to determine the target determination result comprises:
[0013] When the current level is higher than a preset reference level, the target determination result is determined to include occurrence of a target interrupt signal.
[0014] When the current level is lower than the preset reference level, the target determination result is determined to include no occurrence of the target interrupt signal.
[0015] Optionally, the obtaining of the target data packet matched with the target determination result comprises:
[0016] When the target determination result represents occurrence of the target interrupt signal, the wireless valve tower water leakage detection system is controlled to switch from a sleep state to a wake-up state.
[0017] A target trigger source of the target interrupt signal is determined.
[0018] A target data packet generated by the target trigger source is obtained.
[0019] Optionally, the determination of the target trigger source of the target interrupt signal comprises:
[0020] A target time point of occurrence of the target interrupt signal is obtained.
[0021] It is determined whether the target time point meets a preset reference heartbeat time point.
[0022] When the target time point meets the preset reference heartbeat time point, the target trigger source is determined to be a timer module.
[0023] When the target time point does not meet the preset reference heartbeat time point, a current voltage value in a water leakage detection module is obtained.
[0024] A target trigger source corresponding to the current voltage value is determined.
[0025] Optionally, the determination of the target trigger source corresponding to the current voltage value comprises:
[0026] When the current voltage value is higher than a preset reference voltage, the target trigger source is determined to be the water leakage detection module.
[0027] Optionally, after the step of obtaining the current voltage value in the water leakage detection module, the method further comprises:
[0028] When the current voltage value is lower than the preset reference voltage, the step of obtaining the target feature parameter on the interrupt source port line is executed.
[0029] In a second aspect, an embodiment of the present application provides a wireless valve tower water leakage detection system, which comprises a microcontroller, a water leakage detection module, a timer module, a communication module and a power supply module, the microcontroller is connected with the water leakage detection module, the timer module, the communication module and the power supply module respectively, and wherein:
[0030] The water leakage detection module is configured to output a current voltage value representing whether a water leakage occurs according to a current resistance value of a water immersion detection cable.
[0031] The timer module is configured to wake up the communication module and the microcontroller at a regular time and send target state information of the wireless valve tower water leakage detection system to a target platform at a regular time, wherein the target state information comprises a working state and a sleep state.
[0032] The communication module is configured to wake up from the sleep state when the water leakage occurs and send a first alarm signal to the microcontroller, wherein the first alarm signal is used to remind the wireless valve tower water leakage detection system that the water leakage occurs.
[0033] The power supply module is configured to supply power to the microcontroller, the water leakage detection module, the timer module and the communication module.
[0034] The microcontroller is configured to acquire a target feature parameter on an interrupt source port line, determine whether the target feature parameter meets a preset water leakage rule to determine a target determination result, acquire a target data packet matched with the target determination result, wherein the target data packet comprises a data packet generated when a target object occurs the water leakage, and send the target data packet to a gateway.
[0035] Optionally, the timer module comprises a clock chip, the clock chip is configured to periodically send a second alarm signal to the microcontroller, and the alarm signal is used to interrupt the microcontroller from sending the target data packet to the gateway.
[0036] The wireless valve tower water leakage detection system is also configured to periodically send a heartbeat data packet to the target platform automatically to determine whether the wireless valve tower water leakage detection system fails.
[0037] In a third aspect, an embodiment of the present application provides a wireless valve tower water leakage detection device, which comprises a first acquisition module, a determination module, a second acquisition module and a sending module, and wherein:
[0038] The first acquisition module is configured to acquire a target feature parameter on an interrupt source port line.
[0039] The determination module is configured to determine whether the target feature parameter meets a preset water leakage rule to determine a target determination result.
[0040] a second obtaining module, configured to obtain a target data packet matched with the target judgment result, wherein the target data packet comprises a data packet generated when the target object is in a water leakage condition;
[0041] a sending module, configured to send the target data packet to a gateway.
[0042] In a fourth aspect, an embodiment of the present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method in the foregoing embodiments when executing the computer program.
[0043] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method in the foregoing embodiments when executed by a processor.
[0044] The wireless valve tower water leakage detection method, system, device and storage medium provided by the present application have the following beneficial effects: the wireless valve tower water leakage detection method comprises the following steps: obtaining a target characteristic parameter on an interrupt source port line; determining whether the target characteristic parameter meets a preset water leakage rule to determine a target judgment result; obtaining a target data packet matched with the target judgment result; wherein the target data packet comprises a data packet generated when a target object is in a water leakage condition; and sending the target data packet to a gateway. In this way, the purpose of long-distance and real-time water leakage detection is achieved quickly and efficiently, the problem of low efficiency, complex device structure and high cost in the traditional valve tower water leakage detection method is solved, the efficiency of valve tower water leakage detection is greatly improved, the cost is reduced, and the structure is simplified; furthermore, since the target object packet comprises a data packet generated when the target object is in a water leakage condition, the target data packet generated when the target object is different will also be different, so that the target data packet is more accurate and reliable, and the safety and flexibility of water leakage detection are further improved. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be considered as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0046] Figure 1 A flowchart of a wireless valve tower water leakage detection method provided by an embodiment of the present application is shown in the figure.
[0047] Figure 2A flowchart of step S12 provided by an embodiment of the present application is shown in the figure;
[0048] Figure 3 A flowchart of step S13 provided by an embodiment of the present application is shown in the figure;
[0049] Figure 4 A flowchart of step S132 provided by an embodiment of the present application is shown in the figure;
[0050] Figure 5 A structural block diagram of the wireless valve tower water leakage detection system provided by an embodiment of the present application is shown in the figure;
[0051] Figure 6 A structural diagram of the wireless valve tower water leakage detection device provided by an embodiment of the present application is shown in the figure;
[0052] Figure 7 An internal structural diagram of the computer device in an embodiment. DETAILED DESCRIPTION
[0053] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0054] In an embodiment, as shown in the figure, Figure 1 a wireless valve tower water leakage detection method is provided, and a microcontroller is taken as an example to illustrate the execution subject of the method, which includes the following steps:
[0055] Step S11, obtaining a target characteristic parameter on the interrupt source port line.
[0056] The target characteristic parameter can be the current level on the interrupt source port line.
[0057] Specifically, the present application uses an edge trigger mode to trigger an external interrupt, and the microprocessor can determine whether to trigger an interrupt signal according to the detected current level on the interrupt source port line; wherein the current level can be a high level or a low level.
[0058] It should be noted that when using the edge trigger mode, the microprocessor detects that the interrupt source port line is at a high level in the last machine cycle and detects that the interrupt source port line is at a low level in the next machine cycle, and then the interrupt flag can be set, thereby requesting the generation of an interrupt signal.
[0059] Step S12, determining whether the target characteristic parameter meets a preset water leakage rule to determine a target determination result.
[0060] The preset water leakage rule can be used to represent that the current level is a high level or the current level is a low level.
[0061] In the actual processing process, when the target characteristic parameter includes the current level on the interrupt source port line, as shown in Figure 2 Step S12 can be implemented through the following sub-steps:
[0062] Step S121, when the current level is higher than the preset reference level, it is determined that the target judgment result includes that the target interrupt signal occurs.
[0063] Specifically, when the microcontroller obtains the current level on the interrupt source port line, it can further determine whether the current level is higher than the preset reference level. If it is determined that the current level is higher than the preset reference level, it can be determined that the current level on the interrupt source port line is high. At this time, it can be determined that the target judgment result is that the target interrupt signal occurs.
[0064] Step S122, when the current level is lower than the preset reference level, it is determined that the target judgment result includes that the target interrupt signal does not occur.
[0065] Specifically, when the microcontroller determines that the current level on the interrupt source port line is lower than the preset reference level, it can be determined that the current level on the interrupt source port line is low. At this time, it can be determined that the target judgment result is that the target interrupt signal does not occur. The step of obtaining the target characteristic parameter on the interrupt source port line can be continued.
[0066] Step S13, obtaining a target data packet matched with the target judgment result.
[0067] The target data packet can include a data packet generated when the target object occurs a water leakage situation. The target object can be a water leakage detection module or a timer module.
[0068] In the actual processing process, as shown in Figure 3 Step S13 can be implemented through the following process:
[0069] Step S131, when the target judgment result indicates that the target interrupt signal occurs, the wireless valve tower water leakage detection system is controlled to switch from the sleep state to the wake-up state.
[0070] Specifically, when the microcontroller determines that the target judgment result indicates that the target interrupt signal occurs, the wireless valve tower water leakage detection system can be first woken up from the sleep state, that is, the wireless valve tower water leakage detection system can be controlled to switch from the sleep state to the wake-up state, so as to enter the working state.
[0071] It should be noted that the wireless valve tower water leakage detection system in the application adopts a hibernation mechanism, so that the modules that are temporarily not working in the wireless valve tower water leakage detection system enter a hibernation state, thereby achieving the effect of reducing power consumption. For example, the water leakage detection module is always in a working state, and the microcontroller, timer module and communication module can all be in a hibernation state when no water leakage occurs. The microcontroller enters a hibernation state to reduce a certain amount of power consumption, and the same applies to the timer module.
[0072] Step S132, determining a target trigger source of the target interrupt signal.
[0073] The target trigger source can be used to represent a target object that causes the water leakage.
[0074] Specifically, when the microcontroller determines that the target determination result is that the target interrupt signal occurs, the microcontroller can further determine the target trigger source of the target interrupt signal, that is, determine whether the timer module causes the water leakage or the water leakage detection module causes the water leakage, thereby laying a foundation for subsequent acquisition of the target data packet.
[0075] In actual processing, as shown in Figure 4 Step S132 can be implemented through the following sub-steps:
[0076] Step S1321, acquiring a target time point at which the target interrupt signal occurs.
[0077] Specifically, when the microcontroller determines that the target interrupt signal occurs, the microcontroller can first determine whether the target interrupt signal is triggered by the timer module. Therefore, when it is determined that the target interrupt signal occurs, the microcontroller can first acquire the target time point at which the target interrupt signal occurs.
[0078] Step S1322, determining whether the target time point meets a preset reference heartbeat time point.
[0079] The preset reference heartbeat time point can be used to represent a time point at which the valve tower causes the water leakage, which is sufficient to indicate that the time point is a time point at which the timer module triggers the target interrupt signal. Moreover, the process of determining whether the target time point meets the preset reference heartbeat time point can be a process of determining whether the target time point is the same as the preset reference heartbeat time point.
[0080] Specifically, when the microcontroller acquires the target time point at which the target interrupt signal occurs, the microcontroller can further compare the target time point with the preset reference heartbeat time point to determine whether the target time point is the same as the preset reference heartbeat time point.
[0081] Step S1323, when the target time point meets the preset reference heartbeat time point, determining that the target trigger source is the timer module.
[0082] Specifically, when the microcontroller determines that the target time point meets the preset reference heartbeat time point, that is, the microcontroller determines that the target time point is the same as the preset reference heartbeat time point, it can be determined that the target trigger source triggering the target interrupt signal is the timer module.
[0083] Step S1324, when the target time point does not meet the preset reference heartbeat time point, the current voltage value in the water leakage detection module is obtained.
[0084] Specifically, when the microcontroller determines that the target time point does not meet the preset reference heartbeat time point, that is, the microcontroller determines that the target time point is not the same as the preset reference heartbeat time point, it can be determined that the target trigger source triggering the target interrupt signal is not the timer module, and the current voltage in the water leakage detection module can be further obtained to determine whether the target interrupt signal is triggered by the water leakage detection module.
[0085] Step S1325, determining the target trigger source corresponding to the current voltage value.
[0086] Specifically, when the microcontroller obtains the current voltage value in the water leakage detection module, the current voltage value can be matched with the preset reference voltage. If the current voltage value is higher than the preset reference voltage, it can be determined that the target trigger source is the water leakage detection module, that is, the target interrupt signal is triggered by the water leakage detection module.
[0087] The preset reference voltage can be used to represent that the voltage value of the water leakage detection module when the valve tower leaks is sufficient to indicate that the water leakage detection module triggers the target interrupt signal. For example, the preset reference voltage can be 0.1V.
[0088] It should be noted that when the microcontroller determines that the current voltage value in the water leakage detection module is lower than the preset reference voltage, it can be considered that the target trigger source is not the water leakage detection module. At this time, the microcontroller determines that neither the timer module nor the water leakage detection module has the target interrupt signal, and can return to step S11 to continue to execute the step of obtaining the target characteristic parameter on the interrupt source port line, that is, return to the process of detecting whether the target interrupt signal occurs.
[0089] In actual processing, when the microcontroller determines whether the target interrupt signal is triggered by the water leakage detection module, the water leakage detection can be realized by judging whether the water immersion cable resistance value connected with the water leakage detection module is increased, for example, when the water immersion cable resistance value is increased, it is considered that the water leakage detection module leaks, and when the water immersion cable resistance value decreases, it is considered that the water leakage detection module does not leak.
[0090] Step S133, obtaining the target data packet generated by the target trigger source.
[0091] Specifically, when the microcontroller determines that the target trigger source is the timer module, a heartbeat data packet can be generated; when the microcontroller determines that the target trigger source is the water leakage detection module, a water leakage data packet can be generated; wherein the target data packet can be the heartbeat data packet or the water leakage data packet.
[0092] It should be noted that the heartbeat data packet and the water leakage data packet are essentially the same, and the difference lies in the object of the byte identifier, such as the byte identifier can identify the timer module or the water leakage detection module.
[0093] Step S14, the target data packet is sent to the gateway.
[0094] Specifically, when the microcontroller determines the target trigger source and generates the target data packet, the target data packet can be uploaded to the gateway for subsequent processing and storage of the water leakage situation.
[0095] In the above wireless valve tower water leakage detection method, the target characteristic parameter on the interrupt source port line is obtained; it is judged whether the target characteristic parameter satisfies the preset water leakage rule, and the target judgment result is determined; a target data packet matched with the target judgment result is obtained; wherein the target data packet includes a data packet generated when the target object occurs water leakage; the target data packet is sent to the gateway. In order to quickly and efficiently realize the purpose of long-distance and real-time detection of water leakage, solve the problems of low efficiency, complex equipment structure and high cost in the traditional valve tower water leakage detection method, greatly improve the efficiency of valve tower water leakage detection, also reduce the cost, simplify the structure; further, since the target object packet includes a data packet generated when the target object occurs water leakage, therefore, when the target object is different, the target data packet generated will also be different, so that the target data packet is more accurate and reliable, and the safety and flexibility of water leakage detection are further improved.
[0096] It should be understood that, although Figures 1-4 The steps in the flowchart of the application are shown in sequence according to the direction of the arrow, but these steps are not necessarily executed in sequence according to the direction of the arrow. Unless otherwise stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other order. Moreover, Figures 1-4 At least part of the steps in the application can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0097] In one embodiment, as Figure 5As shown, a wireless valve tower water leakage detection system is provided, comprising: a microcontroller, a water leakage detection module, a timer module, a communication module and a power supply module, the microcontroller is connected with the water leakage detection module, the timer module, the communication module and the power supply module respectively, wherein:
[0098] The water leakage detection module is configured to output a current voltage value representing whether a water leakage occurs according to a current resistance value of the water immersion detection cable.
[0099] The timer module is configured to wake up the communication module and the microcontroller at a timing, and to send target state information of the wireless valve tower water leakage detection system to a target platform at a timing; wherein the target state information comprises a working state and a sleep state.
[0100] The communication module is configured to wake up from the sleep state when the water leakage occurs, and to send a first alarm signal to the microcontroller; wherein the first alarm signal is used to remind the wireless valve tower water leakage detection system that the water leakage occurs.
[0101] The power supply module is configured to supply power to the microcontroller, the water leakage detection module, the timer module and the communication module.
[0102] The microcontroller is configured to acquire a target feature parameter on an interrupt source port line, to determine a target determination result by judging whether the target feature parameter meets a preset water leakage rule, to acquire a target data packet matched with the target determination result, wherein the target data packet comprises a data packet generated when a target object occurs a water leakage, and to send the target data packet to a gateway.
[0103] Specifically, to achieve the lowest power consumption and the best performance, the microcontroller can be selected as an STM8L152K4T6 single-chip microcomputer, which is an ultra-low power 8-bit single-chip microcomputer with a minimum power consumption of only 3uA, meeting the industrial working temperature requirements, having sufficient IO quantity, interrupt quantity and communication interface peripheral resources, and built-in 12-bit high-performance ADC interface; an 8-bit single-chip microcomputer supporting low-power mode is used as a main controller, and the microcontroller works in a stop mode when no water leakage interrupt occurs, in which mode the microcontroller closes the timer module, and when water leakage occurs or communication with the platform is needed, the microcontroller is activated by an external interrupt to enter a running mode. In addition, the microcontroller can also be used for clock selection, working mode selection, definition of IO ports that need to be opened and closed, and communication protocol definition with other hardware, etc.
[0104] The water leakage detection module can be composed of a voltage comparator and a capacitor-resistor bridge. The core of the water leakage detection module is an ST393 dual voltage comparator. The water immersion detection cable is connected to the same phase end of the ST393 dual voltage comparator, and the reference voltage is connected to the opposite phase end. When there is no water leakage, the resistance of the water immersion detection cable is high, so the voltage of the same phase end is higher than that of the opposite phase end, and a high voltage is output. When water leakage occurs in the valve tower, the resistance of the water immersion cable decreases, and the voltage of the same phase end is lower than that of the opposite phase end, and a low voltage is output. In this way, water leakage detection is realized.
[0105] The timer module can be selected from an industrial-grade low-power chip. The RX8010SJ low-power clock chip produced by Epson Company can be used as the timer module. The chip supports a wide voltage operating range of 1.1V-5.5V and has a power consumption of only 160nA. The chip has a built-in frequency calibration 32.768KHz crystal unit and 128bit RAM, and has functions such as real-time clock, timing, and timing interrupt. In addition, the timer module communicates with the microcontroller through I2C. IRQ1 is the interrupt interface of the timer module, which provides a heartbeat signal interrupt for the system.
[0106] The communication module can be selected from a SEMTECH SX1268 low-power long-distance radio frequency chip. Under ideal conditions, the communication distance can reach 7km, the maximum transmission power is only 160mW, and the power can be adjusted internally. The chip supports a new SF5 spreading factor for dense networks, supports a data transmission rate of 0.018k-62.5kbps in LoRaTM mode, and supports a large-capacity FIFO with a data buffer of 256 bytes.
[0107] The power supply module can use a DC stabilizer. The core of the power supply module is an MP1584 step-down chip. The MP1584 is a high-frequency step-down switching regulator with an integrated internal high-voltage power MOSFET. The main functions of the MP1584 are to prevent self-oscillation and resist electromagnetic interference. The MP1584 is packaged in a 8-pin SMD package, has an input operating voltage of 4.5-28V, can output a stable voltage of 0.8-25V, has a working frequency of up to 1.5MHz, and has a maximum output current of 3A.
[0108] It should be noted that the timer module can also include a clock chip. The clock chip can be used to periodically send a second alarm signal to the microcontroller. The alarm signal can be used to interrupt the microcontroller from sending a target data packet to the gateway. For example, IRQ1 is the interrupt interface of the timer module, and IRQ1 provides a heartbeat signal trigger interrupt for the system. When the preset time point is reached, the IRQ1 pin changes from high level to low level. In order to meet the power consumption requirements of the microcontroller, an inverter is added to reverse the level signal. The preset time point can be 12:00 every night.
[0109] The wireless valve tower water leakage detection system is also used for periodically sending a heartbeat data packet to a target platform to determine whether the wireless valve tower water leakage detection system is malfunctioning.
[0110] It should be noted that the wireless valve tower water leakage detection system can be a wireless valve tower water leakage detection sensor, and the wireless valve tower water leakage detection system can determine whether it is malfunctioning by periodically sending a heartbeat data packet to a target platform. For example, the system is configured to send a heartbeat data packet to a target platform every two hours. If the heartbeat data packet is continuously and uninterruptedly sent to the target platform, it indicates that the system is not malfunctioning. If the heartbeat data packet is intermittently or stopped from being sent to the target platform, it indicates that the system is malfunctioning. In this way, the reliability and flexibility of the system are improved.
[0111] The wireless valve tower water leakage detection system in this embodiment includes a microcontroller, a water leakage detection module, a timer module, a communication module, and a power supply module. The microcontroller is connected to the water leakage detection module, the timer module, the communication module, and the power supply module. The water leakage detection module is used to output a current voltage value representing whether a water leakage situation occurs according to a current resistance value of a water immersion detection cable. The timer module is used to wake up the communication module and the microcontroller at a regular time and send target state information of the wireless valve tower water leakage detection system to a target platform at a regular time. The target state information includes a working state and a sleep state. The communication module is used to wake up the sleep state when a water leakage situation occurs and send a first alarm signal to the microcontroller. The first alarm signal is used to remind the wireless valve tower water leakage detection system that a water leakage situation occurs. The power supply module is used to supply power to the microcontroller, the water leakage detection module, the timer module, and the communication module. The microcontroller is used to obtain a target feature parameter on an interrupt source port line, determine whether the target feature parameter meets a preset water leakage rule to determine a target determination result, obtain a target data packet matching the target determination result, and send the target data packet to a gateway. The target data packet includes a data packet generated when a target object has a water leakage situation. The system can realize low-power consumption, wireless, long-distance real-time water leakage monitoring, alarm, and statistical analysis functions, and can carry out valve tower water leakage real-time monitoring, fault alarm, data uploading, processing, analysis, and storage functions to achieve the purpose of safe and efficient operation of the converter valve tower, thereby ensuring the safe and stable operation of the thyristor DC system and the high-speed economic and social development of the Qinghai-Tibet region.
[0112] In one embodiment, as shown in Figure 6 A wireless valve tower water leakage detection device is provided, and the device includes a first obtaining module 61, a determining module 62, a second obtaining module 63, and a sending module 64.
[0113] The first obtaining module 61 is configured to obtain a target characteristic parameter on the interrupt source port line.
[0114] The determining module 62 is configured to determine whether the target characteristic parameter meets a preset water leakage rule, and determine a target determination result.
[0115] The second obtaining module 63 is configured to obtain a target data packet matched with the target determination result, wherein the target data packet comprises a data packet generated when a target object has a water leakage condition.
[0116] The sending module 64 is configured to send the target data packet to a gateway.
[0117] The specific limitations of the wireless valve tower water leakage detection device can be referred to the limitations of the wireless valve tower water leakage detection method in the foregoing, and will not be described here. Each module in the wireless valve tower water leakage detection device can be realized by software, hardware and combinations thereof, in whole or in part. Each module can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.
[0118] In one embodiment, a computer device is provided, which can be a terminal, and its internal structure diagram can be as shown in Figure 7 The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer 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 operating system and the computer program in the non-volatile storage medium to run. The communication interface of the computer device is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved through WIFI, operator network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a wireless valve tower water leakage detection method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.
[0119] Those skilled in the art can understand that Figure 7 the structure shown in the above-mentioned figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0120] In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0121] obtaining a target characteristic parameter on an interrupt source port line;
[0122] determining whether the target characteristic parameter meets a preset water leakage rule to determine a target determination result;
[0123] obtaining a target data packet matched with the target determination result; wherein the target data packet comprises a data packet generated when a target object occurs a water leakage condition;
[0124] sending the target data packet to a gateway.
[0125] In one embodiment, the processor implements the steps in the above method embodiments when executing the computer program.
[0126] In one embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program is executed by a processor to implement the following steps:
[0127] obtaining a target characteristic parameter on an interrupt source port line;
[0128] determining whether the target characteristic parameter meets a preset water leakage rule to determine a target determination result;
[0129] obtaining a target data packet matched with the target determination result; wherein the target data packet comprises a data packet generated when a target object occurs a water leakage condition;
[0130] sending the target data packet to a gateway.
[0131] In one embodiment, the computer program is executed by the processor to implement the steps in the above method embodiments.
[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, database or other medium used in each embodiment provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0133] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of each technical feature in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0134] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A wireless valve tower leak detection system, characterized by, The wireless valve tower water leakage detection system comprises a microcontroller, a water leakage detection module, a timer module, a communication module and a power supply module, the microcontroller is connected with the water leakage detection module, the timer module, the communication module and the power supply module respectively, and wherein: The water leakage detection module is configured to output a current voltage value representing whether a water leakage occurs according to a current resistance value of the water immersion detection cable; The timer module is configured to wake up the communication module and the microcontroller at a timing and send target state information of the wireless valve tower water leakage detection system to a target platform at a timing; wherein the target state information comprises a working state and a sleep state; The communication module is configured to wake up from the sleep state when the water leakage occurs and send a first alarm signal to the microcontroller; wherein the first alarm signal is used to remind the wireless valve tower water leakage detection system that the water leakage occurs; The power supply module is configured to supply power to the microcontroller, the water leakage detection module, the timer module and the communication module; The microcontroller is configured to acquire a target feature parameter on an interrupt source port line, determine whether the target feature parameter satisfies a preset water leakage rule, determine a target determination result, acquire a target data packet matched with the target determination result, determine a target trigger source of the target interrupt signal when the target determination result is that the target interrupt signal occurs, determine that the target trigger source of the target interrupt signal is the timer module when the microcontroller determines that a target time point is the same as a preset reference heartbeat time point, determine that the target trigger source of the target interrupt signal is not the timer module when the microcontroller determines that the target time point is not the same as the preset reference heartbeat time point, and further acquire a current voltage in the water leakage detection module, determine whether the target interrupt signal is triggered by the water leakage detection module, match the current voltage value with a preset reference voltage when the microcontroller acquires the current voltage value in the water leakage detection module, determine that the target trigger source is the water leakage detection module if the current voltage value is higher than the preset reference voltage, determine that the target trigger source is not the water leakage detection module if the current voltage value is lower than the preset reference voltage, and determine that neither the timer module nor the water leakage detection module triggers the target interrupt signal at this time; wherein the target data packet comprises a data packet generated when a target object occurs the water leakage, and the target data packet is sent to a gateway.
2. The wireless valve tower leak detection system of claim 1, wherein, The timer module comprises a clock chip, the clock chip is configured to periodically send a second alarm signal to the microcontroller; wherein the second alarm signal is used to interrupt the microcontroller from sending the target data packet to the gateway; The wireless valve tower water leakage detection system is further configured to periodically send a heartbeat data packet to the target platform automatically to determine whether the wireless valve tower water leakage detection system fails.
3. A wireless valve tower water leakage detection method based on the wireless valve tower water leakage detection system according to any one of claims 1-2, characterized in that, The method comprises: acquiring a target feature parameter on an interrupt source port line; The target characteristic parameter includes a current level on the interrupt source port line, and whether the target characteristic parameter meets a preset water leakage rule is determined to determine a target determination result, including: when the current level is higher than a preset reference level, it is determined that the target determination result includes that a target interrupt signal occurs; When the current level is lower than the preset reference level, it is determined that the target determination result includes that no target interrupt signal occurs; A target data packet matched with the target determination result is obtained; wherein the target data packet includes a data packet generated when a target object occurs a water leakage situation, and the target object is a water leakage detection module or a timer module, including: When the target determination result indicates that the target interrupt signal occurs, the wireless valve tower water leakage detection system is controlled to switch from a sleep state to a wake-up state; A target trigger source of the target interrupt signal is determined, including: A target time point at which the target interrupt signal occurs is obtained; Whether the target time point meets a preset reference heartbeat time point is determined; When the target time point meets the preset reference heartbeat time point, that is, when the target time point is determined to be the same as the preset reference heartbeat time point, it is determined that the target trigger source is the timer module; When the target time point does not meet the preset reference heartbeat time point, that is, when the target time point is determined to be different from the preset reference heartbeat time point, it is determined that the target trigger source that triggers the target interrupt signal is not the timer module, and a current voltage in the water leakage detection module is further obtained to determine whether the target interrupt signal is triggered by the water leakage detection module and to obtain a current voltage value in the water leakage detection module; A target trigger source corresponding to the current voltage value is determined, including: When the current voltage value is higher than a preset reference voltage, it is determined that the target trigger source is the water leakage detection module; When the current voltage value is lower than the preset reference voltage, it is considered that the target trigger source is not the water leakage detection module, and it is determined that neither the timer module nor the water leakage detection module occurs the target interrupt signal; A target data packet generated by the target trigger source is obtained; The target data packet is sent to a gateway.
4. The wireless valve tower water leak detection method of claim 3, wherein, After the step of obtaining the current voltage value in the water leakage detection module, the method further includes: When the current voltage value is lower than the preset reference voltage, the step of obtaining the target characteristic parameter on the interrupt source port line is executed.
5. A wireless valve tower water leakage detection device for implementing the wireless valve tower water leakage detection method of claim 3, characterized in that, The apparatus includes a first obtaining module, a determining module, a second obtaining module, and a sending module, wherein: The first obtaining module is configured to obtain a target characteristic parameter on an interrupt source port line; The determining module is configured to determine whether the target characteristic parameter meets a preset water leakage rule to determine a target determination result; The second obtaining module is configured to obtain a target data packet matched with the target determination result; wherein the target data packet includes a data packet generated when a target object occurs a water leakage situation; The sending module is configured to send the target data packet to a gateway. 6.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-5 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 3 to 4.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 3 to 4.
Citation Information
Patent Citations
Low-power intelligent monitor for hydraulic pressure of pipeline and monitoring method thereof
CN102353498A
Change of current valve monitoring system that leaks
CN205486719U
Water leakage detection device and machine room air conditioner
CN209342931U