Water level detection method and device, water heater and storage medium

By dynamically dividing the water level into segments within the water heater and automatically adjusting according to water quality and aging, the problem of water level detectors being unable to accurately match water quality in existing technologies is solved, achieving higher detection accuracy and extended service life.

CN121977293APending Publication Date: 2026-05-05QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD
Filing Date
2024-10-30
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing water level detectors for water heaters cannot accurately match actual water quality conditions, resulting in low accuracy of water level detection. Furthermore, they cannot automatically adjust after water quality changes or aging, affecting service life and user experience.

Method used

By using a water level detector to detect real-time water level values ​​during the water filling process of the water heater, the start and end water level values ​​of each conductive stage are obtained, the water level segment intervals are dynamically divided, and the water level segment relationship is automatically adjusted according to water quality and aging, so as to achieve self-learning and adaptation to changes in water quality.

Benefits of technology

It improves the accuracy of water level detection, extends the service life of water level detectors, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121977293A_ABST
    Figure CN121977293A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a water level detection method and device, a water heater and a storage medium, and relates to the technical field of water heaters. The method comprises the steps that in the water feeding process of the water heater, the real-time water level value of a water tank is detected through a water level detector, and starting and stopping water level values corresponding to all conductive stages are obtained from the real-time water level value; determining at least two water level subsection intervals according to the start-stop water level values corresponding to the conductive stages; acquiring a water level segmentation identifier set for each water level segmentation interval in the at least two water level segmentation intervals, and determining a water level segmentation relationship according to the at least two water level segmentation intervals and the water level segmentation identifiers of the corresponding water level segmentation intervals; and determining the current water level segmentation of the water tank according to the water level segmentation relation. In the technical scheme provided by the embodiment of the invention, the water level segmentation interval of the water tank is accurately adjusted according to the actual water quality condition without depending on two preset fixed ranges of high sensitivity and low sensitivity, so that the accuracy of water level detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of water heater technology, and in particular to a water level detection method, device, water heater and storage medium. Background Technology

[0002] Currently, water level detectors are typically placed inside the water tank of a water heater. These detectors are used to detect the water level inside the tank. Specifically, the resistance inside the water level detector can form a conductive circuit with the water in contact with it. When the water reaches different positions on the water level detector, the detector can generate different voltage signals and convert these voltage signals into corresponding values, thereby achieving the purpose of detecting the water level.

[0003] Since the conductivity of water is related to water quality (i.e., when the total dissolved solids (TDS) in water is low, the conductivity of water is weak), and the method of detecting water level using a water level detector mainly relies on the conductivity of water, the sensitivity detection mode of the water level detector can be manually set according to the water quality conditions of different regions, namely, a high-sensitivity detection mode and a low-sensitivity detection mode, in order to match the water quality conditions of different regions and improve the accuracy of water level detection by the water level detector.

[0004] However, the above-mentioned method of manually setting the sensitivity detection mode of the water level detector can only be selected within two preset sensitivity ranges (i.e., high sensitivity and low sensitivity), which cannot accurately match the actual water quality conditions, thus resulting in low accuracy of water level detection. Summary of the Invention

[0005] This application provides a water level detection method, device, water heater, and storage medium, which realizes the water level detection function to solve the problem of low accuracy of water level detection in the prior art due to the inability to accurately match the actual water quality.

[0006] In a first aspect, embodiments of this application provide a water level detection method applied to a water heater, the water heater including a water tank, and a water level detector placed inside the water tank, the method comprising:

[0007] During the process of filling the water heater, a water level detector is used to detect the real-time water level value of the water tank, and the start and end water level values ​​corresponding to each conductive stage are obtained from the real-time water level value.

[0008] Determine at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage.

[0009] Obtain the water level segment identifier set for each water level segment interval in at least two water level segment intervals, and determine the water level segment relationship based on the water level segment identifiers of the at least two water level segment intervals and the corresponding water level segment intervals;

[0010] The current water level segment of the water tank is determined based on the water level segmentation relationship.

[0011] In this embodiment, during the process of filling the water heater, a water level detector can be used to detect the real-time water level value of the water tank and obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value. Then, at least two water level segment intervals are determined according to the start and end water level values ​​corresponding to each conductive stage. Then, the water level segment identifier set for each water level segment interval in the at least two water level segment intervals is obtained, and the water level segment relationship is determined according to the at least two water level segment intervals and the water level segment identifier of the corresponding water level segment interval. Finally, the current water level segment of the water tank is determined according to the water level segment relationship, thus realizing the water level detection function. In the above technical solution, by detecting the real-time water level value of the water tank and obtaining the start and end water level values ​​corresponding to each conductive stage, and then further determining the water level segment interval based on the start and end water level values ​​corresponding to each conductive stage, it can dynamically adapt to the water quality conditions of different regions. It no longer relies on two preset fixed ranges of high sensitivity and low sensitivity, but precisely adjusts the water level segment interval of the water tank according to the actual water quality conditions. This achieves self-learning of the corresponding water level segment interval based on the actual water quality conditions, thereby improving the accuracy of water level detection. It solves the problem of low accuracy of water level detection caused by the inability to accurately match the actual water quality conditions in the prior art. At the same time, when the water level detector experiences aging and shift, it can still automatically adjust the water level segment interval according to the actual aging condition, thereby extending the service life of the water level detector and improving the accuracy of water level detection, thus enhancing the user experience.

[0012] Secondly, embodiments of this application provide a water level detection device. The water heater includes a water tank, and a water level detector is placed inside the water tank. The device includes:

[0013] The value acquisition module is used to detect the real-time water level value of the water tank using a water level detector during the water filling process of the water heater, and to obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value.

[0014] The interval determination module is used to determine at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage.

