CN118258863A - Method for detecting water supply of instant heating device, instant heating device and storage medium - Google Patents

Method for detecting water supply of instant heating device, instant heating device and storage medium Download PDF

Info

Publication number
CN118258863A
CN118258863A CN202410349211.XA CN202410349211A CN118258863A CN 118258863 A CN118258863 A CN 118258863A CN 202410349211 A CN202410349211 A CN 202410349211A CN 118258863 A CN118258863 A CN 118258863A
Authority
CN
China
Prior art keywords
water
water supply
heating device
instant heating
supply pipe
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410349211.XA
Other languages
Chinese (zh)
Inventor
张三杰
刘磊
罗景开
徐彬杰
邱建新
付亿志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd
Original Assignee
Midea Group Co Ltd
Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd
Filing date
Publication date
Application filed by Midea Group Co Ltd, Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd filed Critical Midea Group Co Ltd
Publication of CN118258863A publication Critical patent/CN118258863A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a water supply detection method of an instant heating device, the instant heating device and a storage medium, wherein a detection sensor is arranged in the instant heating device and is used for detecting whether water exists in a water supply pipe passing through the detection sensor; the water supply detection method of the instant heating device comprises the following steps: receiving and recording the electric signals acquired by the detection sensor; calculating to obtain the water occupancy rate of the preset duration according to all the electric signals acquired by the detection sensor within the preset duration; and determining whether water exists in the water supply pipe of the instant heating device according to the water-existence ratio of the preset time period. The invention realizes the accurate identification of the water flow state in the water supply pipe and improves the reliability of the instant heating device.

Description

