An ultrasonic water meter measurement method and system with adaptive adjustment of excitation frequency

By adaptively adjusting the excitation frequency and calibration parameters, the frequency drift and aging problems of ultrasonic water and gas meters were solved, achieving high-precision and high-repeatability flow measurement, reducing operation and maintenance costs and improving instrument stability.

CN123175378APending Publication Date: 2026-11-27QINGDAO ITECHENE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611319334.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-27

Smart Images

  • Figure CN123175378A_ABST
    Figure CN123175378A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of ultrasonic metering equipment, and particularly relates to a kind of self-adapting adjustment excitation frequency ultrasonic water meter metering method, which can be designed as active optimization update in prior art passive correction, i.e., through periodic trigger scanning, real-time master transducer working state, dynamically adjust to the best working point, and corresponding calibration parameter update is carried out, more accurate flow metering task is realized;Realize instrument online self-calibration, reduce later operation and maintenance cost, can effectively compensate transducer aging influence, prolong the life cycle and calibration cycle of gas meter, effectively improve the high precision and repeatability of full temperature zone metering, and reliability and stability performance in extreme environment. Meanwhile, a kind of self-adapting adjustment excitation frequency ultrasonic water meter metering system is also provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ultrasonic metering equipment technology, specifically to an ultrasonic water and gas metering method and system with adaptively adjustable excitation frequency. Background Technology

[0002] As a high-precision instrument in the field of modern fluid measurement, the core metrological principle of ultrasonic water-gas meters relies on the accurate measurement of the time difference between the propagation of ultrasonic waves in the fluid along and against the flow. However, in practical applications, the long-term stability and reliability of this measurement method are facing serious challenges, the root cause of which lies in the fact that the physical characteristics of the core sensing component—the ultrasonic transducer—are not constant.

[0003] Ultrasonic transducers are typically made of materials such as piezoelectric ceramics, whose elastic constants, geometric dimensions, and dielectric constants are highly sensitive to ambient temperature. Studies have shown that temperature changes cause significant drift in the transducer's resonant frequency: generally, increased temperature leads to a decrease in the resonant frequency, and vice versa. Furthermore, throughout the instrument's lifespan, the transducer material undergoes irreversible aging, resulting in a slow and continuous deterioration of its frequency characteristics. This drift in physical properties directly leads to a decrease in measurement accuracy and a deterioration in repeatability. When the transducer's actual optimal operating frequency deviates from the factory-set fixed excitation frequency, the electromechanical conversion efficiency decreases significantly, resulting in a reduction in the received signal amplitude, a decrease in the signal-to-noise ratio, and waveform distortion. This weak and unstable signal makes it difficult for the back-end circuitry to accurately capture the arrival time of the ultrasonic wave, leading to random errors in the measurement of propagation time in both directions. Since flow calculations are based on extremely small time differences, these random errors are significantly amplified, resulting in poor repeatability of measurement results, especially under low flow conditions. This not only causes economic disputes between users and suppliers but also increases the operation and maintenance costs for water and gas supply companies, becoming a key bottleneck restricting the performance improvement of ultrasonic instruments.

[0004] To address the aforementioned issues, existing technologies primarily employ a "fixed excitation frequency combined with back-end compensation" approach. This solution sets a fixed excitation frequency at the factory and collects data via a built-in temperature sensor, then corrects the flow rate results at the software level using a preset mathematical model or lookup table method. While this approach is simple to implement and computationally inexpensive, it is essentially indirect compensation, addressing the symptoms but not the root cause. It only compensates for the influence of temperature on parameters such as fluid sound velocity, neglecting the signal quality degradation caused by the mismatch between the excitation frequency and the transducer's actual optimal operating frequency. Furthermore, the preset model struggles to accurately match the unique frequency drift curve of each transducer and is completely incapable of compensating for frequency drift caused by material aging. At extreme temperatures or in the later stages of aging, once the front-end signal becomes too weak to be detected, the back-end algorithm will fail.

[0005] Therefore, the existing technology needs further improvement. Summary of the Invention The purpose of this invention is to provide an ultrasonic water and gas metering method and system with adaptively adjustable excitation frequency to solve the existing technical problems in the background art.

