Method and device for setting cup height detection point of water outlet device, water outlet device and storage medium

By optimizing the position layout of the cup high detection points in the height detection module of the water outlet equipment, the problem of large errors in the height detection of the water storage container is solved, and higher recognition accuracy and accuracy of the water outlet volume are achieved.

CN119779118APending Publication Date: 2025-04-08WUHU MIDEA KITCHEN & BATH APPLIANCES MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411936387.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, when detecting the height of the water storage container, especially when the height of the container is low, there are large errors, which affects the accuracy of the water effluent.

Method used

By obtaining the preset cup height error value and initial placement height value, multiple height positions for placing cup height detection points in the height detection module, and installing the cup height detection point to the corresponding height position to optimize the distribution position of the detection point.

Benefits of technology

It improves the accuracy of the identification of the water storage container, reduces measurement errors, and ensures that the water outlet can accurately meet the needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119779118A_ABST
    Figure CN119779118A_ABST
Patent Text Reader

Abstract

The present application provides a method, device, water outlet device and storage medium for setting a cup height detection point of a water outlet device. The method is applied to the field of water dispensers. The method includes: obtaining a preset cup height error value and an initial placement height value; based on the cup height error value and the initial placement height value, determining multiple height positions in a height detection module for placing cup height detection points; and installing the cup height detection points to the height detection module based on the height positions, thereby improving the detection accuracy of the height detection module on the height data of a water storage container.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of water outlet equipment, and in particular to a method and device for setting a cup height detection point of a water outlet equipment, a 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, when detecting the height of a water storage container through a detection point, a solution of uniformly positioned parts is often used to set the position of the detection point. However, when the height of the water storage container is low, the uniformly distributed detection points will have a large error in identifying the height of the water storage container, thereby affecting the subsequent water output and failing to meet the actual needs of users. Summary of the invention

[0003] This application provides a method, device, water outlet device and storage medium for setting cup height detection points of a water outlet device, aiming to optimize the location layout of the detection points, thereby improving the accuracy of identifying the height of the water storage container. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a method for setting a cup height detection point of a water outlet device, which is applied to the water outlet device, wherein the water outlet device includes a height detection module, and the height detection module includes a plurality of cup height detection points for detecting the height of a water storage container, including:

[0005] Obtain the preset cup height error value and initial placement height value;

[0006] Based on the cup height error value and the initial placement height value, determining multiple height positions for placing cup height detection points in the height detection module;

[0007] The cup height detection point is mounted to the height detection module based on the height position.

[0008] In a second aspect, an embodiment of the present application provides a device for setting a cup height detection point of a water outlet device, which is applied to the water outlet device. The water outlet device includes a height detection module. The height detection module has multiple cup height detection points for detecting the height of a water storage container, including:

[0009] A data acquisition unit, used to acquire a preset cup height error value and an initial placement height value;

[0010] A position determination unit, used for determining a plurality of height positions for placing cup height detection points in the height detection module based on the cup height error value and the initial placement height value;

[0011] The installation indication unit is used to install the cup height detection point to the height detection module based on the height position.

[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 method for setting a cup height detection point of the water outlet device as described in any one of the above items is implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, a method for setting a cup height detection point of a water outlet device as described in any of the above items is implemented.

[0014] In the above technical solution, by obtaining the preset cup height error value and the initial placement height value, the placement error of the cup height detection point caused by inaccurate measurement is effectively avoided, and multiple height positions are determined based on the cup height error value and the initial placement height value, thereby optimizing the distribution position of the cup height detection point. Finally, by installing the cup height detection point to the corresponding height position, the height detection module improves the detection accuracy of the height data of the water storage container. 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 This is a schematic diagram of a water outlet device provided in an embodiment of the present application;

[0017] Figure 2 It is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application;

[0018] Figure 3 It is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application;

[0019] Figure 4 It is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application;

[0020] Figure 5 It is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application;

[0021] Figure 6 It is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application;

[0022] Figure 7It is a scene schematic diagram of a method for identifying the height of a container provided in an embodiment of the present application;

[0023] Figure 8 It is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0024] Fig. 9 It is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0025] Fig.10 It is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0026] Fig.11 It is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0027] Fig.12 It is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0028] Fig.13 It is a structural schematic diagram of a container height identification provided by an embodiment of the present application;

[0029] Fig.14 It is a structural schematic diagram of a device for setting a cup height detection point of a water outlet device provided in an embodiment of the present application;

[0030] Fig.15 It is a structural schematic diagram of a water outlet device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] 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.

[0032] 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.

[0033] 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.

[0034] In order to improve the accuracy of identifying the height of a water storage container, the embodiment of the present application provides a method for setting a cup height detection point of a water outlet device, and the execution subject of the method for setting a cup height detection point of 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.

[0035] See also Figure 1 , Figure 1 It is a scene schematic diagram of a water outlet device provided in an embodiment of the present application.

[0036] like Figure 1 As shown, the water outlet device is mainly composed of a height detection module, a water level detection module, a water receiving tray and a water outlet. The area between the water receiving tray and the water outlet is the water outlet area. The side wall plays the role of fixing the water outlet wall and the water receiving tray where the water outlet is located, and the side wall faces the water outlet area. The height detection module is arranged on the side wall of the water outlet device, wherein there may be multiple cup height detection points in the height detection module, and the cup height detection points are vertically distributed in the height detection module, and are arranged from dense to sparse in the direction from the water outlet tray to the water outlet. Height detection module. The cup height detection can use a sensing unit such as a photoelectric sensor, an ultrasonic sensor, an infrared sensor, and a laser sensor for object detection. In some cases, the sensor for cup height detection can be an infrared pair tube, which is discretely distributed on the height detection module as a cup height detection point. The number of cup height detection points can be set according to the height of the height detection module, that is, the higher the height detection module, the more cup height detection points there are, and no specific setting is made here.

[0037] The water level detection module can use a TOF module (Time Of Flight, TOF), that is, a flight time module, which determines the movement data of the water storage container by measuring the time required for the light signal to be emitted and received. Specifically, the TOF module sends a light beam signal to the container placement area, and then measures the flight time of these light beam signals from emission to reception, and then calculates the liquid level change inside the water storage container in the container placement area, thereby realizing real-time detection of the water level of the water storage container. This setting method can effectively detect the height and water level of the container, providing important data support for the precise control of the water outlet equipment.

[0038] In the actual scenario, the tester selects multiple water storage containers of different heights as sample water storage containers in the sample set, and obtains the accurate cup height data of each sample water storage container through actual measurement. At this time, each cup height detection point is arranged in the height detection module based on the test error value, so as to measure the sample water storage container one by one to obtain the measured cup height measured under the current test error value. For each sample water storage container, its measurement error value is calculated by a specific calculation formula, that is, (actual cup height-measured cup height), and the calculated measurement error value is compared with the preset error value threshold, wherein the error value threshold is determined according to the accuracy requirements of the water outlet equipment and the actual use scenario. If the error value is less than the error value threshold, then the current test error value is determined as the cup height error value. If it is greater than the error value threshold, then continue to select the next test error value from the preset error value set to re-position each cup height detection point until the error value is less than the error value threshold.

[0039] In the height detection module, the cup height error value obtained above is combined with the initial placement height value, and the first height data is obtained through a preset height calculation formula. Among them, the initial placement height value is used as the starting reference value of the measurement process, and is not specifically limited here. Further, the first height data is combined with the initial placement height value and the cup height error value obtained by the previous measurement, and then substituted into the preset height calculation formula to obtain the height data. Such an iterative calculation process helps to continuously optimize and improve the accuracy of height measurement, and ensure the reasonable distribution of each height data finally obtained in the height detection module.

[0040] At the same time, in order to prevent the subsequent height data from exceeding the actual height of the height detection module, each height data needs to be compared with a preset height threshold after obtaining it, wherein the height threshold is the maximum height of the height detection module. If it is monitored that a certain height data exceeds the height threshold, the height data exceeding the height threshold is modified to the maximum height of the height detection module and the calculation of the height data is stopped. Thus, multiple height positions for placing cup height detection points are determined in the height detection module.

