Ultrasonic metering bubble detection method, system, equipment, medium and product
Through the method of estimating the sound speed range and signal adaptive adjustment technology, the problem of poor measurement accuracy in the presence of bubbles is solved, and simple and low-cost bubble detection and accuracy improvement are achieved.
Patent Information
- Application Number
- CN202510685362.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-05-27
AI Technical Summary
When there are bubbles in the ultrasonic water meter, it will lead to poor metrological accuracy and even wave jumps, affecting the metrological accuracy. The existing technology is complex or not suitable for civilian ultrasonic water meter.
By obtaining the temperature difference value △Tem of the ultrasonic water meter, calculate the calculated temperature value range [T-△Tem, T+△Tem], use the table lookup method to obtain the calculated sound speed value range [C1, C2], and determine whether the sound speed C is within this range. If it is not present, the marking metering data is abnormal, and the wave jump phenomenon is reduced through signal adaptive adjustment and capture technology, improve detection efficiency and reduce power consumption.
It realizes simple and low-cost bubble detection, improves the metering accuracy of ultrasonic water meter, reduces power consumption, and is suitable for civilian ultrasonic water meter.
Smart Images

Figure CN120213145B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ultrasonic metering technology, and in particular to a bubble detection method, system, equipment, medium and product based on ultrasonic metering. Background Art
[0002] Ultrasonic water meters, with their outstanding advantages of low pressure drop, high accuracy, low power consumption, and long service life, have attracted widespread attention and are considered a promising alternative to traditional mechanical water meters. Ultrasonic water meters typically utilize the time-difference method, converting linear flow velocity into surface flow velocity through a specific relationship. Flow rate is calculated based on the difference in signal propagation time between upstream and downstream flows. In practical applications, these meters require a closed, full pipe. However, due to the tightness of the installation environment and pressure factors, a certain proportion of air bubbles often mixes in the pipe. When ultrasonic waves pass through reflective surfaces of liquids and gases, they reflect, reducing the received sound wave amplitude and distorting the received waveform. This reduced amplitude and distorted waveform often lead to wave skipping in ultrasonic measurement, causing deviations between the measured value and the actual value, resulting in meter reading errors or even inaccurate meter readings. In some cases, the cumulative daily error can reach over 10 cubic meters. This can easily lead to disputes over water fee settlements between water suppliers and users, resulting in negative social impacts and severely hindering the widespread adoption of ultrasonic water meters.
[0003] There are also related studies in the existing technology, such as Zhou Min. Development of a gas-liquid two-phase flow measurement device based on the combined method of ultrasonic correlation and differential pressure [D]. China University of Metrology, 2016. In this study, a combined gas-liquid two-phase flow measurement is performed using a differential pressure flowmeter and an ultrasonic flowmeter to solve the problem of measuring the phase flow of gas-liquid two-phase flow. When measuring in combination, the ultrasonic flowmeter uses the correlation method to measure the volume flow of the gas-liquid two-phase flow, and the differential pressure double-cone flowmeter is responsible for measuring the differential pressure signal before the pipeline. The combined measurement method is analyzed using the existing gas-liquid two-phase flow measurement model to achieve the measurement of the gas phase volume fraction of the gas-liquid two-phase flow and the measurement of each phase flow. In the above scheme, a differential pressure flowmeter is added, and the measurement is performed by combining the differential pressure flowmeter and the ultrasonic flowmeter. Due to the high sensitivity of ultrasonic water meters to cost, this method is only suitable for high-value industrial instruments and is not suitable for civilian ultrasonic water meters.
[0004] Another example is Chen Long. Research on Light Field PTV Measurement Method for Bubble Characteristic Parameters in Gas-Liquid Two-Phase Flow [D]. Southeast University, 2023. DOI: 10.27014 / d.cnki.gdnau.2023.000148. A method for three-dimensional bubble reconstruction using light field imaging was proposed. This method can accurately obtain the size of bubbles and achieve three-dimensional reconstruction of bubbles in the flow field. However, in the application of ultrasonic water meters, this method is relatively complex to implement and cannot meet the low-power measurement requirements of ultrasonic water meters. Therefore, a simple, practical, low-cost, and low-energy method and system for detecting and evaluating bubbles in pipelines is urgently needed. Summary of the Invention
[0005] The present invention discloses a method, system, device, medium, and product for ultrasonic metering bubble detection. This method solves the technical problem in the prior art of ultrasonic water meters being affected by bubbles in the ultrasonic metering pipe, which results in poor metering accuracy and even affects their use. The method has a reasonable design, facilitates bubble detection in the metering pipe, is simple and practical, and has low cost and power consumption. The technical solution adopted is as follows:
[0006] A bubble detection method based on ultrasonic metering, applied to ultrasonic water meters, comprises the following steps:
[0007] 1) Obtaining a temperature difference ΔTem between a measured temperature value and a calculated temperature value during ultrasonic water meter measurement; preferably, obtaining the temperature difference ΔTem under experimental conditions, wherein the ultrasonic water meter measuring pipe section is placed in a static water environment, and the surrounding area is free of electromagnetic interference, and the measuring pipe section is full of water.
[0008] 2) Reading the ultrasonic water meter measured temperature T; preferably, a temperature sensor is used to collect the ultrasonic water meter measured temperature T, and the measurement accuracy of the temperature sensor is at least 0.1°C. More preferably, the temperature sensor can be an NTC thermistor, PT1000 platinum thermal resistor, etc.
[0009] 3) Calling the measured temperature T, and calculating the ultrasonic water meter temperature value range [T-△Tem, T+△Tem];
[0010] 4) calling the calculated temperature value range [T-△Tem, T+△Tem], and using a table lookup method to obtain the corresponding calculated sound speed value range [C1, C2];
[0011] 5) Obtain the time and SUM of the ultrasonic uplink time and downlink time between a set of transducer transmitting ends and receiving ends in the ultrasonic water meter TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , to calculate the corresponding speed of sound C;
[0012] 6) Determine whether the sound velocity C is within the calculated sound velocity range [C1, C2]. If the sound velocity C does not fall within the calculated sound velocity range [C1, C2], the measurement data of the ultrasonic water meter at this time is marked as abnormal, that is, it is determined that there are bubbles in the measuring pipe section.
[0013] On the basis of the above technical solution, the temperature difference ΔTem between the measured temperature value and the calculated temperature value is the maximum temperature difference between the measured temperature value and the calculated temperature value when the ultrasonic water meter is measuring under the above experimental conditions.
[0014] On the basis of the above technical solution, under the above experimental conditions, multiple ultrasonic water meters of the same specification are used for measurement, and the temperature difference △Tem between the measured temperature value and the calculated temperature value is the average value of the maximum temperature difference between the measured temperature value and the calculated temperature value when multiple ultrasonic water meters are used for measurement.
[0015] Based on the above technical solution, the system error compensation value △T of the temperature difference during measurement of the ultrasonic water meter is obtained, the compensation value △T is called, and the calculated temperature value range of the ultrasonic water meter is calculated to be [T-△Tem-△T, T+△Tem+△T].
[0016] On the basis of the above technical solution, the calculated temperature value range [T-△Tem, T+△Tem] is called, and the corresponding calculated sound speed value range in still water [C1 水 , C2 水 ] replaces the calculated sound speed value range [C1, C2], which can simplify the calculation and reduce the amount of table lookup calculations, which is beneficial to simplifying the calculations, improving the calculation efficiency, and further helping to reduce power consumption.
[0017] Building on the above technical solution, a set of transducers in the ultrasonic water meter uses adaptive signal adjustment and capture technology when receiving ultrasonic signals to locate the first ultrasonic wave and reduce the probability of wave skipping in the received ultrasonic signal in the presence of bubbles. This adaptive signal adjustment and capture technology is an existing technology used to locate the first ultrasonic wave received by the transducer.
[0018] Based on the above technical solution, the ultrasonic water meter is designed to acquire the sound velocity C at a set period. If the sound velocity C acquired during multiple consecutive sampling periods does not fall within the calculated sound velocity range [C1, C2], the sampling period is shortened and the acquisition frequency is increased. Preferably, the set period is 0.25 to 1 second; preferably, the sampling period is set to 1 second. If the sound velocity C acquired during three consecutive sampling periods does not fall within the calculated sound velocity range [C1, C2], the sampling period is shortened and the acquisition frequency is increased.
[0019] On the basis of the above technical solution, if the sound speed C obtained in multiple consecutive sampling periods does not fall within the calculated sound speed range [C1, C2], the acquisition frequency is increased to at least 8 times / second.
[0020] On the basis of the above technical solution, after the acquisition frequency is increased, M of the N sound velocities C acquired within a set time period are marked as abnormal, and the degree of influence of the bubbles in the ultrasonic water meter measurement section on the ultrasonic water meter measurement accuracy is reflected as F,
[0021] .
[0022] An ultrasonic metering bubble detection module includes a temperature difference △Tem acquisition module, a temperature measurement module, a temperature calculation module, a sound speed calculation module, a sound speed estimation module and a judgment marking module;
[0023] The temperature difference value ΔTem acquisition module is used to obtain the temperature difference value ΔTem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement under experimental conditions;
[0024] The temperature measurement module is used to read the temperature T measured by the ultrasonic water meter;
[0025] The temperature calculation module is used to call the measured temperature T and calculate the ultrasonic water meter temperature value range [T-△Tem, T+△Tem];
[0026] The sound velocity calculation module is used to call the calculated temperature value range [T-△Tem, T+△Tem] and obtain the corresponding calculated sound velocity value range [C1, C2] by using a table lookup method;
[0027] The sound velocity estimation module is used to obtain the time and SUM of the ultrasonic uplink time and downlink time between a set of transducer transmitting end and receiving end in the ultrasonic water meter. TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , to calculate the corresponding speed of sound C;
[0028] The judgment marking module is used to judge whether the sound speed C is within the calculated sound speed range [C1, C2]. If the sound speed C does not fall within the calculated sound speed range [C1, C2], the measurement data of the ultrasonic water meter at this time is marked as abnormal.
[0029] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the ultrasonic metering-based bubble detection method as described above when executing the computer program.
[0030] A storage medium stores a computer program thereon, which can implement the above-mentioned ultrasonic metering-based bubble detection method when executed by a processor.
[0031] A computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device performs the above-mentioned ultrasonic metering-based bubble detection method.
[0032] Beneficial effects
[0033] The bubble detection method of the present invention is cleverly designed. First, the temperature difference △Tem is determined. According to the calculated temperature value range [T-△Tem, T+△Tem], a table lookup method is used to obtain the corresponding calculated sound speed value range [C1, C2]. Then, it is judged whether the sound speed C calculated by the ultrasonic uplink time and downlink time under the temperature T condition falls within the calculated sound speed value range [C1, C2]. If not, the sound speed C is marked as abnormal. In this way, whether bubbles exist can be efficiently detected. The method is simple, does not increase the cost of additional hardware, is low, and has strong practicality. In addition, the judgment process is simple and reliable, which is conducive to reducing the power consumption of the ultrasonic water meter metering module and is conducive to promotion and application.
[0034] The bubble detection method of the present invention is reasonable. By recording M of the N sound velocities C obtained within a set time period and reflecting the degree of influence of bubbles in the ultrasonic water meter measurement section on the ultrasonic water meter measurement accuracy as F=M / N, the degree of influence of bubbles on the ultrasonic water meter measurement accuracy when bubbles are present in the measuring pipe section is reflected. The method is simple and highly practical, filling the algorithm gap in the current ultrasonic water meter that is unable to determine the degree of influence of bubbles in the pipeline on the ultrasonic water meter measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only one embodiment of the present invention. Those skilled in the art can also derive other implementation drawings based on the provided drawings without inventive effort.
[0036] Figure 1 : Schematic diagram of the bubble detection method of the present invention;
[0037] Figure 2 : Flowchart of the bubble detection method of the present invention; DETAILED DESCRIPTION
[0038] As used herein, unless otherwise specified, the term "plurality" means two or more.
[0039] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0040] In this article, the term "and / or" is used to describe the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0041] like Figure 1 and 2 The ultrasonic metering bubble detection method shown is applied to ultrasonic water meters. The ultrasonic water meter includes at least one transducer 1, a measuring pipe section 3 corresponding to the position of the transducer 1, and a metering circuit. During the metering process, the ultrasonic water meter measures the instantaneous flow rate by using the uplink and downlink time difference data of the ultrasonic wave flight in the transducer 1. This is a prior art method. The instantaneous flow rate is then integrated over the sampling time to obtain the cumulative water flow rate.
[0042] The design sound range of the ultrasonic water meter is L. When there are bubbles, the design sound range L of the ultrasonic water meter is divided into an effective sound range L1 and invalid sound ranges L2 and L3.
[0043] As one example, in the presence of bubbles, the effective sound range L1 and the invalid sound ranges L2 and L3 in ultrasonic water meter measurement are as follows: Figure 1 shown.
[0044] Among them, in a group of transducers 1, the ultrasonic wave countercurrent upward time T UP for:
[0045] (1)
[0046] Ultrasonic wave downstream time T DOWN for:
[0047] (2)
[0048] C0 is the speed of ultrasound in still water at the current temperature;
[0049] v is the flow velocity of the water in the ultrasonic water meter measuring pipe section 3;
[0050] τ is the time compensation value to compensate for the time accumulation due to circuit delay, transducer 1 oscillation delay, and ultrasonic waveform timing delay;
[0051] The difference between the uplink time and downlink time of ultrasonic flight △ t for:
[0052] (3)
[0053] Since C0≫v, the above formula (3) is simplified and transformed into:
[0054] (4)
[0055] Then, the instantaneous flow rate is obtained by integrating the time.
[0056] Among them, in the group of transducers 1, the time of ultrasonic uplink time and downlink time and SUM TOF for:
[0057] (5);
[0058] Since C0≫v, and L=L1+ L2+ L3, the above formula (5) is simplified to:
[0059] (6);
[0060] A bubble detection method based on ultrasonic metering, applied to ultrasonic water meters, comprises the following steps:
[0061] 1) Obtaining the temperature difference ΔTem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement. Specifically, obtaining the temperature difference ΔTem under experimental conditions. The experimental conditions include placing the ultrasonic water meter measuring pipe section 3 in a static water environment, ensuring that the measuring pipe section 3 of the ultrasonic water meter is full, and avoiding electromagnetic interference in the surrounding environment.
[0062] In this embodiment, the process of obtaining the temperature difference ΔTem between the measured temperature value and the calculated temperature value is specifically as follows:
[0063] First, the temperature sensor 2 collects and obtains the temperature T1 at the measuring pipe section 3 when the water meter is working, and adopts the table lookup method, which is an existing technology and will not be described here, to obtain the sound velocity value C under the temperature condition. 01 :
[0064]
[0065] Through formula (6), the time compensation value τ is obtained and saved.
[0066] After that, the ultrasonic water meter works normally within the operating temperature range, and the time and SUM of the ultrasonic uplink time and downlink time are read. TOF The calculated sound velocity at this time is obtained by calculating formula (6), and the calculated temperature value corresponding to the calculated sound velocity is obtained by looking up the table. The calculated temperature value is compared with the obtained measured temperature value to obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value.
[0067] The temperature difference ΔTem is the maximum temperature difference between the measured temperature value and the calculated temperature value during multiple measurements performed by an ultrasonic water meter of the same specification as the ultrasonic water meter under experimental conditions.
[0068] In other embodiments of the present invention, multiple ultrasonic water meters of the same specifications are used for measurement under experimental conditions, and each ultrasonic water meter performs multiple measurement operations, and the maximum temperature difference between the actual temperature value and the calculated temperature value measured by each ultrasonic water meter is recorded, wherein the temperature difference △Tem between the actual temperature value and the calculated temperature value is the average value of the maximum temperature difference between the actual temperature value and the calculated temperature value when the multiple ultrasonic water meters are measuring.
[0069] In other embodiments of the present invention, in order to further improve the accuracy of the temperature difference △Tem, the operating temperature of the ultrasonic water meter can be divided into multiple temperature segments, and the temperature difference △Tem is obtained for each temperature segment. For example, if the operating temperature of the ultrasonic water meter is 0~60℃, it can be divided into three temperature segments of 0~20℃, 21~40℃, and 41~60℃. For each temperature segment, the corresponding temperature difference △Tem1, △Tem2 and △Tem3 are obtained.
[0070] In this embodiment, the temperature difference ΔTem is accurate to 0.1° C., which can further improve the bubble detection accuracy.
[0071] 2) Reading the measured temperature T of the ultrasonic water meter during actual operation; In this embodiment, a temperature sensor 2 is used to collect the measured temperature T of the ultrasonic water meter, and the measurement accuracy of the temperature sensor 2 is at least 0.1°C. The temperature sensor 2 can be an NTC thermistor or a PT1000 platinum thermal resistor.
[0072] 3) The measured temperature T is called to calculate the ultrasonic water meter temperature range [T-△Tem, T+△Tem]. In addition, considering the inevitable systematic errors between ultrasonic water meters due to factors such as production and components, the systematic error compensation value △T of the temperature difference during measurement by the ultrasonic water meter is obtained. The steps for obtaining the system error compensation value △T are as follows:
[0073] First, under the aforementioned experimental conditions, prepare multiple ultrasonic water meters of the same specifications;
[0074] Afterwards, under the same conditions, record the temperature difference △Tem determined by each ultrasonic water meter;
[0075] Then, the average absolute deviation △T of the temperature difference △Tem determined by multiple ultrasonic water meters is obtained. MAD , △T MAD As the system error compensation value △T.
[0076] The compensation value ΔT is called to calculate the ultrasonic water meter temperature value range to be [T-ΔTem-ΔT, T+ΔTem+ΔT]. In this embodiment, the system error compensation value ΔT is 0.5-0.6°C.
[0077] The calculated temperature value range [T-△Tem-△T, T+△Tem+△T] is called, and the corresponding calculated sound speed value range [C11, C21] is obtained by using a table lookup method. The table lookup method is an existing technology and will not be described in detail here.
[0078] In this embodiment, considering that the difference in the propagation speed of ultrasonic waves in the water body and in still water in the water meter measuring pipe section is negligible when the ultrasonic water meter is actually working, when the calculated temperature value range [T-△Tem-△T, T+△Tem+△T] is called, the corresponding calculated sound speed value range in still water [C1 水1 , C2 水1 ], instead of calculating the sound speed value range [C11, C21], which can simplify the calculation, reduce the amount of table lookup calculations, and help reduce energy consumption.
[0079] 5) Obtain the time and SUM of the ultrasonic uplink time and downlink time between the transmitting end and the receiving end of one set of transducers 1 when the ultrasonic water meter is actually working TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , according to formula (6) the corresponding sound speed C is calculated;
[0080] 6) Determine whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 ], if the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1 ], the measurement data of the ultrasonic water meter at this time is marked as abnormal.
[0081] In addition, in this embodiment, the ultrasonic water meter is designed to obtain the sound velocity C at a set period. If the sound velocity C obtained in multiple consecutive sampling periods does not fall within the calculated sound velocity range [C1 水1 , C2 水1 ], shorten the sampling period and increase the acquisition frequency. In this embodiment, the period is set to 1s. In other embodiments of the present invention, the period may be set to 0.25~1s; and if the sound speed C obtained in three consecutive sampling periods does not fall within the calculated sound speed range [C1 水1 , C2 水1], the sampling period is shortened and the sampling frequency is increased. In this embodiment, the sampling frequency is increased to 8 times / second. In other embodiments of the present invention, the sampling frequency can be increased to more than 8 times / second. The higher the sampling frequency, the more accurately it can reflect the impact of bubbles on the measurement accuracy of the ultrasonic water meter.
[0082] After the acquisition frequency is increased, M of the N sound velocities C recorded and acquired within a set time period are marked as abnormal. In this embodiment, the set time period is 1 minute. In other embodiments of the present invention, the set time period may be 0.5 to 2 minutes. The degree of influence of bubbles in the ultrasonic water meter measurement section on the ultrasonic water meter measurement accuracy is reflected as F.
[0083] .
[0084] In addition, considering that when ultrasonic waves pass through the reflective surfaces of liquids and gases, they will be emitted, resulting in a decrease in the ultrasonic reception amplitude, and the amplitude of the ultrasonic signal received by the transducer 1 will be reduced by a certain proportion, in the present invention, a group of transducers 1 in the ultrasonic water meter adopts signal adaptive adjustment and capture technology when receiving ultrasonic signals to locate the ultrasonic first wave, and automatically adjust the ultrasonic first wave according to the reduced proportion adaptively, thereby reducing the probability of wave jumping in the ultrasonic signal received in the case of bubbles, which is beneficial to increasing the proportion of effective ultrasonic signals collected by the transducer 1.
[0085] Among them, the signal adaptive adjustment and capture technology is an existing technology, as shown in the patent document with application number CN202411367581.2 and named "A method, device and equipment for ultrasonic first wave positioning", and as shown in the patent document with application number CN202411932737.7 and named "A method for setting the first wave threshold voltage for an ultrasonic flow metering device".
[0086] Based on the above-mentioned bubble detection method embodiment, the present invention provides an ultrasonic metering bubble detection module, including a temperature difference △Tem acquisition module, a temperature measurement module, a temperature calculation module, a sound speed calculation module, a sound speed estimation module, and a judgment marking module;
[0087] The temperature difference value ΔTem acquisition module is used to obtain the temperature difference value ΔTem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement under experimental conditions;
[0088] The temperature measurement module is used to read the temperature T measured by the ultrasonic water meter;
[0089] The temperature calculation module is used to call the measured temperature T and calculate the ultrasonic water meter temperature value range [T-△Tem-△T, T+△Tem+△T];
[0090] The sound velocity calculation module is used to call the calculated temperature value range [T-△Tem-△T, T+△Tem+△T] and obtain the corresponding calculated sound velocity value range [C1 水1 , C2 水1 ];
[0091] The sound velocity estimation module is used to obtain the time and SUM of the ultrasonic uplink time and downlink time between the transmitting end and the receiving end of a group of transducers 1 in the ultrasonic water meter. TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , to calculate the corresponding speed of sound C;
[0092] The judging mark module is used to judge whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 ], if the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1 ], the measurement data of the ultrasonic water meter at this time will be marked as abnormal, reflecting the existence of bubbles.
[0093] It should be noted that the embodiment of the ultrasonic metering bubble detection module described above corresponds to the above-mentioned bubble detection embodiment of the present invention, and can implement any of the above-mentioned methods of the present invention.
[0094] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable by the processor. When the processor executes the computer program, it implements the aforementioned ultrasonic metering-based bubble detection method. Exemplarily, the computer program may be divided into one or more modules, each stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, each describing the execution process of the computer program in a terminal device. The terminal device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. Specifically, the terminal device may include, but is not limited to, a processor and memory.
[0095] The processor may be a central processing unit (CPU), other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device and connects various parts of the entire terminal device using various interfaces and lines.
[0096] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.
[0097] A storage medium stores a computer program, which can implement the above-mentioned bubble detection method based on ultrasonic metering when executed by a processor.
[0098] A computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device performs the above-mentioned ultrasonic metering-based bubble detection method.
[0099] The present invention has been described above by way of examples, but the present invention is not limited to the above specific embodiments. Any changes or modifications based on the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A bubble detection method based on ultrasonic measurement, characterized in that: Applied to ultrasonic water meters, including the following steps: 1) Obtaining the temperature difference ΔTem between the actual temperature value and the calculated temperature value during ultrasonic water meter measurement under experimental conditions, wherein the ultrasonic water meter measuring pipe section is placed in a static water environment and the ultrasonic water meter measuring pipe section is full to avoid electromagnetic interference from the surrounding environment; 2) Read the measured temperature T when the ultrasonic water meter is actually working; 3) calling the measured temperature T to calculate the ultrasonic water meter calculated temperature value range [T-△Tem, T+△Tem]; further obtaining the system error compensation value △T of the temperature difference during measurement by the ultrasonic water meter, calling the compensation value △T, and further calculating the ultrasonic water meter calculated temperature value range [T-△Tem-△T, T+△Tem+△T]; 4) Call the calculated temperature value range [T-△Tem-△T, T+△Tem+△T], and use the table lookup method to calculate the corresponding still water sound speed value range [C1 水1 , C2 水1 ]; 5) Obtain the time and SUM of the ultrasonic uplink time and downlink time between the transmitting end and the receiving end of a group of transducers (1) in the ultrasonic water meter TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , to calculate the corresponding speed of sound C; 6) Determine whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 ], if the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1 ], the measurement data of the ultrasonic water meter at this time is marked as abnormal.
2. The ultrasonic metering bubble detection method according to claim 1, characterized in that: The temperature difference ΔTem between the measured temperature value and the calculated temperature value is the maximum temperature difference between the measured temperature value and the calculated temperature value during measurement by the ultrasonic water meter.
3. The ultrasonic metering bubble detection method according to claim 1, characterized in that: When multiple ultrasonic water meters of the same specification are used for measurement, the temperature difference ΔTem between the measured temperature value and the calculated temperature value is the average value of the maximum temperature difference between the measured temperature value and the calculated temperature value when the multiple ultrasonic water meters are used for measurement.
4. The bubble detection method based on ultrasonic metering according to claim 1, characterized in that: A group of transducers (1) in the ultrasonic water meter adopts a signal adaptive adjustment capture technology when receiving ultrasonic signals to locate the first ultrasonic wave and reduce the probability of wave jumping in the ultrasonic signal received in the case of bubbles.
5. The ultrasonic metering bubble detection method according to any one of claims 1 to 4, characterized in that: The ultrasonic water meter is designed to acquire the sound velocity C at a set period. If the sound velocity C acquired in a plurality of consecutive sampling periods does not fall within the calculated sound velocity range [C1 水1 , C2 水1 ], shorten the sampling period and increase the collection frequency.
6. The ultrasonic metering bubble detection method according to claim 5, characterized in that: If the sound speed C obtained in multiple consecutive sampling periods does not fall within the calculated sound speed range [C1 水1 , C2 水1 ] within the period, the acquisition frequency is increased to more than 8 times / second.
7. The bubble detection method based on ultrasonic metering according to claim 6, characterized in that: After the acquisition frequency is increased, M of the N sound velocities C recorded and acquired within a set time period are marked as abnormal, and the degree of influence of the bubbles in the ultrasonic water meter measurement section on the ultrasonic water meter measurement accuracy is reflected as F: 。 8. An ultrasonic metering bubble detection module, characterized in that: It includes a temperature difference △Tem acquisition module, a temperature measurement module, a temperature calculation module, a sound speed calculation module, a sound speed estimation module and a judgment marking module; The temperature difference value ΔTem acquisition module is used to obtain the temperature difference ΔTem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement under experimental conditions; the experimental conditions include that the ultrasonic water meter measuring pipe section is placed in a static water environment and the ultrasonic water meter measuring pipe section is in a full pipe state to avoid electromagnetic wave interference from the surrounding environment; The temperature measurement module is used to read the actual working temperature T of the ultrasonic water meter; The temperature calculation module is used to call the measured temperature T and calculate the ultrasonic water meter calculated temperature value range [T-△Tem, T+△Tem]; it is used to further obtain the system error compensation value △T of the temperature difference during the ultrasonic water meter measurement, call the compensation value △T, and further calculate the ultrasonic water meter calculated temperature value range [T-△Tem-△T, T+△Tem+△T]; The calculation sound velocity module is used to call the calculation temperature value range [T-△Tem-△T, T+△Tem+△T], and use the table lookup method to calculate the corresponding calculation sound velocity value range in still water [C1 水1 , C2 水1 ]; The estimated sound velocity module is used to obtain the time and SUM of the ultrasonic uplink time and downlink time between the transmitting end and the receiving end of a group of transducers (1) in the ultrasonic water meter. TOF , call the time and SUM of ultrasonic uplink time and downlink time TOF , to calculate the corresponding sound speed C; The judging mark module is used to judge whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 ], if the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1 ], the measurement data of the ultrasonic water meter at this time is marked as abnormal.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can implement the bubble detection method based on ultrasonic metering as claimed in any one of claims 1 to 4, 6 and 7 when executing the computer program.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it can implement the bubble detection method based on ultrasonic metering as described in any one of claims 1 to 4, 6, and 7.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the ultrasonic metering bubble detection method according to any one of claims 1 to 4, 6, and 7.
Citation Information
Patent Citations
Ultrasonic head wave positioning method, device and equipment
CN119245810A
A method for setting the first wave threshold voltage of an ultrasonic flow measurement device
CN119714482B
Ultrasonic flowmeter
JP2012058186A
Method for measuring flow velocity and flow volume
JP2013088322A