Ultrasonic measurement first wave detection level online correction method, equipment, medium and product
By correcting the first wave detection level of the ultrasonic meter online, identifying the peak amplitude changes of the received wave wave and correcting the first wave detection level, the measurement accuracy problem caused by equipment aging is solved, and higher measurement accuracy and stability are achieved, reducing user costs.
Patent Information
- Application Number
- CN202510811902.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-06-18
AI Technical Summary
The existing ultrasonic meter changes in the peak amplitude of the reception wave caused by equipment aging, resulting in a zero-crossing detection position offset, affecting the time-of-flight measurement accuracy, and thus affecting the flow velocity measurement accuracy and accuracy.
By correcting the first wave detection level FHLAM online, identifying the peak amplitude change of the received wave wave, using the incremental difference maximum value to correct the first wave detection level, combining the time of flight difference to judge data abnormality, and dynamically adjusting the first wave detection level to ensure the accuracy of the zero crossing position.
It improves the stability and reliability of ultrasonic metering, reduces measurement errors, extends the service life of ultrasonic metering, and reduces user usage costs.
Smart Images

Figure CN120352006B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultrasonic measurement, and in particular to an online correction method, equipment, medium and product for ultrasonic measurement first wave detection level. Background Art
[0002] In ultrasonic measurement, factors such as temperature changes, high water flow rates, bubbles, and aging of equipment due to long-term operation will cause changes in the peak amplitude of the received wave at the transducer receiving end. Generally speaking, this will cause the peak amplitude of the received wave to decrease.
[0003] In existing ultrasonic meters, the received wave is identified by FHL level detection, where FHL is the abbreviation of "First Hit Level" and refers to the threshold value of the first valid signal strength (i.e., the first wave) received at the transducer receiving end. Figure 1 This parameter is crucial to ensure accurate identification of the arrival time of the ultrasonic signal, thus affecting the final flow measurement accuracy.
[0004] The built-in FHL level in the ultrasonic meter is used to detect the peak amplitude of the received wave. It uses a fixed level value to determine the position of the received wave, such as Figure 1 As shown in the figure, as the ultrasonic meter ages and the peak amplitude of the received wave decreases, the position of the received wave detected at the same FHL level will change. For example, the first wave originally detected as the second wave in the received signal sequence may now move forward to become the third wave, or be delayed to become the fourth wave (the delay to the fourth wave is used as an example to illustrate the change; the actual delay may still be the third wave, but it may appear as a delay in the overall sequence due to the change of the previous wave).
[0005] In this way, the position of the zero-crossing detection will change and may be delayed (the position of the zero-crossing detection is based on the position of the first wave detected by the FHL level as a reference). The flight time measurement is determined based on the position of the zero-crossing detection. Therefore, if the zero-crossing detection position changes, the measured flight time will also be delayed by the corresponding waveform period. This phenomenon is usually called "wave jumping". Figure 2 shown.
[0006] In ultrasonic metering, flow rate is calculated by comparing the time-of-flight difference between the signals in the uplink and downlink directions. If a "wave jump" occurs in one direction, or if the "wave jump" in both directions is out of sync, the calculated time-of-flight difference will deviate from the actual value, resulting in an incorrect flow rate, seriously affecting the accuracy of flow rate measurement and even resulting in metering failure. In production practice, even if the same number of "wave jumps" occurs in both directions, the time difference will still fluctuate because the shape, amplitude, and other characteristics of each wave are not exactly the same. The metering error caused by the aforementioned wave jump is difficult to correct, ultimately resulting in incorrect metering results and affecting the accuracy of water meter measurement. In production practice, the aforementioned problem is often solved by replacing the ultrasonic meter. Summary of the Invention
[0007] The present invention discloses an online correction method, device, medium, and product for ultrasonic metering first-wave detection level. This method solves the technical problem in the prior art of reduced metering accuracy or even failure due to the "wave skipping" phenomenon of aging equipment. The method has a reasonable design, is conducive to improving metering accuracy, and is conducive to reducing user costs. The technical solution adopted is as follows:
[0008] An online correction method for ultrasonic metering first wave detection level is applied to ultrasonic meters, such as ultrasonic water meters and ultrasonic gas meters. The correction method comprises the following steps:
[0009] S1. Call the built-in first wave detection level FHL of the ultrasonic meter. AM , the first wave detection level FHL AM Used to detect the peak amplitude of the received wave, and the first wave detection level FHL AM It is designed so that the measured first wave is the Nth received wave in the receiving sequence of the corresponding transducer, and N is not greater than 6;
[0010] S2, the first wave detection level FHL AM Detect the level values AM1~AM corresponding to the peak amplitude values of the first wave and several subsequent received waves in the received sequence n , obtain the incremental difference ΔAM of the level values corresponding to the peak amplitudes of two adjacent received waves n =AM n -AM n-1 , n≥2;
[0011] S3. Obtain the incremental difference ΔAM n ΔAM with the largest absolute value m , 2≤m≤n;
[0012] S4. Obtain the first wave detection level FHL after the first correction C :
[0013] FHL C =AM m-1 +F1*ΔAM m
[0014] F1 is a first proportional coefficient, and 0<F1<1.
[0015] On the basis of the above technical solution, the first wave detection level FHL AM It is designed that the measured first wave is the Nth received wave in the corresponding transducer receiving sequence under a still water environment and when the ultrasonic meter is in an unaged state, and N is not greater than 6.
[0016] Based on the above technical solution, N is not greater than 3.
[0017] Based on the above technical solution, 0.3≤F1≤0.6.
[0018] On the basis of the above technical solution, the following steps are also included:
[0019] S5. Call the corrected first wave detection level FHL C Then, the flight time TOF1~TOFb of the received waves received by the corresponding transducer is recorded, and the flight time difference ΔT between two adjacent received waves is obtained. n =T n -T n-1 ; Preferably, TOF1 corresponds to the corrected first wave detection level FHL C The measured flight time of the first wave.
[0020] S6, the flight time difference ΔT between the two adjacent received waves n comparing with a set first threshold value, the first threshold value being positively correlated with a waveform period of the received wave;
[0021] S7, when the flight time difference ΔT between the two adjacent received waves n is not greater than the first threshold, the data is determined to be normal; when the flight time difference ΔT between the two adjacent received waves n If the value is greater than the first threshold, it is determined to be data abnormal.
[0022] On the basis of the above technical solution, the flight times TOF1 to TOFb of the received waves are all uplink flight times or all downlink flight times.
[0023] On the basis of the above technical solution, the flight time difference ΔT between two consecutive received waves is calculated. n The data is compared with the set first threshold to determine whether the proportion of data anomalies exceeds the set second threshold.
[0024] Based on the above technical solution, the second threshold is 30~60%.
[0025] On the basis of the above technical solution, when the ratio of the data anomaly exceeds the set second threshold, the following steps are further included:
[0026] S8, calling the built-in first wave detection level FHL of the ultrasonic meter AM ;
[0027] S9, repeating steps S2 and S3;
[0028] S10, when the ΔAM m Not greater than 20mV, or not greater than ΔAM in the first calibration step m If the value is less than half, an alarm signal is issued;
[0029] When the ΔAM m Greater than 20mV, or greater than ΔAM in the first calibration step m Half of the first wave detection level FHL after further correction is obtained m :
[0030] FHL m =AM m-1 +F*ΔAM m
[0031] F is a second proportional coefficient, and 0<F<1.
[0032] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the online correction method for the ultrasonic measurement first wave detection level as described above can be implemented.
[0033] A storage medium stores a computer program, which, when executed by a processor, can implement the above-mentioned online correction method for ultrasonic measurement first wave detection level.
[0034] A computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the above-mentioned online correction method for the first wave detection level of ultrasonic measurement.
[0035] Beneficial effects
[0036] The present invention has a reasonable design and proposes the first wave detection level FHL AM Perform online correction method, when wave hopping occurs, correct the first wave detection level FHL by identifying the change of the received wave peak amplitude AM, ensuring the position accuracy of the zero point, realizing the accurate measurement of ultrasonic water meters, effectively reducing the measurement error caused by the change of the peak amplitude of the received wave, significantly improving the stability and reliability of ultrasonic measurement, and reducing the degree of influence of environmental factors or equipment aging on the performance of ultrasonic meters.
[0037] The present invention is ingeniously designed and features a simple and reliable calibration method. By identifying the peak amplitude changes of the first few received waves at the transducer receiving end of a single meter and taking the maximum absolute value of the incremental difference between the level values corresponding to the peak amplitudes of two adjacent received waves, the first wave detection level is corrected. This simple and reliable calibration process helps reduce the power consumption of the ultrasonic meter's metering module, while also not adding additional hardware costs, thereby reducing user costs. Furthermore, the service life of the ultrasonic meter can be significantly extended while ensuring metering accuracy, further reducing user costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only one embodiment of the present invention. Those skilled in the art can also derive other implementation drawings based on the provided drawings without inventive effort.
[0039] Figure 1 : Schematic diagram of FHL detection receiving wave under normal conditions;
[0040] Figure 2 : Schematic diagram of the first wave detection level detection of the received wave and "wave hopping" after the peak amplitude of the received wave at the transducer receiving end becomes smaller;
[0041] Figure 3 : Flowchart of the online correction method in the present invention; DETAILED DESCRIPTION
[0042] As used herein, unless otherwise specified, the term "plurality" means two or more.
[0043] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0044] In this article, the term "and / or" is used to describe the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0045] like Figure 2 As shown, the peak amplitude of the ultrasonic wave received by the receiving end of an ultrasonic water meter decreases, and its built-in first wave detection level FHL AMThe second received wave in the received wave sequence is missed, and the third received wave in the sequence is mistakenly detected as the first wave, which causes the zero-crossing point position to shift and wave skipping to occur.
[0046] An online correction method for ultrasonic metering first wave detection level is applied to ultrasonic meters, such as ultrasonic water meters and ultrasonic gas meters. In this embodiment, the correction method is applied to ultrasonic water meters, comprising the following steps:
[0047] S1. Call the built-in first wave detection level FHL of the ultrasonic meter AM , first wave detection level FHL AM Used to detect the peak amplitude of the received wave. In this embodiment, the first wave detection level FHL AM is designed so that the first wave detection level FHL AM The measured first wave is the Nth received wave in the corresponding transducer receiving sequence under a static water environment and when the ultrasonic meter is not aged, and N is not greater than 6, where N is preferably 1, 2 or 3. In this embodiment, N is 2, that is, the built-in first wave detection level FHL AM The measured first wave is the second received wave in the received wave sequence received by the transducer, which can avoid clutter interference and improve measurement accuracy. In other embodiments of the present invention, if there is no clutter or the clutter interference is small, N is 1.
[0048] S2, first wave detection level FHL AM Detect the level values AM1~AM corresponding to the peak amplitude values of the first wave and several subsequent received waves in the received sequence n , obtain the incremental difference ΔAM of the level values corresponding to the peak amplitudes of two adjacent received waves n =AM n -AM n-1 , n≥2; preferably, 2≤n≤6. In this embodiment, n is 4.
[0049] This step is performed in a still water environment to reduce the influence of clutter.
[0050] S3. Obtain the incremental difference ΔAM n ΔAM with the largest absolute value m , 2≤m≤n;
[0051] S4. Obtain the first wave detection level FHL after the first correction C :
[0052] FHL C =AM m-1 +F1*ΔAM m
[0053] F1 is a first proportional coefficient, and 0<F1<1. In this embodiment, 0.3≤F1≤0.6.
[0054] S5. Call the corrected first wave detection level FHL C Then, record the flight time TOF1~TOFb of the first wave received by the corresponding transducer and the subsequent first wave in the received wave sequence, and obtain the flight time difference ΔT between two adjacent received waves. n =T n -T n-1 ; Among them, the flight time TOF1~TOFb of the received wave are all uplink flight time or all downlink flight time, which is beneficial to improving the accuracy of detection.
[0055] S6, the flight time difference ΔT between the two adjacent received waves n Compared with the set first threshold, the first threshold is positively correlated with the waveform period of the received wave; in this embodiment, the first threshold is 30~70% of the waveform period. For example, when the operating frequency of the received wave is 1M and the waveform period is 1us, the first threshold is 0.3~0.7us.
[0056] S7, when the flight time difference ΔT between the two adjacent received waves n is not greater than the first threshold, the data is determined to be normal; when the flight time difference ΔT between the two adjacent received waves n If the value is greater than the first threshold, it is determined to be data anomaly. Further, in order to evaluate the data anomaly ratio and avoid false alarms or frequent further corrections, the flight time difference ΔT between two consecutive received waves is calculated. n The data is compared with the first threshold to determine whether the proportion of data anomalies exceeds the second threshold. In this embodiment, the second threshold is set to 50%. In other embodiments of the present invention, the second threshold can be selected within the range of 30-60%.
[0057] When the data anomaly ratio exceeds 50%, further correction is performed, including the following steps:
[0058] S8, calling the built-in first wave detection level FHL of the ultrasonic meter AM ;
[0059] S9, repeating steps S2 and S3;
[0060] S10, when ΔAM m Not greater than 20mV, or not greater than ΔAM in the first calibration step m If the peak amplitude of the received wave is half of the peak amplitude, it is judged how low the peak amplitude of the received wave is and an alarm signal is issued;
[0061] When ΔAM m Greater than 20mV, or greater than ΔAM in the first calibration stepm Half of the first wave detection level FHL after further correction is obtained m :
[0062] FHL m =AM m-1 +F*ΔAM m
[0063] F is the second proportional coefficient, and 0<F<1. In this embodiment, 0.3≤F≤0.6. The flow chart of the online correction method is as follows: Figure 3 shown.
[0064] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned online correction method for first-wave detection level of ultrasonic measurement can be implemented.
[0065] A storage medium stores a computer program, which, when executed by a processor, can implement the above-mentioned online correction method for the first wave detection level of ultrasonic measurement.
[0066] A computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the above-mentioned online correction method for the first wave detection level of ultrasonic measurement.
[0067] The present invention has been described above by way of examples, but the present invention is not limited to the above specific embodiments. Any changes or modifications based on the present invention fall within the scope of protection claimed by the present invention.
Claims
1. An online correction method for ultrasonic measurement first wave detection level, characterized in that: Applied to ultrasonic meters, including the steps of: S1. Call the built-in first wave detection level FHL of the ultrasonic meter. AM , the first wave detection level FHL AM Used to detect the peak amplitude of the received wave, and the first wave detection level FHL AM It is designed so that the measured first wave is the Nth received wave in the receiving sequence of the corresponding transducer, and N is not greater than 6; S2, the first wave detection level FHL AM Detect the level values AM1~AM corresponding to the peak amplitude values of the first wave and several subsequent received waves in the received sequence n , obtain the incremental difference ΔAM of the level values corresponding to the peak amplitudes of two adjacent received waves n =AM n -AM n-1 , n≥2; S3. Obtain the incremental difference ΔAM n ΔAM with the largest absolute value m , 2≤m≤n; S4. Obtain the first wave detection level FHL after the first correction C : FHL C =AM m-1 +F1*ΔAM m F1 is a first proportional coefficient, and 0<F1<1; The first wave detection level FHL AM It is designed so that the measured first wave is the Nth received wave in the receiving sequence of the corresponding transducer under a still water environment and when the ultrasonic meter is not aged, and N is not greater than 6; Also includes the steps: S5. Call the corrected first wave detection level FHL C Then, the flight time TOF1~TOFb of the received waves received by the corresponding transducer is recorded, and the flight time difference ΔT between two adjacent received waves is obtained. n =T n -T n-1 ; S6, the flight time difference ΔT between the two adjacent received waves n comparing with a set first threshold value, the first threshold value being positively correlated with a waveform period of the received wave; S7, when the flight time difference ΔT between the two adjacent received waves n is not greater than the first threshold, the data is determined to be normal; when the flight time difference ΔT between the two adjacent received waves n If the value is greater than the first threshold, it is determined to be data anomaly; The flight time difference ΔT between two consecutive received waves is n Compare with the set first threshold to determine whether the proportion of data anomalies exceeds the set second threshold; When the data anomaly ratio exceeds a set second threshold, the method further includes the following steps: S8, calling the built-in first wave detection level FHL of the ultrasonic meter AM ; S9, repeating steps S2 and S3; S10, when the ΔAM m Not greater than 20mV, or not greater than ΔAM in the first calibration step m half of the ΔAM, an alarm signal is issued; when the ΔAM m Greater than 20mV, or greater than ΔAM in the first calibration step m Half of the first wave detection level FHL after further correction is obtained m : FHL m =AM m-1 +F*ΔAM m F is a second proportional coefficient, and 0<F<1.
2. The method for online correction of ultrasonic measurement first wave detection level according to claim 1, characterized in that: The N is not greater than 3.
3. The online correction method for ultrasonic measurement first wave detection level according to claim 1 is characterized in that: The 0.3≤F1≤0.
6.
4. The method for online correction of ultrasonic measurement first wave detection level according to any one of claims 1 to 3, characterized in that: The flight times TOF1 to TOFb of the received waves are all uplink flight times or all downlink flight times.
5. The online correction method for ultrasonic measurement first wave detection level according to claim 4 is characterized in that: The second threshold is 30-60%.
6. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the online correction method for the first wave detection level of ultrasonic measurement as claimed in any one of claims 1 to 3 and 5 can be implemented.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the online correction method for the ultrasonic measurement first wave detection level as described in any one of claims 1 to 3 and 5 can be implemented.
8. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the online correction method for the first wave detection level of ultrasonic measurement as described in any one of claims 1 to 3 and 5.
Citation Information
Patent Citations
Flow calibration method for ultrasonic gas meter
CN111121894A
Automatic adjustment method for head wave detection voltage threshold value of ultrasonic flowmeter
CN119124319A