Method, processor and water dispenser for preventing false triggering of a water dispenser

By comparing the echo signal of the ultrasonic detector with historical signals while the water dispenser is in standby mode, calculating the amplitude increase and correcting the water dispensing threshold, the problem of accidental water dispensing by the water dispenser is solved, improving safety and accuracy.

CN117898595BActive Publication Date: 2026-06-02WUHU MIDEA SMART KITCHEN APPLIANCE MFG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHU MIDEA SMART KITCHEN APPLIANCE MFG CO LTD
Filing Date
2022-10-12
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing water dispensers have safety issues due to the potential for accidental water dispensing caused by the characteristics of ultrasonic detectors.

Method used

By acquiring the echo signal from the ultrasonic detector when the water dispenser is in standby mode, comparing it with the pre-stored historical echo signal, calculating the amplitude increase, and adjusting the peak amplitude threshold for triggering water dispensing from the water dispenser based on the increase, the influence of external interference can be reduced.

Benefits of technology

It improves the accuracy of water dispensing and the safety of use of water dispensers, and reduces unnecessary waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117898595B_ABST
    Figure CN117898595B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of method for preventing water dispenser from being triggered by mistake, processor and water dispenser, belong to electrical appliance field.The method for preventing water dispenser from being triggered by mistake is applied to the water dispenser including ultrasonic detector, and the method for preventing water dispenser from being triggered by mistake includes: determining that the water dispenser is in standby state;Acquire echo signal received by ultrasonic detector;Echo signal and pre-stored historical echo signal corresponding to standby state are compared to obtain the amplitude increase of echo signal in preset time region;According to the amplitude increase and the peak amplitude threshold for triggering water dispenser to water, the peak amplitude threshold is corrected.The embodiment of the present application can improve safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electrical appliances, and more specifically to a method, processor, and water dispenser for preventing accidental triggering of a water dispenser. Background Technology

[0002] Water dispensers equipped with ultrasonic detectors work by emitting sound waves through the detector. When the sound waves encounter an obstacle, they are reflected back. This characteristic of sound waves can often be used to detect cup signals and / or cup height and / or liquid level.

[0003] Normally, a cup is placed on the water dispenser's receiving platform. The ultrasonic water dispenser's closed-loop operation involves automatically dispensing water upon detecting the cup and automatically stopping the water flow once the liquid level reaches the preset height. However, due to certain characteristics of ultrasound, the water dispenser may be accidentally triggered to dispense water, thus posing a safety risk. Summary of the Invention

[0004] The purpose of this invention is to provide a method, processor, water dispenser, and storage medium for preventing accidental triggering of a water dispenser, so as to solve the problem of low security in the prior art.

[0005] To achieve the above objectives, a first aspect of the present invention provides a method for preventing accidental triggering of a water dispenser, applied to a water dispenser including an ultrasonic detector, the method comprising:

[0006] Make sure the water dispenser is in standby mode;

[0007] Acquire the echo signal received by the ultrasonic detector;

[0008] The echo signal is compared with the pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time range.

[0009] The peak amplitude threshold is adjusted based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water.

[0010] In this embodiment of the invention, the echo signal is compared with a pre-stored historical echo signal corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region, including: determining the maximum peak amplitude of the echo signal within the preset time region; determining the average first peak amplitude of the historical echo signal within the preset time region; and comparing the maximum peak amplitude with the average first peak amplitude to obtain the amplitude increase.

[0011] In this embodiment of the invention, the echo signal is compared with a pre-stored historical echo signal corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region. This includes: determining the maximum peak amplitude of the echo signal within the preset time region; determining the time point corresponding to the maximum peak amplitude; determining the average second peak amplitude of the time point in the historical echo signal; and comparing the maximum peak amplitude with the average second peak amplitude to obtain the amplitude increase.

[0012] In this embodiment of the invention, the echo signal is compared with a pre-stored historical echo signal corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region. This includes: determining the average third peak amplitude of the historical echo signal at each time point within the preset time region; sequentially comparing the peak amplitude of the echo signal at each time point with the average third peak amplitude at each time point to obtain the peak amplitude increase at each time point; and determining the average of the peak amplitude increase at each time point to obtain the amplitude increase.