[0041] After the height positions of each cup height detection point in the height detection module are determined and installed, the water outlet device can be put into actual use scenarios. At this time, the arrangement characteristics of the cup height detection points in the height detection module are shown as increasing spacing from bottom to top, that is, the number density of cup height detection points at low positions in the height detection module is greater than the number density of cup height detection points at high positions. At this time, the height detection module detects the water outlet area in real time. When any water storage container is detected, the target height data corresponding to the target cup height detection point that collects the response data of the water storage container is obtained. If there are multiple target height data, the target height data with the largest value is determined as the container height corresponding to the water storage container.

[0042] After determining the height of the water storage container, the sensing time of the water storage container in the water outlet area is obtained according to the height detection module. If it is detected that the sensing time of the water storage container in the water outlet area is greater than or equal to the preset time threshold, the water level detection module is controlled to enter the working state to emit a light signal to the water storage container, and the reflection time of the reflection signal of the water storage container is obtained. The relative distance between the water storage container and the water level detection module is determined based on the reflection time. 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. If the relative distance changes within the preset time, it is determined that the water storage container is in a mobile placement state. When the water storage container is in a static placement state, the liquid level is obtained through the water level detection module, and the working state of the water outlet device is determined according to the height difference between the liquid level and the container height, wherein the working state of the water outlet device includes a water outlet state and a water stop state.

[0043] based on Figure 1 The scene diagram shown below will be combined with Figure 2-Figure 7 , a method for identifying the height of a container provided in an embodiment of the present application is introduced in detail.

[0044] Based on the above situation, the present application embodiment proposes a method for identifying the height of a container. Figure 2 , Figure 2 FIG. 1 is a flow chart of a method for identifying the height of a container 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.

[0045] S101, obtaining detection data of the water storage container based on the cup height detection points, and determining the container height of the water storage container from the detection data; wherein the height data of each cup height detection point is obtained based on the cup height error value and the distance between two adjacent cup height detection points among at least two cup height detection points.

[0046] In the embodiment of the present application, the cup height error value is determined by performing a cup height error test on the water outlet device in a test scenario, and the initial placement height value is a pre-set fixed height value. The test scenario is usually a specific environment specially set up to evaluate product performance and discover potential problems. In the test scenario, each cup height detection point in the height detection module is installed to the test height position, and the tester selects water storage containers of different heights from the sample set as test containers and places them in the water outlet area of ​​the water outlet device, and obtains the cup height measurement data of the test container through each cup height detection point in the height detection module at the test height position, thereby determining the cup height error value based on the difference between the cup height measurement data and the actual cup height data.

[0047] The purpose of the test scenario is to test the functions and performance indicators of the device as comprehensively as possible under controllable conditions in order to optimize and improve them. The usage scenario is the real environment in which the product is actually used by users. The tester selects multiple water storage containers of different heights from the sample set as sample water storage containers, and obtains the accurate cup height data of each sample water storage container through actual measurement.

[0048] From each test error value in the preset error value set and in combination with the preset initial placement position, the test height position of each cup height detection point in the height detection module is determined and the cup height detection point is installed at each test height position. Based on each cup height detection point at the test height position, each test container in the sample water storage container set is measured one by one to obtain the cup height measurement data measured under the current test error value.

[0049] For each sample water storage container, the error value is calculated by a specific calculation formula, i.e. (actual cup height - measured cup height) / actual cup height, and the calculated error value is compared with the preset error value threshold, wherein the preset error value threshold is determined according to the accuracy requirements of the water outlet equipment and the actual usage scenario. If the error value is less than the error value threshold, the current test error value is determined as the cup height error value. If it is greater than the error value threshold, the next test error value is selected from the preset error value set to re-set the test height position of each cup height detection point until a test error value with an error value less than the error value threshold is obtained.

[0050] Furthermore, the height position of each cup height detection point in the height detection module is determined, and the height data corresponding to the height position is applied to the cup height detection point at the height position. For example, based on the initial placement height value and the cup height error value, the height positions corresponding to the installation of each cup height detection point in the height detection module are gradually determined through a preset calculation formula, thereby improving the accuracy and reliability of the detection and better meeting the user's use needs. According to the calculated positions of different height points, cup height detection points are placed at these specific height point positions. Since the height data corresponding to each height point is known in advance, the height data corresponding to each height point can be applied to the cup height detection point at that position. By associating accurate height data with detection points at specific positions, the precision and accuracy of cup height detection can be improved, ensuring that water storage containers of different heights can be measured more accurately.

[0051] Specifically, in actual usage scenarios, the spacing between the cup height detection points in the height detection module gradually increases from bottom to top, that is, the number density of cup height detection points at low positions is greater than the number density of cup height detection points at high positions. The height detection module is controlled to detect the water outlet area in real time. Once a water storage container is detected, the height data corresponding to the cup height detection point that collects the response data of the water storage container is obtained. If there are multiple height data, the cup height detection point with the largest height data is determined as the target cup height detection point, and the cup height data corresponding to the target cup height detection point is further determined as the container height of the water storage container.

[0052] Optionally, after determining the target cup height detection point, a cup height detection point above the target cup height detection point is further obtained and used as an auxiliary cup height detection point. By executing a preset cup height detection algorithm, such as a linear interpolation algorithm, the cup height data corresponding to the auxiliary cup height detection point and the cup height data of the target cup height detection point are algorithmically analyzed to obtain the container height of the water storage container.

[0053] After determining the container height of the water storage container, the sensing time of the water storage container in the water outlet area is then obtained according to the height detection module. If it is detected that the sensing time of the water storage container in the water outlet area is greater than or equal to the preset time threshold, the water level detection module is controlled to enter the working state, so that it emits a light signal to the water storage container, and obtains the reflection time of the reflection signal of the water storage container. Based on the reflection time, the relative distance between the water storage container and the water level detection module can be determined. If the relative distance does not change within the preset time, then it is determined that the water storage container is in a static placement state; if the relative distance changes within the preset time, then it is determined that the water storage container is in a mobile placement state. When the water storage container is in a static placement state, the liquid level is obtained through the water level detection module, and then the working state of the water outlet device is determined according to the height difference between the liquid level and the container height. The working state of the water outlet device is divided into a water outlet state and a water stop state.

[0054] As can be seen from the above, by obtaining the cup height error value obtained by the water outlet device in the test scenario, we can fully understand the possible errors under specific detection conditions, and can more systematically capture the error characteristics in different positions and situations, providing a basis for subsequent accurate calculations. Based on the cup height error value and the distance between two adjacent cup height detection points, the height data of each cup height detection point in the height detection module is determined. This process takes into account the error factors in the actual detection and the spatial relationship of the detection points. The height data calculated by combining these factors is more accurate and reliable, and can effectively reduce the deviation caused by a single measurement or ignoring the error. When responding to the cup height detection instruction for the water storage container, the target cup height detection point with response data is determined in at least two cup height detection points, and the corresponding target height data is confirmed as the height data of the water storage container. This method takes advantage of multiple detection points and can more accurately locate the detection points related to the height of the water storage container in different detection scenarios. At the same time, the presence of multiple detection points increases the coverage and accuracy of the detection, avoiding the misjudgment or inaccuracy that may occur at a single detection point. By confirming the target height data, the actual height of the water storage container can be determined more accurately, which improves the accuracy of container height recognition and provides a more accurate basis for subsequent water output control and other operations, thereby better meeting user needs and improving user experience.

[0055] In actual scenarios, the use frequency of water storage containers with lower height is higher than that of water storage containers with higher height. When the setting interval of the cup height detection points is too large, the height of the water storage container cannot be accurately obtained, resulting in the actual water output being far lower than the water output required by the user. Therefore, the setting interval of the cup height detection points needs to be adjusted. Figure 3 , Figure 3 FIG. 1 is a flow chart of a method for identifying the height of a container 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-S205.

[0056] S201, determining height data of each cup height detection point in a height detection module based on a cup height error value and a distance between two adjacent cup height detection points among at least two cup height detection points.

[0057] Specifically, the execution logic of S201 please refer to the above S101, which will not be repeated here.

[0058] S202: If the cup height detection point is the first cup height detection point, obtain a first distance between the first cup height detection point and the water receiving tray.

[0059] S203, determining first height data of a first cup height detection point in a height detection module based on the first distance and the cup height error value.

[0060] In the embodiment of the present application, the first cup height detection point is the cup height detection point in the height detection module that is closest to the water receiving tray.

