Energy converter matching optimization program algorithm for NB remote transmission ultrasonic gas meter

Through continuous sampling and adaptive correction algorithms, the transducer parameters of ultrasonic gas meter are optimized, which solves the problem of insufficient adaptability of gas media in fixed gain mode, and realizes accurate flow measurement and stable metering of multiple gas media.

CN120489268AActive Publication Date: 2025-08-15LIAONING HANGXUXING IOT INSTR TECH CO LTD

Patent Information

Application Number
CN202510665290.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-08-15
Estimated Expiration
2045-05-22

AI Technical Summary

Technical Problem

The gain value of the existing ultrasonic gas meter is set to a fixed mode, which cannot adapt to the physical characteristics of different gas media, resulting in a decrease in measurement accuracy and cannot meet the metering needs of multiple gas media.

Method used

Acquisition of sound velocity data through continuous sampling, combining the filtering and matching of fluid acoustic parameter database, dynamically adjust the transducer parameters, and optimize the initial working parameter group using an adaptive correction algorithm to generate control instructions to match multiple gas media.

Benefits of technology

It realizes the adaptive matching of ultrasonic gas meter to various gas media such as natural gas and liquefied gas, improves the accuracy of flow measurement, extends the calibration cycle, reduces the time loss of traditional trial and error methods, and adapts to scenarios of frequent fluctuations in gas components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120489268A_ABST
    Figure CN120489268A_ABST
Patent Text Reader

Abstract

The invention relates to a transducer matching optimization program algorithm for an NB remote transmission ultrasonic gas meter, and the method comprises the steps: carrying out the continuous sampling of measurement data in the gas meter in a sampling time period, and obtaining a sampling data set; obtaining a first sound velocity estimation value according to the downstream propagation time and the countercurrent propagation time; obtaining a primary sieve database based on all the first sound velocity estimated values; determining a matched fluid corresponding to the target fluid in a primary screen database according to the first sound velocity estimation value; determining an initial working parameter group in the transducer in a fluid acoustic parameter database according to the matched fluid; performing adaptive correction on the initial working parameter group according to the first sound velocity estimation value to obtain a recommended working parameter group; and generating a control instruction based on the recommended working parameter group, and sending the control instruction to the transducer. Compared with a fixed gain mode, the method can be matched with various gas media in a self-adaptive mode, and the application range of the ultrasonic gas meter is remarkably expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of transducer matching optimization, and in particular to a transducer matching optimization program algorithm for NB remote ultrasonic gas meters. Background Art

[0002] Traditional diaphragm gas meters have long dominated the field of gas meter technology, enjoying widespread application. However, diaphragm gas meters present numerous inherent drawbacks. Their complex structure, comprising numerous mechanical components, inevitably leads to mechanical wear during continuous operation. This wear accumulates over time, causing the meter's accuracy to deteriorate, rendering it unable to accurately measure gas flow and introducing significant errors and uncertainties into gas metering.

[0003] With the advancement and development of science and technology, ultrasonic gas meters have emerged as a new type of metering instrument. These purely digital meters offer numerous exceptional features. They offer stable performance, unburdened by the wear and tear of traditional mechanical components, and can maintain stable operation over extended periods. For remote meter reading, ultrasonic gas meters offer the advantages of safety and efficiency. Through digital signal transmission, they facilitate remote data collection and monitoring, significantly enhancing the intelligence of gas management. Furthermore, their metering accuracy is reliable, enabling more precise measurement of gas usage than traditional diaphragm gas meters, providing more accurate data support for gas trade settlements. Furthermore, ultrasonic gas meters are easily digitized, facilitating integration and connection with modern intelligent gas management systems. These meters meet the demands of gas metering and management in the digital age, making them an inevitable trend in gas meter technology development.

[0004] However, despite the many advantages of ultrasonic gas meters, they still face some challenges in practical applications: although some existing ultrasonic gas meters are equipped with gain control circuits, their gain values are set to a fixed mode. Different gas media have different physical properties, such as density and sound velocity. The fixed gain value can only achieve relatively accurate flow measurement for a specific measured medium. When facing other types of gas media, the measurement accuracy will be greatly reduced, and it cannot meet the universal requirements of measuring multiple gas media. Summary of the Invention

[0005] In order to solve the above technical problems, the present application provides a transducer matching optimization program algorithm for NB remote ultrasonic gas meters.

[0006] In a first aspect, the present application provides a transducer matching optimization program algorithm for NB remote ultrasonic gas meters, which adopts the following technical solutions: A transducer matching optimization program algorithm for NB remote ultrasonic gas meters, including: After the target fluid flows in the target pipeline for a period of time, the measurement data in the gas meter are continuously sampled within a preset sampling period to obtain a sampling data set, wherein the sampling period includes a plurality of sampling sub-periods, and the sampling data set includes the downstream propagation time and the upstream propagation time of the ultrasonic wave in the target fluid; Obtaining a first sound velocity estimation value of the ultrasonic wave in the target fluid according to the downstream propagation time and the upstream propagation time corresponding to each sampling sub-period, wherein the first sound velocity estimation value corresponds to the sampling sub-period one-to-one; Performing a preliminary screening in a preset fluid mass acoustic parameter database based on all the first sound velocity estimation values to obtain a preliminary screening sub-database; determining a matching fluid corresponding to the target fluid in the primary screening database according to the first sound velocity estimation value; determining an initial working parameter set in the transducer in the fluid acoustic parameter database according to the matching fluid; Adaptively correcting the initial operating parameter set according to all the first sound velocity estimation values to obtain a recommended operating parameter set; A control instruction is generated based on the recommended operating parameter group, and the control instruction is sent to the transducer to replace the current operating parameter group in the transducer with the recommended operating parameter group.

[0007] In a specific embodiment, the fluid acoustic parameter database includes an acoustic parameter group corresponding to each known type of fluid, the acoustic parameter group including a standard sound velocity of ultrasound in the corresponding fluid under a preset standard working environment and a comparative sound velocity of ultrasound in the corresponding fluid under a number of preset specific environments, wherein the specific environments correspond to the comparative sound velocities one-to-one; the preliminary screening is performed in the preset fluid acoustic parameter database based on all the first sound velocity estimates to obtain a preliminary screening sub-database including: Obtaining a sound velocity approximate value corresponding to the sampling period based on all the first sound velocity estimation values, wherein the sound velocity approximate value is used to reflect an actual sound velocity of the ultrasonic wave in the target fluid; Inputting the sound velocity approximate value into a preset reference range calculation formula to obtain a reference sound velocity interval corresponding to the target fluid; Comparing each of the standard sound velocities with the reference sound velocity interval to determine whether the standard sound velocity is within the reference sound velocity interval; When the standard sound velocity is within the reference sound velocity interval, the fluid corresponding to the standard sound velocity is used as an alternative fluid, and all the alternative fluids are used as a primary screening database.