[0013] In this embodiment of the invention, the echo signal is compared with a pre-stored historical echo signal corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region. This includes: determining a preset number of time points from the preset time region; determining the average amplitude of the fourth peak of the preset number of time points in the echo signal; determining the average amplitude of the fifth peak of the preset number of time points in the historical echo signal; and comparing the average amplitude of the fourth peak with the average amplitude of the fifth peak to obtain the amplitude increase.

[0014] In this embodiment of the invention, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water. This includes adding the amplitude increase to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0015] In this embodiment of the invention, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water. This includes: determining that the amplitude increase reaches a preset increase threshold; and adding the preset increase threshold to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0016] In this embodiment of the invention, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water. This includes: determining the corresponding correction amount based on the pre-stored correspondence between the amplitude increase and the correction amount; and adding the corresponding correction amount to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0017] A second aspect of the present invention provides a processor configured to perform the method described above for preventing accidental triggering of a water dispenser.

[0018] A third aspect of the present invention provides a water dispenser, comprising: an ultrasonic detector; and a processor according to the above.

[0019] A fourth aspect of the present invention provides a machine-readable storage medium storing instructions or programs that, when executed by a processor, cause the processor to perform the method described above for preventing accidental triggering of a water dispenser.

[0020] The above technical solution acquires the echo signal received by the ultrasonic detector when the water dispenser is in standby mode, and compares the echo signal with the pre-stored historical echo signals corresponding to the standby mode to obtain the amplitude increase of the echo signal within a preset time range. Based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water, the peak amplitude threshold is corrected. This method compares the echo signal of the current standby mode with historical echo signals from previous standby modes, quantifying the influence of external space or the impedance deviation of the ultrasonic components. The resulting amplitude increase can then be used to correct the peak amplitude threshold that triggers the water dispenser to dispense water. This reduces the impact of ultrasonic waves on the water dispenser's water dispensing trigger, prevents false triggering due to ultrasonic waves, improves the safety of the water dispenser during use, and reduces unnecessary resource waste.

[0021] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0022] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings:

[0023] Figure 1 The schematic diagram illustrates a process flow chart of a method for preventing accidental triggering of a water dispenser according to an embodiment of the present invention;

[0024] Figure 2 This schematic diagram illustrates the echo signal of a water dispenser in standby mode according to an embodiment of the present invention.

[0025] Figure 3 This schematic diagram illustrates an embodiment of the present invention where the peak amplitude of the interference signal is less than the minimum threshold for triggering the water dispenser to dispense water.

[0026] Figure 4 This schematic diagram illustrates the echo signal of a water dispenser triggered by an interference signal due to an upward shift in the noise floor in one embodiment of the present invention.

[0027] Figure 5 This schematic diagram illustrates a scenario in which the peak amplitude of the echo signal of an interference signal is less than the corrected peak amplitude threshold in one embodiment of the present invention.

[0028] Figure 6 The diagram illustrates the structure of a water dispenser according to an embodiment of the present invention. Detailed Implementation

[0029] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0030] Figure 1 The illustration schematically shows a flowchart of a method for preventing accidental triggering of a water dispenser according to an embodiment of the present invention. Figure 1 As shown in the embodiment of the present invention, a method for preventing accidental triggering of a water dispenser is provided, applied to a water dispenser including an ultrasonic detector. Taking the application of this method to a processor as an example, the method may include the following steps:

[0031] Step S102: Determine that the water dispenser is in standby mode.

[0032] It is understandable that the standby state here refers to the water dispenser being powered on but not dispensing water. For example, when the water dispenser is powered on and there is no water dispenser in the water dispensing area, it can be determined that the water dispenser is in standby state.

[0033] Specifically, the processor can acquire the water dispenser's status information in real time or at preset time intervals, and determine whether the water dispenser is in standby mode based on the acquired status information. In one example, the preset time interval can be 5 minutes or 10 minutes, etc., which can be set according to the actual status information of the water dispenser. For example, if the water dispenser's status information shows standby mode for a preset number (e.g., 5) of preset time intervals (e.g., 10 minutes) consecutively, the preset time interval can be extended to a longer time interval, such as 20 minutes or 30 minutes, thereby reducing power consumption.

[0034] Step S104: Obtain the echo signal received by the ultrasonic detector.

