Method, device and storage medium for ultrasonic level meter anti-interference measurement

By dynamically adjusting the transducer frequency and identifying the number of effective echoes, the problem of large echo energy reflected by the proximal interfering object in the beam angle range is solved, and sufficient measurement of the remote range of sound wave energy is achieved, improving the stability and accuracy of measurement.

CN116295719BActive Publication Date: 2025-08-22HANGZHOU SUPMEA AUTOMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211708745.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-08-22
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

During the measurement process of existing ultrasonic level meters, the large echo energy reflected back by the proximal interferers within the beam angle range is likely to cause measurement errors, while the sound wave energy at the far end of the range is insufficient, resulting in unstable and inaccurate measurements.

Method used

By dynamically adjusting the frequency of the transducer, using software algorithms to identify the number of effective echoes, and filtering out the interference signals according to the frequency offset value to ensure sufficient acoustic energy at the far range. Sound wave frequency modulation technology is used to offset the frequency to adjust the size of the acoustic wave energy and reduce the echo energy of the near-end interferers.

Benefits of technology

Effectively filter out interferences at the nearest end of the range, ensure reliable measurement at the far end of the range, and improve the measurement stability and accuracy of the ultrasonic level meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116295719B_ABST
    Figure CN116295719B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of ultrasonic liquid level measurement, and discloses a method, device and storage medium for ultrasonic level meter anti-interference measurement. The method includes: emitting ultrasonic waves with the center frequency of the transducer as the measurement frequency for liquid level measurement, and identifying the number of valid echoes, judging whether a frequency shift is required based on the number of valid echoes, and re-measuring and identifying the number of valid echoes in the case where a frequency shift is required to judge whether a frequency shift is required again, until it is judged that the number of valid echoes is 1 or the frequency shift value is greater than / equal to a maximum threshold, and emitting ultrasonic waves at the current frequency for liquid level measurement. The method of the present application can dynamically adjust the frequency of the transducer, thereby dynamically adjusting the wave energy, effectively filtering out interference objects at the near end of the measuring range, while ensuring reliable measurement at the far end of the measuring range, and effectively ensuring the stability and reliability of the ultrasonic level meter measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ultrasonic liquid level measurement, and in particular to a method, device and storage medium for ultrasonic liquid level meter anti-interference measurement. Background Art

[0002] An ultrasonic level meter is a non-contact level measuring instrument that offers significant advantages over traditional direct-contact measuring instruments in terms of hygiene, reliability, and maintenance. The operating principle of an ultrasonic level meter can be summarized as follows: the control board converts electrical signals into acoustic signals through a transducer, calculating the corresponding distance value based on the time difference between the transmission and reception of the acoustic waves. The fixed-frequency pulse signal is converted into a high-voltage pulse (300V-600V) through an inverter circuit. This is directly connected to the positive and negative electrodes of the ceramic chip to generate a high-voltage pulse signal of the corresponding frequency to drive the transducer. The internal circuit of the transducer contains no other circuit boards except for an NTC temperature sensor. Signal feedback is the reverse process: the ceramic chip receives the echo and generates a mV-level signal, which is fed back to the signal processing circuit. After rectification, filtering, and amplification, the microcontroller collects the corresponding signal through AD.

[0003] However, this approach still has drawbacks: the acoustic wave energy is proportional to the hardware's op amp amplification factor. The greater the op amp's amplification factor, the greater the acoustic wave energy. Since the hardware's op amp amplification factor is fixed, there's no effective way to adjust the acoustic wave energy. During ultrasonic level meter measurements, the acoustic wave energy often needs to be dynamically adjusted to filter out effective interference. For measurements at the far end of the range, the transducer requires greater excitation energy to measure longer distances. At the same time, the feedback signal processing circuit needs to further amplify the echo signal. The acoustic waves emitted by the transducer have a certain beam angle. In some measurement scenarios, there are interference objects at the near end of the range within this beam angle. Due to the circuit's amplification of the acoustic wave's transceiver energy, even interference objects with a smaller reflective surface at the near end will reflect a larger echo energy, easily causing measurement errors. On the other hand, by reducing the acoustic wave's transceiver energy, interference objects at the near end of the range, due to their smaller reflective surface, will quickly attenuate the echo energy, thus not affecting the measurement. However, due to the reduced acoustic wave transceiver energy, distances at the far end of the range often cannot be measured properly. Summary of the Invention

