Faucet water outlet control method and device, faucet and storage medium

By introducing a fault judgment unit and an abnormal water outlet mode into the faucet, the quantitative water intake failure caused by abnormal communication between the smart faucet and the water purifier is solved, and the control effect and reliability of the faucet are improved.

CN119712925AActive Publication Date: 2025-03-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411870198.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-28
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

The abnormal communication between the existing smart faucet and the water purifier leads to the failure of the quantitative water withdrawal function, which may lead to excessive water discharge of the faucet, resulting in loss of users' property or waste of resources.

Method used

A fault judgment unit is introduced into the faucet to determine whether there is a water effluent failure in the water treatment system in response to the water outlet command. If there is a fault, an abnormal water outlet mode is adopted and water outlet compensation is performed according to the preset compensation strategy to ensure that the water outlet complies with the instruction.

Benefits of technology

It improves the control effect of the faucet's quantitative water outlet, enhances the reliability of the faucet's use, and avoids waste of resources and user losses caused by communication failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119712925A_ABST
    Figure CN119712925A_ABST
Patent Text Reader

Abstract

The invention discloses a faucet water outlet control method and device, a faucet and a storage medium, and the control method comprises the steps: responding to a water outlet instruction, and judging whether a water treatment system has a water outlet fault or not; if it is judged that the water treatment system does not have the water outlet fault, a faucet is controlled to conduct water outlet operation according to the water outlet instruction and a normal water outlet mode; if it is judged that the water treatment system has the water outlet fault, a faucet is controlled to conduct water outlet operation according to the water outlet instruction and the abnormal water outlet mode; wherein the abnormal water outlet mode is that water outlet compensation is carried out on the water outlet operation in the abnormal water outlet mode according to the compensation strategy. When the water faucet is controlled to execute the water outlet operation, if no fault exists, the water faucet is controlled to discharge water according to the normal water outlet mode, if the fault exists, water outlet compensation is conducted on the water faucet, the water outlet amount of the water faucet conforms to the water outlet amount in the water outlet instruction, and therefore the control effect of quantitative water outlet of the water faucet can be improved; and the use reliability of the faucet is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water treatment devices, and in particular to a faucet water outlet control method, device, faucet and storage medium. Background Art

[0002] With the improvement of living standards, people pay more and more attention to the quality of life, especially about the health of drinking water. In order to meet the needs of drinking filtered clean water and convenient water collection, the prior art proposes a water treatment system that uses intelligent faucets and water purifiers and other water treatment devices. Through this water treatment system, the user's water collection experience can be greatly improved. At present, for example, for a water treatment system that includes an intelligent faucet and a water purifier, the intelligent faucet and the water purifier are generally controlled by their own control motherboards, and the two exchange information through a set communication protocol. Under normal circumstances, after the user operates a certain amount of quantitative water collection at the faucet, the faucet is responsible for starting the water collection and feeding back the water collection signal to the water purifier. The water purifier is responsible for making water and calculating the water output at the same time, and feeding back a stop water output signal to the faucet after the water output reaches the user's demand, and the faucet stops drawing water according to the stop water output signal. However, this method has certain defects. For example, when abnormal transmission or communication problems occur between the water purifier and the faucet, the corresponding quantitative water extraction function cannot be used. For example, the water purifier cannot feedback the stop water flow signal to the faucet, which can easily lead to excessive water flow from the faucet, thereby causing property loss to the user or waste of resources.

[0003] In addition, the water purifier actually calculates the water output through a water flow device, and in actual applications, in order to make the water treatment system small in size, easy to operate, and beautiful, devices for calculating water flow are not installed on the faucet, which means that the specific water output information needs to be calculated by the water purifier before it is sent to the faucet. If there is an abnormal transmission or communication problem between the water purifier and the faucet, and the data cannot be synchronized with each other, the information cannot be transmitted, resulting in the faucet, or if the water flow device in the water purifier fails, the faucet will not be able to know the information to stop the water output, which will also make the quantitative water extraction function unusable. Summary of the invention