[0015] The relationship determination module is used to obtain the water level segment identifier set for each water level segment interval in at least two water level segment intervals, and determine the water level segment relationship based on the at least two water level segment intervals and the water level segment identifier of the corresponding water level segment interval;

[0016] The water level segment determination module is used to determine the current water level segment of the water tank based on the water level segment relationship.

[0017] Thirdly, embodiments of this application provide a water heater, which includes:

[0018] At least one processor; and a memory communicatively connected to the at least one processor;

[0019] The memory stores a computer program that can be executed by at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the water level detection method of any embodiment of this application.

[0020] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the water level detection method as described in any embodiment of this application.

[0021] The descriptions of the second, third, and fourth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects described in the second, third, and fourth aspects can be referenced to the analysis of the beneficial effects in the first aspect, which will not be repeated here.

[0022] In this application, the name of the aforementioned water level detection device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.

[0023] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a schematic flowchart of a water level detection method provided in an embodiment of this application;

[0026] Figure 2a This is an example diagram of a water level detector provided in an embodiment of this application;

[0027] Figure 2b This is an example diagram illustrating the relationship between real-time water level and water volume provided in an embodiment of this application;

[0028] Figure 2c This is an example diagram of the water level segmentation markers provided in an embodiment of this application;

[0029] Figure 3This is another schematic flowchart of the water level detection method provided in the embodiments of this application;

[0030] Figure 4 This is a schematic diagram of the water level detection device provided in an embodiment of this application;

[0031] Figure 5 This is a schematic diagram of a water heater provided in an embodiment of this application. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0033] It should be noted that the terms "first," "second," "target," and "original," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprising," "having," and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0034] Figure 1 This is a flowchart illustrating a water level detection method provided in an embodiment of this application. This embodiment can be applied to scenarios where the water level inside a water heater tank needs to be detected. The water level detection method provided in this embodiment can be executed by a water level detection device provided in this application, which can be implemented through software and / or hardware. In a specific embodiment, the water level detection device can be integrated into a water heater, which may include a controller and a water tank, etc. A water level detector is placed inside the water tank to detect the water level inside the tank, and the controller can communicate data with the water level detector. The executing entity of this method can be the controller of the water heater, see [link to relevant documentation]. Figure 1 The water level detection method in this embodiment includes, but is not limited to, the following steps:

[0035] S110. During the process of filling the water heater, the water level detector is used to detect the real-time water level value of the water tank, and the start and end water level values ​​corresponding to each conductive stage are obtained from the real-time water level value.

[0036] The water level detector is a device used to measure and monitor the water level inside a water heater tank. The internal resistance of the detector forms a conductive circuit with the water. When water reaches different positions on the detector, the resistance value changes, generating different voltage signals to detect the water level. For example, the water level detector can be a silicone resistive sensor.

[0037] The real-time water level value is the numerical value obtained after the voltage signal detected by the water level detector is converted into a digital value, which is used to characterize the water level height. The real-time water level value is updated in real time as water is added to or removed from the water tank. The higher the real-time water level value, the lower the corresponding water level height.

[0038] The conductive stage is the part of the water level detector that can form a conductive loop with the water, i.e., the conductive part. Due to the conductivity of the conductive stage, when water passes through it, the voltage signal of the water level detector will change rapidly. Therefore, the real-time water level value corresponding to the conductive stage will change rapidly and continuously. Optionally, such as... Figure 2a The figure shown is an example diagram of a water level detector provided in an embodiment of this application. Figure 2a The water level detector is placed vertically inside the water tank. Figure 2a The shaded areas in the image contain conductive materials that can form a conductive circuit with water, i.e. Figure 2a The shaded area in the diagram represents the conductive phase of the water level detector. For example, when the water level detector is a silicone resistive sensor, metal powder or carbon powder can be added to the shaded area to allow it to form a conductive circuit with the water.

[0039] The start and end water level values ​​are the water level values ​​corresponding to the start and end times of each conduction stage; optionally, the start and end water level values ​​may include the starting water level value and the ending water level value, wherein the starting water level value is the water level value corresponding to the start time of the conduction stage, and the ending water level value is the water level value corresponding to the end time of the conduction stage.

[0040] Specifically, the water level detector can be pre-fixed vertically inside the water tank to ensure direct contact with the water and coverage of the entire water level range. During the water filling process of the water heater, the water level detector can monitor the water level in the tank in real time, obtaining the real-time water level value, and then send the detected real-time water level value to the water heater controller. The controller can then receive the real-time water level value sent by the water level detector and obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value. That is, during the water filling process, the water will sequentially pass through each conductive stage of the water level detector, and when the water passes through a conductive stage, the real-time water level value detected by the water level detector will be sent. Because the water level changes rapidly and continuously, the real-time water level values ​​can be sorted sequentially according to time. The start time (i.e., the start time of rapid and continuous change) and end time (i.e., the end time of rapid and continuous change) of each conduction stage can be identified. Then, the real-time water level value corresponding to the start time of each conduction stage (denoted as the initial water level value) and the real-time water level value corresponding to the end time of each conduction stage (denoted as the termination water level value) can be obtained from the real-time water level values. The initial water level value and the termination water level value corresponding to each conduction stage are combined to form the start and end water level values ​​of the corresponding conduction stage, thereby obtaining the start and end water level values ​​corresponding to each conduction stage.

