Sensor fault determination method and device, water treatment equipment and storage medium
By detecting the pulse signals of the flow sensor and auxiliary detection components in the water treatment equipment, accurately determining the fault status of the flow sensor, the problem that the prior art cannot accurately determine the failure status of the flow sensor is solved, and the durability and user experience of the equipment are improved.
Patent Information
- Application Number
- CN202510191888.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2025-05-23
AI Technical Summary
The existing instant water dispenser cannot accurately determine whether the flow sensor is in a failed state, resulting in the inability to determine whether there is water flow in the water supply pipeline, affecting the normal operation of the equipment and the user experience.
By controlling the operation of the water pump, it is detected whether the flow sensor generates a first pulse signal. If it is not generated, it is detected whether the auxiliary detection component generates a second pulse signal, and determines the fault status of the flow sensor based on the second pulse signal.
It is realized that when the first pulse signal sent by the flow sensor is not received, it is possible to accurately determine whether the water treatment device is currently unfiltered or the flow sensor has a fault, which is convenient for the execution of corresponding protection measures and improve the durability of the water treatment device.
Smart Images

Figure CN120027887A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data detection, and more specifically, to a method, device, water treatment equipment, and storage medium for determining sensor faults in the field of data detection. Background Art
[0002] The instant - heating water dispenser has a heating device independent of the water tank. When the user takes hot water, it takes drinking water from the water tank and quickly heats it to the set temperature through the heating device and then directly discharges the water. When using the instant - heating water dispenser, it is necessary to determine whether there is water flow in the water supply pipeline based on the water flow rate detected by a flow sensor installed in the water supply pipeline, but it cannot determine whether the flow sensor is currently in a failure state. Summary of the Invention
[0003] The present application provides a method, device, water treatment equipment, and storage medium for determining sensor faults. This method can accurately judge the fault state of the flow sensor of the water treatment equipment.
[0004] In a first aspect, a method for determining sensor faults is provided, which is applied to a control component of a water treatment equipment. The water treatment equipment includes a flow sensor, an auxiliary detection component, and a water pump. The flow sensor, the water pump, and the auxiliary detection component are installed in the water supply pipeline of the water treatment equipment, and the flow sensor, the water pump, and the auxiliary detection component are respectively connected to the control component. The method includes: controlling the water pump to operate and detecting whether the flow sensor generates a first pulse signal; if the flow sensor does not generate a first pulse signal, then detecting whether the auxiliary detection component generates a second pulse signal; if the auxiliary detection component generates a second pulse signal, then determining the fault state of the flow sensor based on the second pulse signal.
[0005] In a second aspect, a device for determining sensor faults is provided. The device is applied to a water treatment equipment. The water treatment equipment includes a flow sensor, an auxiliary detection component, and a water pump. The water inlet of the water pump is connected to an external water source of the water treatment equipment, and the water outlet of the water pump is connected to the water supply pipeline of the water treatment equipment. The flow sensor, the water pump, and the auxiliary detection component are installed in the water supply pipeline of the water treatment equipment, and the flow sensor, the water pump, and the auxiliary detection component are respectively connected to the control component. The device includes: a control unit for controlling the water pump to operate and detecting whether the flow sensor generates a first pulse signal; a detection unit for detecting whether the auxiliary detection component generates a second pulse signal if the flow sensor does not generate a first pulse signal; a determination unit for determining the fault state of the flow sensor based on the second pulse signal if the auxiliary detection component generates a second pulse signal.
[0006] In a third aspect, a water treatment device is provided, comprising: a memory for storing executable program code; and a control component for calling and running the executable program code from the memory, so that the water treatment device executes the method in the above-mentioned first aspect or any possible implementation method of the first aspect.
[0007] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0008] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0009] In an embodiment of the present application, during the operation of the water pump, if it is detected that the flow sensor does not generate a first pulse signal, it is detected whether the auxiliary detection component generates a second pulse signal. If the auxiliary detection component generates a second pulse signal, the fault state of the flow sensor is determined based on the second pulse signal. By determining the fault state of the flow sensor through the auxiliary detection component, it is possible to accurately determine whether the water treatment equipment currently has no water flow or the flow sensor has a fault when the first pulse signal sent by the flow sensor is not received, which facilitates the execution of corresponding protection measures and improves the durability of the water treatment equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a structural schematic diagram of a water treatment device provided in an embodiment of the present application;
[0011] Figure 2 is a flow chart of a sensor fault determination method provided in an embodiment of the present application;
[0012] Figure 3 is a flow chart of a sensor fault determination method provided in an embodiment of the present application;
[0013] Figure 4 is a flow chart of a sensor fault determination method provided in an embodiment of the present application;
[0014] Figure 5 It is a schematic diagram of the installation of a capacitive flow sensor provided in an embodiment of the present application;
[0015] Figure 6 is a structural schematic diagram of a sensor fault determination device provided in an embodiment of the present application;
[0016] Figure 7It is a structural schematic diagram of a water treatment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0018] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0019] Figure 1 1 is a schematic diagram of the structure of a water treatment device provided in an embodiment of the present application. The water treatment device includes a water pump 3, a flow sensor 4, an auxiliary detection component 5, and a control component (not shown in the figure). Specifically, the water pump 3, the flow sensor 4, and the auxiliary detection component 5 are installed in the water supply pipeline of the water treatment device.
[0020] In addition, the water treatment equipment may also include a solenoid valve 21 and a negative pressure valve 22 installed in the water supply pipeline. The solenoid valve 21 is usually composed of an electromagnet, a valve body, a valve core, a seal and other parts. The electromagnet is a device that generates a magnetic field, the valve body is the part of the pipeline through which the water flows, and the valve core is a moving part controlled by the electromagnet, which is used to open or close the water flow channel. The control component adjusts the opening degree of the solenoid valve 2 by changing the width of the pulse signal, thereby achieving water flow control and preventing excessive or insufficient water flow. The negative pressure valve 22 is used to adjust the pressure of the water flow to prevent bubbles in the water flow and unstable water pressure from affecting the normal operation of the water treatment equipment.
[0021] The water pump 3 generates negative pressure at the water inlet end through its internal mechanical structure, thereby transporting water from the external water source 1 to the water supply pipeline of the water treatment equipment. In addition, the water pump 3 is adjustable, and the control component can adjust the output flow of the water pump accordingly by adjusting the operating parameters of the water pump 3 to meet different water needs and realize the control of the water output of the water treatment equipment.
[0022] The flow sensor 4 is used to detect the flow of water in the water supply pipeline. The flow of water in the water supply pipeline can be obtained by different methods, including:
[0023] Differential pressure method: Calculate flow rate by measuring the pressure difference generated when the fluid flows in the water supply pipeline;
[0024] Electromagnetic method: Using Faraday's electromagnetic induction principle, the induced potential generated by water cutting magnetic lines of force is measured to calculate the flow rate of water in the water supply pipeline;
[0025] Ultrasonic method: Calculate the flow rate of water in the water supply pipeline by transmitting and receiving ultrasonic signals and measuring the time difference of water flow;
[0026] Vortex method: When water flows in the water supply pipe, a vortex will be formed behind the water supply pipe. The flow rate of water in the water supply pipe can be calculated by measuring the frequency of the vortex.
[0027] Thermal method: Calculate the flow rate of water in the water supply pipe by measuring the heat carried away by the water as it flows.
[0028] The auxiliary detection component 5 is a component for determining a fault state of the flow sensor.
[0029] Optionally, the water treatment equipment also includes a heating device 6 for heating the water in the water supply pipeline. After the water in the water supply pipeline is heated by the heating device 6, it is output from the water treatment equipment through the water outlet 7 for users to drink, wherein the water outlet 7 is located at the end of the water supply pipeline.
[0030] The water treatment device may also include a control component, which is disposed in a receiving chamber of the water treatment device, and the receiving chamber may be located at the top of the body of the water treatment device. The control component is used to process related calculations and control logic in the water treatment device, for example: the water treatment device may also include physical control buttons, a touch screen, etc., and the control logic such as the start-up and temperature adjustment of the water treatment device may be controlled by the physical control buttons or the virtual buttons of the touch screen.
[0031] The water treatment equipment may also include a network module, which may be used to provide wireless network services or wired network services, such as wireless networks such as wireless local area networks (WLAN), local area networks (LAN), cellular networks, 2G networks, 3G networks, 4G networks, 5G networks, etc. When the network module is in a networked state, users can control the water discharge, water discharge stop or temperature adjustment functions of the water treatment equipment through mobile phones, tablets and other devices, thereby realizing remote control of the water treatment equipment. In addition, the water treatment equipment may also include a power supply, which may be electrically connected to the control component and the network module respectively, and is used to provide power to each component module.
[0032] It should be noted that Figure 1The structural schematic diagram of the water treatment device shown is merely an example. The structural schematic diagram of the water treatment device described in the embodiments of the present application is to more clearly illustrate the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those of ordinary skill in the art know that with the evolution of the water treatment device, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0033] As Figure 1 can be seen from the structural schematic diagram shown, in the embodiments of the present application, the water source of the water treatment device is outside the water treatment device, that is, the water treatment device does not have a water tank to store drinking water. When the user needs to use the water treatment device to obtain hot water, the user can input the water temperature and the amount of water. Then the water treatment device obtains water from the water source outside it, heats it to the water temperature set by the user, and directly discharges the water. It does not need to pre-heat the water or keep it warm for a long time, and can provide hot water immediately when needed.
[0034] In the related art, after the control component of the water treatment device receives the water intake instruction input by the user, it controls the start of the water pump to transport water from the external water source to the water supply pipeline. The flow sensor can detect the water flow rate in the water supply pipeline. Then, the control component determines whether there is water flow in the water supply pipeline based on the water flow rate sent by the flow sensor, and controls the operation of the heating device to avoid the problem of dry burning of the heating device when there is no water flow in the water supply pipeline. When there is water flowing in the water supply pipeline, the blade of the flow sensor is driven to rotate by the water flow. The greater the water flow, the faster the rotation speed. When the blade rotates, a pulse signal is generated. The faster the rotation speed of the blade, the higher the pulse frequency. When there is no water flow in the water supply pipeline or the flow sensor fails, the blade of the flow sensor will not rotate and no pulse signal will be generated, and the control component cannot determine whether there is no water flow in the water supply pipeline or the flow sensor fails.
[0035] Based on this, the present application proposes a method for determining sensor failure. During the operation of the water pump, if it is detected that the flow sensor does not generate a first pulse signal, then it is detected whether the auxiliary detection component generates a second pulse signal. If the auxiliary detection component generates a second pulse signal, then the failure state of the flow sensor is determined based on the second pulse signal. By determining the failure state of the flow sensor through the auxiliary detection component, it is possible to accurately determine whether there is no water flow or the flow sensor fails in the water treatment device when the first pulse signal sent by the flow sensor is not received, which is convenient for implementing corresponding protection measures and improving the durability of the water treatment device.
[0036] Based on Figure 1 the structural schematic shown, the method for determining sensor failure provided in the embodiments of the present application will be introduced in detail below in conjunction with Figure 2-Figure 5 ,
[0037] Please refer to Figure 2 , which provides a schematic flowchart of a method for determining a sensor fault according to an embodiment of the present application. As Figure 2 shown, the method of the embodiment of the present application may include the following steps S101-step S103.
[0038] S101, control the water pump to operate and detect whether the flow sensor generates a first pulse signal;
[0039] Specifically, when the control component receives the water intake instruction input by the user, it controls the water pump to operate. The impeller of the water pump rotates under the drive of the motor to generate centrifugal force, thereby delivering the water in the external water source to the water supply pipeline. During the process of controlling the water pump to operate, the control component detects whether the flow sensor generates a first pulse signal.
[0040] It can be understood that when the water pump is operating, it can deliver the water in the external water source to the water supply pipeline, which is heated by the heating device installed in the water supply pipeline and then delivered to the water cup for the user to drink. When there is water flow in the water supply pipeline, it will drive the impeller of the flow sensor to rotate and generate a first pulse signal. After the flow sensor generates the first pulse signal, it sends the first pulse signal or the water flow rate of the water supply pipeline obtained by converting the first pulse signal to the control component. Thus, the control component can determine whether the flow sensor generates the first pulse signal according to whether it receives the first pulse signal or the water flow rate sent by the flow sensor.
[0041] Specifically, when the control component receives the first pulse signal or the first water flow rate sent by the flow sensor, it determines that the flow sensor generates the first pulse signal.
[0042] S102, if the flow sensor does not generate the first pulse signal, then detect whether the auxiliary detection component generates a second pulse signal;
[0043] In one embodiment, when the controller does not receive the first pulse signal or the first water flow rate sent by the flow sensor, it confirms that the flow sensor does not generate the first pulse signal and further detects whether the auxiliary detection component generates a second pulse signal.
[0044] Optionally, in the embodiment of the present application, when the control component determines that the flow sensor does not generate the first pulse signal, it detects the second pulse signal of the auxiliary detection component. Similarly, the control component determines whether the auxiliary detection component generates the second pulse signal by whether it receives the second pulse signal or the second water flow rate sent by the flow sensor.
[0045] One way for the control component to detect whether the auxiliary detection component generates a second pulse signal can be: when the water pump is running, the flow sensor and the auxiliary detection component start running at the same time, and send the detected pulse signal or water flow rate to the control component. If the control component obtains the first pulse signal or the first water flow rate sent by the flow sensor, it determines that the flow sensor has not failed, and controls the operation of the heating device of the water treatment equipment according to the first pulse signal or the water flow rate, so that the outlet water temperature of the water outlet meets the user's drinking needs. It can be understood that when the control component receives the first pulse signal or the first water flow rate sent by the flow sensor and determines that the first flow sensor has not failed, the control component may not receive the second pulse signal sent by the auxiliary detection component, saving resources and time for additional processing of the second pulse signal or the second water flow rate. If the control component does not receive the first pulse signal or the first water flow rate sent by the flow sensor, it further determines whether the second pulse signal or the second water flow rate sent by the auxiliary detection component is received. If the second pulse signal or the second water flow rate is received, it is determined that the auxiliary detection component generates the second pulse signal. If the second pulse signal or the second water flow rate is not received, it is determined that the auxiliary detection component does not generate the second pulse signal.
[0046] In another embodiment, the control component detects whether the auxiliary detection component generates the second pulse signal, which can be: when the water pump is running, the control component determines whether the flow sensor sends the first pulse signal or the first water flow rate. If the first pulse signal or the first water flow rate is not sent, it is determined that the flow sensor does not generate the first pulse signal, and then the auxiliary detection component is started. If the second pulse signal or the second water flow rate sent by the auxiliary detection component is received, it is determined that the auxiliary detection component generates the second pulse signal. If the second pulse signal or the second water flow rate sent by the auxiliary detection component is not received, it is determined that the auxiliary detection component does not generate the second pulse signal; if the flow sensor sends the first pulse signal or the first water flow rate, it is determined that the flow sensor generates the first pulse signal, and it is determined that there is no need to start the auxiliary detection component. In the embodiment of the present application, when it is determined that the flow sensor does not generate the first pulse signal, the auxiliary detection component is started, and then it is determined whether the auxiliary detection component generates the second pulse signal. It is only necessary to start the auxiliary detection component to detect the flow size of the water flow in the water supply pipeline when it is determined that the flow sensor does not generate the first pulse signal. The auxiliary detection component does not need to be in a working state for a long time, saving energy loss.
[0047] S103: If the auxiliary detection component generates a second pulse signal, determine the fault state of the flow sensor based on the second pulse signal.
[0048] In one embodiment, if the control component receives the second pulse signal of the auxiliary detection component, it determines that the auxiliary detection component generates the second pulse signal, and then determines the fault state of the flow sensor based on the second pulse signal. The fault state is a state for determining whether the flow sensor is working normally, which includes two states: a fault occurs and a non-fault occurs. It can be understood that when the fault state of the flow sensor is determined to be a fault, the first pulse signal cannot be generated even when there is water flow in the water supply pipeline; when the fault state of the flow sensor is determined to be non-fault, when there is water flow in the water supply pipeline, it drives the blades of the flow sensor to rotate and generates a first pulse signal, and when there is no water flow in the water supply pipeline, the first pulse signal is not generated.
[0049] In an embodiment of the present application, when it is detected that the flow sensor does not generate the first pulse signal during the operation of the water pump, the auxiliary detection component is used to detect whether it generates the second pulse signal. If the auxiliary detection component generates the second pulse signal, the fault state of the flow sensor is determined based on the second pulse signal. By determining the fault state of the flow sensor through the auxiliary detection component, it is possible to accurately determine whether there is no water flowing in the water supply pipeline of the water treatment equipment or whether the flow sensor has a fault when the first pulse signal sent by the flow sensor is not received, which facilitates the execution of corresponding protection measures and improves the durability of the water treatment equipment.
[0050] See also Figure 3 , is a flow chart of a sensor fault determination method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S206.
[0051] S201, controlling the water pump to run and detecting whether the flow sensor generates a first pulse signal;
[0052] S202, if the flow sensor does not generate the first pulse signal, detecting whether the auxiliary detection component generates a second pulse signal;
[0053] For details, please refer to the description of steps S101-S102 in the above-mentioned embodiment of the specification, which will not be elaborated here.
[0054] S203, if the auxiliary detection component generates a second pulse signal, determining whether there is water flow in the water supply pipeline based on the second pulse signal;
[0055] S204, if it is determined that there is water flow in the water supply pipeline, then determining that the fault state of the flow sensor is a fault;
[0056] Specifically, in the embodiment of the present application, if it is detected that the auxiliary detection component generates a second pulse signal, the second pulse signal is used to determine whether there is water flow in the water supply pipeline. If it is determined that there is water flow in the water supply pipeline, the fault state of the flow sensor is determined to be a fault; if it is determined that there is no water flow in the water supply pipeline, it is determined that the flow sensor is not faulty. It can be understood that when there is water flow in the water supply pipeline, the water flow will drive the blades of the flow sensor to rotate and generate the first pulse signal. Therefore, when the flow sensor does not generate the first pulse signal, but the auxiliary detection component determines that there is water flow in the water supply pipeline, it can be determined that the flow sensor is faulty.
[0057] Optionally, in the embodiment of the present application, the auxiliary detection component is a turbine flow sensor installed in the water supply pipeline. When there is water flow in the water supply pipeline, the blades of the turbine flow sensor rotate with the flow of the water flow, thereby generating a second pulse signal, so that in the embodiment of the present application, it can be determined whether there is water flow in the water supply pipeline based on the second pulse signal.
[0058] Furthermore, the control component obtains a first duration of the second pulse signal. When the first duration is greater than or equal to a duration threshold, it determines that there is water flow in the water supply pipeline, wherein the duration threshold is a pre-set duration, which is used to determine whether there is water flow in the water supply pipeline when the second pulse signal is obtained, and it can be set to 3ms (milliseconds).
[0059] It should be noted that, when the auxiliary detection component determines that there is water flow in the water supply pipeline, but the control component does not detect the first pulse signal generated by the blades of the flow sensor rotating with the flow of water, it can be determined that the flow sensor has failed. For example, the blades of the flow sensor are stuck, making it unable to generate the first pulse signal, resulting in failure.
[0060] Further, if it is determined that there is no water flow in the water supply pipeline, it is determined that the fault state of the flow sensor is not a fault.
[0061] S205, if the auxiliary detection component does not generate the second pulse signal, determining that the fault state of the flow sensor is not faulty;
[0062] In one embodiment, when it is determined that the auxiliary detection component does not generate the second pulse signal, it is determined that there is no water flow in the water supply pipeline. In this case, the blades of the flow sensor will not rotate and generate the first pulse signal, so the fault state of the flow sensor is determined to be a fault.
[0063] It is understandable that when the water pump is running, if there is water in the external water source, it will transport the water from the external water source to the water supply pipeline. Therefore, when the water pump is running but the flow sensor and the auxiliary detection component do not generate a pulse signal, it can be determined that the external water source is short of water, and a water replenishment reminder message is sent on the touch screen of the water treatment device or the user terminal connected to the water treatment device.
[0064] S206: If the flow sensor generates a first pulse signal, it is determined that the fault state of the flow sensor is not a fault.
[0065] In one embodiment, if the flow sensor is determined to generate a first pulse signal when the water pump is running, it is determined that the flow sensor can normally detect the flow rate of water in the water supply pipeline, that is, the fault state of the flow sensor is that no fault has occurred.
[0066] Furthermore, in an embodiment of the present application, when it is determined that the flow sensor is not faulty, the controller can control the heating power of the heating device through the first water flow rate or the first pulse signal sent by the flow sensor, and the outlet water temperature, and the outlet water temperature of the water treatment equipment meets the user's drinking needs.
[0067] It can be understood that in the embodiment of the present application, when the first duration of the second pulse signal is greater than the duration threshold, it is determined that there is water flow in the water supply pipe. Judging that there is water flow in the water supply pipe by the first duration that is greater than the duration threshold can reflect the stability of the water flow in the water supply pipe and improve the accuracy of determining the presence of water flow in the water supply pipe. When there is water flow in the water supply pipe, the blades of the flow sensor rotate with the flow of water, generating a first pulse signal. Therefore, when it is determined that the flow sensor generates the first pulse signal, it is determined that the fault state of the flow sensor is not a fault, thereby accurately determining the fault state of the flow sensor. When it is determined that the flow sensor does not generate the first pulse signal, it is further determined that the auxiliary detection component also does not generate the second pulse signal, and it is determined that there is no water flow in the water supply pipe. When there is no water flow in the water supply pipe, the flow sensor will not generate the first pulse signal. Therefore, it is determined that the fault state of the flow sensor is not a fault, thereby accurately determining the fault state of the flow sensor.
[0068] See also Figure 4 , is a flow chart of a sensor fault determination method provided in an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301-S307.
[0069] S301, controlling the water pump to run and detecting whether the flow sensor generates a first pulse signal;
[0070] S302, if the flow sensor does not generate the first pulse signal, detecting whether the auxiliary detection component generates the second pulse signal;
[0071] For details, please refer to the description of steps S101-S102 in the above-mentioned embodiment of the specification, which will not be elaborated here.
[0072] S303, if the auxiliary detection component generates a second pulse signal, acquiring a pulse frequency of the second pulse signal, a first duration of a high level in the second pulse signal, and a second duration of a low level in the second pulse signal;
[0073] S304, determining whether there is water flow in the water supply pipeline based on the pulse frequency, the first duration and the second duration;
[0074] In one embodiment, the auxiliary detection component is a capacitive flow sensor installed outside the water supply pipeline. Figure 5 , Figure 5 It is a schematic diagram of the installation of a capacitive flow sensor. The capacitive flow sensor includes a first spring and a second spring, the first spring and the second spring are inserted into a water supply pipe, and a fixing assembly is used to fix the capacitive flow sensor and the water supply pipe. The capacitive flow sensor usually consists of two electrodes, namely a sensing electrode and a reference electrode. The space between the two electrodes constitutes the measurement area of the sensor. When there is water flow in the water supply pipe, it will change the dielectric constant between the electrodes, thereby affecting the capacitance value, and then the change in capacitance value is converted into a second pulse signal through the conversion circuit of the capacitive flow sensor. Therefore, in an embodiment of the present application, when the control component obtains the second pulse signal, it can determine whether there is water flow in the water supply pipeline by the pulse frequency of the second pulse signal and the duration of the high level (including the middle level and the low level) and the low level in the second pulse signal, wherein the pulse frequency is the number of second pulse signals generated per unit time.
[0075] Specifically, in an embodiment of the present application, when it is detected that the pulse frequency is within the frequency threshold and the ratio of the first duration of the medium-high level signal of the second pulse signal to the second duration of the low level signal of the pulse signal is within the ratio threshold, it is determined that there is water flow in the water supply pipeline; conversely, if it is determined that the pulse frequency is not within the frequency threshold and the ratio of the first duration to the second duration is not within the ratio threshold, it is determined that there is no water flow in the water supply pipeline.
[0076] Among them, the pulse frequency is an important indicator for measuring the water flow speed or flow rate. When the water flows through the auxiliary detection component, it will trigger the auxiliary detection component to generate a second pulse signal. The pulse frequency of the second pulse signal is proportional to the water flow speed, that is, the faster the water flow speed, the higher the pulse frequency; the slower the water flow speed, the lower the pulse frequency. Therefore, by detecting the change in pulse frequency, it is possible to determine whether there is water flow in the water supply pipeline and the speed or flow rate of the water flow. The duration of high and low level signals provides another dimension of information. When the water flows through the auxiliary detection component, the auxiliary detection component will output a second pulse signal (which includes a high level signal and a low level signal). The first duration of the high level signal is related to the stability of the water flow through the auxiliary detection component. When the water flow is stable, the first duration of the high level signal is large, and the second duration of the low level signal is relatively small. Therefore, by detecting the ratio of the high and low level durations, the state of the water flow in the water supply pipeline can be further confirmed. In the embodiment of the present application, when measuring whether there is water flow in the water supply pipeline, using the pulse frequency and the duration of high and low levels at the same time can provide a more accurate and reliable basis for judgment.
[0077] It can be understood that the frequency threshold is the frequency range of the pulse frequency detected when there is water flow in the water supply pipeline; the ratio threshold is the ratio range of the duration of the high level to the duration of the low level in the pulse signal detected when there is water flow in the water supply pipeline, which can be obtained in advance through experimental data.
[0078] S305, if it is determined that there is water flow in the water supply pipeline, then determining that the fault state of the flow sensor is a fault;
[0079] It should be noted that if the auxiliary detection component determines that there is water flow in the water supply pipeline, but the control component does not detect the first pulse signal generated by the blades of the flow sensor rotating with the flow of water, it can be determined that the flow sensor has failed. For example, the blades of the flow sensor are stuck, making it unable to generate the first pulse signal, resulting in failure.
[0080] S306, if the auxiliary detection component does not generate the second pulse signal, determining that the fault state of the flow sensor is not faulty;
[0081] In one embodiment, when it is determined that the auxiliary detection component does not generate the second pulse signal, it is determined that there is no water flow in the water supply pipeline. In this case, the blades of the flow sensor will not rotate and generate the first pulse signal, so the fault state of the flow sensor is determined to be a fault.
[0082] It is understandable that when the water pump is running, if there is water in the external water source, it will transport the water from the external water source to the water supply pipeline. Therefore, when the water pump is running but the flow sensor and the auxiliary detection component do not generate a pulse signal, it can be determined that the external water source is short of water, and a water replenishment prompt message is sent on the touch screen of the water treatment device or the user terminal connected to the water treatment device.
[0083] S307: If the flow sensor generates a first pulse signal, it is determined that the fault state of the flow sensor is not a fault.
[0084] In one embodiment, if the flow sensor is determined to generate a first pulse signal when the water pump is running, it is determined that the flow sensor can normally detect the flow rate of water in the water supply pipeline, that is, the fault state of the flow sensor is that no fault has occurred.
[0085] In an embodiment of the present application, when the auxiliary detection component is a capacitive flow sensor installed outside the water supply pipeline, the pulse frequency of the second pulse signal generated by the capacitive sensor, the ratio of the first duration of the high-level signal to the second duration of the low-level signal are used to determine whether there is water flow in the water supply pipeline, and the stability of the water flow and the water flow rate are used as judgment conditions, thereby improving the accuracy of judging whether there is water flow in the water supply pipeline; when there is water flow in the water supply pipeline, the blades of the flow sensor rotate with the flow of the water flow, generating a first pulse signal, thereby determining that the fault state of the flow sensor is not a fault when determining that the flow sensor generates the first pulse signal, thereby accurately determining the fault state of the flow sensor; when determining that the flow sensor does not generate the first pulse signal, further determining that the auxiliary detection component also does not generate the second pulse signal, determining that there is no water flow in the water supply pipeline, and when there is no water flow in the water supply pipeline, the flow sensor will not generate the first pulse signal, thereby determining that the fault state of the flow sensor is not a fault, thereby accurately determining the fault state of the flow sensor.
[0086] based on Figure 1 The structural diagram of Figure 6 , the sensor fault determination device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 6 The sensor fault determination device in the present application is used to execute Figure 2-Figure 5 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 5 Specifically, the sensor fault determination device 1 includes:
[0087] The control unit 11 is used to control the operation of the water pump and detect whether the flow sensor generates a first pulse signal;
[0088] The detection unit 12 is used to detect whether the auxiliary detection component generates a second pulse signal if the flow sensor does not generate the first pulse signal;
[0089] The determination unit 13 is configured to determine the fault state of the flow sensor based on the second pulse signal if the auxiliary detection component generates the second pulse signal.
[0090] Optionally, the determining unit 13 specifically includes:
[0091] A first determining subunit 131 is used to determine whether there is water flow in the water supply pipeline based on the second pulse signal;
[0092] The second determining subunit 132 is used to determine that the fault state of the flow sensor is a fault if it is determined that there is water flow in the water supply pipeline.
[0093] Optionally, the auxiliary detection component is a capacitive flow sensor installed outside the water supply pipeline, and the second determination subunit 132 is specifically used for:
[0094] Acquire a first duration of a second pulse signal;
[0095] If the first duration is greater than or equal to the duration threshold, it is determined that there is water flow in the water supply pipeline.
[0096] Optionally, the auxiliary detection component is a turbine flow sensor installed in the water supply pipeline, and the second determination subunit 132 is specifically used for:
[0097] Acquire a pulse frequency of the second pulse signal, a first duration of a high level signal in the second pulse signal, and a second duration of a low level signal in the second pulse signal;
[0098] It is determined whether there is water flow in the water supply pipeline based on the pulse frequency, the first duration and the second duration.
[0099] Optionally, the second determining subunit 132 is specifically configured to:
[0100] If the pulse frequency is within the frequency threshold, and the duration ratio of the first duration to the second duration is within the ratio threshold, it is determined that there is water flow in the water supply pipeline;
[0101] If the pulse frequency is not within the frequency threshold, and / or the duration ratio of the first duration to the second duration is not within the ratio threshold, it is determined that there is no water flow in the water supply pipeline.
[0102] Optionally, the control unit 11 is further configured to:
[0103] If the flow sensor generates the first pulse signal, it is determined that the fault state of the flow sensor is not faulty.
[0104] Optionally, the detection unit 12 is further used for:
[0105] If the auxiliary detection component does not generate the second pulse signal, it is determined that the fault state of the flow sensor is not a fault.
[0106] See also Figure 7 , which is a schematic diagram of the structure of a water treatment device provided in the embodiment of the present application. Figure 7 As shown, the water treatment device 500 includes a control component 501 and a memory 502. The control component 501 is electrically connected to the memory 502.
[0107] The control component 501 is the control center of the water treatment device 500, and may include one or more processing cores. The control component 501 uses various interfaces and lines to connect the various parts of the entire water treatment device 500, and executes various functions and processes data of the water treatment device 500 by running or calling the computer program stored in the memory 502, and calling the data stored in the memory 502, so as to control the water treatment device 500 as a whole. Optionally, the control component 501 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The control component 501 can integrate one or more combinations of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications, etc.; the GPU is responsible for rendering and drawing the display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the control component 501, and may be implemented separately through a communication chip.
[0108] The memory 502 can be used to store software programs and modules, and the control component 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the water treatment device 500, etc.
[0109] In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the control component 501 with access to the memory 502.
[0110] In this embodiment, the control component 501 in the water treatment device 500 will load the instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the control component 501 will run the computer program stored in the memory 502 to achieve various functions, as follows:
[0111] Control the operation of the water pump and detect whether the flow sensor generates a first pulse signal;
[0112] If the flow sensor does not generate the first pulse signal, detecting whether the auxiliary detection component generates the second pulse signal;
[0113] If the auxiliary detection component generates a second pulse signal, a fault state of the flow sensor is determined based on the second pulse signal.
[0114] Optionally, when determining the fault state of the flow sensor based on the second pulse signal, the control component 501 specifically performs:
[0115] determining whether water flow exists in the water supply pipeline based on the second pulse signal;
[0116] If it is determined that there is water flow in the water supply pipeline, it is determined that the fault state of the flow sensor is a fault.
[0117] Optionally, the auxiliary detection component is a turbine flow sensor installed in the water supply pipeline. When the control component 501 determines whether there is water flow in the water supply pipeline based on the second pulse signal, it specifically performs:
[0118] Acquire a first duration of a second pulse signal;
[0119] If the first duration is greater than or equal to the duration threshold, it is determined that there is water flow in the water supply pipeline.
[0120] Optionally, the auxiliary detection component is a capacitive flow sensor installed outside the water supply pipeline. When the control component 501 determines whether there is water flow in the water supply pipeline based on the second pulse signal, it specifically performs:
[0121] Acquire a pulse frequency of the second pulse signal, a first duration of a high level signal in the second pulse signal, and a second duration of a low level signal in the second pulse signal;
[0122] It is determined whether there is water flow in the water supply pipeline based on the pulse frequency, the first duration and the second duration.
[0123] Optionally, when the control component 501 determines whether there is water flow in the water supply pipeline based on the pulse frequency, the first duration, and the second duration, it specifically performs:
[0124] If the pulse frequency is within the frequency threshold, and the duration ratio of the first duration to the second duration is within the ratio threshold, it is determined that there is water flow in the water supply pipeline;
[0125] If the pulse frequency is not within the frequency threshold, and / or the duration ratio of the first duration to the second duration is not within the ratio threshold, it is determined that there is no water flow in the water supply pipeline.
[0126] Optionally, after executing the detection of whether the flow sensor generates the first pulse signal, the control component 501 may further execute:
[0127] If the flow sensor generates the first pulse signal, it is determined that the fault state of the flow sensor is not faulty.
[0128] Optionally, after executing the detection of whether the auxiliary detection component generates the second pulse signal, the control component 501 may further execute:
[0129] If the auxiliary detection component does not generate the second pulse signal, it is determined that the fault state of the flow sensor is not a fault.
[0130] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned sensor fault determination method, and thus can achieve the same effect as the above-mentioned implementation method.
[0131] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a water treatment device, the processing module may be used to control and manage the actions of the water treatment device. The storage module may be used to support the water treatment device in executing related program codes, etc.
[0132] The processing module may be a control component or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application. The control component may also be a combination that implements a computing function, such as a combination of one or more microcontroller components, a combination of digital signal processing (DSP) and microcontroller components, etc. The storage module may be a memory.
[0133] In addition, the device provided in the embodiment of the present application can specifically be a chip, a component or a module. The chip may include a connected control component and a memory; wherein the memory is used to store instructions, and when the control component calls and executes the instructions, the chip can execute a sensor fault determination method provided in the above embodiment.
[0134] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a sensor fault determination method provided in the above embodiment.
[0135] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a sensor fault determination method provided in the above-mentioned embodiment.
[0136] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0137] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0138] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0139] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A sensor fault determination method, characterized in that: A control component applied to a water treatment device, wherein the water treatment device comprises a flow sensor, an auxiliary detection component, and a water pump, wherein the flow sensor, the water pump, and the auxiliary detection component are installed in a water supply pipeline of the water treatment device, and the flow sensor, the water pump, and the auxiliary detection component are respectively connected to the control component; The method comprises: Controlling the operation of the water pump and detecting whether the flow sensor generates a first pulse signal; If the flow sensor does not generate the first pulse signal, detecting whether the auxiliary detection component generates a second pulse signal; If the auxiliary detection component generates the second pulse signal, a fault state of the flow sensor is determined based on the second pulse signal.
2. The method according to claim 1, characterized in that The determining the fault state of the flow sensor based on the second pulse signal comprises: determining whether water flow exists in the water supply pipeline based on the second pulse signal; If it is determined that there is water flow in the water supply pipeline, then the fault state of the flow sensor is determined to be a fault.
3. The method according to claim 2, characterized in that The auxiliary detection component is a turbine flow sensor installed in the water supply pipeline; The determining whether there is water flow in the water supply pipeline based on the second pulse signal comprises: Acquire a first duration of the second pulse signal; If the first duration is greater than or equal to the duration threshold, it is determined that water flow exists in the water supply pipeline.
4. The method according to claim 2, characterized in that: The auxiliary detection component is a capacitive flow sensor installed outside the water supply pipeline; The determining whether there is water flow in the water supply pipeline based on the second pulse signal comprises: Acquire a pulse frequency of the second pulse signal, a first duration of a high level signal in the second pulse signal, and a second duration of a low level signal in the second pulse signal; It is determined whether water flow exists in the water supply pipeline based on the pulse frequency, the first duration, and the second duration.
5. The method according to claim 4, characterized in that The step of determining whether there is water flow in the water supply pipeline based on the pulse frequency, the first duration, and the second duration includes: If the pulse frequency is within the frequency threshold, and the duration ratio of the first duration to the second duration is within the ratio threshold, it is determined that there is water flow in the water supply pipeline; If the pulse frequency is not within the frequency threshold, and / or the duration ratio of the first duration to the second duration is not within the ratio threshold, it is determined that no water flow exists in the water supply pipeline.
6. The method according to claim 1, characterized in that After detecting whether the flow sensor generates a first pulse signal, the method further includes: If the flow sensor generates the first pulse signal, it is determined that the fault state of the flow sensor is not faulty.
7. The method according to claim 1, characterized in that After detecting whether the auxiliary detection component generates a second pulse signal, the method further includes: If the auxiliary detection component does not generate the second pulse signal, it is determined that the fault state of the flow sensor is not a fault.
8. A sensor fault determination device, characterized in that: The device is applied to water treatment equipment, which includes a flow sensor, an auxiliary detection component, and a water pump. The water inlet of the water pump is connected to an external water source of the water treatment equipment, and the water outlet of the water pump is connected to a water supply pipeline of the water treatment equipment. The flow sensor, the water pump, and the auxiliary detection component are installed on the water supply pipeline of the water treatment equipment, and the flow sensor, the water pump, and the auxiliary detection component are respectively connected to the control component; The device comprises: A control unit, used for controlling the operation of the water pump and detecting whether the flow sensor generates a first pulse signal; a detection unit, configured to detect whether the auxiliary detection component generates a second pulse signal if the flow sensor does not generate a first pulse signal; A determination unit is used to determine the fault state of the flow sensor based on the second pulse signal if the auxiliary detection component generates the second pulse signal.
9. A water treatment device, characterized in that: The water treatment equipment comprises: A memory for storing executable program codes; A control component, used to call and run the executable program code from the memory, so that the water treatment equipment executes the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Method for diagnosing mechanical abnormity and electromagnetic interference through gas flowmeter
CN120846461A
Method for diagnosing mechanical anomalies and electromagnetic interferences in a gas flowmeter
CN120846461B