[0004] The embodiments of the present invention provide a faucet water outlet control method, device, faucet and storage medium, aiming to improve the control effect of quantitative water outlet of the faucet, thereby improving the reliability of the use of the faucet.

[0005] In a first aspect, an embodiment of the present invention provides a faucet water outlet control method, which is applied to a water treatment system, wherein the water treatment system includes a faucet and a water treatment device communicatively connected to the faucet, and the control method includes:

[0006] In response to the water discharge instruction, determining whether the water treatment system has a water discharge failure;

[0007] If it is determined that there is no water discharge failure in the water treatment system, then according to the water discharge instruction, the faucet is controlled to perform water discharge operation in a normal water discharge mode;

[0008] If it is determined that there is a water outlet failure in the water treatment system, the faucet is controlled to perform water outlet operation according to the water outlet instruction and in an abnormal water outlet mode; wherein the abnormal water outlet mode is: water outlet compensation is performed for the water outlet operation in the abnormal water outlet mode according to a preset compensation strategy.

[0009] In a second aspect, an embodiment of the present invention provides a faucet water outlet control device, which is applied to a water treatment system, wherein the water treatment system includes a faucet and a water treatment device communicatively connected to the faucet, and the control device includes:

[0010] a fault judgment unit, for judging whether the water treatment system has a water discharge fault in response to a water discharge instruction;

[0011] A first determination unit is configured to control the faucet to perform water discharge operation according to a normal water discharge mode according to the water discharge instruction if it is determined that the water treatment system does not have a water discharge failure;

[0012] The second determination unit is used to control the faucet to perform water discharge operation according to an abnormal water discharge mode based on the water discharge instruction if it is determined that there is a water discharge failure in the water treatment system; wherein the abnormal water discharge mode is: water discharge compensation for the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.

[0013] In a third aspect, an embodiment of the present invention provides a faucet, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the faucet water outlet control method as described in the first aspect when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the faucet water outlet control method as described in the first aspect is implemented.

[0015] An embodiment of the present invention provides a faucet water outlet control method, device, faucet and storage medium. The control method is applied to a water treatment system, wherein the water treatment system includes a faucet and a water treatment device communicatively connected to the faucet. The control method includes: responding to a water outlet instruction, determining whether the water treatment system has a water outlet fault; if it is determined that the water treatment system does not have a water outlet fault, controlling the faucet to perform a water outlet operation according to a normal water outlet mode according to the water outlet instruction; if it is determined that the water treatment system has a water outlet fault, controlling the faucet to perform a water outlet operation according to an abnormal water outlet mode according to the water outlet instruction; wherein the abnormal water outlet mode is: performing water outlet compensation for the water outlet operation under the abnormal water outlet mode according to a preset compensation strategy. When controlling the faucet to perform the water outlet operation according to the water outlet instruction, the embodiment of the present invention first determines whether there is an abnormal fault between the faucet and the water treatment device in the water treatment system, such as determining whether there is a communication fault, etc. If it is determined that there is no fault, the faucet is controlled to outlet water according to the normal water outlet mode. If it is determined that there is a fault, the faucet is controlled to outlet water according to the abnormal water outlet mode. In the abnormal water outlet mode, the faucet will be compensated for the water outlet accordingly, so that the final water outlet of the faucet is consistent with the water outlet in the water outlet instruction, thereby improving the control effect of the quantitative water outlet of the faucet, and further improving the reliability of the use of the faucet. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0017] Figure 1 A schematic flow chart of a faucet control method provided by an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of a sub-flow chart of step S101 in a faucet control method provided by an embodiment of the present invention;

[0019] Figure 3 Another sub-flow diagram of step S101 in a faucet control method provided by an embodiment of the present invention;

[0020] Figure 4 A schematic diagram of a sub-flow chart of step S103 in a faucet control method provided by an embodiment of the present invention;