[0006] To solve the above-mentioned technical problems, the technical solution provided by the present invention is as follows: This application provides an ultrasonic water / gas metering method with adaptively adjustable excitation frequency, comprising the following steps: S1 has a preset trigger scanning mechanism, which includes a periodic trigger mechanism or an event-driven trigger mechanism, to generate a trigger signal; S2 receives the trigger signal from step S1, pauses the regular flow metering task, performs a frequency-receive amplitude scan, and obtains the signal amplitude AM_fn, and sequentially completes the measurement of the signal amplitude corresponding to the excitation signal at each frequency point. After S3 completes the scan, it acquires frequency-amplitude data. Based on the maximum signal amplitude, it obtains the corresponding frequency point f_n as the optimal operating frequency f_optimal under the current operating condition. The operating frequency of the excitation signal generation circuit is switched to f_optimal, and the original operating frequency f_o is recorded synchronously. While switching the operating frequency, S4 performs a calibration parameter update operation. The calibration parameter update includes updating the zero flow drift value O and the time and delay value Os. The updated O_n value is used as the zero-point compensation benchmark for flow calculation, and the Os_n value is used as the compensation benchmark for sound speed calculation. After S5 completes the calibration parameter update, it exits the frequency-receive amplitude scan, adopts the updated operating frequency f_optimal, zero flow drift value O, and time and delay value Os, and resumes the regular flow metering task.

[0007] Based on the above technical solution, the periodic triggering mechanism in step S1 is: setting an automatic triggering frequency-receiver amplitude scanning program according to a preset time interval; the event-driven triggering mechanism is: when the temperature change exceeds a preset temperature threshold, the frequency-receiver amplitude scanning program is immediately triggered.

[0008] Based on the above technical solution, the frequency-received amplitude scanning in step S2 is set to a step-type excitation, including the following process: Set the frequency scanning flag to control the excitation signal generation circuit to perform step excitation within a preset frequency range; At each frequency point, a series of ultrasonic pulses are emitted, and the amplitude of the signal induced on the receiving transducer is measured to be AM_fn. After measuring one frequency point, proceed to the next frequency point for excitation, until all frequency points are excited.

[0009] Based on the above technical solution, the update of the zero flow drift value O in step S4 includes the following process: Construct a mapping table between frequency value f and compensation value O; Based on the working frequency f_n after switching in step S3, the compensation value O_n corresponding to f_n is obtained from the frequency value f-compensation O mapping table; The zero-flow drift value O is updated based on the compensation value O_n as the zero-point compensation benchmark.

[0010] Based on the above technical solution, the construction of the frequency value f-compensation value O mapping table includes the following process: Under zero flow conditions and within a preset frequency range, perform a preset number of zero flow calibrations and received amplitude scans at different excitation frequencies; The average time difference between the reverse and forward currents, O_fn, and the average received amplitude, AM_fn, are calculated. The excitation frequency corresponding to the maximum received amplitude is taken as the nominal operating frequency. A corresponding frequency value f-compensation value O mapping table is generated and stored in the system memory.

[0011] Based on the above technical solution, the update of time and delay value Os in step S4 includes the following process: The formula for calculating the compensation value Os_n for time and delay is: Os_n=H_n*(1 / f_n-1 / f_o), where H_n is the measurement point location for measuring the flight time in both directions, f_n is the working frequency f_optimal after switching in step S3, and f_o is the original working frequency; Os_n serves as the compensation benchmark for calculating the speed of sound c.

[0012] Based on the above technical solution, during the update process of step S4 and the delay value Os, the formula for calculating the speed of sound c is: (1) When there is a temperature sensor in the system, calculate the speed of sound based on the temperature; then calculate the theoretical value of Tu+Td 2*(Lp+Lo) / c+Os to make a valid judgment on the flight time with and against the current; (2) When there is no temperature sensor in the system, the speed of sound c is calculated by the time of the upstream and downstream flow. The calculation formula is: c=2*(Lp+Lo) / (Tu+Td-Os) or c=(Lp+Lo) / 2*(1 / (Tu-Os / 2)+1 / (Td-Os / 2)), where Lp is the effective sound path, Lo is the ineffective sound path, Tu is the time of the upstream flight, and Td is the time of the downstream flight. The speed of sound c is calculated based on the updated Os.

[0013] Based on the above technical solution, the preset frequency range is set to ±10% or ±20% of the transducer center frequency, and the preset number of times is 300-1000.

[0014] This application also provides an ultrasonic water and gas metering system with adaptively adjustable excitation frequency, employing the method described above.