[0061] For example, in S202-S203, the first distance between the first cup height detection point and the water receiving tray is measured to be 1 cm, and the cup height error value is 0.5 mm. It can be known that the first height data = the first distance (1 cm) plus the cup height error value (0.5 mm) = 1.5 cm. At this time, the cup height data corresponding to the height detection module at 1.5 cm in the preset reference database is determined as the first height data of the first cup height detection point. For example, the cup height data corresponding to 1.5 cm is 1.7 cm.

[0062] S204: If the cup height detection point is a second cup height detection point, obtain a second distance between the second cup height detection point and the first cup height detection point.

[0063] S205, determining second height data of a second cup height detection point based on the first distance, the second distance and the cup height error value.

[0064] In the embodiment of the present application, the second cup height detection point is a cup height detection point above the first cup height detection point. Since the first cup height data of the first cup height detection point has been obtained in the above S202-S203, at this time, for the second cup height detection point, the first cup height data is used as a basis to determine the second cup height data of the second cup height detection.

[0065] For example, the second distance between the second cup height detection point and the first cup height detection point is 1.3 cm, the first distance is 1 cm, and the cup height error value is 0.5 mm. It can be seen that the second height data of the second cup height detection point is 2.8 cm. At this time, the cup height data corresponding to the height detection module at 2.8 cm in the preset reference database is determined as the first height data of the first cup height detection point. For example, the corresponding cup height data at 2.8 cm is 3 cm.

[0066] As can be seen from the above, by determining the height data of each cup height detection point in the height detection module based on the cup height error value and the distance between adjacent cup height detection points, accurate measurement of the cup height can be achieved. When the detection point is the first cup height detection point, the first height data can be accurately obtained by using the first distance between it and the water receiving tray and the cup height error value; and for the second cup height detection point, the second height data can be further accurately determined by combining the first distance, the second distance and the cup height error value. This method not only improves the accuracy of the measurement, but also effectively copes with the measurement deviation caused by errors, thereby ensuring the reliability and stability of the height detection module.

[0067] To further improve the accuracy of water storage container recognition. Figure 4 , Figure 4 FIG. 1 is a flow chart of a method for identifying the height of a container 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.

[0068] S301, acquiring detection data of a water storage container based on a cup height detection point, and determining a container height of the water storage container from the detection data.

[0069] Specifically, the specific execution process of S301 please refer to the above S102, which will not be repeated here.

[0070] S302, obtaining height data corresponding to the cup height detection point where the sensing signal exists from the detection data.

[0071] S303, determining the cup height detection point with the largest height data as the target cup height detection point, and determining the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0072] Specifically, in S302-S303, the cup height detection point where the sensing signal exists is the cup height detection point where the sensing signal is emitted to the water outlet area and the water delivery container is detected, that is, the cup height detection point is equal to or less than the container height of the water storage container.

[0073] Exemplarily, there are three cup height detection points where sensing signals exist, namely cup height detection point A, cup height detection point B and cup height detection point C, wherein the height data of cup height detection point A is 3 cm, the height data of cup height detection point B is 4 cm and the height data of cup height detection point C is 6 cm. Since the height data of cup height detection point C is greater than that of cup height detection point A and cup height detection point B, cup height detection point A is determined as the target cup height detection point and the height data corresponding to cup height detection point A is determined as the container height of the water storage container.

[0074] S304: Determine a cup height detection point located above the target cup height detection point as an auxiliary cup height detection point.

[0075] S305: Execute a preset cup height detection algorithm based on the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

[0076] Specifically, in S304-S305, the auxiliary cup height detection point located on the target cup height detection point is determined. Then, the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point are obtained. By using a preset linear interpolation algorithm, the height change of the water storage container from the auxiliary cup height detection point to the target cup height detection point is calculated based on the cup height data of the auxiliary cup height detection point and the target cup height detection point. The core principle of the linear interpolation algorithm is to infer the height data based on the linear proportional relationship between the known two-point data.

[0077] For example, the water storage container is between the target cup height detection point A and the target cup height detection point B. The cup height data corresponding to the target cup height detection point A is 10 cm, and the cup height data corresponding to the auxiliary cup height detection point B is 13 cm. At this time, according to the linear interpolation algorithm, according to the linear proportional relationship between the two points, the container height value corresponding to the corresponding position of the cup mouth of the water storage container can be calculated to be 11.5 cm, thereby reducing the calculation error of the container height.

[0078] From the above, it can be seen that by determining the height data corresponding to the target cup height detection point among the cup height detection points or by using the auxiliary cup height detection points to detect the height of the water storage container, the detection accuracy of the container height of the water storage container can be improved, thereby effectively avoiding misjudgment caused by errors or abnormal values ​​of individual cup height detection points, and improving the reliability and accuracy of the measurement results.

[0079] To prevent the water outlet device from causing liquid splashing and injury to the user during use. Figure 5 , Figure 5 FIG. 1 is a flow chart of a method for identifying the height of a container provided in an embodiment of the present application. Figure 5 As shown, the method of the embodiment of the present application may include the following steps S401-S406.

[0080] S401, obtaining the liquid level of the water storage container based on a water level detection module.

[0081] In the embodiment of the present application, the water level detection module can use a TOF module, i.e., a time of flight module, to determine the movement data of the water storage container by measuring the time required for the light signal to be emitted and received. Specifically, the water level monitoring module sends a light beam signal to the container placement area, and then measures the flight time of these light beam signals from emission to reception, and then calculates the liquid level change inside the water storage container in the container placement area, thereby realizing real-time detection of the water level of the water storage container. This setting method can effectively detect the liquid level inside the container and provide important data support for the precise control of the water outlet equipment.

[0082] Specifically, the water level detection module is controlled to enter a working state to emit a light signal to the water storage container, and obtain a light reflection signal of the water storage container. At this time, in order to distinguish whether the reflection signal belongs to the reflection signal of the cup edge or the reflection signal of the cup inside the container, the signal is distinguished by analyzing the reflection time of the reflection signal, that is, the reflection time of the reflection signal of the cup edge is shorter, and the reflection time of the reflection signal inside the container is longer than the reflection time of the reflection signal of the cup edge. After filtering the reflection signal of the cup edge, only the reflection signal inside the container is retained, and the reflection time of this part of the reflection signal is analyzed to determine the liquid level corresponding to the reflection time, wherein the liquid level corresponding to different reflection times has been recorded in a preset reference database.

[0083] Exemplarily, the current reflection duration is 50 nanoseconds, and a height query statement is generated based on the 50 nanoseconds to find in a preset reference database that the liquid level height corresponding to 50 nanoseconds is 3 centimeters.

[0084] S402, adjusting the working state of the water outlet device based on the height difference between the liquid level and the container height.

[0085] In the embodiment of the present application, the working state of the water outlet device includes a water-off state and a water-out state.

[0086] Specifically, the height difference between the liquid level and the container height is analyzed. If the height difference between the liquid level and the container height is equal to or greater than the preset difference threshold, the working state of the water outlet device is adjusted to the water-off state. If the height difference between the liquid level and the container height is less than the preset difference threshold, the working state of the water outlet device is adjusted to the water-out state.

[0087] S403, obtaining the placement status of the water storage container.

[0088] S404: When the placement state is a static placement state, the liquid level height of the water storage container is obtained based on the water level detection module.

[0089] Specifically, in S403-S404, the placement state of the water storage container can be determined according to the detection of the height detection module and the water level detection module, wherein the placement state includes a mobile placement state and a static placement state. The water level detection module is controlled to enter the working state, so that it transmits a light signal to the water storage container, and obtains the reflection time of the reflection signal of the water storage container. Based on this reflection time, the relative distance between the water storage container and the water level detection module can be determined. If the relative distance does not change within the preset time, then the water storage container is determined to be in a static placement state; if the relative distance changes within the preset time, then the water storage container is determined to be in a mobile placement state. When the water storage container is in a static placement state, the liquid level is obtained through the water level detection module, and then the working state of the water outlet device is determined according to the height difference between the liquid level and the container height.

[0090] S405, if the height difference between the liquid level and the container height is less than a preset difference threshold, the water outlet device is controlled to enter a water outlet state.