[0035] It can be understood that the echo signal is the sound wave signal reflected back from the measured area after the ultrasonic detector sends an ultrasonic detection signal to the measured area (e.g., the area between the ultrasonic detector and the water dispenser's water receiving platform). The ultrasonic detector emits ultrasonic waves and receives the echo signals reflected back from obstacles. The processor acquires these echo signals to identify objects located within the measured area. When the object is identified as a water receiving container, the water dispenser can be triggered to dispense water.

[0036] Specifically, the processor can acquire the echo signal reflected back from the measured area by the ultrasonic detector in real time or at preset time intervals.

[0037] Step S106: Compare the echo signal with the pre-stored historical echo signal corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time range.

[0038] It can be understood that historical echo signals are echo signals received by the ultrasonic detector up to the current moment, specifically including echo signals received by the ultrasonic detector from the time the water dispenser left the factory until the current moment. The preset time region is the time region corresponding to the echo signal of the water dispensing area of ​​the water dispenser. In one embodiment, the preset time region is the time region of the echo signal representing the water dispensing area of ​​the water dispenser in the time-domain curve formed by the echo signal. Further, the time-domain curve formed by the echo signal can be divided into three main regions: a first region (i.e., the transmission region) representing the echo signal of the area closer to the probe of the ultrasonic detector; a second region (i.e., the effective region) representing the echo signal of the water dispensing area of ​​the water dispenser; and a third region (i.e., the dispensing platform region) representing the echo signal of the water dispensing platform of the water dispenser. The first and third regions are usually considered invalid signal regions, while the second region is usually considered an effective signal region, i.e., the preset time region. The amplitude increase is the increase in the peak amplitude of the current echo signal compared to the historical echo signals.

[0039] Specifically, the processor can compare the current echo signal with the pre-stored historical echo signals corresponding to the standby state, for example, by making the difference, so as to obtain the amplitude increase of the current echo signal within a preset time range.

[0040] Step S108: Correct the peak amplitude threshold based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water.

[0041] It is understandable that the threshold value of the peak amplitude that triggers the water dispenser to dispense water is the minimum peak amplitude threshold value that is preset to trigger the water dispenser to dispense water.

[0042] Specifically, the processor can correct the peak amplitude threshold that triggers water dispensing from the water dispenser based on the amplitude increase. That is, it can increase the preset peak amplitude threshold that triggers water dispensing from the water dispenser to obtain the corrected peak amplitude threshold, thereby preventing the water dispenser from being accidentally triggered to dispense water. For example, the amplitude increase can be increased based on the peak amplitude threshold that triggers water dispensing from the water dispenser to achieve the purpose of increasing the water dispensing threshold of the water dispenser.

[0043] Understandably, ultrasound is an analog signal. One characteristic of analog signals is that they are easily affected by external space or the resistance and capacitance deviations of their own electronic materials. There are many external interferences, such as physical vibrations of objects, electromagnetic radiation in space, or other reasons. This characteristic of ultrasound may cause water dispensers to accidentally dispense water when in standby mode.

[0044] The aforementioned method for preventing accidental triggering of water dispensers involves acquiring the echo signal received by an ultrasonic detector when the water dispenser is in standby mode, comparing the echo signal with pre-stored historical echo signals corresponding to the standby mode, and obtaining the amplitude increase of the echo signal within a preset time range. Based on the amplitude increase and the peak amplitude threshold for triggering water dispensing, the peak amplitude threshold is corrected. This method compares the echo signal of the current standby mode with historical echo signals from previous standby modes, quantifying the influence of external space or the impedance deviation of the ultrasonic components. The resulting amplitude increase is used to correct the peak amplitude threshold for triggering water dispensing, reducing the impact of ultrasonic waves on the water dispenser's water dispensing trigger action, preventing accidental triggering, improving safety during water dispenser use, and reducing unnecessary resource waste.

[0045] In one embodiment, comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time period includes: determining the maximum peak amplitude of the echo signal within the preset time period; determining the average first peak amplitude of the historical echo signals within the preset time period; and comparing the maximum peak amplitude with the average first peak amplitude to obtain the amplitude increase.

[0046] It can be understood that the average peak amplitude of the first wave is the average of the maximum peak amplitude in the historical echo signal corresponding to the standby state within a preset time range. Since the historical echo signal can include echo signals from multiple past moments, the average of the maximum peak amplitude of the echo signals from multiple past moments can be calculated to obtain the average peak amplitude of the first wave.

[0047] Specifically, the processor can determine the maximum peak amplitude of the current echo signal in a preset time region (i.e., the effective region), and then determine the maximum peak amplitude in the historical echo signals within the preset time region and calculate the average value to obtain the first peak amplitude average value. The processor then compares the current maximum peak amplitude value with the first peak amplitude average value, i.e., subtracts the first peak amplitude average value from the current maximum peak amplitude value to obtain the amplitude increase.

[0048] In this embodiment of the application, by comparing the maximum peak amplitude at the current moment with the average of the maximum peak amplitudes in the historical echo signals, a more accurate amplitude increase at the current moment can be obtained, so as to more accurately correct the water outlet threshold in the future.

[0049] In one embodiment, comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: determining the maximum peak amplitude of the echo signal within the preset time region; determining the time point corresponding to the maximum peak amplitude; determining the average second peak amplitude of the time points in the historical echo signals; and comparing the maximum peak amplitude with the average second peak amplitude to obtain the amplitude increase.

[0050] It can be understood that the average amplitude of the second peak is the average peak amplitude of the historical echo signal corresponding to the standby state at a certain time point, and the time point corresponding to the maximum peak amplitude at the current moment of that certain time point is the same time point.

[0051] Specifically, the processor can determine the maximum peak amplitude of the current echo signal in a preset time region (i.e., the effective region) and the time point corresponding to the maximum peak amplitude, and determine the average peak amplitude of the historical echo signal at that time point, i.e., the average second peak amplitude. The processor compares the maximum peak amplitude at the current moment with the average second peak amplitude, i.e., subtracts the average second peak amplitude from the maximum peak amplitude at the current moment, thereby obtaining the amplitude increase.

[0052] In this embodiment of the application, by comparing the maximum peak amplitude at the current moment with the average peak amplitude at the time point corresponding to the maximum peak amplitude in the historical echo signal, a more accurate amplitude increase at the current moment can be obtained, so as to more accurately correct the water outlet threshold in the future.

[0053] In one embodiment, comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: determining the average third peak amplitude of the historical echo signal at each time point within the preset time region; sequentially comparing the peak amplitude of the echo signal at each time point within the preset time region with the average third peak amplitude of the historical echo signal at each time point to obtain the peak amplitude increase at each time point; and determining the average of the peak amplitude increase at each time point to obtain the amplitude increase.

[0054] It can be understood that the average peak amplitude of the third wave is the average peak amplitude of the historical echo signal corresponding to the standby state at various time points within the preset time range, which can characterize the overall value of the peak amplitude of the historical echo signal in the standby state.

[0055] Specifically, the processor can determine the average peak amplitude of the historical echo signal corresponding to the standby state at each time point, i.e., the average third peak amplitude, and sequentially compare the peak amplitude of the echo signal received at the current time at each time point with the average third peak amplitude. That is, subtract the average third peak amplitude corresponding to each time point from the peak amplitude at each time point to obtain the peak amplitude increase at each time point. Then, the average of the peak amplitude increase at each time point is calculated to obtain the amplitude increase.

[0056] In this embodiment of the application, by comparing the peak amplitude of each time point in the preset time region with the average amplitude of the third peak of each time point in the historical echo signal, and averaging the comparison results, a more accurate amplitude increase at the current moment can be obtained, so as to more accurately correct the water outlet threshold in the future.

[0057] In one embodiment, comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: determining a preset number of time points from the preset time region; determining the average amplitude of the fourth peak at the preset number of time points in the echo signal; determining the average amplitude of the fifth peak at the preset number of time points in the historical echo signal; and comparing the average amplitude of the fourth peak with the average amplitude of the fifth peak to obtain the amplitude increase.

[0058] It can be understood that the average amplitude of the fourth peak is the average peak amplitude corresponding to a preset number of time points in the echo signal at the current moment. The average amplitude of the fifth peak is the average peak amplitude corresponding to a preset number of time points in the historical echo signal corresponding to the standby state. The preset number is the number of time points set in advance, such as 4.

[0059] Specifically, the processor can determine a preset number (e.g., 4) of time points from a preset time region. For example, the preset time region can be divided into five equal parts, and the four middle segments can be the preset number of time points. After determining the preset number of time points, the average value of the peak amplitude corresponding to the preset number of time points in the echo signal at the current moment can be determined, i.e., the average value of the fourth peak amplitude. The average value of the peak amplitude of the preset number of time points in the historical echo signal can also be determined to obtain the average value of the fourth peak amplitude. The average value of the fourth peak amplitude is compared with the average value of the fifth peak amplitude, i.e., the average value of the fourth peak amplitude is subtracted from the average value of the fifth peak amplitude to obtain the amplitude increase.

[0060] In this embodiment of the application, by comparing the average peak amplitude of a preset number of time points in the current echo signal with the average peak amplitude of a preset number of time points in the historical echo signal, a more accurate amplitude increase at the current moment can be obtained, so as to more accurately correct the water outlet threshold in the future.

[0061] In one embodiment, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water. This includes adding the amplitude increase to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0062] Specifically, the processor can add the amplitude increase amount to the threshold value for triggering water dispensing from the water dispenser, thus obtaining a corrected threshold value. This corrected threshold value can then be used to control water dispensing from the water dispenser. That is, after receiving the next echo signal, water dispensing from the water dispenser will only be triggered if the peak amplitude of the echo signal is greater than or equal to the corrected threshold value; otherwise, water dispensing will not be triggered. Furthermore, the processor can also correct the threshold value for triggering water dispensing by adding the amplitude increase amount to the threshold value after determining that the amplitude increase amount has reached a preset threshold value.