[0041] For example, such as Figure 2a As shown, Figure 2a The water level detector in the system includes four conductive stages (conductive stage 1, conductive stage 2, conductive stage 3, and conductive stage 4). During the water filling process of the water heater, the water will sequentially pass through conductive stage 1, conductive stage 2, conductive stage 3, and conductive stage 4. At each conductive stage, the real-time water level value will change rapidly and continuously. Therefore, the start and end water level values ​​for each conductive stage can be determined from the real-time water level values. Here, a1 is the starting water level value of conductive stage 1, a2 is the ending water level value of conductive stage 1, i.e., the start and end water level values ​​of conductive stage 1 are a1 and a2; b1 is the starting water level value of conductive stage 2, and b2 is the ending water level value of conductive stage 2. The water level values ​​are b1 and b2 for the start and end of conduction stage 2; c1 is the starting water level value for conduction stage 3, and c2 is the ending water level value for conduction stage 3; d1 is the starting water level value for conduction stage 4, and d2 is the ending water level value for conduction stage 4; and since a larger real-time water level value corresponds to a lower water level, the starting and ending water level values ​​for the conduction stage located below the water level detector are greater than those for the conduction stage located above the water level detector, i.e., a1>a2>b1>b2>c1>c2>d1>d2.

[0042] For example, such as Figure 2b The diagram shown is an example of the relationship between real-time water level and water volume provided in an embodiment of this application. The red line represents the real-time water level, and the blue line represents the water volume inside the tank. Figure 2b It can be seen that during the water filling process of the water heater, the real-time water level will change rapidly and continuously as the water passes through each conductive stage. Furthermore, the higher the real-time water level, the smaller the corresponding water volume. In other words, during the water filling process of the water heater, the water volume inside the tank increases sequentially, and the real-time water level decreases sequentially.

[0043] S120. Determine at least two water level segment intervals based on the starting and ending water level values ​​corresponding to each conductive stage.

[0044] The water level segment intervals are the segments divided into by the water tank based on the starting and ending water level values ​​of each conductive stage. Each water level segment interval represents a specific water level range. That is, when the water level value of the water tank is within the water level segment interval, it indicates that the water inside the water tank is in the water level segment corresponding to that water level segment interval.

[0045] Specifically, when the TDS in the water is low, the water's conductivity is weak, and the water level value detected by the water level detector is higher. That is, when the water quality changes, the water level value at the same location will be different. Therefore, the water level segmentation range determined before the water quality change will not be applicable to the water level detector after the water quality change. Furthermore, with the use of the water level detector, scale inside the water tank will adhere to the surface of the water level detector, thereby affecting the water level value detected by the water level detector (i.e., aging shift occurs). That is, when the water level detector experiences aging shift, the water level value at the same location will be different. Therefore, the water level segmentation range determined before the aging shift will not be applicable to the water level detector after the aging shift.

[0046] Therefore, after obtaining the start and end water level values ​​corresponding to each conductive stage, it is necessary to determine the water level segmentation intervals in real time based on the actual water quality inside the tank and the actual aging of the water level detector. This can be achieved by determining at least two water level segmentation intervals based on the start and end water level values ​​corresponding to each conductive stage. For example, any conductive stage can be selected as the current conductive stage, and its starting water level value can be determined as the end point of the water level segmentation interval. Then, the next conductive stage (i.e., the conductive stage above and adjacent to the current conductive stage) can be obtained, and its starting water level value can be determined as the water level segmentation interval. The starting point (since the larger the real-time water level value, the lower the corresponding water level height, the starting and ending water level values ​​of the current conductive stage are greater than the starting and ending water level values ​​of the next conductive stage) is used to obtain a water level segmentation interval; then other conductive stages can be selected as the current conductive stage, and the above process can be repeated to obtain at least two water level segmentation intervals. When the current conductive stage is the last conductive stage, the end point of the water level segmentation interval is the starting water level value of the current conductive stage, and the starting point of the water level segmentation interval is the preset water level value. At this time, the preset water level value is a pre-set value used to represent the theoretical water level value when the water tank is full. For example, the preset water level value can be 1.

[0047] It should be noted that in actual use of the water heater, the actual water level when the tank is full is greater than the preset water level. That is, if the real-time water level does not change rapidly and continuously within the first set time period during the water filling process, it can be determined that the water tank is full.

[0048] For example, such as Figure 2a As shown, the next conductive stage after conductive stage 2 is conductive stage 3.

[0049] S130. Obtain the water level segment identifier set for each water level segment interval in at least two water level segment intervals, and determine the water level segment relationship based on the water level segment identifiers of the at least two water level segment intervals and the corresponding water level segment intervals.

[0050] Among them, the water level segment markers are markers set up to distinguish and identify different water level segment intervals, and each water level segment interval is assigned a unique marker.

[0051] The water level segmentation relationship is used to characterize the correspondence between water level segment intervals and water level segment identifiers.

[0052] Specifically, after obtaining at least two water level segment intervals, at least two water level segment intervals can be displayed. At this time, the user can set a water level segment identifier for each of the at least two water level segment intervals and input the set water level segment identifier into the water heater's display screen; for example, such as Figure 2c The figure shown is an example diagram of a water level segmentation identifier provided in an embodiment of this application. It is known that at least two water level segmentation intervals include water level segmentation interval 1 (b1, a1], water level segmentation interval 2 (c1, b1], water level segmentation interval 3 (d1, c1], and water level segmentation interval 4 [1, d1]. Then, the water level segmentation identifier set by the user for water level segmentation interval 1 can be water level 1, the water level segmentation identifier set for water level segmentation interval 2 can be water level 2, the water level segmentation identifier set for water level segmentation interval 3 can be water level 3, and the water level segmentation identifier set for water level segmentation interval 4 can be water level 4.

[0053] Afterwards, the controller can receive the water level segment identifier for each water level segment interval input by the user, and establish the correspondence between each water level segment interval and the water level segment identifier to obtain the water level segment relationship.

[0054] S140. Determine the current water level segment of the water tank based on the water level segmentation relationship.

[0055] The current water level segment refers to the water level segment inside the tank at the current moment.

