A faucet water outlet control method, device, faucet and storage medium
By identifying water treatment system malfunctions in the faucet and compensating for water output, the problem of quantitative water dispensing failure caused by abnormal communication between the smart faucet and the water purifier is solved, achieving more reliable quantitative water dispensing control.
Patent Information
- Application Number
- CN202411870198.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-18
AI Technical Summary
When existing smart faucets and water purifiers malfunction, the quantitative water dispensing function fails, which may result in excessive water output from the faucet, causing resource waste or property damage.
The faucet determines whether there is a water outflow malfunction in the water treatment system. If there is no malfunction, it will dispense water in normal mode; if there is a malfunction, it will dispense water in abnormal mode and perform water outflow compensation. In abnormal mode, the water outflow is controlled according to a preset compensation strategy.
It improves the control of the metered water output of the faucet, enhances the reliability of the faucet, and avoids waste of resources and property loss.
Smart Images

Figure CN119712925B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water treatment device technology, and in particular to a faucet water outlet control method, device, faucet and storage medium. Background Technology
[0002] With the improvement of living standards, people are paying more and more attention to the quality of life, especially regarding drinking water health. To meet the demand for both filtered, clean water and convenient access, existing technologies have proposed water treatment systems that combine intelligent faucets and water purifiers. These systems can significantly improve the user's water access experience. Currently, for example, in a water treatment system that includes intelligent faucets and water purifiers, the faucet and purifier are typically controlled separately by their own control boards. They interact through a pre-defined communication protocol. Under normal circumstances, after the user dispenses a specific amount of water from the faucet, the faucet sends a water dispensing signal to the water purifier. The water purifier then processes the water, calculates the dispensing volume, and sends a stop dispensing signal back to the faucet once the user's desired volume is reached. The faucet then stops dispensing water based on this signal. However, this method has certain drawbacks. For example, when there is an abnormal transmission or communication problem between the water purifier and the faucet, the corresponding quantitative water dispensing function cannot be used. For instance, the water purifier may not be able to send a stop water dispensing signal to the faucet, which may lead to excessive water dispensing from the faucet, resulting in property damage or waste of resources.
[0003] Furthermore, water purifiers actually calculate water output using a flow meter. However, in practical applications, to ensure the water treatment system is compact, easy to operate, and aesthetically pleasing, the flow meter is not installed on the faucet itself. This means that specific water output information must be calculated by the water purifier before being sent to the faucet. If there are abnormal transmission or communication problems between the water purifier and the faucet, preventing data synchronization, information loss will cause the faucet to stop dispensing water. Alternatively, if the flow meter in the water purifier malfunctions, the faucet will not receive the notification to stop dispensing water, thus rendering the metered water dispensing function unusable. Summary of the Invention
[0004] This invention provides a method, device, faucet, and storage medium for controlling the water flow of a faucet, aiming to improve the control effect of quantitative water flow from the faucet and thus improve the reliability of the faucet.
[0005] In a first aspect, embodiments of the present invention provide a method for controlling the water flow from a faucet, applied to a water treatment system, the water treatment system including a faucet and a water treatment device communicatively connected to the faucet, the control method including:
[0006] In response to a water discharge command, determine whether the water treatment system has a water discharge fault;
[0007] If it is determined that there is no water discharge fault in the water treatment system, then the faucet is controlled to discharge water according to the normal water discharge mode based on the water discharge command.
[0008] If it is determined that there is a water discharge fault in the water treatment system, the faucet is controlled to discharge water according to the water discharge command and the abnormal water discharge mode; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.
[0009] Secondly, embodiments of the present invention provide a faucet water outlet control device applied to a water treatment system, the water treatment system including a faucet and a water treatment device communicatively connected to the faucet, the control device including:
[0010] The fault determination unit is used to determine whether there is a water discharge fault in the water treatment system in response to the water discharge command;
[0011] The first determination unit is used to control the faucet to perform water dispensing operation according to the normal water dispensing mode based on the water dispensing command if it is determined that there is no water dispensing fault in the water treatment system.
[0012] The second determination unit is used to control the faucet to perform water discharge operation according to the abnormal water discharge mode based on the water discharge command if it is determined that there is a water discharge fault in the water treatment system; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.
[0013] Thirdly, embodiments of the present invention provide a faucet, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the faucet water dispensing control method as described in the first aspect.
[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the faucet water outlet control method as described in the first aspect.
[0015] This invention provides a water tap dispensing control method, device, tap, and storage medium. The control method is applied to a water treatment system, which includes a tap and a water treatment device communicatively connected to the tap. The control method includes: responding to a water dispensing command, determining whether the water treatment system has a water dispensing fault; if the water treatment system does not have a water dispensing fault, controlling the tap to dispense water according to the normal water dispensing mode based on the water dispensing command; if the water treatment system has a water dispensing fault, controlling the tap to dispense water according to an abnormal water dispensing mode based on the water dispensing command; wherein the abnormal water dispensing mode is: compensating for the water dispensing operation under the abnormal water dispensing mode according to a preset compensation strategy. In this embodiment of the invention, when controlling the faucet to perform water dispensing operation according to the water dispensing command, it first determines whether there is any abnormal fault between the faucet and the water treatment device in the water treatment system, such as whether there is a communication fault. If it is determined that there is no fault, the faucet can be controlled to dispense water in the normal water dispensing mode. However, if it is determined that there is a fault, the faucet is controlled to dispense water in an abnormal water dispensing mode. In the abnormal water dispensing mode, the faucet will be compensated accordingly to ensure that the final water dispensing volume of the faucet matches the water dispensing volume in the water dispensing command. This improves the control effect of the faucet's quantitative water dispensing and thus improves the reliability of the faucet. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating a faucet control method provided in an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of a sub-process of step S101 in a faucet control method provided in an embodiment of the present invention;
[0019] Figure 3 This is another sub-process diagram of step S101 in a faucet control method provided in an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the sub-process of step S103 in a faucet control method provided in an embodiment of the present invention;
[0021] Figure 5 This is another flowchart illustrating a faucet control method provided in an embodiment of the present invention;
[0022] Figure 6 A schematic diagram of the sub-process of step S403 in a faucet control method provided in an embodiment of the present invention;
[0023] Figure 7 This is another sub-process diagram of step S103 in a faucet control method provided in an embodiment of the present invention;
[0024] Figure 8 A schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0025] Figure 9 This is a first schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0026] Figure 10 This is a second schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0027] Figure 11 This is a third schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0028] Figure 12 This is a fourth schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0029] Figure 13 This is a fifth schematic block diagram of a faucet control device provided in an embodiment of the present invention;
[0030] Figure 14 This is a sixth schematic block diagram of a faucet control device provided in an embodiment of the present invention. Detailed Implementation
[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0032] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0033] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0034] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0035] Please see below. Figure 1 This invention provides a water tap water outlet control method, applied to a water treatment system. The water treatment system includes a water tap and a water treatment device communicatively connected to the water tap. The control method specifically includes steps S101 to S103.
[0036] Step S101: In response to the water discharge command, determine whether there is a water discharge fault in the water treatment system;
[0037] Step S102: If it is determined that there is no water outlet failure in the water treatment system, then according to the water outlet command, control the faucet to perform water outlet operation in the normal water outlet mode.
[0038] Step S103: If it is determined that there is a water discharge fault in the water treatment system, then according to the water discharge command, the faucet is controlled to perform water discharge operation according to the abnormal water discharge mode; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.
[0039] In this embodiment, when controlling the faucet to perform water dispensing operation according to the water dispensing command, it first determines whether there is any abnormal fault between the faucet and the water treatment device in the water treatment system, such as whether there is a communication fault. If it is determined that there is no fault, the faucet can be controlled to dispense water in the normal water dispensing mode. However, if it is determined that there is a fault, the faucet is controlled to dispense water in an abnormal water dispensing mode. In the abnormal water dispensing mode, the faucet will be compensated accordingly to ensure that the final water dispensing volume of the faucet matches the water dispensing volume in the water dispensing command. This improves the control effect of the faucet's quantitative water dispensing, thereby improving the reliability of the faucet and enhancing the user experience.
[0040] It should also be noted that the water treatment device described in this embodiment can be a water purifier that communicates with the faucet, or it can be a water purifier, a hot water dispenser, or other water treatment devices. In other words, the faucet control method provided in this embodiment has a wide range of applications and can meet the needs of different users.
[0041] Furthermore, the water dispensing command described in this embodiment can be generated after the user operates the faucet, or it can be generated by the user setting a timer command for the faucet in advance. For example, in practical applications, the user can operate the button on the faucet to make the faucet perform a quantitative water dispensing function, such as setting a quantitative water dispensing of 500ml. After receiving the command, the faucet can control the water dispensing through the water dispensing solenoid valve or other water dispensing load, and send a water dispensing signal to the water purifier or other water treatment device. After receiving the water dispensing signal, the water purifier or other water treatment device can start water treatment. At this time, it is possible to detect whether there is a communication failure between the faucet and the water purifier or other water treatment device, and then decide whether to dispense water in normal mode or abnormal mode based on the failure judgment result.
[0042] In one embodiment, such as Figure 2 As shown, step S101 includes steps S201 to S203.
[0043] Step S201: When a water dispensing command is received, control the faucet to send a corresponding water dispensing signal to the water treatment device, and determine whether a feedback signal sent by the water treatment device is received.
[0044] Step S202: If a feedback signal is received from the water treatment device, it is determined that the water treatment system has not experienced a water outflow failure.
[0045] Step S203: If no feedback signal is received from the water treatment device, it is determined that the water treatment system has a water outflow failure.
[0046] This embodiment determines whether a communication failure exists by having the faucet and the water treatment device interact with each other via signal exchange. For example, if the faucet and the water treatment device can successfully exchange signals, it is determined that the overall water treatment system has no communication failure. However, if the faucet and the water treatment device fail to exchange signals, it is determined that the water treatment system has a communication failure and therefore cannot continue to operate in the normal water dispensing mode.
[0047] In another embodiment, such as Figure 3 As shown, step S101 further includes steps S301 to S303.
[0048] Step S301: Determine whether an abnormal water flow signal is received from the water treatment system;
[0049] Step S302: If an abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has a water outflow failure.
[0050] Step S303: If no abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has not experienced a water outflow failure.
[0051] In addition to the communication fault diagnosis mentioned above, the water flow detection device installed in the water treatment unit can also be checked for faults. This prevents the water treatment unit from sending a stop-water signal to the faucet too late or too early due to a malfunction in the water flow detection device, thereby further improving the water flow control effect of the faucet. In practical applications, the control board of the water treatment unit or other controllers can determine whether there is a detection fault in the water flow detection device. If a detection fault is found, an abnormal water flow signal is sent to the faucet, causing the faucet to operate in an abnormal water flow mode. If no detection fault is found, a normal water flow signal is sent to the faucet, or no signal is sent to the faucet regarding water flow, causing the faucet to operate in a normal water flow mode.
[0052] In some optional embodiments, the determination of whether the faucet operates in normal or abnormal water flow mode can be made by combining communication failure and abnormal water flow signals. That is, when a feedback signal regarding water flow is received from the water treatment device but no abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has not experienced a water flow failure, and the faucet is controlled to operate in normal water flow mode; when no feedback signal regarding water flow is received from the water treatment device and / or an abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has experienced a water flow failure, and the faucet is controlled to operate in abnormal water flow mode.
[0053] In one embodiment, such as Figure 4 As shown, step S103 includes steps S401 to S403.
[0054] Step S401: Pre-collect the water flow time and number of times the faucet is in normal water flow mode for the set water flow rate;
[0055] Step S402: Calculate the unit water flow rate and the first unit water flow time of the faucet based on the set water flow rate, water flow time and water flow frequency;
[0056] Step S403: Compensate the water flow time of the faucet in the abnormal water flow mode according to the first unit water flow time.
[0057] In this embodiment, the water output parameters of the faucet in normal water output mode are collected, and the faucet is compensated for in abnormal water output mode based on the collected parameters. Specifically, the faucet is controlled to output water according to a set water volume, and the water output time and frequency during the water output period are collected. Then, the unit water flow rate (i.e., the amount of water output per faucet cycle) is calculated based on the set water volume and the corresponding number of faucets. After calculating the unit water flow rate, the first unit water output time (i.e., the time required for the faucet to complete the unit water flow rate per cycle) is calculated by combining the corresponding water output time. Subsequently, water output time compensation can be performed based on the first unit water output time. For example, the water output time under the abnormal water output model can be determined based on the water volume and unit water flow rate in the abnormal water output mode, and the faucet can be made to output water according to the specified water output time. For example, if the water output is set to 500ml, the water output time is 20s, and the number of water outputs is 10, then based on the set water output and the number of water outputs, the water output per faucet can be calculated to be 50ml. Combining this with the water output time, the first unit of water output time can be calculated to be 2s.
[0058] In practical applications, water parameters can be collected continuously and repeatedly over a long period of time. For example, water can be collected 10 times a day for one month, which is 300 times. Then, the unit water flow rate and the first unit water output time can be calculated based on these 300 times.
[0059] Further, such as Figure 5 As shown, the faucet water outlet control method further includes steps S501 to S503.
[0060] Step S501: Set the water outlet cycle and divide the water outlet cycle into multiple time periods, and obtain the second unit water outlet time required by the faucet for the unit water outlet volume in each time period;
[0061] Step S502: Calculate the time difference between the first unit water output time and the second unit water output time, and use the time difference as the compensation time for the corresponding time period;
[0062] Step S503: Establish a time compensation list by combining the time period and the corresponding compensation time.
[0063] To improve the accuracy of water outlet time settings, this embodiment sets a water outlet cycle, such as one day or one week. This cycle is then further subdivided into different time periods, such as dividing a 24-hour day into three- or four-hour periods. For each of these time periods, the second unit of water outlet time at a given flow rate is calculated. The difference between the first and second unit of water outlet time is then compared and used as the compensation for that time period. For example, the second unit of water outlet time is calculated for the 8:00-10:00 time period, and the difference between the first unit of water outlet time and the second unit of water outlet time for the 8:00-10:00 time period is calculated. This difference is then used as the compensation time for the 8:00-10:00 time period. Preferably, to further improve compensation accuracy, the time period divisions can be made even more refined.
[0064] In one embodiment, such as Figure 6 As shown, step S403 includes steps S601 to S602.
[0065] Step S601: Obtain the target time period corresponding to the water discharge command, and query the corresponding target compensation time from the time compensation list according to the target time period;
[0066] Step S602: Obtain the target water output corresponding to the water output command, and calculate the target water output time corresponding to the target water output in combination with the unit water output flow rate. Then, add the target water output time and the target compensation time together, and use the sum as the water output time of the faucet in the abnormal water output mode.
[0067] After the time compensation list is successfully established, when it is necessary to control the faucet's water flow according to an abnormal water flow mode, the specific water flow time period (the target time period) can be extracted based on the corresponding water flow command. Then, the time period matching the target time period is found in the time compensation list, and the corresponding compensation time is extracted. Next, the water flow rate is determined according to the water flow command, and the water flow time is calculated by combining this with the faucet's unit water flow rate. Finally, this water flow time is combined with the extracted compensation time to obtain the final water flow time, and the faucet dispenses water according to this final time. This allows the faucet to autonomously control the water flow time, ensuring that the faucet's quantitative water flow function still works, improving product reliability and user experience.
[0068] In one embodiment, such as Figure 7 As shown, step S103 further includes steps S701 to S703.
[0069] Step S701: Pre-collect the historical water output of the faucet and establish a water volume compensation list based on the historical water output;
[0070] Step S702: Obtain the corresponding commanded water output according to the water output command, and compare the commanded water output with the historical water output in the water compensation list;
[0071] Step S703: Select the target historical water output volume that is closest to the commanded water output volume from the water volume compensation list, and control the faucet to perform water output operation according to the target historical water output volume.
[0072] In this embodiment, when time compensation cannot be used to compensate for the water flow of the faucet—for example, if a time compensation list cannot be established in time, or if the time compensation list lacks corresponding time data—the faucet can be directly controlled by water flow compensation. Of course, to achieve water flow compensation, a large amount of historical water flow data needs to be acquired in advance. This historical water flow data reflects the user's habitual water flow and suggests a corresponding water flow compensation list. Subsequently, when water flow compensation is needed, the corresponding water flow can be obtained through a water flow command. Then, the established water flow compensation list is queried based on this water flow to find the historical water flow closest to that flow, and the faucet is controlled to flow according to that historical flow. Alternatively, if the corresponding commanded water flow cannot be obtained from the water flow command, the most frequently occurring historical water flow can be selected from the water flow compensation list, and the faucet can be controlled to flow according to that historical flow.
[0073] Figure 8 This is a schematic block diagram of a faucet water outlet control device 800 provided in an embodiment of the present invention. The device 800 is applied to a water treatment system, which includes a faucet and a water treatment device communicatively connected to the faucet. The control device 800 includes:
[0074] The fault judgment unit 801 is used to determine whether there is a water discharge fault in the water treatment system in response to the water discharge command;
[0075] The first determination unit 802 is used to control the faucet to perform water dispensing operation according to the normal water dispensing mode based on the water dispensing command if it is determined that there is no water dispensing fault in the water treatment system.
[0076] The second determination unit 803 is used to control the faucet to perform water discharge operation according to the abnormal water discharge mode based on the water discharge command if it is determined that there is a water discharge fault in the water treatment system; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.
[0077] In one embodiment, such as Figure 9 As shown, the fault determination unit 801 includes:
[0078] The feedback judgment unit 901 is used to control the faucet to send a corresponding water discharge signal to the water treatment device when a water discharge command is received, and to determine whether a feedback signal sent by the water treatment device is received.
[0079] The first fault determination unit 902 is used to determine that the water treatment system has not experienced a water outflow fault if it receives a feedback signal sent by the water treatment device.
[0080] The second fault determination unit 903 is used to determine that the water treatment system has a water outflow fault if no feedback signal is received from the water treatment device.
[0081] In one embodiment, such as Figure 10 As shown, the fault determination unit 801 further includes:
[0082] Anomaly detection unit 1001 is used to determine whether a water flow abnormality signal sent by the water treatment system is received;
[0083] The third fault determination unit 1002 is used to determine that the water treatment system has a water outflow fault if it receives a water flow abnormality signal sent by the water treatment system.
[0084] The fourth fault determination unit 1003 is used to determine that the water treatment system has not experienced a water outflow fault if it does not receive a water flow abnormality signal sent by the water treatment system.
[0085] In one embodiment, such as Figure 11 As shown, the second determination unit 803 includes:
[0086] The water collection unit 1101 is used to collect in advance the water outlet time and number of times the faucet is in normal water outlet mode for a set water outlet volume;
[0087] The unit calculation unit 1102 is used to calculate the unit water flow rate and the first unit water flow time of the faucet based on the set water flow rate, water flow time and water flow frequency.
[0088] The water output compensation unit 1103 is used to compensate the water output time of the faucet in the abnormal water output mode according to the first unit water output time.
[0089] In one embodiment, such as Figure 12 As shown, the faucet water outlet control device 800 further includes:
[0090] The time division unit 1201 is used to set the water outlet cycle and divide the water outlet cycle into multiple time periods, and obtain the second unit water outlet time required by the faucet for the unit water outlet volume in each time period.
[0091] The difference calculation unit 1202 is used to calculate the time difference between the first unit water discharge time and the second unit water discharge time, and use the time difference as the compensation time for the corresponding time period.
[0092] The first establishment unit 1203 is used to establish a time compensation list by combining the time period and the compensation time corresponding to the time period.
[0093] In one embodiment, such as Figure 13 As shown, the water outlet compensation unit 1103 includes:
[0094] The first query unit 1301 is used to obtain the target time period corresponding to the water discharge instruction, and to query the corresponding target compensation time from the time compensation list according to the target time period.
[0095] The time compensation unit 1302 is used to obtain the target water output corresponding to the water output command, calculate the target water output time corresponding to the target water output in combination with the unit water output flow rate, and then add the target water output time and the target compensation time together, and use the sum as the water output time of the faucet in the abnormal water output mode.
[0096] In one embodiment, such as Figure 14 As shown, the second determination unit 803 further includes:
[0097] The second establishment unit 1401 is used to collect the historical water output of the faucet in advance and establish a water output compensation list based on the historical water output.
[0098] The second query unit 1402 is used to obtain the corresponding command water volume according to the water discharge command, and compare the command water volume with the historical water volume in the water volume compensation list.
[0099] The water volume compensation unit 1403 is used to select the target historical water volume that is closest to the commanded water volume from the water volume compensation list, and control the faucet to perform water dispensing operation according to the target historical water volume.
[0100] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0101] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed, can perform the steps provided in the above embodiments. The storage medium may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0102] This invention also provides a computer device, which may include a memory and a processor. The memory stores a computer program, and when the processor calls the computer program in the memory, it can implement the steps provided in the above embodiments. Of course, the computer device may also include various network interfaces, power supplies, and other components.
[0103] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0104] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for controlling water flow from a faucet, applied to a water treatment system, the water treatment system comprising a faucet and a water treatment device communicatively connected to the faucet, characterized in that, The control method includes: In response to a water discharge command, determine whether the water treatment system has a water discharge fault; If it is determined that there is no water discharge fault in the water treatment system, then the faucet is controlled to discharge water according to the normal water discharge mode based on the water discharge command. If it is determined that there is a water discharge fault in the water treatment system, the faucet is controlled to perform water discharge operation according to the water discharge command and the abnormal water discharge mode; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy. The step of compensating for water discharge under the abnormal water discharge mode according to a preset compensation strategy includes: Pre-collect data on the faucet's normal water flow mode, including the water flow time and frequency for a set water flow rate; The unit water flow rate and the first unit water flow time of the faucet are calculated based on the set water flow rate, water flow time and water flow frequency. The water flow time of the faucet in the abnormal water flow mode is compensated based on the first unit water flow time.
2. The faucet water outlet control method according to claim 1, characterized in that, The step of responding to a water discharge command and determining whether the water treatment system has a water discharge fault includes: When a water dispensing command is received, the faucet is controlled to send a corresponding water dispensing signal to the water treatment device, and it is determined whether a feedback signal sent by the water treatment device is received. If a feedback signal is received from the water treatment device, it is determined that the water treatment system has not experienced a water outflow failure. If no feedback signal is received from the water treatment device, it is determined that the water treatment system has a water outflow failure.
3. The faucet water outlet control method according to claim 1, characterized in that, The step of responding to a water discharge command and determining whether the water treatment system has a water discharge fault further includes: Determine whether an abnormal water flow signal is received from the water treatment system; If an abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has a water outflow failure. If no abnormal water flow signal is received from the water treatment system, it is determined that the water treatment system has not experienced a water outflow failure.
4. The faucet water outlet control method according to claim 1, characterized in that, Also includes: Set a water flow cycle and divide the water flow cycle into multiple time periods, and obtain the second unit water flow time required by the faucet for the unit water flow rate in each time period; Calculate the time difference between the first unit water output time and the second unit water output time, and use the time difference as the compensation time for the corresponding time period; A time compensation list is established by combining the time period and the corresponding compensation time.
5. The faucet water outlet control method according to claim 4, characterized in that, The step of compensating the faucet for water flow time under the abnormal water flow mode based on the first unit water flow time includes: Obtain the target time period corresponding to the water discharge command, and query the corresponding target compensation time from the time compensation list according to the target time period; Obtain the target water output corresponding to the water output command, and calculate the target water output time corresponding to the target water output in combination with the unit water output flow rate. Then, add the target water output time and the target compensation time together, and use the sum as the water output time of the faucet in the abnormal water output mode.
6. The faucet water outlet control method according to claim 1, characterized in that, When time compensation cannot be used to compensate for the water flow of the faucet, the step of compensating for the water flow in the abnormal water flow mode according to a preset compensation strategy further includes: The historical water output of the faucet is collected in advance, and a water volume compensation list is established based on the historical water output. The corresponding water output volume is obtained according to the water output command, and the water output volume is compared and queried with the historical water output volume in the water compensation list; Select the target historical water output volume that is closest to the commanded water output volume from the water volume compensation list, and control the faucet to perform water output operation according to the target historical water output volume.
7. A faucet water outlet control device employing the faucet water outlet control method as described in claim 1, applied to a water treatment system, the water treatment system comprising a faucet and a water treatment device communicatively connected to the faucet, characterized in that, The control device includes: The fault determination unit is used to determine whether there is a water discharge fault in the water treatment system in response to the water discharge command; The first determination unit is used to control the faucet to perform water dispensing operation according to the normal water dispensing mode based on the water dispensing command if it is determined that there is no water dispensing fault in the water treatment system. The second determination unit is used to control the faucet to perform water discharge operation according to the abnormal water discharge mode based on the water discharge command if it is determined that there is a water discharge fault in the water treatment system; wherein, the abnormal water discharge mode is: water discharge compensation is performed on the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.
8. A faucet, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the faucet water outlet control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the faucet water outlet control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Control method, device, control chip and water heater
CN105222354A
KR20200137252A