CN-121977293-A - Water level detection method and device, water heater and storage medium
Abstract
The embodiment of the application discloses a water level detection method, a water level detection device, a water heater and a storage medium, and relates to the technical field of water heaters. The method comprises the steps of detecting a real-time water level value of a water tank by a water level detector in the water feeding process of the water heater, obtaining start-stop water level values corresponding to all conducting stages from the real-time water level values, determining at least two water level segmentation sections according to the start-stop water level values corresponding to all conducting stages, obtaining water level segmentation identifications set for each water level segmentation section in the at least two water level segmentation sections, determining water level segmentation relations according to the at least two water level segmentation sections and the water level segmentation identifications of the corresponding water level segmentation sections, and determining current water level segmentation of the water tank according to the water level segmentation relations. According to the technical scheme provided by the embodiment of the application, the preset two fixed ranges of high sensitivity and low sensitivity are not relied on, the water level segmentation interval of the water tank is accurately adjusted according to the actual water quality condition, and the accuracy of water level detection is further improved.
Inventors
- YU JIAMING
- LI XUE
- TANG YIQIAN
- Wang Siken
- CHEN XIAOLEI
Assignees
- 青岛经济技术开发区海尔热水器有限公司
- 海尔智家股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20241030
Claims (10)
- 1. A water level detection method, characterized in that it is applied to a water heater including a water tank inside which a water level detector is placed, the method comprising: in the water supply process of the water heater, detecting a real-time water level value of the water tank by using the water level detector, and acquiring a start-stop water level value corresponding to each conducting stage from the real-time water level value; determining at least two water level segmentation intervals according to the start-stop water level values corresponding to the conductive phases; acquiring water level segment identifiers set for each of the at least two water level segment intervals, and determining a water level segment relationship according to the water level segment identifiers of the at least two water level segment intervals and the corresponding water level segment interval; And determining the current water level section of the water tank according to the water level section relation.
- 2. The water level detection method according to claim 1, wherein the determining at least two water level segment sections according to the start-stop water level values corresponding to the respective conductive phases includes: Aiming at the current conducting stage in the conducting stages, determining the current end point of the current water level segmentation interval according to the start-stop water level value corresponding to the current conducting stage; determining the current starting point of the current water level segmentation interval according to the start-stop water level value corresponding to the next conducting stage of the current conducting stage; And determining the current water level segment interval according to the current starting point of the current water level segment interval and the current ending point of the current water level segment interval.
- 3. The water level detection method according to claim 1, wherein the start-stop water level value includes a start water level value and an end water level value, and the determining at least two water level segment intervals according to the start-stop water level values corresponding to the respective conductive phases includes: aiming at the current conducting stage in the conducting stages, determining the current end point of the current water level segmentation interval according to the end water level value corresponding to the last conducting stage of the current conducting stage and the initial water level value corresponding to the current conducting stage; Determining a current starting point of the current water level segmentation interval according to the termination water level value corresponding to the current conduction stage and the initial water level value corresponding to the next conduction stage of the current conduction stage; And determining the current water level segment interval according to the current starting point of the current water level segment interval and the current ending point of the current water level segment interval.
- 4. A water level detection method according to claim 2 or 3, wherein said determining the current water level segment section from the current start point of the current water level segment section and the current end point of the current water level segment section comprises: Acquiring a history starting point and a history end point of the current water level subsection interval; Calculating the variation between the current starting point and the historical starting point to obtain a starting point offset, and calculating the variation between the current end point and the historical end point to obtain an end point offset; determining a target starting point of the current water level segment interval according to the current starting point, the historical starting point and the starting point offset, and determining a target end point of the current water level segment interval according to the current end point, the historical end point and the end point offset; The historical starting point is an initial starting point of the current water level segmented section or a last target starting point of the current water level segmented section, and the historical ending point is an initial ending point of the current water level segmented section or a last target ending point of the current water level segmented section.
- 5. The water level detecting method according to claim 4, wherein, The determining the target starting point of the current water level segment interval according to the current starting point, the historical starting point and the starting point offset comprises the following steps: When the starting point offset is larger than a preset offset threshold, determining the target starting point as the current starting point; When the starting point offset is not greater than a preset offset threshold, determining the target starting point as the history starting point; the determining the target endpoint of the current water level segment interval according to the current endpoint, the historical endpoint and the endpoint offset comprises the following steps: when the end point offset is greater than a preset offset threshold, determining the target end point as the current end point; And when the end point offset is not greater than a preset offset threshold, determining the target end point as the historical end point.
- 6. The water level detection method as claimed in claim 1, wherein the determining the current water level segment of the water tank according to the water level segment relationship comprises: Acquiring a current water level value detected by the water level detector; inquiring the water level segmentation relation based on the current water level value to obtain the current water level segmentation.
- 7. The water level detection method of claim 1, wherein the water heater includes a plurality of display lights, the method further comprising: Determining a target display mode of each display lamp in the plurality of display lamps according to the current water level segment; and controlling the corresponding display lamp according to the target display mode.
- 8. A water level detection device, characterized in that it is applied to a water heater, said water heater includes a water tank, a water level detector is placed inside said water tank, said device includes: The numerical value acquisition module is used for detecting the real-time water level numerical value of the water tank by using the water level detector in the water supply process of the water heater and acquiring the start-stop water level numerical value corresponding to each conductive stage from the real-time water level numerical value; the interval determining module is used for determining at least two water level segmentation intervals according to the start-stop water level values corresponding to the conductive phases; The relation determining module is used for acquiring water level segment identifiers arranged for each of the at least two water level segment intervals and determining a water level segment relation according to the at least two water level segment intervals and the water level segment identifiers of the corresponding water level segment intervals; and the water level segmentation determining module is used for determining the current water level segmentation of the water tank according to the water level segmentation relation.
- 9. A water heater, the water heater comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the water level detection method of any one of claims 1 to 7.
- 10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the water level detection method according to any one of claims 1 to 7.
Description
Water level detection method and device, water heater and storage medium Technical Field The embodiment of the application relates to the technical field of water heaters, in particular to a water level detection method and device, a water heater and a storage medium. Background At present, a water level detector is usually placed in a water tank of a water heater, then the water level in the water tank is detected by the water level detector, namely, a resistor in the water level detector can form a conductive loop with contacted water, when the water reaches different positions of the water level detector, the water level detector can generate different voltage signals and convert the voltage signals into corresponding values, so that the purpose of detecting the water level is achieved. Since the conductivity of water is related to water quality (i.e., when the soluble solids (Total Dissolved Solids, TDS) in water are low), and the method for detecting the water level by using the water level detector mainly depends on the conductivity of water, the sensitivity detection mode of the water level detector, i.e., the high sensitivity detection mode and the low sensitivity detection mode, can be manually set according to the water quality conditions of different areas, so as to match the water quality conditions of different areas, and improve the water level detection accuracy of the water level detector. However, the above-mentioned manner 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), and cannot be accurately matched with the actual water quality condition, which results in low accuracy of water level detection. Disclosure of Invention The embodiment of the application provides a water level detection method, a water level detection device, a water heater and a storage medium, which realize a water level detection function and solve the problem that in the prior art, the accuracy of water level detection is low because the actual water quality condition cannot be matched accurately. In a first aspect, an embodiment of the present application provides a water level detection method, which is applied to a water heater, the water heater includes a water tank, and a water level detector is disposed in the water tank, and the method includes: in the water supply process of the water heater, detecting a real-time water level value of the water tank by using a water level detector, and acquiring a start-stop water level value corresponding to each conductive stage from the real-time water level value; determining at least two water level segmentation intervals according to the start-stop water level values corresponding to the conductive phases; acquiring water level segment identifiers set for each of at least two water level segment intervals, and determining a water level segment relationship according to the water level segment identifiers of the at least two water level segment intervals and the corresponding water level segment interval; And determining the current water level section of the water tank according to the water level section relation. In the embodiment of the application, the water level detector can be used for detecting the real-time water level value of the water tank in the water supply process of the water heater, acquiring the start-stop water level value corresponding to each conductive stage from the real-time water level value, determining at least two water level segment sections according to the start-stop water level value corresponding to each conductive stage, acquiring the water level segment identification set for each water level segment section in the at least two water level segment sections, determining the water level segment relation according to the at least two water level segment sections and the water level segment identification of the corresponding water level segment section, and determining the current water level segment of the water tank according to the water level segment relation, thereby realizing the water level detection function. According to the technical scheme, the real-time water level value of the water tank is detected, the start-stop water level value corresponding to each conductive stage is obtained, then the water level segmentation section is determined according to the start-stop water level value corresponding to each conductive stage, the water quality conditions of different areas can be dynamically adapted, two preset fixed ranges with high sensitivity and low sensitivity are not relied on, the water level segmentation section of the water tank is accurately adjusted according to the actual water quality conditions, the self-learning corresponding water level segmentation section based on the actual water quality conditions is realized, the accuracy of water level detection is further improved, the proble