[0015] The beneficial effects of the technical solution provided by this invention are as follows: The ultrasonic water and gas meter measurement method with adaptive excitation frequency adjustment proposed in this application can directly target the root cause of frequency mismatch, ensuring that the transducer always operates at the most efficient resonant point and guaranteeing the quality of the front-end signal. It can dynamically track and compensate for frequency drift caused by a combination of factors such as temperature and aging, exhibiting strong environmental adaptability. Stable and high-quality raw signals are the foundation for accurate measurement, significantly reducing the standard deviation of time measurement and improving the repeatability and accuracy of measurement. By organically combining frequency optimization with zero-point drift calibration, it solves the problem of single-frequency zero-point calibration failing over a wide temperature range. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the overall process of the present invention; Figure 2 This is a frequency-amplitude characteristic diagram of an ultrasonic gas meter with a nominal center frequency of 200kHz at room temperature. Figure 3 It is a graph showing the standard deviation of the time difference between zero flow and reverse flow at different frequencies of an ultrasonic gas meter. Figure 4 It is a graph showing the time difference between zero flow and reverse flow at different frequencies of an ultrasonic gas meter. Figure 5 This is a frequency-amplitude characteristic graph of an ultrasonic gas meter at different temperatures; Figure 6 This is a schematic diagram of the location H_n, the measurement point for measuring the flight time in both directions; Detailed Implementation The present invention will be further described below with reference to the accompanying drawings and embodiments: In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0017] In the description of this invention, it should be understood that the terms "left", "right", "front", "rear", "top", "bottom", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.

[0018] like Figures 1 to 6 As shown, an ultrasonic water / gas metering method with adaptively adjustable excitation frequency includes the following steps: S1 has a preset trigger scanning mechanism, which includes a periodic trigger mechanism or an event-driven trigger mechanism, to generate a trigger signal; Based on the above technical solution, the periodic triggering mechanism in step S1 is: setting an automatic triggering frequency-receiver amplitude scanning program according to a preset time interval; the event-driven triggering mechanism is: when the temperature change exceeds a preset temperature threshold, the frequency-receiver amplitude scanning program is immediately triggered.

[0019] Preferably, in the periodic triggering mechanism, the preset time interval is 1 hour, 1 day, 1 week, etc., which can be set according to the actual application scenario.

[0020] Preferably, in the event-driven triggering mechanism, the temperature can be obtained by detecting the temperature using the system's built-in temperature sensor or by calculating the forward and reverse flow time. The preset temperature threshold can be set to ±10°C or ±20°C, and this temperature threshold can be determined by testing the frequency amplitude characteristics at different temperatures. The specific process of calculating the temperature using the forward and reverse flow time is as follows: the velocity of sound is obtained by calculating the forward and reverse flow time, as shown in the above velocity of sound calculation formula, and then obtained by using the empirical formula for the velocity of sound at temperature in different materials or by looking up a table.

[0021] S2 receives the trigger signal from step S1, pauses the regular flow metering task, performs a frequency-receive amplitude scan, and obtains the signal amplitude AM_fn, and sequentially completes the measurement of the signal amplitude corresponding to the excitation signal at each frequency point. Based on the above technical solution, the frequency-received amplitude scanning in step S2 is set to a step-type excitation, including the following process: Set the frequency scanning flag to control the excitation signal generation circuit to perform step excitation within a preset frequency range; At each frequency point, a series of ultrasonic pulses are emitted, and the amplitude of the signal induced on the receiving transducer is measured to be AM_fn. After measuring one frequency point, proceed to the next frequency point for excitation, until all frequency points are excited.

[0022] Not each pulse in a series of pulses has a single frequency point.

[0023] Preferably, the preset frequency range is set to ±10% or ±20% of the transducer center frequency.

[0024] After S3 completes the scan, it acquires frequency-amplitude data. Based on the maximum signal amplitude, it obtains the corresponding frequency point f_n as the optimal operating frequency f_optimal under the current operating condition. The operating frequency of the excitation signal generation circuit is switched to f_optimal, and the original operating frequency f_o is recorded synchronously. While switching the operating frequency, S4 performs a calibration parameter update operation. The calibration parameter update includes updating the zero flow drift value O and the time and delay value Os. The updated O_n value is used as the zero-point compensation benchmark for flow calculation, and the Os_n value is used as the compensation benchmark for sound speed calculation. Based on the above technical solution, the update of the zero flow drift value O in step S4 includes the following process: Construct a mapping table between frequency value f and compensation value O; Based on the working frequency f_n after switching in step S3, the compensation value O_n corresponding to f_n is obtained from the frequency value f-compensation O mapping table; The zero-flow drift value O is updated based on the compensation value O_n as the zero-point compensation benchmark.