[0063] In this embodiment, by adding an amplitude increase to the peak amplitude threshold, the peak amplitude threshold that triggers water dispensing from the water dispenser can be corrected. This overcomes the influence of external factors or the ultrasonic waves themselves on the ultrasonic waves, reduces the probability of false triggering of the water dispenser, and improves the water dispensing accuracy and safety during use.

[0064] In one embodiment, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water, including: determining that the amplitude increase has reached a preset increase threshold; and adding the preset increase threshold to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0065] It is understandable that the preset growth threshold is the standard threshold for the pre-selected amplitude growth amount.

[0066] Specifically, after obtaining the amplitude increase, the processor can compare the amplitude increase with a preset increase threshold. If the amplitude increase is greater than or equal to the preset increase threshold, the processor can add the preset increase threshold to the peak amplitude threshold that triggers the water dispenser to dispense water, thereby obtaining a corrected peak amplitude threshold. Then, the processor can control the water dispenser to dispense water based on the corrected peak amplitude threshold. That is, after receiving the echo signal for the next time, the water dispenser can only be triggered to dispense water if the peak amplitude of the echo signal is greater than or equal to the corrected peak amplitude threshold; otherwise, the water dispenser will not be triggered to dispense water.

[0067] In this embodiment of the application, by adding a preset growth threshold to the peak amplitude threshold, the peak amplitude threshold that triggers the water dispenser to dispense water can be corrected. This overcomes the influence of external factors or its own electronic components on the ultrasonic waves, reduces the probability of the water dispenser being falsely triggered, and improves the water dispensing accuracy and safety during use.