[0004] The purpose of this application is to reduce the echo energy of proximal interference objects within the beam angle range, while ensuring the energy of sound waves transmitted and received at the far end of the range, so as to improve the stability and accuracy of ultrasonic level meter measurement, and provide a method, device and storage medium for ultrasonic level meter measurement anti-interference.

[0005] In a first aspect, a method for measuring anti-interference of an ultrasonic level meter is provided, comprising:

[0006] S101, transmitting ultrasonic waves using the center frequency of the transducer as the measurement frequency to measure the liquid level, and identifying the number of valid echoes;

[0007] S102, determining whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, returning to step S101; if the number of valid echoes is greater than 1, executing the next step;

[0008] S103, performing a frequency shift on the current frequency, transmitting ultrasonic waves again at the shifted frequency to measure the liquid level, and identifying the number of valid echoes again;

[0009] S104. Determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, return to step S103. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, transmit ultrasonic waves at the current frequency for liquid level measurement. If the number of valid echoes is 0, return to step S101.

[0010] Specifically, identifying the number of valid echoes includes the following steps:

[0011] Convert the echo signal into a voltage signal;

[0012] Continuously collect voltage signals and record the acoustic wave signals during the entire measurement process through voltage values;

[0013] Filter out interference signals in echo signals based on echo amplitude and duration;

[0014] Calculate the number of valid echoes.

[0015] Furthermore, filtering out interference signals in the echo signal according to the echo amplitude and duration includes:

[0016] Obtain the amplitude value, duration of the echo and the time of the transducer's own oscillation;

[0017] Calculate the amplitude threshold and duration threshold through the algorithm;

[0018] Echoes with amplitudes less than the amplitude threshold or durations less than the duration threshold are filtered out.

[0019] Furthermore, when the frequency offset is performed on the current frequency, the frequency offset is performed by a predetermined offset value on the basis of the current measurement frequency each time.

[0020] Furthermore, a maximum threshold of the frequency offset value is set according to the range and bandwidth of the transducer.

[0021] In a second aspect, a device for measuring and preventing interference with an ultrasonic level meter is provided, comprising:

[0022] A liquid level measurement and identification module, wherein the liquid level measurement module is used to transmit ultrasonic waves using the transducer center frequency as the measurement frequency to measure the liquid level, and the identification module is used to identify the number of valid echoes;

[0023] The first judgment module is used to judge whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, the process returns to the liquid level measurement module; if the number of valid echoes is greater than 1, the process jumps to the offset module;

[0024] The offset module is used to offset the current frequency, re-transmit ultrasonic waves at the offset frequency to measure the liquid level, and identify the number of valid echoes again;

[0025] The second judgment module is used to determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, it returns to the offset module. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, ultrasonic waves are emitted at the current frequency for liquid level measurement. If the number of valid echoes is 0, it returns to the liquid level measurement and identification module.

[0026] Specifically, the identification module includes:

[0027] A conversion submodule, used for converting the echo signal into a voltage signal;

[0028] The acquisition submodule is used to continuously collect voltage signals and record the acoustic wave signals during the entire measurement process through voltage values;

[0029] A filtering submodule, used to filter out interference signals in the echo signal according to the echo amplitude and duration;

[0030] The calculation submodule is used to calculate the number of valid echoes.

[0031] Furthermore, the filtering submodule includes:

[0032] An acquisition unit, used to acquire the amplitude value and duration of the echo and the oscillation time of the transducer itself;

[0033] A threshold calculation unit, used to calculate an amplitude threshold and a duration threshold through an algorithm;

[0034] The filtering unit is configured to filter out echoes whose amplitude is smaller than an amplitude threshold or whose duration is smaller than a duration threshold.

[0035] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable medium stores program code for execution by a device, the program code including steps for executing the method in any one of the implementations in the first aspect.

