Intelligent water shortage monitoring and soft protection method and system for coffee machine
By using a non-contact photoelectric sensor for water level detection in coffee machines, the problem of easy contamination of traditional water level sensors is solved, achieving higher detection reliability and ease of cleaning, extending sensor life and reducing coffee machine malfunctions.
Patent Information
- Application Number
- CN202311528103.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2026-05-15
- Estimated Expiration
- 2043-11-15
AI Technical Summary
Existing coffee machine water level sensors are prone to contamination, are difficult to clean, and affect their lifespan and detection reliability.
A non-contact photoelectric sensor is used for water level detection. The water level status of the water tank is analyzed by acquiring the water level detection signal, and water shortage control operations are performed when water is scarce, including water shortage warning and water discharge disabling control.
This reduces the difficulty of cleaning the sensor, extends its service life, reduces the occurrence of water pump idling damaging the coffee machine, and improves the reliability of water level detection and the accuracy of user prompts.
Smart Images

Figure CN117378931B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water shortage management technology, and in particular to an intelligent water shortage monitoring and soft protection method and system for coffee machines. Background Technology
[0002] Most existing coffee machines are equipped with intelligent water tank level detection. Common water tank level monitoring functions mostly use float switches or Hall effect sensors to detect the water level. However, the Hall effect sensors used in this traditional method accumulate various contaminants after prolonged contact with the water in the tank, leading to a decrease in sensor sensitivity and lifespan. Furthermore, the accumulated contaminants over time increase the difficulty of cleaning the sensor. Therefore, it is crucial to provide a method that ensures the normal operation of water level sensors while reducing cleaning difficulty, addressing the technical problems of easy contamination and high cleaning difficulty inherent in existing water level sensors. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method and system for intelligent water shortage monitoring and soft protection of coffee machines, which can realize non-contact water level sensing, improve the reliability of water level detection, and reduce the difficulty of cleaning the sensor.
[0004] To address the aforementioned technical problems, the first aspect of this invention discloses an intelligent water shortage monitoring and soft protection method for a coffee machine. The coffee machine's water tank is equipped with a photoelectric sensor for water shortage detection, and the photoelectric sensor does not directly contact the water in the water tank. The method includes:
[0005] The water level detection signal fed back by the photoelectric sensor is obtained, and the water level detection signal is analyzed to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than a preset first detection water level or a non-first water level status.
[0006] When the water level in the water tank is determined to be the first water level, a water shortage control operation is performed on the coffee machine according to the preset water shortage soft protection program to prompt the user that the coffee machine needs to be refilled with water. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control.
[0007] As an optional implementation, in a first aspect of the present invention, the first water level state includes a first sub-state or a second sub-state. When the water tank is in the first sub-state, the remaining water volume in the water tank is not lower than a preset second detection water level. When the water tank is in the second sub-state, the remaining water volume in the water tank is lower than the second detection water level or the remaining water volume is 0. The first detection water level is higher than the second detection water level.
[0008] When the water level in the water tank is determined to be the first water level state, the step of performing a water shortage control operation on the coffee machine according to the preset water shortage soft protection program includes:
[0009] When the water level in the water tank is in the first sub-state, a first control parameter for the coffee machine is generated according to the preset first water shortage control program and the water level. The first control parameter includes a first light control parameter and a first sensor control parameter.
[0010] The coffee machine's water shortage indicator light is switched to a constant-on state according to the first light control parameter; at the same time, the photoelectric sensor is controlled to perform water replenishment detection according to the first sensor control parameter to obtain the corresponding water replenishment detection result.
[0011] After determining that the water replenishment detection result indicates that the water level in the water tank is in a non-first water level state, the water shortage indicator light of the coffee machine is switched to a normally off state.
[0012] As an optional implementation, in the first aspect of the present invention, when the water level in the water tank is determined to be the first water level state, the step of performing a water shortage control operation on the coffee machine according to a preset water shortage soft protection program further includes:
[0013] When the water level in the water tank is in the second sub-state, a second control parameter for the coffee machine is generated according to the preset second water shortage control program and the water level. The second control parameter includes a second light control parameter, a second sensor control parameter, and a water outlet control parameter.
[0014] The coffee machine's water shortage indicator light is switched to a continuously flashing state according to the second light control parameter; at the same time, all functions of the coffee machine that require water are forcibly disabled according to the water outlet control parameter.
[0015] Then, based on the second sensing control parameters, the photoelectric sensor is controlled to perform water replenishment detection until it is determined that the water level in the water tank is not in the first water level state. At this point, the water shortage indicator light of the coffee machine is switched to a normally dark state, and all water-requiring functions of the coffee machine are restored.
[0016] As an optional implementation, in the first aspect of the present invention, when it is determined that the water level state of the water tank is not the first water level state, the method further includes:
[0017] Obtain water consumption information corresponding to each water-using function in the coffee machine. The water consumption information corresponding to each water-using function includes the frequency of use, single water consumption, and usage period of the water-using function.
[0018] Based on the water consumption information corresponding to all the water-using functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, the first water consumption information and the second water consumption information are determined; the first water consumption information is the water consumption information corresponding to the function with the highest probability of being used by the user next time among all the water-using functions; the second water consumption information is the water consumption information corresponding to the function with the highest water consumption among all the water-using functions.
[0019] Based on the first water consumption information and the second water consumption information, determine whether the real-time remaining water volume meets the preset water shortage warning conditions;
[0020] When it is determined that the real-time remaining water volume does not meet the water shortage warning condition, and it is determined that the real-time remaining quantity is higher than the preset third detection water level, the photoelectric sensor is switched to sleep mode.
[0021] The duration of the photoelectric sensor in the dormant state corresponds to the difference duration, which is the pre-calculated time required for the water level to rise from the third detection level to the first detection level.
[0022] As an optional implementation, in the first aspect of the present invention, when it is determined that the real-time remaining water volume meets the water shortage warning condition, the method further includes:
[0023] Determine the first water consumption function corresponding to the first water consumption information and the second water consumption function corresponding to the second water consumption information;
[0024] Based on the first water use function and the second water use function, a water shortage warning message is generated;
[0025] The water shortage warning information is sent back to the user's terminal associated with the coffee machine; or,
[0026] When the user starts the coffee machine again, the user's selected water function is matched with the water shortage warning information. When the two are matched, the water shortage warning light of the coffee machine is switched to a constant-on state according to the water shortage warning information. At the same time, a pre-control parameter is generated according to the water shortage warning information. The pre-control parameter is used to directly interrupt the operation of all water functions when the real-time remaining water level is detected to be lower than the second detection water level.
[0027] As an optional implementation, in the first aspect of the present invention, determining the first water consumption information and the second water consumption information based on the water consumption information corresponding to all the water-using functions, combined with the current monitoring time and the real-time remaining water volume of the water tank, includes:
[0028] Based on the water usage frequency and water usage time period corresponding to each water usage function, and in conjunction with the current monitoring time and its monitoring time period, determine all pending water usage functions for the user in the current monitoring time period or the next preset time period corresponding to the current monitoring time period.
[0029] The function with the highest water usage sequence among all the pending water usage functions is recorded as the first prediction function, and the water consumption information corresponding to the first prediction function is determined as the first water consumption information.
[0030] Based on the single water consumption corresponding to each of the aforementioned water-using functions, the function with the highest single water consumption is determined and denoted as the second prediction function, and the water consumption information corresponding to the second prediction function is determined as the second water consumption information.
[0031] As an optional implementation, in the first aspect of the present invention, the real-time remaining water volume satisfying the water shortage warning condition specifically includes:
[0032] The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function.
[0033] The specific reasons why the real-time remaining water volume does not meet the water shortage warning conditions include:
[0034] The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
[0035] A second aspect of this invention discloses an intelligent water shortage monitoring and soft protection system for a coffee machine. The water tank of the coffee machine is equipped with a photoelectric sensor for water shortage detection, and the photoelectric sensor does not directly contact the water in the water tank. The system includes:
[0036] The acquisition module is used to acquire the water level detection signal fed back by the photoelectric sensor;
[0037] The analysis module is used to analyze the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than a preset first detection water level, or a non-first water level status.
[0038] The water shortage control module is used to perform water shortage control operations on the coffee machine according to a preset water shortage soft protection program when the water level of the water tank is determined to be the first water level state, so as to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control.
[0039] As an optional implementation, in a second aspect of the present invention, the first water level state includes a first sub-state or a second sub-state. When the water tank is in the first sub-state, the remaining water volume in the water tank is not lower than a preset second detection water level. When the water tank is in the second sub-state, the remaining water volume in the water tank is lower than the second detection water level or the remaining water volume is 0. The first detection water level is higher than the second detection water level.
[0040] The water shortage control module performs water shortage control operations on the coffee machine according to a preset water shortage soft protection program, specifically including:
[0041] When the water level of the water tank is determined to be the first water level state, and when the water level of the water tank is in the first sub-state, the first control parameters for the coffee machine are generated according to the preset first water shortage control program in combination with the water level state. The first control parameters include the first light control parameters and the first sensor control parameters.
[0042] The coffee machine's water shortage indicator light is switched to a constant-on state according to the first light control parameter; at the same time, the photoelectric sensor is controlled to perform water replenishment detection according to the first sensor control parameter to obtain the corresponding water replenishment detection result.
[0043] After determining that the water replenishment detection result indicates that the water level in the water tank is in a non-first water level state, the water shortage indicator light of the coffee machine is switched to a normally off state.
[0044] As an optional implementation, in the second aspect of the present invention, the method by which the water shortage control module performs water shortage control operations on the coffee machine according to a preset water shortage soft protection program further includes:
[0045] When the water level of the water tank is determined to be the first water level state, and when the water level of the water tank is in the second sub-state, a second control parameter for the coffee machine is generated according to the preset second water shortage control program in combination with the water level state. The second control parameter includes a second light control parameter, a second sensor control parameter, and a water outlet control parameter.
[0046] The coffee machine's water shortage indicator light is switched to a continuously flashing state according to the second light control parameter; at the same time, all functions of the coffee machine that require water are forcibly disabled according to the water outlet control parameter.
[0047] Then, based on the second sensing control parameters, the photoelectric sensor is controlled to perform water replenishment detection until it is determined that the water level in the water tank is not in the first water level state. At this point, the water shortage indicator light of the coffee machine is switched to a normally dark state, and all water-requiring functions of the coffee machine are restored.
[0048] As an optional implementation, in the second aspect of the present invention, the acquisition module is further configured to acquire water consumption information corresponding to each water-using function in the coffee machine when it is determined that the water level state of the water tank is not the first water level state. The water consumption information corresponding to each water-using function includes the usage frequency, single water consumption, and usage period of the water-using function.
[0049] The system also includes:
[0050] The determining module is used to determine first water consumption information and second water consumption information based on the water consumption information corresponding to all the water use functions, combined with the current monitoring time and the real-time remaining water volume of the water tank; the first water consumption information is the water consumption information corresponding to the function with the highest probability of being used by the user next time among all the water use functions; the second water consumption information is the water consumption information corresponding to the function with the highest water consumption among all the water use functions.
[0051] The judgment module is used to determine whether the real-time remaining water volume meets the preset water shortage warning conditions based on the first water consumption information and the second water consumption information.
[0052] The switching module is used to switch the photoelectric sensor to a sleep state when the judgment module determines that the real-time remaining water volume does not meet the water shortage warning condition and determines that the real-time remaining quantity is higher than the preset third detection water level.
[0053] The duration of the photoelectric sensor in the dormant state corresponds to the difference duration, which is the pre-calculated time required for the water level to rise from the third detection level to the first detection level.
[0054] As an optional implementation, in a second aspect of the present invention, the determining module is further configured to determine a first water use function corresponding to the first water consumption information and a second water use function corresponding to the second water consumption information when the judging module determines that the real-time remaining water volume meets the water shortage warning condition;
[0055] The system also includes:
[0056] The generation module is used to generate water shortage warning information based on the first water use function and the second water use function;
[0057] The pre-control module is used to feed back the water shortage warning information to the user's terminal associated with the coffee machine; or, when the user starts the coffee machine next time, it matches a water function selected by the user with the water shortage warning information. When the two are determined to match, it switches the water shortage indicator light of the coffee machine to a constant-on state according to the water shortage warning information. At the same time, it generates pre-control parameters according to the water shortage warning information. The pre-control parameters are used to directly interrupt the operation of all water functions when the real-time remaining water level is detected to be lower than the second detection water level.
[0058] As an optional implementation, in the second aspect of the present invention, the method by which the determining module determines the first water consumption information and the second water consumption information based on the water consumption information corresponding to all the water-using functions, combined with the current monitoring time and the real-time remaining water volume of the water tank, specifically includes:
[0059] Based on the water usage frequency and water usage time period corresponding to each water usage function, and in conjunction with the current monitoring time and its monitoring time period, determine all pending water usage functions for the user in the current monitoring time period or the next preset time period corresponding to the current monitoring time period.
[0060] The function with the highest water usage sequence among all the pending water usage functions is recorded as the first prediction function, and the water consumption information corresponding to the first prediction function is determined as the first water consumption information.
[0061] Based on the single water consumption corresponding to each of the aforementioned water-using functions, the function with the highest single water consumption is determined and denoted as the second prediction function, and the water consumption information corresponding to the second prediction function is determined as the second water consumption information.
[0062] As an optional implementation, in a second aspect of the present invention, the real-time remaining water volume satisfying the water shortage warning condition specifically includes:
[0063] The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function.
[0064] The specific reasons why the real-time remaining water volume does not meet the water shortage warning conditions include:
[0065] The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
[0066] A third aspect of this invention discloses another intelligent water shortage monitoring and soft protection system for coffee machines, the system comprising:
[0067] Memory containing executable program code;
[0068] A processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute the intelligent water shortage monitoring and soft protection method for coffee machines disclosed in the first aspect of the present invention.
[0070] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the intelligent water shortage monitoring and soft protection method for coffee machines disclosed in the first aspect of the present invention.
[0071] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0072] This invention provides a method for intelligent water shortage monitoring and soft protection of a coffee machine. The coffee machine's water tank is equipped with a photoelectric sensor for water shortage detection, and the photoelectric sensor does not directly contact the water in the tank. The method includes: acquiring a water level detection signal fed back by the photoelectric sensor, and analyzing the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level in the tank is lower than a preset first detection water level, or a non-first water level status. When the water level status of the outlet tank is determined to be the first water level status, a water shortage control operation is performed on the coffee machine according to a preset water shortage soft protection program to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control. As can be seen, implementing this invention enables intelligent detection of the water level in the water tank using a non-contact photoelectric sensor. This non-contact photoelectric sensor design eliminates the need for direct contact with the water in the tank. Unlike traditional Hall effect sensors, this invention reduces water corrosion and contamination of the photoelectric sensor, lowers the difficulty of subsequent cleaning, and extends the sensor's lifespan. Furthermore, when the water tank meets the water shortage condition (in the first water level detection state), it can accurately activate the water shortage control for the coffee machine, reducing the possibility of the water pump running dry and damaging the coffee machine. In other words, the soft protection measures of this flow meter help extend the lifespan of the coffee machine. Attached Figure Description
[0073] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0074] Figure 1 This is a flowchart illustrating an intelligent water shortage monitoring and soft protection method for a coffee machine disclosed in an embodiment of the present invention;
[0075] Figure 2 This is a flowchart illustrating another intelligent water shortage monitoring and soft protection method for a coffee machine disclosed in an embodiment of the present invention;
[0076] Figure 3 This is a schematic diagram of the structure of an intelligent water shortage monitoring and soft protection system for a coffee machine disclosed in an embodiment of the present invention;
[0077] Figure 4 This is a schematic diagram of another intelligent water shortage monitoring and soft protection system for a coffee machine disclosed in an embodiment of the present invention;
[0078] Figure 5 This is a schematic diagram of the structure of another intelligent water shortage monitoring and soft protection system for a coffee machine disclosed in an embodiment of the present invention. Detailed Implementation
[0079] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. 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.
[0080] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0081] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0082] This invention discloses an intelligent water shortage monitoring and soft protection method and system for coffee machines. It enables intelligent detection of the water level in the water tank using a non-contact photoelectric sensor. This non-contact photoelectric sensor design eliminates the need for direct contact with the water in the tank, unlike traditional Hall effect sensors. This design reduces water corrosion and contamination of the photoelectric sensor, simplifies subsequent cleaning, and extends its lifespan. Furthermore, when the water tank meets the water shortage condition (entering the first water level detection state), it can accurately activate water shortage control for the coffee machine, reducing the risk of the water pump running dry and damaging the machine. In other words, this soft protection measure helps extend the coffee machine's lifespan. Detailed explanations follow.
[0083] Example 1
[0084] Please see Figure 1 , Figure 1 This is a flowchart illustrating an intelligent water shortage monitoring and soft protection method for a coffee machine disclosed in an embodiment of the present invention. Figure 1 The described intelligent water shortage monitoring and soft protection method for coffee machines can be applied to intelligent water shortage monitoring and soft protection systems and devices for coffee machines. This method can also be applied to intelligent coffee machines, where the water tank is equipped with a photoelectric sensor for water shortage detection. The photoelectric sensor does not directly contact the water in the tank. Specifically, a light-transmitting rhomboid equilateral triangle is set on the vertical wall of the water tank, and the photoelectric sensor is placed within this rhomboid triangle, with its transmitter located inside the triangle. This light-transmitting and water-resistant rhomboid triangle structure allows the photoelectric sensor to accurately detect the water level in the tank without obstruction, achieving a non-contact design between the photoelectric sensor and the water. This non-contact design solves the problem of cleaning the photoelectric sensor while ensuring complete water level detection functionality. Furthermore, as... Figure 1 As shown, the intelligent water shortage monitoring and soft protection method of this coffee machine may include the following operations:
[0085] 101. Obtain the water level detection signal fed back by the photoelectric sensor, and analyze the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than the preset first detection water level, or a non-first water level status.
[0086] In this embodiment of the invention, specifically, the water level in the water tank is intelligently detected by the photoelectric sensor transmitter. When the water level detection information corresponding to the transmitter indicates that the water level is lower than that of the photoelectric sensor transmitter, it is determined that the water tank is empty or has very little remaining water (e.g., only 1% of the total water storage capacity of the water tank), which corresponds to the first water level state. When the water level detection information corresponding to the transmitter indicates that the water level is higher than or equal to that of the photoelectric sensor transmitter, it is determined that the water tank contains water, which corresponds to the non-first water level state.
[0087] Furthermore, when determining whether the current water level in the tank is at a first water level or not, the first water level can correspond to a first height of the photoelectric sensor transmitter; the non-first water level can correspond to a second height of the photoelectric sensor transmitter. In other words, two different water level height values are set for a more accurate determination of the remaining water volume in the tank. Furthermore, the first and second heights can each be divided into multiple smaller height intervals, thereby allowing for a more precise determination of the remaining water volume in the tank.
[0088] 102. When the water level in the water tank is determined to be at the first water level, the water shortage control operation is performed on the coffee machine according to the preset water shortage soft protection program to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control.
[0089] It is evident that implementation Figure 1 The described intelligent water shortage monitoring and soft protection method for coffee machines enables intelligent detection of the water level in the water tank through a non-contact photoelectric sensor. This non-contact photoelectric sensor design eliminates the need for direct contact with the water in the tank, unlike traditional Hall effect sensors. This design reduces water corrosion and contamination of the photoelectric sensor, lowers the difficulty of subsequent cleaning, and extends its lifespan. Furthermore, when the water tank meets the water shortage condition (in the first water level detection state), it can accurately activate water shortage control for the coffee machine, reducing the risk of the water pump running dry and damaging the machine. In other words, this flow meter's soft protection measure helps extend the coffee machine's lifespan.
[0090] In an optional embodiment, the first water level state includes a first sub-state or a second sub-state. When the water tank is in the first sub-state, the remaining water level in the water tank is not lower than a preset second detection water level. When the water tank is in the second sub-state, the remaining water level in the water tank is lower than the second detection water level or the remaining water level is 0. The first detection water level is higher than the second detection water level.
[0091] In this optional embodiment, the first water level state is used to indicate that the water tank is low on water. This first water level state can be further divided into two sub-states. In the first sub-state, the coffee machine's water tank can still dispense water, but the amount dispensed is extremely small (reaching a state below the first detection water level and above or equal to the second detection water level, such as below 8% of the total water storage and above or equal to 1% of the total water storage). Conversely, in the second sub-state, the coffee machine's water tank is almost unable to dispense water, that is, reaching a state below the second detection water level and below 1% of the total water storage. The specific parameter settings for the first detection water level, the second detection water level, and the total water storage are not limited in this embodiment of the invention.
[0092] When the water level in the water tank is determined to be at the first water level, step 102 above, according to the preset water shortage soft protection program, specifically includes the following water shortage control operation for the coffee machine:
[0093] When the water level in the water tank is in the first sub-state, the first control parameters for the coffee machine are generated according to the preset first water shortage control program and the water level status. The first control parameters include the first light control parameters and the first sensor control parameters.
[0094] The coffee machine's low water indicator light is switched to a constant on state according to the first light control parameter; at the same time, the photoelectric sensor is controlled to perform water replenishment detection according to the first sensor control parameter to obtain the corresponding water replenishment detection result;
[0095] After confirming that the water level in the tank is not at the first water level, the low water indicator light on the coffee machine will remain off.
[0096] In this optional embodiment, a basic water shortage warning function is provided. When the water level in the water tank is in a first sub-state (the coffee machine's water tank can still dispense water, but in very small amounts), this first sub-state can be maintained for more than 4 seconds before directly controlling the coffee machine's water shortage warning light to stay on, thereby directly prompting the user to refill the water tank. During the process of controlling the photoelectric sensor according to the first sensing control parameters, the photoelectric sensor can continuously perform water replenishment detection, preferably every 5 seconds, but this embodiment of the invention does not impose any limitations.
[0097] As can be seen, in this optional embodiment, a water shortage warning control program is set up for the water tank's water level status being in the first sub-state, making it easy for users to intuitively understand that the water tank is in a water shortage state; at the same time, the set water replenishment detection process can promptly adjust the water shortage warning light back to the normal dark state after the water tank is replenished, improving the display accuracy of the water shortage warning light.
[0098] In another optional embodiment, when the water level in the water tank is determined to be at the first water level, the above step 102, which performs water shortage control operation on the coffee machine according to the preset water shortage soft protection program, further includes:
[0099] When the water level in the water tank is in the second sub-state, the second control parameters for the coffee machine are generated according to the preset second water shortage control program and the water level status. The second control parameters include the second light control parameters, the second sensor control parameters, and the water outlet control parameters.
[0100] The second light control parameter switches the coffee machine's water shortage indicator light to a continuously flashing state; at the same time, the water supply control parameter forcibly disables all functions of the coffee machine that require water.
[0101] Then, based on the second sensor control parameters, the photoelectric sensor is controlled to detect water replenishment until it is determined that the water level in the water tank is not in the first water level state. At this time, the water shortage indicator light of the coffee machine is switched to the normal dark state, and all water-requiring functions of the coffee machine are restored.
[0102] In this optional embodiment, when the water level in the water tank is in the second sub-state (the coffee machine's water tank is almost unable to dispense water), if the user does not immediately stop the coffee machine's operation, the water dispensing control parameters will force all water-using functions of the terminal coffee machine to be activated, thereby achieving the functions of preventing dry burning and preventing the water pump from running dry. Simultaneously, the low water indicator light will be switched to a continuously flashing state to strongly remind the user that the water tank is low. Furthermore, a built-in buzzer can be used to output a low water warning sound while simultaneously controlling the low water indicator light to provide a strong reminder. In addition, the second sensor control parameters need to be set to promptly detect water replenishment in the coffee machine. For the control process of this water replenishment detection, please refer to the control process of the above embodiment; this embodiment will not be elaborated upon here.
[0103] As can be seen, in this optional embodiment, when the water level in the water tank is in the second sub-state, which is close to 0, and the user continues to run the coffee machine, a forced control program is set up. On the one hand, the continuous flashing light strongly reminds the user that the coffee machine is in a water shortage state, increasing the intensity of the reminder that the water tank is low. At the same time, the forced water dispensing program can forcibly disable all water functions of the coffee machine, and promptly activate the coffee machine's anti-dry burning and anti-dry pump functions, which helps to improve the safety of the coffee machine and extend its service life. Furthermore, after detecting that the water tank has been refilled, the water shortage indicator light can also be adjusted back to normal dimness in a timely manner, restoring the coffee machine's water functions, improving the accuracy and timeliness of the water shortage indicator light display, as well as the accuracy of restoring and disabling the coffee machine's water functions.
[0104] Example 2
[0105] Please see Figure 2 , Figure 2 This is a flowchart illustrating another intelligent water shortage monitoring and soft protection method for a coffee machine disclosed in an embodiment of the present invention. Figure 2 The described intelligent water shortage monitoring and soft protection method for coffee machines can be applied to intelligent water shortage monitoring and soft protection devices for coffee machines, and the embodiments of this invention are not limited thereto. Figure 2 As shown, the intelligent water shortage monitoring and soft protection method of this coffee machine may include the following operations:
[0106] 201. Obtain the water level detection signal fed back by the photoelectric sensor, and analyze the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than the preset first detection water level, or a non-first water level status.
[0107] 202. When the water level in the water tank is determined to be at the first water level, the water shortage control operation is performed on the coffee machine according to the preset water shortage soft protection program to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control.
[0108] For further descriptions of steps 201-202 in this embodiment of the invention, please refer to the other specific descriptions of steps 101-102 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.
[0109] 203. When it is determined that the water level in the water tank is not the first water level, obtain the water consumption information corresponding to each water-using function in the coffee machine.
[0110] In this embodiment of the invention, the water consumption information corresponding to each water use function includes the frequency of use of the water use function, the amount of water consumed per use, and the time period of use; wherein, the water consumption information corresponding to each water use function can be historical record information within a historical record period, which can be one week or one month, and this embodiment of the invention does not limit it.
[0111] 204. Based on the water consumption information corresponding to all water-using functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, determine the first water consumption information and the second water consumption information.
[0112] In this embodiment of the invention, the first water consumption information is the water consumption information corresponding to the function with the highest probability of being used by the user next time among all water-using functions; the second water consumption information is the water consumption information corresponding to the function with the highest water consumption among all water-using functions.
[0113] 205. Based on the first water consumption information and the second water consumption information, determine whether the real-time remaining water volume meets the preset water shortage warning conditions.
[0114] 206. When it is determined that the real-time remaining water volume does not meet the water shortage warning conditions, and it is confirmed that the real-time remaining quantity is higher than the preset third detection water level, switch the photoelectric sensor to sleep mode.
[0115] In this embodiment of the invention, the duration of the photoelectric sensor in sleep mode corresponds to the difference duration, which is the pre-calculated time required for the water level to rise from the third detection level to the first detection level.
[0116] In this embodiment of the invention, optionally, the method for calculating the difference in duration may specifically include:
[0117] Calculate the water volume difference between the first and third detection water levels;
[0118] Determine the first water consumption amount included in the first water consumption information and the second water consumption amount included in the second water consumption information;
[0119] Calculate the quotients of the water volume difference with the first water consumption and the second water consumption respectively to obtain the first water consumption number corresponding to the first water consumption and the water consumption number corresponding to the second water consumption;
[0120] Based on the first water consumption frequency, first usage period, and first water consumption count included in the first water consumption information, the first water consumption time required to consume the water difference when only the first water use function is activated is calculated; the first water use function is the water use function corresponding to the first water consumption information.
[0121] Similarly, based on the second water consumption frequency, second usage period, and second water consumption count included in the second water consumption information, the second water consumption time required to finish consuming the water difference when only the second water use function is activated is calculated; the second water use function is the water use function corresponding to the second water consumption information.
[0122] The first frequency percentage corresponding to the first water consumption duration is determined based on the first water consumption frequency included in the first water consumption information; the second frequency percentage corresponding to the second water consumption duration is determined based on the second water consumption frequency included in the second water consumption information.
[0123] Multiply the first water consumption time by the first frequency percentage, multiply the second water consumption time by the second frequency percentage, and sum the products of the two to obtain the target time, which is used as the difference time.
[0124] It is evident that implementation Figure 2The described intelligent water shortage monitoring and soft protection method for coffee machines includes a water shortage prediction program that can intelligently assess the subsequent water consumption of the coffee machine. When the assessment determines that the water consumption of the next water function is not excessive (the real-time remaining water volume does not meet the preset water shortage warning conditions), the photoelectric sensor is put into a sleep state, reducing the operating time of the photoelectric sensor, which helps to extend its service life and reduce the energy consumption of the coffee machine.
[0125] In an optional embodiment, when it is determined that the real-time remaining water volume meets the water shortage warning conditions, the method further includes:
[0126] Determine the first water use function corresponding to the first water consumption information and the second water use function corresponding to the second water consumption information;
[0127] Water shortage warning information is generated based on the first and second water use functions;
[0128] The system will send a water shortage warning to the user's terminal connected to the coffee machine; or...
[0129] When the user starts the coffee machine again, the selected water function is matched with the water shortage warning information. When the two are matched, the water shortage warning light of the coffee machine is switched to a constant state according to the water shortage warning information. At the same time, pre-control parameters are generated according to the water shortage warning information. The pre-control parameters are used to directly interrupt the operation of all water functions when the real-time remaining water level is detected to be lower than the second detection water level.
[0130] In this optional embodiment, the situation where a certain water use function matches the water shortage warning information specifically includes a situation where a certain water use function matches the warning water use function corresponding to the water shortage warning information, and when the user activates the warning water use function, the real-time remaining water volume in the water tank does not meet the water consumption required to execute the warning water use function.
[0131] As can be seen, in this optional embodiment, when the real-time remaining water volume meets the water shortage warning conditions, water shortage warning information can be automatically generated and directly fed back to the user's terminal, realizing direct warning of water shortage; it can also directly manage water shortage through the water shortage warning information when the user subsequently uses the coffee machine and detects that a certain water use function matches the water shortage warning information, which helps to improve the speed of effective management.
[0132] In another optional embodiment, the method by which step 204 above determines the first water consumption information and the second water consumption information based on the water consumption information corresponding to all water-using functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, specifically includes:
[0133] Based on the water usage frequency and time period corresponding to each water usage function, and combined with the current monitoring time and its monitoring time period, determine all pending water usage functions for the user in the current monitoring time period or the next preset time period corresponding to the current monitoring time period.
[0134] In this optional embodiment, all water-use functions of the coffee machine may include coffee extraction, steaming, and hot water functions. If the current monitoring period is 3:30 PM, during which users typically use both coffee extraction and hot water functions, these two functions will be designated as pending water-use functions.
[0135] The function with the highest water usage sequence among all pending water usage functions is designated as the first prediction function, and the water consumption information corresponding to the first prediction function is determined as the first water consumption information.
[0136] In this optional embodiment, if the coffee extraction function uses water first in the water sequence, then the coffee extraction function is recorded as the first prediction function.
[0137] Based on the single water consumption corresponding to each water use function, the function with the highest single water consumption is determined and recorded as the second prediction function, and the water consumption information corresponding to the second prediction function is determined as the second water consumption information.
[0138] In this optional embodiment, the second prediction function and the first prediction function can be the same water use function, such as both being hot water functions; or they can be two different water use functions, such as the first prediction function being a coffee extraction function and the second prediction function being a hot water function; the embodiments of the present invention are not limited thereto.
[0139] In this optional embodiment, the real-time remaining water volume meeting the water shortage warning conditions specifically includes:
[0140] The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function.
[0141] The real-time remaining water volume does not meet the conditions for water shortage warning, specifically including:
[0142] The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
[0143] As can be seen, in this optional embodiment, big data can be used to investigate and analyze the user's historical use of the coffee machine's water-using functions. By combining the water usage frequency, water usage time, and water consumption of each water-using function with big data analysis, the first water consumption information and the second water consumption information can be identified, which improves the accuracy of determining the information required for water shortage warning; thus, it is beneficial to improve the accuracy of determining subsequent water shortage warning information.
[0144] Example 3
[0145] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of an intelligent water shortage monitoring and soft protection system for a coffee machine disclosed in an embodiment of the present invention. Figure 3 As shown, the intelligent water shortage monitoring and soft protection system of this coffee machine may include an acquisition module 301, an analysis module 302, and a water shortage control module 303, wherein:
[0146] The acquisition module 301 is used to acquire the water level detection signal fed back by the photoelectric sensor.
[0147] Analysis module 302 is used to analyze the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than a preset first detection water level, or a non-first water level status.
[0148] The water shortage control module 303 is used to perform water shortage control operations on the coffee machine according to a preset water shortage soft protection program when the water level in the water tank is determined to be at the first water level. This prompts the user that the coffee machine needs to be refilled. The water shortage control operations include water shortage prompts and / or water dispensing disabling control.
[0149] It is evident that implementation Figure 3 The described intelligent water shortage monitoring and soft protection system for coffee machines can intelligently detect the water level in the water tank using a non-contact photoelectric sensor. This non-contact photoelectric sensor design eliminates the need for direct contact with the water in the tank. Unlike traditional Hall effect sensors, this design reduces water corrosion and contamination of the photoelectric sensor, lowers the difficulty of subsequent cleaning, and extends the sensor's lifespan. Furthermore, when the water tank meets the water shortage condition (in the first water level detection state), it can accurately activate water shortage control for the coffee machine, reducing the risk of the water pump running dry and damaging the machine. In other words, this flow meter's soft protection measure helps extend the coffee machine's lifespan.
[0150] In an optional embodiment, the first water level state includes a first sub-state or a second sub-state. When the water tank is in the first sub-state, the remaining water level in the water tank is not lower than a preset second detection water level. When the water tank is in the second sub-state, the remaining water level in the water tank is lower than the second detection water level or the remaining water level is 0. The first detection water level is higher than the second detection water level.
[0151] The water shortage control module 303 performs water shortage control operations on the coffee machine according to the preset water shortage soft protection program, specifically including:
[0152] When the water level in the water tank is determined to be the first water level state, and when the water level in the water tank is in the first sub-state, the first control parameters for the coffee machine are generated according to the preset first water shortage control program combined with the water level state. The first control parameters include the first light control parameters and the first sensor control parameters.
[0153] The coffee machine's low water indicator light is switched to a constant on state according to the first light control parameter; at the same time, the photoelectric sensor is controlled to perform water replenishment detection according to the first sensor control parameter to obtain the corresponding water replenishment detection result;
[0154] After confirming that the water level in the tank is not at the first water level, the low water indicator light on the coffee machine will remain off.
[0155] As can be seen, in this optional embodiment, a water shortage warning control program is set up for the water tank's water level status being in the first sub-state, making it easy for users to intuitively understand that the water tank is in a water shortage state; at the same time, the set water replenishment detection process can promptly adjust the water shortage warning light back to the normal dark state after the water tank is replenished, improving the display accuracy of the water shortage warning light.
[0156] In another optional embodiment, the water shortage control module 303 performs water shortage control operations on the coffee machine according to a preset water shortage soft protection program, specifically including:
[0157] When the water level in the water tank is determined to be the first water level state, and when the water level in the water tank is in the second sub-state, the second control parameters for the coffee machine are generated according to the preset second water shortage control program combined with the water level state. The second control parameters include the second light control parameters, the second sensor control parameters, and the water outlet control parameters.
[0158] The second light control parameter switches the coffee machine's water shortage indicator light to a continuously flashing state; at the same time, the water supply control parameter forcibly disables all functions of the coffee machine that require water.
[0159] Then, based on the second sensor control parameters, the photoelectric sensor is controlled to detect water replenishment until it is determined that the water level in the water tank is not in the first water level state. At this time, the water shortage indicator light of the coffee machine is switched to the normal dark state, and all water-requiring functions of the coffee machine are restored.
[0160] As can be seen, in this optional embodiment, when the water level in the water tank is in the second sub-state, which is close to 0, and the user continues to run the coffee machine, a forced control program is set up. On the one hand, the continuous flashing light strongly reminds the user that the coffee machine is in a water shortage state, increasing the intensity of the reminder that the water tank is low. At the same time, the forced water dispensing program can forcibly disable all water functions of the coffee machine, and promptly activate the coffee machine's anti-dry burning and anti-dry pump functions, which helps to improve the safety of the coffee machine and extend its service life. Furthermore, after detecting that the water tank has been refilled, the water shortage indicator light can also be adjusted back to normal dimness in a timely manner, restoring the coffee machine's water functions, improving the accuracy and timeliness of the water shortage indicator light display, as well as the accuracy of restoring and disabling the coffee machine's water functions.
[0161] In another optional embodiment, the acquisition module 301 is further configured to acquire water consumption information corresponding to each water use function in the coffee machine when it is determined that the water level state of the water tank is not the first water level state. The water consumption information corresponding to each water use function includes the usage frequency, single water consumption, and usage period of the water use function.
[0162] like Figure 4 As shown, the system also includes a determining module 304, a judging module 305, and a switching module 306, wherein:
[0163] The determination module 304 is used to determine the first water consumption information and the second water consumption information based on the water consumption information corresponding to all water use functions, combined with the current monitoring time and the real-time remaining water volume in the water tank; the first water consumption information is the water consumption information corresponding to the function with the highest probability of being used by the user next time among all water use functions; the second water consumption information is the water consumption information corresponding to the function with the highest water consumption among all water use functions.
[0164] The judgment module 305 is used to determine whether the real-time remaining water volume meets the preset water shortage warning conditions based on the first water consumption information and the second water consumption information.
[0165] The switching module 306 is used to switch the photoelectric sensor to sleep mode when the judgment module 305 determines that the real-time remaining water volume does not meet the water shortage warning condition and determines that the real-time remaining quantity is higher than the preset third detection water level.
[0166] Among them, the duration of the photoelectric sensor in sleep mode corresponds to the difference duration, which is the time required for the water level to rise from the third detection level to the first detection level, calculated in advance.
[0167] As can be seen, in this optional embodiment, a water shortage prediction program is set up, which can intelligently assess the subsequent water consumption of the coffee machine. When it is assessed that the water consumption of the next water function is not excessive (the real-time remaining water does not meet the preset water shortage warning condition), the photoelectric sensor is controlled to enter a sleep state, reducing the operating time of the photoelectric sensor, which helps to extend its service life and reduce the energy consumption of the coffee machine.
[0168] In another optional embodiment, the determining module 304 is further configured to determine the first water use function corresponding to the first water consumption information and the second water use function corresponding to the second water consumption information when the judging module 305 determines that the real-time remaining water volume meets the water shortage warning conditions.
[0169] The system also includes a generation module 307 and a pre-control module 308, wherein:
[0170] The generation module 307 is used to generate water shortage warning information based on the first water use function and the second water use function;
[0171] The pre-control module 308 is used to feed back water shortage pre-warning information to the user's terminal associated with the coffee machine; or, when the user starts the coffee machine next time, it matches a certain water function selected by the user with the water shortage pre-warning information. When it is determined that the two match, it switches the water shortage indicator light of the coffee machine to a constant state according to the water shortage pre-warning information. At the same time, it generates pre-control parameters according to the water shortage pre-warning information. The pre-control parameters are used to directly interrupt the operation of all water functions when the real-time remaining water level is detected to be lower than the second detection water level.
[0172] As can be seen, in this optional embodiment, when the real-time remaining water volume meets the water shortage warning conditions, water shortage warning information can be automatically generated and directly fed back to the user's terminal, realizing direct warning of water shortage; it can also directly manage water shortage through the water shortage warning information when the user subsequently uses the coffee machine and detects that a certain water use function matches the water shortage warning information, which helps to improve the speed of effective management.
[0173] In another optional embodiment, the determining module 304 determines the first water consumption information and the second water consumption information based on the water consumption information corresponding to all water-using functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, specifically in the following ways:
[0174] Based on the water usage frequency and time period corresponding to each water usage function, and combined with the current monitoring time and its monitoring time period, determine all pending water usage functions for the user in the current monitoring time period or the next preset time period corresponding to the current monitoring time period.
[0175] The function with the highest water usage sequence among all pending water usage functions is designated as the first prediction function, and the water consumption information corresponding to the first prediction function is determined as the first water consumption information.
[0176] Based on the single water consumption corresponding to each water use function, the function with the highest single water consumption is determined and recorded as the second prediction function, and the water consumption information corresponding to the second prediction function is determined as the second water consumption information.
[0177] In this optional embodiment, it should be noted that the real-time remaining water volume meeting the water shortage warning conditions specifically includes:
[0178] The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function.
[0179] The real-time remaining water volume does not meet the conditions for water shortage warning, specifically including:
[0180] The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
[0181] As can be seen, in this optional embodiment, big data can be used to investigate and analyze the user's historical use of the coffee machine's water-using functions. By combining the water usage frequency, water usage time, and water consumption of each water-using function with big data analysis, the first water consumption information and the second water consumption information can be identified, which improves the accuracy of determining the information required for water shortage warning; thus, it is beneficial to improve the accuracy of determining subsequent water shortage warning information.
[0182] Example 4
[0183] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of another intelligent water shortage monitoring and soft protection system for a coffee machine disclosed in an embodiment of the present invention. Figure 5 As shown, the coffee machine's intelligent water shortage monitoring and software protection system may include:
[0184] Memory 401 storing executable program code;
[0185] Processor 402 coupled to memory 401;
[0186] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the intelligent water shortage monitoring and soft protection method for coffee machines described in Embodiment 1 or Embodiment 2 of the present invention.
[0187] Example 5
[0188] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the intelligent water shortage monitoring and soft protection method for a coffee machine described in Embodiment 1 or Embodiment 2 of this invention.
[0189] Example 6
[0190] This invention discloses a computer program product, which includes a non-transitory computer storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the intelligent water shortage monitoring and soft protection method for a coffee machine described in Embodiment 1 or Embodiment 2.
[0191] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0192] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0193] Finally, it should be noted that the intelligent water shortage monitoring and soft protection method and system for coffee machines disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention, not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for intelligent water shortage monitoring and soft protection of a coffee machine, characterized in that, The coffee machine's water tank is equipped with a photoelectric sensor for detecting water shortage, and the photoelectric sensor does not directly contact the water in the water tank; the method includes: The water level detection signal fed back by the photoelectric sensor is obtained, and the water level detection signal is analyzed to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than a preset first detection water level or a non-first water level status. When the water level in the water tank is determined to be the first water level, the coffee machine is subjected to a water shortage control operation according to the preset water shortage soft protection program to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control. When it is determined that the water level in the water tank is not the first water level state, the method further includes: Obtain water consumption information corresponding to each water-using function in the coffee machine. The water consumption information corresponding to each water-using function includes the frequency of use, single water consumption, and usage period of the water-using function. Based on the water consumption information corresponding to all the water-using functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, the first water consumption information and the second water consumption information are determined; the first water consumption information is the water consumption information corresponding to the function with the highest probability of being used by the user next time among all the water-using functions; the second water consumption information is the water consumption information corresponding to the function with the highest water consumption among all the water-using functions; wherein, the first water consumption information is the water consumption information corresponding to the first predicted function, and the first predicted function is the function with the highest water consumption order among all the pending water-using functions of the coffee machine; and the second water consumption information is the water consumption information corresponding to the second predicted function, and the second predicted function is the function with the highest single water consumption among the single water consumption corresponding to each water-using function. Based on the first water consumption information and the second water consumption information, determine whether the real-time remaining water volume meets the preset water shortage warning conditions; When it is determined that the real-time remaining water volume does not meet the water shortage warning condition, and it is determined that the real-time remaining quantity is higher than the preset third detection water level, the photoelectric sensor is switched to sleep mode. The duration of the photoelectric sensor in the dormant state corresponds to the difference duration, which is the pre-calculated time required for the water level to rise from the third detection level to the first detection level. Furthermore, the real-time remaining water volume meeting the water shortage warning conditions includes: The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function. The real-time remaining water volume does not meet the conditions for water shortage warning, including: The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
2. The intelligent water shortage monitoring and soft protection method for a coffee machine according to claim 1, characterized in that, The first water level state includes a first sub-state or a second sub-state. When the water tank is in the first sub-state, the remaining water level in the water tank is not lower than a preset second detection water level. When the water tank is in the second sub-state, the remaining water level in the water tank is lower than the second detection water level or the remaining water level is 0. The first detection water level is higher than the second detection water level. When the water level in the water tank is determined to be the first water level state, the step of performing a water shortage control operation on the coffee machine according to the preset water shortage soft protection program includes: When the water level in the water tank is in the first sub-state, a first control parameter for the coffee machine is generated according to the preset first water shortage control program and the water level. The first control parameter includes a first light control parameter and a first sensor control parameter. The coffee machine's water shortage indicator light is switched to a constant-on state according to the first light control parameter; at the same time, the photoelectric sensor is controlled to perform water replenishment detection according to the first sensor control parameter to obtain the corresponding water replenishment detection result. After determining that the water replenishment detection result indicates that the water level in the water tank is in a non-first water level state, the water shortage indicator light of the coffee machine is switched to a normally off state.
3. The intelligent water shortage monitoring and soft protection method for a coffee machine according to claim 2, characterized in that, When the water level in the water tank is determined to be the first water level, the step of performing water shortage control operation on the coffee machine according to the preset water shortage soft protection program further includes: When the water level in the water tank is in the second sub-state, a second control parameter for the coffee machine is generated according to the preset second water shortage control program and the water level. The second control parameter includes a second light control parameter, a second sensor control parameter, and a water outlet control parameter. The coffee machine's water shortage indicator light is switched to a continuously flashing state according to the second light control parameter; at the same time, all functions of the coffee machine that require water are forcibly disabled according to the water outlet control parameter. Then, based on the second sensing control parameters, the photoelectric sensor is controlled to perform water replenishment detection until it is determined that the water level in the water tank is not in the first water level state. At this point, the water shortage indicator light of the coffee machine is switched to a normally dark state, and all water-requiring functions of the coffee machine are restored.
4. The intelligent water shortage monitoring and soft protection method for a coffee machine according to claim 2, characterized in that, When it is determined that the real-time remaining water volume meets the water shortage warning condition, the method further includes: Determine the first water consumption function corresponding to the first water consumption information and the second water consumption function corresponding to the second water consumption information; Based on the first water use function and the second water use function, a water shortage warning message is generated; The water shortage warning information is sent back to the user's terminal associated with the coffee machine; or, When the user starts the coffee machine again, the user's selected water function is matched with the water shortage warning information. When the two are matched, the water shortage warning light of the coffee machine is switched to a constant-on state according to the water shortage warning information. At the same time, a pre-control parameter is generated according to the water shortage warning information. The pre-control parameter is used to directly interrupt the operation of all water functions when the real-time remaining water level is detected to be lower than the second detection water level.
5. The intelligent water shortage monitoring and soft protection method for a coffee machine according to claim 2, characterized in that, The step of determining the first water consumption information and the second water consumption information based on the water consumption information corresponding to all the water use functions, combined with the current monitoring time and the real-time remaining water volume in the water tank, includes: Based on the usage frequency and usage period corresponding to each water use function, and in conjunction with the current monitoring time and its monitoring period, determine all pending water use functions for the user in the current monitoring period or the next preset period corresponding to the current monitoring period. The function with the highest water usage sequence among all the pending water usage functions is recorded as the first prediction function, and the water consumption information corresponding to the first prediction function is determined as the first water consumption information. Based on the single water consumption corresponding to each of the aforementioned water-using functions, the function with the highest single water consumption is determined and denoted as the second prediction function, and the water consumption information corresponding to the second prediction function is determined as the second water consumption information.
6. The intelligent water shortage monitoring and soft protection method for a coffee machine according to claim 5, characterized in that, The real-time remaining water volume meeting the water shortage warning conditions specifically includes: The real-time remaining water volume is lower than the single water consumption corresponding to the second prediction function; or, the real-time remaining water volume is lower than the single water consumption corresponding to the first prediction function. The specific reasons why the real-time remaining water volume does not meet the water shortage warning conditions include: The real-time remaining water volume is higher than or equal to the single water consumption corresponding to the second prediction function.
7. A smart water shortage monitoring and soft protection system for a coffee machine, characterized in that, The coffee machine's water tank is equipped with a photoelectric sensor for detecting water shortage, and the photoelectric sensor does not come into direct contact with the water in the water tank. The system is used to execute the intelligent water shortage monitoring and soft protection method for a coffee machine as described in any one of claims 1-6, and the system comprises: The acquisition module is used to acquire the water level detection signal fed back by the photoelectric sensor; The analysis module is used to analyze the water level detection signal to obtain the water level status of the water tank. The water level status includes a first water level status indicating that the current water level of the water tank is lower than a preset first detection water level, or a non-first water level status. The water shortage control module is used to perform water shortage control operations on the coffee machine according to a preset water shortage soft protection program when the water level of the water tank is determined to be the first water level state, so as to prompt the user that the coffee machine needs to be refilled. The water shortage control operation includes water shortage prompt and / or water dispensing disabling control.
8. A smart water shortage monitoring and soft protection system for a coffee machine, characterized in that, The system includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the intelligent water shortage monitoring and soft protection method for the coffee machine as described in any one of claims 1-6.
9. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the intelligent water shortage monitoring and soft protection method for the coffee machine as described in any one of claims 1-6.