[0068] In one embodiment, the peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water. This includes: determining the corresponding correction amount based on the pre-stored correspondence between the amplitude increase and the correction amount; and adding the corresponding correction amount to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0069] It is understandable that there can be a corresponding relationship between the amplitude increase and the correction amount of the peak amplitude threshold. This relationship can be in the form of a table or a function. Specifically, it can be set and stored in advance according to the actual situation. For example, when the amplitude increase is 50, the correction amount is 55, and when the amplitude increase is 55, the correction amount is 60, that is, the correction amount is 5 more than the amplitude increase.

[0070] Specifically, the processor can determine the corresponding correction amount based on the current amplitude increase amount, according to the pre-stored correspondence between amplitude increase and correction amount. After the correction amount is determined, the corresponding correction amount is added to the peak amplitude threshold to obtain the corrected peak amplitude threshold. Furthermore, the processor can also correct the peak amplitude threshold that triggers the water dispenser to dispense water after determining that the amplitude increase amount has reached a preset increase threshold.

[0071] In this embodiment, by pre-determining and storing the correspondence between amplitude increase and correction amount, the corresponding correction amount can be determined based on the actual amplitude increase. By adding the corresponding correction amount to the peak amplitude threshold, the peak amplitude threshold that triggers water dispensing from the water dispenser can be corrected. This overcomes the influence of external factors or electronic materials on the ultrasonic wave itself, reduces the probability of false triggering of the water dispenser, and improves the water dispensing accuracy and safety during use.

[0072] In another embodiment, the peak amplitude threshold for triggering water dispensing from the water dispenser is corrected by: determining the corrected peak amplitude threshold based on the pre-stored correspondence between the amplitude increase and the corrected peak amplitude threshold.