[0036] In a fourth aspect, an electronic device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements a method as in any one of the implementations in the first aspect.

[0037] The present application has the following beneficial effects: during the measurement process, the frequency of the transducer can be dynamically adjusted, thereby dynamically adjusting the wave energy, effectively filtering out interference at the near end of the measuring range, while ensuring reliable measurement at the far end of the measuring range, effectively ensuring the stability and reliability of the ultrasonic level meter measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings that constitute a part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application.

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 This is a flow chart of the method for ultrasonic level meter measurement and anti-interference according to the first embodiment of the present application;

[0041] Figure 2 This is a waveform diagram of the received signal when the transducer transmits the signal at maximum energy in the case where there is an interfering object at the proximal end in the first embodiment of the present application;

[0042] Figure 3 This is the waveform diagram received when there is an interference object at the near end in the first embodiment of the present application and the transducer frequency is offset by 2K;

[0043] Figure 4 This is a waveform diagram received when there is an interference object at one end of the embodiment of the present application and the transducer frequency shifts by 4K. DETAILED DESCRIPTION

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0045] Example 1

[0046] The first embodiment of the present application relates to an ultrasonic level meter measurement anti-interference method, comprising: S101, emitting ultrasonic waves with the center frequency of the transducer as the measurement frequency for liquid level measurement, and identifying the number of valid echoes; S102, judging whether the number of valid echoes is greater than 1, if the number of valid echoes is less than or equal to 1, returning to step S101, if the number of valid echoes is greater than 1, executing the next step; S103, frequency shifting the current frequency, and emitting ultrasonic waves again at the shifted frequency for liquid level measurement, and identifying the number of valid echoes again; S104, judging whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than a maximum threshold, if the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, returning to step S103, if the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, emitting ultrasonic waves at the current frequency for liquid level measurement, if the number of valid echoes is 0, returning to step S101. Since the amplification factor of the operational amplifier on the hardware is fixed, the adjustment of the sound wave energy size lacks flexibility. An effective method. In some measurement scenarios, interference cannot be filtered out by adjusting the sound wave energy, resulting in measurement errors. Therefore, considering the transducer characteristics, the sound wave energy can be flexibly and efficiently adjusted by changing the transducer's transmitting frequency through software. The size of the transducer energy conversion is directly related to the frequency of the applied pulse. The closer the pulse frequency is to the frequency of the transducer itself, the greater the energy converted by the transducer (taking a 5-meter range transducer as an example, its center frequency is 49K). The software uses the transducer center frequency as a reference, offsets the frequency when emitting sound waves, and adjusts the sound wave energy by sending sound waves at a variable frequency. The sound wave energy is reduced at the near end of the range to filter out interference, and the sound wave is emitted at the center frequency at the far end of the range to ensure the maximum measurement distance. The sound wave frequency modulation technology is used to offset the sound wave frequency according to different measurement scenarios. The echo energy is adjusted by frequency offset, thereby reducing the echo energy of the near-end interference within the beam angle range, while ensuring the energy of the sound wave sent and received at the far end of the range, thereby improving the stability and accuracy of the ultrasonic level meter measurement.

[0047] Specifically, Figure 1 A flow chart of the method for measuring anti-interference of an ultrasonic level meter in the first embodiment of the application is shown, including:

[0048] S101, transmitting ultrasonic waves using the center frequency of the transducer as the measurement frequency to measure the liquid level, and identifying the number of valid echoes;

[0049] Specifically, the single-chip microcomputer sends pulses at the center frequency of the transducer to measure the liquid level. The center frequency of the transducer needs to be written into the instrument when leaving the factory. At this time, the energy of the sound wave sent by the transducer reaches the maximum value. The receiving circuit converts the echo signal into a voltage signal. The single-chip microcomputer continuously collects AD signals and records the sound wave signals in the entire measurement process through the voltage value. The interference signal (that is, the smaller signal) in the echo signal is filtered out by software, and the number of valid echoes is calculated. The number of valid echoes reflects the number of valid measurable objects within the beam angle range of the transducer during the current measurement process. When there is no interference in the measurement scene, there is usually only one valid echo.