[0021] Figure 5 Another schematic diagram of a flow chart of a faucet control method provided by an embodiment of the present invention;

[0022] Figure 6 A schematic diagram of a sub-flow chart of step S403 in a faucet control method provided by an embodiment of the present invention;

[0023] Figure 7 Another sub-flow diagram of step S103 in a faucet control method provided by an embodiment of the present invention;

[0024] Figure 8 A schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0025] Fig. 9 A first sub-schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0026] Fig.10 A second sub-schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0027] Fig.11 A third sub-schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0028] Fig.12 A fourth sub-schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0029] Fig.13 A fifth sub-schematic block diagram of a faucet control device provided by an embodiment of the present invention;

[0030] Fig.14 This is a sixth sub-schematic block diagram of a faucet control device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work 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 "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0033] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0034] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0035] See below Figure 1 An embodiment of the present invention provides a faucet water outlet control method, which is applied to a water treatment system. The water treatment system includes a faucet and a water treatment device communicatively connected to the faucet. The control method specifically includes steps S101 to S103.

[0036] Step S101, in response to a water outlet instruction, determining whether the water treatment system has a water outlet failure;

[0037] Step S102: if it is determined that the water treatment system has no water outlet failure, then according to the water outlet instruction, the faucet is controlled to perform water outlet operation in a normal water outlet mode;

[0038] Step S103: if it is determined that there is a water outlet failure in the water treatment system, the faucet is controlled to perform water outlet operation according to the water outlet instruction and in an abnormal water outlet mode; wherein the abnormal water outlet mode is: water outlet compensation is performed for the water outlet operation in the abnormal water outlet mode according to a preset compensation strategy.

[0039] In this embodiment, when controlling the faucet to perform the water outlet operation according to the water outlet instruction, it is first determined whether there is an abnormal fault between the faucet and the water treatment device in the water treatment system, such as whether there is a communication fault, etc. If it is determined that there is no fault, the faucet is controlled to discharge water according to the normal water outlet mode. If it is determined that there is a fault, the faucet is controlled to discharge water according to the abnormal water outlet mode. In the abnormal water outlet mode, the faucet will be compensated for the water outlet accordingly, so that the final water outlet of the faucet is consistent with the water outlet in the water outlet instruction. This improves the control effect of the quantitative water outlet of the faucet, 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 connected to the faucet, or other water treatment devices such as a water purifier, a water cooker, etc. 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] In addition, the water outlet instruction described in this embodiment can be generated after the user operates the faucet, or it can be generated by the user setting a timing instruction for the faucet in advance. For example, in actual application, the user can operate the faucet button to make the faucet perform a quantitative water outlet function, such as setting a quantitative water outlet of 500ml. After receiving the instruction, the faucet can control the water outlet through the water outlet solenoid valve or other water outlet load, and send a water outlet signal to the water purifier or other water treatment device, so that the water purifier or other water treatment device starts water treatment after receiving the water outlet signal. At this time, it can be detected whether there is a communication fault between the faucet and the water purifier or other water treatment device, and then decide whether to discharge water in normal mode or abnormal mode according to the fault judgment result.

[0042] In one embodiment, if Figure 2 As shown, the step S101 includes: steps S201 to S203.

[0043] Step S201, when receiving a water outlet instruction, controlling the faucet to send a corresponding water outlet signal to the water treatment device, and determining whether a feedback signal sent by the water treatment device is received;

[0044] Step S202: if a feedback signal sent by the water treatment device is received, it is determined that the water treatment system has no water discharge failure;

[0045] Step S203: If the feedback signal sent by the water treatment device is not received, it is determined that a water outflow failure occurs in the water treatment system.

[0046] This embodiment determines whether there is a communication failure by exchanging signals between the faucet and the water treatment device. For example, when the faucet and the water treatment device can successfully exchange signals, it is determined that there is no communication failure in the overall water treatment system. If the faucet and the water treatment device fail to exchange signals, it can be determined that there is a communication failure in the water treatment system, and therefore the normal water outlet mode cannot continue to operate.

