Control method and device of water outlet equipment, water outlet equipment and storage medium
By combining the induction module and the optical signal detection module, the signal intensity value of the reflected signal along the cup is analyzed, and the problem of water effluent cannot be accurately controlled due to the height of the container exceeding the detection angle in the prior art, real-time precise control of the water effluent equipment and improving user experience is achieved.
Patent Information
- Application Number
- CN202411807774.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-21
AI Technical Summary
When existing water outlet equipment detects the height of the container, if the height of the container exceeds the detection angle of the single signal detection module, accurate height information cannot be obtained, resulting in the water outlet cannot be accurately controlled, which may cause liquid overflow and affect user experience.
Using a combination of induction module and optical signal detection module, the induction module is used to monitor the container placement area, and the optical signal detection module is used to obtain process data of the water storage container, and determine the container height by analyzing the signal intensity value of the reflected signal along the cup.
Real-time and accurate control of the water effluent of the water effluent equipment is achieved, the user experience is improved, the accuracy of container height measurement is ensured, and the safety hazards of water effluent caused by improper container position are avoided.
Smart Images

Figure CN119655613A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of water outlet equipment, and in particular to a control method and device for water outlet equipment, water outlet equipment and a storage medium. Background Art
[0002] In daily life, drinking water equipment is widely used as a device for heating or cooling water. In related technologies, a single signal detection module is often used to detect the height of different containers. However, when using a single signal detection module, if the height of the container itself exceeds the detection angle of the single signal detection module, the accurate height information of the container cannot be obtained, resulting in the inability to accurately control the water output, which will cause liquid overflow and affect the user experience. Summary of the invention
[0003] The present application provides a control method, device, water outlet device and storage medium for a water outlet device, aiming to control the water outlet of the water outlet device in real time, thereby improving the user experience. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a control method for a water outlet device, wherein the water outlet device includes a sensing module and an optical signal detection module, wherein the sensing module is disposed in a sensing area of the water outlet device and is used to monitor a container placement area of the water outlet device, and the optical signal detection module is disposed in a water outlet area of the water outlet device, and the method includes:
[0005] Acquire process data of the water storage container based on the optical signal detection module, and extract multiple cup edge reflection signals of the water storage container from the process data;
[0006] Perform numerical analysis on the signal strength values of each cup edge reflection signal to determine the target cup edge reflection signal;
[0007] The container height of the water storage container is determined based on the signal strength value of the reflected signal from the target cup edge.
[0008] In a second aspect, an embodiment of the present application provides a control device for a water outlet device, wherein the water outlet device includes a sensing module and an optical signal detection module, wherein the sensing module is disposed in a sensing area of the water outlet device and is used to monitor a container placement area of the water outlet device, and the optical signal detection module is disposed in a water outlet area of the water outlet device, and includes: a data acquisition unit, which is used to acquire sensing data collected by the sensing module in a preset sensing area of the water outlet device;
[0009] A data acquisition unit, used to acquire process data of the water storage container based on the optical signal detection module, and extract multiple cup edge reflection signals of the water storage container from the process data;
[0010] A signal determination unit, used for performing numerical analysis on the signal strength values of each cup edge reflection signal to determine the target cup edge reflection signal;
[0011] The height acquisition unit is used to determine the container height of the water storage container based on the signal strength value of the target cup edge reflection signal.
[0012] In a third aspect, an embodiment of the present application provides a water outlet device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, a control method for the water outlet device as described above is implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, a control method for a water outlet device as described in any one of the above items is implemented.
[0014] In the above technical solution, the light signal detection module is used to capture the reflected signal from the edge of the cup, and the target reflected signal indicating the height of the water storage container is determined by numerical analysis. Based on the intensity value of the signal, the height of the water storage container can be accurately calculated. This process not only significantly improves the intelligent management level of the water outlet equipment, but also effectively improves the safety of the operation of the water storage equipment and the convenience of user experience. When the water storage container is too high, the intensity value of the reflected signal can be accurately monitored and analyzed to overcome the monitoring error caused by the distance change, ensure the accuracy of the height measurement, and avoid the hidden dangers of water outlet safety caused by improper container position. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 It is a scene schematic diagram of a control method of a water outlet device provided in an embodiment of the present application;
[0017] Figure 2 It is a flow chart of a control method of a water outlet device provided in an embodiment of the present application;
[0018] Figure 3 This is a flow chart of a control method for a water outlet device provided in an embodiment of the present application.
[0019] Figure 4 It is a flow chart of a control method of a water outlet device provided in an embodiment of the present application;
[0020] Figure 5 It is a scene schematic diagram of a control method of a water outlet device provided in an embodiment of the present application;
[0021] Figure 6 It is a flow chart of a control method of a water outlet device provided in an embodiment of the present application;
[0022] Figure 7 It is a flow chart of a control method of a water outlet device provided in an embodiment of the present application;
[0023] Figure 8 It is a scene schematic diagram of a control method of a water outlet device provided in an embodiment of the present application;
[0024] Fig. 9 It is a structural schematic diagram of a control device for a water outlet device provided in an embodiment of the present application;
[0025] Fig.10 It is a structural schematic diagram of a water outlet device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0027] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0029] In order to improve the safety of the use of the water outlet device, the embodiment of the present application provides a control method for the water outlet device, and the execution subject of the control method for the water outlet device is the water outlet device. The following is a detailed description. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Figure 1 , Figure 1 This is a system architecture diagram of a control method for a water outlet device provided in an embodiment of the present application. The specific process of the control method for the water outlet device can be as follows:
[0030] Figure 1 It is a scene schematic diagram of a control method of a water outlet device provided in an embodiment of the present application.
[0031] like Figure 1 As shown, the water outlet device mainly includes a sensing module and an optical signal detection module, wherein the sensing module is arranged in the sensing area of the water outlet device, and is used to monitor objects in the container placement area of the water outlet device. The sensing module may include but is not limited to photoelectric sensors, ultrasonic sensors, infrared sensors, laser sensors and other modules that can be used to detect the distance and position of objects. The optical signal detection module may specifically be an optical signal detection module, namely a TOF module (Time of Flight), which is a sensor technology that measures distance by measuring the time required from the emission to the reception of an optical signal. The TOF module sends light beam signals to the container placement area and measures the flight time of these light beam signals from the emission to the reception, thereby calculating the distance to the target object in the container placement area.
[0032] In actual scenarios, the sensing module will continuously monitor the signal of the container placement area below the water outlet of the water outlet device. In this way, the sensing module can collect and analyze the sensing data of the area in real time to understand whether there is a water storage container currently placed in the container placement area. When it is known from the sensing data that there is a water storage container in the container placement area, the position change data of the water storage container is extracted from the sensing data in real time, that is, the relative distance between the water storage container and the sensing module is obtained.
[0033] Through sensing data, it is determined whether there is a water storage container entering the container placement area. If so, the TOF module is controlled to emit a light signal to the container placement area, and the reflection signal of the light signal is determined as the process data of the water storage container. Since the plane height of the cup edge of the water storage container is higher than the plane height of the cup bottom, and in actual scenarios, the cup edge of the water storage container is often horizontally distributed, when the light signal is irradiated to the water storage container, the reflection time of the reflection signal of the cup edge is shorter than the reflection time of the reflection signal of the cup bottom, and since the reflection area of the cup edge is smaller than the reflection area of the cup bottom, it can be known that the intensity value of the reflection signal of the cup edge is smaller than the intensity value of the reflection signal of the cup bottom. At this time, the reflection time can be analyzed to determine whether the reflection signal belongs to the cup edge or the cup bottom, and the cup edge reflection signal and the cup bottom reflection signal are obtained.
[0034] In order to determine the container height of the water storage container, it is necessary to intermittently obtain the cup edge reflection signal when the water storage container is in a moving placement state. Since the smaller the relative distance between the water storage container and the sensing module, the larger the contact area between the cup edge and the emitted light signal of the TOF module, that is, the stronger the signal strength value of the corresponding cup edge reflection signal. At the same time, if it is monitored that the relative distance between the water storage container and the sensing module has not changed within a preset time length, it is considered that the water storage container is in a static placement state. At this time, the target cup edge reflection signal with the largest signal strength value is determined from the multiple cup edge reflection signals previously collected, and a query statement is generated based on the signal strength value of the target cup edge reflection signal. The query statement is executed to find the height information corresponding to the signal strength value from the preset height comparison data, and the height information is determined as the container height of the water storage container, wherein the height comparison data contains a mapping relationship between different signal strength values and corresponding height information.
[0035] When the water storage container is in a static state, the water outlet device is controlled to enter the water outlet state. At this time, the water outlet will start to inject water into the water storage container. During the water injection period, the TOF module analyzes the cup bottom reflection signal of the water storage container in real time, that is, the liquid surface reflection signal of the liquid in the water storage container. Since the shorter the reflection time of the reflection signal, the greater the intensity value of the reflection signal received by the TOF module, the corresponding liquid level height query statement can be generated through the signal strength value of the reflection signal under different reflection times to find the height corresponding to the intensity value from the preset height comparison database, and the liquid level height is determined as the corresponding liquid level height of the water storage container.
[0036] The height difference between the liquid level and the container height is analyzed. If the height difference is greater than or equal to the preset difference threshold, the working state of the water outlet device is adjusted to the water-off state. At this time, the water outlet of the water outlet device will stop discharging water to the water storage container, thereby improving the accuracy and safety of the water outlet device in the process of filling water into the water storage container, effectively avoiding overflow accidents caused by excessive water filling, protecting the equipment from potential damage, preventing the waste of water resources, and ensuring the convenience and reliability of user use.
[0037] based on Figure 1 The scene diagram shown below will be combined with Figure 2-Figure 8 , a control method for a water outlet device provided in an embodiment of the present application is introduced in detail.
[0038] Based on the above situation, the present application embodiment proposes a control method for a water outlet device. Figure 2 , Figure 2 Schematic diagram of a flow chart of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S103.
[0039] S101, obtaining process data of a water storage container based on an optical signal detection module, and extracting a plurality of cup edge reflection signals of the water storage container from the process data.
[0040] In an embodiment of the present application, the optical signal detection module is a sensor technology that measures distance by measuring the time required for an optical signal to be transmitted and received. The optical signal detection module sends light beam signals to the container placement area and measures the flight time of these light beam signals from transmission to reception, thereby calculating the distance to the edge of the cup, the bottom of the cup, and the liquid surface of the water storage container in the container placement area.
[0041] Specifically, by real-time monitoring of the change in the relative distance between the sensing module and the water storage container, it is determined whether the container is in a mobile placement state. Once it is confirmed that the water storage container is in a mobile placement state, the optical signal detection module will be activated to emit an optical signal to the placement area at a preset irradiation angle, and the reflection signal of the water storage container will be obtained according to the preset interval duration. Since the cup edge of the water storage container is usually located at a higher position and is horizontally distributed, the reflection signal generated when the light signal is irradiated to the cup edge will return earlier than the bottom of the cup, and since the reflection area of the cup edge is small, the intensity of its reflection signal is lower than the intensity value of the reflection signal of the bottom of the cup and the liquid surface. The reflection signals of the cup edge and the bottom of the cup can be distinguished by the duration and intensity of the reflection signal.
[0042] S102, performing numerical analysis on the signal strength values of each cup edge reflection signal to determine a target cup edge reflection signal.
[0043] Specifically, after obtaining multiple cup edge reflection signals based on the above S104, in order to further accurately measure the height of the water storage container, it is necessary to intermittently capture the cup edge reflection signal when the water storage container is in a moving state. As the water storage container gradually approaches the sensing module, the contact area of the cup edge with the light signal increases, and the intensity of the cup edge reflection signal will gradually increase. When it is monitored that the relative distance between the water storage container and the sensing module remains unchanged for a preset period of time, it is determined that the container has entered a stationary state. At this time, the system will filter out the target reflection signal with the largest signal intensity from the multiple cup edge reflection signals collected previously.
[0044] S103: Determine the height of the water storage container based on the signal strength value of the reflected signal from the target cup edge.
[0045] Specifically, a query statement is generated according to the signal strength value of the target reflection signal in the above S102, and the query statement is executed to find out the height information corresponding to the signal strength value in a preset height comparison data table, and determine the container height of the water storage container accordingly, wherein the height comparison data contains a mapping relationship between different signal strength values and corresponding height information.
[0046] As can be seen from the above, by using the optical signal detection module to capture the reflected signal from the edge of the cup, and by numerical analysis, it is possible to obtain the target reflected signal indicating the height of the water storage container. Based on the intensity value of the signal, the height of the water storage container can be accurately calculated. This process not only significantly improves the intelligent management level of the water outlet equipment, but also effectively improves the safety of the operation of the water storage equipment and the convenience of user experience. When the water storage container is too high, it can accurately monitor and analyze the intensity value of the reflected signal to overcome the monitoring error caused by the distance change, ensure the accuracy of the height measurement, and avoid the hidden dangers of water outlet safety caused by improper container position.
[0047] To improve the accuracy of the water supply equipment in filling the water storage container. Figure 3 , Figure 3 Schematic diagram of a flow chart of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S204.
[0048] S201, acquiring sensing data collected by a sensing module in a preset sensing area of a water outlet device.
[0049] In the embodiment of the present application, the sensing module is arranged in the sensing area of the water outlet device, and is used to monitor objects in the container placement area of the water outlet device. The sensing module may include but is not limited to modules such as photoelectric sensors, ultrasonic sensors, infrared sensors, and laser sensors that can be used to detect the distance and position of objects. The specific type of the sensing module can be set according to the actual scene and is not specifically limited here. The preset sensing area is the container placement area below the water outlet of the water outlet device, and the container placement area can be monitored by the sensing module.
[0050] Specifically, when the water outlet equipment starts and enters the working state, the control system will immediately activate the sensing module and put the sensing module into working mode. The sensing module is specifically responsible for monitoring the container placement area below the water outlet, capturing and analyzing the dynamics of objects in the area in real time. The sensing module can accurately identify whether there are objects in the preset sensing area, and further determine whether these objects have moved. If the object moves, the sensing module can also accurately record key information such as the distance and direction of its movement. These sensing data provide accurate data support for realizing the intelligent management level of water outlet equipment.
[0051] S202: If it is determined based on the sensing data that any water storage container has entered the container placement area, the optical signal detection module is controlled to emit an optical signal to the water storage container.
[0052] S203: Acquire a reflection signal of the light signal based on the light signal detection module, and determine the reflection signal as process data.
[0053] Specifically, in S202-S203, in order to extract the process data of the water storage container in the preset sensing area from the sensing data, the sensing module needs to be calibrated first to ensure that it can accurately capture the position information of the water storage container in the preset sensing area space. When the sensing module detects the water storage container, it will generate a series of sensing data points containing position coordinates. The sensing data points are analyzed and processed in real time through a preset processing algorithm to identify the current position of the water storage container and its changing trend over time. By comparing the position coordinates at different time points, the moving distance and direction of the water storage container can be further calculated. In order to improve the accuracy and reliability of the data, filtering technology can be used to remove noise interference, and historical data can be combined for trend prediction and anomaly detection. Finally, the extracted process data can be used to monitor and control the operating status of the water outlet equipment in real time to ensure its efficiency and safety under various operating conditions.
[0054] Furthermore, by analyzing the relative distance between the sensing module and the water storage container in the container placement area in the position change data, the position status of the water storage container can be continuously monitored. In this process, if it is detected that the relative distance continues to change within a preset time period, that is, the distance is not constant, but shows obvious dynamic fluctuations, then it will be determined that the current water storage container is in a moving placement state. If it is detected that the relative distance continues to remain unchanged within a preset time period, that is, the distance is constant and does not show obvious dynamic fluctuations, then it will be determined that the current water storage container is in a static placement state. By determining the state of the water storage container, the safety and efficiency of the equipment operation can be improved, thereby providing users with a more convenient and intelligent use experience.
[0055] In a feasible embodiment, historically collected position change data is used to identify movement patterns and anomaly detection of water storage containers. By analyzing the position change data, the regularities and trends of normal container movement can be learned, such as common movement paths, speeds, and time points of movement. Based on these learned patterns, the future movement behavior of the water storage container is predicted, so that preparations can be made in advance or the operation strategy of the equipment can be adjusted. At the same time, the anomaly detection function enables the system to identify abnormal movement behaviors that do not conform to the normal pattern, such as unexpected violent movements or sudden stops. These anomalies may indicate potential problems, such as displacement of the container, failure of the equipment, etc. By timely discovering and handling these anomalies, water discharge anomalies can be avoided, thereby ensuring the safe and stable operation of the water discharge equipment.
[0056] S204: Determine a cup edge reflection signal and a liquid surface reflection signal of the water storage container based on the reflection duration of each reflection signal in the process data.
[0057] Specifically, when the TOF module emits a light signal to the container placement area, and determines the reflected signal of the light signal as the process data of the water storage container, since the plane height of the cup edge of the water storage container is higher than the plane height of the cup bottom, and in actual scenarios, the cup edge of the water storage container is often horizontally distributed, when the light signal is irradiated to the water storage container, the reflection time of the reflected signal of the cup edge is shorter than the reflection time of the reflected signal of the cup bottom, and since the reflection area of the cup edge is smaller than the reflection area of the cup bottom, it can be known that the intensity value of the reflected signal of the cup edge is smaller than the intensity value of the reflected signal of the cup bottom. At this time, the reflection time can be analyzed to determine whether the reflected signal belongs to the cup edge or the cup bottom, and then the reflection signals in the process data are distinguished to obtain the cup edge reflection signal and the cup bottom reflection signal.
[0058] As can be seen from the above, by acquiring the sensing data collected by the sensing module in the preset sensing area of the water outlet device, we can accurately extract the position change information of the water storage container in the area, monitor the placement status of the water storage container in real time, ensure its stability and safety, and accurately identify the cup edge reflection signal and liquid surface reflection signal of the water storage container by analyzing the reflection duration of each reflection signal in the process. This can significantly improve the intelligence level of the water outlet device, achieve more accurate water level control and user interaction experience, and bring higher convenience and safety.
[0059] Since the water dispensing device may cause splashing damage to the user when the water storage container is in motion, it is necessary to detect the status of the water storage container in real time. Figure 4 , Figure 4 Schematic diagram of a flow chart of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301-S305.
[0060] S301, extracting position change data of the water storage container from the sensing data, and determining the relative distance between the water storage container and the sensing module based on the position change data.
[0061] Specifically, when the sensing module detects the water storage container, it will generate a series of sensing data points containing position coordinates. The sensing data points are analyzed and processed in real time through a preset processing algorithm to identify the current position of the water storage container and its changing trend over time. By comparing the position coordinates at different time points, the moving distance and direction of the water storage container can be further calculated to generate position change data. Since the position change data contains the position information of the water storage container in the preset sensing area space, the relative distance between the water storage container and the sensing module can be further known based on the position information.
[0062] Exemplarily, when the water storage container is placed at a distance of 30 centimeters from the sensing module, the sensing module can capture its position information and determine that the relative distance between the water storage container and the sensing module is 30 centimeters by analyzing the data.
[0063] S302: If the relative distance changes within a preset time, it is determined that the water storage container is in a moving placement state.
[0064] S303: If the relative distance does not change within a preset time, it is determined that the water storage container is in a static state.
[0065] In the embodiment of the present application, in S302-S303, the preset time is obtained by analyzing the actual usage scenario or the user's usage habit data, and is not specifically limited here.
[0066] For example, when any water storage container is in the preset sensing area, when the sensing module detects that the water storage container is 5 cm away from the sensing module, the sensing module starts to monitor its position. If the position of the water storage container remains unchanged and remains at a distance of 5 cm in the next 3 seconds, then the water storage container is determined to be in a static placement state. However, if at some point in these 3 seconds, the water storage container is moved to a position of 4 cm, then the water storage container is determined to be in a moving placement state.
[0067] Please also see Figure 5 , Figure 5 Schematic diagram of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 5 As shown, the water storage container is in the preset sensing area of the sensing module. At this time, the sensing module can obtain the relative distance between the water storage container and itself through the position change data, and obtain the placement status of the water storage container according to whether the relative distance moves within a preset time.
[0068] S304, when the water storage container is in a static state, adjusting the working state of the water outlet device to a water outlet state, and obtaining a liquid surface reflection signal of the water storage container from the process data.
[0069] Specifically, when the water storage container is in a static state, the water outlet device is controlled to enter the water outlet state. At this time, the water outlet will start to inject water into the water storage container. During the water injection period, the TOF module analyzes the cup bottom reflection signal of the water storage container in real time, that is, the signal reflection time of the liquid surface reflection signal. Since the closer the liquid surface is to the water outlet, the longer the reflection time of the liquid surface signal is, the greater the intensity value of the reflection signal received by the TOF module, the liquid surface reflection signals corresponding to multiple different liquid surface heights can be obtained.
[0070] Exemplarily, when the water outlet device enters the water outlet state, the TOF module analyzes the reflected signal inside the water storage container in real time. Assume that the liquid level of the water storage container is 20 cm away from the water outlet at the beginning, and the reflected signal intensity value received by the TOF module is 50. As the liquid level rises, when the liquid level is reduced to 10 cm from the water outlet, the duration of the reflected signal becomes shorter, and the reflected signal intensity value received by the TOF module increases to 70. In this way, the TOF module records the liquid surface reflection signals corresponding to multiple different signal intensity values.
[0071] S305: Determine the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal.
[0072] Specifically, the signal strength value of the liquid surface reflection signal currently collected is obtained, and a corresponding query statement is generated based on the signal strength value, and the query statement is executed to find the height information corresponding to the signal strength value in a preset height comparison data table, and the liquid level of the water storage container is determined accordingly, wherein the height comparison data contains a mapping relationship between the signal strength value of the mobile reflection signal and the liquid level height.
[0073] As can be seen from the above, by accurately determining the relative distance between the water storage container and the sensing module from the position change data, and judging whether the water storage container is in a moving or stationary state based on the distance change within a preset time, efficient automatic control can be achieved. When the water storage container is in a stationary state, the water outlet device is automatically adjusted to enter the water outlet state, and the optical signal detection module is used to emit an optical signal to obtain a liquid surface reflection signal. This method not only improves the accuracy and efficiency of water supply, but also can accurately determine the liquid level of the water storage container by analyzing the intensity value of the liquid surface reflection signal, thereby realizing real-time control of the water output according to the liquid level of the water storage container, which not only reduces the error of human operation, but also improves the overall system intelligence level and user experience.
[0074] To improve the accuracy of obtaining the height of water containers. Figure 6 , Figure 6 Schematic diagram of a flow chart of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 6 As shown, the method of the embodiment of the present application may include the following steps S401-S402.
[0075] S401, obtaining a plurality of cup edge reflection signals according to a preset interval duration, and generating a cup edge reflection signal set.
[0076] Specifically, in order to more accurately monitor the liquid level of the water storage container and ensure that the water discharge process remains stable, the water discharge device will obtain multiple cup edge reflection signals at preset intervals (for example, per second). These signals are light signals reflected back from the edge of the water storage container (cup edge), reflecting the relative position relationship between the liquid surface and the cup edge. By continuously collecting these reflection signals, a cup edge reflection signal set can be generated. This set contains multiple reflection signal data points captured at different time points. Each data point represents the position information of the liquid surface relative to the cup edge at a specific moment. The cup edge reflection signal set is used to determine the rising speed of the liquid surface by comparing the signal intensity changes at different time points, or to identify whether the water storage container is placed correctly. This method not only improves the accuracy and reliability of liquid level monitoring, but also provides data support for the automated control of smart devices.
[0077] S402, obtaining the signal value of each cup edge reflection signal in the cup edge reflection signal set, and determining the cup edge reflection signal with the largest signal value as the target cup edge reflection signal.
[0078] Exemplarily, a cup edge reflection signal is obtained once at a preset interval (for example, every 0.5 seconds). After a period of time, a cup edge reflection signal set containing multiple cup edge reflection signals is generated. The signal value of each cup edge reflection signal in the signal set is analyzed. Assume that in this process, a total of 20 cup edge reflection signals are obtained, and the signal value of each signal fluctuates between 0 and 100. By comparing these signal values, it is found that the signal value of one of the signals reaches 90, which is significantly higher than the other signal values. The cup edge reflection signal with a signal value of 90 is determined as the target cup edge reflection signal.
[0079] As can be seen from the above, by comparing and analyzing multiple cup edge reflection signals, the true position of the liquid level can be determined more accurately. Secondly, this continuous monitoring method enables the system to respond to changes in the liquid level in a timely manner, thereby quickly adjusting the operating status of the water outlet equipment to ensure the accuracy and efficiency of water supply. In addition, by automatically processing and analyzing signals, human intervention is reduced, improving the automation of the entire system and the convenience of use for users. At the same time, accurate liquid level monitoring also helps prevent the risk of overflow caused by excessive liquid level and enhances the safety of the system.
[0080] In a feasible embodiment, the noise and interference components in the reflection signal are removed by a preset filtering algorithm to retain the useful liquid surface reflection signal. This step usually uses a digital filtering algorithm, such as low-pass filtering or band-pass filtering, to eliminate high-frequency noise and DC offset. The filtered signal is then enhanced to improve the strength and clarity of the signal. Signal enhancement techniques include signal amplification, contrast enhancement, and edge detection, which aim to highlight the characteristics of the liquid surface reflection signal and make the reflection signal more prominent in the complex background noise. Finally, the signal after filtering and enhancement is identified as the liquid surface reflection signal of the water storage container, and the specific height of the liquid level is determined accordingly.
[0081] As can be seen from the above, by filtering and enhancing the reflected signal received by the optical signal detection module, the system can significantly improve the accuracy and reliability of liquid level detection. Signal filtering effectively removes noise and interference components, ensures the purity of the reflected signal, and thus reduces the risk of misjudgment and data distortion. The signal enhancement processing further enhances the strength and clarity of the reflected signal, making the liquid surface reflection signal more prominent and easy to identify in the complex background noise. This processing method not only improves the accuracy of liquid level monitoring, but also enhances the stability and response speed of the system, ensuring that the liquid level of the water storage container can be accurately detected and fed back under various environmental conditions, thereby optimizing the overall water supply control and user experience.
[0082] To prevent water from overflowing or splashing when the user manually controls the water flow. Figure 7 , Figure 7 Schematic diagram of a flow chart of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 7 As shown, the method of the embodiment of the present application may include the following steps S501-S504.
[0083] S501, determining the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal.
[0084] Specifically, the specific execution method of S501 please refer to the above S305, which will not be repeated here.
[0085] S502, obtaining the height difference between the liquid level and the container height.
[0086] S503: If the height difference is greater than or equal to a preset difference threshold, the working state of the water outlet device is adjusted to a water-off state.
[0087] For example, the height of the water storage container is 50 cm, and the preset difference threshold is 10 cm. After receiving and processing the liquid surface reflection signal through the optical signal detection module, it is known that the current liquid surface height is 40 cm. Then, the height difference between the liquid surface height and the container height is calculated, and the difference is 10 cm. Since this difference is equal to the preset difference threshold, the working state of the water outlet device is immediately adjusted to the water-off state.
[0088] S504, when the water outlet device is in the water outlet state, if the sensing module detects that the displacement distance of the water storage container is greater than a preset distance threshold, the water outlet device is controlled to enter the water stop state.
[0089] For example, the water outlet device is filling water into the water storage container, and the preset distance threshold is 5 cm. During the water outlet process, the sensing module continuously monitors the position change of the water storage container. If the water storage container is displaced and the displacement distance exceeds 5 cm, the sensing module will immediately detect this change. Once it is confirmed that the displacement distance is greater than the preset distance threshold, the water outlet device is controlled to enter the water stop state and stop filling water into the water storage container. This mechanism effectively prevents overflow accidents caused by the movement of the water storage container and ensures the safety and reliability of the use process.
[0090] Please also see Figure 8 , Figure 8 Schematic diagram of a method for controlling a water outlet device provided in an embodiment of the present application. Figure 8As shown, when the water outlet of the water outlet device fills water into the water storage container, the liquid level inside the water storage container is determined by the liquid surface reflection signal, and the liquid level height and the container height of the water storage container are differentially analyzed to obtain the height difference.
[0091] From the above, it can be seen that by determining the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal and obtaining the height difference between the liquid level and the container height, precise control of the water discharge process can be achieved. When the height difference is greater than or equal to the preset difference threshold, the water discharge device is automatically adjusted to the water stop state to avoid overflow and waste of water resources. In addition, when the water discharge device is in the water discharge state, if the sensing module detects that the displacement distance of the water storage container exceeds the preset distance threshold, the water supply will be stopped immediately to prevent accidental overflow caused by container movement. This dual protection mechanism not only improves the safety and reliability of the system, but also optimizes the efficiency of water resource use, reduces unnecessary waste, and improves user experience and satisfaction.
[0092] based on Figure 1 The following is a schematic diagram of the scene. Fig. 9 , the control device of the water outlet device provided in the embodiment of the present application is introduced in detail. It should be noted that, Fig. 9 The control device of the water outlet device is used to execute the present application Figure 2-Figure 8 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 8 In the embodiment shown, the control device 600 of the water outlet device may include a data acquisition unit 601, a signal determination unit 602 and a height acquisition unit 603, as follows:
[0093] A data acquisition unit 601 is used to acquire process data of the water storage container based on the optical signal detection module, and extract multiple cup edge reflection signals of the water storage container from the process data;
[0094] A signal determination unit 602, configured to perform numerical analysis on the signal strength values of each cup edge reflection signal to determine a target cup edge reflection signal;
[0095] The height acquisition unit 603 is used to determine the container height of the water storage container based on the signal strength value of the target cup edge reflection signal.
[0096] In some embodiments, the data acquisition unit 601 further includes a sensing data acquisition unit, a module control unit, and a reflection signal acquisition unit.
[0097] A sensing data acquisition unit, used to acquire sensing data collected by the sensing module in the sensing area;
[0098] A module control unit, for controlling the optical signal detection module to emit an optical signal to the water storage container if it is determined based on the sensing data that any water storage container has entered the container placement area;
[0099] The reflection signal acquisition unit is used to acquire the reflection signal of the light signal based on the light signal detection module, and determine the reflection signal as process data.
[0100] In some embodiments, the data acquisition unit 601 further includes a signal determination unit.
[0101] The signal determination unit is used to determine the cup edge reflection signal and the liquid surface reflection signal of the water storage container based on the reflection duration of each reflection signal in the process data.
[0102] In some embodiments, the data acquisition unit 601 further includes a distance acquisition unit, a first state determination unit, and a second state determination unit.
[0103] A distance acquisition unit, used to extract position change data of the water storage container from the sensing data, and determine the relative distance between the water storage container and the sensing module based on the position change data;
[0104] A first state determination unit, configured to determine that the water storage container is in a moving placement state if the relative distance changes within a preset time;
[0105] The second state determination unit is used to determine that the water storage container is in a static placement state if the relative distance does not change within a preset time.
[0106] In some embodiments, the data acquisition unit 601 further includes a state control unit and a liquid level acquisition unit.
[0107] A state control unit, used to adjust the working state of the water outlet device to a water outlet state when the water storage container is in a stationary state, and to obtain a liquid surface reflection signal of the water storage container from process data;
[0108] The liquid level acquisition unit is used to determine the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal.
[0109] In some embodiments, the signal determination unit 602 further includes a signal acquisition unit and a signal value comparison unit.
[0110] A signal acquisition unit, used to acquire a plurality of cup edge reflection signals according to a preset interval time, and generate a cup edge reflection signal set;
[0111] The signal value comparison unit is used to obtain the signal value of each cup edge reflection signal in the cup edge reflection signal set, and determine the cup edge reflection signal with the largest signal value as the target cup edge reflection signal.
[0112] In some embodiments, the data acquisition unit 601 further includes a signal processing unit.
[0113] The signal processing unit is used to perform signal filtering and signal enhancement processing on the reflection signal received by the optical signal detection module to obtain the liquid surface reflection signal of the water storage container.
[0114] In some embodiments, the data acquisition unit 601 further includes a difference acquisition unit and a first state adjustment unit.
[0115] A difference acquisition unit, used for acquiring a height difference between a liquid level and a container height;
[0116] The first state adjustment unit is used to adjust the working state of the water outlet device to a water-off state if the height difference is greater than or equal to a preset difference threshold.
[0117] In some embodiments, the data acquisition unit 601 further includes a difference acquisition unit and a second state adjustment unit.
[0118] The second state adjustment unit is used to control the water outlet device to enter a water stop state if the sensing module detects that the displacement distance of the water storage container is greater than a preset distance threshold when the water outlet device is in a water outlet state.
[0119] In the embodiment of the present application, the reflection signal of the cup edge is captured by using the optical signal detection module, and the target reflection signal indicating the height of the water storage container is determined by numerical analysis. Based on the intensity value of the signal, the height of the water storage container can be accurately calculated. This process not only significantly improves the intelligent management level of the water outlet equipment, but also effectively improves the safety of the operation of the water storage equipment and the convenience of user experience. When the water storage container is too high, the intensity value of the reflection signal can be accurately monitored and analyzed to overcome the monitoring error caused by the distance change, ensure the accuracy of the height measurement, and avoid the hidden dangers of water outlet safety caused by improper container position.
[0120] In addition, the control device of the water outlet equipment provided in the above embodiment and a control method embodiment of the water outlet equipment belong to the same concept, and the implementation process thereof is detailed in the method embodiment and will not be repeated here.
[0121] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] See also Fig.10, which is a schematic diagram of the structure of a water outlet device provided in the embodiment of the present application. Fig.10 As shown, the water outlet device 700 includes a processor 701 and a memory 702. The processor 701 is electrically connected to the memory 702.
[0123] The processor 701 is the control center of the water outlet device 700, and may include one or more processing cores. The processor 701 uses various interfaces and lines to connect the various parts of the entire water outlet device, and executes various functions of the water outlet device and processes data by running or calling the computer program stored in the memory 702, and calling the data stored in the memory 702, so as to control the water outlet device as a whole. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 701 can integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages and applications, etc.; the GPU is responsible for rendering and drawing the display content; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a communication chip.
[0124] The memory 702 can be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by running the computer programs and modules stored in the memory 702. The memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the water outlet device, etc.
[0125] In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0126] In the embodiment of the present application, the processor 701 in the water outlet device 700 will load instructions corresponding to the processes of one or more computer programs into the memory 702 according to the following steps, and the processor 701 will run the computer program stored in the memory 702 to implement various functions, as follows:
[0127] Acquire process data of the water storage container based on the optical signal detection module, and extract multiple cup edge reflection signals of the water storage container from the process data;
[0128] Perform numerical analysis on the signal strength values of each cup edge reflection signal to determine the target cup edge reflection signal;
[0129] The container height of the water storage container is determined based on the signal strength value of the reflected signal from the target cup edge.
[0130] Optionally, before the processor 701 obtains the process data of the water storage container based on the optical signal detection module and extracts multiple cup edge reflection signals of the water storage container from the process data, it specifically performs the following steps: obtaining the sensing data collected by the sensing module in the sensing area; if it is determined based on the sensing data that any water storage container has entered the container placement area, controlling the optical signal detection module to emit an optical signal to the water storage container; obtaining the reflection signal of the optical signal based on the optical signal detection module, and determining the reflection signal as the process data.
[0131] Optionally, after the processor 701 obtains the reflection signal of the light signal based on the light signal detection module and determines the reflection signal as process data, it specifically performs: determining the cup edge reflection signal and the liquid surface reflection signal of the water storage container based on the reflection duration of each reflection signal in the process data.
[0132] Optionally, if the processor 701 determines based on the sensing data that any water storage container has entered the container placement area, then after controlling the optical signal detection module to transmit an optical signal to the water storage container, the processor 701 specifically performs the following steps: extracting the position change data of the water storage container from the sensing data, and determining the relative distance between the water storage container and the sensing module based on the position change data; if the relative distance changes within a preset time, determining that the water storage container is in a moving placement state; if the relative distance does not change within the preset time, determining that the water storage container is in a static placement state.
[0133] Optionally, after the processor 701 determines that the water storage container is in a static state if the relative distance does not change within a preset time, it specifically executes: when the water storage container is in a static state, adjusting the working state of the water outlet device to a water outlet state, and obtaining a liquid surface reflection signal of the water storage container from process data; and determining the liquid level height of the water storage container based on the signal strength value of the liquid surface reflection signal.
[0134] Optionally, the processor 701 performs numerical analysis on the signal strength values of each cup edge reflection signal to determine the target cup edge reflection signal, and specifically performs: obtaining multiple cup edge reflection signals according to a preset interval duration to generate a cup edge reflection signal set; obtaining the signal value of each cup edge reflection signal in the cup edge reflection signal set, and determining the cup edge reflection signal with the largest signal value as the target cup edge reflection signal.
[0135] Optionally, the processor 701 adjusts the working state of the water outlet device to the water outlet state, and controls the optical signal detection module to transmit an optical signal to the water storage container to obtain a liquid surface reflection signal of the water storage container. Specifically, the processor 701 performs signal filtering and signal enhancement processing on the reflection signal received by the optical signal detection module to obtain a liquid surface reflection signal of the water storage container.
[0136] Optionally, after determining the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal, the processor 701 specifically performs: obtaining the height difference between the liquid level and the container height; if the height difference is greater than or equal to a preset difference threshold, adjusting the working state of the water outlet device to a water-off state.
[0137] Optionally, the processor 701 is also used to specifically execute: when the water outlet device is in the water outlet state, if the sensing module detects that the displacement distance of the water storage container is greater than a preset distance threshold, the water outlet device is controlled to enter the water stop state.
[0138] In the embodiment of the present application, the reflection signal of the cup edge is captured by using the optical signal detection module, and the target reflection signal indicating the height of the water storage container is determined by numerical analysis. Based on the intensity value of the signal, the height of the water storage container can be accurately calculated. This process not only significantly improves the intelligent management level of the water outlet equipment, but also effectively improves the safety of the operation of the water storage equipment and the convenience of user experience. When the water storage container is too high, the monitoring error caused by the change in distance can be overcome by accurately monitoring and analyzing the intensity value of the reflection signal, thereby ensuring the accuracy of the height measurement, thereby avoiding the hidden dangers of water outlet safety caused by improper container position.
[0139] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related method steps to implement a control method for a water outlet device provided in the above embodiment.
[0140] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a control method for a water outlet device provided in the above embodiment.
[0141] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a control method for a water outlet device provided in the above embodiment.
[0142] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a control method for a water outlet device provided in the above embodiment.
[0143] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0144] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0145] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between the related ones shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0146] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling a water outlet device, characterized in that: The water outlet device comprises a sensing module and an optical signal detection module, wherein the sensing module is arranged in a sensing area of the water outlet device and is used to monitor a container placement area of the water outlet device, and the optical signal detection module is arranged in a water outlet area of the water outlet device. The method comprises: Acquiring process data of the water storage container based on the optical signal detection module, and extracting a plurality of cup edge reflection signals of the water storage container from the process data; Performing numerical analysis on the signal strength values of the cup edge reflection signals to determine the target cup edge reflection signal; The container height of the water storage container is determined based on the signal strength value of the target cup edge reflection signal.
2. The method according to claim 1, characterized in that Before the process data of the water storage container is acquired based on the optical signal detection module and a plurality of cup edge reflection signals of the water storage container are extracted from the process data, the method includes: Acquiring sensing data collected by the sensing module in the sensing area; If it is determined based on the sensing data that any of the water storage containers has entered the container placement area, controlling the optical signal detection module to emit an optical signal to the water storage container; A reflection signal of the light signal is acquired based on the light signal detection module, and the reflection signal is determined as the process data.
3. The method according to claim 2, characterized in that After acquiring the reflection signal of the optical signal based on the optical signal detection module and determining the reflection signal as the process data, the method includes: The cup edge reflection signal and the liquid surface reflection signal of the water storage container are determined based on the reflection duration of each reflection signal in the process data.
4. The method according to claim 2, characterized in that: If it is determined based on the sensing data that any of the water storage containers has entered the container placement area, then after the optical signal detection module is controlled to emit an optical signal to the water storage container, the method includes: Extracting position change data of the water storage container from the sensing data, and determining a relative distance between the water storage container and the sensing module based on the position change data; If the relative distance changes within a preset time, it is determined that the water storage container is in a moving placement state; If the relative distance does not change within the preset time, it is determined that the water storage container is in a static placement state.
5. The method according to claim 4, characterized in that If the relative distance does not change within the preset time, after determining that the water storage container is in the static placement state, the method further includes: When the water storage container is in the static placement state, adjusting the working state of the water outlet device to the water outlet state, and obtaining the liquid surface reflection signal of the water storage container from the process data; The liquid level of the water storage container is determined based on the signal strength value of the liquid surface reflection signal.
6. The method according to claim 1, characterized in that The performing numerical analysis on the signal strength values of the cup edge reflection signals to determine the target cup edge reflection signal includes: Acquire the cup edge reflection signal multiple times according to a preset interval time to generate the cup edge reflection signal set; The signal value of each of the cup edge reflection signals in the cup edge reflection signal set is obtained, and the cup edge reflection signal with the largest signal value is determined as the target cup edge reflection signal.
7. The method according to claim 5, characterized in that After determining the liquid level of the water storage container based on the signal strength value of the liquid surface reflection signal, the method further includes: Obtaining a height difference between the liquid level and the container height; If the height difference is greater than or equal to a preset difference threshold, the working state of the water outlet device is adjusted to a water-off state.
8. The method according to claim 7, characterized in that The method further comprises: When the water outlet device is in the water outlet state, if the sensing module detects that the displacement distance of the water storage container is greater than a preset distance threshold, the water outlet device is controlled to enter a water stop state.
9. A control device for a water outlet device, characterized in that: The water outlet device includes a sensing module and an optical signal detection module. The sensing module is arranged in the sensing area of the water outlet device and is used to monitor the container placement area of the water outlet device. The optical signal detection module is arranged in the water outlet area of the water outlet device and includes: A data acquisition unit, configured to acquire process data of the water storage container based on the optical signal detection module, and extract a plurality of cup edge reflection signals of the water storage container from the process data; A signal determination unit, used for performing numerical analysis on the signal strength values of the cup edge reflection signals to determine the target cup edge reflection signal; A height acquisition unit is used to determine the container height of the water storage container based on the signal strength value of the target cup edge reflection signal.
10. A water outlet device, characterized in that: The water outlet equipment comprises: A memory for storing executable program codes; A processor is used to call and run the executable program code from the memory, so that the water outlet device executes the control method of the water outlet device as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the control method of the water outlet device according to any one of claims 1 to 8 is implemented.