[0008] In a specific embodiment, the reference range calculation formula is specifically: ; in, represents the approximate value of the sound velocity of the ultrasonic signal in the target fluid during the sampling period; represents the reference sound speed interval, Indicates the minimum sound speed value in the reference sound speed interval, Indicates the maximum sound speed value in the reference sound speed interval; Indicates the standard temperature corresponding to the preset target specific environment; Indicates the standard pressure corresponding to the target specific environment; Indicates the current actual temperature of the target pipeline; Indicates the current actual pressure of the target pipeline; is the correction factor and ; as well as is the formula fitting coefficient, and is the constant term.

[0009] In a specific embodiment, obtaining an approximate sound speed value corresponding to the sampling period based on all the first sound speed estimation values includes: A second sound velocity estimation value is calculated based on the downstream propagation time and the upstream propagation time. The calculation formula of the second sound velocity estimation value is as follows: ;

[0010] in, Indicates A second sound speed estimation value corresponding to the sampling sub-period; represents the ultrasonic signal propagation path; Indicates the The downstream propagation time corresponding to the sampling sub-period of the segment; Indicates the The upstream propagation time corresponding to the sampling sub-period of the segment; verifying the first sound speed estimate value according to the second sound speed estimate value to obtain a verification result, the verification result including that the first sound speed estimate value has a small error and that the first sound speed estimate value has a large error; When the verification result shows that the error of the first sound speed estimation value is small, directly taking the average value of all the first sound speed estimation values as the sound speed approximation value; When the verification result shows that the first sound speed estimation value has a large error, an approximate sound speed value is obtained according to the first sound speed estimation value and the second sound speed estimation value.

[0011] In a specific embodiment, determining a matching fluid corresponding to the target fluid in the primary screening database according to the first sound velocity estimate includes: Obtaining the actual temperature and actual pressure in the target pipeline, matching a target specific environment according to the actual temperature and the actual pressure, and using the temperature corresponding to the target specific environment as a standard temperature and the pressure corresponding to the target specific environment as a standard pressure, wherein the target specific environment is one of the specific environments in the fluid acoustic parameter database; Obtaining a comprehensive difference index according to the actual temperature, the actual pressure, the standard temperature, and the standard pressure; Obtaining a matching degree corresponding to each type of fluid based on the comprehensive difference index, the comparative sound velocity, and the sound velocity approximation; The matching fluid is determined based on the degree of matching.

[0012] In a specific embodiment, the comprehensive difference index is calculated as follows: ; ; ; in, is a comprehensive difference index; are the pre-set temperature and pressure weight coefficients respectively; Indicates the actual temperature in the pipe; Indicates the actual pressure in the target pipeline; Indicates the standard temperature corresponding to the target specific environment; Indicates the standard pressure corresponding to the target specific environment; The calculation formula of the matching degree is as follows: ; ; ;

[0013] in, Indicates the comparative sound speed corresponding to the target specific environment; Indicates the current approximate value of the speed of sound; Indicates the maximum possible difference in the preset sound speed; C represents the quantitative value of the sound speed difference; Indicates the degree of matching.

[0014] In a specific embodiment, the initial operating parameter group includes the initial transmission power and initial impedance matching value of the transducer, and the fluid acoustic parameter database also includes a number of initial operating parameters corresponding to each type of fluid. The adaptive correction of each initial operating parameter based on the sound velocity approximation corresponding to all sampling sub-intervals is performed to obtain the following calculation formula in the recommended operating parameter group: ; ; ;

[0015] in, Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; Represents the average value of the approximate sound speed during the entire sampling period; Indicates the standard sound velocity corresponding to the matching fluid; Indicates the total number of sampling sub-periods within the sampling period; It is used to represent the actual sound velocity of the matching fluid propagating in the pipeline; is the initial transmit power, To correct the transmit power, that is, the transmit power obtained after correcting the initial transmit power; To calibrate the impedance matching value; is the initial impedance matching value; Indicates the sampling sub-periods; Indicates the fluid density corresponding to the matching fluid.

[0016] In a second aspect, the present application provides a smart terminal, which adopts the following technical solution: A smart terminal includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the transducer matching optimization program algorithm for NB remote ultrasonic gas meters as described in the first aspect.

[0017] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium, wherein the readable storage medium stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the transducer matching optimization program algorithm for NB remote ultrasonic gas meters as described in the first aspect.

[0018] In summary, this application includes at least one of the following beneficial technical effects: 1. This application uses continuous sampling to obtain sound velocity data at different time intervals. Combined with the screening and matching of a fluid acoustic parameter database, it can identify differences in the physical properties of the target fluid (such as density and sound velocity) in real time, thereby dynamically adjusting transducer parameters. Compared to fixed-gain modes, this method can adaptively match a variety of gas media, including natural gas and liquefied petroleum gas, significantly expanding the scope of application of ultrasonic gas meters. 2. This application introduces the calculation of the difference between actual temperature and pressure and standard environmental parameters (comprehensive difference index), and combines it with a fusion algorithm for sound velocity approximation to effectively compensate for the impact of environmental changes on sound velocity. By adaptively correcting the initial operating parameter set (such as transmission power and impedance matching value), it ensures that the transducer output is optimally matched to the current fluid quality and operating conditions, thereby improving the accuracy of flow measurement. 3. A two-stage screening strategy (preliminary screening database construction and matching degree quantification) is used to quickly identify matching fluids based on sound velocity approximations and environmental parameters. This method quantifies fluid similarity through mathematical modeling (such as the matching degree formula), effectively avoiding the time loss of traditional trial-and-error methods and improving matching efficiency. It is particularly suitable for scenarios where gas composition fluctuates frequently. 4. Through cross-validation of multi-period sampling data (using the second sound velocity estimate to verify the first sound velocity estimate, and combining the two to obtain a more accurate sound velocity approximation), transient noise interference is effectively filtered out. Combined with the dynamic update mechanism of the recommended operating parameter group, performance drift caused by transducer aging or dielectric deposition can be suppressed, greatly extending the calibration cycle of the gas meter. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a transducer matching optimization program algorithm for a NB remote ultrasonic gas meter according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0021] The following is a further detailed description of an embodiment of a transducer matching optimization program algorithm for a NB remote ultrasonic gas meter of the present application in conjunction with the drawings of the specification.