[0047] In another embodiment, if Figure 3 As shown, the step S101 also includes: steps S301 to S303.

[0048] Step S301, determining whether a water flow abnormality signal sent by the water treatment system is received;

[0049] Step S302: if a water flow abnormality signal sent by the water treatment system is received, it is determined that a water outflow failure occurs in the water treatment system;

[0050] Step S303: If no water flow abnormality signal sent by the water treatment system is received, it is determined that no water outlet failure occurs in the water treatment system.

[0051] In addition to the above communication fault judgment, the water flow detection device installed in the water treatment device can also be judged to prevent the water treatment device from sending a stop water discharge signal to the faucet too late or too early due to a fault in the water flow detection device, thereby further improving the water discharge control effect of the faucet. In actual application scenarios, the control motherboard or other controller of the water treatment device can be used to determine whether there is a detection fault in the water flow detection device. If it is determined that the water flow detection device has a detection fault, an abnormal water flow signal is sent to the faucet to make the faucet operate in an abnormal water discharge mode; if it is determined that the water flow detection device has no detection fault, a normal water flow signal is sent to the faucet or no signal about the water flow is sent to the faucet to make the faucet operate in a normal water discharge mode.

[0052] In some optional embodiments, the communication failure and the water flow abnormality signal can be combined to determine whether the faucet is in the normal water outlet mode or the abnormal water outlet mode. That is, when the feedback signal about the water outlet signal sent by the water treatment device is received and the water flow abnormality signal sent by the water treatment system is not received, it is determined that the water treatment system has no water outlet failure, and the faucet is controlled to operate in the normal water outlet mode; when the feedback signal about the water outlet signal sent by the water treatment device is not received and / or the water flow abnormality signal sent by the water treatment system is received, it is determined that the water treatment system has a water outlet failure, and the faucet is controlled to operate in the abnormal water outlet mode.

[0053] In one embodiment, if Figure 4 As shown, the step S103 includes: steps S401 to S403.

[0054] Step S401, pre-collecting the water discharge time and water discharge frequency of the faucet for a set water discharge volume in a normal water discharge mode;

[0055] Step S402, calculating the unit water flow rate and the first unit water flow time of the faucet according to the set water flow rate, water flow time and water flow times;