[0091] Exemplarily, the difference threshold is set to 0.5 mm, the container height of the water storage container is 10 cm, and the liquid level height is 5 cm. At this time, the height difference between the liquid level height and the container height is 10-8=5 cm, which is exactly equal to the preset difference threshold. Since the height difference between the liquid level height and the container height is less than the preset difference threshold, the water outlet device is controlled to enter the water outlet state to start filling water into the water storage container, and the height difference between the liquid level height and the container height is detected in real time during the water filling process.

[0092] S406: If the height difference between the liquid level and the container height is greater than or equal to the difference threshold, the water outlet device is controlled to enter a water-off state.

[0093] For example, the current liquid level is 9.5 centimeters, and the height difference between the liquid level and the container height is 10-9.5=0.5 millimeters. Since the height difference between the liquid level and the container height is equal to the difference threshold, the water outlet device is controlled to enter the water stop state, and the water outlet device will stop filling water into the water storage container.

[0094] From the above, it can be seen that the liquid level of the water storage container is obtained based on the water level detection module, and the working state of the water outlet device is adjusted according to the height difference between the liquid level and the container height. At the same time, the placement state of the water storage container is taken into consideration, and the liquid level is only obtained and compared when it is in a static placement state. This method can achieve precise control of the water outlet device and ensure that the liquid level is maintained within a set reasonable range. When the difference between the liquid level and the container height is less than the preset threshold, water is discharged, and when it is greater than or equal to the threshold, the water is stopped. This can not only ensure that the amount of water in the water storage container meets the demand, but also prevent overflow, thereby improving the safety of water use and the intelligence level of the equipment, reducing the need for human intervention, and improving the convenience and efficiency of use.

[0095] In order to further improve the accuracy of identifying the placement of the water outlet container, thereby improving the user's safety. Figure 6 , Figure 6 FIG. 1 is a flow chart of a method for identifying the height of a container 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 S501-S504.

[0096] S501, if it is detected that the sensing time of the water storage container in the water outlet area is greater than or equal to a preset time threshold, the water level detection module is controlled to enter a working state to obtain a container reflection signal of the water storage container.

[0097] In the embodiment of the present application, the sensing duration is the duration that any water storage container is in the water outlet area, and the duration threshold can be set according to the actual scenario and is not specifically limited here.

[0098] For example, the preset time threshold is 5 seconds, and the user starts to detect the sensing time after placing the water storage container in the water outlet area. If the sensing time of the water storage container in the water outlet area reaches 6 seconds, which is greater than the preset time threshold of 5 seconds, the system will control the water level detection module to enter the working state, and the water level monitoring module will send a beam signal to the container placement area, and the water storage container will refract the beam signal back, and the water level monitoring module can obtain the container reflection signal from the water storage container.

[0099] S502: Determine the relative distance between the water storage container and the water level detection module based on the reflection duration of the container reflection signal.

[0100] In the embodiment of the present application, the relative distances corresponding to different reflection durations are pre-set in the reference database, that is, in the system design and initialization stage, the relative distances corresponding to various reflection durations are set in advance. For example, the relative distance corresponding to the reflection duration of 0.5 seconds is set to 10 cm, the relative distance corresponding to the reflection duration of 0.8 seconds is set to 15 cm, and so on. These set data will be sorted and stored in a special database, which is called a reference database.

[0101] When the water outlet device is actually running, after the water level detection module obtains the reflection time of the container reflection signal, it will search the reference database for the corresponding relative distance. In this way, the relative distance between the water storage container and the water level detection module can be quickly and accurately determined based on the reflection time, so as to perform subsequent operations such as judging the placement status.

[0102] S503: If the relative distance does not change within a preset time period, it is determined that the placement state of the water storage container is a static placement state.

[0103] Exemplarily, the preset duration is 3 seconds. After the water level detection module sends a signal, it receives a reflected signal from the water storage container. The reflection duration is calculated to be 0.5 seconds, thereby determining that the relative distance between the water storage container and the water level detection module is 10 centimeters. If within the next 3 seconds, this relative distance remains at 10 centimeters without change, then it is determined that the placement state of the water storage container is a static placement state.

[0104] S504: If the relative distance changes within a preset time period, it is determined that the placement state of the water storage container is a moving placement state.

[0105] Exemplarily, the preset duration is 3 seconds. After the water level detection module sends a signal, it receives a reflected signal from the water storage container. The reflection duration is calculated to be 0.5 seconds, thereby determining that the relative distance between the water storage container and the water level detection module is 10 centimeters. If the relative distance changes within the next 3 seconds, for example, the relative distance changes from 10 centimeters to 9 centimeters, then it is considered that the placement state of the water storage container is a moving placement state.

[0106] Please also read Figure 7 , Figure 7 Schematic diagram of a method for identifying the height of a container provided in an embodiment of the present application. Figure 7 As shown, the arrangement of the cup height detection points of the height detection module presents a characteristic of gradually increasing spacing from bottom to top, and the number density of cup height detection points at low positions is greater than that at high positions. The height detection module detects the water outlet area in real time. When a water storage container is detected, the target height data corresponding to the target cup height detection point is obtained to determine the height of the container. After determining the height of the water storage container, the water level detection module is controlled to work according to the sensing duration. If the sensing duration is greater than or equal to the preset duration threshold, the water level detection module emits a light signal to the water storage container, obtains the reflection duration of the reflected signal to determine the relative distance between the water storage container and the water level detection module, and then determines the placement state of the water storage container. When the water storage container is in a stationary state, the water outlet device is controlled to enter the water outlet state, and the liquid level height is obtained through the water level detection module. The working state of the water outlet device is determined based on the height difference between the liquid level height and the container height.

[0107] From the above, it can be seen that by detecting the sensing time of the water storage container in the water outlet area and controlling the working state of the water level detection module, the relative distance is determined according to the reflection time of the container reflection signal, and then the placement state of the water storage container is judged according to whether the relative distance changes within a certain period of time. This method can accurately and quickly identify whether the water storage container is in a static or moving state, thereby providing a reliable basis for subsequent water outlet control and other operations, improving the intelligence level and response accuracy of the system, avoiding unnecessary water level detection or water outlet operations when the container is moving, and improving the safety and stability of use.

[0108] based on Figure 1 The scene diagram shown below will be combined with Figure 8-Figure 10 , a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application is introduced in detail.

[0109] Based on the above situation, the present application embodiment proposes a method for setting a cup height detection point of a water outlet device. Figure 8 , Figure 8 1 is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application. Figure 8As shown, the method of the embodiment of the present application may include the following steps S601-S603.

[0110] S601, obtaining a preset cup height error value and an initial placement height value.

[0111] In the embodiment of the present application, the cup height error value is determined by performing a cup height error test on the water outlet device in a test scenario, and the initial placement height value is a pre-set fixed height value. The test scenario is usually a specific environment specially set up to evaluate product performance and discover potential problems. In the test scenario, each cup height detection point in the height detection module is installed to the test height position, and the tester selects water storage containers of different heights from the sample set as test containers and places them in the water outlet area of ​​the water outlet device, and obtains the cup height measurement data of the test container through each cup height detection point in the height detection module at the test height position, thereby determining the cup height error value based on the difference between the cup height measurement data and the actual cup height data.

[0112] The purpose of the test scenario is to test the functions and performance indicators of the device as comprehensively as possible under controllable conditions in order to optimize and improve it. The usage scenario is the real environment in which the product is actually used by users.

[0113] Specifically, in the test scenario, the tester selects a plurality of water storage containers of different heights as sample water storage containers in the sample set, and obtains accurate cup height data of each sample water storage container through actual measurement.

[0114] From each test error value in the preset error value set and in combination with the preset initial placement position, the test height position of each cup height detection point in the height detection module is determined and the cup height detection point is installed at each test height position. Based on each cup height detection point at the test height position, each test container in the sample water storage container set is measured one by one to obtain the cup height measurement data measured under the current test error value.

[0115] For each sample water storage container, its error value is calculated by a specific calculation formula, and the calculated error value is compared with a preset error value threshold, wherein the preset error value threshold is determined according to the accuracy requirements of the water outlet equipment and the actual usage scenario. If the error value is less than the error value threshold, the current test error value is determined as the cup height error value; if it is greater than the error value threshold, the next test error value is selected from the preset error value set to re-set the test height position of each cup height detection point until a test error value with an error value less than the error value threshold is obtained.