[0073] In other words, the processor can directly determine and store the correspondence between the amplitude increase and the corrected peak amplitude threshold, so that the corrected peak amplitude threshold can be determined directly based on this correspondence and the amplitude increase, simplifying the computation. Furthermore, the correspondence between the amplitude increase and the corrected peak amplitude threshold can be linear. For example, when the amplitude increase is 50, the corrected peak amplitude threshold can be 1500, and when the amplitude increase is 60, the corrected peak amplitude threshold can be 1600.

[0074] Understandably, ultrasound is an analog signal, typically operating between 24kHz and 200kHz, falling into the low-to-mid frequency range. A characteristic of analog signals is their susceptibility to external spatial influences or variations in the impedance and capacitance of their electronic components. Specifically, these variations can be caused by physical vibrations of objects, electromagnetic radiation, temperature shifts in their electronic components, or other factors. When the water dispenser is in standby mode, the echo signal of the ultrasound will have a higher noise floor than before. This means that interference signals that wouldn't normally meet the minimum threshold will continuously trigger the software's judgment conditions. When certain conditions are met, a misidentification event can occur, causing the water dispenser to dispense water unexpectedly.

[0075] Typically, when a water dispenser is in standby mode, there is no water dispenser in the water dispensing area, and the echo signal within the effective area (i.e., the preset time area) is usually relatively flat. Figure 2 As shown, Figure 2 This is a schematic diagram of the echo signal when the water dispenser is in standby mode. If some interfering signals (such as water droplets, sticks, insects, etc.) happen to be in the probe's radiation area, a weak peak signal will appear, such as... Figure 3 As shown, Figure 3This diagram illustrates an interference signal whose peak amplitude is less than the minimum threshold for triggering water dispensing from the water dispenser. Although there is a raised echo signal, its amplitude is less than the minimum threshold originally set by the program (i.e., the water dispenser's dispensing trigger threshold), so it does not trigger the main control identification command. However, due to various reasons (including the influence of external space or the impedance / capacitance deviation of its own electronic components on the ultrasonic waves), the noise floor of the echo signal may shift upwards, such as... Figure 4 As shown, Figure 4 This diagram illustrates the echo signal from a water dispenser triggered by an increased background noise level, causing interference signals to rise and thus dispensing water. What was originally a spike in the noise signal becomes a legitimate cup signal. At this point, the water dispenser's recognition program activates, identifying it as a valid cup and automatically dispensing water, leading to a leak.

[0076] The root cause of this problem is the common assumption that once the hardware parameters of a module remain unchanged, its noise floor will not change. Therefore, a fixed minimum threshold is artificially set, and only peaks exceeding the minimum threshold will trigger a judgment. However, this ignores the fact that various environmental factors can affect the module's noise floor, causing a normally functioning module to experience a shift in its noise floor under certain external interference.

[0077] Therefore, the solution to this problem is to monitor the background noise of the ultrasound in real time and compare it with the saved background noise (or the previous one, or the background noise at the time of power-on) every once in a while. If the background noise in the receiving area changes, the main program is notified to correct the minimum threshold in time.

[0078] The core of this invention is: assuming that the noise floor is not fixed and will change with external changes, when a change in the noise floor is detected, the main program is notified to promptly correct its minimum threshold to prevent false triggering.

[0079] The method in this embodiment of the invention is as follows: A separate real-time monitoring program is started to monitor the noise floor. However, if the noise floor changes for some reason, a judgment instruction is initiated. If the noise floor has indeed changed, the main program is instructed to make necessary adjustments to the minimum threshold, such as... Figure 5 As shown, Figure 5 This is a schematic diagram showing that the peak amplitude of the echo signal of the interference signal is less than the corrected peak amplitude threshold, thus preventing the interference signal from reaching the triggering condition.

[0080] In one embodiment, the method for determining the change in background noise can be as follows: When the water dispenser is in standby mode, the entire background noise curve saved at the factory can be compared with the currently acquired curve. Generally, the effective portion of the curve is selected, as other areas are less relevant to the background noise. Alternatively, the curve saved after the last calculation can be compared. The advantage of selecting the factory-set background noise curve is that it represents the module's optimal state and is the most accurate original background noise. The disadvantage is that as the module is used more, electronics will deteriorate, and the background noise will increase over time, leading to larger calculation deviations. Selecting the previously saved curve has the advantage of good dynamics; adjacent calculations will not deviate too much, making it closer to the true value. Therefore, we generally select the factory-set background noise as the default background noise value. When the program malfunctions or calculations fail, the factory value is used for calibration. Each matching operation uses the previously saved curve.