[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 outlet parameters of the faucet in the normal water outlet mode are collected, so that the water outlet compensation of the faucet in the abnormal water outlet mode is performed according to the collected water outlet parameters. Specifically, the water outlet of the faucet is controlled according to the set water outlet, and the water outlet time and water outlet frequency of the faucet during the water outlet are collected, and then the unit water outlet flow rate of the faucet (i.e., the water outlet volume of the faucet each time) is calculated according to the set water outlet and its corresponding water outlet frequency. After the unit water outlet flow rate is calculated, the first unit water outlet time corresponding to the unit water outlet flow rate (i.e., the time required for the faucet to complete the unit water outlet flow rate each time) is calculated in combination with the corresponding water outlet time, and then the water outlet time compensation can be performed in combination with the first unit water outlet time. For example, the water outlet time under the abnormal water outlet model can be determined according to the water outlet and the unit water outlet flow in the abnormal water outlet mode, and the faucet is made to discharge water according to the water outlet time. For example, the water output is set to 500ml, the collected water output time is 20s, and the number of water outputs is 10 times. Then, based on the set water output and the number of water outputs, it can be calculated that the water output of the faucet each time is 50ml, and combined with the water output time, the first unit water output time is calculated to be 2s.

[0058] In actual application scenarios, water output parameters can be collected for a long time and multiple times. For example, water can be collected 10 times a day and circulated for 1 month, that is, 300 times. Then the unit water output 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, setting a water flow cycle, and dividing the water flow cycle into a plurality of time periods, and obtaining a second unit water flow time required for the faucet for the unit water flow in each time period;

[0061] Step S502: Calculate the time difference between the first unit water outlet time and the second unit water outlet time, and use the time difference as the compensation time of the corresponding time period;

[0062] Step S503: Create a time compensation list by combining the time period and the compensation time corresponding to the time period.

[0063] In order to improve the setting accuracy of the water outlet time, the present embodiment sets a water outlet cycle, such as one day or one week as a water outlet cycle, and then further subdivides the water outlet cycle into different time periods, such as dividing the 24 hours of a day into different time periods, such as one time period every three hours or four hours, and respectively calculating the second unit water outlet time of the faucet at a unit water outlet flow rate for these time periods, and then comparing and obtaining the difference between the first unit water outlet time and the second unit water outlet time, and then using the difference as the water outlet compensation for the time period. For example, the second unit water outlet time in the time period from 8:00 to 10:00 is calculated, and the difference between the first unit water outlet time and the second unit water outlet time in the time period from 8:00 to 10:00 is calculated, and then the difference is used as the compensation time for the time period from 8:00 to 10:00. Preferably, in order to further improve the compensation accuracy, the division of the time periods can be further refined.

[0064] In one embodiment, if Figure 6 As shown, the step S403 includes: steps S601 to S602.

[0065] Step S601, obtaining a target time period corresponding to the water outlet instruction, and querying the time compensation list to obtain a corresponding target compensation time according to the target time period;

[0066] Step S602, obtain the target water output corresponding to the water output instruction, 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, and use the addition result 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 water flow of the faucet according to the abnormal water flow mode, the specific water flow time period, that is, the target time period, can be extracted according to the corresponding water flow instruction, and then the time period that is the same as the target time period can be found in the time compensation list, and the compensation time corresponding to the time period can be extracted. Then the water flow rate is determined according to the water flow instruction, and the water flow time is calculated in combination with the unit water flow rate of the faucet. Finally, the water flow time is combined with the extracted compensation time as the final water flow time, and the faucet is made to flow water according to the final water flow time. In this way, the faucet can autonomously control the water flow time, and the technical effect of the faucet quantitative water flow function can still be used can be achieved, the reliability of product use can be improved, and the user experience can be improved.

[0068] In one embodiment, if Figure 7 As shown, the step S103 also includes: steps S701 to S703.

[0069] Step S701: pre-collect the historical water output of the faucet, and establish a water compensation list according to the historical water output;

[0070] Step S702: acquiring a corresponding command water output according to the water output command, and comparing the command water output with the historical water output in the water output compensation list;

[0071] Step S703: Select a target historical water output that is closest to the command water output from the water output compensation list, and control the faucet to perform a water output operation according to the target historical water output.

[0072] In this embodiment, when it is not possible to use the time compensation method to compensate the water discharge operation of the faucet, for example, the time compensation list cannot be established in time, or the time compensation list lacks the corresponding time data, then the water discharge of the faucet can be directly controlled by the water output compensation method. Of course, in order to achieve water output compensation, it is necessary to obtain a large amount of historical water output data in advance. These historical water output data can reflect the user's habitual water output, and the corresponding water output compensation list is recommended. Subsequently, when water output compensation is required, the corresponding water output can be obtained through the water output instruction, and then the established water output compensation list is queried according to the water output to find the historical water output closest to the water output, and then the faucet is controlled to discharge water according to the historical water output. Of course, if the corresponding command water output cannot be obtained in the water output instruction, the historical water output with the highest frequency can also be selected from the water output compensation list, and then the faucet is controlled to discharge water according to the historical water output.

[0073] Figure 8 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, the water treatment system includes a faucet and a water treatment device communicatively connected to the faucet, the control device 800 includes:

[0074] A fault judgment unit 801 is used to judge whether there is a water discharge fault in the water treatment system in response to a water discharge instruction;

[0075] The first determination unit 802 is configured to control the faucet to perform water discharge operation according to the normal water discharge mode according to the water discharge instruction if it is determined that the water treatment system does not have a water discharge failure;

[0076] The second determination unit 803 is used to control the faucet to perform water discharge operation according to the abnormal water discharge mode according to the water discharge instruction if it is determined that there is a water discharge failure in the water treatment system; wherein the abnormal water discharge mode is: water discharge compensation for the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.

[0077] In one embodiment, if Fig. 9 As shown, the fault judgment unit 801 includes:

[0078] The feedback judgment unit 901 is used to control the faucet to send a corresponding water outlet signal to the water treatment device when receiving a water outlet instruction, and to judge whether a feedback signal sent by the water treatment device is received;

[0079] A first fault determination unit 902 is configured to determine that no water discharge fault occurs in the water treatment system upon receiving a feedback signal sent by the water treatment device;

[0080] The second fault determination unit 903 is configured to determine that a water outflow fault occurs in the water treatment system if no feedback signal sent by the water treatment device is received.

[0081] In one embodiment, if Fig.10 As shown, the fault judgment unit 801 also includes:

[0082] An abnormality determination 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 configured to determine that a water outflow fault occurs in the water treatment system if a water flow abnormality signal sent by the water treatment system is received;

[0084] The fourth fault determination unit 1003 is configured to determine that no water outflow fault occurs in the water treatment system if no water flow abnormality signal sent by the water treatment system is received.

[0085] In one embodiment, if Fig.11 As shown, the second determination unit 803 includes:

[0086] The water output collection unit 1101 is used to collect the water output time and water output times of the faucet for a set water output volume in a normal water output mode in advance;

[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 according to the set water flow rate and the water flow time and water flow times;

[0088] The water outlet compensation unit 1103 is used to compensate the water outlet time of the faucet in the abnormal water outlet mode according to the first unit water outlet time.

[0089] In one embodiment, if Fig.12 As shown, the faucet water outlet control device 800 also includes:

[0090] The time division unit 1201 is used to set a water flow cycle and divide the water flow cycle into a plurality of time periods, and obtain a second unit water flow time required by the faucet for the unit water flow in each time period;

[0091] A difference calculation unit 1202 is used to calculate the time difference between the first unit water outlet time and the second unit water outlet time, and use the time difference as the compensation time of the corresponding time period;

[0092] The first establishing unit 1203 is configured to establish a time compensation list in combination with the time period and the compensation time corresponding to the time period.

[0093] In one embodiment, if Fig.13 As shown, the outlet water 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 query the time compensation list to obtain the corresponding target compensation time 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 instruction, and 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, and use the addition result as the water output time of the faucet in the abnormal water output mode.

[0096] In one embodiment, if Fig.14 As shown, the second determining unit 803 further includes:

[0097] The second establishing unit 1401 is used to collect the historical water output of the faucet in advance and establish a water compensation list according to the historical water output;

[0098] The second query unit 1402 is used to obtain the corresponding command water output according to the water output instruction, and compare the command water output with the historical water output in the water compensation list;

[0099] The water volume compensation unit 1403 is used to select a target historical water volume that is closest to the command water volume from the water volume compensation list, and control the faucet to perform a water output operation according to the target historical water volume.

[0100] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0101] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0102] The embodiment of the present invention also provides a computer device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the computer device may also include various network interfaces, power supplies and other components.