[0022] An embodiment of the present application discloses a transducer matching optimization program algorithm for a NB remote ultrasonic gas meter.

[0023] Reference Figure 1 , a transducer matching optimization program algorithm for NB remote ultrasonic gas meter includes: S100, after the target fluid flows in the target pipeline for a period of time, continuously sampling the measurement data in the gas meter within a preset sampling period to obtain a sampling data set; Among them, the target pipeline refers to the pipeline where the ultrasonic gas meter is currently installed, and the target fluid refers to a certain gaseous substance currently flowing in the target pipeline, such as natural gas, coal gas, or gas after liquefied petroleum gas, etc. Common types of gas; the measurement data refers to the ultrasonic flight time data (i.e., the downstream propagation time and the upstream propagation time below) calculated in the gas meter main control board based on the ultrasonic signals emitted and received by the transducer; the sampling period refers to the total time for continuous sampling, including several sampling sub-periods of equal length. In this embodiment, the sampling period is 2 minutes and the sampling sub-period is 10 seconds as an example. In this way, it is ensured that there is sufficient sampling data for analysis without making the sampling data volume too large, resulting in low efficiency of subsequent analysis and calculation; the sampling data set includes the downstream propagation time and the upstream propagation time of the ultrasonic wave in the target fluid in each sampling sub-period.

[0024] It should be noted that the ultrasonic gas meter in this embodiment does not need to be manually calibrated before leaving the factory to adapt the ultrasonic gas meter to the measurement of a specific fluid flow rate. Therefore, when the gas meter is first used to measure the flow rate of the target fluid in the target pipeline, it is necessary to first perform adaptive debugging based on the sampling data set obtained in the sampling period to complete automatic matching optimization; at the beginning of each sampling sub-period in the sampling period, the main control board in the gas meter will send an electrical signal to one of the transducers, and the transducer that receives the electrical signal will transmit an ultrasonic signal to the other transducer, and the other transducer will feed back the received ultrasonic signal after receiving the ultrasonic signal. When the original transducer When the transducer that emits an ultrasonic signal receives a feedback ultrasonic signal, it will send an electrical signal to the main control board; when each transducer receives / transmits an ultrasonic signal and the main control board actively transmits / passively receives an electrical signal, a timestamp will be recorded in the main control board. The main control board will calculate the corresponding downstream propagation time and upstream propagation time of the ultrasonic wave in each sampling sub-period based on these timestamps. The downstream propagation time refers to the difference between the time point when one transducer transmits an ultrasonic signal and the time point when another transducer receives the ultrasonic signal; the upstream propagation time refers to the difference between the time point when another transducer feeds back an ultrasonic signal and the time point when the original transducer receives the feedback ultrasonic signal.

[0025] S200, obtaining a first sound velocity estimate of the ultrasonic wave in the target fluid based on the downstream propagation time and the upstream propagation time corresponding to each sampling sub-interval; The first sound velocity estimation value corresponds to the sampling sub-period one-to-one; specifically, S200 includes: S210, obtaining the installation parameters preset in the main control board; The installation parameters include the ultrasonic signal propagation path, the transducer installation cavity path, the horizontal angle between the ultrasonic path and the target pipe, and the energy conversion delay time; It should be noted that the ultrasonic signal propagation path refers to the actual total path length that the ultrasonic signal travels between the two transducers in the target fluid. This value can be obtained by directly measuring the distance between the two transducer installation points on the target pipe. For a straight pipe, if the two transducers are installed at both ends of the pipe diameter, then the ultrasonic signal propagation path is the pipe diameter, which can be directly measured using tools such as calipers and laser rangefinders. For non-straight or complex-shaped pipes, the theoretical path length of the ultrasonic signal propagation can be calculated as the ultrasonic signal propagation path based on the pipe design drawings and geometric knowledge. The path length can also be calculated using mathematical methods such as trigonometric functions based on known pipe size parameters and transducer installation angles. The transducer installation cavity path refers to the actual path that the ultrasonic signal propagates within a specific cavity (housing) when the transducer is installed in the cavity. In other words, the ultrasonic signal emitted from the transducer will first pass through the propagation path within the installation cavity before entering the target pipeline. This value is usually directly obtained during the production of the transducer installation cavity of the gas meter based on the preset design size and shape. Energy conversion delay time refers to the time delay from when a transducer receives an electrical signal to when it completely converts the electrical signal into an ultrasonic signal and transmits it, or from when a transducer receives an ultrasonic signal to when it completely converts it into an electrical signal and transmits it.

[0026] S220, constructing a propagation time-sound speed relationship equation group according to the installation parameters, and obtaining a first sound speed estimation value corresponding to each sampling sub-period according to the propagation time-sound speed relationship equation group; The first sound speed estimation value is obtained by solving the propagation time-sound speed relationship equation group; the propagation time-sound speed relationship equation group of this embodiment is as follows: ;

[0027] After solving, the calculation formula for the first sound speed estimate is as follows: ;

[0028] in, Indicates the The downstream propagation time corresponding to the sampling sub-period of the segment; Indicates the The upstream propagation time corresponding to the sampling sub-period of the segment; represents the ultrasonic signal propagation path; Indicates the flow rate of the target fluid, which is the preset value; Indicates the cavity path where the transducer is installed; Indicates the energy conversion delay time; Indicates the The first sound speed estimation value corresponding to the sampling sub-period; Indicates the horizontal angle between the ultrasonic path and the target pipe.

[0029] S300, performing preliminary screening in a preset fluid acoustic parameter database based on all first sound velocity estimates to obtain a preliminary screening sub-database; The fluid acoustic parameter database includes an acoustic parameter group corresponding to each known fluid. The acoustic parameter group includes the standard sound velocity of ultrasound in the corresponding fluid under a standard working environment and the comparative sound velocity of ultrasound in the corresponding fluid under several specific environments. The fluid acoustic parameter database of this embodiment is shown in Table 1 below: Table 1:

[0030] It should be noted that in step S300, this embodiment mainly determines the specific type of the target fluid through the fluid acoustic parameter database and the first sound velocity estimate obtained in S200. That is, when the sound velocity data of a fluid in the fluid acoustic parameter database and the sound velocity data displayed by the target fluid meet a certain similarity condition (such as a similarity of 95% between the sound velocity value / the sound velocity variation curve with temperature or pressure, etc.), the target fluid is considered to be a fluid of that type. In this process, in order to effectively ensure the accuracy and efficiency of matching the fluid corresponding to the target fluid, this embodiment first uses the standard sound velocity and the actual sound velocity data of the target fluid (i.e., the first sound velocity estimate and the sound velocity approximation in S340) to screen out a number of candidate fluids with similar properties (i.e., similar sound velocity data) from the fluid acoustic parameter database. This screening method does not require more complex characteristic analysis and matching calculations, greatly reduces the amount of calculation, and can provide a high-quality candidate set for determining the matching fluid in S400, effectively ensuring the accuracy of determining the matching fluid. It can be seen that the rationality of the setting of the screening conditions (i.e., the reference sound velocity interval in S360) will greatly affect the accuracy of the target fluid type judgment. Therefore, this embodiment adopts the following method to minimize the large error in the screening conditions. Specifically, S300 includes: S310, calculating a second sound velocity estimation value based on the downstream propagation time and the upstream propagation time; The calculation formula of the second sound speed estimation value is as follows: ;

[0031] in, Indicates the A second sound speed estimation value corresponding to the sampling sub-period; represents the ultrasonic signal propagation path; Indicates the The downstream propagation time corresponding to the sampling sub-period of the segment; Indicates the The upstream propagation time corresponding to the sampling sub-period of the segment.

[0032] S320, verifying the first sound speed estimation value according to the second sound speed estimation value to obtain a verification result; The verification result includes whether the first sound speed estimation value has a large error or the first sound speed estimation value has a small error. Specifically, S320 includes: S321, calculating the phase difference between the first sound speed estimation value and the second sound speed estimation value; The phase difference calculation formula is as follows: ; ;

[0033] ;

[0034] in, Indicates the second average sound velocity of the ultrasonic signal in the target fluid during the sampling period; Indicates the A second sound speed estimation value corresponding to the sampling sub-period; Indicates the first average sound velocity of the ultrasonic signal in the target fluid during the sampling period; Indicates the The first sound speed estimation value corresponding to the sampling sub-period; The difference degree is used to reflect the degree of difference between the first and second sound speed estimates obtained by the two calculation methods. The larger the difference degree, the greater the difference between the two values. It can also be understood that there is a large error in at least one of the sound speed values between the second average sound speed and the first average sound speed.

[0035] It should be noted that the first sound velocity estimation value and the second sound velocity estimation value obtained by the two calculation methods mentioned above refer to the first sound velocity estimation values (i.e., theoretical values) calculated by combining the propagation time-sound velocity relationship equation group in step S220 with the target pipeline installation characteristics, and the second sound velocity estimation values (i.e., actual values) directly obtained by step S310. In this embodiment, the first average sound velocity and the second average sound velocity corresponding to the two are used as representatives to calculate the phase difference. .

[0036] S322, comparing the phase difference with a preset phase difference threshold; In this embodiment, the phase difference threshold is taken as 95% as an example.

[0037] S323 , if the phase difference is greater than the phase difference threshold, a verification result indicating that the first sound speed estimation value has a large error is obtained; otherwise, a verification result indicating that the first sound speed estimation value has a small error is obtained.

[0038] S330: When the verification result shows that the error of the first sound speed estimation value is small, the average value of the first sound speed estimation value is directly used as the sound speed approximation value.

[0039] It should be noted that the core purpose of the transducer matching optimization method provided in this embodiment is to enable ultrasonic gas meters of a uniform model to possess superior adaptability. This adaptability manifests itself in the ability to automatically match a precise flow measurement method to the target fluid, without requiring specialized design or manual calibration for the specific fluid. This also means that ultrasonic gas meters using the matching optimization method in this embodiment often utilize a unified hardware configuration (key components such as temperature sensors and pressure sensors). Given that the pressure and temperature conditions in which the same hardware configuration is used typically do not differ significantly, for example, gas meters used in high-temperature or high-pressure environments are typically equipped with specialized hardware configurations designed to withstand high temperatures and high pressures, while gas meters used in standard operating conditions typically utilize conventional hardware configurations. Therefore, in the subsequent step S340 of this embodiment, there is no need to consider the issue of significant errors in the first sound velocity estimate due to excessive deviations between the actual temperature / actual pressure and the corresponding standard temperature / standard pressure. Therefore, this embodiment further includes the following steps when correcting the first sound velocity estimate with significant errors: S340: When the verification result shows that the first sound speed estimation value has a large error, obtain an approximate sound speed value based on the first sound speed estimation value and the second sound speed estimation value; Specifically, S340 includes: S341, determine the equation for the change of sound speed; The sound speed variation equation is used to reflect a certain regular change in the sound speed between adjacent sampling sub-periods. Specifically, the sound speed variation equation is as follows: ;

[0040] in, Indicates the The approximate sound velocity corresponding to the sampling sub-period is: Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; It is the process noise in ultrasonic propagation, which is used to represent the random changes of the approximate sound speed due to various uncertain factors; Represents the state transition matrix. In this embodiment, , used to indicate the approximate value of the speed of sound from the Sampling sub-period to There is no obvious systematic trend of change during the sampling sub-periods.

[0041] S342, constructing a sound speed prediction equation based on the first average sound speed and the second average sound speed; The sound speed prediction equation is used to predict the approximate sound speed of the next sampling sub-period based on the approximate sound speed of the previous sampling sub-period. Specifically, the sound speed prediction equation is as follows: ; ;

[0042] in, represents the predicted value of the speed of sound; Indicates the The approximate sound velocity corresponding to the sampling sub-period is: Represents a vector The transposed matrix of is the observation matrix. In this embodiment, ; represents the observation noise in ultrasonic propagation.