Method for detecting water supply of instant heating device, instant heating device and storage medium
Technical Field
The present invention relates to the field of electrical appliance control technologies, and in particular, to a water supply detection method for an instant heating device, and a computer readable storage medium.
Background
Today, the application of instant heating devices (such as water dispensers) with instant heating functions is becoming more and more widespread. For example, when the water quantity of the water supply barrel is too small in the actual use process of the water dispenser, the water inlet of the water suction pipe may be partially exposed to the air, and the air is sucked in. In such an abnormal situation, the inside of the water pipe is in a state where water flow and air are alternately distributed. Compared with the normal condition, the water quantity in the water pumping pipe is reduced, but the heating power provided by the heating pipe of the water dispenser is still unchanged, so that the water temperature is abnormally high. Under the condition that the set water temperature of the water dispenser is close to 100 ℃, water flow can enter a boiling state after passing through the heating pipe, and the water output to a user is in abnormal states such as gasification, expansion, injection and the like, so that danger is brought to the user. Moreover, when the water flow is small, the heating pipe can be locally dry-burned, and the safety and reliability of the water dispenser are poor.
Disclosure of Invention
The invention mainly aims to provide a water supply detection method of an instant heating device, the instant heating device and a computer readable storage medium, and aims to solve the technical problem that the reliability of the instant heating device in the prior art is poor.
In order to achieve the above object, the present invention provides a water supply detection method of an instant heating device, in which a detection sensor is provided in the instant heating device, the detection sensor is used to detect whether there is water in a water supply pipe passing through the detection sensor; the water supply detection method of the instant heating device comprises the following steps:
receiving and recording the electric signals acquired by the detection sensor;
Calculating to obtain the water occupancy rate of the preset duration according to all the electric signals acquired by the detection sensor within the preset duration;
And determining whether water exists in the water supply pipe of the instant heating device according to the water-existence ratio of the preset time period.
Optionally, the preset duration includes at least two durations; the step of determining whether the water supply pipe of the instant heating device has water according to the water occupancy ratio of the preset duration comprises the following steps:
Judging the water occupancy ratio of the preset time period one by one according to the sequence from the small time period to the large time period, and determining whether the water supply pipe of the instant heating device has water or not;
If the water supply pipe of the instant heating device cannot be determined whether water exists according to the water occupancy rate of the current preset time length, judging the preset time length in the next sequence as the current preset time length.
Optionally, the preset time period includes a first gear time period, a second gear time period, and a third gear time period, where the first gear time period is less than the second gear time period, and the second gear time period is less than the third gear time period.
Optionally, when the preset duration is the first gear duration, the step of determining whether the water supply pipe of the instant heating device has water by judging the water occupancy ratio of the preset duration includes:
When the water occupancy rate of the current preset time period is smaller than or equal to the first judgment value, determining that no water exists in a water supply pipe of the instant heating device;
when the water occupancy ratio of the current preset duration is greater than or equal to a second judgment value, determining that water exists in a water supply pipe of the instant heating device; the first judgment value is smaller than the second judgment value;
When the current water occupancy ratio of the preset duration is larger than the first judgment value and smaller than the second judgment value, whether the water supply pipe of the instant heating device has water or not cannot be determined.
Optionally, when the preset duration is the second gear duration, the step of determining whether the water supply pipe of the instant heating device has water by judging the water occupancy ratio of the preset duration includes:
When the water occupancy rate of the current preset time period is smaller than or equal to the third judgment value, determining that no water exists in the water supply pipe of the instant heating device;
When the water occupancy ratio of the current preset duration is larger than or equal to a fourth judgment value, determining that water exists in the water supply pipe of the instant heating device; the third judgment value is smaller than the fourth judgment value;
When the current water occupancy rate of the preset duration is larger than the third judgment value and smaller than the fourth judgment value, whether the water supply pipe of the instant heating device has water cannot be determined.
Optionally, when the preset duration is the third gear duration, the step of determining whether the water supply pipe of the instant heating device has water by judging the water occupancy ratio of the preset duration includes:
when the water occupancy ratio of the current preset duration is larger than a fifth judgment value, determining that water exists in the water supply pipe of the instant heating device;
and when the water occupancy rate of the current preset time period is smaller than or equal to a fifth judgment value, determining that no water exists in the water supply pipe of the instant heating device.
Optionally, the step of calculating the water occupancy rate of the preset duration according to all the electrical signals collected by the detection sensor within the preset duration includes:
Acquiring all electric signals acquired by the detection sensor within a preset time period; the signal acquisition period of the detection sensor is smaller than the preset time length;
Counting all the acquired electric signals to obtain the number of the electric signals representing water;
And calculating to obtain the water occupancy rate of the preset duration according to the number of the electric signals representing the water and the number of all the electric signals in the preset duration.
Optionally, the step of acquiring all the electrical signals acquired by the detection sensor within the preset time period includes:
and acquiring all electric signals acquired by the detection sensor within a preset time before the current moment.
The invention also provides an instant heating device which comprises an instant heating module, wherein the instant heating module comprises a water supply pipe and a water outlet pipe, and a detection sensor is arranged in the instant heating device and is used for detecting whether water exists in the water supply pipe passing through the detection sensor; the instant heating device further comprises a water supply detection module, and the water supply detection module is communicated with the detection sensor;
The water supply detection module comprises a memory, a processor and a water supply detection program of the instant heating device which is stored in the memory and can run on the processor, wherein the control program realizes the steps of the water supply detection method of the instant heating device when being executed by the processor.
The present invention also provides a computer-readable storage medium storing a water supply detection program executable on a processor, the water supply detection program being for the processor to call to implement the steps of the water supply detection method as described above.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the water supply detection method of a thermal device as described above.
The invention provides a water supply detection method of an instant heating device, which comprises the steps of firstly receiving and recording electric signals acquired by a detection sensor, then calculating to obtain a water occupancy rate of a preset duration according to all the electric signals acquired by the detection sensor within the preset duration, and finally determining whether a water supply pipe of the instant heating device has water according to the water occupancy rate of the preset duration.
According to the technical scheme, the electric signal is collected through the detection sensor arranged on the water supply pipe of the instant heating device, so that the water flow condition on the water supply pipe is represented through the electric signal, the water occupancy rate in the preset time is calculated according to the electric signal in the preset time, wherein the larger the water occupancy rate is, the more sufficient the water supply quantity is, the smaller the water occupancy rate is, the smaller the water supply quantity is, the larger the air occupancy rate in the corresponding water supply pipe is, finally, whether the water supply pipe of the instant heating device has water or not can be determined, the timely execution of protective measures in the water shortage state is facilitated, the occurrence of the conditions of dry heating of the heating pipe, the overhigh water temperature and the like is avoided, the safety and the reliability of the instant heating device are improved, and the use experience of a user is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a water supply detection method of an instant heating device according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an embodiment of an instant heating device according to the present invention;
FIG. 3 is a schematic flow chart of a water supply detection method of a heating device according to another embodiment of the present invention;
FIG. 4 is a flow chart of a water supply detection method of a heating device according to another embodiment of the invention;
fig. 5 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order to make the above objects, features and advantages of the present invention more comprehensible, the following description of the embodiments accompanied with the accompanying drawings will be given in detail. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In practical use of the instant heating device (e.g., instant heating type water dispenser), when the residual water in the water supply barrel is at the bottom, the water inlet of the water suction pipe may have a part of area covered by water, and another part of area is exposed in the air. The ratio of water to gas may be different values at different water supply tank levels. For example, when the water outlet temperature is set to 95 ℃ by a user, the temperature of the water is raised to 95 ℃ after passing through the heating pipe and the water is output to a cup of the user, but when the water quantity of the water barrel is insufficient, the water pump pumps in water and air at the same time, the water volume entering the heating pipe is drastically reduced, and the heating power of the heating pipe still keeps the original value, so that the water outlet temperature is instantaneously increased. The temperature of the water discharged is originally near 95 ℃, once the temperature is increased and is easy to boil, the water output to a user is vaporized and expanded, the water discharged is in a spray shape and can splash on the user to cause scalding, and on the other hand, the water in the heat pipe is suddenly reduced, local dry burning can occur, and the safety of the user and the reliability of the instant heating device are both unfavorable.
In order to overcome the defects, the technical scheme of the embodiment of the invention provides a water supply detection method of an instant heating device, which can accurately detect the water supply condition of the instant heating device.
Based on this, the present invention proposes a water supply detection method of an instant heating device according to a first embodiment, referring to fig. 1, the water supply detection method of the instant heating device includes:
Step S10, receiving and recording the electric signals acquired by the detection sensor;
The water supply detection method of the instant heating device is applied to a water supply detection module of the instant heating device, and the water supply detection module is in communication connection with the detection sensor and can be used for analyzing and processing according to the electric signals transmitted by the detection sensor so as to determine the current water supply state (water or no water) of the instant heating device.
The detection sensor is a capacitive water flow sensor, and the capacitive water flow sensor is arranged on a water supply pipe of the instant heating device and is used for detecting the water flow state in the pipe. Specifically, when water flows through the capacitive water flow sensor, the change of the dielectric constant of the water causes the capacitance to become large, the built-in micro-processing chip can judge the water/water-free state according to the change rule of the capacitance, and output a low level/high level signal to represent the water/water-free state in real time. Wherein, output low level when the capacitor water flow sensor detects there is water flow, output high level when detecting there is air (no water).
In the technical scheme of the embodiment of the invention, the detection sensor monitors the water flow state in the water supply pipe in real time and outputs an electric signal to the water supply detection module according to time sequence, and the water supply detection module records and stores the received electric signal according to time sequence after receiving the electric signal for subsequent analysis.
Step S20, calculating to obtain the water occupancy rate of the preset duration according to all the electric signals acquired by the detection sensor within the preset duration;
In the technical scheme of the embodiment of the invention, the water supply condition of the instant heating device can be determined based on the water state time length proportion in a preset time length, and the water state in the preset time length can be represented by the electric signal received in the corresponding time length, wherein the electric signal is in a low level and indicates that the electric signal is in a water state, and the electric signal is in a high level and indicates that the electric signal is in a water-free state.
The electric signals comprise discrete level states collected by the detection sensor according to a preset collection frequency, for example, the detection sensor collects the electric signals once every 1ms, the collection result is high level or low level and is output to the power supply detection module in real time, and the power supply detection module obtains the water occupancy rate by calculating the ratio between the number of times of recording the low level in the recent preset time and the total number of the electric signals. The water-containing ratio is used for representing the water supply state in the preset duration, the maximum value is 1, the minimum value is 0, and the larger the water-containing ratio is, the more sufficient the water supply amount is, the smaller the water-containing ratio is, and the more deficient the water supply amount is.
And step S30, determining whether water exists in the water supply pipe of the instant heating device according to the water-existence ratio of the preset time period.
In the embodiment of the invention, in order to determine whether the water supply pipe of the instant heating device has water according to the water-in-water ratio, one or more groups of judgment values can be preset, for example, when the water-in-water ratio is greater than a certain judgment value, the water supply pipe can be determined to have water, and when the water-in-water ratio is less than a certain judgment value, the water supply pipe can be determined to have no water. The number and the value of the judgment values can be set according to the actual situation and the water supply detection precision requirement of the instant heating device, and the method is not limited.
It should be noted that "water" or "no water" in the water supply pipe according to the embodiment of the present invention does not mean that there is complete water or complete no water in the water supply pipe, but a description is made of a water supply state in the water supply pipe. For example, the state of water is that the water supply pipe of the instant heating device is in a normal water supply state, the risk of dry burning and scalding does not occur, and protective measures are not needed; the water supply pipe of the instant heating device is in an abnormal water supply state and can be understood to be in a water shortage state, and protection measures are needed to be taken in time, and can comprise: stopping heating, prompting the user to change water in time through a prompt tone or prompt, and the like.
The instant heating device may be an instant heating type water dispenser, the structure of the water dispenser is shown in fig. 2, and the instant heating type water dispenser at least comprises a water supply pipe, one end of the water supply pipe extends into a water supply barrel, the other end of the water supply pipe is connected with a water pump, the water pump supplies power to pump water from the water supply barrel, a detection sensor is further arranged at the water supply pipe and is used for detecting the water flow state in the water supply pipe and recording in an electric signal form, specifically, the detection sensor is sleeved on the outer wall of the water supply pipe, and when water flows through a water supply pipeline provided with the detection sensor, the detection sensor can detect the water flow condition in the water supply pipeline; the other end of the water pump is connected with a water outlet pipe, a heating pipe is arranged on the water outlet pipe, water flowing through the heating pipe can be heated by the instant heating module, and hot water is output to a user through a water outlet.
According to the technical scheme, the electric signal is collected through the detection sensor arranged on the water supply pipe of the instant heating device, so that the water flow condition on the water supply pipe is represented through the electric signal, the water occupancy rate in the preset time period is calculated according to the electric signal in the preset time period, wherein the larger the water occupancy rate is, the more sufficient the water supply amount is, the smaller the water occupancy rate is, the more deficient the water supply amount is, the larger the air occupancy rate in the corresponding water supply pipe is, finally, whether the water supply pipe of the instant heating device has water or not can be determined, the timely execution of protective measures in the water shortage state is facilitated, the occurrence of the conditions of dry heating of a heating pipe, overhigh water temperature and the like is avoided, the safety and reliability of the instant heating device are improved, and the use experience of a user is further improved.
In one possible implementation, the preset duration includes at least two durations; the step of determining whether the water supply pipe of the instant heating device has water according to the water-present ratio of the preset duration may include:
Step S31, judging the water occupancy ratio of the preset time period one by one according to the sequence from the small time period to the large time period, and determining whether the water supply pipe of the instant heating device has water or not;
and step S32, if the water supply pipe of the instant heating device cannot be determined whether water exists according to the water occupancy ratio of the current preset time length, judging the preset time length of the next sequence as the current preset time length.
In order to improve the recognition accuracy of whether water exists in the water supply pipe, a plurality of preset time periods can be set, and under the condition that the water-to-heat device cannot be determined whether water exists in the water-to-heat device or not according to the water-to-heat device corresponding to the preset time period, whether water exists in the water-to-heat device or not can be determined according to the water-to-heat device corresponding to the preset time period. It can be understood that when the water occupancy ratio corresponding to the short-term trend (corresponding to a shorter preset time period) is lower than a preset low value, the water shortage characteristic is clear, and the water supply pipe can be determined to be anhydrous; when the water occupancy ratio of the short-term trend is higher than a preset high value, the characteristic of the water is clear, and the water existence of the water supply pipe can be determined; however, when the water ratio of the short-term trend is lower than a high value and higher than a low value, it is not clear whether the water supply pipe has water. In this case, the water flow condition in the water supply pipe can be clarified by combining longer-term trends.
By the method, the water flow condition is dynamically monitored in real time, the short-term trend condition is combined for analysis, water is timely found to be anhydrous, the detection efficiency is improved, the long-term trend comprehensive judgment is combined, the misjudgment probability is reduced, and a more accurate detection effect is obtained.
In a possible embodiment, the preset duration may include a first gear duration, a second gear duration, and a third gear duration, where the first gear duration is less than the second gear duration, and the second gear duration is less than the third gear duration.
The preset time length can be set according to actual conditions, for example, the first gear time length is 0.5s, the second gear time length is 1s, the third gear time length is 2s, and when judging the water occupancy rate of each preset time length, whether the water supply pipe of the instant heating device has water or not can be determined according to the sequence of 0.5s, 1s and 2 s.
Further, in one possible implementation manner, referring to fig. 3, when the preset duration is the first gear duration, the step of determining whether the water supply pipe of the instant heating device has water may include:
step S311, when the current water occupancy ratio of the preset duration is smaller than or equal to the first judgment value, determining that no water exists in the water supply pipe of the instant heating device;
Step S312, when the water occupancy ratio of the current preset time period is greater than or equal to a second judgment value, determining that water exists in the water supply pipe of the instant heating device; the first judgment value is smaller than the second judgment value;
In step S313, when the current water ratio of the preset duration is greater than the first judgment value and less than the second judgment value, it cannot be determined whether the water supply pipe of the instant heating device has water.
In the embodiment of the present invention, when the first gear duration (i.e., the current preset duration) is 0.5s, the power supply detection module may calculate the water occupancy rate in the last 0.5s according to the sampling frequency preset by the detection sensor, for example, calculate the water occupancy rate in the current preset duration by using the number of low-level signals and the number of total electrical signals in the electrical signals output by the detection sensor in the last 0.5s, and determine whether the water supply pipe of the disposable heating device has water.
For example, when the collection frequency of the level signals is 1ms, the nearest 0.5S in-detection sensor outputs 500 level signals, and the water occupancy rate of 0.5S can be obtained by counting the number of low level signals in the 500 level signals and dividing the counted number of low level signals by 500, wherein the mathematical expression is as follows:
where P half is the water-present duty cycle of the last 0.5s and n half is the number of low-level signals within the last 0.5 s.
Specifically, the first judgment value for comparison with the water-present ratio may be set to a smaller value (e.g., 0.5), and the second judgment value may be set to a larger value (e.g., 0.9), so as to quickly determine whether the water supply pipe of the instant heating device has water through the latest water-present ratio of 0.5s, thereby improving the detection efficiency.
On the other hand, when the water-present ratio of 0.5s is between the first determination value and the second determination value, it cannot be determined whether the water-present pipe of the instant heating device has water, that is, by using the water-present ratio in a short-term trend that is not significantly larger or smaller, it cannot be directly determined whether the water-present pipe has water (whether the water-present amount is normal), so that it is necessary to further analyze the trend in a longer period, that is, determine the water-present ratio for a longer preset period, thereby reducing the probability of misjudgment and obtaining a more accurate detection effect.
For example, referring to fig. 4, the above-mentioned judging method may include: checking the value of P half according to the preset frequency, and determining that no water exists in the water supply pipe when P half≤A1 is performed; when P half≥A2 is the same, determining that water exists in the water supply pipe; when a 2<Phalf<A1 is detected (P half is not less than a 1 and not more than a 2), it is impossible to determine whether there is water, and further a determination is made by combining the water occupancy of the second gear duration, where a 1 is a first determination value and a 2 is a second determination value.
Further, in one possible implementation manner, when the preset duration is the second gear duration, the step of determining whether the water supply pipe of the instant heating device has water according to the water ratio of the preset duration may include:
step S321, when the current water occupancy ratio of the preset duration is smaller than or equal to the third judgment value, determining that no water exists in the water supply pipe of the instant heating device;
step S322, when the water occupancy ratio of the current preset time period is larger than or equal to a fourth judgment value, determining that water exists in the water supply pipe of the instant heating device; the third judgment value is smaller than the fourth judgment value;
In step S323, when the current water occupancy ratio of the preset duration is greater than the third judgment value and less than the fourth judgment value, it cannot be determined whether the water supply pipe of the instant heating device has water.
In the embodiment of the present invention, when the second gear duration (i.e., the current preset duration) is 1s, the power supply detection module may calculate the water occupancy rate in the last 1s according to the sampling frequency preset by the detection sensor, for example, calculate the water occupancy rate in the current preset duration by using the number of low-level signals and the number of total electrical signals in the electrical signals output by the detection sensor in the last 1s, and determine whether the water supply pipe of the once-heating device has water.
For example, when the collection frequency of the level signals is 1ms, the nearest 1s internal detection sensor outputs 1000 level signals, the water occupancy rate of the nearest 1s can be obtained by counting the number of low level signals in the 1000 level signals and dividing the counted number of low level signals by 1000, and the mathematical expression is as follows:
Wherein P 1s is the water-present duty ratio in the last 1s, and n 1s is the number of low-level signals in the last 1 s.
It should be noted that, the third judgment value may be set between the first judgment value and the second judgment value (for example, 0.75), and the fourth judgment value may be set to be equal to the second judgment value (for example, 0.9) or slightly larger or slightly smaller, according to the needs, without limitation.
Similarly, when the water-present ratio of the last 1s is between the third determination value and the fourth determination value, it cannot be determined whether the water supply pipe of the instant heating device is water, and further analysis is required in combination with a longer-term trend, that is, determination is performed with respect to the water-present ratio of the longer preset time period.
For example, referring to fig. 4, the above-mentioned judging method may include: checking the value of P 1s at a preset frequency when it is not possible to determine whether water is present according to P half; when P 1s≤B1 is the same, determining that no water exists in the water supply pipe; when P 1s≥B2 is the same, determining that water exists in the water supply pipe; when B 2<P1s<B1 (corresponding to P 1s being neither equal to or less than B 1 nor equal to or greater than B 2), it is impossible to determine whether there is water, and it is necessary to further determine by combining the water-present ratio of the third gear period, where B 1 is a third determination value and B 2 is a fourth determination value.
Further, in one possible implementation manner, when the preset duration is the third gear duration, referring to fig. 3, the step of determining whether the water supply pipe of the instant heating device has water may include:
step S331, when the water occupancy ratio of the current preset time period is larger than a fifth judgment value, determining that water exists in the water supply pipe of the instant heating device;
and step S332, when the water occupancy ratio of the current preset time period is smaller than or equal to a fifth judgment value, determining that no water exists in the water supply pipe of the instant heating device.
In the embodiment of the present invention, when the third gear duration (i.e., the current preset duration) is 2s, the power supply detection module may calculate the water occupancy rate in the last 2s according to the sampling frequency preset by the detection sensor, for example, calculate the water occupancy rate of the current preset duration by using the number of low-level signals and the number of total electrical signals in the electrical signals output by the detection sensor in the last 2s, and determine whether the water supply pipe of the once-heating device has water.
For example, when the collection frequency of the level signals is 2ms, the nearest 2s in-detection sensor outputs 2000 level signals, the water occupancy rate of the nearest 2s can be obtained by counting the number of low level signals in the 2000 level signals and dividing the counted number of low level signals by 2000, and the mathematical expression is as follows:
Where P 2s is the water-present duty cycle of the last 2s and n 2s is the number of low-level signals in the last 2 s.
It should be noted that, if preset durations (including a first gear duration, a second gear duration, and a third gear duration) of three gears are set altogether to detect whether there is water in the water supply pipe, only one judgment value corresponding to the third gear duration (i.e., a fifth judgment value) is set, and different detection results are corresponding when the water occupancy rate is greater than the judgment value and less than or equal to the judgment value, so as to obtain a final result of determining whether there is water in the water supply pipe according to the water occupancy rate of the third gear duration.
In another possible embodiment, the preset time length of more gears may be further taken, for example, more gear time lengths such as the last 5s, the last 10s, etc., and the detection method is similar to the foregoing method, so as to implement finer and more precise detection and judgment on the water flow state of the water supply pipe of the instant heating device.
For example, referring to fig. 4, the above-mentioned judging method may include: checking the value of P 2s according to a preset frequency when whether water exists or not can not be determined according to P 1s, and determining that water exists in the water supply pipe when P 2s>C1 exists; when P 2s≤C1 is the same, it is determined that there is no water in the water supply pipe, wherein C 1 is a fifth judgment value.
Note that P half、P1s、P2s and the like mentioned in the above embodiments actually represent the ratio of water flowing through the waterway of the water supply pipe, for example, when the ratio of the volume of water flowing through the waterway to the volume of air in the last 0.5s is 1:1, then P half =0.5, i.e. the semi-water state, and the water ratio is 50%. It will be appreciated that a short term trend (e.g., the last 0.5 s) is a clear water deficit feature when the ratio of water in the pipe is below a certain value (e.g., 0.5), and a clear water deficit feature above a certain value (e.g., 0.9); when the short-term trend cannot be determined as water shortage or water existence, further analyzing by combining with a longer-term trend, and if the short-term trend cannot be determined, analyzing by combining with a longer-term trend, the technical scheme of the embodiment of the invention comprehensively judges the current state of water flow through combining with analysis by gradually going to the longer-term trend. The scheme is used for dynamically monitoring the water flow condition in the water supply pipe in real time, comprehensively analyzing the long-term and short-term conditions, timely determining whether water exists or not, comprehensively judging based on long-term trend, reducing the probability of misjudgment and obtaining better detection effect.
In one possible implementation manner, the step of calculating the water ratio of the preset duration according to all the electrical signals collected by the detection sensor within the preset duration may include:
Step S21, acquiring all electric signals acquired by the detection sensor within a preset time period; the signal acquisition period of the detection sensor is smaller than the preset time length;
The preset duration may be preset duration set by a user at self, for example, 0.5s, 1s or 2s, and the signal acquisition period is the signal acquisition frequency, for example, the signal acquisition period is set to 1ms, and 500 electrical signals are acquired within 0.5 s.
Step S22, counting all the acquired electric signals to obtain the number of the electric signals representing water;
when the detection sensor is a capacitive water flow sensor, among all the acquired electrical signals, the electrical signal with the low level state is the number of electrical signals representing water.
Step S23, calculating to obtain the water occupancy rate of the preset duration according to the number of the electric signals representing the water and the number of all the electric signals in the preset duration.
And finally, calculating the ratio of the low-level electric signals to the number of all the electric signals, and obtaining the water-containing duty ratio of the preset duration. Illustratively, the water supply detection module rolls and collects 2000 level signals in the last 2s in real time, and the water occupancy rate of the last 2s can be obtained by dividing the number of low level signals in the 2000 level signals by 2000; dividing the number of low-level signals in the most recent 1000 level signals by 1000 to obtain the water-containing duty ratio of most recent 1 s; dividing the number of low level signals in the last 500 level signals by 500 gives the last 0.5s of water duty cycle.
In one possible implementation manner, the step of acquiring all the electrical signals acquired by the detection sensor within the preset time period may include:
step S11, acquiring all electric signals acquired by the detection sensor within a preset time before the current moment.
In the process of acquiring all the electric signals acquired by the detection sensor within a preset time period (for example, 0.5s, 1s and 2 s), taking the current moment as a time node, acquiring the electric signals acquired by the detection sensor and transmitted from the preset time period before acquisition, wherein each electric signal is transmitted to a water supply detection module after acquisition by the detection sensor, and the water supply detection module sequentially stores records according to the time node corresponding to each electric signal and acquires the records according to the preset time period when needed.
It should be noted that the above-mentioned embodiments are only for understanding the present invention, and do not limit the water supply detection method of the instant heating apparatus of the present invention, and more forms of simple changes based on this technical concept are all within the scope of the present invention.
The embodiment of the invention provides an instant heating device, which comprises an instant heating module, wherein the instant heating module comprises a water supply pipe and a water outlet pipe, and a detection sensor is arranged in the instant heating device and is used for detecting whether water exists in the water supply pipe passing through the detection sensor; the instant heating device further comprises a water supply detection module, and the water supply detection module is communicated with the detection sensor;
The detection sensor is arranged on the outer wall of one section of pipeline of the water supply pipe and is used for detecting the water flow condition passing through the water supply pipe so as to judge the water flow condition of the whole machine.
The water supply pipe is used for pumping water from the water supply barrel, the water outlet pipe is used for outputting water to a user, the water supply detection module and the detection sensor establish wired communication and are used for transmitting collected electric signals to the water supply detection module through the detection sensor. In addition, the instant heating module further comprises a heating pipe, and water flow of the water supply pipe flows through the heating pipe to heat and then outputs hot water through the water outlet pipe.
At least one processor of the water supply detection module; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the water supply detection method of the instant heating device in the first embodiment.
Referring now to fig. 5, a schematic diagram of a water supply detection module suitable for use in implementing embodiments of the present disclosure is shown. The structure of the water supply detection module shown in fig. 5 is only one example, and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the water supply detection module may include a processor 101, such as a CPU, a communication bus 102, a user interface 103, a network interface 104, and a memory 105. Wherein the communication bus 102 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 103 may also include a standard wired interface, a wireless interface. The network interface 104 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface). The memory 105 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 105 may alternatively be a storage device separate from the aforementioned processor 101.
It will be appreciated by those skilled in the art that the water supply detection module structure shown in fig. 5 is not limiting of the water supply detection module and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 5, an operating system, a network communication module, a user interface module, and a water supply detection program may be included in the memory 105 as one type of computer storage medium.
In the water supply detection module shown in fig. 5, the network interface 104 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 103 is mainly used for connecting a client and communicating data with the client; and the processor 101 may be used to call a water supply detection program stored in the memory 105 to perform the steps of the water supply detection method.
The instant heating device provided by the invention adopts the water supply detection method of the instant heating device in the embodiment, and can solve the technical problem of poor reliability of the instant heating device in the prior art. Compared with the prior art, the instant heating device provided by the embodiment of the invention has the same beneficial effects as the water supply detection method of the instant heating device provided by the embodiment, and other technical features in the instant heating device are the same as the features disclosed by the method of the previous embodiment, and are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
An embodiment of the present invention provides a computer-readable storage medium including computer-readable program instructions stored thereon for executing the water supply detection method of the instant heating device in the above embodiment.
The computer readable storage medium according to the embodiments of the present invention may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection comprising one or more wires, a portable computer diskette, a hard disk, a random access Memory (RAM: random Access Memory), a Read-Only Memory (ROM: read Only Memory), an erasable programmable Read-Only Memory (EPROM: erasable Programmable Read Only Memory or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wire, fiber optic cable, RF (Radio Frequency), and the like, or any suitable combination of the foregoing.
The above-mentioned computer-readable storage medium may be contained in the water supply detection module; or may be present alone without being assembled into the water supply detection module.
The computer-readable storage medium carries one or more programs that, when executed by the water supply detection module of the instant heating device, cause the water supply detection module to: receiving and recording the electric signals acquired by the detection sensor; calculating to obtain the water occupancy rate of the preset duration according to all the electric signals acquired by the detection sensor within the preset duration; and determining whether water exists in the water supply pipe of the instant heating device according to the water-existence ratio of the preset time period.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN: local Area Network) or a wide area network (WAN: wide Area Network), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The readable storage medium provided by the invention is a computer readable storage medium, and the computer readable storage medium stores computer readable program instructions for executing the water supply detection method of the instant heating device, so that the technical problem of poor reliability of the instant heating device in the prior art can be solved. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the embodiment of the invention are the same as those of the water supply detection method of the instant heating device provided by the above embodiment, and are not described herein.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the steps of the water supply detection method of the instant heating device.
The computer program product provided by the invention can solve the technical problem of poor reliability of the instant heating device in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as those of the water supply detection method of the instant heating device provided by the embodiment, and are not repeated here.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, within the scope of the invention.