[0116] S602, based on the cup height error value and the initial placement height value, determine multiple height positions for placing cup height detection points in the height detection module.

[0117] Specifically, after obtaining the cup height error value and the initial placement height value based on the above S101, the cup height error value and the initial placement height value can be substituted into the preset height calculation formula, that is, the first height position for placing the cup height detection point in the height detection module can be determined. After that, the first height position, the cup height error value and the initial placement height value are substituted into the preset height calculation formula to obtain the second height position. For determining other height positions, the calculation method for the second height position can be used, that is, the previous height position, the cup height error and the initial placement height value are substituted into the corresponding height calculation formula to calculate the height position.

[0118] In order to avoid the height data obtained from exceeding the maximum height of the height detection module when obtaining each height position, a height threshold is set according to the maximum height of the height detection module. If the height data obtained is greater than the height threshold, the maximum height of the height detection module is used as the height data this time, and the calculation of the height data is stopped.

[0119] S603, installing the cup height detection point to the height detection module based on the height position.

[0120] Specifically, starting from the first height position, the height detection module is accurately positioned with the help of the scale mark provided by the height detection module or with the help of high-precision measuring instruments such as laser rangefinders. Then, a mounting hole or a slot is set in the area corresponding to the height position so that the cup height detection point can be installed, and the cup height detection point is set in the mounting hole or the slot. Then, the above positioning and installation are repeated for the remaining height positions in sequence, and the functional integrity of the height detection module is checked after each cup height detection point is installed in the height detection module, so as to ensure the functional integrity of the entire height detection module.

[0121] From the above, it can be seen that by obtaining the preset cup height error value and the initial placement height value, the placement error of the cup height detection point caused by inaccurate measurement can be effectively avoided, and multiple height positions are determined based on the cup height error value and the initial placement height value, thereby realizing the optimization of the distribution position of the cup height detection point. Finally, by installing the cup height detection point to the corresponding height position, the height detection module improves the detection accuracy of the height data of the water storage container.

[0122] Since water storage containers with low heights are widely used in daily use scenarios, it is necessary to optimize the position of each cup height detection point in the height detection module. Fig. 9 , Fig. 9 1 is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application. Fig. 9 As shown, the method of the embodiment of the present application may include the following steps S701-S703.

[0123] S701, determining a first height position based on a cup height error value and an initial placement height value.

[0124] Specifically, based on the formula Determine the first height position, where H1 is the first height position, θ is the cup height error value, and h0 is the initial placement height value, then we can get: That is, the first height position H1 in the height detection module is 11.11 centimeters.

[0125] S702: If the first height position is less than the height threshold of the height detection module, determine the second height position based on the first height position, the cup height error value and the initial placement height value.

[0126] In an embodiment of the present application, in order to prevent the subsequently obtained height values ​​from exceeding the actual height of the height detection module, each height value needs to be compared with a preset height threshold after being obtained, wherein the height threshold is the maximum height of the height detection module. If it is monitored that the height data calculated at a certain time exceeds the height threshold, the height value that exceeds the height threshold is modified to the maximum height of the height detection module and the calculation of the height data is stopped.

[0127] Specifically, based on the formula Determine the second height position, where H2 is the second height position, θ is the cup height error value, and h0 is the initial placement height value, then we can get: Centimeters, that is, the second height position H2 in the height detection module is 12.34 centimeters. The above execution method can be used for the detection of the remaining height positions, which will not be repeated here.

[0128] S703: If the second height position is greater than the height threshold, determine the height threshold as the actual height position of the second height position.

[0129] Exemplarily, the height threshold is 25. If the second height position is detected to be 28, the height threshold 25 is used as the second height position.

[0130] As can be seen from the above, by determining the first height position based on the cup height error value and the initial placement height value, an accurate starting point is provided for the measurement, avoiding inaccurate initial measurement. When the first height position is less than the height threshold, these parameters are further used to determine the second height position, which can meet the detection requirements of different cup heights and broaden the scope of application of the detection. When the second height position exceeds the height threshold, the threshold is used as the actual height position to ensure that the measured value is within the valid range, avoid the generation of erroneous data, and ensure the reliability and accuracy of subsequent detection results.

[0131] To improve the height detection accuracy of any water storage container. Fig.10 , Fig.10 1 is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application. Fig.10 As shown, the method of the embodiment of the present application may include the following steps S801-S805.

[0132] S801, obtaining a test error value from a preset error value set.

[0133] Specifically, the error value set stores a set including multiple error values, and a value is selected from the preset error value set as the test error value according to a predetermined algorithm or a random sampling method.

[0134] Exemplarily, the error value set is {0.1, 0.2, 0.3, 0.4, 0.5}, and 0.3 is selected from the error value set as the error value of this test.

[0135] S802, based on the test error value and the initial placement height value, determine the test height position of each cup height detection point in the height detection module, and place each cup height detection point at the corresponding test height position.

[0136] Specifically, the specific execution process of S302 please refer to the above step S102, which will not be repeated here.

[0137] S803, performing height detection on a preset test container based on a cup height detection point at a test height position to obtain test cup height data of the test container.

[0138] S804, determining a height measurement error of the test container under a test error value based on the test cup height data and the actual cup height data of the test container.

[0139] In S803-S804, when the cup height detection point is installed at the test height position, the height detection process is started. The preset test container is placed in the detection area of ​​the height detection module. The cup height detection point in the height detection module obtains the height information of the test container at each detection point through contact or non-contact detection (such as laser ranging, ultrasonic ranging, etc.), and then integrates and processes this information to finally obtain the test cup height data of the test container. For example, the height of the test container is 15.2 cm.

[0140] The test cup height data is compared with the actual cup height data to obtain the height measurement error. For example, if the test cup height data is 15.2 cm and the actual cup height data of the test container is 15 cm, the height measurement error is 15.2-15=0.2 cm.

[0141] S805: If the height measurement error is less than a preset error threshold, the test error value is determined as a cup height error value.

[0142] For example, the preset error threshold is set to 0.3 cm. The test cup height data of the test container obtained through the previous steps is 15.2 cm, and the actual cup height data of the test container is 15 cm, so the height measurement error is 15.2-15=0.2 cm. Because 0.2 cm is less than the error threshold of 0.3 cm, the test error value used in this test will be determined as the cup height error value.

[0143] As can be seen from the above, by selecting the test error value in the preset set, the impact of different errors can be fully evaluated and the range of detection parameters can be widened. Based on it, the test height position is determined and the detection points are placed, which can accurately simulate various detection scenarios. The data obtained from the test container is compared with the actual data to determine the measurement error, which can quantify the detection accuracy. Finally, the cup height error value is determined based on the error threshold, which provides an accurate and reliable basis for subsequent formal testing and effectively guarantees the accuracy of cup height detection.

[0144] To further improve the accuracy of water storage container recognition. Fig.11 , Fig.11 1 is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application. Fig.11 As shown, the method of the embodiment of the present application may include the following steps S901-S905.

[0145] S901, acquiring detection data of the water storage container based on the cup height detection point, and determining the container height of the water storage container from the detection data.

[0146] Specifically, the specific execution steps of S901 refer to the above S102 and will not be repeated here.

[0147] S902, obtaining height data corresponding to the cup height detection point where the sensing signal exists from the detection data.

[0148] S903, determining the cup height detection point with the largest height data as the target cup height detection point, and determining the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0149] Specifically, for the specific execution steps of S902-S903, please refer to the above S302-S303, which will not be repeated here.

[0150] S904: Determine a cup height detection point located above the target cup height detection point as an auxiliary cup height detection point.

[0151] S905, executing a preset cup height detection algorithm based on the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

[0152] Specifically, for the specific execution steps of S904-S905, please refer to the above S304-S305, which will not be repeated here.

[0153] From the above, it can be seen that by determining the height data corresponding to the target cup height detection point among the cup height detection points or by using the auxiliary cup height detection points to detect the height of the water storage container, the detection accuracy of the container height of the water storage container can be improved, thereby effectively avoiding misjudgment caused by errors or abnormal values ​​of individual cup height detection points, and improving the reliability and accuracy of the measurement results.

