Control method and device of water purification equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGBO FOTILE KITCHEN WARE CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-06-12
AI Technical Summary
而相关技术中带有水箱的净水设备,通常通过水箱进水阀和水位传感器配合控制水箱进行补水,而水箱进水阀存在进水风险,例如水箱进水阀因阀体内杂质等原因关闭不严
[0027] This application provides a control method and apparatus for a water purification device. The water purification device includes a water tank, an inlet pipe connected to the water tank, and an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the water flow direction. The method includes: when the standby time of the water purification device exceeds a preset standby time, opening the inlet valve and controlling the water tank inlet valve to be in a closed state; acquiring the real-time water level in the water tank; comparing the real-time water level with a first water level threshold within a first time threshold to obtain a water level comparison result; determining the leakage detection result of the water tank inlet valve based on the water level comparison result; when the leakage detection result indicates abnormal leakage of the water tank inlet valve, acquiring a leakage handling strategy and controlling the water purification device to execute the leakage handling strategy. Thus, in this embodiment, by opening the inlet valve while the water purifier is in standby mode, tap water enters the water system of the water purifier. The inlet valve is monitored based on changes in the water level in the tank to determine if there is any abnormal leakage. If leakage is detected, a preset leakage handling strategy is retrieved and actively executed. This allows the water purifier to proactively identify and handle abnormal leaks, resolving issues such as machine overflow and cabinet flooding caused by leaking inlet valves, thereby improving the safety of the water purifier.
Smart Images