[0043] S343, respectively determining a process noise covariance matrix corresponding to the process noise and an observation noise covariance matrix corresponding to the observation noise; Among them, the observation noise covariance matrix is used to describe the characteristics of the noise generated by the two sound speed calculation methods (corresponding to the calculation methods of the first average sound speed and the second average sound speed) in the sound speed prediction process and the correlation between them; the process noise covariance matrix is used to characterize the covariance of the sound speed approximation due to random changes caused by various uncertain factors; under normal circumstances, the value of the observation noise covariance matrix can be predetermined by a large amount of experimental data: the deviation of each measurement result relative to the true value of the two sound speed calculation methods under different measurement environments and different fluid conditions is analyzed, and the variance of these deviation data and other information are counted to construct the observation noise covariance matrix; for the process noise covariance matrix, its element values can be determined based on statistical data on the degree of fluctuation of the sound speed under similar working conditions in most cases with time or other interference factors; in this embodiment, the two sound speed calculation methods are independent of each other, so the observation noise covariance matrix is set as a diagonal matrix, and the elements on the diagonal correspond to the variances between all observation noises obtained by the two methods. The above determination method is a prior art and will not be repeated here.

[0044] S344, initializing the sound speed approximation value and the covariance matrix corresponding to the sound speed approximation value; Among them, at the initial moment (i.e., at the beginning of the first sampling sub-period), an initial estimate of the sound speed approximation is required. The sound speed approximation in this embodiment takes the average of the first sound speed estimation value and the second sound speed estimation value at the initial moment; the covariance matrix corresponding to the sound speed approximation is used to represent the uncertainty of the initial estimated sound speed approximation. The value of the covariance matrix can be set according to the credibility of the initial estimate. If the initial estimate is relatively accurate, the value is smaller, otherwise it is larger. In this embodiment, the covariance matrix corresponding to the sound speed approximation is used as a diagonal matrix, and the elements on the diagonal take the variances between all sound speed approximations.

[0045] S345, starting from the initial state, gradually advancing to each subsequent sampling sub-period to continuously optimize the estimation of the sound speed approximation value to obtain a final sound speed approximation value; Specifically, S345 includes: S3451, at the beginning of each new sampling sub-period, predicting the approximate sound speed value of the current sampling sub-period based on the sound speed approximate value obtained in the previous sampling sub-period and the sound speed change equation in S341; Among them, S3451 assumes that there is no obvious systematic change trend of the sound speed between adjacent sampling sub-periods, and simply continues the original state transfer matrix in S341.

[0046] S3452, continuously updating the covariance matrix corresponding to the sound speed approximation through a preset covariance update equation; Among them, the covariance update equation is as follows: ;

[0047] in, The covariance matrix of the sound velocity approximation corresponding to the k-th sampling sub-period is used to reflect the uncertainty of the sound velocity approximation corresponding to the current k-th sampling sub-period after considering the uncertainty propagation of the (k-1)-th sampling sub-period and the influence of new process noise; represents the covariance matrix of the sound speed approximation corresponding to the (k-1)th sampling sub-period; represents the state transition matrix; represents the transposed matrix of the state transition matrix; represents the process noise covariance matrix.

[0048] S3453, determining a Kalman gain, and continuously correcting the newly obtained sound speed approximation value based on the Kalman gain to obtain a final sound speed approximation value; The calculation formula of Kalman gain is as follows: ;

[0049] in, represents the Kalman gain; Represents the covariance matrix of the approximate sound speed corresponding to the k-th sampling sub-period; represents the observation matrix, which is used to establish the relationship between the approximate sound speed value corresponding to the previous sampling sub-period and the approximate sound speed value corresponding to the next sampling sub-period; represents the transposed matrix of the observation matrix; represents the observation noise covariance matrix; The calculation formula for correcting the sound velocity approximation is as follows: ;

[0050] in, Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; Indicates the The predicted sound speed value corresponding to each sampling sub-period; represents the Kalman gain; represents the observation noise in ultrasonic propagation; represents the observation matrix; Represents the residual between the observed data and the predicted data, which is used to reflect the degree of difference between the observed data and the predicted results. Adjust the predicted value based on the residual value , thus obtaining a more accurate The approximate sound speed corresponding to each sampling sub-period.

[0051] It should be noted that the above steps S3451-S3452 are mainly time update steps, which are used to predict the approximate sound speed; step S3453 is mainly a measurement update step, which is used to continuously correct the predicted approximate sound speed. In this way, by continuously repeating the above time update and measurement update steps, the approximate sound speed and its uncertainty are optimized in each sampling sub-period. As the iteration proceeds, the approximate sound speed will gradually approach the true value, thereby realizing the effective fusion of the results of the two sound speed calculation methods and obtaining a more accurate approximate sound speed to meet the needs of subsequent applications.

[0052] S350, inputting the sound velocity approximate value into a preset reference range calculation formula to obtain a reference sound velocity range corresponding to the target fluid; The reference range calculation formula is as follows: ; in, represents the approximate value of the sound velocity of the ultrasonic signal in the target fluid during the sampling period; Indicates the reference sound velocity range, used to screen alternative fluids. Indicates the minimum sound speed value in the reference sound speed interval, Indicates the maximum sound speed value in the reference sound speed interval; Indicates the standard temperature under standard conditions. This embodiment takes 20°C as an example. Indicates the standard pressure under standard conditions. This embodiment takes 1 atm as an example. Indicates the current actual temperature of the target pipe, which is obtained by the temperature sensor installed in the target pipe; Indicates the current actual pressure of the target pipeline, which is obtained by the pressure sensor installed in the target pipeline; represents the correction factor related to the fluid properties and , generally speaking, The larger the value, the smaller the reference sound velocity interval, that is, the fewer the candidate fluids obtained in the subsequent step S370 are. In order to reduce the amount of calculation while effectively ensuring the accuracy of screening the candidate fluids in S370 and determining the matching fluids in S400; as well as is the formula fitting coefficient, which is mainly obtained by analyzing and fitting a large amount of experimental data and is used to accurately adjust the calculation of the reference sound speed range. directly affects the constant term in the formula, and It is associated with the correction coefficient and determines the reference sound speed range. And the adjustment range of temperature and pressure changes.

[0053] In this embodiment, as well as Based on the experimental data, Similarly, based on a large number of experimental data on the sound velocity of the target fluid under different temperature and pressure conditions, it is determined through repeated testing and optimization in this implementation scenario. Take 0.8, Take 0.3, the selection of this set of values ensures that as Increase, reference sound speed range The limited range can be narrowed to a certain extent as expected, while maintaining an accurate reflection of the target fluid's sonic velocity characteristics within the common temperature and pressure fluctuation range.