[0154] To determine the stability of water treatment equipment. Fig.12 , Fig.12 1 is a flow chart of a method for setting a cup height detection point of a water outlet device provided in an embodiment of the present application. Fig.12 As shown, the method of the embodiment of the present application may include the following steps S1001-S1002.

[0155] S1001, performing a status test on each cup height detection point based on a preset interval time.

[0156] Specifically, the preset interval duration parameter is read. This interval duration is set based on the equipment operation stability requirements, detection accuracy requirements, and past experience data, and is not specifically limited here. When the preset time interval is reached, the status test program for each cup height detection point is automatically started. The test process may involve sending a specific detection signal, such as an electrical signal or an optical signal, to each detection point, and then receiving a response signal returned by the detection point. By analyzing the response signal, it is determined whether the various functions of the detection point are normal, including whether the signal transmission is accurate, whether the detection element is working properly, whether there is physical damage or connection failure, etc., so as to determine the status of each cup height detection point.

[0157] S1002: If there is a cup height detection point in an abnormal state, generate corresponding abnormal prompt information, wherein the abnormal prompt information includes position information of the cup height detection point in the abnormal state in the height detection module.

[0158] Specifically, after completing the status test of each cup height detection point, the test results will be compared and screened one by one. If it is found that the response signal of one or some cup height detection points does not meet the standard range of normal operation, it is determined that the cup height detection point is in an abnormal state. At this time, an abnormal prompt message will be automatically generated. During the generation process, the position information of the cup height detection point in the abnormal state in the height detection module will be extracted. The position information may be determined based on the coordinate system of the height detection module or a pre-set numbering rule. The position information is integrated into the abnormal prompt information so that subsequent maintenance personnel can quickly locate the detection point with problems and conduct targeted troubleshooting and repair work.

[0159] Exemplarily, assume that the preset interval time is 3 hours. Every time the time reaches 3 hours, the system automatically starts step S1001. For example, electric pulse detection signals are sent to the 5 cup height detection points respectively, and cup height detection points 1, 3, and 5 normally return pulse signals with specific codes, indicating that they are working normally; while cup height detection points 2 and 4 do not return the correct signal within the specified time or the returned signal is abnormal. Entering step S1002, the system generates an abnormal prompt message, such as "cup height detection point 2 is located 10 cm from the bottom of the height detection module, and cup height detection point 4 is located 15 cm from the bottom. An abnormal state has occurred. Please check and repair", so that maintenance personnel can quickly locate the fault detection point based on these location information and handle it.

[0160] From the above, it can be seen that by testing the status of each cup height detection point based on the preset interval time, the detection can be automated and timed, avoiding the tediousness of manual detection and possible omissions. Timely detection of cup height detection points in abnormal status can effectively prevent errors or missing cup height detection data caused by detection point failures, ensuring the accuracy and reliability of the test results. Generating prompt information containing the location information of abnormal detection points greatly facilitates maintenance personnel to quickly locate the fault point, reduce troubleshooting time, and improve equipment maintenance efficiency, thereby ensuring the stable and efficient operation of the entire height detection module and even related production or detection processes.

[0161] based on Figure 1 The following is a schematic diagram of the scene. Fig.13 , the container height identification device provided in the embodiment of the present application is introduced in detail. It should be noted that, Fig.13 The container height recognition device is used to implement the present application Figure 2-Figure 7 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 7 In the embodiment shown, the container height recognition device 2000 may include a height acquisition unit 2001, which is specifically as follows:

[0162] The height acquisition unit 2001 is used to acquire detection data of the water storage container based on the cup height detection points, and determine the container height of the water storage container from the detection data; wherein the height data of each cup height detection point is obtained based on the cup height error value and the distance between two adjacent cup height detection points among at least two cup height detection points.

[0163] In some embodiments, the height acquisition unit 2001 further includes a first determination unit and a first detection point height acquisition unit.

[0164] a first determination unit, configured to obtain a first distance between the first cup height detection point and the water receiving tray if the cup height detection point is a first cup height detection point, wherein the first cup height detection point is the cup height detection point in the height detection module that is closest to the water receiving tray;

[0165] The first detection point height acquisition unit is used to determine first height data of the first cup height detection point in the height detection module based on the first distance and the cup height error value.

[0166] In some embodiments, the height acquisition unit 2001 further includes a second determination unit and a second detection point height acquisition unit.

[0167] The second determination unit is configured to obtain a second distance between the second cup height detection point and the first cup height detection point if the cup height detection point is a second cup height detection point, the second cup height detection point being a cup height detection point above the first cup height detection point.

[0168] The second detection point height acquisition unit is used to determine the second height data of the second cup height detection point based on the first distance, =the second distance and =the cup height error value.

[0169] In some embodiments, the height acquisition unit 2001 further includes a data extraction unit and a data comparison unit.

[0170] A data extraction unit, used to obtain height data corresponding to the cup height detection point where the sensing signal exists from the detection data;

[0171] The data comparison unit is used to determine the cup height detection point with the largest height data as the target cup height detection point, and determine the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0172] In some embodiments, the height acquisition unit 2001 further includes a detection point determination unit and a data analysis unit.

[0173] A detection point determination unit, used to determine a cup height detection point located above a target cup height detection point as an auxiliary cup height detection point;

[0174] The data analysis unit is used to execute a preset cup height detection algorithm based on the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

[0175] In some embodiments, the height acquisition unit 2001 also includes a liquid level acquisition unit and a state control unit.

[0176] A liquid level acquisition unit, used to acquire the liquid level of the water storage container based on the water level detection module;

[0177] The state control unit is used to adjust the working state of the water outlet device based on the height difference between the liquid level and the container height.

[0178] In some embodiments, the height acquisition unit 2001 further includes a state acquisition unit, a module control unit, a third determination unit, and a fourth determination unit.

[0179] A state acquisition unit, used to acquire the placement state of the water storage container;

[0180] A module control unit, used for obtaining the liquid level height of the water storage container based on the water level detection module when the placement state is a static placement state;

[0181] A third determination unit is used to control the water discharge device to enter a water discharge state if the height difference between the liquid level and the container height is less than a preset difference threshold;

[0182] The fourth determination unit is used to control the water outlet device to enter a water-off state if the height difference between the liquid level and the container height is greater than or equal to a difference threshold.

[0183] In some embodiments, the height acquisition unit 2001 further includes a fifth determination unit, a distance acquisition unit, a sixth determination unit, and a seventh determination unit.

[0184] a fifth determination unit, configured to control the water level detection module to enter a working state to obtain a container reflection signal of the water storage container if it is detected that the sensing time of the water storage container in the water outlet area is greater than or equal to a preset time threshold;

[0185] A distance acquisition unit, used to determine the relative distance between the water storage container and the water level detection module based on the reflection duration of the container reflection signal;

[0186] a sixth determination unit, configured to determine that the placement state of the water storage container is a static placement state if the relative distance does not change within a preset time period;

[0187] The seventh determination unit is used to determine that the placement state of the water storage container is a moving placement state if the relative distance changes within a preset time period.

[0188] In the embodiment of the present application, by obtaining the cup height error value obtained by the water outlet device in the test scenario, the error conditions that may occur under specific detection conditions can be fully understood, and the error characteristics under different positions and situations can be captured more systematically, providing a basis for subsequent accurate calculations. The height data of each cup height detection point in the height detection module is determined based on the cup height error value and the distance between two adjacent cup height detection points. This process takes into account the error factors in the actual detection and the spatial relationship of the detection points. The height data calculated by combining these factors is more accurate and reliable, and can effectively reduce the deviation caused by a single measurement or ignoring the error. When responding to the cup height detection instruction for the water storage container, the target cup height detection point with response data is determined in at least two cup height detection points, and the corresponding target height data is confirmed as the container height of the water storage container. This method takes advantage of multiple detection points, and can more accurately locate the detection points related to the height of the water storage container in different detection scenarios. At the same time, the presence of multiple detection points increases the coverage and accuracy of the detection, avoiding the misjudgment or inaccuracy that may occur at a single detection point. By confirming the target height data, the actual height of the water storage container can be determined more accurately, which improves the accuracy of container height recognition and provides a more accurate basis for subsequent water output control and other operations, thereby better meeting user needs and improving user experience.