[0050] It should be noted that when filtering out interference signals in echo signals through software, it is necessary to calculate the amplitude threshold and time threshold through relevant algorithms based on the echo amplitude value, duration and the transducer's own oscillation time (the automatic oscillation time will affect the duration of the echo), and then identify the echo with too small amplitude or too short duration as interference signals and filter them out.

[0051] S102, determining whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, returning to step S101; if the number of valid echoes is greater than 1, executing the next step;

[0052] Specifically, the number of echoes in the current measurement process is judged. If the number of echoes is only 1, it means that the transducer only received an echo from the object to be measured after sending the sound wave. There is no interference in the current measurement process and it is in a relatively ideal measurement environment. At this time, return to step S101, so that the transducer sends sound waves with maximum energy (that is, the single-chip microcomputer sends pulses at the transducer center frequency) for measurement without any interference; if the number of echoes is 0, it is necessary to return to step S101, and it is necessary to find the reason why the echo cannot be detected, such as: inappropriate range selection or transducer failure, etc., and re-measure after troubleshooting; if the number of echoes is greater than 1, it means that there is an interference in the current measurement scene or the transducer has received a secondary echo or multiple echoes of the measured object (secondary echoes or multiple echoes are the result of multiple reflections of the sound wave signal between the transducer and the object to be measured), then execute step S103 to offset the current rate.

[0053] S103, performing a frequency shift on the current frequency, transmitting ultrasonic waves again at the shifted frequency to measure the liquid level, and identifying the number of valid echoes again;

[0054] Specifically, the measurement is performed by offsetting 1K (i.e., a predetermined offset value, illustratively, with 1K as the minimum unit) on the basis of the current measurement frequency. During the first frequency offset, the current measurement frequency is the center frequency of the transducer. When the current frequency is offset, the predetermined offset value is offset each time on the basis of the current measurement frequency. During the second frequency offset, the current measurement frequency is offset by another 1K (i.e., 2K on the basis of the center frequency of the transducer). Similarly, the software records the frequency after the offset. As the frequency offsets, the energy of the sound wave sent by the transducer decreases. In the measurement scenario, the reflecting surface of the interference object is often much smaller than the actual measured object. The energy attenuation of the echo signal reflected by the interference object is much greater than that of the measured object, so that the corresponding voltage value is greatly attenuated. The echo signal of the interference object may be filtered out by the software, so that the number of detected echoes is reduced, thereby filtering out the interference object echo. If the number of valid echoes is reduced to 1, the subsequent measurement frequency is measured according to the current offset frequency, and the frequency offset is no longer performed.

[0055] It is worth noting that when the secondary echo and multiple echo are large during the measurement process, they may not be completely eliminated by frequency offset. However, since the secondary echo and multiple echo return to the transducer later, they do not affect the actual measurement. Therefore, a frequency offset threshold is set to limit the frequency offset. Assuming that the echo return time of the measured object is t, the return time of the secondary echo is 2*t. During the measurement process, the echo with a return time of t meets the threshold and is considered to be a valid echo. The distance will be calculated based on this time. The echo signal of the secondary echo with a later return time will be filtered out.

[0056] S104. Determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, return to step S103. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, transmit ultrasonic waves at the current frequency for liquid level measurement. If the number of valid echoes is 0, return to step S101.

[0057] Specifically, after the frequency offset is performed, the number of detected echoes is still greater than 1, indicating that the attenuation of the sound wave signal after the current frequency offset is still unable to completely filter out the interference signal. At this time, step S103 needs to be repeated, and the measurement is continued by shifting 1K (i.e., the predetermined offset value) on the basis of the existing frequency, and the software records the frequency after the offset. It should be noted that the frequency cannot be offset all the time, and a maximum frequency offset threshold needs to be set to prevent the frequency offset from being too large, causing the transducer wave energy to be too low to be measured. At this time, it is necessary to detect the number of echoes and the frequency offset value at the same time. When the number of echo detections is reduced to 1 or the frequency offset value is greater than the maximum frequency offset threshold, the frequency offset is stopped and the measurement is performed at the current frequency without frequency offset. In addition, when the wave is transmitted at the offset frequency, the energy of the sound wave transmitted by the transducer is reduced. If the object to be measured moves to the far end of the range, the echo may not be detected due to the reduced energy. At this time, the number of detected echoes is 0, and it is necessary to return to step S101 and re-identify the ideal wave frequency in the current measurement state to ensure the measurement stability at the far end of the range.