[0056] Specifically, after updating the water level segmentation relationship based on the actual water quality inside the water tank and the actual aging of the water level detector, the water level in the water tank can be detected based on the water level segmentation relationship. That is, the water level segment in the water tank at the current moment can be determined based on the water level segmentation relationship, the current water level segment can be obtained, and the current water level segment can be displayed on the display screen so that the user can accurately understand the water level height inside the water tank.

[0057] Optionally, during the water filling process of the water heater, if the user manually stops the water filling, the solenoid valve of the water heater is shut off due to a malfunction, or the user is using water, the self-learning process (i.e., the process of automatically adjusting the water level segment interval and water level segment relationship based on the actual water quality inside the water tank and the actual aging of the water level detector) is stopped, that is, S120 and S130 are not executed. Specifically, when the increase in the real-time water level value within a second set time period is greater than a set increment threshold, it can be determined that the user is using water; for example, if the second set time period is 8 seconds and the set increment threshold is 2, then when the increase in the real-time water level value within 8 seconds is greater than 2, it can be determined that the user is using water, and the self-learning process is stopped at this time.

[0058] The technical solution of this application embodiment can detect the real-time water level value of the water tank using a water level detector during the water filling process of the water heater, obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value, then determine at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage, then obtain the water level segment identifier set for each water level segment interval in the at least two water level segment intervals, and determine the water level segment relationship based on the at least two water level segment intervals and the water level segment identifiers of the corresponding water level segment intervals, and then determine the current water level segment of the water tank based on the water level segment relationship, thus realizing the water level detection function. In the above technical solution, by detecting the real-time water level value of the water tank and obtaining the start and end water level values ​​corresponding to each conductive stage, and then further determining the water level segment interval based on the start and end water level values ​​corresponding to each conductive stage, it can dynamically adapt to the water quality conditions of different regions. It no longer relies on two preset fixed ranges of high sensitivity and low sensitivity, but precisely adjusts the water level segment interval of the water tank according to the actual water quality conditions. This achieves self-learning of the corresponding water level segment interval based on the actual water quality conditions, thereby improving the accuracy of water level detection. It solves the problem of low accuracy of water level detection caused by the inability to accurately match the actual water quality conditions in the prior art. At the same time, when the water level detector experiences aging and shift, it can still automatically adjust the water level segment interval according to the actual aging condition, thereby extending the service life of the water level detector and improving the accuracy of water level detection, thus enhancing the user experience.

[0059] The following further describes a water level detection method provided by an embodiment of this application. Figure 3 This is another schematic flowchart of the water level detection method provided in this application. This application's embodiment is an optimization based on the above embodiments. See also... Figure 3 The method in this embodiment includes, but is not limited to, the following steps:

[0060] S301. During the process of filling the water heater, the water level detector is used to detect the real-time water level value of the water tank, and the start and end water level values ​​corresponding to each conductive stage are obtained from the real-time water level value.

[0061] Specifically, the implementation process and technical principles of S301 and S110 are the same, and can be found in the detailed description of S110 above, which will not be repeated here. Afterwards, S302 or S305 can be executed.

[0062] S302. For the current conductive stage in each conductive stage, determine the current endpoint of the current water level segment interval based on the start and end water level values ​​corresponding to the current conductive stage.

[0063] The current endpoint is the maximum value of the water level within the current water level segment interval. Since the larger the water level value, the lower the corresponding water level height, the current endpoint is the position with the lowest water level height within the current water level segment interval. When the water level value continues to increase (i.e., the water level continues to drop from the current endpoint) and exceeds the current endpoint, it will enter the next water level segment interval.

[0064] Specifically, after obtaining the starting and ending water level values ​​corresponding to each conductive stage, any conductive stage can be selected as the current conductive stage. Then, the starting and ending water level values ​​corresponding to the current conductive stage are obtained. The average value of the starting and ending water level values ​​is then calculated, and this average value is determined as the current endpoint of the current water level segment interval.

[0065] S303. Determine the current starting point of the current water level segment interval based on the starting and ending water level values ​​corresponding to the next conductive stage of the current conductive stage.

[0066] The current starting point is the minimum water level value within the current water level segment interval, which is the position with the highest water level height within the current water level segment interval. When the water level value continues to decrease (i.e., the water level continues to rise from the current starting point) and exceeds the current starting point, it will enter the next water level segment interval.

[0067] Specifically, after obtaining the current endpoint of the current water level segment interval, the next conductive stage of the current conductive stage can be determined, that is, the conductive stage located above and adjacent to the current conductive stage. The starting water level value and the ending water level value corresponding to the next conductive stage are obtained. Then, the average value of the starting water level value and the ending water level value are calculated, and the average value is determined as the current starting point of the current water level segment interval.

[0068] For example, such as Figure 2a As shown, when the current conduction stage is conduction stage 1, the current end point of the current water level segment interval is (a1+a2) / 2, and the current start point of the current water level segment interval is (b1+b2) / 2.

[0069] S304. Determine the current water level segment interval based on the current starting point and the current ending point of the current water level segment interval.

[0070] Specifically, after obtaining the current starting point and the current ending point of the current water level segment interval, the current water level segment interval can be updated in real time based on these points, thus determining the target starting point and target ending point of the current water level segment interval. The target starting point is a starting point applicable to the actual water quality conditions inside the water tank and the actual aging condition of the water level detector, while the target ending point is an ending point applicable to the actual water quality conditions inside the water tank and the actual aging condition of the water level detector.

[0071] Specifically, in one implementation, the target starting point can be directly determined as the current starting point, and the target ending point can be determined as the current ending point.

[0072] In another implementation, the current water level segment interval is determined based on the current starting point and the current ending point of the current water level segment interval, including Sa1-Sa3:

[0073] Sa1: Obtain the historical starting point and historical ending point of the current water level segment interval.

[0074] Among them, the historical starting point is either the initial starting point of the current water level segment or the previous target starting point of the current water level segment; the initial starting point is the starting point pre-set for the current water level segment based on the physical characteristics of the water tank and the installation position of the water level detector before the water level of the water tank is detected for the first time; the previous target starting point is the target starting point obtained from the last update of the current water level segment.

[0075] The historical endpoint is either the initial endpoint of the current water level segment or the previous target endpoint of the current water level segment. The initial endpoint is the endpoint pre-set for the current water level segment based on the physical characteristics of the water tank and the installation location of the water level detector before the water level of the water tank is detected for the first time. The previous target endpoint is the target endpoint obtained from the last update of the current water level segment.

[0076] Specifically, when using a water level detector to detect the water level in a water tank for the first time, the initial starting point pre-set for the current water level segment interval can be determined as the historical starting point of the current water level segment interval, and the initial ending point pre-set for the current water level segment interval can be determined as the historical ending point of the current water level segment interval. When using a water level detector to detect the water level in a water tank for the first time, the previous target starting point of the current water level segment interval can be determined as the historical starting point of the current water level segment interval, and the previous target ending point of the current water level segment interval can be determined as the historical ending point of the current water level segment interval.

[0077] Sa2. Calculate the change between the current starting point and the historical starting point to obtain the starting point offset, and calculate the change between the current ending point and the historical ending point to obtain the ending point offset.

[0078] The starting point offset is the absolute value of the difference between the current starting point and the historical starting point.

[0079] The endpoint offset is the absolute value of the difference between the current endpoint and the historical endpoint.

[0080] For example, if the current starting point is 213, the historical starting point is 209, the current ending point is 219, and the historical ending point is 216, then the starting point offset is 4 (i.e., |213-209|) and the ending point offset is 3 (i.e., |219-216|).

[0081] Sa3. Determine the target starting point of the current water level segment interval based on the current starting point, historical starting point, and starting point offset, and determine the target ending point of the current water level segment interval based on the current ending point, historical ending point, and ending point offset.

[0082] Specifically, when the starting offset is greater than a preset offset threshold, the target starting point is determined as the current starting point; when the starting offset is not greater than the preset offset threshold, the target starting point is determined as the historical starting point; when the ending offset is greater than the preset offset threshold, the target ending point is determined as the current ending point; when the ending offset is not greater than the preset offset threshold, the target ending point is determined as the historical ending point. The preset offset threshold is a pre-set value used to determine whether to update the target starting point and target ending point of the water level segment interval. Users can adjust and set this preset offset threshold according to actual usage; this embodiment does not specifically limit this. When the offset is small, there is no need to update the target starting point or target ending point, avoiding frequent adjustments to the water level segment interval due to minor changes and saving computational resources. When the offset is large, updating the target starting point or target ending point allows the water level segment interval to match the actual water quality inside the tank and the actual aging of the water level detector, thereby improving the accuracy of water level detection.

[0083] In this embodiment, by calculating the starting point offset and the ending point offset, the water level segment interval can be automatically adjusted to adapt to the actual water quality inside the water tank and the actual aging of the water level detector, thus avoiding errors caused by fixed interval division and improving the accuracy of water level detection.

[0084] After obtaining the target start and end points of the current water level segment interval, other conductive stages can be selected as the current conductive stage, and S302 to S304 can be repeated to obtain the target start and end points of each water level segment interval in at least two water level segment intervals. It should be noted that when the current conductive stage is the last conductive stage, the current end point of the current water level segment interval is the average of the starting and ending water level values ​​of the current conductive stage, and the current start point of the current water level segment interval is a preset water level value. Then, S308 can be executed.

[0085] S305. For the current conductive stage in each conductive stage, determine the current endpoint of the current water level segment interval based on the termination water level value corresponding to the previous conductive stage and the starting water level value corresponding to the current conductive stage.

[0086] Here, the previous conduction stage is the conduction stage located below and adjacent to the current conduction stage. For example, such as... Figure 2a As shown, the previous conductive stage of conductive stage 2 is conductive stage 1.

[0087] Specifically, after obtaining the starting and ending water level values ​​corresponding to each conductive stage, any conductive stage can be selected as the current conductive stage. Then, the previous conductive stage is determined, and the average value of the ending water level value of the previous conductive stage and the starting water level value of the current conductive stage is calculated. This average value is then determined as the current endpoint of the current water level segment interval.

[0088] S306. Determine the current starting point of the current water level segment interval based on the termination water level value corresponding to the current conduction stage and the starting water level value corresponding to the next conduction stage of the current conduction stage.

[0089] Specifically, after the current end point of the current water level segment interval, the next conductive stage of the current conductive stage can be determined. Then, the average value of the ending water level value of the current conductive stage and the starting water level value of the next conductive stage is calculated, and this average value is determined as the current starting point of the current water level segment interval.

[0090] For example, such as Figure 2a As shown, when the current conduction stage is conduction stage 2, the current endpoint of the current water level segment interval is (a2+b1) / 2, and the current starting point of the current water level segment interval is (b2+c1) / 2.

[0091] It should be noted that when the current conduction stage is the first conduction stage, the current end point of the current water level segment interval is the starting water level value corresponding to the current conduction stage; when the current conduction stage is the last conduction stage, the current starting point of the current water level segment interval is the preset water level value.

[0092] S307. Determine the current water level segment interval based on the current starting point and the current ending point of the current water level segment interval.