[0103] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0104] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for controlling water flow from a faucet, applied to a water treatment system, wherein the water treatment system comprises a faucet and a water treatment device communicatively connected to the faucet, characterized in that: The control method comprises: In response to the water discharge instruction, determining whether the water treatment system has a water discharge failure; If it is determined that there is no water discharge failure in the water treatment system, then according to the water discharge instruction, the faucet is controlled to perform water discharge operation in a normal water discharge mode; If it is determined that there is a water outlet failure in the water treatment system, the faucet is controlled to perform water outlet operation according to the water outlet instruction and in an abnormal water outlet mode; wherein the abnormal water outlet mode is: water outlet compensation is performed for the water outlet operation in the abnormal water outlet mode according to a preset compensation strategy.

2. The faucet water flow control method according to claim 1, characterized in that: The step of determining, in response to the water discharge instruction, whether the water treatment system has a water discharge failure comprises: When receiving a water outlet command, controlling the faucet to send a corresponding water outlet signal to the water treatment device, and determining whether a feedback signal sent by the water treatment device is received; If a feedback signal sent by the water treatment device is received, it is determined that no water discharge failure occurs in the water treatment system; If the feedback signal sent by the water treatment device is not received, it is determined that a water outflow failure occurs in the water treatment system.

3. The faucet water flow control method according to claim 1, characterized in that: The step of determining, in response to the water discharge instruction, whether the water treatment system has a water discharge failure further comprises: Determining whether a water flow abnormality signal sent by the water treatment system is received; If a water flow abnormality signal sent by the water treatment system is received, it is determined that a water outflow failure occurs in the water treatment system; If no water flow abnormality signal sent by the water treatment system is received, it is determined that no water outlet failure occurs in the water treatment system.