[0025] Based on the above technical solution, the construction of the frequency value f-compensation value O mapping table includes the following process: Under zero flow conditions and within a preset frequency range, perform a preset number of zero flow calibrations and received amplitude scans at different excitation frequencies; The average time difference between the reverse and forward currents, O_fn (i.e., zero drift), and the average received amplitude, AM_fn, are calculated. The excitation frequency corresponding to the maximum received amplitude is used as the nominal operating frequency, which is the initial operating frequency. A corresponding frequency value f-compensation value O mapping table is generated and stored in the system memory.

[0026] Based on the above technical solution, the preset frequency range is set to ±10% or ±20% of the transducer center frequency, and the preset number of times is 300-1000.

[0027] During initial calibration, a comprehensive zero-flow calibration is performed over a wide frequency range. Specifically, under zero-flow conditions, the average reverse and forward flow time difference (O_fn) of 300-1000 measurements at different excitation frequencies is measured, and the corresponding zero drift is stored in the instrument's non-volatile memory. When the system switches to a new optimal operating frequency f_n (f_optimal), it immediately retrieves the corresponding O_n value from this table as the zero-point compensation benchmark for subsequent flow calculations. This resolves the issue of varying zero-point drift at different frequencies. Simultaneously, the excitation frequency F_M corresponding to the maximum amplitude is used as the nominal operating frequency, improving measurement accuracy by achieving the highest received signal-to-noise ratio.

[0028] Based on the above technical solution, the update of time and delay value Os in step S4 includes the following process: The formula for calculating the compensation value Os_n for time and delay is: Os_n=H_n*(1 / f_n-1 / f_o), where H_n is the measurement point location for measuring the flight time in both directions, f_n is the working frequency f_optimal after switching in step S3, and f_o is the original working frequency; Os_n serves as the compensation benchmark for calculating the speed of sound c.

[0029] Wherein, H_n refers to the average value of the flight time of a set of zero-crossing points, which, statistically speaking, is the middle position of this set of zero-crossing points; in a preferred embodiment, the calculation formula of H_n is: H_n=N_fhl+(N_hitstart+N_hitsum-1) / 2, where N_fhl is the wave number of the first wave level, N_hitstart is the starting measurement wave number, and N_hitsum is the number of zero-crossing points measured.

[0030] Based on the above technical solution, during the update process of step S4 and the delay value Os, the formula for calculating the speed of sound c is: (1) When there is a temperature sensor in the system, calculate the speed of sound based on the temperature; then calculate the theoretical value of Tu+Td 2*(Lp+Lo) / c+Os to make a valid judgment on the flight time with and against the current; The velocity of sound in different materials at different temperatures can be obtained using empirical formulas or by looking up tables. If a temperature sensor is available, the velocity of sound can be obtained directly from the temperature, meaning that it is not necessary to use Tu+Td to calculate the velocity of sound. In this case, the above formula can be used to determine whether the data is valid.

[0031] (2) When there is no temperature sensor in the system, the speed of sound c is calculated by the time of the upstream and downstream flow. The calculation formula is: c=2*(Lp+Lo) / (Tu+Td-Os) or c=(Lp+Lo) / 2*(1 / (Tu-Os / 2)+1 / (Td-Os / 2)), where Lp is the effective sound path, Lo is the ineffective sound path, Tu is the time of the upstream flight, and Td is the time of the downstream flight. The speed of sound c is calculated based on the updated Os.

[0032] Specifically, the Os value represents a fixed time deviation such as circuit delay and algorithm delay, which varies with the operating frequency. When the meter has no temperature sensor, the speed of sound is calculated using the upstream and downstream flight times, formula 1: c=2*(Lp+Lo) / (Tu+Td-Os), where Lp is the effective sound path, Lo is the ineffective sound path, Tu is the upstream flight time, Td is the downstream flight time, and Os is the aforementioned delay value; formula 2: c=(Lp+Lo) / 2*(1 / (Tu-Os / 2)+1 / (Td-Os / 2)). Therefore, after determining f_n, the time and delay value Os compensation value H_n*(1 / f_n-1 / f_o) need to be calculated based on the metering point location H_n for measuring the upstream and downstream flight times, and the Os_n value is updated as the compensation benchmark for subsequent speed of sound calculations. When the meter has a temperature sensor, the sound velocity c can be calculated from the temperature, and then the theoretical value of Tu+Td, 2*(Lp+Lo) / c+Os, can be calculated to determine the validity of the forward and reverse flow time and eliminate abnormal values.