[0081] The specific calculation method for the change in noise floor can be as follows: Matching can be performed using the entire selected curve, generally choosing the average change at each point on the curve. Alternatively, the value of the point with the largest change in the curve can be selected. For lower-end microcontrollers, the values ​​of several key points on the curve can be selected to measure the change, and then averaged. Furthermore, the relationship between the change in noise floor and the minimum threshold can be established using experimental data tables, corresponding to the final average value f′ (i.e., the current amplitude increase) and the corrected minimum threshold h′ (i.e., the corrected peak amplitude threshold).

[0082] The specific steps can be as follows:

[0083] 1. First, initialize the factory-set minimum noise floor curve. Obtain the curve from the last calculation. We set the minimum threshold H = h0 for the echo signal.

[0084] 2. Start the monitoring program and collect the current noise floor curve f(x,y) at time T.

[0085] 3. Select the effective curve portions and subtract them pairwise, record the change fn at each point, and finally calculate the average f′.

[0086] 4. Look up the table to find the correspondence between h′(f′).

[0087] 5. When the change in f′-f (the previous magnitude increase) is greater than △f (the preset growth threshold), the current minimum threshold is corrected.

[0088] 6. Save the current noise floor curve for the next analysis.

[0089] In this embodiment of the invention, there is a corresponding relationship between the amplitude increase and the corrected peak amplitude threshold. Therefore, the corrected peak amplitude threshold can be determined directly based on the amplitude increase, which can realize real-time response to the background noise signal and dynamically change the peak amplitude threshold that triggers the water dispenser to dispense water.

[0090] This invention also provides a processor configured to execute the method for preventing accidental triggering of a water dispenser according to the above embodiments.

[0091] Figure 6 A schematic diagram of a water dispenser according to an embodiment of the present invention is shown. Figure 6 As shown, in this embodiment of the invention, a water dispenser 600 is provided, including: an ultrasonic detector 610 and a processor 620, wherein:

[0092] The processor 620 is configured to: determine that the water dispenser is in standby mode; acquire the echo signal received by the ultrasonic detector; compare the echo signal with the pre-stored historical echo signal corresponding to the standby mode to obtain the amplitude increase of the echo signal within a preset time range; and correct the peak amplitude threshold based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water.

[0093] In the water dispenser 600 described above, the processor 620 acquires the echo signal received by the ultrasonic detector 610 when the water dispenser 600 is in standby mode. It then compares the echo signal with pre-stored historical echo signals corresponding to the standby mode to obtain the amplitude increase of the echo signal within a preset time range. Based on the amplitude increase and the peak amplitude threshold for triggering water dispensing from the water dispenser, the processor corrects the peak amplitude threshold. By comparing the echo signal of the current standby mode with historical echo signals from previous standby modes, the influence of external space or the impedance deviation of the ultrasonic components can be quantified. Furthermore, the peak amplitude threshold for triggering water dispensing from the water dispenser can be corrected based on the quantified amplitude increase. This reduces the impact of ultrasonic waves on the water dispensing trigger action, prevents false triggering due to ultrasonic waves, improves the safety of the water dispenser during use, and reduces unnecessary resource waste.

[0094] In one embodiment, the processor 620 is further configured to: determine the maximum peak amplitude of the echo signal within a preset time period; determine the average first peak amplitude of historical echo signals within the preset time period; and compare the maximum peak amplitude with the average first peak amplitude to obtain the amplitude increase.

[0095] In one embodiment, the processor 620 is further configured to: determine the maximum peak amplitude of the echo signal within a preset time region; determine the time point corresponding to the maximum peak amplitude; determine the average second peak amplitude of the time points in the historical echo signal; and compare the maximum peak amplitude with the average second peak amplitude to obtain the amplitude increase.

[0096] In one embodiment, the processor 620 is further configured to: determine the average third peak amplitude of the historical echo signal at each time point within a preset time region; sequentially compare the peak amplitude of the echo signal at each time point within the preset time region with the average third peak amplitude of the historical echo signal at each time point to obtain the peak amplitude increase at each time point; and determine the average of the peak amplitude increase at each time point to obtain the amplitude increase.

