Liquid level measurement method and device, terminal equipment and computer readable storage medium
By analyzing the characteristics of the echo signal, the problem of low liquid level measurement accuracy in narrow environments is solved, effective removal of background clutter and measurement accuracy is improved.
Patent Information
- Application Number
- CN202411062856.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
AI Technical Summary
In narrow and long environments such as cellar wells and sewers, radar level measurement is caused by the background clutter caused by the reflected signals on the side wall, which reduces the measurement accuracy, and the existing hardware improvement methods cannot be effectively solved.
By analyzing the signal characteristics of the echo signal, determining the medium parameters, filtering out the echo signal of the medium as a liquid, echo signal of the wall reflected signal, and thus improving the accuracy of liquid level measurement.
Without improving the radar antenna hardware design, the impact of background clutter on the liquid level measurement results is reduced and the accuracy of liquid level measurement is improved.
Smart Images

Figure CN118882779A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of liquid level measurement technology, and in particular to a liquid level measurement method, device, terminal equipment and computer-readable storage medium. Background Art
[0002] Liquid level measurement technology is widely used in various industrial and agricultural scenarios and is an important technical component of automated control systems. Liquid level measurement based on antenna radar is a non-contact measurement method. Its principle is to convert distance measurement into the measurement of electromagnetic wave propagation time. Because radar liquid level measurement is non-contact, it can replace manual continuous measurement in high temperature, high pressure, dust and other scenarios.
[0003] In the related art, the clutter interference problem in the measurement process is generally solved by improving the hardware design of the radar antenna. However, for narrow and long measurement environments such as cellars and sewers, due to the small measurement space, the side walls will inevitably reflect the signal during the measurement process to form background clutter. The background clutter from the side walls cannot be effectively shielded by improving the hardware, resulting in a decrease in the accuracy of the liquid level measurement. Summary of the invention
[0004] The embodiments of the present application provide a liquid level measurement method, apparatus, terminal device, and computer-readable storage medium, which can solve the problem of low liquid level measurement accuracy in the related art.
[0005] In a first aspect, an embodiment of the present application provides a liquid level measurement method, comprising:
[0006] Acquire an echo signal reflected by the liquid surface to be measured in response to the incident signal, and store the acquired echo signal in an echo signal set;
[0007] For each echo signal, according to the signal characteristics of the corresponding echo signal, determine the medium parameter of the corresponding echo signal, the medium parameter is used to indicate the reflection medium that reflects the corresponding echo signal, and the reflection medium includes liquid and wall;
[0008] From the echo signal set, a first echo signal whose medium parameter satisfies a first screening condition is screened, wherein the medium parameter satisfies the first screening condition includes: the reflecting medium indicated by the medium parameter is liquid;
[0009] The liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the first echo signal.
[0010] Furthermore, after filtering the first echo signal whose medium parameter satisfies the first filtering condition from the echo signal set, the method further includes:
[0011] For each first echo signal, determine a signal parameter of the corresponding first echo signal according to a signal feature of the corresponding first echo signal, the signal parameter including at least one of the following: a signal reflection source point, a signal reflection angle, a signal strength, and a signal amplitude;
[0012] determining, according to the signal parameters, whether each first echo signal satisfies a second screening condition, and determining the first echo signal satisfying the second screening condition as the second echo signal;
[0013] Determining the liquid level height of the liquid surface to be measured according to the frequency characteristics of the first echo signal includes:
[0014] The liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the second echo signal.
[0015] Further, determining whether each first echo signal satisfies a second screening condition according to the signal parameter includes:
[0016] For each first echo signal, determining a propagation path of the corresponding first echo signal according to a signal reflection source point and / or a signal reflection angle of the corresponding first echo signal;
[0017] In a case where the propagation path of the corresponding first echo signal belongs to the angular coverage area of the radar, it is determined that the corresponding first echo signal satisfies the second screening condition.
[0018] Further, determining whether each first echo signal satisfies a second screening condition according to the signal parameter includes:
[0019] In the case where the signal amplitude difference of the corresponding first echo signal is greater than a preset difference threshold, determining that the corresponding first echo signal meets the second screening condition;
[0020] The signal amplitude difference is the difference between the first echo signal and the signal amplitude mean, and the signal amplitude mean is the mean of the signal amplitudes of the echo signals in the echo signal set.
[0021] Furthermore, the signal parameters also include signal frequency;
[0022] Determining whether each first echo signal satisfies a second screening condition according to the signal parameter includes:
[0023] For each first echo signal, determining a measurement distance of the first echo signal according to a signal frequency of the corresponding first echo signal;
[0024] Determine the reflection offset value of the corresponding first echo signal according to the measurement distance, the signal reflection angle and the assembly data of the radar;
[0025] When the reflection offset value of the corresponding first echo signal is less than the preset offset threshold, it is determined that the corresponding first echo signal meets the second screening condition.
[0026] Further, determining the liquid level height of the liquid surface to be measured according to the frequency characteristics of the second echo signal includes:
[0027] determining a signal spectrum of the second echo signal according to a frequency characteristic of the second echo signal;
[0028] The signal spectrum is calibrated according to a preset rule to obtain a calibrated signal spectrum, wherein the preset rule is adapted to a scenario of measuring the liquid level to be measured;
[0029] Determine the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum;
[0030] According to the frequency center, determine the liquid level height of the liquid to be measured.
[0031] Further, determining the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum includes:
[0032] Determine the peak value of the spectrum line energy of the calibration signal spectrum according to the energy value of each spectrum line in the calibration signal spectrum;
[0033] Determine the initial frequency peak value according to the spectrum line energy peak value and the preset coefficient;
[0034] Determine a target spectral line adjacent to the initial frequency peak, and obtain a spectral line energy value of the target spectral line;
[0035] Determine the center frequency range according to the spectral line energy value and the sampling data of the calibration signal spectrum;
[0036] According to the center frequency range, the frequency center of the calibration spectrum signal is determined.
[0037] In a second aspect, an embodiment of the present application provides a liquid level measuring device, comprising:
[0038] An acquisition unit, used for acquiring an echo signal reflected by the liquid surface to be measured in response to the incident signal, and storing the acquired echo signal in an echo signal set;
[0039] A medium parameter determination unit, for determining a medium parameter of each echo signal according to a signal feature of the corresponding echo signal, wherein the medium parameter is used to indicate a reflection medium that reflects the corresponding echo signal, and the reflection medium includes a liquid and a wall;
[0040] A screening unit, configured to screen, from the echo signal set, a first echo signal whose medium parameter satisfies a first screening condition, wherein the medium parameter satisfies the first screening condition comprises: the reflecting medium indicated by the medium parameter is liquid;
[0041] The liquid level determination unit is used to determine the liquid level of the liquid surface to be measured according to the frequency characteristics of the first echo signal.
[0042] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect above when executing the computer program.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the first aspect above is implemented.
[0044] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0045] Compared with the related art, the embodiments of the present application have the following beneficial effects: the medium parameters of the echo signal are determined by the signal characteristics of the echo signal, the echo signal of the reflecting medium indicated by the medium parameters as liquid is determined as the first echo signal, and the liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the first echo signal. The first echo signal of the reflecting medium as liquid can be screened out from the echo signal set based on the medium parameters determined by the signal characteristics, thereby eliminating the background clutter in the echo signal set. Without improving the hardware design of the radar antenna, the influence of the background clutter from the wall on the liquid level measurement result is reduced, which helps to improve the accuracy of the liquid level measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. 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 paying creative work.
[0047] Figure 1 is a flow chart of a liquid level measurement method provided in an embodiment of the present application;
[0048] Figure 2 is a flow chart of a liquid level measurement method provided in an embodiment of the present application;
[0049] Figure 3 is a flow chart of a liquid level measurement method provided in an embodiment of the present application;
[0050] Figure 4 is a structural block diagram of a liquid level measuring device provided in an embodiment of the present application;
[0051] Figure 5 It is a structural block diagram of a liquid level measurement terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0053] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0054] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0055] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0056] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0057] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0058] The execution subject of the liquid level measurement method provided in the embodiment of the present application can be a computing service device with data processing, network communication and program running functions, or an electronic device, liquid level measurement device, computer, radar device, etc. capable of realizing the above functions. The following takes the execution subject as a radar device as an example to illustrate the various embodiments of the present application.
[0059] See also Figure 1 , Figure 1 A flow chart of a liquid level measurement method provided in an embodiment of the present application is shown, including:
[0060] Step 101: The radar device obtains an echo signal reflected by the liquid surface to be measured in response to an incident signal, and stores the obtained echo signal in an echo signal set.
[0061] The liquid surface to be measured may be the surface of the liquid whose liquid level needs to be measured. The incident signal may be a signal emitted by a radar antenna for measuring the liquid level. The echo signal may be a signal returned after the incident signal emitted by the radar antenna interacts with the object. The echo signal set is a collection of echo signals.
[0062] In practice, radar equipment can obtain the echo signal reflected by the liquid surface to be tested in response to the incident signal in a variety of ways.
[0063] In one example, data of the echo signal of the liquid level to be measured in response to the incident signal is stored in a storage device. The radar device acquires the echo signal from the storage device and stores the acquired echo signal in an echo signal set.
[0064] In another example, during the process of measuring the liquid level of the liquid to be measured, the radar device transmits an incident signal to the liquid to be measured and receives a reflected signal returned after interacting with an object. The radar device detects an array beat signal between the incident signal and the reflected signal. If the array beat signal is detected to meet a preset echo signal condition, the reflected signal is stored as an echo signal in the echo signal set.
[0065] Step 102 : The radar device determines the medium parameters of each echo signal according to the signal characteristics of the corresponding echo signal.
[0066] The medium parameter is used to indicate the reflection medium that reflects the corresponding echo signal, and the reflection medium includes liquid and wall.
[0067] Among them, signal characteristics can refer to parameters or attributes that can characterize signal characteristics. These parameters or attributes can reflect the characteristics of the signal in terms of time, frequency, amplitude, phase, etc. Signal characteristics include time domain characteristics and frequency domain characteristics of the signal.
[0068] In practice, for each echo signal, the radar device can determine the medium parameters of the echo signal in a variety of ways.
[0069] As an example, the radar device can search for a signal feature that matches the signal feature of the current echo signal from a pre-stored signal feature-medium parameter correspondence, and determine the medium parameter corresponding to the found matching signal feature as the medium parameter of the current echo signal.
[0070] As another example, the radar device may first determine the reflection angle, signal strength, and signal amplitude of the echo signal based on the signal characteristics of the echo signal. Afterwards, the radar device may input the determined reflection angle, signal strength, and signal amplitude of the echo signal into a predetermined predicted reflectivity formula to obtain a predicted reflectivity, and determine the predicted reflectivity as the medium parameter of the echo signal.
[0071] Among them, the radar device can adopt the method disclosed in the relevant technology to determine the method of obtaining the reflection angle, signal strength and signal amplitude of the echo signal. For example, the echo signal can be first subjected to a fast Fourier transform to obtain the signal strength and signal amplitude of the echo signal. Then, by utilizing the characteristic that the signal subspace and the noise subspace of the echo signal are orthogonal, the signal reflection angle of the echo signal is obtained by spectrum peak search. It can be understood that the embodiment of the present application does not specifically limit how to determine the reflection angle, signal strength and signal amplitude of each echo signal.
[0072] The process of determining the predetermined predicted reflectivity formula may be as follows: Measure the liquid level in advance and obtain multiple sample echo signals during the measurement process. Perform a fast Fourier transform on each sample echo signal to obtain the sample signal intensity and sample signal amplitude of the sample echo signal. Then, for each sample echo signal, utilize the orthogonal characteristics of the signal subspace and the noise subspace to obtain the sample signal reflection angle of the sample echo signal through spectral peak search. Finally, perform data fitting on the sample signal intensity, sample signal amplitude and sample signal reflection angle to obtain the above-mentioned predicted reflectivity formula.
[0073] Step 103: The radar device selects a first echo signal whose medium parameter satisfies a first screening condition from the echo signal set.
[0074] The medium parameter satisfies the first screening condition, which includes: the reflective medium indicated by the medium parameter is liquid.
[0075] It should be noted that the reflectivity of the incident signal emitted by the radar antenna on the surface of the reflective medium is related to the dielectric constant of the reflective medium. A reflective medium with a larger dielectric constant absorbs more electromagnetic waves, resulting in an increase in reflectivity. The dielectric constant of a liquid is larger than that of other objects, so the reflectivity of the liquid surface is higher than that of other objects. The liquid surface generally fluctuates, while the objects that interfere with the level measurement are mostly stationary. Static interference can be identified based on radar recognition and target detection. The Doppler shift of a dynamically flowing object will fluctuate, and there is a certain correlation between the signal strength and the fluctuation. Combining the above two methods, it is possible to analyze whether the object is stationary or moving. In scenes such as open channels and rivers, the reflectivity of the wall is small, and the reflected echo signal of the radar antenna is weak. A function that reflects the reflectivity of an object is constructed by signal strength, signal amplitude, and signal reflection angle. Substituting the relevant parameters of the echo signal into the function can obtain the predicted reflectivity of the reflecting object. The predicted reflectivity is used as the medium parameter of the echo signal. According to the relationship between the predicted reflectivity and the preset reflectivity threshold, it is determined whether the reflecting medium indicated by the medium parameter is a liquid surface. If it is a liquid surface, the echo signal is determined as the first echo signal. If it is not a liquid surface, the echo signal is discarded. In the above manner, it can be determined whether the measured liquid is dry. If it is identified that the measured liquid is dry, the echo signal is assumed to have poor quality, and the echo signal with poor quality is discarded. It can reduce the interference of the echo signal reflected from the dry area on the liquid level measurement, which helps to further improve the accuracy of the liquid level measurement.
[0076] Step 104: The radar device determines the liquid level height of the liquid to be measured according to the frequency characteristics of the first echo signal.
[0077] The frequency characteristic may be a characteristic of a signal in the frequency domain. The liquid level may be a height difference between a liquid surface to be measured and a reference plane. The liquid level may be measured by the distance between the liquid surface and the radar.
[0078] As an example, the radar device can search for a frequency feature that matches the frequency feature of the current first echo signal from a pre-stored frequency feature-height correspondence, and determine the height corresponding to the found matching frequency feature as the liquid level height of the liquid to be measured.
[0079] In one example, the radar device constructs a signal spectrum of the first signal according to the frequency characteristics of the first signal. The center frequency of the first signal is obtained from the spectrum of the first signal. The radar device searches for a frequency matching the center frequency of the current first echo signal from a pre-stored frequency-distance correspondence, and determines the height of the liquid level to be measured by the distance corresponding to the found matching frequency.
[0080] In some optional implementations, after step 103, it also includes: the radar device determines, for each first echo signal, a signal parameter of the corresponding first echo signal according to the signal characteristics of the corresponding first echo signal, the signal parameters including at least one of the following: a signal reflection source point, a signal reflection angle, a signal strength and a signal amplitude; the radar device determines, based on the signal parameters, whether each first echo signal satisfies a second filtering condition, and determines the first echo signal that satisfies the second filtering condition as the second echo signal; the radar device determines the liquid level height of the liquid surface to be measured based on the frequency characteristics of the first echo signal, including: the radar device determines the liquid level height of the liquid surface to be measured based on the frequency characteristics of the second echo signal.
[0081] Among them, the signal parameter can be a quantitative index describing the characteristics and properties of the signal. The signal reflection source point can be the point where the object reflects the incident signal. The signal reflection angle can be the angle between the propagation path of the echo signal and the vertical direction.
[0082] In one example, first, the radar device determines the medium parameter of the echo signal according to the signal characteristics of the echo signal. If the medium parameter of the echo signal indicates that the reflecting medium is a liquid, the corresponding echo signal is determined as the first echo signal. Otherwise, the corresponding echo signal is eliminated. Secondly, the radar device performs a fast Fourier transform on the first echo signal according to the signal characteristics of the first echo signal, and obtains the signal strength and signal amplitude of the first echo signal according to the data after the Fourier transform. The measurement distance of the first echo signal is determined according to its signal frequency. The signal reflection source point can be determined according to the measured distance and the signal reflection angle. If the first echo signal is determined to meet the second screening condition according to the signal reflection source point, signal amplitude and / or signal strength, the first echo signal is determined as the second echo signal. Among them, the scheme disclosed in the relevant technology can be used to determine the signal amplitude, signal strength, signal reflection source point and signal reflection angle of the echo signal.
[0083] In some optional implementations, the radar device determines whether each first echo signal satisfies the second filtering condition based on the signal parameters, which can be achieved in the following manner: the radar device determines, for each first echo signal, a propagation path of the corresponding first echo signal based on the signal reflection source point and / or signal reflection angle of the corresponding first echo signal; the radar device determines that the corresponding first echo signal satisfies the second filtering condition when the propagation path of the corresponding first echo signal belongs to the angular coverage area of the radar.
[0084] The propagation path may be the path of the echo signal from the signal reflection source point back to the radar antenna. The angular coverage area may be the area covered by the main beam angle of the radar antenna. The main beam angle of the radar antenna refers to the angle from the extension line of the central axis of the radar antenna to the point where the energy intensity is reduced by half (-3dB). This angle reflects the main lobe width of the radar beam.
[0085] In one example, first, the radar device determines the measurement distance corresponding to the first echo signal according to the signal frequency of the first echo signal and the corresponding relationship between the frequency and the distance for each first echo signal. The radar device estimates the echo direction of the first echo signal to obtain the signal reflection angle of the echo signal. Secondly, the radar device multiplies the measured distance by the sine value of the signal reflection angle to obtain the vertical distance between the signal reflection source point and the radar installation point. Thirdly, the radar device can draw the propagation path of the first echo signal according to the measured distance, the signal reflection angle and the vertical distance, and judge whether the propagation path of the first echo signal belongs to the angle coverage area of the radar through the vertical distance and the installation distance between the installation point of the radar antenna and the side wall. Determining whether the propagation path of the first echo signal belongs to the angle coverage area of the radar specifically includes: if the vertical distance is less than the installation distance, it is determined that the propagation path is within the angle coverage area of the radar, that is, the corresponding first echo signal meets the second screening condition. If the vertical distance is greater than or equal to the installation distance, it is determined that the propagation path is outside the angle coverage area of the radar, that is, the corresponding first echo signal does not meet the second screening condition. Since the radius of the coverage area of the radar's main beam angle is generally smaller than the installation distance between the installation point of the radar antenna and the side wall, if the vertical distance is greater than or equal to the installation distance, it can be determined that the signal reflection source point is outside the angle coverage area, and the corresponding propagation path is also outside the angle coverage area, so the corresponding echo signal is determined to be an interference signal. In this way, the interference echo signal outside the angle coverage area can be eliminated, which helps to further improve the accuracy of liquid level measurement.
[0086] In another example, first, the radar device uses a multi-signal classification algorithm to construct a noise space using the orthogonality of the signal subspace and the noise subspace. Then, the radar device retrieves the maximum value of the power spectrum function of the first echo signal through a spectrum peak search to obtain the signal reflection angle of the first echo signal, and uses the signal reflection angle of the first echo signal as the propagation path of the first echo signal. Finally, the radar device inputs the horizontal 3dB beam angle and signal reflection angle of the radar antenna into formula 1. If the output result is less than 0, it is determined that the propagation path is within the angular coverage area of the radar. That is, the corresponding first echo signal meets the second screening condition. If the output result is greater than 0, it is determined that the propagation path is outside the angular coverage area of the radar. That is, the corresponding first echo signal does not meet the second screening condition. The first echo signal in the angular coverage area is determined as the second echo signal.
[0087]
[0088] Where, y is the angle difference. φ is the radar horizontal 3dB beam angle. θ p is the signal reflection angle, |θ p | is the absolute value of the signal reflection angle.
[0089] It can be understood that the problem of distinguishing valid signals from all echo signals can be considered as a hypothesis testing problem. For the problem of distinguishing valid signals, at least one of the following two assumptions is valid: (1) The echo signal is a valid echo signal (H0) for liquid level measurement, and the valid echo signal can also be called the first echo signal. (2) The echo signal is a liquid level measurement interference signal (H1). When performing liquid level measurement, it can be considered that the incident signal of the radar antenna is not affected by environmental interference, and its incident signal is directly reflected by the liquid surface to be measured and then returned to the radar antenna. The signal directly returned by the liquid surface is a valid signal. However, due to the influence of the installation environment, the signal reflected by multiple refractions or other interference objects is a measurement interference signal. In this embodiment, the propagation path of the first echo signal is determined by the signal reflection source point and / or signal reflection angle of the first echo signal. When the propagation path is within the angle coverage area, it is determined that the first echo signal meets the second screening condition, so that the corresponding first echo signal is screened out as the second echo signal. When the propagation path is outside the angle coverage area, it is determined that the first echo signal does not meet the second screening condition, so that the first echo signal is filtered out. The interference signal of the liquid level measurement can be eliminated based on the propagation path of the first echo signal, which helps to further improve the accuracy of the liquid level measurement.
[0090] It should be noted that when the equipment is affected by multiple refracted echo signals, it is easy to cause the empty height distance h from the radar antenna to the liquid surface to be measured. v >hr d×tan(φ÷2). When the device is disturbed by the surrounding objects, it will cause the empty height distance h v ≤hr d ×tan(φ÷2). Among them, h v is the air height distance. h is the installation height of the radar antenna. d The horizontal width without any obstruction below. tan is the tangent function. φ is the 3dB horizontal beam angle of the radar. The above interference will cause the measured liquid level to jump, resulting in unstable data. In the process of liquid level measurement, it can be considered that most of the liquid surface to be measured is covered by the main beam of the radar, and the effective measurement point exists in the liquid surface to be measured covered by the main beam. Therefore, by judging the signal direction angle of the first echo signal, the source direction of the first echo signal can be identified. According to the source direction of the first echo signal, it is judged whether the first echo signal meets the second screening condition, so as to filter out the interference signal that does not meet the second screening condition. It can further reduce the influence of interference signals on the measurement results, which helps to further improve the accuracy of liquid level measurement.
[0091] In some optional implementations, the above-mentioned determination of whether each first echo signal meets the second filtering condition based on the signal parameters can also be implemented as follows: the radar device determines that the corresponding first echo signal meets the second filtering condition when the signal amplitude difference of the corresponding first echo signal is greater than a preset difference threshold; wherein the signal amplitude difference is the difference between the first echo signal and the signal amplitude mean, and the signal amplitude mean is the mean of the signal amplitudes of each echo signal in the echo signal set.
[0092] The preset difference threshold may be a threshold determined according to a preset temperature compensation threshold function and the temperature of the environment in which the radar is located. The temperature compensation threshold function may be constructed by data fitting. Specifically, a liquid level measurement experiment may be conducted in advance. In the process of conducting the liquid level measurement experiment, the temperature of the environment in which multiple radars are located and the threshold set at the temperature are obtained. The temperature and the threshold are fitted to obtain a temperature threshold compensation function.
[0093] As an example, first, the radar device calculates the mean of the signal amplitude according to the signal amplitude of each first echo signal. Then, the radar device obtains the temperature of the environment through the temperature sensor, searches for the temperature that matches the current temperature in the pre-stored temperature-amplitude difference threshold correspondence, and determines the amplitude difference threshold corresponding to the matched temperature as the preset difference threshold. Finally, the radar device subtracts the mean of the signal amplitude from the signal amplitude of the first echo signal to obtain the signal amplitude difference. If the signal amplitude difference is greater than the preset difference threshold, it is determined that the first echo signal meets the second screening condition, and the first echo signal is determined as the second echo signal.
[0094] As another example, the radar device calculates the mean of the signal amplitudes based on the signal amplitudes of each echo signal in the echo signal set. Afterwards, the radar device obtains the temperature of the environment in which it is located, and inputs the temperature into the temperature compensation threshold function to obtain a preset difference threshold. Finally, for each first echo signal, the radar device subtracts the mean of the signal amplitudes from the signal amplitude of the corresponding first echo signal to obtain a signal amplitude difference. If the signal amplitude difference is greater than the preset difference threshold, it is determined that the corresponding first echo signal meets the second screening condition, thereby determining the corresponding first echo signal as the second echo signal. Otherwise, the corresponding first echo signal is eliminated.
[0095] It should be noted that the radar antenna is installed at the top of the application scenarios such as drainage pipes, manholes, and machine wells. The main beam of the radar antenna is generally facing the liquid surface to be measured. The flatter the surface of the medium to be measured, the greater its dielectric constant, and the more conducive it is to echo reflection. If the main beam angle covers the liquid surface to be measured, the signal amplitude of the echo signal is large. If the main beam angle covers a part of other objects, the corresponding echo signal has a small signal amplitude. Therefore, the noise signal below the threshold can be filtered out by the size of the signal amplitude, thereby improving the quality of the echo signal. Due to the influence of ambient temperature, the amplitude of the echo signal will change with the change of temperature. Therefore, when setting the threshold, it is necessary to combine the ambient temperature collected by the temperature sensor, and dynamically adjust the preset difference threshold by temperature compensation, which can reduce the influence of ambient temperature on the accuracy of data rejection, and help to further improve the quality of the echo signal.
[0096] The method provided in this embodiment determines the medium parameters of the echo signal through the signal characteristics, determines the echo signal of the reflecting medium indicated by the medium parameters as liquid as the first echo signal, and determines the liquid level height of the liquid surface to be measured according to the frequency characteristics of the first echo signal. Based on the medium parameters determined by the signal characteristics, the first echo signal of the reflecting medium as liquid can be screened out from the echo signal set, thereby eliminating the background clutter in the echo signal set. Without improving the hardware design of the radar antenna, the influence of the background clutter from the wall on the liquid level measurement result is reduced, which helps to improve the accuracy of the liquid level measurement.
[0097] In the optional implementation of each embodiment of the present application, the signal parameter also includes the signal frequency. According to the signal parameter, determining whether each first echo signal meets the second screening condition can be implemented by the following steps: Step 1031-Step 1033. Figure 2 A flow chart for implementing the liquid level measurement method provided in an embodiment of the present application.
[0098] Step 1031 : The radar device determines, for each echo signal, a measurement distance and a signal reflection angle corresponding to the echo signal according to the time-frequency characteristics of the corresponding echo signal.
[0099] The time-frequency characteristics of the signal may be distribution characteristics of the signal in two dimensions of time and frequency. The measured distance may be the measured distance between the signal emission point and the signal reflection point.
[0100] As an example, for each echo signal, the radar device first searches for a frequency feature that matches the current echo signal in a pre-stored time-frequency feature-distance-angle correspondence relationship based on the time-frequency feature of the corresponding echo signal. Then, the distance corresponding to the found matching time-frequency feature is determined as the measured distance of the echo signal. The angle corresponding to the found matching time-frequency feature is determined as the signal reflection angle of the echo signal.
[0101] As another example, the radar device extracts the signal frequency of the echo signal from the time-frequency characteristics of the echo signal. Based on the signal frequency and the correspondence between frequency and distance, the measurement distance corresponding to the echo signal is found. Then, the radar device uses a multi-signal classification algorithm to construct a noise space using the orthogonality of the signal subspace and the noise subspace, and then obtains the signal reflection angle of the echo signal through a spectrum peak search.
[0102] Step 1032: The radar device determines a reflection offset value of a corresponding first echo signal according to the measured distance, the signal reflection angle, and radar assembly data.
[0103] The assembly data may be the installation data of the radar antenna on the vertical pole, and the assembly data includes: the offset distance between the radar observation point and the vertical pole and the distance error caused by the installation, and the distance error item caused by the installation can be preset. The reflection offset value is the distance value between the reflection source point of the echo signal and the installation point of the radar.
[0104] In one example, the radar device multiplies the measured distance by the sine value of the signal reflection angle to obtain the vertical distance between the reflection source point of the echo signal and the radar observation point, and subtracts the offset distance between the radar measurement point and the vertical pole from the vertical distance to obtain the reflection offset value of the echo signal.
[0105] In another example, the radar device uses the offset distance between the radar observation point and the vertical pole minus the distance error term caused by the installation to obtain the offset distance calibration value. The vertical distance between the reflection source point of the echo signal and the radar observation point minus the offset distance calibration value to obtain the reflection offset value of the echo signal.
[0106] Step 1033: When the reflection offset value of the corresponding first echo signal is less than a preset offset threshold, the radar device determines that the corresponding first echo signal satisfies the second screening condition.
[0107] In one example, when the reflection offset value is greater than 0, the radar device determines that the echo signal is a signal reflected by an interference object, and accordingly determines that the first echo signal does not meet the second screening condition. When the reflection offset value is less than or equal to 0, the radar device determines that the echo signal is a signal reflected by the liquid surface to be measured. Accordingly, it is determined that the first echo signal meets the second screening condition. Interference objects include walls, silt, weeds, etc.
[0108] It should be noted that the second screening condition includes at least one of the following: (1) the propagation path of the echo signal belongs to the angular coverage area of the radar. (2) the signal amplitude difference of the echo signal is greater than a preset difference threshold. (3) the reflection offset value of the echo signal is less than a preset offset threshold. Assuming that the second screening condition includes multiple items, there is no order of precedence between the conditions.
[0109] In one example, first, for each echo signal in the echo signal set, the radar device substitutes the signal strength, signal amplitude and signal reflection angle of the corresponding echo signal into a function reflecting the reflectivity of the object to obtain a predicted reflectivity representing the medium parameter. If the predicted reflectivity is greater than the preset reflectivity threshold, it is determined that the reflecting medium indicated by the medium parameter is a liquid, so that the echo signal is regarded as the first echo signal. Otherwise, the echo signal is removed. Secondly, the radar device determines the measurement distance according to the signal frequency of the first echo signal, and obtains the vertical distance between the first echo signal and the radar observation point by multiplying the measurement distance with the absolute value of the sine value of the signal reflection angle. The offset calibration distance is obtained by subtracting the distance error term generated by the installation from the offset distance between the radar observation point and the vertical pole. If the vertical distance is greater than or equal to the offset calibration distance, it is determined that the first echo signal does not meet the second screening condition, so that the first echo signal is removed as an interference signal. If the vertical distance is less than the offset calibration distance, it is determined that the first echo signal meets the second screening condition, so that the first echo signal is retained. Again, for each retained first echo signal, the radar device subtracts the absolute value of the signal reflection angle from half of the radar horizontal 3dB beam angle. If the result is less than 0, it is determined that the echo signal is within the radar's angular coverage area, that is, the first echo signal meets the second screening condition, so that the corresponding first echo is retained. Otherwise, the corresponding echo signal is removed. Then, for each retained first echo signal, the radar device calculates the mean of the signal amplitude according to the signal amplitude of each signal. The signal amplitude difference is obtained by subtracting the mean of the signal amplitude from the signal amplitude of each signal. If the signal amplitude difference is greater than the preset difference threshold, it is determined that the corresponding first echo signal meets the second screening condition, so that the corresponding echo signal is retained. Otherwise, the corresponding echo signal is removed. Finally, for the retained first echo signal, the radar device obtains the maximum signal strength and the minimum signal strength. If the difference between the maximum signal strength and the minimum signal strength is less than the preset signal strength threshold, the remaining first echo signal is determined to be the second echo signal. Otherwise, the remaining first echo signal is discarded. Since the distribution of the echo signal will also change when the liquid level changes, but the liquid level will only change to a limited extent during the accumulation time. Therefore, when the change in the echo signal intensity does not exceed the preset signal intensity threshold, it can be determined that the echo signal is a signal reflected by the liquid surface, thereby filtering out the measurement influence caused by the interference of the liquid surface change, which helps to further improve the accuracy of the liquid level measurement. There is no strict order between the above steps, and they can be adjusted according to the specific scenario, and this embodiment does not limit this.
[0110] The method provided in this embodiment determines the measurement distance and signal reflection angle of the echo signal through the time-frequency characteristics of the signal. According to the signal reflection angle, the measurement distance and the assembly data of the radar, the reflection offset value of the corresponding echo signal is determined. When the signal offset value is less than the preset offset threshold, it is determined that the first echo signal meets the second screening condition, so that the corresponding echo signal is retained. Since the signal offset value can reflect the distance between the reflection source point of the echo signal and the installation point of the radar, when the distance is too large, it indicates that the echo signal is not a signal reflected by the liquid surface, so that the echo signal reflected by objects outside the liquid surface can be eliminated, which helps to further improve the accuracy of liquid level measurement.
[0111] In the optional implementation of each embodiment of the present application, the above step 104 may include the following steps: step 1041-step 1044. Among them, Figure 3 A flow chart for implementing the liquid level measurement method provided in an embodiment of the present application.
[0112] Step 1041: The radar device determines a signal spectrum of the second echo signal according to a frequency characteristic of the second echo signal.
[0113] The frequency feature may be a distribution feature of a signal at different frequencies.
[0114] Step 1042: The radar device calibrates the signal spectrum according to a preset rule to obtain a calibrated signal spectrum. The preset rule is adapted to the scenario of measuring the liquid level to be measured.
[0115] The preset rule may be a preset rule for calibrating the spectrum, for example, the preset rule may be a calibration curve, a calibration parameter, etc. The corresponding preset rule may be preset according to different scenarios of measuring the liquid level to be measured.
[0116] In one example, the radar device determines a calibration curve corresponding to a scenario of measuring a liquid level to be measured, and multiplies a signal spectrum with data in the calibration curve to obtain a calibration signal spectrum.
[0117] Step 1043: The radar device determines the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum.
[0118] Among them, the spectrum line refers to the lines in the spectrum graph that represent different frequency components. In spectrum analysis, each line representing a specific frequency and amplitude is called a spectrum line. They reflect the frequency components of the signal and their relative strength. The length or height of the spectrum line (i.e. the value of the ordinate) can indirectly indicate the signal amplitude or power at that frequency. The higher the amplitude of the spectrum line, the stronger the signal energy at that frequency.
[0119] In one example, the radar device determines the energy peak of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum. The energy peak is multiplied by a preset coefficient to obtain the energy value of the initial spectral line. The adjacent spectral lines of the spectral line where the energy value of the initial spectral line is located are determined. The frequency range is determined according to the magnitude relationship between the energy values of the adjacent spectral lines. The frequency mean of the start frequency and the end frequency of the frequency range is determined as the frequency center of the calibration signal spectrum.
[0120] In another example, the radar device searches for an energy peak value from the energy values of each spectrum line in the calibration signal spectrum, searches for a frequency corresponding to the energy peak value in the calibration signal spectrum, and uses the frequency as the frequency center of the calibration signal spectrum.
[0121] Step 1044: The radar device determines the liquid level height of the liquid to be measured based on the frequency center.
[0122] In some optional implementations, the above-mentioned step 1043 can be implemented as follows: the radar device determines the spectral line energy peak of the calibration signal spectrum based on the energy value of each spectral line in the calibration signal spectrum; the radar device determines the initial frequency peak based on the spectral line energy peak and a preset coefficient; the radar device determines the target spectral line adjacent to the initial frequency peak, and obtains the spectral line energy value of the target spectral line; the radar device determines the center frequency range based on the spectral line energy value and the sampling data of the calibration signal spectrum; the radar device determines the frequency center of the calibration spectrum signal based on the center frequency range.
[0123] The peak value of the spectral line energy may be the maximum value of the spectral line energy in the spectrum. The preset coefficient may be pre-set, and the preset coefficient is a decimal greater than 0 and less than 1. The target spectral line includes a first target spectral line and a second target spectral line. The sampling data is to obtain a series of discrete numerical data by sampling a continuous signal within a specific time or space interval. The sampling data includes a sampling rate and a number of sampling points. The center frequency range may be the frequency interval where the center frequency is located.
[0124] In one example, the radar device constructs a signal spectrum of the second echo signal according to the frequency characteristics of the second echo signal. A preset calibration curve adapted to the current measurement scenario is obtained, and the data in the preset calibration curve is multiplied by the signal spectrum to obtain the calibration signal spectrum. According to the energy value of each spectral line in the calibration signal spectrum, the spectral line energy peak is determined. The spectral line energy peak is multiplied by a preset coefficient to obtain an initial frequency peak q. The first target spectral line q-1 and the second target spectral line q+1 adjacent to the initial frequency peak q are determined. Starting from the initial frequency peak q, a center point of spectrum condensation is established, and the center of the spectrum centroid is updated by comparing the energy of q-1 with the energy of q+1, so as to suppress the interference of the local extreme value of the noise signal. If the energy of the spectral line q-1 is greater than or equal to the energy of the spectral line q+1, the probability that the frequency center point of the second echo signal falls between the spectral line q-1 and the spectral line q is greater than the probability that it falls between the spectral line q and the spectral line q+1, and vice versa. The frequency range of the spectrum center is determined in the above manner. Specifically, when the energy of q-1 is greater than or equal to the energy of q+1, the spectrum refinement range, i.e., the frequency range, is determined as: [fpeak-p×f s ÷N,fpeak+(1-p)×f s ÷N]. When the energy of q-1 is less than the energy of q+1, the spectrum refinement range, i.e., the frequency range, is determined as: [fpeak-(1-p)×f s ÷N,fpeak+p×f s ÷N]. Among them, fpeak is the maximum peak frequency. p represents the range of regional probability values, and the value of p is generally 0.5 to 1. fs is the sampling rate. N is the number of sampling points. After determining the center frequency range, the radar equipment sets the required frequency range near the main frequency point, performs Chirp-Z transform on the spectrum within the selected frequency range based on the energy center of gravity characteristics, refines the spectrum signal for the frequency in the specified range of the selected centroid, and calculates the corresponding spectrum. The frequency center of the signal is obtained from the spectrum, and the measurement distance is determined based on the correspondence between the frequency center and the frequency distance. The measurement distance is determined as the height of the liquid level to be measured. Compared with the spectrum obtained by directly using the FFT algorithm, the refined spectrum after Chirp-Z transform can more accurately determine the main frequency, so the accuracy of liquid level measurement can be further improved.
[0125] The method provided in this embodiment calibrates the signal spectrum by a preset rule adapted to the scene of the liquid level to be measured, and obtains a calibrated signal spectrum. The signal spectrum can be calibrated according to different scenes, thereby reducing the measurement error caused by the difference between different scenes. Determining the frequency center according to the energy value of each spectral line in the calibration signal spectrum helps to improve the accuracy of the main frequency, thereby further improving the accuracy of the liquid level measurement.
[0126] See also Figure 4 , Figure 4 4 is a structural block diagram of a liquid level measuring device 400 provided in an embodiment of the present application. In this embodiment, the liquid level measuring device includes various units for executing Figure 1-Figure 3 For details, please refer to the steps in the corresponding embodiment. Figure 1-Figure 3 as well as Figure 1-Figure 3 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 4 , the liquid level measuring device 400 comprises:
[0127] An acquisition unit 401 is used to acquire an echo signal reflected by the liquid surface to be measured in response to the incident signal, and store the acquired echo signal in an echo signal set;
[0128] A medium parameter determination unit 402 is used to determine the medium parameter of each echo signal according to the signal characteristics of the corresponding echo signal, wherein the medium parameter is used to indicate the reflection medium that reflects the corresponding echo signal, and the reflection medium includes liquid and wall;
[0129] A screening unit 403 is used to screen the first echo signal whose medium parameter satisfies a first screening condition from the echo signal set, wherein the medium parameter satisfies the first screening condition includes: the reflecting medium indicated by the medium parameter is liquid;
[0130] The liquid level determination unit 404 is used to determine the liquid level of the liquid surface to be measured according to the frequency characteristics of the first echo signal.
[0131] As an embodiment of the present application, the device further includes a second screening unit. The second screening unit is used to determine the signal parameters of the corresponding first echo signals according to the signal characteristics of the corresponding first echo signals, and the signal parameters include at least one of the following: signal reflection source point, signal reflection angle, signal strength and signal amplitude; according to the signal parameters, determine whether each first echo signal meets the second screening condition, and determine the first echo signal that meets the second screening condition as the second echo signal; in the liquid level height determination unit, determine the liquid level height of the liquid surface to be measured according to the frequency characteristics of the first echo signal, including: determining the liquid level height of the liquid surface to be measured according to the frequency characteristics of the second echo signal.
[0132] As an embodiment of the present application, in the second screening unit, whether each first echo signal meets the second screening condition is determined according to the signal parameters, including: for each first echo signal, according to the signal reflection source point and / or signal reflection angle of the corresponding first echo signal, determining the propagation path of the corresponding first echo signal; when the propagation path of the corresponding first echo signal belongs to the angular coverage area of the radar, determining that the corresponding first echo signal meets the second screening condition.
[0133] As an embodiment of the present application, in the second screening unit, whether each first echo signal meets the second screening condition is determined according to the signal parameters, including: when the signal amplitude difference of the corresponding first echo signal is greater than a preset difference threshold, determining that the corresponding first echo signal meets the second screening condition; wherein the signal amplitude difference is the difference between the first echo signal and the signal amplitude mean, and the signal amplitude mean is the mean of the signal amplitudes of each echo signal in the echo signal set.
[0134] As an embodiment of the present application, the signal parameters also include signal frequency. In the second screening unit, whether each first echo signal meets the second screening condition is determined according to the signal parameters, including: for each first echo signal, determining the measurement distance of the first echo signal according to the signal frequency of the corresponding first echo signal; determining the reflection offset value of the corresponding first echo signal according to the measurement distance, the signal reflection angle and the assembly data of the radar; when the reflection offset value of the corresponding first echo signal is less than a preset offset threshold, determining that the corresponding first echo signal meets the second screening condition.
[0135] As an embodiment of the present application, in a liquid level height determination unit, the liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the second echo signal, including: determining the signal spectrum of the second echo signal according to the frequency characteristics of the second echo signal; calibrating the signal spectrum according to preset rules to obtain a calibration signal spectrum, and the preset rules are adapted to the scenario of measuring the liquid surface to be measured; determining the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum; and determining the liquid level height of the liquid surface to be measured according to the frequency center.
[0136] As an embodiment of the present application, the device further includes a frequency center determination unit. The frequency center determination unit is used to determine the spectral line energy peak of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum; determine the initial frequency peak according to the spectral line energy peak and the preset coefficient; determine the target spectral line adjacent to the initial frequency peak and obtain the spectral line energy value of the target spectral line; determine the center frequency range according to the spectral line energy value and the sampling data of the calibration signal spectrum; determine the frequency center of the calibration spectrum signal according to the center frequency range.
[0137] The device provided in this embodiment determines the medium parameters of the echo signal through the signal characteristics, determines the echo signal of the reflecting medium indicated by the medium parameters as liquid as the first echo signal, and determines the liquid level height of the liquid surface to be measured according to the frequency characteristics of the first echo signal. Based on the medium parameters determined by the signal characteristics, the first echo signal of the reflecting medium as liquid can be screened out from the echo signal set, thereby eliminating the background clutter in the echo signal set. Without improving the hardware design of the radar antenna, the influence of the background clutter from the wall on the liquid level measurement result is reduced, which helps to improve the accuracy of the liquid level measurement.
[0138] It should be understood that Figure 4 In the structure diagram of the liquid level measuring device shown, each unit is used to perform Figure 1-Figure 3 The steps in the corresponding embodiments, and for Figure 1-Figure 3 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figure 1-Figure 3 as well as Figure 1-Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.
[0139] Figure 5 is a structural block diagram of a terminal device provided by another embodiment of the present application. Figure 5 As shown, the terminal device 500 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as a program of a liquid level measurement method. When the processor 501 executes the computer program 503, the steps in each embodiment of the above-mentioned liquid level measurement method are implemented, such as Figure 1 Alternatively, the processor 501 executes the computer program 503 to implement the above Figure 4 The functions of each unit in the corresponding embodiment are, for example, Figure 4 For details on the functions of the units 401 to 404 shown, please refer to Figure 4 The relevant descriptions in the corresponding embodiments are not repeated here.
[0140] Exemplarily, the computer program 503 may be divided into one or more units, one or more units are stored in the memory 502, and are executed by the processor 501 to complete the present application. One or more units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 503 in the terminal device 500. For example, the computer program 503 may be divided into an acquisition unit, a medium parameter determination unit, a screening unit, a liquid level height determination unit, a second screening unit, and a frequency center determination unit, and the specific functions of each unit are as described above.
[0141] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of the terminal device 500 and does not constitute a limitation of the terminal device 500. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the turntable terminal device may also include an input and output terminal device, a network access terminal device, a bus, etc.
[0142] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0143] The memory 502 may be an internal storage unit of the terminal device 500, such as a hard disk or memory of the terminal device 500. The memory 502 may also be an external storage terminal device of the terminal device 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 500. Further, the memory 502 may also include both an internal storage unit of the terminal device 500 and an external storage terminal device. The memory 502 is used to store computer programs and other programs and data required by the turntable terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium can be non-volatile or volatile. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable storage media do not include electrical carrier signals and telecommunication signals.
[0146] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A liquid level measurement method, characterized in that: The method comprises: Acquire an echo signal reflected by the liquid surface to be measured in response to the incident signal, and store the acquired echo signal in an echo signal set; For each echo signal, determining a medium parameter of the corresponding echo signal according to a signal feature of the corresponding echo signal, wherein the medium parameter is used to indicate a reflection medium that reflects the corresponding echo signal, and the reflection medium includes a liquid and a wall; From the echo signal set, a first echo signal whose medium parameter satisfies a first screening condition is screened, wherein the medium parameter satisfies the first screening condition includes: the reflecting medium indicated by the medium parameter is liquid; The liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the first echo signal.
2. The method according to claim 1, characterized in that After screening the first echo signal whose medium parameter satisfies the first screening condition from the echo signal set, the method further comprises: For each first echo signal, determining a signal parameter of the corresponding first echo signal according to a signal feature of the corresponding first echo signal, wherein the signal parameter includes at least one of the following: a signal reflection source point, a signal reflection angle, a signal strength, and a signal amplitude; determining, according to the signal parameters, whether each first echo signal satisfies a second screening condition, and determining the first echo signal satisfying the second screening condition as the second echo signal; Determining the liquid level height of the liquid surface to be measured according to the frequency characteristics of the first echo signal includes: The liquid level height of the liquid surface to be measured is determined according to the frequency characteristics of the second echo signal.
3. The method according to claim 2, characterized in that The determining, according to the signal parameters, whether each first echo signal satisfies a second screening condition comprises: For each first echo signal, determining a propagation path of the corresponding first echo signal according to a signal reflection source point and / or a signal reflection angle of the corresponding first echo signal; In a case where the propagation path of the corresponding first echo signal belongs to the angular coverage area of the radar, it is determined that the corresponding first echo signal satisfies the second screening condition.
4. The method according to claim 2, characterized in that The determining, according to the signal parameters, whether each first echo signal satisfies a second screening condition comprises: In the case where the signal amplitude difference of the corresponding first echo signal is greater than a preset difference threshold, determining that the corresponding first echo signal meets the second screening condition; The signal amplitude difference is the difference between the first echo signal and the signal amplitude mean, and the signal amplitude mean is the mean of the signal amplitudes of the echo signals in the echo signal set.
5. The method according to claim 2, characterized in that The signal parameters also include signal frequency; The determining, according to the signal parameters, whether each first echo signal satisfies a second screening condition comprises: For each first echo signal, determining a measurement distance of the first echo signal according to a signal frequency of the corresponding first echo signal; Determining a reflection offset value of a corresponding first echo signal according to the measurement distance, the signal reflection angle and assembly data of the radar; When the reflection offset value of the corresponding first echo signal is less than the preset offset threshold, it is determined that the corresponding first echo signal meets the second screening condition.
6. The method according to any one of claims 2 to 5, characterized in that: Determining the liquid level height of the liquid surface to be measured according to the frequency characteristics of the second echo signal includes: determining a signal spectrum of the second echo signal according to a frequency characteristic of the second echo signal; Calibrate the signal spectrum according to a preset rule to obtain a calibrated signal spectrum, wherein the preset rule is adapted to a scenario of measuring the liquid level to be measured; Determining the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum; The liquid level height of the liquid surface to be measured is determined according to the frequency center.
7. The method according to claim 6, characterized in that The step of determining the frequency center of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum comprises: Determining the peak energy value of the spectral line of the calibration signal spectrum according to the energy value of each spectral line in the calibration signal spectrum; Determining an initial frequency peak value according to the spectral line energy peak value and a preset coefficient; Determine a target spectral line adjacent to the initial frequency peak, and obtain a spectral line energy value of the target spectral line; Determine a center frequency range according to the spectral line energy value and the sampling data of the calibration signal spectrum; The frequency center of the calibration spectrum signal is determined according to the center frequency range.
8. A liquid level measuring device, characterized in that: The device comprises: An acquisition unit, used for acquiring an echo signal reflected by the liquid surface to be measured in response to the incident signal, and storing the acquired echo signal in an echo signal set; A medium parameter determination unit, for determining a medium parameter of each echo signal according to a signal feature of the corresponding echo signal, wherein the medium parameter is used to indicate a reflection medium that reflects the corresponding echo signal, and the reflection medium includes a liquid and a wall; A screening unit, configured to screen, from the echo signal set, a first echo signal whose medium parameter satisfies a first screening condition, wherein the medium parameter satisfies the first screening condition comprises: the reflecting medium indicated by the medium parameter is liquid; The liquid level determination unit is used to determine the liquid level of the liquid surface to be measured according to the frequency characteristics of the first echo signal.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Method and device for detecting oil level of oil-filled electrical equipment
CN119245766A
Water level precision measurement method, system and equipment applied to water conservancy project
CN120274854A
System for measuring water level or the like
JP2026100902A
Water level measurement system, etc.
JP7908697B2
