Liquid level detection method, liquid level detection device and electric appliance
The method enhances liquid level detection accuracy in electrical appliances by using signal modulation and demodulation between probes to avoid interference, ensuring precise liquid level determination.
Patent Information
- Application Number
- CN202310810075.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
Existing liquid level detection methods in electrical appliances are susceptible to power frequency interference and other signal interferences, leading to inaccurate detection results.
A liquid level detection method using a transmitting probe at a preset liquid level and a receiving probe at the bottom of the liquid storage device, employing signal modulation and demodulation based on a preset liquid level mark to determine the liquid level, thereby avoiding interference from non-compliant signals.
Improves the anti-interference capability and accuracy of liquid level detection by ensuring accurate determination of liquid levels despite external signal interference.
Smart Images

Figure CN119223388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical equipment technology, and in particular to a liquid level detection method, a liquid level detection device and an electrical equipment. Background Art
[0002] Most electrical appliances are equipped with liquid storage devices, such as the water collection box in a condensing gas water heater, the kettle in a tea bar machine, etc. A liquid level detection module is generally provided in the liquid storage device for liquid level detection, among which a liquid level detection probe is a commonly used liquid level detection module.
[0003] When performing liquid level detection, a plurality of liquid level detection probes are generally arranged at intervals in the liquid storage device, and liquid level detection is then achieved by detecting whether the probes are conductive. However, this method is susceptible to power frequency interference introduced by the ground wire or interference caused by the start and stop of other nearby electrical appliances, resulting in inaccurate liquid level detection results. Summary of the invention
[0004] The main purpose of the present invention is to provide a liquid level detection method, a liquid level detection device and an electrical appliance, aiming to improve the anti-interference ability of liquid level detection in the electrical appliance and improve the accuracy of the liquid level detection result.
[0005] To achieve the above object, the present invention provides a liquid level detection method, which is applied to a liquid level detection device, characterized in that the liquid level detection device comprises a transmitting probe and a receiving probe, the transmitting probe is used to be arranged at a height where a preset liquid level is located on a liquid storage device, and the receiving probe is used to be arranged at the bottom of the liquid storage device, and the liquid level detection method comprises the following steps:
[0006] Controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark; and
[0007] Acquire a receiving signal of the receiving probe, and determine the liquid level information of the liquid storage device according to a demodulation result of the receiving signal and the preset liquid level mark;
[0008] When the transmitting probe and the receiving probe are in contact with the liquid in the liquid storage device, a signal transmission channel is formed between the transmitting probe and the receiving probe.
[0009] Optionally, the step of controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark includes:
[0010] generating a first baseband signal corresponding to the preset liquid level mark according to a preset corresponding relationship between the preset liquid level mark and the baseband signal; and
[0011] The first baseband signal is modulated according to a preset modulation frequency to form the modulation signal, and the transmitting probe is controlled to transmit the modulation signal.
[0012] Optionally, before the step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark, the step further includes:
[0013] Filtering the received signal according to the preset modulation frequency to obtain a second baseband signal; and
[0014] The character information carried by the second baseband signal is parsed according to the preset corresponding relationship to obtain the demodulation result.
[0015] Optionally, the preset corresponding relationship includes a corresponding relationship between a character in the preset liquid level mark and a pulse signal, and the step of generating a first baseband signal corresponding to the preset liquid level mark according to the preset corresponding relationship between the preset liquid level mark and the baseband signal includes:
[0016] The pulse signal corresponding to each character in the preset liquid level mark is generated in sequence according to the corresponding relationship to form the first baseband signal.
[0017] Optionally, the step of modulating the first baseband signal according to a preset modulation frequency to form the modulated signal includes:
[0018] The pulse width modulation is performed on the first baseband signal according to the preset modulation frequency and the preset duty cycle to form a modulated signal.
[0019] Optionally, the step of obtaining a preset liquid level mark corresponding to the transmitting probe includes:
[0020] Obtaining a first identification code associated with the transmitting probe; and
[0021] Performing a negation operation on the first identification code to obtain a second identification code;
[0022] Wherein, the preset liquid level mark includes the first identification code and the second identification code.
[0023] Optionally, the step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark includes:
[0024] When the demodulation result contains a liquid level mark, determining the liquid level information according to the liquid level mark in the demodulation result and the preset liquid level mark; and
[0025] When the demodulation result does not contain a liquid level mark, it is determined that the liquid level information indicates that the liquid level of the liquid storage device has not reached the preset liquid level.
[0026] Optionally, the step of determining the liquid level information according to the liquid level identifier in the demodulation result and the preset liquid level identifier includes:
[0027] Determine a check value corresponding to the liquid level mark in the demodulation result;
[0028] When the check value matches the target check value, and the liquid level mark in the demodulation result matches the preset liquid level mark, determining that the liquid level information is that the liquid level of the liquid storage device reaches the preset liquid level; and
[0029] When the check value does not match the target check value, or when the liquid level mark in the demodulation result does not match the preset liquid level mark, it is determined that the liquid level information indicates that the liquid level of the liquid storage device has not reached the preset liquid level.
[0030] Optionally, the preset liquid level identifier includes a first identification code and a second identification code, the second identification code is the inverse code of the first identification code, and the step of determining the check value corresponding to the liquid level identifier in the demodulation result includes:
[0031] When the liquid level identification in the demodulation result includes a third identification code and a fourth identification code, a sum of the third identification code and the fourth identification code is calculated, and the sum is determined as the verification value.
[0032] Optionally, the number of the transmitting probes is more than one, different transmitting probes correspond to different preset liquid levels, and different transmitting probes correspond to different preset liquid level identifiers, and the step of controlling the transmitting probe to transmit a modulation signal corresponding to the preset liquid level identifier includes:
[0033] Each of the transmitting probes is controlled in turn to transmit a modulation signal corresponding to a preset liquid level mark at a preset time interval.
[0034] In addition, in order to achieve the above-mentioned purpose, the present application also proposes a liquid level detection device, which includes:
[0035] Launch probe;
[0036] receiving probes; and
[0037] A control device, wherein the transmitting probe and the receiving probe are both connected to the control device, and the control device comprises: a memory, a processor, and a liquid level detection program stored in the memory and executable on the processor, wherein the liquid level detection program implements the steps of the liquid level detection method as described in any one of the above items when executed by the processor.
[0038] In addition, in order to achieve the above-mentioned purpose, the present application also proposes an electrical appliance, which further includes:
[0039] liquid storage device;
[0040] In the liquid level detection device as described above, the transmitting probe is arranged at a height where a preset liquid level is located on the liquid storage device, and the receiving probe is arranged at the bottom of the liquid storage device.
[0041] A liquid level detection method proposed in the present invention is applied to a liquid level detection device, which includes a transmitting probe arranged at a height where a preset liquid level is located on a liquid storage device and a receiving probe arranged at the bottom of the liquid storage device. In the process of liquid level detection by the probes, the method no longer simply detects whether the probes are conductive to achieve liquid level detection, but determines the liquid level of the liquid storage device by performing signal modulation and signal demodulation between the transmitting probe and the receiving probe based on a preset liquid level mark, effectively avoiding interference from other signals that do not comply with the modulation rules and causing erroneous judgment that the liquid level in the liquid storage device has reached the preset liquid level, thereby improving the anti-interference ability of liquid level detection in the electrical appliance and improving the accuracy of the liquid level detection result. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the installation position when the liquid level detection device is arranged in the water collection device in one embodiment of the present invention;
[0043] Figure 2 A schematic diagram of the hardware structure involved in the operation of an embodiment of a liquid level detection device of the present invention;
[0044] Figure 3 A schematic diagram of a flow chart of an embodiment of a liquid level detection method of the present invention;
[0045] Figure 4 A schematic diagram of a flow chart of another embodiment of a liquid level detection method of the present invention;
[0046] Figure 5 A schematic diagram of signal waveforms of a first modulation signal generation process involved in an embodiment of a liquid level detection method of the present invention;
[0047] Figure 6 A schematic diagram of a flow chart of another embodiment of the liquid level detection method of the present invention;
[0048] Figure 7 A schematic diagram of a flow chart of another optional embodiment of the liquid level detection method of the present invention;
[0049] Figure 8 The figure is a flow chart of another optional embodiment of the liquid level detection method of the present invention.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] The embodiment of the present invention provides a liquid level detection device, which is used to measure the liquid level in a liquid storage device 100 .
[0053] In this embodiment, refer to Figure 1 and Figure 2 The liquid level detection device includes a transmitting probe 1, a receiving probe 2 and a control device 3, and the transmitting probe 1 and the receiving probe 2 are both connected to the control device 3. The transmitting probe 1 is used to be arranged at a height where a liquid level is preset on the liquid storage device 100, and the receiving probe 2 is used to be arranged at the bottom of the liquid storage device 100.
[0054] In this embodiment, there are more than one transmitting probe 1, for example, different transmitting probes 1 correspond to different preset liquid levels, and more than one transmitting probe 1 is connected to the control device 3. For example, the first transmitting probe 1 corresponds to the first preset liquid level setting, and the second transmitting probe 1 corresponds to the second preset liquid level setting.
[0055] In other embodiments, the number of the transmitting probe 1 may also be one.
[0056] In the embodiment of the present invention, refer to Figure 1 The control device 3 includes: a processor 1001 (such as a CPU), a memory 1002, a timer 1003, etc. The various components in the control device 3 are connected via a communication bus. The memory 1002 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1002 can also be a storage device independent of the aforementioned processor 1001.
[0057] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0058] like Figure 1 As shown, the memory 1002 of the control device 3 may include a liquid level detection program. Figure 1 In the device shown, the processor 1001 can be used to call the liquid level detection program stored in the memory 1002 and execute the relevant steps of the liquid level detection method in the following embodiments.
[0059] Furthermore, an embodiment of the present invention also provides an electrical appliance, such as a water heater, an electrical appliance, a food processor, a washing machine, etc.
[0060] In the embodiment of the present invention, the electrical appliance comprises a liquid storage device 100 and the above-mentioned liquid level detection device, referring to Figure 2The transmitting probe 1 is disposed at a height where a preset liquid level is located on the liquid storage device 100 , and the receiving probe 2 is disposed at the bottom of the liquid storage device 100 .
[0061] In this embodiment, there are more than one transmitting probe 1, for example, different transmitting probes 1 correspond to different preset liquid levels, and more than one transmitting probe 1 is connected to the control device 3. For example, the first transmitting probe 1 corresponds to the first preset liquid level setting, and the second transmitting probe 1 corresponds to the second preset liquid level setting.
[0062] In other embodiments, the number of the transmitting probe 1 may also be one.
[0063] An embodiment of the present invention further provides a liquid level detection method, which is applied to the above-mentioned liquid level detection device.
[0064] Reference Figure 3 , an embodiment of the liquid level detection method of the present application is proposed. In this embodiment, the liquid level detection method includes:
[0065] Step S10, controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark;
[0066] Different transmitting probes correspond to different preset liquid level marks. The preset liquid level mark is specifically used to mark the preset liquid level where the corresponding transmitting probe is located. Among them, a set liquid level mark corresponding to the preset liquid level can be pre-set, and the set liquid level mark can be stored in a memory, and the set liquid level mark can be directly read as the preset liquid level mark; in addition, the set liquid level mark can also be read and processed according to a preset coding rule to obtain the preset liquid level mark.
[0067] In this embodiment, the interval time is determined according to the sensitivity of the liquid level detection, and S10 is periodically performed according to the interval time. For example, the interval time ranges from [10ms to 10s], for example, 1s.
[0068] Among them, a first baseband signal corresponding to a preset liquid level mark is generated according to a generation rule, and then the first baseband signal is modulated according to a modulation rule to obtain a modulated signal corresponding to the preset liquid level mark.
[0069] Step S20, acquiring a receiving signal of the receiving probe, and determining liquid level information of the liquid storage device according to a demodulation result of the receiving signal and the preset liquid level mark;
[0070] When the transmitting probe and the receiving probe are in contact with the liquid in the liquid storage device, a signal transmission channel is formed between the transmitting probe and the receiving probe.
[0071] The liquid here specifically refers to liquids that can conduct electricity, such as non-pure water, for example, water with impurities, washing water, coffee, condensed water from a heat exchanger, etc.
[0072] When there is liquid in the liquid storage device, the receiving probe contacts the liquid; when the liquid level reaches a height corresponding to a preset liquid level, both the transmitting probe and the receiving probe contact the liquid.
[0073] When the signal transmission channel is formed, the modulated signal sent by the transmitting probe can be sent to the receiving probe through the signal transmission channel, and the receiving probe can receive the modulated signal sent by the transmitting probe.
[0074] Among them, the signal received by the receiving probe can be monitored and the received signal can be used as the receiving signal here. When the transmitting probe and the receiving probe are connected to form a signal transmission channel, the received signal can be a signal consistent with the modulated signal emitted by the transmitting probe, or it can be a signal deformed based on the modulated signal emitted by the transmitting probe when there is external signal interference in the signal transmission channel. When the transmitting probe and the receiving probe are not connected to form a signal transmission channel, the received signal can be a signal inconsistent with the modulated signal emitted by the transmitting probe.
[0075] The demodulation process of the received signal here is the inverse process of the generation process of the modulated signal emitted by the transmitting probe. Based on this, the received signal can be analyzed according to the formation rule corresponding to the modulated signal to obtain the demodulation result here. Specifically, the received signal can be demodulated according to the modulation rule to obtain the second baseband signal, and the second baseband signal can be tested for liquid level according to the generation rule to obtain the demodulation result here.
[0076] The liquid level information includes whether the liquid level in the liquid storage device reaches a preset liquid level. Optionally, the liquid level information is determined based on whether the demodulation result includes a liquid level identifier and whether the liquid level identifier in the demodulation result matches a preset liquid level identifier.
[0077] In this embodiment, step S20 is executed at a synchronous interval during the execution of step S10 in a manner such as an interruption.
[0078] An embodiment of the present invention proposes a liquid level detection method. In the process of performing liquid level detection through probes, the method no longer simply detects whether the probes are conductive to achieve liquid level detection, but determines the liquid level of a liquid storage device by performing signal modulation and signal demodulation between a transmitting probe and a receiving probe based on a preset liquid level mark, effectively avoiding interference from other signals that do not comply with the modulation rules for transmission, which may lead to erroneous judgment that the liquid level in the liquid storage device has reached a preset liquid level, thereby improving the anti-interference capability of liquid level detection in the electrical appliance and improving the accuracy of the liquid level detection results.
[0079] Further, based on the above embodiment, another embodiment of the liquid level detection method of the present application is proposed. In this embodiment, referring to Figure 4 The step of controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark includes:
[0080] Step S11, generating a first baseband signal corresponding to the preset liquid level mark according to a preset corresponding relationship between the preset liquid level mark and the baseband signal;
[0081] Different characters correspond to different baseband signals.
[0082] Specifically, baseband signals corresponding to each character in the preset liquid level mark may be generated in sequence according to the first rule to form the first baseband signal, wherein the generation order of the baseband signals may match the arrangement order of the characters in the preset liquid level mark.
[0083] Step S12: modulate the first baseband signal according to a preset modulation frequency to form the modulation signal, and control the transmitting probe to transmit the modulation signal.
[0084] The preset modulation frequency may be a pre-set fixed frequency, or may be determined according to the type of device in which the liquid level detection device is located, or may be determined according to the rate of change of the liquid in the liquid storage device.
[0085] The first baseband signal is modulated into a signal with a signal frequency of a preset modulation frequency to obtain a first modulated signal.
[0086] In this embodiment, after generating the first baseband signal corresponding to the preset liquid level mark based on the above-mentioned preset corresponding relationship, the first baseband signal is modulated by the preset modulation frequency to obtain the first modulated signal and send it, and the preset liquid level mark signal is modulated by bandpass limitation, which is beneficial for the subsequent signal obtained after bandpass filtering the signal received by the receiving probe according to the corresponding frequency, and the interference of other signals can be effectively removed, so that the filtered signal is analyzed to obtain the analysis result of the liquid level mark to determine the liquid level information, which is beneficial to reduce the error caused by signal interference to liquid level detection, so as to further improve the anti-interference ability of liquid level detection and improve the accuracy of detection results.
[0087] Furthermore, in this embodiment, the preset correspondence relationship includes the correspondence relationship between the characters in the preset liquid level mark and the pulse signal, then the step of generating the first baseband signal corresponding to the preset liquid level mark according to the preset correspondence relationship between the preset liquid level mark and the baseband signal includes: generating the pulse signal corresponding to each character in the preset liquid level mark in sequence according to the correspondence relationship to form the first baseband signal.
[0088] Each pulse signal includes a high-level signal and a low-level signal, and different characters correspond to different first durations of the high-level signal and / or different second durations of the low-level signal.
[0089] Specifically, the preset liquid level mark may include at least one first character and at least one second character, the pulse signal corresponding to the first character is the first pulse signal, and the pulse signal corresponding to the second character is the second pulse signal. When the character information in the byte is the first character, the pulse signal generated corresponding to the byte is the first pulse signal; when the character information in the byte is the second character, the pulse signal generated corresponding to the byte is the second pulse signal. Based on this, according to the arrangement order of the first character and the second character in the preset liquid level mark, the corresponding first pulse signal or second pulse signal is generated in sequence to obtain the first baseband signal.
[0090] In this embodiment, the preset liquid level mark is a binary code, and the pulse signal waveform corresponding to the character "1" in the preset liquid level mark is as follows: Figure 5 As shown in (a), it consists of a high-level signal of T time and a low-level signal of 3T time; the pulse signal waveform corresponding to the character "0" is as follows Figure 5 As shown in (b), it consists of a high level signal of time T and a low level signal of time T. Wherein, the value range of T is [100ms, 2s], for example, 500ms. For example, when the preset liquid level mark is 0b10100001, according to the corresponding relationship between the pulse signal and the character, the corresponding first baseband signal generated is as follows Figure 5 (c) as shown.
[0091] In this embodiment, the preset liquid level mark generates a corresponding pulse signal as the first baseband signal, which is beneficial to further improve the stability of the identification information carried by the pulse signal during the transmission process, and reduce the impact of external signal interference on the accuracy of the decoding result corresponding to the receiving probe, thereby further improving the anti-interference capability of the liquid level detection and further improving the accuracy of the liquid level detection.
[0092] In other embodiments, the baseband signal corresponding to the character in the preset corresponding relationship may also include a sine wave signal.
[0093] Further, in this embodiment, the step of modulating the first baseband signal according to a preset modulation frequency to form the modulation signal includes: performing pulse width modulation on the first baseband signal according to the preset modulation frequency and a preset duty cycle to form the modulation signal.
[0094] The high-level signal in the first baseband signal is modulated according to a preset duty cycle, and the modulated first baseband signal is modulated into a desired transmitted modulated signal according to a preset modulation frequency. The signal in the signal period corresponding to the original high-level signal in the modulated first baseband signal is a pulse signal with the above preset duty cycle.
[0095] For example, Figure 5 (c) The signal waveform after the first baseband signal is modulated is as follows Figure 5(d) as shown.
[0096] In this embodiment, the longer the level in the pulse signal lasts, the greater the risk of signal interference. Therefore, the signal after pulse width modulation of the first baseband signal according to the preset modulation frequency and the preset duty cycle is used as the first modulation signal, which is beneficial to ensure the stability of the liquid level identification information during the transmission process, thereby further improving the anti-interference ability of the liquid level detection and improving the accuracy of the liquid level detection.
[0097] Further, based on the above embodiment, another embodiment of the liquid level detection method of the present application is proposed. In this embodiment, referring to Figure 6 , before the step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark, it also includes:
[0098] Step S21, filtering the received signal according to the preset modulation frequency to obtain a second baseband signal;
[0099] A signal corresponding to a preset modulation frequency in the received signal is extracted as a second baseband signal, and external interference signals can be filtered in this process.
[0100] When the modulation signal is obtained by pulse width modulation in the manner mentioned in the above embodiment, the received signal is first filtered according to the preset modulation frequency to obtain a filtered signal, and then the filtered signal is demodulated according to the preset duty cycle as the second baseband signal.
[0101] Step S22, parsing the character information carried by the second baseband signal according to the preset corresponding relationship to obtain the demodulation result.
[0102] Specifically, the second baseband signal is decoded for the liquid level mark according to the corresponding relationship between the baseband signal and the character, and the character information corresponding to the second baseband signal is determined as the demodulation result.
[0103] In this embodiment, the second demodulated signal received by the receiving probe is bandpass filtered by a preset modulation frequency to effectively filter out interference from other signals, thereby ensuring that the accuracy of the liquid level information determined by analyzing the filtered signal to obtain the demodulation result is effectively improved, which is conducive to further improving the anti-interference ability of the liquid level detection and improving the accuracy of the detection results.
[0104] Further, based on the above embodiment, another embodiment of the liquid level detection method of the present application is proposed. In this embodiment, referring to Figure 7 , before the step of controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark, it also includes:
[0105] Step S101, obtaining a first identification code associated with the transmitting probe; and
[0106] The first identification code is specifically the above-mentioned preset identification code. Specifically, it can be obtained by reading the data stored in the memory. Different preset liquid levels can correspond to different first identification codes.
[0107] In this embodiment, the first identification code is an address code.
[0108] In this embodiment, the first identification code is a hexadecimal value.
[0109] Step S102, performing a negation operation on the first identification code to obtain a second identification code;
[0110] Wherein, the preset liquid level mark includes the first identification code and the second identification code.
[0111] Specifically, the first identification code and the second identification code may be spliced in a preset order to form a preset liquid level identification.
[0112] For example, the address 0xA1 of liquid level 1 is inverted to get 0x5E, and the corresponding binary number after combining the addresses before and after inversion is 0b10100001 01011110, which can be used as the preset identification code of the transmitting probe corresponding to liquid level 1; the address 0xA2 of liquid level 2 is inverted to get 0x5D, and the corresponding binary number after combining the addresses before and after inversion is 0b10100010 01011101, which can be used as the preset identification code of the transmitting probe corresponding to liquid level 2.
[0113] In this embodiment, the positive and negative addresses are combined into a preset liquid level mark, thereby ensuring that the subsequent receiving probe can quickly and accurately verify the preset liquid level mark obtained by parsing based on the checksum method, so as to improve the accuracy of liquid level detection while improving the efficiency of liquid level detection.
[0114] In other embodiments, the first identification code may be directly used as the preset liquid level identification, or the second identification code may be directly used as the preset liquid level identification.
[0115] Further, based on any of the above embodiments, another optional embodiment of the liquid level detection method of the present application is proposed. Figure 8 The step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark includes:
[0116] Step S23, when the demodulation result contains a liquid level mark, determining the liquid level information according to the liquid level mark in the demodulation result and the preset liquid level mark; and
[0117] Step S24: when the demodulation result does not contain a liquid level mark, determining that the liquid level information is that the liquid level of the liquid storage device has not reached the preset liquid level.
[0118] In this embodiment, the number of characters in the demodulation result is counted. If the number of characters matches the preset number corresponding to the preset liquid level mark, it can be determined that the liquid level mark exists; if the number of characters does not match the preset number, it can be determined that the liquid level mark does not exist.
[0119] In this embodiment, the liquid level information is determined based on the comparison result between the liquid level mark in the demodulation result and the preset liquid level mark. Specifically, when the liquid level mark in the demodulation result is consistent with the preset liquid level mark, the liquid level information is determined to be that the liquid level of the liquid storage device has reached the preset liquid level; when the liquid level mark in the demodulation result is inconsistent with the preset liquid level mark, the liquid level information can be determined to be that the liquid level of the liquid storage device has not reached the preset liquid level.
[0120] In this embodiment, if there is a liquid level mark in the demodulation result, it can be considered that the above-mentioned transmission channel has been formed. At this time, the liquid level information of the liquid storage device can be further determined based on the analyzed liquid level mark and the preset liquid level mark, and the accuracy of the determined liquid level information can be guaranteed; if there is no liquid level mark in the demodulation result, it can be considered that the above-mentioned transmission channel has not been formed. At this time, it can be determined that the liquid level in the liquid storage device has not reached the preset liquid level. Based on this, the liquid level misidentification caused by interference from other signals other than the first modulation signal can be effectively avoided to further improve the accuracy of liquid level detection.
[0121] Furthermore, the step of determining the liquid level information according to the liquid level mark in the demodulation result and the preset liquid level mark includes:
[0122] Step S231, determining a check value corresponding to the liquid level mark in the demodulation result;
[0123] Step S232, when the check value matches the target check value, and the liquid level mark in the demodulation result matches the preset liquid level mark, determining that the liquid level information is that the liquid level of the liquid storage device reaches the preset liquid level; and
[0124] Step S233, when the check value does not match the target check value, or when the liquid level mark in the demodulation result does not match the preset liquid level mark, it is determined that the liquid level information is that the liquid level of the liquid storage device has not reached the preset liquid level.
[0125] In this embodiment, the preset liquid level identifier includes a first identification code and a second identification code, and the second identification code is the inverse code of the first identification code. When the liquid level identifier in the demodulation result includes a third identification code and a fourth identification code, the sum of the third identification code and the fourth identification code is calculated, and the sum is determined to be the check value. The target check value is specifically OxFF, and the check value matches the target check value, which means that the sum is equal to OxFF; the check value does not match the target check value, which means that the sum is not equal to OxFF. Among them, the third identification code and the fourth identification code here are parsed based on the combination of the first identification code and the second identification code in the preset liquid level identifier.
[0126] In this embodiment, the liquid level mark is verified. Only when the verification is successful (that is, the verification value matches the target verification value) and matches the preset liquid level mark, it is determined that the liquid level of the liquid storage device has reached the preset liquid level; otherwise, it is determined that the liquid level of the liquid storage device has not reached the preset liquid level, thereby further effectively avoiding the misjudgment of the liquid in the liquid storage device reaching the preset liquid level caused by signal interference, so as to further improve the accuracy of liquid level recognition. Among them, the preset liquid level mark verifies the liquid level mark by means of a checksum when the positive and negative codes are generated, which is conducive to improving the verification efficiency and accuracy, thereby further improving the accuracy and efficiency of liquid level detection.
[0127] In other embodiments, the liquid level marker may also be verified by a parity check. For example, the target check value is the target parity value of the preset characters in the liquid level marker. When the parity value of the preset characters in the liquid level marker is consistent with the target parity value, the check is considered to have passed; otherwise, the check is considered to have failed.
[0128] Further, based on any of the above embodiments, another optional embodiment of the liquid level detection method of the present application is proposed. In this embodiment, the number of the transmitting probes is more than one, and different transmitting probes correspond to different preset liquid levels, and different preset liquid levels correspond to different preset liquid level identifiers. For example, the first preset liquid level corresponds to the first preset liquid level identifier (for example, 0b10100001 01011110), and the second preset liquid level corresponds to the second preset liquid level identifier (for example, 0b10100010 01011101). The step of controlling the transmitting probe to transmit the modulation signal corresponding to the preset liquid level identifier includes:
[0129] Each of the transmitting probes is controlled in turn to transmit a modulation signal corresponding to a preset liquid level mark at a preset time interval.
[0130] The preset time interval may be a preset fixed time duration, or a time duration determined according to actual state parameters in the liquid storage device.
[0131] Specifically, one transmitting probe is controlled to transmit a modulated signal corresponding to the liquid level mark, and after the modulated signal is sent, another transmitting probe is controlled to transmit a modulated signal corresponding to the liquid level mark.
[0132] In this embodiment, the modulation signals corresponding to different transmitting probes are modulated according to the same rule. In other embodiments, different preset liquid levels may be modulated according to different rules.
[0133] In this embodiment, the preset liquid level mark corresponding to each preset liquid level can be removed in the manner mentioned in the above embodiment, which will not be described in detail here.
[0134] Among them, when there is a liquid level mark in the demodulation result, if there is a preset liquid level mark that matches the liquid level mark in the demodulation result, the liquid level information is determined to be the preset liquid level corresponding to the matching preset liquid level mark at which the liquid level in the liquid storage device reaches; if there is a preset liquid level mark that does not match the liquid level mark in the demodulation result, the liquid level information is determined to be the preset liquid level corresponding to the unmatched preset liquid level mark at which the liquid level in the liquid storage device does not reach.
[0135] In this embodiment, through the above-mentioned method, it is possible to improve the accuracy of detecting different liquid levels in the liquid storage device based on the signal received by the receiving probe.
[0136] Furthermore, in this embodiment, before the step of controlling the transmitting probe to transmit the modulation signal corresponding to the preset liquid level mark, it also includes: transmitting a first signal, wherein the first signal identifies the starting position of the signal; after the step of controlling the transmitting probe to transmit the modulation signal corresponding to the preset liquid level mark, it also includes: when all the modulation signals are transmitted, transmitting a second signal, wherein the second signal identifies the end position of the signal.
[0137] Specifically, when there are more than one modulation signals corresponding to different transmitting probes, after transmitting the first signal, the second signal may be transmitted when the transmission of the modulation signals corresponding to all transmitting probes is completed.
[0138] Based on this, it can be ensured that a valid signal can be accurately extracted as a received signal based on the first signal and the second signal from the signal received by the receiving probe, so as to further avoid external signal interference and improve the accuracy of liquid level detection.
[0139] Furthermore, in this embodiment, the step of obtaining the received signal received by the receiving probe includes: obtaining the signal received by the receiving probe after receiving the first signal as the received signal. Based on this, it is helpful to accurately extract the effective signal as the received signal, so as to further avoid signal interference and improve the accuracy of liquid level detection.
[0140] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0141] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a control device (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, electrical appliance, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0143] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A liquid level detection method, applied to a liquid level detection device, characterized in that: The liquid level detection device comprises a transmitting probe and a receiving probe, wherein the transmitting probe is arranged at a height where a liquid level is preset on the liquid storage device, and the receiving probe is arranged at the bottom of the liquid storage device. The liquid level detection method comprises the following steps: Controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark; and Acquire a receiving signal of the receiving probe, and determine the liquid level information of the liquid storage device according to a demodulation result of the receiving signal and the preset liquid level mark; When the transmitting probe and the receiving probe are in contact with the liquid in the liquid storage device, a signal transmission channel is formed between the transmitting probe and the receiving probe.
2. The liquid level detection method according to claim 1, characterized in that: The step of controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark comprises: generating a first baseband signal corresponding to the preset liquid level mark according to a preset corresponding relationship between the preset liquid level mark and the baseband signal; and The first baseband signal is modulated according to a preset modulation frequency to form the modulation signal, and the transmitting probe is controlled to transmit the modulation signal.
3. The liquid level detection method according to claim 2, characterized in that: Before the step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark, the method further includes: Filtering the received signal according to the preset modulation frequency to obtain a second baseband signal; and The character information carried by the second baseband signal is parsed according to the preset corresponding relationship to obtain the demodulation result.
4. The liquid level detection method according to claim 2, characterized in that: The preset corresponding relationship includes the corresponding relationship between the characters in the preset liquid level mark and the pulse signal, and the step of generating the first baseband signal corresponding to the preset liquid level mark according to the preset corresponding relationship between the preset liquid level mark and the baseband signal includes: The pulse signal corresponding to each character in the preset liquid level mark is generated in sequence according to the corresponding relationship to form the first baseband signal.
5. The liquid level detection method according to claim 2, characterized in that: The step of modulating the first baseband signal according to a preset modulation frequency to form the modulated signal comprises: The pulse width modulation is performed on the first baseband signal according to the preset modulation frequency and the preset duty cycle to form the modulated signal.
6. The liquid level detection method according to claim 1, characterized in that: Before the step of controlling the transmitting probe to transmit a modulation signal corresponding to a preset liquid level mark, the method further includes: Obtaining a first identification code associated with the transmitting probe; and Performing a negation operation on the first identification code to obtain a second identification code; Wherein, the preset liquid level mark includes the first identification code and the second identification code.
7. The liquid level detection method according to claim 1, characterized in that: The step of determining the liquid level information of the liquid storage device according to the demodulation result of the received signal and the preset liquid level mark comprises: When the demodulation result contains a liquid level mark, determining the liquid level information according to the liquid level mark in the demodulation result and the preset liquid level mark; and When the demodulation result does not contain a liquid level mark, it is determined that the liquid level information indicates that the liquid level of the liquid storage device has not reached the preset liquid level.
8. The liquid level detection method according to claim 7, characterized in that: The step of determining the liquid level information according to the liquid level mark in the demodulation result and the preset liquid level mark comprises: Determine a check value corresponding to the liquid level mark in the demodulation result; When the check value matches the target check value, and the liquid level mark in the demodulation result matches the preset liquid level mark, determining that the liquid level information is that the liquid level of the liquid storage device reaches the preset liquid level; and When the check value does not match the target check value, or when the liquid level mark in the demodulation result does not match the preset liquid level mark, it is determined that the liquid level information indicates that the liquid level of the liquid storage device has not reached the preset liquid level.
9. The liquid level detection method according to claim 8, characterized in that: The preset liquid level identifier includes a first identification code and a second identification code, the second identification code is the inverse code of the first identification code, and the step of determining the check value corresponding to the liquid level identifier in the demodulation result includes: When the liquid level identification in the demodulation result includes a third identification code and a fourth identification code, a sum of the third identification code and the fourth identification code is calculated, and the sum is determined as the verification value.
10. The liquid level detection method according to any one of claims 1 to 9, characterized in that: The number of the transmitting probes is more than one, different transmitting probes correspond to different preset liquid levels, and different transmitting probes correspond to different preset liquid level identifiers. The step of controlling the transmitting probe to transmit a modulation signal corresponding to the preset liquid level identifier includes: Each of the transmitting probes is controlled in turn to transmit a modulation signal corresponding to the preset liquid level mark at a preset time interval.
11. A liquid level detection device, characterized in that: The liquid level detection device comprises: An emitting probe is used to be arranged at a height where a liquid level is preset on the liquid storage device; A receiving probe, arranged at the bottom of the liquid storage device; A control device, wherein the transmitting probe and the receiving probe are both connected to the control device, and the control device comprises: a memory, a processor, and a liquid level detection program stored in the memory and executable on the processor, wherein the liquid level detection program, when executed by the processor, implements the steps of the liquid level detection method as described in any one of claims 1 to 10.
12. An electrical appliance, characterized in that: The electrical appliance comprises: a liquid storage device; and According to the liquid level detection device as described in claim 11, the transmitting probe is arranged at the height of the preset liquid level on the liquid storage device, and the receiving probe is arranged at the bottom of the liquid storage device.