[0033] After S5 completes the calibration parameter update, it exits the frequency-receive amplitude scan, adopts the updated operating frequency f_optimal, zero flow drift value O, and time and delay value Os, and resumes the regular flow metering task.

[0034] In practical conventional flow measurement tasks, the sound velocity c = 2 * (Lp + Lo) / (Tu + Td - Os), where Lp is the effective sound path (the projected propagation distance of the ultrasonic wave on the flow velocity), Lo is the ineffective sound path (the propagation distance of the ultrasonic wave on non-flow velocities, such as the distance from the transducer to the reflector in a reflective flowmeter), Tu is the time of flight against the current, Td is the time of flight with the current, and usually Tu + Td is defined as time and sumTOF, with Os being the time and delay value. The instantaneous flow velocity v = (Tu - Td - O) * c * c / (2 * Lp), where Tu is the time of flight against the current, Td is the time of flight with the current, and usually deltaTOF = Tu - Td (time difference between upstream and downstream), O is the zero-flow deltaTOF offset value, c is the sound velocity, and Lp is the effective sound path. The cumulative flow rate Q = v * S * Ts, where S is the cross-sectional area of ​​the pipe section, and Ts is the measurement period.

[0035] This invention provides an ultrasonic water and gas metering method with adaptive excitation frequency adjustment. It transforms the passive correction design of existing technologies into active optimization and updating. Specifically, through periodic triggered scanning, the transducer's working status is monitored in real time, dynamically adjusted to the optimal operating point, and calibration parameters are updated accordingly to achieve more accurate flow measurement. It enables online self-calibration of the instrument, reduces subsequent maintenance costs, effectively compensates for the effects of transducer aging, extends the gas meter's lifespan and calibration cycle, and effectively improves the high accuracy and repeatability of metering across the entire temperature range, as well as its reliability and stability in extreme environments.

[0036] Specifically, the system automatically scans a preset frequency range periodically or triggered by temperature changes. By comparing the amplitude of the received signal, it determines the optimal excitation frequency and switches accordingly. A linkage update mechanism for frequency and zero-drift parameters is in place. When switching to a new optimal excitation frequency, the system must simultaneously retrieve the corresponding zero-flow drift calibration value O from a pre-stored database or lookup table. Simultaneously, by calculating the measurement wave position, operating frequency, and offset value Os, the system compensates for subsequent flow rate and sound velocity calculations, achieving more accurate measurement and detection tasks.

[0037] This application also provides an ultrasonic water and gas metering system with adaptively adjustable excitation frequency, employing the method described above.

[0038] like Figure 2 The image shows the frequency-amplitude characteristic of an ultrasonic gas meter with a nominal center frequency of 200kHz at room temperature. The scan results show that the signal amplitude is highest at 195kHz, followed by 200kHz, with a difference of only 7%. The reverse and forward flow time differences at different excitation frequencies under zero flow conditions were collected, and the average and standard deviations were statistically analyzed. Figure 3 It can be seen that its standard deviation is the smallest at 195kHz and 200kHz, and the measurement accuracy is the best at this time, which corresponds to the frequency-amplitude characteristic. Figure 4 That is, the frequency value f-compensation value O mapping table is related to the transducer and circuit, and needs to be calibrated and adjusted at the factory. Figure 5 The frequency-amplitude characteristics of this ultrasonic gas meter at different temperatures are as follows: optimal frequency is 205kHz in -25 to -15 degrees Celsius, 210kHz in -5 to -5 degrees Celsius, 195kHz in 15 to 25 degrees Celsius, and 200kHz in 35 to 55 degrees Celsius. Using the technical solution of this application, the excitation frequency-amplitude characteristic is scanned every 10 degrees Celsius to find the optimal operating frequency at the current temperature, achieving high-precision flow measurement. It should be noted that... Figure 3-5 and Figure 2 Both are the same ultrasonic gas meter.

[0039] The foregoing has shown and described the basic principles and main features of the present invention. It will be apparent to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments. Therefore, the embodiments should be considered as exemplary and not restrictive. The scope of the present invention is defined by the appended claims rather than the foregoing description. Therefore, it is intended that all variations falling within the meaning and scope of the equivalents of the claims be included within the present invention.