Figure CN122187167A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water purification equipment control technology, specifically to a control method and device for water purification equipment. Background Technology
[0002] Water purification equipment, as a key technological tool for advanced water treatment and safe water supply, provides a stable and compliant basic water supply guarantee for various production and daily life processes. Water purification equipment with a water tank typically uses a water inlet valve and a water level sensor to control the tank's water replenishment. However, the water inlet valve is susceptible to leakage, such as from impurities within the valve body causing it to malfunction and fail to close properly. Current technology uses an electric inlet valve to shut off leakage, but this does not fundamentally identify and solve the problem of water inlet valve leakage. When a user uses water, the electric inlet valve opens. If the water inlet valve leaks at this time, the tank will overflow, causing water damage to the user's cabinet and resulting in property loss. Summary of the Invention
[0003] This application provides a control method and device for a water purification equipment, which can detect whether there is a leak in the water tank inlet valve and actively handle the leak to prevent the water tank from overflowing.
[0004] On one hand, embodiments of this application provide a control method for a water purification device, the water purification device including a water tank, an inlet pipe communicating with the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the direction of water flow, the method including: When the standby time of the water purification device exceeds the preset standby time, the water inlet valve is opened, and the water tank inlet valve is controlled to be in the closed state. Obtain the real-time water level in the water tank; Within a first time threshold, the real-time water level height is compared with the first water level threshold to obtain a water level comparison result; Based on the water level comparison results, the leakage detection result of the water tank inlet valve is determined; When the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the water purification equipment is controlled to execute the leakage handling strategy.
[0005] Furthermore, when the leakage detection result indicates abnormal leakage from the water tank inlet valve, obtaining a leakage handling strategy and controlling the water purification equipment to execute the leakage handling strategy includes: When the leakage detection result indicates that the water tank inlet valve is leaking abnormally, the real-time water inlet duration corresponding to the real-time water level is obtained, and the leakage degree prediction processing is performed based on the real-time water inlet duration to obtain the leakage degree prediction result. Obtain the target treatment strategy corresponding to the predicted leakage level, use the target treatment strategy as the leakage treatment strategy, and control the water purification device to execute the leakage treatment strategy.
[0006] Further, determining the leakage detection result of the water tank inlet valve based on the water level comparison result includes: Within the first time threshold, if the real-time water level is greater than or equal to the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve.
[0007] Furthermore, the leakage degree prediction processing based on the real-time water inflow duration to obtain the leakage degree prediction result includes: When the leakage detection result indicates abnormal leakage from the water tank inlet valve, a second duration threshold is obtained; the second duration threshold is less than the first duration threshold. The real-time water inflow duration is compared with the second duration threshold. If the real-time water inflow duration is less than the second duration threshold, the leakage degree prediction result is determined as the first leakage degree. If the real-time water inflow duration is greater than the second duration threshold and less than the first duration threshold, the predicted leakage degree is determined as the second leakage degree; the second leakage degree is less than the first leakage degree.
[0008] Furthermore, a water tank drain pump is installed on the water tank. The step of acquiring the target treatment strategy corresponding to the predicted leakage level, using the target treatment strategy as the leakage treatment strategy, and controlling the water purification equipment to execute the leakage treatment strategy includes: If the predicted leakage level is the first leakage level, a target treatment strategy corresponding to the first leakage level is obtained, a first treatment strategy is obtained, and the first treatment strategy is used as the leakage treatment strategy to control the water purification device to execute the first treatment strategy. If the predicted leakage level is the second leakage level, a target treatment strategy corresponding to the second leakage level is obtained, a second treatment strategy is obtained, and the second treatment strategy is used as the leakage treatment strategy to control the water purification equipment to execute the second treatment strategy.
[0009] Further, controlling the water purification device to execute the first processing strategy includes: The water tank drainage pump is activated to drain the water tank until the current water level in the tank is lower than a second water level threshold; the second water level threshold is lower than the first water level threshold. The valve of the water inlet tank is controlled to open and close a first preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is less than or equal to the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0010] Further, controlling the water purification device to execute the second treatment strategy includes: The water tank drainage pump is turned on to drain the water tank until the current water level in the water tank is lower than the second water level threshold. The valve of the water inlet tank is controlled to open and close a second preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold; the second water level threshold is less than the first water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0011] Furthermore, the method also includes: When the process of repeatedly obtaining the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the number of times the water purification equipment executes the leakage handling strategy exceeds a third preset number, if the leakage detection result is greater than the second leakage level, the process stops, the inlet valve is closed, and the water tank drain pump is opened to drain the water from the water tank. The water purification equipment is controlled to enter a fault lockout state.
[0012] Further, determining the leakage detection result of the water tank inlet valve based on the water level comparison result includes: When the real-time water inlet duration is equal to the first duration threshold, and the water level comparison result indicates that the real-time water level is lower than the water level threshold, the leakage detection result is determined to indicate that the water tank inlet valve is in normal condition. The method further includes: When the leakage detection result indicates that the water tank inlet valve is in normal condition, the inlet valve is controlled to close.
[0013] Furthermore, the method also includes: When the water purification equipment is in a water replenishment state or in a water usage state, it controls the water tank inlet valve and the water inlet valve to open, and continuously obtains the real-time water level in the water tank; When the real-time water level reaches the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve; If the leak detection results indicate that the water tank inlet valve is leaking abnormally, turn on the water tank drain pump. The real-time water level in the water tank is reproduced to obtain a new real-time water level, and timing is performed. When the new real-time water level is lower than the first water level threshold and the real-time timing time is less than the first preset duration, the leakage degree prediction result is determined as the second leakage degree, and the water tank drain pump is turned off after the second preset duration. When the real-time timing time is greater than the first preset duration and the new real-time water level is greater than or equal to the first water level threshold, the leakage degree prediction result is determined as the first leakage degree, the water tank inlet valve and the water inlet valve are closed, and the water purification equipment is controlled to enter the fault lockout state after the water in the water tank is discharged.
[0014] On the other hand, this application embodiment also provides a control device for a water purification device, the water purification device including a water tank, an inlet pipe communicating with the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the water flow direction, the device including: The first control module is used to open the water inlet valve and control the water tank inlet valve to be in a closed state when the standby time of the water purification device exceeds the preset standby time. The acquisition module is used to acquire the real-time water level height in the water tank; The comparison module is used to compare the real-time water level height with the first water level threshold within a first time duration threshold to obtain a water level comparison result. A leakage detection module is used to determine the leakage detection result of the water tank inlet valve based on the water level comparison result; The second control module is used to obtain a leakage handling strategy and control the water purification equipment to execute the leakage handling strategy when the leakage detection result indicates that the water tank inlet valve is leaking abnormally.
[0015] Furthermore, the comparison module is also used for: Within the first time threshold, if the real-time water level is greater than or equal to the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve.
[0016] Furthermore, the second control module also includes: The leakage degree prediction unit is used to obtain the real-time water inlet duration corresponding to the real-time water level height when the leakage detection result indicates that the water tank inlet valve is leaking abnormally, and to perform leakage degree prediction processing based on the real-time water inlet duration to obtain the leakage degree prediction result. The processing module is used to obtain the target processing strategy corresponding to the leakage degree prediction result, use the target processing strategy as the leakage processing strategy, and control the water purification device to execute the leakage processing strategy.
[0017] Furthermore, the leakage degree prediction unit includes: The duration threshold acquisition unit is used to acquire a second duration threshold when the leakage detection result indicates abnormal leakage of the water tank inlet valve; the second duration threshold is less than the first duration threshold; The duration threshold comparison unit is used to compare the real-time water inflow duration with the second duration threshold. If the real-time water inflow duration is less than the second duration threshold, the leakage degree prediction result is determined as the first leakage degree. The leakage degree determination unit is used to determine the leakage degree prediction result as a second leakage degree if the real-time water inflow duration is greater than the second duration threshold and less than the first duration threshold; the second leakage degree is less than the first leakage degree.
[0018] Furthermore, the second control module is also used for: If the predicted leakage level is the first leakage level, a target treatment strategy corresponding to the first leakage level is obtained, a first treatment strategy is obtained, and the first treatment strategy is used as the leakage treatment strategy to control the water purification device to execute the first treatment strategy. If the predicted leakage level is the second leakage level, a target treatment strategy corresponding to the second leakage level is obtained, a second treatment strategy is obtained, and the second treatment strategy is used as the leakage treatment strategy to control the water purification equipment to execute the second treatment strategy.
[0019] Furthermore, the second control module includes a first processing strategy module execution unit, which is configured to: The water tank drainage pump is activated to drain the water tank until the current water level in the tank is lower than a second water level threshold; the second water level threshold is lower than the first water level threshold. The valve of the water inlet tank is controlled to open and close a first preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is less than or equal to the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0020] Furthermore, the second control module includes a second processing strategy module execution unit, which is used to: control the water tank drainage pump to start to drain the water tank until the current water level in the water tank is lower than the second water level threshold. The valve of the water inlet tank is controlled to open and close a second preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold; the second water level threshold is less than the first water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0021] Furthermore, the second control module also includes a fault lockout module, used for: When the process of repeatedly obtaining the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the number of times the water purification equipment executes the leakage handling strategy exceeds a third preset number, if the leakage detection result is greater than the second leakage level, the process stops, the inlet valve is closed, and the water tank drain pump is opened to drain the water from the water tank. The water purification equipment is controlled to enter a fault lockout state.
[0022] Furthermore, the leakage detection module is also used to: determine the leakage detection result as the water tank inlet valve being in normal condition when the real-time water inlet duration is equal to the first duration threshold and the water level comparison result indicates that the real-time water level is lower than the water level threshold. It is also used to control the inlet valve to close when the leakage detection result indicates that the water tank inlet valve is in normal condition.
[0023] Furthermore, the device also includes a leakage detection and handling module in non-standby mode, used for: When the water purification equipment is in a water replenishment state or in a water usage state, it controls the water tank inlet valve and the water inlet valve to open, and continuously obtains the real-time water level in the water tank; When the real-time water level reaches the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve; If the leak detection results indicate that the water tank inlet valve is leaking abnormally, turn on the water tank drain pump. The real-time water level in the water tank is reproduced to obtain a new real-time water level, and timing is performed. When the new real-time water level is lower than the first water level threshold and the real-time timing time is less than the first preset duration, the leakage degree prediction result is determined as the second leakage degree, and the water tank drain pump is turned off after the second preset duration. When the real-time timing time is greater than the first preset duration and the new real-time water level is greater than or equal to the first water level threshold, the leakage degree prediction result is determined as the first leakage degree, the water tank inlet valve and the water inlet valve are closed, and the water purification equipment is controlled to enter the fault lockout state after the water in the water tank is discharged.
[0024] On the other hand, embodiments of this application also provide an electronic device, which includes a processor and a memory. The memory stores at least one instruction or at least one program. The processor loads and executes the at least one instruction or at least one program to implement the control method of the water purification device as described above.
[0025] On the other hand, embodiments of this application also provide a computer-readable storage medium storing at least one instruction or at least one program, wherein the at least one instruction or at least one program is loaded and executed by a processor to implement the control method of the water purification device as described above.
[0026] On the other hand, this application also provides a computer program product, which, when executed by a processor, implements the control method for the water purification device as described above.
[0027] This application provides a control method and apparatus for a water purification device. The water purification device includes a water tank, an inlet pipe connected to the water tank, and an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the water flow direction. The method includes: when the standby time of the water purification device exceeds a preset standby time, opening the inlet valve and controlling the water tank inlet valve to be in a closed state; acquiring the real-time water level in the water tank; comparing the real-time water level with a first water level threshold within a first time threshold to obtain a water level comparison result; determining the leakage detection result of the water tank inlet valve based on the water level comparison result; when the leakage detection result indicates abnormal leakage of the water tank inlet valve, acquiring a leakage handling strategy and controlling the water purification device to execute the leakage handling strategy. Thus, in this embodiment, by opening the inlet valve while the water purifier is in standby mode, tap water enters the water system of the water purifier. The inlet valve is monitored based on changes in the water level in the tank to determine if there is any abnormal leakage. If leakage is detected, a preset leakage handling strategy is retrieved and actively executed. This allows the water purifier to proactively identify and handle abnormal leaks, resolving issues such as machine overflow and cabinet flooding caused by leaking inlet valves, thereby improving the safety of the water purifier. Attached Figure Description
[0028] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a water circuit diagram of a water purification device provided in an embodiment of this application.
[0030] Figure 2 This is a schematic flowchart of a control method for a water purification device provided in an embodiment of this application.
[0031] Figure 3This is a flowchart illustrating another control method for a water purification device provided in an embodiment of this application.
[0032] Figure 4 This is a structural block diagram of a control device for a water purification equipment provided in an embodiment of this application.
[0033] Figure 5 This is a hardware structure block diagram of a server for a water purification equipment control method provided in an embodiment of this application. Detailed Implementation
[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein. Thus, features defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments, unless otherwise stated, "a plurality of" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0036] The following describes a water purification device provided in an embodiment of this application, such as... Figure 1 As shown, Figure 1This is a water system diagram of a water purification device provided in this application embodiment. The water purification device described in this application embodiment is a water purification device with a water tank or a device with water purification and water storage functions, including but not limited to household / commercial water purifiers, vertical / tabletop instant hot water purifiers, reverse osmosis pure water machines, ultrafiltration water purification devices, central water purification units, water softeners, laboratory pure water machines, medical dialysis water equipment, industrial EDI ultrapure water systems, marine pressure-stabilized water purification devices, RV integrated water purification and storage units, emergency mobile water purification vehicles, campus / office building direct drinking water terminals, automatic water vending machines, pre-filter modules for coffee machines / ice makers, agricultural drip irrigation filtration and storage devices, and municipal pipeline terminal pressurized water purification tank groups, etc.
[0037] Specifically, according to the direction of water flow, the water system of the water purification equipment includes at least an inlet valve, a water tank inlet valve, and a water tank, all connected sequentially by pipes. The water tank is connected to the outlet via pipes. The inlet valve and the water tank inlet valve are sequentially installed on the inlet pipe connected to the water tank along the direction of water flow. The water tank also contains at least two water level sensors, which can be a first water level sensor and a second water level sensor. When only two water level sensors are included, the second water level sensor can be set as a high water level sensor and installed inside the water tank, while the first water level sensor can be set as an overflow water level sensor or an overflow probe. In this case, the installation height and corresponding test water level height of the second water level sensor are lower than those of the first water level sensor. When the first water level sensor is set as an overflow water level sensor, it is installed inside the water tank; when the first water level sensor is set as an overflow probe, the overflow probe is inserted into the water tank from the top.
[0038] Furthermore, the inlet pipe between the electric inlet valve and the water tank inlet valve is sequentially equipped with a pre-filter, a booster pump, a membrane chromatograph, a post-filter, and a first ultraviolet sterilizer. The membrane chromatograph selectively identifies and efficiently retains specific target pollutants in the water (such as heavy metal ions, small organic molecules, trace pathogens, etc.) while allowing water molecules and beneficial minerals (non-target components) to permeate, thereby optimizing the effluent quality while ensuring water safety. Optionally, the membrane chromatograph can be replaced with other structures or components, as long as it has the function of "targeted separation based on selective recognition," such as functionalized ion exchange resins, modified activated carbon / carbon-based adsorbents, nanofiltration (NF), etc. The ultraviolet sterilizer is used to disinfect and sterilize the water in the pipe.
[0039] In practical applications, the water system also includes an outlet pipe, which may include a first outlet pipe and a second outlet pipe. The first outlet pipe connects directly from the first ultraviolet sterilizer to the outlet and is used to deliver room temperature water. The first outlet pipe is equipped with an outlet valve. The second outlet pipe connects from the bottom of the water tank to the outlet, and a water pump, a first temperature sensor, a heating element, and a second temperature sensor are sequentially arranged along the water flow direction on the second outlet pipe. The water from the second outlet pipe, through the cooperation of the first temperature sensor, the heating element, and the second temperature sensor, can heat the room temperature water to the target temperature before delivering it to the outlet. Optionally, the second outlet pipe is also equipped with an outlet valve.
[0040] Optionally, the bottom of the water tank is also equipped with a wastewater pipe that connects to the sewer, and a drain pump is installed on the wastewater pipe.
[0041] Optionally, the wastewater outlet of the membrane chromatography is connected to the sewer, and a wastewater valve is installed between the wastewater outlet and the sewer.
[0042] It should be noted that, Figure 1 The arrows in the diagram indicate the direction of water flow. Figure 1 The structure shown is merely an example, and the control method for the water purification equipment provided in this application embodiment is applicable to any equipment with water purification function and a water tank.
[0043] In related technologies, during normal operation, when the equipment enters the water usage state, the controller opens the inlet electric valve, allowing tap water to flow into the water tank. When the water level reaches the set height (generally corresponding to the detection height of the second water level sensor), the water tank inlet valve (mostly a float valve or diaphragm valve) automatically closes under buoyancy / water pressure, stopping the water intake. The two functions are clearly defined: the electric valve controls the "on / off" flow, and the water tank inlet valve controls the "water level."
[0044] When the water tank inlet valve fails to close properly due to blockages, aging seals, or spring failure, tap water will continue to leak in even when the tank is full. At this time, the equipment is in use, and the inlet electric valve remains open, meaning the water supply is always unobstructed, causing the leakage to accumulate. In most household / commercial equipment, the inlet electric valve is only controlled by the equipment's operating signal or water demand, not directly by the tank's water level. Its design is for "on-demand water supply," not "water level protection." Therefore, as long as the equipment is running or detects water demand, the electric valve will remain open, failing to recognize the abnormal state of "leaking even when the tank is full." The overall logic is: continuous water intake → water level exceeds the tank's maximum design capacity → water overflows from the top of the tank, the inspection port, or the reserved overflow hole → flows into the cabinet along the bottom gaps of the equipment → the cabinet panels absorb water and expand, electrical components short-circuit, and the floor becomes soaked, causing property damage. However, when the water demand signal disappears, the inlet valve can be closed directly, preventing overflow.
[0045] The following describes a control method for a water purification device provided in the embodiments of this application, which is applicable to the detection of water leakage and the handling of water leakage faults in the water tank inlet valve of the water purification device. Figure 2 This is a flowchart illustrating a control method for a water purification device according to an embodiment of this application. This specification provides the operational steps of the method described in the embodiments or flowchart, but based on conventional or non-inventive labor, more or fewer operational steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Figure 1 As shown, the water purification equipment includes a water tank, an inlet pipe connected to the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the direction of water flow. Figure 2 As shown, the method includes: S1: When the standby time of the water purification device exceeds the preset standby time, the water inlet valve is opened, and the water tank inlet valve is controlled to be in the closed state.
[0046] In this embodiment, the control method for the water purification device is executed when the device is in standby mode, specifically, leakage detection and leakage fault handling are performed while the device is in standby mode. Specifically, when the standby time exceeds a preset standby time, the inlet valve is opened, while the water tank inlet valve remains closed. Thus, if there is no leakage in the water tank inlet valve, water in the inlet pipe cannot flow into the water tank. It should be noted that in normal standby mode, both the inlet valve and the water tank inlet valve are closed.
[0047] Optionally, the preset standby time can be determined according to the specific type of water purification equipment and the application scenario. For example, the preset standby time for household water purification equipment can be set to 20-60 minutes, preferably 40 minutes.
[0048] Optionally, the execution time period for this step can also be set. For example, for commercial or industrial water purification equipment, to ensure normal production or use, the execution time for this step can be set to non-use time. That is, before step S1, the method further includes: determining whether the current time is within the preset leak detection time period corresponding to the water purification equipment; if the current time is within the preset leak detection time period, step S1 is executed. The preset leak detection time period can be set by the user.
[0049] S2: Obtain the real-time water level in the water tank.
[0050] In this embodiment, the water level in the tank is maintained at a fixed height before the inlet valve is opened. If there is a leak in the inlet valve, the water level in the tank will rise after the inlet valve is opened. At this time, the real-time water level in the tank is continuously monitored.
[0051] It should be noted that, to reduce costs, this embodiment does not include additional water level sensors in the water tank. Instead, consistent with related technologies, only a first water level sensor and a second water level sensor are used. The installation height of the second water level sensor is lower than that of the first water level sensor. Under normal conditions, the water level in the tank is at the test height corresponding to the second water level sensor. Therefore, when the real-time water level does not reach the water level corresponding to the first water level sensor, the obtained real-time water level is the test height corresponding to the second water level sensor. The real-time water level is not a dynamically changing value.
[0052] S3: Within the first time threshold, the real-time water level height is compared with the first water level threshold to obtain the water level comparison result.
[0053] In this embodiment, the first water level threshold represents a preset maximum water level threshold. When the real-time water level exceeds the first water level threshold, it indicates that the water tank is about to overflow. This means the first water level threshold is monitored by a first water level sensor, and the water purification device is in normal operation; regardless of its working state, the water level in the tank is always below the first water level threshold. Therefore, the real-time water level is compared with the first water level threshold to obtain a water level comparison result. This result indicates whether tap water has entered the water tank through the inlet valve, i.e., whether there is a leak in the inlet valve.
[0054] Furthermore, in order to reduce water waste, a first duration threshold is set to limit the opening time of the inlet valve. The longest opening time of the inlet valve is the first duration threshold. By comparing the real-time water inlet time with the first duration threshold, it can be determined whether the real-time water level reaches the first water level threshold within the first duration threshold.
[0055] S4: Based on the water level comparison results, determine the leakage detection result of the water tank inlet valve.
[0056] In this embodiment, based on the water level comparison result, it can be determined whether the real-time water level height reaches the first water level threshold within the first time threshold, thereby determining the leakage detection result of the water tank inlet valve. The leakage detection result includes abnormal leakage of the water tank inlet valve and normal operation of the water tank inlet valve.
[0057] S5: When the leakage detection result indicates that the water tank inlet valve is leaking abnormally, obtain the leakage handling strategy and control the water purification equipment to execute the leakage handling strategy.
[0058] In this embodiment, when the leak detection result indicates abnormal leakage from the water tank inlet valve, the preset leak handling strategy in the control system of the water purification equipment is immediately obtained. This leak handling strategy includes specific handling measures for abnormal leakage from the water tank inlet valve, specifically including, but not limited to, cleaning or treating the water tank inlet valve, and controlling the water purification equipment to shut down. Then, the water purification system is controlled to execute the leak handling strategy, enabling proactive handling of the leak.
[0059] Optionally, when performing the above steps S1-S5, the water purification equipment receives the user's water usage request and, regardless of which step S1-S5 is being performed, controls the water tank inlet valve to open normally and immediately stops performing the leak detection.
[0060] It should be noted that the above steps S2-S5 are continuous. That is, in the standby state and with the water inlet valve open, the water purifier enters the leakage detection logic. As long as S2-S4 continues within the first time threshold, the leakage detection result is continuously determined. If the leakage detection result indicates that the water tank inlet valve is normal after the first time threshold is reached, the water inlet valve is closed and the leakage detection logic is exited. If the leakage detection result is that the water tank inlet valve is leaking abnormally at any time before the first time threshold is reached, step S5 is entered.
[0061] Thus, in this embodiment, by opening the inlet valve while the water purifier is in standby mode, tap water enters the water system of the water purifier. The inlet valve is monitored based on changes in the water level in the tank to determine if there is any abnormal leakage. If leakage is detected, a preset leakage handling strategy is retrieved and actively executed. This allows the water purifier to proactively identify and handle abnormal leaks, resolving issues such as machine overflow and cabinet flooding caused by leaking inlet valves, thereby improving the safety of the water purifier.
[0062] In an optional implementation, determining the leakage detection result of the water tank inlet valve based on the water level comparison result includes: When the real-time water inlet duration is less than the first duration threshold and the real-time water level is greater than or equal to the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve.
[0063] In this embodiment of the application, when the water level in the water tank is greater than or equal to the first water level threshold within the first time threshold, that is, when the real-time water inlet time is less than the first time threshold and the real-time water level height is greater than or equal to the first water level threshold, the leakage detection result is determined to be abnormal leakage of the water tank inlet valve.
[0064] Optionally, the first duration threshold can be set based on the inlet flow rate after the inlet valve is opened, the height difference between the first and second water level sensors, and so on. In other words, it can be determined based on the volume of water that can be contained between the first and second water level sensors. The first duration threshold will differ depending on the volume of water that can be contained between the first and second water level sensors and the inlet flow rate. For example, with both the inlet valve and the water tank inlet valve fully open, the flow rate is the first flow rate. Assuming no drainage, the time required for the real-time water level to rise from the second water level threshold corresponding to the second water level sensor to the first water level threshold corresponding to the first water level sensor is the first time. Therefore, the first duration threshold can be set to a preset multiple of the first time. It should be noted that the water levels corresponding to the first and second water level sensors are usually quite small, for example, in household water purifiers, between 50 and 100 mm. Therefore, under normal circumstances, the time it takes for the water level to rise from the second water level threshold to the first water level threshold is extremely short, possibly only a few seconds. However, the preset multiplier setting needs to determine the allowable leakage amount (relative to the full-open flow rate), that is, what level of leakage is allowed in the water purification equipment without actually affecting the water level during normal use.
[0065] Optionally, the first duration threshold can be determined based on the following time: 1. Assuming the water tank volume between the second water level threshold and the first water level threshold is V, and the water inflow rate during normal water use is Q1, then the time required to fill V normally is t = Q1 / V.
[0066] 2. When the water tank inlet valve leaks, the overflow time t 溢水 Depending solely on the leakage flow rate Q2 (at which point the inlet valve is fully open), the inlet water flow rate is approximately Q2: t 溢水 =V / Q2=t*Q1 / Q2; The control method provided in this application embodiment can preset the leakage flow rate Q corresponding to different degrees of leakage in the system. 2, Alternatively, the leakage flow range corresponding to different leakage levels can be used to calculate the overflow time corresponding to different leakage flows according to the above formula. Then, the time threshold corresponding to different leakage levels is set, and the maximum time threshold among all time thresholds is taken as the first time threshold mentioned above.
[0067] For example, to simplify the control logic of a household water purifier, only a first leakage level and a second leakage level need to be set. The second leakage level is less than the first leakage level. Here, the first leakage level is defined as a "large leak," which will affect the normal use of the water purifier, while the second leakage level is a "micro leak," which will not affect the normal use of the device. Assuming the leakage flow rate corresponding to the second leakage level is 0.5-2 L / min, we can substitute 0.5-2 L / min into the above formula to obtain the time threshold range corresponding to the second leakage level, let's say 5-10 minutes. If, during the leakage detection process, the real-time water level does not reach the first water level threshold within 10 minutes or more, it is considered that there is no leakage in the water tank inlet valve. Therefore, the first time threshold can be set to 10 minutes.
[0068] It should be noted that any leakage flow will inevitably lead to overflow, the difference being the duration. However, assuming it's a household water purifier, it won't continuously draw water for a long time under normal circumstances; it will typically draw water for short periods, such as 0.8-1L per minute. As long as the water level doesn't reach the first water level threshold within 1 minute, normal use is not affected. Therefore, the significance of setting a first time threshold is to ensure that the water tank does not overflow during normal water use. Thus, the first time threshold is usually greater than or equal to the historical water usage duration, which is either the maximum cumulative duration of a single use of the water purifier (historical maximum water usage duration) or the average cumulative duration of a single use (historical average water usage duration). It should be noted that if the water purifier can be used continuously without a standby state, this method cannot be used for control; in this case, steps S001-S006 are used for leak detection and control. Furthermore, steps S1-S6 provided in this application embodiment are applicable to devices with typically short single water usage durations and low flow rates. If devices with longer single water usage durations were to execute S1-S6, it would result in water waste and affect normal use. Optionally, the water purification equipment control method provided in this application embodiment is applicable to water purification equipment with a historical maximum water usage duration of less than or equal to 10-30 minutes, or a historical average water usage duration of less than or equal to 10-30 minutes.
[0069] Therefore, assuming the historical water usage duration is 5 minutes, 5 minutes can be set as the first duration threshold.
[0070] In an optional implementation, step S5 above, when the leakage detection result indicates abnormal leakage from the water tank inlet valve, obtaining a leakage handling strategy and controlling the water purification equipment to execute the leakage handling strategy, includes: S51: When the leakage detection result indicates that the water tank inlet valve is leaking abnormally, the real-time water inlet duration corresponding to the real-time water level height is obtained, and the leakage degree prediction processing is performed based on the real-time water inlet duration to obtain the leakage degree prediction result. S53: Obtain the target treatment strategy corresponding to the leakage degree prediction result, use the target treatment strategy as the leakage treatment strategy, and control the water purification equipment to execute the leakage treatment strategy.
[0071] In this embodiment, when the leak detection result indicates abnormal leakage from the water tank inlet valve, it is necessary to determine the level of leakage abnormality. Specifically, obtaining the real-time water inlet duration corresponding to the real-time water level height can determine the rate of change of the water level height. The real-time water inlet duration is timed from the moment the inlet valve opens to 0.
[0072] Then, based on the real-time water inflow time when the real-time water level reaches the first water level threshold, the degree of leakage can be classified, i.e., leakage degree prediction processing, thus obtaining the leakage degree prediction result. In other words, the leakage degree prediction result can also be understood as the classification result of leakage rate or leakage severity, and leakage can be divided into different levels.
[0073] In step S53 above, different leakage degree prediction results correspond to different target treatment strategies. Different preset treatment strategies are preset in the water purification equipment according to different leakage degree prediction results. When it is determined that the water tank inlet valve is leaking abnormally, the treatment strategy corresponding to the leakage degree prediction result is directly obtained, and then the water purification equipment is controlled to execute the treatment strategy.
[0074] Optionally, the control system of the water purification equipment is equipped with a preset leakage handling strategy library. The preset leakage handling strategy library is a correspondence between preset leakage degree prediction results and preset leakage handling strategies. In this way, when the preset leakage degree result is obtained, the leakage degree prediction result can be matched based on the preset leakage handling strategy library to obtain the target handling strategy corresponding to the leakage degree prediction result.
[0075] In an optional implementation, step S51 above, the process of predicting the degree of leakage based on the real-time water inflow duration to obtain the leakage degree prediction result, includes: S511: When the leakage detection result indicates abnormal leakage of the water tank inlet valve, a second duration threshold is obtained; the second duration threshold is less than the first duration threshold; S513: Compare the real-time water inflow duration with the second duration threshold. If the real-time water inflow duration is less than the second duration threshold, determine the leakage degree prediction result as the first leakage degree. S515: If the real-time water inflow duration is greater than the second duration threshold and less than the first duration threshold, the leakage degree prediction result is determined as the second leakage degree; the second leakage degree is less than the first leakage degree.
[0076] In this embodiment, to predict the degree of leakage, at least a second duration threshold is preset in the control logic. The second duration threshold is less than the first duration threshold, meaning the second duration threshold is reached first, followed by the first duration threshold. Specifically, during the opening of the inlet valve, in step S3 above, if the real-time inlet time for the real-time water level to reach the first water level threshold is less than or equal to the second duration threshold, the predicted leakage degree is determined as the first leakage degree. If the real-time inlet time is between the first and second duration thresholds, the predicted leakage degree is determined as the second leakage degree. The second leakage degree is less than the first leakage degree, meaning the leakage degree corresponding to the second leakage degree is lower, and it takes longer to reach the first water level threshold.
[0077] Optionally, to further categorize the leak prediction results into more levels, a third time threshold, a fourth time threshold, etc., can be set, where the fourth time threshold < the third time threshold < the second time threshold. During leak detection, when the real-time water level reaches the first water level threshold, it can be compared sequentially with the fourth, third, second, and first time thresholds to determine the corresponding leak prediction result based on the time range of the real-time water inflow. The above is just an example; more time thresholds and corresponding leak prediction results can be included. It should be noted that when the leak prediction result for the water tank inlet valve is the second level, the leakage is relatively small and will typically not cause the water tank to overflow during normal use.
[0078] In summary, the first duration threshold corresponds to the minimum overflow time for a leakage degree with a lower leakage flow rate, and the second duration threshold corresponds to the maximum overflow time for a leakage degree with a higher leakage flow rate. If more leakage degrees are included, the same principle applies, which will not be elaborated here.
[0079] Optionally, the method for determining the second duration threshold is similar to that for determining the first duration threshold. Using a household water purifier with both a first and second leakage level setting as an example, the second leakage level is less than the first. Here, the first leakage level is defined as a "large leak," which will affect the normal operation of the water purifier, while the second leakage level is a "micro-leak," which will not affect the normal operation of the device. Assuming the leakage flow rate corresponding to the first leakage level is greater than 2L / min, 2L / min can be substituted into the above formula to obtain the duration threshold range corresponding to the first leakage level, assumed to be less than or equal to 5 minutes. If, during the leakage detection process, the real-time water level reaches the first water level threshold within 5 minutes, it is considered that there is a leak in the water tank inlet valve. Therefore, the second duration threshold can be set to 5 minutes.
[0080] Thus, this embodiment of the application uses the time range of the real-time water inlet time required for the water level in the water tank to reach the first water level threshold to correspond to different leakage degree prediction results, thereby realizing the classification of leakage degree of the water tank inlet valve, laying the foundation for adopting graded handling strategies for different levels of faults.
[0081] In an optional implementation, in step S53 above, a water tank drain pump is provided on the water tank. The step of obtaining a target treatment strategy corresponding to the leakage degree prediction result, using the target treatment strategy as the leakage treatment strategy, and controlling the water purification device to execute the leakage treatment strategy includes: when the leakage degree prediction result is the first leakage degree, obtaining a target treatment strategy corresponding to the first leakage degree to obtain a first treatment strategy, using the first treatment strategy as the leakage treatment strategy, and controlling the water purification device to execute the first treatment strategy.
[0082] In an optional embodiment, controlling the water purification device to execute the first treatment strategy includes: The water tank drainage pump is activated to drain the water tank until the current water level in the tank is lower than a second water level threshold; the second water level threshold is lower than the first water level threshold. The valve of the water inlet tank is controlled to open and close a first preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; The process of continuously acquiring the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve. In this case, a leakage handling strategy is acquired, and the water purification device is controlled to execute the leakage handling strategy until the leakage degree prediction result is less than or equal to the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, the water purification device is controlled to re-enter standby mode.
[0083] In this embodiment of the application, when the predicted leakage level is a first leakage level, the target control strategy corresponding to the first leakage level is determined as the first processing strategy, and the first processing strategy is used as the leakage treatment strategy. The water purification equipment is controlled to execute the first processing strategy, which includes the following steps: First, the water tank drain pump is turned on to drain the water from the tank, bringing the current water level below the second water level threshold. This removes excess water and prevents overflow. Then, pulse control is used to control the water tank inlet valve to perform a first preset number of on / off cycles, utilizing the water hammer effect to clean the inlet valve. The drain pump is then turned off, leaving the inlet valve open to replenish water to the tank until the current water level reaches the second water level threshold. The inlet and drain valves are then closed again, and the real-time water inflow duration is reset to zero, allowing for a restart of the timing and verification of the cleaning effect on the inlet valve. Specifically, the verification process repeats steps S2-S5. Verification stops when the predicted leakage level is less than or equal to the second leakage level, indicating the first treatment strategy is effective. The leakage detection logic then exits, and the water purification equipment re-enters standby mode.
[0084] In an optional implementation, in step S53 above, obtaining the target treatment strategy corresponding to the leakage degree prediction result, using the target treatment strategy as the leakage treatment strategy, and controlling the water purification device to execute the leakage treatment strategy includes: when the leakage degree prediction result is the second leakage degree, obtaining the target treatment strategy corresponding to the second leakage degree, obtaining a second treatment strategy, using the second treatment strategy as the leakage treatment strategy, and controlling the water purification device to execute the second treatment strategy.
[0085] In an optional implementation, controlling the water purification device to execute the second treatment strategy includes: The water tank drainage pump is turned on to drain the water tank until the current water level in the water tank is lower than the second water level threshold. The valve of the water inlet tank is controlled to open and close a second preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold; the second water level threshold is less than the first water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; The process of continuously acquiring the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve. In this case, a leakage handling strategy is acquired, and the water purification device is controlled to execute the leakage handling strategy until the leakage degree prediction result is the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, the water purification device is controlled to re-enter standby mode.
[0086] In this embodiment, when the predicted leakage level is a second leakage level, the corresponding target processing strategy is determined to be the second processing strategy, which is then used as the leakage handling strategy. The difference between the second and first processing strategies lies in the number of times the pulse-controlled water tank inlet valve is opened; in this case, it is a second preset number of times. Since the severity of the second leakage level is less than that of the first leakage level, the second preset number can be set to be less than the first preset number. All other steps are the same as the first processing strategy.
[0087] Optionally, the first preset quantity and the second preset quantity can be set independently according to the actual situation. For example, the first preset quantity can be 6-10 times, and the second preset quantity can be 1-3 times.
[0088] In an optional implementation, the method further includes: When the process of continuously acquiring the real-time water level in the water tank is repeated until the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is acquired, and the number of times the water purification device executes the leakage handling strategy exceeds a third preset number, if the leakage detection result is greater than the second leakage level, the process stops, the inlet valve is closed, and the water tank drain pump is turned on to drain the water from the water tank; the water purification device is then put into a fault lockout state.
[0089] In this embodiment, if the number of times steps S1-S5 are repeated exceeds a third preset number, that is, the third preset number of leakage detection and processing strategies are executed, it indicates that the system's preset processing strategy cannot solve the current water inlet valve leakage problem, so it will not be repeated. If the leakage degree detection result is still greater than the second leakage degree, it indicates that the leakage is more serious. At this time, the water inlet valve is closed, the water tank drain is opened to drain the water in the water tank, and then the water purification equipment is controlled to enter the fault lock state until the water tank inlet valve fault is repaired.
[0090] It should be noted that the above steps S1-S5 can be used to detect water leakage in the water tank inlet valve under any circumstances, such as valve body failure or failure to close tightly due to impurities in the valve body. However, the treatment measures in step S5 are usually only for leakage caused by failure to close tightly due to impurities in the valve body. Therefore, it may not be improved even after repeating the third preset number of times.
[0091] Optionally, the third preset quantity can be set according to the actual device type. For example, the third preset quantity can be 3-5 times.
[0092] This application's embodiments implement different target processing strategies based on different levels of leakage. It not only utilizes the signal timing differences of water level sensors to distinguish different degrees of leakage, but also achieves a balance between user experience and safety by draining some water to maintain basic functions during "minor leaks" and forcibly shutting down the system during "major leaks." This upgrades the water purification equipment's "leak detection" from passive alarm to "proactive handling," effectively preventing serious consequences such as water damage to the cabinet. Furthermore, cleaning the water tank inlet valve through the water hammer effect has advantages such as no disassembly required, no chemical corrosion, and low cost. It can quickly clean the water tank inlet valve during standby, reducing valve replacement frequency, extending the life of seals, and can be coordinated with normal water intake intervals to achieve "cleaning without interrupting production."
[0093] In an optional implementation, this application also provides a control method for a water purification device in a non-standby state, applied to leak detection and handling in a non-standby state, the method further comprising: S001: When the water purification equipment is in a water replenishment state or a water usage state, control the water tank inlet valve and the water inlet valve to open, and continuously obtain the real-time water level in the water tank; S002: When the real-time water level reaches the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve; S003: If the leakage detection result determines that the water tank inlet valve is leaking abnormally, turn on the water tank drain pump; S004: Reacquire the real-time water level in the water tank, obtain the new real-time water level, and start timing; S005: When the new real-time water level is lower than the first water level threshold and the real-time timing time is less than the first preset duration, the leakage degree prediction result is determined as the second leakage degree, and the water tank drain pump is turned off after the second preset duration. S006: When the real-time timing time is greater than the first preset duration and the new real-time water level is greater than or equal to the first water level threshold, the leakage degree prediction result is determined as the first leakage degree, the water tank inlet valve and the water inlet valve are closed, and the water purification equipment is controlled to enter the fault lockout state after the water in the water tank is discharged.
[0094] In this embodiment, when the water purification device is not in standby mode, i.e., in water replenishment or water usage mode, the inlet valve is always open. If the inlet valve leaks, the tank will overflow. Therefore, the real-time water level in the tank is continuously monitored.
[0095] When the real-time water level reaches the first water level threshold, it indicates that there is an abnormal leak in the water tank inlet valve. In order to prevent the water tank from overflowing, the drain pump is turned on to drain the water. At the same time as the drain pump is turned on, the timing is restarted and the real-time water level in the water tank is re-acquired to obtain a new real-time water level.
[0096] Furthermore, the leakage prediction result of the water tank inlet valve can be determined based on the drainage time. Specifically, the drainage time is the real-time timing time. When the new real-time water level is lower than the first water level threshold and the corresponding real-time timing duration is less than the first preset duration, the leakage prediction result of the water tank inlet valve is the second leakage degree, and drainage continues. After the second preset duration, the drainage pump is turned off, and the water tank will not overflow.
[0097] When the real-time timing duration exceeds the first preset duration, and the new real-time water level in the water tank is still higher than the first water level threshold, the leakage degree prediction result is determined as the first leakage degree. The water tank inlet valve and the inlet valve are immediately closed, and the water in the water tank is drained. The water purification equipment is then controlled to enter the fault lockout state because the leakage is more serious at this time, and the problem of water tank overflow cannot be solved by draining.
[0098] Optionally, after the leakage degree prediction result is determined to be the first leakage degree, the water in the water tank can be drained to below the second water level threshold. The water is then judged by the disappearance of the second water level sensor signal. Then, the water purification equipment is controlled to execute the first processing strategy mentioned above. If the leakage degree prediction result is still the first leakage degree after executing the first processing strategy, the water in the water tank is drained and the water purification equipment is controlled to enter the fault lockout state.
[0099] In related technologies, household water purification equipment commonly uses a high-level water sensor to control water replenishment, while an overflow water level sensor serves as a safety water level indicator. When a user uses water, if the high-level water sensor malfunctions, it will be used as an overflow water level sensor. Water will be added to the tank until the overflow level is reached, then the process will stop, and a drain pump will be activated to drain the water until the overflow signal disappears, which is considered the high-level water level. Therefore, before step S001 above, it is necessary to first determine that the water level in the tank is higher than the second water level threshold. Specific methods include: When the water level in the tank is lower than the second water level threshold, the water inlet valve is opened to replenish water to the high water level. If the second water level threshold signal of the second water level sensor is not triggered, but the first water level threshold signal of the first water level sensor is triggered directly, then the second water level sensor is determined to be abnormal. The water inlet valve is then closed, and the drain pump is started until the first water level threshold signal disappears, i.e., the real-time water level is lower than the first water level threshold. At this point, the water level in the tank is determined to be the real-time water level as the second water level threshold. Then, step S001 is executed again.
[0100] Optionally, the first preset time is determined according to the following method: Obtain the water tank volume V between the second water level threshold and the first water level threshold, the rated flow rate Q3 of the drainage pump, the inlet flow rate Q1 of the inlet valve, and the water intake flow rate Q4; At this moment, the flow rate of water discharged from the water tank is Q3+Q4, and the flow rate of water entering the water tank is Q1+Q4. 漏 Therefore, the actual inflow rate of the water tank is Q1 + Q. 漏 -(Q3+Q4), the time t required to fill V is equal to (Q1+Q4). 漏 -(Q3+Q4)) / V, then we get t and Q. 漏 The specific relationship, and Q 漏 The system tolerance of the water purification equipment can be set. For example, the micro-leakage range can be set to 0.01~2 L / s, and the large leak range to greater than 2 L / s. This allows the upper limit of the flow rate corresponding to the micro-leakage range to be calculated for the first preset time. Optionally, "micro-leakage" here can refer to the second level of leakage, and "large leakage" can refer to the first level of leakage. If, in actual operation, more leakage levels are defined, different Q values can be set for each leakage level. 漏 The allowable range allows for different time ranges. After the drain pump is turned on, the time range specified by the real-time timer is used to determine the different degrees of leakage.
[0101] The above method is illustrated with a specific example: For instance, in a household water purifier, upon detecting a leak, the drain pump is activated to drain water. If the overflow signal disappears within 8 seconds, it is classified as a second-degree leak, which can be termed a minor leak in the water tank inlet valve. Drainage continues for another 4 seconds before stopping to avoid frequent pump starts and stops. The second preset time is 4 seconds, and the first preset time is 8 seconds. If the overflow signal persists after 8 seconds, it is classified as a first-degree leak, which can also be termed a major leak in the water tank inlet valve. The machine immediately stops operating, closes the inlet electric valve and outlet valve, and the drain pump continues draining for 40 seconds to empty the water tank, triggering an audible and visual alarm to alert the user for maintenance.
[0102] It should be noted that in this embodiment of the application, after the first degree of water leakage is triggered, the water purification equipment enters a locked state and the operation panel becomes unusable. It can only be used again after repair, power-on, fault clearing and retesting to ensure that the fault is completely eliminated.
[0103] Thus, this embodiment of the application can also detect leaks in the water tank inlet valve when the water purifier is in use. The degree of leakage can be distinguished by the drainage time, thereby providing corresponding graded treatment measures. When there is a "minor leak", some water can be discharged to maintain basic functions. When there is a "major leak", the machine can be forcibly shut down. This achieves a balance between user experience and safety, and upgrades the water purifier's "leak detection" from a passive alarm to an "active handling", which can effectively avoid serious consequences such as water damage to the cabinet.
[0104] In an optional implementation, determining the leakage detection result of the water tank inlet valve based on the water level comparison result includes: When the real-time water inlet duration is equal to the first duration threshold, and the water level comparison result indicates that the real-time water level is lower than the water level threshold, the leakage detection result is determined to indicate that the water tank inlet valve is in normal condition. The method further includes: when the leakage detection result indicates that the water tank inlet valve is in normal condition, controlling the inlet valve to close. In this embodiment, when the real-time water inlet duration reaches a first duration threshold, if the real-time water level height still does not reach the first water level threshold, the leakage detection result is determined to be that the water tank inlet valve is normal. At this time, the inlet valve is controlled to close, and the leakage detection logic is exited.
[0105] On the other hand, such as Figure 4 As shown in the figure, this application embodiment also provides a control device for a water purification device. The water purification device includes a water tank, an inlet pipe communicating with the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the water flow direction. The device includes: The first control module 301 is used to open the water inlet valve and control the water tank inlet valve to be in a closed state when the standby time of the water purification device exceeds the preset standby time. The acquisition module 302 is used to acquire the real-time water level height in the water tank; The comparison module 303 is used to compare the real-time water level height with the first water level threshold within a first time threshold to obtain a water level comparison result. The leakage detection module 304 is used to determine the leakage detection result of the water tank inlet valve based on the water level comparison result; The second control module 305 is used to obtain a leakage handling strategy and control the water purification equipment to execute the leakage handling strategy when the leakage detection result indicates that the water tank inlet valve is leaking abnormally.
[0106] Furthermore, the comparison module is also used for: Within the first time threshold, if the real-time water level is greater than or equal to the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve.
[0107] Furthermore, the second control module also includes: A leakage degree prediction unit is used to perform leakage degree prediction processing based on the real-time water inflow duration to obtain leakage degree prediction results; The processing module is used to obtain the target processing strategy corresponding to the leakage degree prediction result, use the target processing strategy as the leakage processing strategy, and control the water purification device to execute the leakage processing strategy.
[0108] Furthermore, the leakage degree prediction unit includes: The duration threshold acquisition unit is used to acquire a second duration threshold when the leakage detection result indicates abnormal leakage of the water tank inlet valve; the second duration threshold is less than the first duration threshold; The duration threshold comparison unit is used to compare the real-time water inflow duration with the second duration threshold. If the real-time water inflow duration is less than the second duration threshold, the leakage degree prediction result is determined as the first leakage degree. The leakage degree determination unit is used to determine the leakage degree prediction result as a second leakage degree if the real-time water inflow duration is greater than the second duration threshold and less than the first duration threshold; the second leakage degree is less than the first leakage degree.
[0109] Furthermore, the second control module is also used for: If the predicted leakage level is the first leakage level, a target treatment strategy corresponding to the first leakage level is obtained, a first treatment strategy is obtained, and the first treatment strategy is used as the leakage treatment strategy to control the water purification device to execute the first treatment strategy. If the predicted leakage level is the second leakage level, a target treatment strategy corresponding to the second leakage level is obtained, a second treatment strategy is obtained, and the second treatment strategy is used as the leakage treatment strategy to control the water purification equipment to execute the second treatment strategy.
[0110] Furthermore, the second control module includes a first processing strategy module execution unit, which is configured to: The water tank drainage pump is activated to drain the water tank until the current water level in the tank is lower than a second water level threshold; the second water level threshold is lower than the first water level threshold. The valve of the water inlet tank is controlled to open and close a first preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is less than or equal to the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0111] Furthermore, the second control module includes a second processing strategy module execution unit, which is used to: control the water tank drainage pump to start to drain the water tank until the current water level in the water tank is lower than the second water level threshold. The valve of the water inlet tank is controlled to open and close a second preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold; the second water level threshold is less than the first water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
[0112] Furthermore, the second control module also includes a fault lockout module, used for: When the process of repeatedly obtaining the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the number of times the water purification equipment executes the leakage handling strategy exceeds a third preset number, if the leakage detection result is greater than the second leakage level, the process stops, the inlet valve is closed, and the water tank drain pump is opened to drain the water from the water tank. The water purification equipment is controlled to enter a fault lockout state.
[0113] Furthermore, the leakage detection module is also used to: determine the leakage detection result as the water tank inlet valve being in normal condition when the real-time water inlet duration is equal to the first duration threshold and the water level comparison result indicates that the real-time water level is lower than the water level threshold. It is also used to control the inlet valve to close when the leakage detection result indicates that the water tank inlet valve is in normal condition.
[0114] Furthermore, the device also includes a leakage detection and handling module in non-standby mode, used for: When the water purification equipment is in a water replenishment state or in a water usage state, it controls the water tank inlet valve and the water inlet valve to open, and continuously obtains the real-time water level in the water tank; When the real-time water level reaches the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve; If the leak detection results indicate that the water tank inlet valve is leaking abnormally, turn on the water tank drain pump. The real-time water level in the water tank is reproduced to obtain a new real-time water level, and timing is performed. When the new real-time water level is lower than the first water level threshold and the real-time timing time is less than the first preset duration, the leakage degree prediction result is determined as the second leakage degree, and the water tank drain pump is turned off after the second preset duration. When the real-time timing time is greater than the first preset duration and the new real-time water level is greater than or equal to the first water level threshold, the leakage degree prediction result is determined as the first leakage degree, the water tank inlet valve and the water inlet valve are closed, and the water purification equipment is controlled to enter the fault lockout state after the water in the water tank is discharged.
[0115] It should be noted that the control device embodiment of the water purification equipment provided in this application is based on the same inventive concept as the control method embodiment of the water purification equipment described above.
[0116] This application also provides an electronic device for controlling a water purification device. The electronic device includes a processor and a memory. The memory stores at least one instruction or at least one program. The processor loads and executes the at least one instruction or at least one program to implement the control method of the water purification device as provided in any of the above embodiments.
[0117] Embodiments of this application also provide a computer-readable storage medium that can be disposed in a terminal to store at least one instruction or at least one program for implementing the control of a water purification device in the method embodiments. The at least one instruction or at least one program is loaded and executed by a processor to implement the control method of the water purification device as provided in the above method embodiments.
[0118] Optionally, in the embodiments of this specification, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0119] The memory described in this specification can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for functions, etc.; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0120] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method for the water purification device provided in the above-described method embodiments.
[0121] The methods and embodiments provided in this application can be executed on a terminal, computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 5 This is a hardware structure block diagram of a server controlling a water purification device, provided according to an exemplary embodiment. For example... Figure 5 As shown, the server 400 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 410 (CPUs 410 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 430 for storing data, and one or more storage media 420 (e.g., one or more mass storage devices) for storing application programs 423 or data 422. The memory 430 and storage media 420 may be temporary or persistent storage. The program stored in the storage media 420 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the CPU 410 may be configured to communicate with the storage media 420 and execute the series of instruction operations stored in the storage media 420 on the server 400. Server 400 may also include one or more power supplies 460, one or more wired or wireless network interfaces 450, one or more input / output interfaces 440, and / or one or more operating systems 421, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, etc.
[0122] The input / output interface 440 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 400. In one example, the input / output interface 440 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 440 may be a radio frequency (RF) module used for wireless communication with the Internet.
[0123] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 400 may also include... Figure 5 The more or fewer components shown, or having the same Figure 5 The different configurations shown.
[0124] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0125] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and server embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0126] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0127] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A control method for a water purification device, characterized in that, The water purification equipment includes a water tank, an inlet pipe connected to the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the direction of water flow. The method includes: When the standby time of the water purification device exceeds the preset standby time, the water inlet valve is opened, and the water tank inlet valve is controlled to be in the closed state. Obtain the real-time water level in the water tank; Within a first time threshold, the real-time water level height is compared with the first water level threshold to obtain a water level comparison result; Based on the water level comparison results, the leakage detection result of the water tank inlet valve is determined; When the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the water purification equipment is controlled to execute the leakage handling strategy.
2. The method according to claim 1, characterized in that, The step of determining the leakage detection result of the water tank inlet valve based on the water level comparison result includes: Within the first time threshold, if the real-time water level is greater than or equal to the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve.
3. The method according to claim 1, characterized in that, When the leak detection result indicates abnormal leakage from the water tank inlet valve, a leak handling strategy is obtained, and the water purification equipment is controlled to execute the leak handling strategy, including: When the leakage detection result indicates that the water tank inlet valve is leaking abnormally, the real-time water inlet duration corresponding to the real-time water level height is obtained. Based on the real-time water inflow duration, leakage degree prediction processing is performed to obtain leakage degree prediction results; Obtain the target treatment strategy corresponding to the predicted leakage level, use the target treatment strategy as the leakage treatment strategy, and control the water purification device to execute the leakage treatment strategy.
4. The method according to claim 3, characterized in that, The leakage degree prediction process based on the real-time water inflow duration, to obtain the leakage degree prediction result, includes: When the leakage detection result indicates abnormal leakage from the water tank inlet valve, a second duration threshold is obtained; the second duration threshold is less than the first duration threshold. The real-time water inflow duration is compared with the second duration threshold. If the real-time water inflow duration is less than the second duration threshold, the leakage degree prediction result is determined as the first leakage degree. If the real-time water inflow duration is greater than the second duration threshold and less than the first duration threshold, the predicted leakage degree is determined as the second leakage degree; the second leakage degree is less than the first leakage degree.
5. The method according to claim 4, characterized in that, The water tank is equipped with a water tank drain pump. The steps of acquiring the target treatment strategy corresponding to the predicted leakage level, using the target treatment strategy as the leakage treatment strategy, and controlling the water purification equipment to execute the leakage treatment strategy include: If the predicted leakage level is the first leakage level, a target treatment strategy corresponding to the first leakage level is obtained, a first treatment strategy is obtained, and the first treatment strategy is used as the leakage treatment strategy to control the water purification device to execute the first treatment strategy. If the predicted leakage level is the second leakage level, a target treatment strategy corresponding to the second leakage level is obtained, a second treatment strategy is obtained, and the second treatment strategy is used as the leakage treatment strategy to control the water purification equipment to execute the second treatment strategy.
6. The method according to claim 5, characterized in that, The control of the water purification equipment to execute the first processing strategy includes: The water tank drainage pump is activated to drain the water tank until the current water level in the tank is lower than a second water level threshold; the second water level threshold is lower than the first water level threshold. The valve of the water inlet tank is controlled to open and close a first preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is less than or equal to the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
7. The method according to claim 6, characterized in that, The control of the water purification equipment to execute the second treatment strategy includes: The water tank drainage pump is turned on to drain the water tank until the current water level in the water tank is lower than the second water level threshold. The valve of the water inlet tank is controlled to open and close a second preset number of times based on pulse control. Turn off the water tank drain pump and open the water tank inlet valve until the current water level in the water tank reaches the second water level threshold; the second water level threshold is less than the first water level threshold. Close the drain valve of the water inlet tank and reset the real-time water inlet duration to zero; Repeat the process of obtaining the real-time water level in the water tank until the leakage detection result indicates that the water tank inlet valve is leaking abnormally. Then, obtain a leakage handling strategy and control the water purification device to execute the operation of the leakage handling strategy until the leakage degree prediction result is the second leakage degree, or until the leakage detection result indicates that the water tank inlet valve is in normal condition. Then, control the water purification device to re-enter the standby state.
8. The method according to claim 7, characterized in that, The method further includes: When the process of repeatedly obtaining the real-time water level in the water tank continues until the leakage detection result indicates abnormal leakage from the water tank inlet valve, a leakage handling strategy is obtained, and the number of times the water purification equipment executes the leakage handling strategy exceeds a third preset number, if the leakage detection result is greater than the second leakage level, the process stops, the inlet valve is closed, and the water tank drain pump is opened to drain the water from the water tank. The water purification equipment is controlled to enter a fault lockout state.
9. The method according to any one of claims 4-7, characterized in that, The method further includes: When the water purification equipment is in a water replenishment state or in a water usage state, it controls the water tank inlet valve and the water inlet valve to open, and continuously obtains the real-time water level in the water tank; When the real-time water level reaches the first water level threshold, the leakage detection result is determined to be an abnormal leakage of the water tank inlet valve; If the leak detection results indicate that the water tank inlet valve is leaking abnormally, turn on the water tank drain pump. The real-time water level in the water tank is reproduced to obtain a new real-time water level, and timing is performed. When the new real-time water level is lower than the first water level threshold and the real-time timing time is less than the first preset duration, the leakage degree prediction result is determined as the second leakage degree, and the water tank drain pump is turned off after the second preset duration. When the real-time timing time is greater than the first preset duration and the new real-time water level is greater than or equal to the first water level threshold, the leakage degree prediction result is determined as the first leakage degree, the water tank inlet valve and the water inlet valve are closed, and the water purification equipment is controlled to enter the fault lockout state after the water in the water tank is discharged.
10. A control device for a water purification equipment, characterized in that, The water purification equipment includes a water tank, an inlet pipe connected to the water tank, an inlet valve and a water tank inlet valve sequentially arranged on the inlet pipe along the direction of water flow. The device includes: The first control module is used to open the water inlet valve and control the water tank inlet valve to be in a closed state when the standby time of the water purification device exceeds the preset standby time. The acquisition module is used to acquire the real-time water level height in the water tank; The comparison module is used to compare the real-time water level height with the first water level threshold within a first time duration threshold to obtain a water level comparison result. A leakage detection module is used to determine the leakage detection result of the water tank inlet valve based on the water level comparison result; The second control module is used to obtain a leakage handling strategy and control the water purification equipment to execute the leakage handling strategy when the leakage detection result indicates that the water tank inlet valve is leaking abnormally.