Claims (10)

1. The water supply detection method of the instant heating device is characterized in that a detection sensor is arranged in the instant heating device and is used for detecting whether water exists in a water supply pipe passing through the detection sensor; the water supply detection method of the instant heating device comprises the following steps:
receiving and recording the electric signals acquired by the detection sensor;
Calculating to obtain the water occupancy rate of the preset duration according to all the electric signals acquired by the detection sensor within the preset duration;
And determining whether water exists in the water supply pipe of the instant heating device according to the water-existence ratio of the preset time period.
2. The water supply detection method of a thermal instant apparatus according to claim 1, wherein the preset time period includes at least two time periods; the step of determining whether the water supply pipe of the instant heating device has water according to the water occupancy ratio of the preset duration comprises the following steps:
Judging the water occupancy ratio of the preset time period one by one according to the sequence from the small time period to the large time period, and determining whether the water supply pipe of the instant heating device has water or not;
If the water supply pipe of the instant heating device cannot be determined whether water exists according to the water occupancy rate of the current preset time length, judging the preset time length in the next sequence as the current preset time length.
3. The method for detecting water supply to a thermal device according to claim 2, wherein the preset time period includes a first gear time period, a second gear time period, and a third gear time period, wherein the first gear time period is smaller than the second gear time period, and the second gear time period is smaller than the third gear time period.
4. A method of water supply detection for an instant heating device as set forth in claim 3 wherein said step of determining whether a water supply pipe of said instant heating device is water when said predetermined time period is a first gear time period comprises:
When the water occupancy rate of the current preset time period is smaller than or equal to the first judgment value, determining that no water exists in a water supply pipe of the instant heating device;
when the water occupancy ratio of the current preset duration is greater than or equal to a second judgment value, determining that water exists in a water supply pipe of the instant heating device; the first judgment value is smaller than the second judgment value;
When the current water occupancy ratio of the preset duration is larger than the first judgment value and smaller than the second judgment value, whether the water supply pipe of the instant heating device has water or not cannot be determined.
5. A method of water supply detection for an instant heating device as set forth in claim 3 wherein said step of determining whether a water supply pipe of said instant heating device has water when said predetermined period of time is a second gear period of time comprises:
When the water occupancy rate of the current preset time period is smaller than or equal to the third judgment value, determining that no water exists in the water supply pipe of the instant heating device;
When the water occupancy ratio of the current preset duration is larger than or equal to a fourth judgment value, determining that water exists in the water supply pipe of the instant heating device; the third judgment value is smaller than the fourth judgment value;
When the current water occupancy rate of the preset duration is larger than the third judgment value and smaller than the fourth judgment value, whether the water supply pipe of the instant heating device has water cannot be determined.
6. A method of water supply detection for an instant heating device as set forth in claim 3 wherein said step of determining whether or not a water supply pipe of said instant heating device is water when said predetermined period is a third gear period comprises:
when the water occupancy ratio of the current preset duration is larger than a fifth judgment value, determining that water exists in the water supply pipe of the instant heating device;
and when the water occupancy rate of the current preset time period is smaller than or equal to a fifth judgment value, determining that no water exists in the water supply pipe of the instant heating device.
7. The method for detecting water supply to an instant heating apparatus according to claim 1, wherein the step of calculating a water-present ratio of the preset time period based on all the electric signals collected by the detection sensor within the preset time period comprises:
Acquiring all electric signals acquired by the detection sensor within a preset time period; the signal acquisition period of the detection sensor is smaller than the preset time length;
Counting all the acquired electric signals to obtain the number of the electric signals representing water;
And calculating to obtain the water occupancy rate of the preset duration according to the number of the electric signals representing the water and the number of all the electric signals in the preset duration.
8. The method for water supply detection for a thermal device according to claim 7, wherein said step of acquiring all electrical signals acquired by said detection sensor for a predetermined period of time comprises:
and acquiring all electric signals acquired by the detection sensor within a preset time before the current moment.
9. The instant heating device is characterized by comprising an instant heating module, wherein the instant heating module comprises a water supply pipe and a water outlet pipe, and a detection sensor is arranged in the instant heating device and is used for detecting whether water exists in the water supply pipe passing through the detection sensor; the instant heating device further comprises a water supply detection module, and the water supply detection module is communicated with the detection sensor;
the water supply detection module comprises a memory, a processor, and a water supply detection program stored in the memory and executable on the processor, which when executed by the processor, performs the steps of the detection method as claimed in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that a water supply detection program is stored that is executable on a processor, the water supply detection program being called by the processor to implement the steps of the water supply detection method of any one of claims 1-8.
CN202410349211.XA 2024-03-26 Method for detecting water supply of instant heating device, instant heating device and storage medium Pending CN118258863A (en)

