Water leakage detection method, electronic device and storage medium
By detecting the number of operations of the water inlet and outlet solenoid valves of the drinking water equipment and the water level in the water tank, the problem of untimely leakage detection of the drinking water equipment is solved, and efficient leakage detection and safety improvement are achieved.
Patent Information
- Application Number
- CN202111521783.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-12-13
AI Technical Summary
Existing drinking water equipment cannot detect water leaks in a timely manner, resulting in continuous water replenishment, continuous water leakage, and even accidents. In addition, the existing water leakage detection module increases costs and space occupancy.
By detecting the number of times the water inlet and outlet solenoid valves of the drinking water equipment are closed and opened, combined with the water level detection in the water tank, it is determined whether the equipment is leaking, and the water supply is stopped in time after the leakage occurs.
It improves the accuracy and effectiveness of water leakage detection, reduces detection costs, enhances the safety and reliability of equipment, and improves user experience.
Smart Images

Figure CN115479220B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of drinking water equipment, and specifically provides a water leakage detection method, electronic equipment and computer-readable storage medium. Background Art
[0002] Drinking water equipment is a household appliance used to heat or cool drinking water for direct drinking. Through multi-stage purification, drinking water equipment makes tap water in the home drinkable, meeting a wide range of daily needs, including drinking water, brewing tea and coffee, preparing instant meals, and preparing cold drinks.
[0003] Most existing drinking water systems use pure water from a water purifier directly into the water tank through a solenoid valve. If some silicone piping leaks, the water tank will be refilled as soon as the water level reaches a low point, causing the drinking water system to constantly refill and leak. Furthermore, as the leak worsens, the water leaking from the drinking water system could soak the floor of the user's home and even cause accidents such as electric shock and fire, which is extremely dangerous.
[0004] Accordingly, the art needs a new water leakage detection method to solve the above problems. Summary of the Invention
[0005] The present invention aims to solve the above technical problems, that is, to solve the problem that existing drinking water equipment cannot detect water leakage in time, resulting in continuous water replenishment and leakage of the drinking water equipment, and even causing accidents.
[0006] The present invention provides a water leakage detection method, which is applied to drinking water equipment, comprising: receiving a valve opening instruction, wherein the valve opening instruction is used to instruct the opening of a first solenoid valve of the drinking water equipment; in response to the valve opening instruction, detecting the closing operation of the first solenoid valve, and recording the number of closings of the first solenoid valve, wherein the closing operation refers to the operation of opening the first solenoid valve to replenish water until the water is full and then closing; detecting the opening operation of the second solenoid valve of the drinking water equipment, and recording the number of openings of the second solenoid valve, wherein the opening operation refers to the operation of opening the second solenoid valve to discharge water; and determining whether the drinking water equipment is leaking based on the number of closings of the first solenoid valve and the number of openings of the second solenoid valve.
[0007] In some embodiments, receiving the valve opening instruction includes: when it is detected that the water level in the water tank of the drinking water equipment is lower than a preset water level threshold, opening the first solenoid valve to replenish water in the water tank.
[0008] In some embodiments, in response to a valve opening instruction, the closing operation of the first solenoid valve is detected, and the number of times the first solenoid valve is closed is recorded, including: after opening the first solenoid valve, using a water level detection device provided in a water tank to detect the closing operation of the first solenoid valve; when the closing operation of the first solenoid valve is detected, the number of times the first solenoid valve is closed is recorded.
[0009] In some embodiments, the opening operation of the second solenoid valve of the drinking water equipment is detected, and the number of times the second solenoid valve is opened is recorded, including: after closing the first solenoid valve, the number of times the second solenoid valve is opened is cleared; using a water level detection device to re-detect the opening operation of the second solenoid valve, and recording the number of times the second solenoid valve is opened.
[0010] In some embodiments, whether the drinking water equipment is leaking is determined based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, including: when the number of times the first solenoid valve is closed is 1, when it is detected that the water level in the water tank is lower than a preset water level threshold, the number of times the second solenoid valve is opened is obtained; if the number of times the second solenoid valve is opened is greater than or equal to 1, it is determined that the drinking water equipment is not leaking; if the number of times the second solenoid valve is opened is 0, it is determined that the drinking water equipment is leaking, and an alarm reminder is issued.
[0011] In some embodiments, whether the drinking water equipment is leaking is determined based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, including: when the number of times the first solenoid valve is closed is greater than or equal to 2, when the number of times the second solenoid valve is opened changes from 1 to 0, it is determined that the drinking water equipment is not leaking, and no alarm reminder is issued.
[0012] In some embodiments, the water leakage detection method also includes: when the closing operation of the first solenoid valve is not detected, the number of closing times of the first solenoid valve is recorded as 0; wherein, based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve, determining whether the drinking water equipment is leaking includes: when the number of closing times of the first solenoid valve is 0, when it is detected that the water level in the water tank is lower than a preset water level threshold, determining that the drinking water equipment is leaking, closing the first solenoid valve, and issuing an alarm reminder.
[0013] In some embodiments, the first solenoid valve is a water inlet solenoid valve, and the second solenoid valve is a water outlet solenoid valve.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the methods described in the above technical solutions when executing the computer program.
[0015] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method described in any one of the above technical solutions are implemented.
[0016] It will be understood by those skilled in the art that, when adopting the above-mentioned technical solution, the present invention detects the closing operation of the first solenoid valve and records the number of closings of the first solenoid valve, detects the opening operation of the second solenoid valve of the drinking water equipment and records the number of openings of the second solenoid valve, and determines whether the drinking water equipment is leaking based on the number of closings of the first solenoid valve and the number of openings of the second solenoid valve after receiving the valve opening instruction for instructing to open the first solenoid valve of the drinking water equipment. This allows for timely detection of water leakage in the drinking water equipment and effective stopping of water intake after leakage occurs without the need for adding a separate water leakage detection module. Therefore, the accuracy and effectiveness of water leakage detection are improved, the detection cost is reduced, the safety and reliability of the use of the drinking water equipment are improved, and the user experience is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic flow chart of a water leakage detection method according to the present invention;
[0018] Figure 2 is a flow chart of another water leakage detection method according to the present invention;
[0019] Figure 3 is a schematic structural diagram of an electronic device according to the present invention. DETAILED DESCRIPTION
[0020] Some embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.
[0021] In the description of the present invention, "module" and "processor" may include hardware, software, or a combination of both. A module may include hardware circuitry, various suitable sensors, communication ports, and memory. It may also include software components, such as program code, or a combination of software and hardware. A processor may be a central processing unit, a microprocessor, a digital signal processor, or any other suitable processor. A processor has data and / or signal processing capabilities. A processor may be implemented in software, hardware, or a combination of both. Non-transitory computer-readable storage media include any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, and the like. The term "A and / or B" refers to all possible combinations of A and B, such as only A, only B, or both A and B. The terms "at least one of A or B" or "at least one of A and B" have similar meanings to "A and / or B" and may include only A, only B, or both A and B. The singular forms "a" and "the" may also include the plural forms.
[0022] Drinking water equipment is a device that uses electrical energy or chemical energy to add boiling water. It is mainly suitable for public places such as enterprises, military units, stations, factories, hospitals, and schools. Compared with traditional boilers, it has the advantages of being safe, fast, low-noise, environmentally friendly and pollution-free. The supply of boiling water is not limited to any time and can be provided at any time.
[0023] During use, most existing drinking water equipment uses pure water from a water purifier directly into the water tank through a solenoid valve. If some silicone piping leaks, the water tank will be immediately refilled as soon as the water level reaches a low point. This results in constant refilling and leakage, further wasting water resources. Furthermore, as the leakage worsens, the water leaking from the drinking water equipment may soak the floor of the user's home and even cause accidents such as electric shock and fire, resulting in low safety and reliability of the drinking water equipment and a poor user experience.
[0024] As can be seen, current drinking water equipment is unable to detect water leaks and stop water inflow in a timely manner. Although existing drinking water equipment can detect whether a leak occurs by installing a water leakage detection module, the need to separately add a water leakage detection module increases costs and takes up a lot of space, further leading to high detection costs. Therefore, it is necessary to provide a solution that can detect water leaks in drinking water equipment and effectively stop water inflow when a leak occurs.
[0025] A water leakage detection method according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
[0026] Figure 1 It is a flow chart of a water leakage detection method according to the present invention. Figure 1The water leakage detection method can be executed by the server, or by the drinking water device, or by the server and the drinking water device together. Figure 1 As shown, the water leakage detection method is applied to drinking water equipment, including:
[0027] S101, receiving a valve opening instruction, wherein the valve opening instruction is used to instruct to open a first solenoid valve of a drinking water device;
[0028] S102, in response to the valve opening instruction, detecting the closing operation of the first solenoid valve and recording the number of closing times of the first solenoid valve, wherein the closing operation refers to the operation of the first solenoid valve opening to replenish water until the water is full and then closing;
[0029] S103, detecting the opening operation of the second solenoid valve of the drinking water device and recording the number of times the second solenoid valve is opened, wherein the opening operation refers to the operation of the second solenoid valve opening to discharge water;
[0030] S104: Determine whether the drinking water device is leaking based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened.
[0031] Specifically, taking the drinking water equipment as an example, after receiving the valve opening instruction for instructing to open the first solenoid valve of the drinking water equipment, the controller (or processor) of the drinking water equipment detects the operation of opening the first solenoid valve to replenish water until it is full and closed, and records the number of times the first solenoid valve performs the closing operation; the controller also detects the operation of opening the second solenoid valve of the drinking water equipment to discharge water, and records the number of times the second solenoid valve performs the opening operation; further, the controller determines whether the drinking water equipment is leaking based on the detected number of closing times and opening times.
[0032] Here, a server can be a server that provides various services, for example, a backend server that receives requests sent by a terminal device that has established a communication connection with it. The backend server can receive and analyze the requests sent by the terminal device, and generate processing results. The server can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center, and the embodiments of the present invention are not limited to these.
[0033] It should be noted that the server can be either hardware or software. When the server is hardware, it can be various electronic devices that provide various services to terminal devices. When the server is software, it can be multiple software programs or software modules that provide various services to terminal devices, or it can be a single software program or software module that provides various services to terminal devices, and this is not limited in the embodiments of the present invention.
[0034] The terminal device can be either hardware or software. If the terminal device is hardware, it can be any electronic device with a display screen that supports communication with a server, including but not limited to smartphones, tablet computers, laptop computers, and desktop computers. If the terminal device is software, it can be installed in the electronic devices described above. The terminal device can be implemented as multiple software programs or software modules, or as a single software program or software module, and this is not limited in the present embodiment.
[0035] Drinking water equipment is a kind of living facility that heats or cools drinking water (for example, purified water, mineral water, tap water, etc.) and makes it convenient for people to drink. It is widely used in homes, schools, offices, conferences, hotels and other places. Drinking water equipment may include but is not limited to water dispensers, water purifiers, water purifiers, pipeline machines, etc. Preferably, in an embodiment of the present invention, the drinking water equipment is a pipeline machine. The pipeline machine, also known as the pipeline drinking machine, is generally used in homes, offices, schools, etc., and is used in conjunction with water purification equipment. It has a built-in PE water tank for water storage. Clean water is placed in the PE water tank in advance, and then heated by the heating tube and cooled by the ice making tube to produce hot and cold water for people to drink. Pipeline machines can be divided into vertical pipeline machines, wall-mounted pipeline machines, and card-swipe pipeline machines.
[0036] The first solenoid valve can be a water inlet solenoid valve, also known as a water inlet valve, electromagnetic water inlet valve, water solenoid valve, water supply solenoid valve, or pressureless waterproof solenoid valve, primarily used to control water inflow. When the drinking water device is operating, the water inlet solenoid valve opens to allow water to flow through; when the drinking water device stops operating, the water inlet solenoid valve closes to directly cut off the water source. This cessation of the water inlet solenoid valve is manifested by the cessation of wastewater outflow. Furthermore, the closing operation of the first solenoid valve refers to the operation of opening the first solenoid valve to replenish the water tank until it is closed after replenishment. That is, one opening and closing of the first solenoid valve constitutes one operation. The number of closings of the first solenoid valve refers to the number of times the first solenoid valve performs an on-off operation, i.e., the number of times the water tank is replenished.
[0037] The second solenoid valve can be a water outlet solenoid valve, also known as a water outlet valve, electromagnetic water outlet valve, or drain solenoid valve, primarily used for water outlet. When a user draws water, the water outlet solenoid valve opens to allow water to flow from the water purification device; when the user has finished drawing water, the water outlet solenoid valve closes, directly shutting off the water purification device. Furthermore, the opening operation of the second solenoid valve refers to the operation of opening the second solenoid valve to allow water to flow from the water tank, i.e., the operation of opening the second solenoid valve. The number of times the second solenoid valve is opened refers to the number of times the second solenoid valve is opened, i.e., the number of times a user draws water.
[0038] According to the technical solution provided by the embodiment of the present invention, after receiving the valve opening instruction for instructing to open the first solenoid valve of the drinking water equipment, the closing operation of the first solenoid valve is detected and the number of closing times of the first solenoid valve is recorded, the opening operation of the second solenoid valve of the drinking water equipment is detected and the number of opening times of the second solenoid valve is recorded, and whether the drinking water equipment is leaking is determined based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve. This allows timely detection of leakage of the drinking water equipment and effective stopping of water intake after leakage occurs without the need to add a separate leakage detection module. Therefore, the accuracy and effectiveness of leakage detection are improved, the detection cost is reduced, the safety and reliability of the use of the drinking water equipment are improved, and the user experience is further improved.
[0039] In some embodiments, receiving the valve opening instruction includes: when it is detected that the water level in the water tank of the drinking water equipment is lower than a preset water level threshold, opening the first solenoid valve to replenish water in the water tank.
[0040] Specifically, the controller can detect the water level in the water tank in real time and compare the detected current water level with the preset water level threshold; when the current water level is lower than the preset water level threshold, the controller controls the first solenoid valve to open, so that water can enter the water tank through the water inlet pipe to replenish the water tank.
[0041] Here, the preset water level threshold can be the lowest water level that the water level detection device can detect in the water tank, or it can be a lower water level value pre-set based on empirical data, or it can be a water level value obtained by adjusting the set water level value according to actual needs. The embodiment of the present invention does not limit this.
[0042] In some embodiments, in response to a valve opening instruction, the closing operation of the first solenoid valve is detected, and the number of times the first solenoid valve is closed is recorded, including: after opening the first solenoid valve, using a water level detection device provided in a water tank to detect the closing operation of the first solenoid valve; when the closing operation of the first solenoid valve is detected, the number of times the first solenoid valve is closed is recorded.
[0043] Specifically, after the first solenoid valve is opened, the controller uses a water level detection device arranged in the water tank to detect the operation of the first solenoid valve opening to replenish water until the water is full and closed; when it is detected that the first solenoid valve has performed a closing operation, the controller records the number of times the first solenoid valve has performed the closing operation.
[0044] Here, the water level detection device may include but is not limited to a water level sensor, a water level detector, a float water level controller, etc. Preferably, in the embodiment of the present invention, the water level detection device is an electronic float.
[0045] The closing times can be an integer greater than or equal to 0, for example, 0, 1, 2, 3, 5, etc. It should be understood that the closing times of the first solenoid valve is the water filling times of the water tank, that is, when the closing times is 0, it means that the water tank is not filled with water; when the closing times is 1, it means that the water tank is filled with water once; when the closing times is 2, it means that the water tank is filled with water twice.
[0046] In some embodiments, the opening operation of the second solenoid valve of the drinking water equipment is detected, and the number of times the second solenoid valve is opened is recorded, including: after closing the first solenoid valve, the number of times the second solenoid valve is opened is cleared; using a water level detection device to re-detect the opening operation of the second solenoid valve, and recording the number of times the second solenoid valve is opened.
[0047] Specifically, after the first solenoid valve is closed, it indicates that the water in the water tank is full. At this time, the controller clears the previous opening times of the second solenoid valve and uses the water level detection device to re-detect the opening operation of the second solenoid valve to obtain the opening times of the second solenoid valve.
[0048] In some embodiments, whether the drinking water equipment is leaking is determined based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, including: when the number of times the first solenoid valve is closed is 1, when it is detected that the water level in the water tank is lower than a preset water level threshold, the number of times the second solenoid valve is opened is obtained; if the number of times the second solenoid valve is opened is greater than or equal to 1, it is determined that the drinking water equipment is not leaking; if the number of times the second solenoid valve is opened is 0, it is determined that the drinking water equipment is leaking, and an alarm reminder is issued.
[0049] Specifically, when the number of closing times of the first solenoid valve obtained is 1, it indicates that the water tank has been replenished once. At this time, the controller uses the water level detection device to detect the water level in the water tank. When the detected water level is lower than the preset water level threshold, the controller obtains the number of opening times of the second solenoid valve. If the number of opening times of the second solenoid valve is greater than or equal to 1, it indicates that a user has taken water. Therefore, it can be determined that the drinking water equipment is not leaking, or even if there is a slight leak in the drinking water equipment, it can be discovered in time by the user who takes water; if the number of opening times of the second solenoid valve is 0, it means that no user has taken water. Therefore, it can be determined that the drinking water equipment is leaking and an alarm reminder can be issued.
[0050] Here, the form of the alarm reminder may include but is not limited to voice reminder, text reminder, vibration reminder, etc. For example, taking the pipeline machine as an example, when the alarm reminder is a voice reminder, the pipeline machine can push the alarm reminder to the user by voice broadcasting, and the alarm reminder can be, for example, "The pipeline machine is leaking, please check", or the alarm reminder can be a preset buzzer prompt sound (for example, a warning sound); when the alarm reminder is a text reminder, the pipeline machine can push the alarm reminder to the user by displaying it on its display screen or popping up a floating window in the user interface of the terminal device, and the alarm reminder can be, for example, "Warm reminder: The pipeline machine is leaking, please check!"; when the alarm reminder is a vibration reminder, the pipeline machine can push the alarm reminder to the user by vibration, and the alarm reminder can be, for example, a preset vibration prompt sound.
[0051] In some embodiments, whether the drinking water equipment is leaking is determined based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, including: when the number of times the first solenoid valve is closed is greater than or equal to 2, when the number of times the second solenoid valve is opened changes from 1 to 0, it is determined that the drinking water equipment is not leaking, and no alarm reminder is issued.
[0052] Specifically, when the number of closing times of the first solenoid valve obtained is 1, if the number of opening times of the second solenoid valve obtained is 1, it means that a user is taking water. At this time, the water level in the water tank drops. When the water level is lower than the preset threshold, the first solenoid valve opens to replenish the water tank; if the water flow rate of the water taken by the user is less than the water flow rate of the water tank replenishing water, that is, the user has not completed taking water, but the water tank has been replenished with water, at this time, the controller clears the number of opening times of the second solenoid valve, that is, the number of opening times of the second solenoid valve changes from 1 to 0, and the number of closing times of the first solenoid valve may be greater than or equal to 2. Since the user is using the drinking water equipment to take water at this time, it can be determined that the drinking water equipment is not leaking, and no alarm reminder is issued, thereby avoiding false alarms.
[0053] In some embodiments, the water leakage detection method also includes: when the closing operation of the first solenoid valve is not detected, the number of closing times of the first solenoid valve is recorded as 0; wherein, based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve, determining whether the drinking water equipment is leaking includes: when the number of closing times of the first solenoid valve is 0, when it is detected that the water level in the water tank is lower than a preset water level threshold, determining that the drinking water equipment is leaking, closing the first solenoid valve, and issuing an alarm reminder.
[0054] Specifically, when the closing operation of the first solenoid valve is not detected, it indicates that the water tank has not been replenished with water, that is, the second solenoid valve is not opened. At this time, the controller records the number of closing times of the first solenoid valve as 0, and uses the water level detection device to detect the water level in the water tank; when the detected water level is lower than the preset water level threshold, the first solenoid valve is opened to replenish the water tank. Since the second solenoid valve is not opened (that is, the number of opening times of the second solenoid valve is 0), it indicates that no user has taken water, but the water level in the water tank is lower than the preset water level threshold. Therefore, it can be determined that the drinking water equipment is leaking. At this time, the controller controls the first solenoid valve to close to stop water inlet and issues an alarm reminder.
[0055] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0056] Figure 2 It is a flow chart of another water leakage detection method according to the present invention. Figure 2 The water leakage detection method can be executed by the server, or by the drinking water device, or by the server and the drinking water device together. Figure 2 As shown, the water leakage detection method is applied to drinking water equipment, including:
[0057] S201, when it is detected that the water level in the water tank of the drinking water device is lower than a preset water level threshold, opening the first solenoid valve to replenish water in the water tank;
[0058] S202, after opening the first solenoid valve, using a water level detection device provided in the water tank to detect the closing operation of the first solenoid valve;
[0059] S203, when no closing operation of the first solenoid valve is detected, the number of closing times of the first solenoid valve is recorded as 0;
[0060] S204, when it is detected that the water level in the water tank is lower than the preset water level threshold, it is determined that the drinking water device is leaking, the first solenoid valve is closed, and an alarm is issued;
[0061] S205, when the closing operation of the first solenoid valve is detected, recording the number of closing times of the first solenoid valve;
[0062] S206, after closing the first solenoid valve, clearing the number of times the second solenoid valve is opened;
[0063] S207, re-detecting the opening operation of the second solenoid valve using the water level detection device, and recording the number of times the second solenoid valve is opened;
[0064] S208, when the closing number of the first solenoid valve is 1 and the water level in the water tank is detected to be lower than a preset water level threshold, obtaining the opening number of the second solenoid valve;
[0065] S209, if the number of times the second solenoid valve is opened is greater than or equal to 1, it is determined that the drinking water device is not leaking;
[0066] S210, if the number of times the second solenoid valve is opened is 0, it is determined that the drinking water device is leaking and an alarm is issued;
[0067] S211, when the number of closing times of the first solenoid valve is greater than or equal to 2, when the number of opening times of the second solenoid valve changes from 1 to 0, it is determined that the drinking water equipment does not leak, and no alarm reminder is issued.
[0068] According to the technical solution provided by the embodiment of the present invention, by obtaining the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, and determining whether the drinking water equipment is leaking based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened, the leakage of the drinking water equipment can be detected in time, and the water supply can be effectively stopped after the leakage occurs without adding a separate leakage detection module. Therefore, the accuracy and effectiveness of leakage detection are improved, the detection cost is reduced, the safety and reliability of the use of the drinking water equipment are improved, and the user experience is further improved.
[0069] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0070] Figure 3 Schematic diagram of the structure of the electronic device 3 according to the present invention. Figure 3 As shown, the electronic device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps of the above-mentioned method embodiments are implemented. Alternatively, when the processor 301 executes the computer program 303, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0071] For example, computer program 303 may be divided into one or more modules / units, which are stored in memory 302 and executed by processor 301 to implement the present invention. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of computer program 303 in electronic device 3.
[0072] The electronic device 3 may be a desktop computer, a notebook, a PDA, a cloud server or other electronic device. The electronic device 3 may include but is not limited to a processor 301 and a memory 302. Those skilled in the art will understand that Figure 3It is only an example of electronic device 3 and does not constitute a limitation of electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0073] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0074] The memory 302 can be an internal storage unit of the electronic device 3, such as a hard drive or memory of the electronic device 3. The memory 302 can also be an external storage device of the electronic device 3, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the electronic device 3. Furthermore, the memory 302 can include both an internal storage unit of the electronic device 3 and an external storage device. The memory 302 is used to store computer programs and other programs and data required by the electronic device. The memory 302 can also be used to temporarily store data that has been output or is about to be output.
[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0076] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0077] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0078] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of modules or units is merely a logical function division. In actual implementation, there may be other division methods. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0079] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0080] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0081] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program can include computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0082] Thus far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present invention.
Claims
1. A water leakage detection method, applied to drinking water equipment, characterized in that: The method comprises: receiving a valve opening instruction, wherein the valve opening instruction is used to instruct to open a first solenoid valve of the drinking water device; In response to the valve opening instruction, detecting the closing operation of the first solenoid valve and recording the number of closing times of the first solenoid valve, wherein the closing operation refers to the operation of the first solenoid valve opening to replenish water until the water is full and then closing; Detecting the opening operation of the second solenoid valve of the drinking water device and recording the number of times the second solenoid valve is opened, wherein the opening operation refers to the operation of the second solenoid valve opening to discharge water; Whether the drinking water device is leaking is determined based on the number of times the first solenoid valve is closed and the number of times the second solenoid valve is opened.
2. The method according to claim 1, characterized in that The receiving of the valve opening instruction includes: When it is detected that the water level in the water tank of the drinking water equipment is lower than a preset water level threshold, the first solenoid valve is opened to replenish water in the water tank.
3. The detection method according to claim 2, characterized in that The detecting the closing operation of the first solenoid valve in response to the valve opening instruction and recording the number of closing times of the first solenoid valve includes: After the first solenoid valve is opened, the closing operation of the first solenoid valve is detected by using a water level detection device provided in the water tank; When a closing operation of the first solenoid valve is detected, the number of closing times of the first solenoid valve is recorded.
4. The detection method according to claim 3, characterized in that The detecting the opening operation of the second solenoid valve of the drinking water equipment and recording the number of times the second solenoid valve is opened includes: after closing the first solenoid valve, clearing the number of times the second solenoid valve is opened; The opening operation of the second solenoid valve is re-detected using the water level detection device, and the number of times the second solenoid valve is opened is recorded.
5. The detection method according to claim 4, characterized in that The determining whether the drinking water device is leaking based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve includes: In a case where the closing number of the first solenoid valve is 1, when it is detected that the water level in the water tank is lower than the preset water level threshold, obtaining the opening number of the second solenoid valve; If the number of times the second solenoid valve is opened is greater than or equal to 1, it is determined that the drinking water device is not leaking; If the second solenoid valve is opened 0 times, it is determined that the drinking water device is leaking, and an alarm is issued.
6. The detection method according to claim 4, characterized in that The determining whether the drinking water device is leaking based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve includes: In the case that the number of closing times of the first solenoid valve is greater than or equal to 2, when the number of opening times of the second solenoid valve changes from 1 to 0, it is determined that the drinking water equipment is not leaking, and no alarm reminder is issued.
7. The method according to claim 3, characterized in that The method further comprises: When no closing operation of the first solenoid valve is detected, the number of closing times of the first solenoid valve is recorded as 0; Wherein, determining whether the drinking water device is leaking based on the number of closing times of the first solenoid valve and the number of opening times of the second solenoid valve includes: When the number of closing times of the first solenoid valve is 0, when it is detected that the water level in the water tank is lower than the preset water level threshold, it is determined that the drinking water equipment is leaking, the first solenoid valve is closed, and an alarm is issued.
8. The method according to any one of claims 1 to 7, characterized in that The first solenoid valve is a water inlet solenoid valve, and the second solenoid valve is a water outlet solenoid valve.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Unmanned water leakage detection method and device thereof
CN111043529A