[0097] In one embodiment, the processor 620 is further configured to: determine a preset number of time points from a preset time region; determine the average amplitude of the fourth peak of the preset number of time points in the echo signal; determine the average amplitude of the fifth peak of the preset number of time points in the historical echo signal; and compare the average amplitude of the fourth peak with the average amplitude of the fifth peak to obtain the amplitude increase.

[0098] In one embodiment, the processor 620 is further configured to add an amplitude increase to the peak amplitude threshold to obtain a corrected peak amplitude threshold.

[0099] In one embodiment, the processor 620 is further configured to: determine that the amplitude increase has reached a preset increase threshold; and add the preset increase threshold to the peak amplitude threshold to obtain a corrected peak amplitude threshold.

[0100] In one embodiment, the processor 620 is further configured to: determine the corresponding correction amount based on the pre-stored correspondence between amplitude increase and correction amount; and add the corresponding correction amount to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

[0101] In another embodiment, the processor 620 is further configured to: determine the corrected peak amplitude threshold based on the pre-stored correspondence between the amplitude increase and the corrected peak amplitude threshold.

[0102] This invention also provides a machine-readable storage medium storing instructions or programs that, when executed by a processor, cause the processor to perform the method for preventing accidental triggering of a water dispenser according to the above embodiments.

[0103] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0105] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0106] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0107] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0108] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0109] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0110] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0111] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for preventing accidental triggering of a water dispenser, applied to a water dispenser including an ultrasonic detector, characterized in that, The method includes: It is confirmed that the water dispenser is in standby mode; Acquire the echo signal received by the ultrasonic detector; The echo signal is compared with the pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time range. The peak amplitude threshold is corrected based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water.

2. The method according to claim 1, characterized in that, The step of comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: Determine the maximum peak amplitude of the echo signal within the preset time region; Determine the average amplitude of the first peak in the historical echo signal within the preset time region; The maximum peak amplitude is compared with the average of the first peak amplitudes to obtain the amplitude increase.

3. The method according to claim 1, characterized in that, The step of comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: Determine the maximum peak amplitude of the echo signal within the preset time region; Determine the time point corresponding to the maximum peak amplitude; Determine the average amplitude of the second peak at the specified time point in the historical echo signal; The maximum peak amplitude is compared with the average of the second peak amplitudes to obtain the amplitude increase.

4. The method according to claim 1, characterized in that, The step of comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: Determine the average amplitude of the third peak of the historical echo signal at each time point within the preset time region; The peak amplitude of the echo signal at each time point is compared with the average third peak amplitude at each time point in turn to obtain the increase in peak amplitude at each time point. The mean value of the peak amplitude increase at each time point is determined to obtain the amplitude increase.

5. The method according to claim 1, characterized in that, The step of comparing the echo signal with pre-stored historical echo signals corresponding to the standby state to obtain the amplitude increase of the echo signal within a preset time region includes: A preset number of time points are determined from the preset time region; Determine the average amplitude of the fourth peak at the preset number of time points in the echo signal; Determine the average amplitude of the fifth peak at the preset number of time points in the historical echo signal; The average amplitude of the fourth peak is compared with the average amplitude of the fifth peak to obtain the amplitude increase.

6. The method according to claim 1, characterized in that, The step of correcting the peak amplitude threshold based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water includes: The amplitude increase is added to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

7. The method according to claim 1, characterized in that, The step of correcting the peak amplitude threshold based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water includes: Determine that the amplitude increase reaches a preset increase threshold; The preset growth threshold is added to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

8. The method according to claim 1, characterized in that, The step of correcting the peak amplitude threshold based on the amplitude increase and the peak amplitude threshold that triggers the water dispenser to dispense water includes: Based on the pre-stored correspondence between amplitude increase and correction amount, the corresponding correction amount is determined according to the amplitude increase amount; The corresponding correction amount is added to the peak amplitude threshold to obtain the corrected peak amplitude threshold.

9. A processor, characterized in that, The processor is configured to perform the method for preventing accidental triggering of a water dispenser according to any one of claims 1 to 8.

10. A water dispenser, characterized in that, include: Ultrasonic detector; as well as The processor according to claim 9.

11. A machine-readable storage medium having instructions or programs stored thereon, characterized in that, When the instruction or program is executed by the processor, it causes the processor to perform the method for preventing accidental triggering of the water dispenser according to any one of claims 1 to 8.