[0054] It is important to note that the characteristics of the target fluid may change in different application scenarios. For example, when a small amount of impurities are mixed into the target fluid, although the influence of temperature and pressure on the speed of sound still follows the above formula, the correction coefficient related to the fluid characteristics The connotations reflected will be different, and at this time, re-evaluation and calibration are needed To ensure the accuracy of the reference sound speed range calculation; specifically, The value of can be obtained by regularly calibrating the system, collecting the actual time data of ultrasonic transmission under different working conditions, and dynamically adjusting it using methods such as data fitting and error analysis, so that the system always remains in the best operating state, providing more reliable reference sound speed range data for steps S360 and S400, and further improving the performance and stability of the entire fluid identification and matching system.

[0055] S360 : Compare the standard sound velocity corresponding to each type of fluid with the reference sound velocity interval obtained from the first sound velocity estimation value to determine whether the standard sound velocity is within the reference sound velocity interval.

[0056] S370, when the standard sound velocity is within the reference sound velocity range, the fluid corresponding to the standard sound velocity is used as an alternative fluid, and all the alternative fluids are used as a primary screening database; The alternative fluid refers to a fluid whose sound velocity characteristics are more consistent with the sound velocity characteristics of the target fluid.

[0057] S400, determining a matching fluid corresponding to the target fluid in a primary screening sub-database according to the first sound velocity estimation value; The matching fluid refers to a fluid that is most likely to be of the same type as the target fluid and is an alternative fluid in the primary screening database. Specifically, in combination with the above-mentioned S310-S370, S400 mainly refers to obtaining a matching fluid in the primary screening database based on the standard sound velocity, the comparative sound velocity, and the sound velocity approximation obtained from all the first sound velocity estimation values, including the following steps: S410 , matching the actual temperature and actual pressure in the current pipeline to the most suitable target specific environment, using the temperature corresponding to the target specific environment as the standard temperature, and the pressure as the standard pressure; For each specific environment in the initial screening database, the degree of difference between it and the current actual temperature and actual pressure is calculated. For example, the absolute value of the temperature difference and the absolute value of the pressure difference can be calculated separately, and then these two differences can be combined into a comprehensive difference index based on a certain weighting method. By comparing the comprehensive difference indexes of each specific environment, the specific environment with the smallest comprehensive difference is selected as the target specific environment, thereby determining the corresponding standard temperature and standard pressure; specifically, the calculation method of the comprehensive difference index is as follows: ; ; ;

[0058] in, is a comprehensive difference index; are the preset temperature and pressure weight coefficients, respectively, and 0.5 is used as an example in this embodiment; Indicates the actual temperature in the pipe; Indicates the actual pressure in the pipeline; Indicates the standard temperature corresponding to the target specific environment; Indicates the standard pressure under the target specific environment.

[0059] S420, obtaining a matching degree corresponding to each type of fluid based on the comprehensive difference index, the comparative sound velocity corresponding to the target specific environment, and the sound velocity approximation; The calculation formula for the matching degree is as follows: ; ; ;

[0060] in, Indicates the comparative sound speed corresponding to the target specific environment; Indicates the current approximate value of the speed of sound; represents the maximum possible difference in the preset sound speed, and this embodiment takes 2 m / s as an example; C represents the quantified value of the sound speed difference; Indicates the degree of matching, when C or The larger the value, the greater the difference between the target fluid and the corresponding alternative fluid, and the smaller the degree of matching.

[0061] S430, determining a matching fluid according to the matching degree; The matching degrees of all types of fluids are sorted, and the fluid with the highest matching degree and a matching degree greater than a preset matching threshold is selected as the matching fluid. The matching threshold in this embodiment is 0.9 as an example.

[0062] S500, determining an initial working parameter set of the transducer in a fluid acoustic parameter database according to the matching fluid; Among them, the fluid acoustic parameter database also includes several initial working parameters corresponding to each type of fluid. The initial working parameter group includes three initial working parameters: the initial transmission power, initial impedance matching value and initial bandwidth of the transducer; each initial working parameter in the initial working parameter group refers to a set of parameter values set based on theoretical analysis, experimental data and past experience before ultrasonic measurement of a specific fluid, so that the transducer can initially achieve better performance under the transmission of the fluid. In this process, the standard sound velocity corresponding to different types of fluid is measured under standard environmental conditions such as specific temperature, pressure and fluid purity. The standard sound velocity represents the acoustic characteristics of the corresponding type of fluid in an ideal and stable state.

[0063] Specifically, the initial operating parameters of the transmission power need to take into account factors such as the absorption characteristics of different fluids for ultrasonic signals, the distance range required for measurement, and the power carrying capacity of the transducer itself. For fluids with high absorption coefficients, such as certain gases containing impurities or high viscosity, a relatively high transmission power is usually set to ensure that the ultrasonic signal can maintain sufficient intensity during propagation and carry complete and effective measurement information to the receiving end (the other transducer). For relatively pure fluids with low acoustic attenuation, the transmission power can be appropriately reduced to avoid problems such as signal distortion and transducer overheating caused by excessive power, which also helps to extend the service life of the transducer and reduce power consumption. The initial operating parameters for impedance matching must take into account the acoustic impedance characteristics of the fluid and the equivalent acoustic impedance of the transducer. By accurately measuring or estimating parameters such as the fluid's density and velocity, its acoustic impedance is calculated. Then, appropriate circuit components (such as inductors and capacitors) are selected to ensure that the transducer's input impedance matches the fluid's acoustic impedance as closely as possible. This effectively transmits ultrasonic energy between the transducer and the fluid, minimizing reflection losses and improving signal transmission efficiency and measurement accuracy.

[0064] The initial operating bandwidth parameter needs to comprehensively consider factors such as the range of possible sound velocity variations in the fluid and the required accuracy of the acoustic characteristics to be measured. If the fluid composition is complex or the measurement process may be affected by factors such as temperature and pressure, resulting in large fluctuations in sound velocity, then a wider bandwidth is required to ensure that the transducer can effectively receive and process ultrasonic signals containing different frequency components, avoiding the loss of important measurement information due to insufficient bandwidth. Conversely, if the fluid characteristics are relatively stable and the measurement requires low frequency resolution, appropriately reducing the bandwidth can improve the signal-to-noise ratio, reduce unnecessary noise interference, and enhance the stability and reliability of the measurement signal.