[0040] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A method for measuring ultrasonic water and gas using an adaptively adjustable excitation frequency, characterized in that, Includes the following steps: S1 has a preset trigger scanning mechanism, which includes a periodic trigger mechanism or an event-driven trigger mechanism, to generate a trigger signal; S2 receives the trigger signal from step S1, pauses the regular flow metering task, performs a frequency-receive amplitude scan, and obtains the signal amplitude AM_fn, and sequentially completes the measurement of the signal amplitude corresponding to the excitation signal at each frequency point. After S3 completes the scan, it acquires frequency-amplitude data. Based on the maximum signal amplitude, it obtains the corresponding frequency point f_n as the optimal operating frequency f_optimal under the current operating condition. The operating frequency of the excitation signal generation circuit is switched to f_optimal, and the original operating frequency f_o is recorded synchronously. While switching the operating frequency, S4 performs a calibration parameter update operation. The calibration parameter update includes updating the zero flow drift value O and the time and delay value Os. The updated O_n value is used as the zero-point compensation benchmark for flow calculation, and the Os_n value is used as the compensation benchmark for sound speed calculation. After S5 completes the calibration parameter update, it exits the frequency-receive amplitude scan, adopts the updated operating frequency f_optimal, zero flow drift value O, and time and delay value Os, and resumes the regular flow metering task.

2. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 1, characterized in that, The periodic triggering mechanism in step S1 is as follows: the automatic triggering frequency-receiver amplitude scanning program is set according to the preset time interval; the event-driven triggering mechanism is as follows: when the temperature change exceeds the preset temperature threshold, the frequency-receiver amplitude scanning program is triggered immediately.

3. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 1, characterized in that, In step S2, the frequency-received amplitude scanning is set to a step-type excitation, including the following process: Set the frequency scanning flag to control the excitation signal generation circuit to perform step excitation within a preset frequency range; At each frequency point, a series of ultrasonic pulses are emitted, and the amplitude of the signal induced on the receiving transducer is measured to be AM_fn. After measuring one frequency point, proceed to the next frequency point for excitation, until all frequency points are excited.

4. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 1, characterized in that, The update of the zero-flow drift value O in step S4 includes the following process: Construct a mapping table between frequency value f and compensation value O; Based on the working frequency f_n after switching in step S3, the compensation value O_n corresponding to f_n is obtained from the frequency value f-compensation O mapping table; The zero-flow drift value O is updated based on the compensation value O_n as the zero-point compensation benchmark.

5. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 4, characterized in that, The construction of the frequency value f-compensation value O mapping table includes the following process: Under zero flow conditions and within a preset frequency range, perform a preset number of zero flow calibrations and received amplitude scans at different excitation frequencies; The average time difference between the reverse and forward currents, O_fn, and the average received amplitude, AM_fn, are calculated. The excitation frequency corresponding to the maximum received amplitude is taken as the nominal operating frequency. A corresponding frequency value f-compensation value O mapping table is generated and stored in the system memory.

6. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 1, characterized in that, The update of time and delay value Os in step S4 includes the following process: The formula for calculating the compensation value Os_n for time and delay is: Os_n=H_n*(1 / f_n-1 / f_o), where H_n is the measurement point location for measuring the flight time in both directions, f_n is the working frequency f_optimal after switching in step S3, and f_o is the original working frequency; Os_n serves as the compensation benchmark for calculating the speed of sound c.

7. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 1, characterized in that, During the update process of the time and delay value Os in step S4, the formula for calculating the speed of sound c is: (1) When there is a temperature sensor in the system, calculate the speed of sound based on the temperature; then calculate the theoretical value of Tu+Td 2*(Lp+Lo) / c+Os to make a valid judgment on the flight time with and against the current; (2) When there is no temperature sensor in the system, the speed of sound c is calculated by the time of the upstream and downstream flow. The calculation formula is: c=2*(Lp+Lo) / (Tu+Td-Os) or c=(Lp+Lo) / 2*(1 / (Tu-Os / 2)+1 / (Td-Os / 2)), where Lp is the effective sound path, Lo is the ineffective sound path, Tu is the time of the upstream flight, and Td is the time of the downstream flight. The speed of sound c is calculated based on the updated Os.

8. The ultrasonic water / gas metering method with adaptively adjustable excitation frequency according to claim 5, characterized in that, The preset frequency range is set to ±10% or ±20% of the transducer center frequency, and the preset number of cycles is 300-1000.

9. An ultrasonic water / gas metering system with adaptively adjustable excitation frequency, characterized in that, The method described in any one of claims 1 to 8.