[0189] based on Figure 1 The following is a schematic diagram of the scene. Fig.14 , the setting device of the cup height detection point of the water outlet device provided in the embodiment of the present application is introduced in detail. It should be noted that, Fig.14 The device for setting the cup height detection point of the water outlet device is used to implement the present application Figure 8-Figure 12 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 8-Figure 12 In the embodiment shown, the device 3000 for setting the cup height detection point of the water outlet device may include a data determination unit 3001, a position determination unit 3002 and an installation indication unit 3003, as follows:

[0190] The data acquisition unit 3001 is used to acquire a preset cup height error value and an initial placement height value;

[0191] A position determination unit 3002, used to determine a plurality of height positions for placing cup height detection points in a height detection module based on a cup height error value and an initial placement height value;

[0192] The installation indicating unit 3003 is used to install the cup height detection point to the height detection module based on the height position.

[0193] In some embodiments, the position determination unit 3002 further includes a first position determination unit, a first determination unit and a second determination unit.

[0194] A first position determining unit, configured to determine a first height position based on a cup height error value and an initial placement height value;

[0195] A first determination unit, configured to determine a second height position based on the first height position, the cup height error value, and the initial placement height value if the first height position is less than a height threshold of the height detection module;

[0196] The second determination unit is configured to determine the height threshold as the actual height position of the second height position if the second height position is greater than the height threshold.

[0197] In some embodiments, the data acquisition unit 3001 further includes a test value acquisition unit, a test height determination unit, a height detection unit, an error acquisition unit, and a cup height error value determination unit.

[0198] A test value acquisition unit, used to acquire a test error value from a preset error value set;

[0199] A test height determination unit, for determining a test height position of each cup height detection point in the height detection module based on a test error value and an initial placement height value, and placing each cup height detection point at a corresponding test height position;

[0200] A height detection unit, used to perform height detection on a preset test container based on a cup height detection point at a test height position, and obtain test cup height data of the test container;

[0201] an error acquisition unit, for determining a height measurement error of the test container under a test error value based on the test cup height data and the actual cup height data of the test container;

[0202] The cup height error value determining unit is used to determine the test error value as the cup height error value if the height measurement error is less than a preset error threshold.

[0203] In some embodiments, the installation indication unit 3003 also includes a container height acquisition unit.

[0204] The container height acquisition unit is used to acquire detection data of the water storage container based on the cup height detection point, and determine the container height of the water storage container from the detection data.

[0205] In some embodiments, the installation indication unit 3003 also includes a height data acquisition unit and a data analysis unit.

[0206] A height data acquisition unit, used to acquire the height data corresponding to the cup height detection point where the sensing signal exists from the detection data;

[0207] The data analysis unit is used to determine the cup height detection point with the largest height data as the target cup height detection point, and determine the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0208] In some embodiments, the installation instruction unit 3003 also includes an auxiliary point determination unit and an algorithm execution unit.

[0209] an auxiliary point determination unit, used to determine a cup height detection point located above a target cup height detection point as an auxiliary cup height detection point;

[0210] The algorithm execution unit is used to execute a preset cup height detection algorithm based on the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

[0211] In some embodiments, the installation instruction unit 3003 also includes a detection point testing unit and an information generating unit.

[0212] A detection point test unit, used to perform a status test on each cup height detection point based on a preset interval time;

[0213] The information generating unit is used to generate corresponding abnormal prompt information if there is a cup height detection point in an abnormal state, and the abnormal prompt information includes the position information of the cup height detection point in the abnormal state in the height detection module.

[0214] In the embodiment of the present application, by obtaining the preset cup height error value and the initial placement height value, the placement error of the cup height detection point caused by inaccurate measurement is effectively avoided, and multiple height positions are determined based on the cup height error value and the initial placement height value, thereby optimizing the distribution position of the cup height detection point. Finally, by installing the cup height detection point at the corresponding height position, the height detection module improves the detection accuracy of the height data of the water storage container.

[0215] In addition, the device for setting the cup height detection point of the water outlet device provided in the above embodiment and a method for setting the cup height detection point of the water outlet device belong to the same concept, and the implementation process thereof is detailed in the method embodiment and will not be repeated here.

[0216] 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.

[0217] See also Fig.15 , which is a schematic diagram of the structure of a water outlet device provided in the embodiment of the present application. Fig.15 As shown, the water outlet device 4000 includes a processor 4001 and a memory 4002. The processor 4001 is electrically connected to the memory 4002.

[0218] The processor 4001 is the control center of the water outlet device 4000, and may include one or more processing cores. The processor 4001 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 4002, and calling the data stored in the memory 4002, so as to control the water outlet device as a whole. Optionally, the processor 4001 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 4001 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 communication. It can be understood that the above-mentioned modem may not be integrated into the processor 4001, and it can be implemented separately through a communication chip.

[0219] The memory 4002 can be used to store software programs and modules, and the processor 4001 executes various functional applications and data processing by running the computer programs and modules stored in the memory 4002. The memory 4002 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.

[0220] In addition, the memory 4002 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 4002 may also include a memory controller to provide the processor 4001 with access to the memory 4002.

[0221] In the embodiment of the present application, the processor 4001 in the water outlet device 4000 will load instructions corresponding to the processes of one or more computer programs into the memory 4002 according to the following steps, and the processor 4001 will run the computer program stored in the memory 4002 to implement various functions, as follows:

[0222] The detection data of the water storage container is obtained based on the cup height detection points, and the container height of the water storage container is determined from the detection data; wherein the height data of each cup height detection point is obtained based on the cup height error value and the distance between two adjacent cup height detection points among at least two cup height detection points.

[0223] Optionally, the processor 701 executes based on the cup height error value and the distance between two adjacent cup height detection points among at least two cup height detection points, and specifically executes: if the cup height detection point is the first cup height detection point, then obtain the first distance between the first cup height detection point and the water receiving tray, the first cup height detection point being the cup height detection point in the height detection module that is closest to the water receiving tray in relative distance; based on the first distance and the cup height error value, determine the first height data of the first cup height detection point in the height detection module; wherein the cup height error value is calculated based on the error value between the actual cup height and the measured cup height.

[0224] Optionally, the processor 701 executes the step of acquiring the height data of each cup height detection point, specifically performing: if the cup height detection point is the second cup height detection point, then acquiring the second distance between the second cup height detection point and the first cup height detection point, the second cup height detection point being the cup height detection point above the first cup height detection point; and determining the second height data of the second cup height detection point based on the first distance, the second distance and the cup height error value.

[0225] Optionally, when executing the step of acquiring the height data of each cup height detection point, the processor 701 specifically performs: acquiring the height data corresponding to the cup height detection point where the sensing signal exists from the detection data; determining the cup height detection point with the largest height data as the target cup height detection point, and determining the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0226] Optionally, the processor 701 is also used to specifically execute: determining a cup height detection point located above a target cup height detection point as an auxiliary cup height detection point; executing a preset cup height detection algorithm based on cup height data corresponding to the auxiliary cup height detection point and cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

[0227] Optionally, after the processor 701 obtains the detection data of the water storage container based on the cup height detection point and determines the container height of the water storage container from the detection data, it specifically executes: obtaining the liquid level height of the water storage container based on the water level detection module; and adjusting the working state of the water outlet device based on the height difference between the liquid level height and the container height.

[0228] Optionally, the processor 701 adjusts the working state of the water outlet device based on the height difference between the liquid level and the container height, and specifically performs: obtaining the placement state of the water storage container;

[0229] When the placement state is a static placement state, the liquid level height of the water storage container is obtained based on the water level detection module;

[0230] If the height difference between the liquid level and the container height is less than a preset difference threshold, the water outlet device is controlled to enter a water outlet state;

[0231] If the height difference between the liquid level and the container height is greater than or equal to the difference threshold, the water outlet device is controlled to enter a water cut-off state.

[0232] Optionally, when the processor 701 executes to obtain the placement state of the water storage container, the following specifically executes: if it is detected that the sensing time of the water storage container in the water outlet area is greater than or equal to a preset time threshold, the water level detection module is controlled to enter the working state to obtain the container reflection signal of the water storage container; the relative distance between the water storage container and the water level detection module is determined based on the reflection time of the container reflection signal; if the relative distance does not change within the preset time, the placement state of the water storage container is determined to be a static placement state; if the relative distance changes within the preset time, the placement state of the water storage container is determined to be a moving placement state.