[0065] S600, adaptively correcting the initial operating parameter set according to all first sound velocity estimation values to obtain a recommended operating parameter set; Specifically, S600 mainly refers to adaptively correcting each initial operating parameter in the initial operating parameter group according to the sound velocity approximation corresponding to all sampling sub-periods; In this embodiment, the adjustment of each initial working parameter is mainly achieved by the following methods: Regarding the transmit power, considering the linear relationship between the approximate value of the speed of sound and the transmit power, in this embodiment, the adaptive correction formula for the initial transmit power is as follows: ; ;

[0066] in, Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; Represents the average value of the approximate sound speed during the entire sampling period; Indicates the standard sound velocity corresponding to the matching fluid; Indicates the total number of sampling sub-periods within the sampling period; It is used to represent the actual sound velocity of the matching fluid propagating in the pipeline; is the initial transmit power, The corrected transmit power is the transmit power obtained after correcting the initial transmit power.

[0067] For impedance matching value, due to acoustic impedance ( is the fluid density, is the fluid sound velocity), that is, when the approximate sound velocity changes, the acoustic impedance of the fluid will also change. Considering that the equivalent acoustic impedance of the transducer in this embodiment can be considered relatively stable when the hardware is fixed, in order to maintain a good matching state between the transducer and the fluid, this embodiment can directly readjust the impedance matching value according to the change in sound velocity. The adaptive correction formula of the initial impedance matching value is as follows: ;

[0068] in, To calibrate the impedance matching value; is the initial impedance matching value; Indicates the total number of sampling sub-periods within the sampling period; Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; Indicates the standard sound velocity corresponding to the matching fluid; Indicates the sampling sub-periods.

[0069] Regarding bandwidth, since the distribution range of ultrasonic sound velocity in different fluids is different, it will affect the propagation and scattering of ultrasonic signals. For example, when measuring mixed gases with large variations in sound velocity, a wider bandwidth is required to cover the range of sound velocity variations and accurately receive and process signals. The transducer in the ultrasonic gas meter of this embodiment mainly adopts a wide bandwidth covering the range of 50-200kHz, which helps the smart terminal adjust the bandwidth by changing the frequency range of the transducer's excitation signal or adjusting the filtering parameters of the signal processing circuit. At the same time, the smart terminal can also use digital signal processing technology to optimize the bandwidth by adjusting the cutoff frequency and passband width of the filter.

[0070] It should be noted that in the specific matching optimization process, under normal circumstances, since the driving circuit of the transducer includes a power regulation module, the smart terminal can change the electric power applied to the transducer by adjusting the parameters of the power regulation module, such as the amplification factor, power supply voltage, etc., thereby adjusting the transmission power; and for the impedance matching value, the smart terminal will adjust it through a matching network pre-set in the transducer circuit, such as using a matching circuit composed of components such as transformers, inductors, and capacitors, and adjusting the impedance matching by changing the component parameters.

[0071] S700, generating a control instruction based on the recommended operating parameter group, and sending the control instruction to the transducer to replace the current operating parameter group in the transducer with the recommended operating parameter group; The current operating parameter group includes the transducer's current operating parameters during the sampling phase, and the current operating parameters in the current operating parameter group correspond one-to-one with the initial operating parameters in the initial operating parameter group. The recommended operating parameter group includes the corrected transmit power and corrected impedance matching value, which are used to ensure the transducer operates at optimal performance under specific flow conditions, thereby ensuring high-precision flow measurement for ultrasonic gas meters. When generating control instructions, the system first digitally encodes the parameters in the recommended operating parameter group, namely the transducer's corrected transmit power, corrected impedance matching value, and corrected bandwidth, according to a specific encoding rule. This encoding rule is compatible with the transducer's control interface protocol, ensuring that the transducer can accurately recognize and respond to instructions. For example, binary encoding is used to convert the numerical value of each parameter into a corresponding binary code sequence. The code sequences of different parameters are arranged and combined in a predetermined order to form a complete control instruction data frame. After encoding, the system uses a dedicated communication module to send the control instruction to the transducer. This communication module can be based on a wired communication protocol such as RS-485 or SPI, or a wireless communication technology such as Bluetooth or Wi-Fi, depending on the transducer design and application requirements. During the transmission process, to ensure the accuracy and reliability of command transmission, the system will verify the control command, such as adding parity bits and CRC (cyclic redundancy check) codes. The communication module sends the control command with verification information in the form of electrical signals or electromagnetic waves, and the signal is transmitted to the transducer via a transmission line or wireless channel.

[0072] After receiving a control instruction, the control circuit inside the transducer decodes the instruction. Based on pre-set decoding rules, the control circuit converts the received binary code sequence into specific operating parameter values. Subsequently, based on these values, the control circuit makes corresponding adjustments to the various functional modules within the transducer. For example, it adjusts the transmit power by adjusting the gain of the power amplifier, adjusts the inductance and capacitance values in the impedance matching network using a digital potentiometer or programmable logic device to achieve the recommended impedance matching value, and adjusts the bandwidth by changing the filter's cutoff frequency or using a digital signal processing algorithm. Through this series of operations, the current operating parameter set within the transducer is successfully replaced with the recommended operating parameter set, allowing the transducer to operate in an optimized operating state, providing solid hardware support for accurate flow measurement in ultrasonic gas meters. This is prior art and will not be elaborated on here.

[0073] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses an intelligent terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set can be loaded and executed by the processor to implement a transducer matching optimization program algorithm for NB remote ultrasonic gas meters provided in the above method embodiment.

[0074] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set. The at least one instruction, at least one program, code set or instruction set can be loaded and executed by a processor to implement a transducer matching optimization program algorithm for a NB remote ultrasonic gas meter provided in the above method embodiment.

[0075] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.

[0076] Those skilled in the art will understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program to instruct the relevant hardware. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0077] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A transducer matching optimization algorithm for NB remote ultrasonic gas meter, characterized in that: include: After the target fluid flows in the target pipeline for a period of time, the measurement data in the gas meter are continuously sampled within a preset sampling period to obtain a sampling data set, wherein the sampling period includes a plurality of sampling sub-periods, and the sampling data set includes the downstream propagation time and the upstream propagation time of the ultrasonic wave in the target fluid; Obtaining a first sound velocity estimation value of the ultrasonic wave in the target fluid according to the downstream propagation time and the upstream propagation time corresponding to each sampling sub-period, wherein the first sound velocity estimation value corresponds to the sampling sub-period one-to-one; Performing a preliminary screening in a preset fluid mass acoustic parameter database based on all the first sound velocity estimation values to obtain a preliminary screening sub-database; determining a matching fluid corresponding to the target fluid in the primary screening database according to the first sound velocity estimation value; determining an initial working parameter set in the transducer in the fluid acoustic parameter database according to the matching fluid; Adaptively correcting the initial operating parameter set according to all the first sound velocity estimation values to obtain a recommended operating parameter set; A control instruction is generated based on the recommended operating parameter group, and the control instruction is sent to the transducer to replace the current operating parameter group in the transducer with the recommended operating parameter group.

2. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 1 is characterized in that: The fluid acoustic parameter database includes an acoustic parameter group corresponding to each known type of fluid, the acoustic parameter group including a standard sound velocity of ultrasound in the corresponding fluid under a preset standard working environment and a comparative sound velocity of ultrasound in the corresponding fluid under a plurality of preset specific environments, wherein the specific environments correspond to the comparative sound velocities one-to-one; the preliminary screening is performed in the preset fluid acoustic parameter database based on all the first sound velocity estimates to obtain a preliminary screening sub-database including: Obtaining a sound velocity approximate value corresponding to the sampling period based on all the first sound velocity estimation values, wherein the sound velocity approximate value is used to reflect an actual sound velocity of the ultrasonic wave in the target fluid; Inputting the sound velocity approximate value into a preset reference range calculation formula to obtain a reference sound velocity interval corresponding to the target fluid; Comparing each of the standard sound velocities with the reference sound velocity interval to determine whether the standard sound velocity is within the reference sound velocity interval; When the standard sound velocity is within the reference sound velocity interval, the fluid corresponding to the standard sound velocity is used as an alternative fluid, and all the alternative fluids are used as a primary screening database.

3. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 2 is characterized in that: The reference range calculation formula is specifically: ; in, represents the approximate value of the sound velocity of the ultrasonic signal in the target fluid during the sampling period; represents the reference sound speed interval, Indicates the minimum sound speed value in the reference sound speed interval, Indicates the maximum sound speed value in the reference sound speed interval; Indicates the standard temperature corresponding to the preset standard environment; Indicates the standard pressure corresponding to the standard environment; Indicates the current actual temperature of the target pipeline; Indicates the current actual pressure of the target pipeline; is the correction factor and ; as well as is the formula fitting coefficient, and is the constant term.

4. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 3 is characterized in that: The obtaining of an approximate sound speed value corresponding to the sampling period based on all the first sound speed estimation values comprises: A second sound velocity estimation value is calculated based on the downstream propagation time and the upstream propagation time. The calculation formula of the second sound velocity estimation value is as follows: ; in, Indicates the A second sound speed estimation value corresponding to the sampling sub-period; represents the ultrasonic signal propagation path; Indicates the The downstream propagation time corresponding to the sampling sub-period of the segment; Indicates the The upstream propagation time corresponding to the sampling sub-period of the segment; verifying the first sound speed estimate value according to the second sound speed estimate value to obtain a verification result, the verification result including that the first sound speed estimate value has a small error and that the first sound speed estimate value has a large error; When the verification result shows that the error of the first sound speed estimation value is small, directly taking the average value of all the first sound speed estimation values as the sound speed approximation value; When the verification result shows that the first sound speed estimation value has a large error, an approximate sound speed value is obtained according to the first sound speed estimation value and the second sound speed estimation value.

5. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 4 is characterized in that: Determining a matching fluid corresponding to the target fluid in the primary screening database according to the first sound velocity estimation value includes: Obtaining the actual temperature and actual pressure in the target pipeline, matching a target specific environment according to the actual temperature and the actual pressure, and using the temperature corresponding to the target specific environment as a standard temperature and the pressure corresponding to the target specific environment as a standard pressure, wherein the target specific environment is one of the specific environments in the fluid acoustic parameter database; Obtaining a comprehensive difference index according to the actual temperature, the actual pressure, the standard temperature, and the standard pressure; Obtaining a matching degree corresponding to each type of fluid based on the comprehensive difference index, the comparative sound velocity, and the sound velocity approximation; The matching fluid is determined based on the degree of matching.

6. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 5 is characterized in that: The calculation method of the comprehensive difference index is as follows: ; ; ; in, is a comprehensive difference index; are the pre-set temperature and pressure weight coefficients respectively; Indicates the actual temperature in the target pipeline; Indicates the actual pressure in the target pipeline; Indicates the standard temperature corresponding to the target specific environment; Indicates the standard pressure corresponding to the target specific environment; The calculation formula of the matching degree is as follows: ; ; ; in, Indicates the comparative sound speed corresponding to the target specific environment; Indicates the current approximate value of the speed of sound; Indicates the maximum possible difference in the preset sound speed; C represents the quantitative value of the sound speed difference; Indicates the degree of matching.

7. The transducer matching optimization program algorithm for NB remote ultrasonic gas meter according to claim 6 is characterized in that: The initial operating parameter group includes the initial transmission power and initial impedance matching value of the transducer, and the fluid acoustic parameter database also includes a number of initial operating parameters corresponding to each type of fluid. The initial operating parameter group is adaptively corrected based on all the first sound velocity estimates to obtain the following calculation formula for the recommended operating parameter group: ; ; ; in, Indicates the The approximate value of the sound speed corresponding to the sampling sub-period; Represents the average value of the approximate sound speed during the entire sampling period; Indicates the standard sound velocity corresponding to the matching fluid; Indicates the total number of sampling sub-periods within the sampling period; It is used to represent the actual sound velocity of the matching fluid propagating in the pipeline; is the initial transmit power, To correct the transmit power, that is, the transmit power obtained after correcting the initial transmit power; To calibrate the impedance matching value; is the initial impedance matching value; Indicates the sampling sub-periods; Indicates the fluid density corresponding to the matching fluid.

8. An intelligent terminal, characterized in that: It includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the transducer matching optimization program algorithm for NB remote ultrasonic gas meters as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that The readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the transducer matching optimization program algorithm for the NB remote ultrasonic gas meter as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ultrasonic flowmeter with fluid medium identification function and identification method

    CN114812713A

  • Online zero drift correction method for ultrasonic water meter

    CN118882763A

  • Method, terminal and system for correcting metering flow channel in NB (Narrow Band) remote ultrasonic gas meter

    CN119880102A

  • Thermal fluid sensor, fluid discriminating apparatus and method, flow sensor, and flow rate measuring apparatus and method

    US6662121B1

Cited By

  • Ultrasonic transducer pairing method and device and electrical performance test system

    CN121596005A