Publications (1)

Publication Number Publication Date
CN118258863A true CN118258863A (en) 2024-06-28

Family

ID=

Similar Documents

Publication Publication Date Title
CN109725220B (en) Detection method, system and device for transformer oil cooling loop
US20110307200A1 (en) Recognizing multiple appliance operating states using circuit-level electrical information
CN107687332B (en) Method and device for realizing on-line analysis, diagnosis, control and adjustment of working conditions of screw pump and pumping unit by using electric parameters
CN109447506B (en) Power quality reference level evaluation method and system
CN115685050B (en) Electric energy meter fault detection method and system
CN112765149A (en) System and method for calculating capacity of energy storage system
CN113418304B (en) Control method, device and equipment of water heater and computer readable storage medium
CN117189564A (en) Water pump control method and system for fluid detection, electronic equipment and medium
CN109273781B (en) Battery cell monitoring method and battery cell monitoring device
CN118258863A (en) Method for detecting water supply of instant heating device, instant heating device and storage medium
CN107252323B (en) Method and device for predicting female physiological cycle and user equipment
CN111917114B (en) Power load event detection method suitable for embedded platform
CN108153623B (en) Method and device for testing energy efficiency ratio of SATA interface hard disk
CN113076354A (en) User electricity consumption data analysis method and device based on non-invasive load monitoring
CN110398067B (en) Water heater, control method thereof and computer-readable storage medium
CN116784852A (en) Fatigue state determining method and device, intelligent mattress and medium
CN115754772A (en) Battery capacity attenuation processing method, device, equipment and storage medium
CN115934268A (en) Power edge calculation method, system, computer equipment and storage medium
CN114413986A (en) Gas meter metering method and system
CN110888100A (en) Single-phase intelligent electric energy meter online on-load detection system and method
CN117249036B (en) Pumped storage system, hydroelectric generating set state evaluation method and device
CN115289732B (en) Heat pump system control method and device, electronic equipment and storage medium
CN113553256B (en) AB test method and device and electronic equipment
CN212646862U (en) Resident electricity consumption collection system
EP4016205A1 (en) Determination of a mode of operation of a boiler

Legal Events

Date Code Title Description
PB01 Publication