4. The faucet water flow control method according to claim 1, characterized in that: The performing water discharge compensation on the water discharge operation in the abnormal water discharge mode according to a preset compensation strategy includes: Pre-collect the water discharge time and water discharge frequency of the faucet for a set water discharge volume in a normal water discharge mode; The unit water flow rate and the first unit water flow time of the faucet are calculated according to the set water flow rate, water flow time and water flow times; The water flow time of the faucet in the abnormal water flow mode is compensated for according to the first unit water flow time.

5. The faucet water flow control method according to claim 4, characterized in that: Also includes: Setting a water flow cycle, and dividing the water flow cycle into a plurality of time periods, and obtaining a second unit water flow time required for the faucet with respect to the unit water flow in each time period; Calculate the time difference between the first unit water outlet time and the second unit water outlet time, and use the time difference as the compensation time for the corresponding time period; A time compensation list is established in combination with the time periods and the compensation times corresponding to the time periods.

6. The faucet water flow control method according to claim 5, characterized in that: The compensating the water flow time of the faucet in the abnormal water flow mode according to the first unit water flow time includes: Obtaining a target time period corresponding to the water discharge instruction, and querying the time compensation list to obtain a corresponding target compensation time according to the target time period; Obtain the target water output corresponding to the water output instruction, 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, and use the addition result as the water output time of the faucet in the abnormal water output mode.

7. The faucet water flow control method according to claim 1, characterized in that: The method of performing water discharge compensation for the water discharge operation in the abnormal water discharge mode according to a preset compensation strategy also includes: Collecting the historical water output of the faucet in advance, and establishing a water compensation list according to the historical water output; Acquire a corresponding command water output according to the water output command, and compare and query the command water output with the historical water output in the water output compensation list; A target historical water output that is closest to the command water output is selected from the water output compensation list, and the faucet is controlled to perform a water output operation according to the target historical water output.

8. A faucet water outlet control device, 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 comprises: a fault judgment unit, for judging whether the water treatment system has a water discharge fault in response to a water discharge instruction; A first determination unit is configured to control the faucet to perform water discharge operation according to a normal water discharge mode according to the water discharge instruction if it is determined that the water treatment system does not have a water discharge failure; The second determination unit is used to control the faucet to perform water discharge operation according to an abnormal water discharge mode based on the water discharge instruction if it is determined that there is a water discharge failure in the water treatment system; wherein the abnormal water discharge mode is: water discharge compensation for the water discharge operation under the abnormal water discharge mode according to a preset compensation strategy.

9. A faucet, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the faucet water outlet control method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the faucet water outlet control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Control method, device, control chip and water heater

    CN105222354A

  • Intelligent closestool flow calibration method and device and intelligent closestool

    CN111441437A

  • Water supply sterilization device and non-negative pressure secondary water supply system

    CN115010210A

  • Trouble occurrence monitoring device and trouble occurrence monitoring method using the same

    JP2015190660A

  • Devices for delivering drugs to the oral cavity

    KR1020220053150A