[0093] Specifically, the implementation process and technical principles of S307 and S304 are the same, and can be found in the detailed description of S304 above, which will not be repeated here. After obtaining the target start and target end points of the current water level segment interval, other conductive stages can be selected as the current conductive stage, and S305 to S307 can be executed repeatedly to obtain the target start and target end points of each water level segment interval in at least two water level segment intervals. Then, S308 can be executed.

[0094] It should be noted that S302 to S304 and S305 to S307 are parallel schemes, and there is no obvious order of execution. The execution order can be determined according to the actual situation. This embodiment does not make specific limitations on this.

[0095] S308. Obtain the water level segment identifier set for each water level segment interval in at least two water level segment intervals, and determine the water level segment relationship based on the water level segment identifiers of the at least two water level segment intervals and the corresponding water level segment intervals.

[0096] Specifically, the implementation process and technical principles of S308 and S130 are the same. Please refer to the specific description of S130 above, which will not be repeated here.

[0097] S309. Obtain the current water level value detected by the water level detector.

[0098] The current water level value is the water level value obtained by using a water level detector to measure the water level in the tank at the current moment.

[0099] S310. Based on the current water level value, query the water level segment relationship to obtain the current water level segment.

[0100] Specifically, after updating the water level segmentation relationship based on the actual water quality inside the water tank and the actual aging of the water level detector, the water level in the water tank can be detected based on the water level segmentation relationship. That is, the water level segmentation relationship can be queried based on the current water level value detected by the water level detector to obtain the water level segment corresponding to the current water level value, and the water level segment is determined as the current water level segment, thereby determining the water level height inside the water tank.

[0101] Optionally, the water heater may include multiple indicator lights to display the current water level segment. For example, the number of indicator lights may be the same as the number of water level segments, with one indicator light corresponding to one water level segment.

[0102] S311. Determine the target display mode for each of the multiple indicator lights based on the current water level segment.

[0103] The target display mode is the display mode of each indicator light determined according to the current water level segment. Optionally, the display mode of the indicator light can include constant on, flashing, and off.

[0104] Specifically, after obtaining the current water level segment, a preset water level display relationship can be queried based on the current water level segment to obtain the display mode corresponding to the current water level segment, that is, the target display mode of each of the multiple display lights. Among them, the preset water level display relationship is a pre-set correspondence used to store the correspondence between water level segments and display modes, and the display modes include the display mode of each of the multiple display lights.

[0105] S312. Control the corresponding indicator lights according to the target display mode.

[0106] For example, it is known that the water level segment identifier corresponding to water level segment 1 is water level 1, and water level 1 corresponds to indicator light 1; the water level segment identifier corresponding to water level segment 2 is water level 2, and water level 2 corresponds to indicator light 2; the water level segment identifier corresponding to water level segment 3 is water level 3, and water level 3 corresponds to indicator light 3, and the height of water level 1 < the height of water level 2 < the height of water level 3; when the current water level value is within the range of water level segment 1, the current water level segment is water level 1, the target display mode of indicator light 1 is always on, and the target display mode of indicator light 2 is... The display mode is off, and the target display mode for indicator light 3 is off; when the current water level value is within the range of water level segment 2, the current water level segment is water level 2, the target display mode for indicator light 1 is always on, the target display mode for indicator light 2 is always on, and the target display mode for indicator light 3 is off; when the current water level value is within the range of water level segment 3, the current water level segment is water level 3, the target display mode for indicator light 1 is always on, the target display mode for indicator light 2 is always on, and the target display mode for indicator light 3 is always on.

[0107] When the current water level is at the target end point of a water level segment interval (i.e., when the current water level is at the lowest point of the water level segment interval), the target display mode of the indicator light corresponding to that water level segment interval is flashing. For example, when the current water level is at the target end point of water level segment interval 3 (i.e., the current water level segment is about to change from level 3 to level 2), the target display mode of indicator light 3 is flashing; when the current water level is at the target end point of water level segment interval 2 (i.e., the current water level segment is about to change from level 2 to level 1), the target display mode of indicator light 2 is flashing; when the current water level is at the target end point of water level segment interval 1 (i.e., the current water level segment is about to change from level 1 to no water), the target display mode of indicator light 1 is flashing.

[0108] Optionally, if the water level is consistently below the set full water threshold within a first set time period, and the change in water level is less than a preset offset threshold, the water tank is considered full. At this point, a stop water supply command can be generated, and the water heater can be controlled to stop supplying water based on the command. Simultaneously, a full water alarm sound can be generated to alert the user that the tank is full, preventing overflow due to excessive water level. The set full water threshold is greater than the preset water level value.

[0109] Optionally, if the water level value is greater than the set waterless threshold within the third set time period, it can be determined that the water tank is empty. At this time, a water filling command can be generated, and the water heater can be controlled to fill water according to the water filling command; or, when it is determined that the water tank is empty, a water filling prompt message (such as a waterless prompt sound) can be generated to prompt the user to manually fill water in time, which can prevent the water heater from burning dry.

[0110] It should be noted that the first, second, and third time settings can be equal or unequal.

[0111] The technical solution of this application embodiment can detect the real-time water level value of the water tank using a water level detector during the water filling process of the water heater, and obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value. Then, for the current conductive stage, the current end point of the current water level segment interval is determined according to the start and end water level values ​​corresponding to the current conductive stage, and the current start point of the current water level segment interval is determined according to the start and end water level values ​​corresponding to the next conductive stage. Finally, the current water level segment interval is determined according to the current start point and the current end point of the current water level segment interval; or, for the current conductive stage, the water level can be determined according to the end water level value corresponding to the previous conductive stage and the current water level segment interval. The starting water level value corresponding to the previous conductive stage determines the current end point of the current water level segment interval. The starting water level value corresponding to the end of the current conductive stage and the starting water level value corresponding to the next conductive stage determine the current starting point of the current water level segment interval. Then, the current water level segment interval is determined based on the current starting and ending water levels of each conductive stage. Through these two different methods, the water level segment interval is updated in real time based on the starting and ending water levels of each conductive stage. This ensures that the water level segment interval matches the actual water quality inside the tank and the actual aging of the water level detector, providing data support for subsequently determining the water level segment relationship. This improves the accuracy of water level detection and enhances the user experience.