[0058] It should be noted that, depending on the bandwidth of the transducer, transducers of different ranges correspond to different frequencies, and the offset thresholds are also different. For example, taking a 5-meter range transducer as an example, the maximum offset threshold is 8K.

[0059] During the above measurement process, the transducer frequency is dynamically adjusted, thereby dynamically adjusting the wave energy, effectively filtering out interference at the near end of the measuring range, while ensuring reliable measurement at the far end of the measuring range, thereby ensuring the stability and reliability of the ultrasonic level meter measurement.

[0060] Example 2

[0061] The second embodiment of the present application relates to an ultrasonic level meter anti-interference measurement device, comprising:

[0062] A liquid level measurement and identification module, wherein the liquid level measurement module is used to transmit ultrasonic waves using the transducer center frequency as the measurement frequency to measure the liquid level, and the identification module is used to identify the number of valid echoes;

[0063] The first judgment module is used to judge whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, the process returns to the liquid level measurement module; if the number of valid echoes is greater than 1, the process jumps to the offset module;

[0064] The offset module is used to offset the current frequency, re-transmit ultrasonic waves at the offset frequency to measure the liquid level, and identify the number of valid echoes again;

[0065] The second judgment module is used to determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, it returns to the offset module. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, ultrasonic waves are emitted at the current frequency for liquid level measurement. If the number of valid echoes is 0, it returns to the liquid level measurement and identification module.

[0066] Specifically, the identification module includes:

[0067] A conversion submodule, used for converting the echo signal into a voltage signal;

[0068] The acquisition submodule is used to continuously collect voltage signals and record the acoustic wave signals during the entire measurement process through voltage values;

[0069] A filtering submodule, used to filter out interference signals in the echo signal according to the echo amplitude and duration;

[0070] The calculation submodule is used to calculate the number of valid echoes.

[0071] Furthermore, the filtering submodule includes:

[0072] An acquisition unit, used to acquire the amplitude value and duration of the echo and the oscillation time of the transducer itself;

[0073] A threshold calculation unit, used to calculate an amplitude threshold and a duration threshold through an algorithm;

[0074] The filtering unit is configured to filter out echoes whose amplitude is smaller than an amplitude threshold or whose duration is smaller than a duration threshold.

[0075] Example 3

[0076] A computer-readable storage medium according to the third embodiment of the present application stores program code for execution by a device, the program code including steps for executing the method in any one of the implementations of the first embodiment of the present application;

[0077] Among them, the computer-readable storage medium can be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM); the computer-readable storage medium can store program code, and when the program stored in the computer-readable storage medium is executed by the processor, the processor is used to execute the steps of the method in any one of the implementation methods in Example 1 of the present application.

[0078] Example 4

[0079] An electronic device according to the fourth embodiment of the present application includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the method in any one of the implementations of the first embodiment of the present application.

[0080] Among them, the processor can adopt a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the method in any one of the implementation methods in Example 1 of the present application.

[0081] The processor may also be an integrated circuit electronic device with signal processing capabilities. In the implementation process, each step of the method in any one of the implementation methods in the first embodiment of the present application may be completed by hardware integrated logic circuits in the processor or software instructions.

[0082] The above-mentioned processor can also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in combination with its hardware, completes the functions required to be executed by the units included in the data processing device of the embodiment of the present application, or executes the method in any one of the implementation methods in the first embodiment of the present application.

[0083] The above are only preferred specific implementations of this application; however, the scope of protection of this application is not limited thereto. Any person skilled in the art who, within the technical scope disclosed in this application, makes equivalent substitutions or modifications based on the technical solutions and improved concepts of this application shall be covered by the scope of protection of this application.

Claims