[0233] In the embodiment of the present application, by obtaining the cup height error value obtained by the water outlet device in the test scenario, the error conditions that may occur under specific detection conditions can be fully understood, and the error characteristics under different positions and situations can be captured more systematically, providing a basis for subsequent accurate calculations. The height data of each cup height detection point in the height detection module is determined based on the cup height error value and the distance between two adjacent cup height detection points. This process takes into account the error factors in the actual detection and the spatial relationship of the detection points. The height data calculated by combining these factors is more accurate and reliable, and can effectively reduce the deviation caused by a single measurement or ignoring the error. When responding to the cup height detection instruction for the water storage container, the target cup height detection point with response data is determined in at least two cup height detection points, and the corresponding target height data is confirmed as the container height of the water storage container. This method takes advantage of multiple detection points, and can more accurately locate the detection points related to the height of the water storage container in different detection scenarios. At the same time, the presence of multiple detection points increases the coverage and accuracy of the detection, avoiding the misjudgment or inaccuracy that may occur in a single detection point. By confirming the target height data, the actual height of the water storage container can be determined more accurately, which improves the accuracy of container height recognition and provides a more accurate basis for subsequent water output control and other operations, thereby better meeting user needs and improving user experience.

[0234] In the embodiment of the present application, the processor 4001 in the water outlet device 4000 will load instructions corresponding to the processes of one or more computer programs into the memory 4002 according to the following steps, and the processor 4001 will run the computer program stored in the memory 4002 to implement various functions, as follows:

[0235] Obtain the preset cup height error value and initial placement height value;

[0236] Based on the cup height error value and the initial placement height value, determining multiple height positions for placing cup height detection points in the height detection module;

[0237] The cup height detection point is mounted to the height detection module based on the height position.

[0238] Optionally, the processor 4001 determines multiple height positions for placing cup height detection points in the height detection module based on the cup height error value and the initial placement height value, and specifically performs: determining a first height position based on the cup height error value and the initial placement height value; if the first height position is less than a height threshold of the height detection module, determining a second height position based on the first height position, the cup height error value and the initial placement height value; if the second height position is greater than the height threshold, determining the height threshold as the actual height position of the second height position.

[0239] Optionally, before executing to obtain a preset cup height error value and an initial placement height value, the processor 4001 specifically executes:.

[0240] Optionally, the processor 4001 is executing, specifically executing: obtaining a test error value from a preset error value set; determining a test height position of each cup height detection point in the height detection module based on the test error value and the initial placement height value, and placing each cup height detection point at a corresponding test height position; performing height detection on a preset test container based on the cup height detection point at the test height position to obtain test cup height data of the test container; determining a height measurement error of the test container under the test error value based on the test cup height data and the actual cup height data of the test container; if the height measurement error is less than a preset error threshold, determining the test error value as the cup height error value.

[0241] Optionally, after installing the cup height detection point to the height detection module based on the height position, the processor 4001 specifically performs: acquiring detection data of the water storage container based on the cup height detection point, and determining the container height of the water storage container from the detection data.

[0242] Optionally, the processor 4001 obtains detection data of the water storage container based on the cup height detection point, and determines the container height of the water storage container from the detection data. Specifically, the processor 4001 performs: obtaining height data corresponding to the cup height detection point where the sensing signal exists from the detection data; determining the cup height detection point with the largest height data as the target cup height detection point, and determining the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0243] Optionally, the processor 4001 is also used to specifically execute: obtaining the height data corresponding to the cup height detection point where the sensing signal exists from the detection data; determining the cup height detection point with the largest height data as the target cup height detection point, and determining the height data corresponding to the target cup height detection point as the container height of the water storage container.

[0244] Optionally, the processor 4001 is also used to specifically execute: performing a status test on each cup height detection point based on a preset interval duration; if there is a cup height detection point in an abnormal state, generating corresponding abnormal prompt information, the abnormal prompt information including the position information of the cup height detection point in the abnormal state in the height detection module.

[0245] In the embodiment of the present application, by obtaining the preset cup height error value and the initial placement height value, the placement error of the cup height detection point caused by inaccurate measurement is effectively avoided, and multiple height positions are determined based on the cup height error value and the initial placement height value, thereby optimizing the distribution position of the cup height detection point. Finally, by installing the cup height detection point at the corresponding height position, the height detection module improves the detection accuracy of the height data of the water storage container.

[0246] 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 method for identifying the height of a container and a method for setting a cup height detection point of a water outlet device provided in the above-mentioned embodiment.

[0247] In addition, the device provided in the embodiment of the present application can specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a method for identifying the height of a container and a method for setting the cup height detection point of a water outlet device provided in the above-mentioned embodiment.

[0248] 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 method for setting a cup height detection point of a water outlet device provided in the above embodiment.

[0249] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a method for identifying the height of a container and a method for setting a cup height detection point of a water outlet device provided in the above-mentioned embodiment.

[0250] 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.

[0251] 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.

[0252] 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.

[0253] 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 setting a cup height detection point of a water outlet device, characterized in that: Applied to a water outlet device, the water outlet device includes a height detection module, the height detection module has a plurality of cup height detection points for detecting the height of a water storage container, the method includes: Obtain the preset cup height error value and initial placement height value; Based on the cup height error value and the initial placement height value, determining a plurality of height positions for placing the cup height detection points in the height detection module; The cup height detection point is mounted to the height detection module based on the height position.

2. The method according to claim 1, characterized in that: The determining, based on the cup height error value and the initial placement height value, a plurality of height positions for placing the cup height detection point in the height detection module comprises: Determining a first height position based on the cup height error value and the initial placement height value; If the first height position is less than the height threshold of the height detection module, determining a second height position based on the first height position, the cup height error value and the initial placement height value; If the second height position is greater than the height threshold, the height threshold is determined as the actual height position of the second height position.

3. The method according to claim 1, characterized in that Before obtaining the preset cup height error value and the initial placement height value, the method further includes: Obtain a test error value from a preset error value set; Based on the test error value and the initial placement height value, determine the test height position of each cup height detection point in the height detection module, and place each cup height detection point at the corresponding test height position; Performing height detection on a preset test container based on the cup height detection point at the test height position to obtain test cup height data of the test container; determining a height measurement error of the test container at the test error value based on the test cup height data and the actual cup height data of the test container; If the height measurement error is less than a preset error threshold, the test error value is determined as a cup height error value.

4. The method according to claim 1, characterized in that: After installing the cup height detection point to the height detection module based on the height position, the method further includes: The detection data of the water storage container is acquired based on the cup height detection point, and the container height of the water storage container is determined from the detection data.

5. The method according to claim 4, characterized in that The acquiring detection data of the water storage container based on the cup height detection point, and determining the container height of the water storage container from the detection data, comprises: Acquire the height data corresponding to the cup height detection point where the sensing signal exists from the detection data; The cup height detection point with the largest height data is determined as a target cup height detection point, and the height data corresponding to the target cup height detection point is determined as the container height of the water storage container.

6. The method according to claim 4, characterized in that The method further comprises: determining the cup height detection point located on the target cup height detection point as an auxiliary cup height detection point; A preset cup height detection algorithm is executed based on the cup height data corresponding to the auxiliary cup height detection point and the cup height data corresponding to the target cup height detection point to obtain the container height of the water storage container.

7. The method according to claim 1, characterized in that The method further comprises: Performing a status test on each of the cup height detection points based on a preset interval duration; If there is an abnormal state of the cup height detection point, corresponding abnormal prompt information is generated, and the abnormal prompt information includes the position information of the cup height detection point in the abnormal state in the height detection module.

8. A device for setting a cup height detection point of a water outlet device, characterized in that: Applied to a water outlet device, the water outlet device includes a height detection module, and the height detection module has multiple cup height detection points for detecting the height of a water storage container, including: A data acquisition unit, used to acquire a preset cup height error value and an initial placement height value; a position determination unit, configured to determine a plurality of height positions for placing the cup height detection points in the height detection module based on the cup height error value and the initial placement height value; An installation indicating unit is used to install the cup height detection point to the height detection module based on the height position.

9. 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 method for setting the cup height detection point of the water outlet device according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method for setting a cup height detection point of the water outlet device according to any one of claims 1 to 7 is implemented.