[0112] After obtaining the water level segmentation relationship, the current water level value detected by the water level detector can be obtained. Based on the current water level value, the water level segmentation relationship can be queried to obtain the current water level segment, thus realizing the water level detection function. The determination of the current water level segment based on the real-time updated water level segmentation relationship avoids the detection error caused by using a fixed water level segmentation relationship, thereby improving the accuracy of determining the current water level segment. Then, the target display mode of each of the multiple indicator lights can be determined according to the current water level segment, and the corresponding indicator light can be controlled according to the target display mode. By corresponding the water level segment with the display mode of the indicator light, the current water level height can be displayed intuitively. Users only need to observe the on / off state of the indicator light to quickly understand the water level in the tank without having to look at complex numbers or charts, reducing the difficulty of use for users and thus improving the convenience of use.

[0113] Figure 4 This is a schematic diagram of a water level detection device provided in an embodiment of this application, referring to... Figure 4 The water level detection device may include:

[0114] The value acquisition module 410 is used to detect the real-time water level value of the water tank using a water level detector during the water filling process of the water heater, and to obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value.

[0115] The interval determination module 420 is used to determine at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage.

[0116] The relationship determination module 430 is used to obtain the water level segment identifier set for each water level segment interval in at least two water level segment intervals, and determine the water level segment relationship based on the at least two water level segment intervals and the water level segment identifier of the corresponding water level segment interval;

[0117] The water level segment determination module 440 is used to determine the current water level segment of the water tank based on the water level segment relationship.

[0118] In one embodiment, the interval determination module 420 is specifically used for:

[0119] For the current conductive stage in each conductive stage, the current endpoint of the current water level segment interval is determined based on the start and end water level values ​​corresponding to the current conductive stage.

[0120] The current starting point of the current water level segment interval is determined based on the starting and ending water level values ​​corresponding to the next conductive stage of the current conductive stage.

[0121] The current water level segment interval is determined based on the current starting point and the current ending point of the current water level segment interval.

[0122] In one embodiment, the starting and ending water level values ​​include a starting water level value and an ending water level value, and the interval determination module 420 is specifically used for:

[0123] For the current conductive stage in each conductive stage, the current endpoint of the current water level segment interval is determined based on the termination water level value corresponding to the previous conductive stage and the starting water level value corresponding to the current conductive stage.

[0124] The current starting point of the current water level segment interval is determined based on the termination water level value corresponding to the current conduction stage and the starting water level value corresponding to the next conduction stage.

[0125] The current water level segment interval is determined based on the current starting point and the current ending point of the current water level segment interval.

[0126] In one embodiment, the interval determination module 420 determines the current water level segment interval based on the current starting point and the current ending point of the current water level segment interval, including:

[0127] Obtain the historical start and end points of the current water level segment interval;

[0128] Calculate the change between the current starting point and the historical starting point to obtain the starting point offset, and calculate the change between the current ending point and the historical ending point to obtain the ending point offset;

[0129] The target starting point of the current water level segment interval is determined based on the current starting point, the historical starting point, and the starting point offset; and the target ending point of the current water level segment interval is determined based on the current ending point, the historical ending point, and the ending point offset.

[0130] The historical starting point is the initial starting point of the current water level segment or the previous target starting point of the current water level segment, and the historical ending point is the initial ending point of the current water level segment or the previous target ending point of the current water level segment.

[0131] In one embodiment, the interval determination module 420 determines the target starting point of the current water level segment interval based on the current starting point, the historical starting point, and the starting point offset, including:

[0132] When the starting point offset is greater than the preset offset threshold, the target starting point is determined as the current starting point;

[0133] When the starting point offset is not greater than the preset offset threshold, the target starting point is determined as the historical starting point;

[0134] The interval determination module 420 determines the target endpoint of the current water level segment interval based on the current endpoint, historical endpoint, and endpoint offset, including:

[0135] When the endpoint offset is greater than the preset offset threshold, the target endpoint is determined as the current endpoint;

[0136] When the endpoint offset is not greater than the preset offset threshold, the target endpoint is determined as the historical endpoint.

[0137] In one embodiment, the water level segmentation determination module 440 is specifically used for:

[0138] Obtain the current water level value detected by the water level detector;

[0139] Based on the current water level value, the water level segment relationship is queried to obtain the current water level segment.

[0140] In one embodiment, the water heater includes multiple indicator lights, and the water level detection device further includes a display module, which is specifically used for:

[0141] Determine the target display mode for each of the multiple indicator lights based on the current water level segmentation;

[0142] Control the corresponding indicator lights according to the target display mode.

[0143] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above 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. The specific working process of the functional modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0144] The water level detection device provided in this embodiment can be applied to the water level detection method provided in any of the above embodiments, and has the corresponding functions and beneficial effects.

[0145] Figure 5 This is a schematic diagram of a water heater provided in an embodiment of this application. Figure 5 A block diagram is shown of an exemplary water heater 11 suitable for implementing embodiments of this application. Figure 5 The water heater 11 shown is merely an example and should not impose any limitations on the functionality and scope of use of this embodiment.

[0146] like Figure 5 As shown, the water heater 11 is presented in the form of a general-purpose computing electronic device. The components of the water heater 11 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0147] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0148] Water heater 11 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by water heater 11, including volatile and non-volatile media, removable and non-removable media.