1. A method for measuring anti-interference of an ultrasonic level meter, characterized in that: The following steps are involved: S101, transmitting ultrasonic waves using the center frequency of the transducer as the measurement frequency to measure the liquid level, and identifying the number of valid echoes; S102, determining whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, returning to step S101; if the number of valid echoes is greater than 1, executing the next step; S103, performing a frequency shift on the current frequency, transmitting ultrasonic waves again at the shifted frequency to measure the liquid level, and identifying the number of valid echoes again; S104. Determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, return to step S103. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, transmit ultrasonic waves at the current frequency for liquid level measurement. If the number of valid echoes is 0, return to step S101.

2. The method for measuring anti-interference of an ultrasonic level meter according to claim 1, characterized in that: The identification of the number of valid echoes comprises the following steps: Convert the echo signal into a voltage signal; Continuously collect voltage signals and record the acoustic wave signals during the entire measurement process through voltage values; Filter out interference signals in echo signals based on echo amplitude and duration; Calculate the number of valid echoes.

3. The method for ultrasonic level meter measurement anti-interference according to claim 2, characterized in that: The filtering out interference signals in the echo signal according to the echo amplitude and duration includes: Obtain the amplitude value, duration of the echo and the time of the transducer's own oscillation; Calculate the amplitude threshold and duration threshold through the algorithm; Echoes with amplitudes less than the amplitude threshold or durations less than the duration threshold are filtered out.

4. The method for measuring anti-interference of an ultrasonic level meter according to claim 1, characterized in that: When the current frequency is shifted, the frequency is shifted by a predetermined offset value based on the current measured frequency each time.

5. The method for ultrasonic level meter measurement anti-interference according to claim 1, characterized in that: The maximum threshold of the frequency offset value is set according to the range and bandwidth of the transducer.

6. An ultrasonic level meter anti-interference measurement device, characterized in that: include: A liquid level measurement and identification module, wherein the liquid level measurement module is used to transmit ultrasonic waves using the transducer center frequency as the measurement frequency to measure the liquid level, and the identification module is used to identify the number of valid echoes; The first judgment module is used to judge whether the number of valid echoes is greater than 1. If the number of valid echoes is less than or equal to 1, the process returns to the liquid level measurement module; if the number of valid echoes is greater than 1, the process jumps to the offset module; The offset module is used to offset the current frequency, re-transmit ultrasonic waves at the offset frequency to measure the liquid level, and identify the number of valid echoes again; The second judgment module is used to determine whether the number of valid echoes is greater than 1 and whether the frequency offset value is less than the maximum threshold. If the number of valid echoes is greater than 1 and the frequency offset value is less than the maximum threshold, it returns to the offset module. If the number of valid echoes is 1 or the frequency offset value is greater than / equal to the maximum threshold, ultrasonic waves are emitted at the current frequency for liquid level measurement. If the number of valid echoes is 0, it returns to the liquid level measurement and identification module.

7. The ultrasonic level meter anti-interference measurement device according to claim 6, characterized in that: The identification module includes: A conversion submodule, used for converting the echo signal into a voltage signal; The acquisition submodule is used to continuously collect voltage signals and record the acoustic wave signals during the entire measurement process through voltage values; A filtering submodule, used to filter out interference signals in the echo signal according to the echo amplitude and duration; The calculation submodule is used to calculate the number of valid echoes.

8. The ultrasonic level meter anti-interference measurement device according to claim 7, characterized in that: The filtering submodule includes: An acquisition unit, used to acquire the amplitude value and duration of the echo and the oscillation time of the transducer itself; A threshold calculation unit, used to calculate an amplitude threshold and a duration threshold through an algorithm; The filtering unit is configured to filter out echoes whose amplitude is smaller than an amplitude threshold or whose duration is smaller than a duration threshold.

9. A computer-readable storage medium, characterized in that The computer-readable medium stores a program code for execution by a device, wherein the program code includes steps for executing the method according to any one of claims 1 to 5.

10. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method according to any one of claims 1 to 5 when executed by the processor.

Citation Information

Patent Citations

  • Anti-interference dynamic distance measuring method and dynamic accumulated water monitoring method

    CN112129379A

  • Small-blind-area wide-range ultrasonic liquid level measuring method

    CN115235582A