[0149] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Water heater 11 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 As not shown, disk drives for reading and writing to removable non-volatile disks (e.g., "floppy disks") and optical disc drives for reading and writing to removable non-volatile optical discs (e.g., CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0150] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this application.

[0151] The water heater 11 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the water heater 11, and / or with any device that enables the water heater 11 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via the input / output (I / O) interface 22. Furthermore, the water heater 11 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via the network adapter 20.

[0152] like Figure 5 As shown, network adapter 20 communicates with other modules of water heater 11 via bus 18. It should be understood that, although... Figure 5 As not shown, other hardware and / or software modules can be used in conjunction with the water heater 11, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0153] The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, such as implementing a water level detection method provided in any embodiment of this application.

[0154] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a water level detection method, such as that provided in any embodiment of this application.

[0155] The computer storage medium of this embodiment can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0156] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0157] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0158] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0159] Those skilled in the art will understand that the modules or steps described above in this application can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0160] Furthermore, the acquisition, storage, use, and processing of data in this application's technical solution all comply with relevant national laws and regulations.

[0161] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the inventive concept of this application, and the scope of this application is determined by the scope of the appended claims.

Claims

1. A water level detection method, characterized in that, Applied to a water heater, the water heater including a water tank, the water tank containing a water level detector, the method includes: During the process of filling the water heater with water, the water level detector is used to detect the real-time water level value of the water tank, and the start and end water level values ​​corresponding to each conductive stage are obtained from the real-time water level value. At least two water level segment intervals are determined based on the start and end water level values ​​corresponding to each conductive stage. Obtain the water level segmentation identifier set for each water level segmentation interval in the at least two water level segmentation intervals, and determine the water level segmentation relationship based on the at least two water level segmentation intervals and the water level segmentation identifier of the corresponding water level segmentation interval; The current water level segment of the water tank is determined based on the water level segmentation relationship.

2. The water level detection method according to claim 1, characterized in that, The determination of at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage includes: For the current conductive stage in each conductive stage, the current endpoint of the current water level segment interval is determined based on the start and end water level values ​​corresponding to the current conductive stage. The current starting point of the current water level segment interval is determined based on the starting and ending water level values ​​corresponding to the next conductive stage of the current conductive stage. The current water level segment interval is determined based on the current starting point and the current ending point of the current water level segment interval.

3. The water level detection method according to claim 1, characterized in that, The starting and ending water level values ​​include a starting water level value and an ending water level value. Determining at least two water level segment intervals based on the starting and ending water level values ​​corresponding to each conductive stage includes: For the current conductive stage in each conductive stage, the current endpoint of the current water level segment interval is determined based on the termination water level value corresponding to the previous conductive stage and the starting water level value corresponding to the current conductive stage. The current starting point of the current water level segment interval is determined based on the termination water level value corresponding to the current conduction stage and the starting water level value corresponding to the next conduction stage of the current conduction stage. The current water level segment interval is determined based on the current starting point and the current ending point of the current water level segment interval.

4. The water level detection method according to claim 2 or 3, characterized in that, Determining the current water level segment interval based on the current starting point and the current ending point of the current water level segment interval includes: Obtain the historical start and end points of the current water level segment interval; Calculate the change between the current starting point and the historical starting point to obtain the starting point offset, and calculate the change between the current ending point and the historical ending point to obtain the ending point offset; The target starting point of the current water level segment interval is determined based on the current starting point, the historical starting point, and the starting point offset; and the target ending point of the current water level segment interval is determined based on the current ending point, the historical ending point, and the ending point offset. Wherein, the historical starting point is the initial starting point of the current water level segment interval or the previous target starting point of the current water level segment interval, and the historical ending point is the initial ending point of the current water level segment interval or the previous target ending point of the current water level segment interval.

5. The water level detection method according to claim 4, characterized in that, Determining the target starting point of the current water level segment interval based on the current starting point, the historical starting point, and the starting point offset includes: When the starting point offset is greater than a preset offset threshold, the target starting point is determined as the current starting point; When the starting point offset is not greater than a preset offset threshold, the target starting point is determined as the historical starting point; Determining the target endpoint of the current water level segment interval based on the current endpoint, the historical endpoint, and the endpoint offset includes: When the endpoint offset is greater than a preset offset threshold, the target endpoint is determined as the current endpoint; When the endpoint offset is not greater than a preset offset threshold, the target endpoint is determined as the historical endpoint.

6. The water level detection method according to claim 1, characterized in that, Determining the current water level segment of the water tank based on the water level segmentation relationship includes: Obtain the current water level value detected by the water level detector; Based on the current water level value, the water level segmentation relationship is queried to obtain the current water level segment.

7. The water level detection method according to claim 1, characterized in that, The water heater includes multiple indicator lights, and the method further includes: The target display mode for each of the plurality of display lights is determined based on the current water level segmentation. Control the corresponding indicator lights according to the target display mode.

8. A water level detection device, characterized in that, Applied to a water heater, the water heater includes a water tank, and a water level detector is placed inside the water tank. The device includes: The value acquisition module is used to detect the real-time water level value of the water tank using the water level detector during the water filling process of the water heater, and to obtain the start and end water level values ​​corresponding to each conductive stage from the real-time water level value. The interval determination module is used to determine at least two water level segment intervals based on the start and end water level values ​​corresponding to each conductive stage. The relationship determination module is used to obtain the water level segmentation identifier set for each water level segmentation interval in the at least two water level segmentation intervals, and determine the water level segmentation relationship based on the at least two water level segmentation intervals and the water level segmentation identifier of the corresponding water level segmentation interval; The water level segment determination module is used to determine the current water level segment of the water tank based on the water level segmentation relationship.

9. A water heater, characterized in that, The water heater includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the water level detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the water level detection method as described in any one of claims 1 to 7.