Flow detection method, device and equipment of ultrasonic gas meter and medium

By combining ultrasonic flow detection device and auxiliary flow detection device in the ultrasonic gas meter to collect and update gas flow data, the problem of low detection accuracy of ultrasonic gas meter under external interference is solved, and higher gas flow detection accuracy is achieved .

CN119469301APending Publication Date: 2025-02-18GOLDCARD SMART GROUP (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311002888.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Existing ultrasonic gas meters are easily disturbed by external interference during use, resulting in miswave phenomena and reducing the accuracy of gas flow detection.

Method used

Using the flow detection method of an ultrasonic gas meter, combined with the ultrasonic flow detection device and the auxiliary flow detection device, the initial gas data is collected during the detection period by determining the target ultrasonic sampling frequency, and the initial gas data is determined, and the upward and downward flight time change values ​​are determined whether the auxiliary is needed. The flow detection device collects the second gas flow rate, and then updates the first gas flow rate, and determines the target gas flow rate.

Benefits of technology

It effectively improves the accuracy of gas flow detection and reduces the impact of external interference on the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119469301A_ABST
    Figure CN119469301A_ABST
Patent Text Reader

Abstract

The invention provides a flow detection method, device and equipment of an ultrasonic gas meter and a medium, and can be applied to the field of metering. In the method, initial fuel gas data is collected according to a target ultrasonic sampling frequency through an ultrasonic flow detection device in a sampling period. Meanwhile, after the initial gas data are collected each time, an uplink duration change value and a downlink duration change value are determined; if at least one duration in the two duration change values is larger than a preset abnormal duration threshold value, second gas flow is collected through an auxiliary flow detection device, then the first gas flow is updated, and third gas flow is obtained; and finally, determining the target gas flow according to all the third gas flows determined in the detection period and the first gas flow which is not updated. According to the scheme, the target gas flow is determined through the first gas flow and the second gas flow collected by the ultrasonic flow detection device and the auxiliary flow detection device, and the accuracy of the detected gas flow is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of measurement, and in particular to a flow detection method, device, equipment and medium for an ultrasonic gas meter. Background Art

[0002] With the development of science and technology, gas meters have evolved from the original mechanical diaphragm gas meters to the current ultrasonic gas meters. As a new type of electronic gas meter, ultrasonic gas meters are popular among people for their features such as fewer transmission parts and long service life.

[0003] In the prior art, ultrasonic gas meters use the time difference method to measure flow. When the fluid passes through the gas meter, sound waves propagate in the fluid. The propagation speed of sound waves in the downstream direction increases, while that in the reverse direction decreases. The same propagation distance has different propagation times. Ultrasonic gas meters use the difference between the downstream propagation time and the reverse propagation time of sound waves in the gas to detect the flow rate and flow of the gas.

[0004] However, during the use of ultrasonic gas meters, they may be interfered by external factors, causing wave errors, resulting in lower accuracy of the detected gas flow. Summary of the invention

[0005] The embodiments of the present application provide a flow detection method, device, equipment and medium for an ultrasonic gas meter, which are used to solve the problem that the existing ultrasonic gas meter may be interfered with by the outside world during use, causing error waves and resulting in low accuracy of the detected gas flow.

[0006] In a first aspect, an embodiment of the present application provides a flow detection method of an ultrasonic gas meter, which is applied to an ultrasonic gas meter. The ultrasonic gas meter includes an ultrasonic flow detection device and an auxiliary flow detection device. The method includes:

[0007] determining a target ultrasound sampling frequency;

[0008] During the detection period, the ultrasonic flow detection device collects initial gas data according to the target ultrasonic sampling frequency, wherein the initial gas data includes an uplink flight duration, a downlink flight duration, and a first gas flow rate;

[0009] After each collection of initial gas data, determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time;

[0010] If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, the second gas flow is collected by the auxiliary flow detection device;

[0011] The first gas flow collected this time is updated according to the second gas flow rate to obtain a third gas flow collected this time;

[0012] The target gas flow rate is determined according to all third gas flow rates determined in the detection period and the unupdated first gas flow rate.

[0013] In a specific embodiment, determining the target ultrasound sampling frequency includes:

[0014] determining a first preset ultrasonic sampling frequency as the target ultrasonic sampling frequency; or,

[0015] The ultrasonic flow detection device is used to collect the current gas flow once, and the target ultrasonic sampling frequency is determined according to the current gas flow.

[0016] In a specific implementation, determining the target ultrasonic sampling frequency according to the current gas flow rate includes:

[0017] Determining whether there is gas flowing through the ultrasonic gas meter pipeline according to the current gas flow rate;

[0018] If gas passes through the ultrasonic gas meter pipeline, the first preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency;

[0019] If there is no gas passing through the ultrasonic gas meter pipeline, a second preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency, and the second preset ultrasonic sampling frequency is less than the first preset ultrasonic sampling frequency.

[0020] In a specific implementation, collecting the second gas flow rate through the auxiliary flow detection device includes:

[0021] If the interval between the stored target collection time and the current time is greater than the preset energy-saving collection time threshold, the second gas flow is collected through the auxiliary flow detection device; wherein the target collection time is the time with the shortest interval with the current time among the stored collection times of collecting gas flow through the auxiliary flow detection device.

[0022] In a specific implementation manner, the updating of the first gas flow collected this time according to the second gas flow to obtain the third gas flow collected this time includes:

[0023] If the absolute value of the difference between the second gas flow rate and the first gas flow rate collected this time is greater than the preset abnormal difference value, the third gas flow rate or the first gas flow rate collected last time is used as the third gas flow rate collected this time;

[0024] If the absolute value of the difference between the second gas flow and the first gas flow collected this time is less than or equal to the preset abnormal difference, the first gas flow collected this time is used as the third gas flow collected next time.

[0025] In a specific implementation, the preset abnormal time threshold is equal to a preset abnormal time coefficient divided by an operating frequency of a transducer in the ultrasonic flow detection device.

[0026] In a specific embodiment, the auxiliary flow detection device is a thermal flow meter, the thermal flow meter and the ultrasonic flow detection device are in the same pipeline of the ultrasonic gas meter, and the processor in the ultrasonic gas meter is respectively connected to the thermal flow meter and the ultrasonic flow detection device.

[0027] In a specific implementation manner, after the first gas flow collected this time is updated according to the second gas flow to obtain the third gas flow collected this time, the method further includes:

[0028] Update the abnormal continuous cumulative value;

[0029] If the updated abnormal continuous cumulative value is equal to the preset alarm threshold, the ultrasonic gas meter abnormal information is output.

[0030] In a second aspect, an embodiment of the present application provides a flow detection device for an ultrasonic gas meter, comprising:

[0031] An acquisition module, used for determining a target ultrasonic sampling frequency;

[0032] Processing modules for:

[0033] During the detection period, the initial gas data is collected by the ultrasonic flow detection device according to the target ultrasonic sampling frequency, and the initial gas data includes the uplink flight time, the downlink flight time, and the first gas flow rate;

[0034] After each collection of initial gas data, determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time;

[0035] If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, the second gas flow is collected by the auxiliary flow detection device;

[0036] The first gas flow collected this time is updated according to the second gas flow rate to obtain a third gas flow collected this time;

[0037] The target gas flow rate is determined according to all third gas flow rates determined in the detection period and the unupdated first gas flow rate.

[0038] In a third aspect, an embodiment of the present application provides an ultrasonic gas meter, comprising:

[0039] Processor, memory, communication interface, ultrasonic flow detection device, auxiliary flow detection device;

[0040] The memory is used to store executable instructions of the processor;

[0041] Wherein, the processor is configured to execute the flow detection method of the ultrasonic gas meter as described in any one of the first aspects by executing the executable instructions.

[0042] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the flow detection method of the ultrasonic gas meter described in any one of the first aspects is implemented.

[0043] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the flow detection method of the ultrasonic gas meter described in any one of the first aspects.

[0044] The flow detection method, device, equipment and medium of the ultrasonic gas meter provided in the embodiment of the present application, after determining the target sampling frequency, within the sampling period, the ultrasonic gas meter collects initial gas data according to the target ultrasonic sampling frequency through the ultrasonic flow detection device. At the same time, after each collection of the initial gas data, the uplink duration change value and the downlink duration change value are determined. If at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold, the second gas flow is collected through the auxiliary flow detection device, and then the first gas flow is updated to obtain the third gas flow; finally, the target gas flow is determined based on all the third gas flows determined within the detection period and the first gas flow that has not been updated. This scheme determines the target gas flow by using the first gas flow and the second gas flow collected by the ultrasonic flow detection device and the auxiliary flow detection device, which effectively improves the accuracy of the detected gas flow. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0046] Figure 1a A flow chart of a first embodiment of a flow detection method for an ultrasonic gas meter provided in the present application;

[0047] Figure 1b A schematic diagram of the structure of an ultrasonic gas meter provided in this application;

[0048] Figure 2 A schematic flow chart of a fourth embodiment of a flow detection method for an ultrasonic gas meter provided in the present application;

[0049] Figure 3 A schematic diagram of the structure of an embodiment of a flow detection device for an ultrasonic gas meter provided in the present application;

[0050] Figure 4 A schematic diagram of the structure of an ultrasonic gas meter provided in this application Figure 2 . DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.

[0052] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] With the development of science and technology, ultrasonic gas meters, as a new type of electronic gas meter, have attracted people's attention for its characteristics of fewer transmission parts and long service life. Ultrasonic gas meters use the time difference method to measure flow. When the fluid passes through the gas meter, sound waves propagate in the fluid. The propagation speed of sound waves in the downstream direction will increase, while that in the upstream direction will decrease. The same propagation distance will have different propagation times. Ultrasonic gas meters use the difference between the downstream propagation time and the upstream propagation time of sound waves in the gas to detect the flow rate and flow of the gas.

[0054] In the prior art, when using an ultrasonic gas meter, the ultrasonic gas may be disturbed by the external environment, causing wave error. That is, the wave actually used to calculate the flight time is different from the wave theoretically used to calculate the flight time. For example, theoretically the fifth wave peak should be used to calculate the flight time, but due to external environmental interference, such as electromagnetic interference, drastic temperature changes, etc., the sixth wave peak is actually used to calculate the flight time, resulting in low accuracy of the detected gas flow.

[0055] In view of the problems existing in the prior art, the inventors found in the process of studying the flow detection method of the ultrasonic gas meter that in order to improve the accuracy of the detected gas flow, an auxiliary flow detection device can be added to the ultrasonic gas meter. The ultrasonic gas meter collects the gas flow within the detection period through the ultrasonic flow detection device therein. After each gas flow is collected, the ultrasonic flow detection device will determine whether at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold. When it is greater than the preset abnormal duration threshold, the gas flow is collected through the auxiliary flow detection device, and then the gas flow collected by the ultrasonic flow detection device this time is updated. Finally, the target gas flow is determined based on the updated gas flow and the unupdated gas flow obtained within the detection period, which can effectively improve the accuracy of the detected gas flow. Based on the above-mentioned inventive concept, the flow detection scheme of the ultrasonic gas meter in this application is designed.

[0056] The following is an example of an application scenario of the flow detection method of an ultrasonic gas meter provided in this application.

[0057] For example, in this application scenario, staff can query the gas usage in the user's home through the terminal device.

[0058] The ultrasonic gas meter in the user's home is equipped with an ultrasonic flow detection device and an auxiliary flow detection device. The ultrasonic gas meter detects the gas flow in each detection cycle and sends the detected gas flow to the staff's terminal device for the staff to view.

[0059] The ultrasonic gas meter needs to determine the target ultrasonic sampling frequency before the detection cycle; then during the detection cycle, the initial gas data is collected according to the target ultrasonic sampling frequency through the ultrasonic flow detection device. The initial gas data includes the uplink flight time, the downlink flight time, and the first gas flow.

[0060] Furthermore, after the ultrasonic flow detection device collects initial gas data each time, the uplink duration change value between the uplink flight duration collected this time and the uplink flight duration collected last time, and the downlink duration change value between the downlink flight duration collected this time and the downlink flight duration collected last time are determined; if at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, the second gas flow is collected through the auxiliary flow detection device;

[0061] Then, the first gas flow collected this time is updated according to the second gas flow, so as to obtain the third gas flow collected this time.

[0062] After the detection period is over, the target gas flow is determined based on all third gas flows determined during the detection period and the first gas flow that has not been updated. The target gas flow is then sent to the terminal device of the staff for storage. When the staff needs to inquire about the gas usage at home, they can query through the terminal device, and the terminal device will display the stored target gas flow for the staff to view.

[0063] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario, nor does it limit the interaction method between the devices. In the specific application of the solution, it can be set according to actual needs.

[0064] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0065] Figure 1a This is a flow chart of the first embodiment of the flow detection method of the ultrasonic gas meter provided in the present application. The present embodiment of the present application describes the situation that the ultrasonic gas meter can accurately detect the gas flow based on its own ultrasonic flow detection device and auxiliary flow detection device. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 1a As shown, the flow detection method of the ultrasonic gas meter specifically includes the following steps:

[0066] S101: Determine a target ultrasonic sampling frequency.

[0067] In this step, the ultrasonic gas meter includes an ultrasonic flow detection device and an auxiliary flow detection device. For example, Figure 1b A schematic diagram of the structure of an ultrasonic gas meter provided in this application is shown in FIG. Figure 1bAs shown, the ultrasonic gas meter includes an ultrasonic flow detection device 11, an auxiliary flow detection device 12, a pipeline 13 and a processor 14, and the ultrasonic flow detection device 11 and the auxiliary flow detection device 12 are connected to the processor 14.

[0068] It should be noted that Figure 1b This is merely an example of the structure of an ultrasonic gas meter. The two transducers in the ultrasonic flow detection device 11 may be on the same side of the pipeline or on both sides of the pipeline.

[0069] The ultrasonic gas meter collects gas flow during the detection cycle, and needs to operate according to the sampling frequency during the collection, so the target ultrasonic sampling frequency needs to be determined before the detection cycle.

[0070] It should be noted that the auxiliary flow detection device can be a thermal flow meter, a differential pressure flow meter, a vortex flow meter, an electromagnetic flow meter, a turbine flow meter, an orifice flow meter, etc. The embodiment of the present application does not limit the auxiliary flow detection device and can be selected according to actual conditions.

[0071] When the auxiliary detection device is a thermal flow meter, such as Figure 1b As shown, the thermal flow meter and the ultrasonic flow detection device are in the same pipeline of the ultrasonic gas meter, and the processor in the ultrasonic gas meter is connected to the thermal flow meter and the ultrasonic flow detection device respectively, which has a simple structure, lower cost, and is easy to control.

[0072] S102: During the detection period, initial gas data is collected by an ultrasonic flow detection device according to a target ultrasonic sampling frequency.

[0073] In this step, after the ultrasonic wave determines the target ultrasonic sampling frequency, the initial gas data is collected according to the target ultrasonic sampling frequency by the ultrasonic flow detection device within the detection period. The initial gas data includes the uplink flight time, the downlink flight time, and the first gas flow.

[0074] S103: After each collection of initial gas data, determine an uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and a downlink duration change value between the downlink duration collected this time and the downlink duration collected last time.

[0075] In this step, after the ultrasonic gas meter collects initial gas data through the ultrasonic flow detection device each time, in order to determine whether the first gas flow in the initial gas data collected this time is normal, it is necessary to determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time. The uplink duration change value refers to the absolute value of the difference between the uplink duration collected this time and the uplink duration collected last time. The downlink duration change value refers to the absolute value of the difference between the downlink duration collected this time and the downlink duration collected last time.

[0076] The downlink flight time is the time between the moment when the upstream transducer in the ultrasonic flow detection device sends an ultrasonic wave to the downstream transducer and the moment when the downstream transducer receives the ultrasonic wave. The uplink flight time is the time between the moment when the downstream transducer sends an ultrasonic wave to the upstream transducer and the moment when the upstream transducer receives the ultrasonic wave.

[0077] It should be noted that, for the initial gas data collected for the first time within the detection period, when calculating the uplink duration change value and the downlink duration change value, since there is no uplink flight duration and downlink flight duration collected last time, the default uplink flight duration is used as the uplink flight duration collected last time, and the default downlink flight duration is used as the downlink flight duration collected last time. The default uplink flight duration can be 0.12 milliseconds, 0.17 milliseconds, 0.23 milliseconds, etc. The default downlink flight duration can be 0.1 milliseconds, 0.15 milliseconds, 0.2 milliseconds, etc. The embodiment of the present application does not limit the default uplink flight duration and the default downlink flight duration, and can be set according to actual conditions.

[0078] S104: If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, a second gas flow is collected through an auxiliary flow detection device.

[0079] In this step, after determining the uplink duration change value and the downlink duration change value, the ultrasonic gas meter needs to determine whether at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold.

[0080] If at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold, it indicates that the first gas flow collected this time may be abnormal, and it is necessary to collect the second gas flow through the auxiliary flow detection device, so as to subsequently determine whether the first gas collected this time is abnormal based on the second gas flow, and determine a more accurate gas flow.

[0081] If the uplink duration change value and the downlink duration change value are both less than or equal to the preset abnormal duration threshold, it means that the first gas flow collected this time is normal, and there is no need to enable the auxiliary flow detection device to collect the gas flow.

[0082] It should be noted that the preset abnormal duration threshold is related to the operating frequency of the transducer in the ultrasonic flow detection device, and the preset abnormal duration threshold is equal to the preset abnormal duration coefficient divided by the operating frequency. The operating frequency of the transducer is used to indicate the ultrasonic transmission efficiency. The higher the operating frequency, the higher the transmission efficiency. The preset abnormal duration coefficient can be 0.3, 0.5, 0.7, etc. The embodiment of the present application does not limit the preset abnormal duration coefficient, and it can be set according to actual conditions.

[0083] It should be noted that the ultrasonic gas meter will store the collection time each time after collecting the second gas flow through the auxiliary flow detection device.

[0084] S105: The first gas flow collected this time is updated according to the second gas flow to obtain a third gas flow collected this time.

[0085] In this step, after the ultrasonic gas meter collects the second gas flow, the first gas flow collected this time can be updated according to the second gas flow to obtain the third gas flow collected this time.

[0086] Specifically, if the absolute value of the difference between the second gas flow rate and the first gas flow rate collected this time is greater than the preset abnormal difference value, it means that the first gas flow rate collected this time is abnormal, and the third gas flow rate or the first gas flow rate collected last time is used as the third gas flow rate collected this time. If there is a third gas flow rate collected last time, the third gas flow rate collected last time is used as the third gas flow rate collected this time. If there is no third gas flow rate collected last time, the first gas flow rate collected last time is used as the third gas flow rate collected this time.

[0087] It should be noted that, after the initial gas data is collected for the first time within the detection period, if a second gas flow needs to be collected, and the absolute value of the difference between the second gas flow and the first gas flow collected this time is greater than the preset abnormal difference, the default gas flow can be used as the third gas flow collected this time. The default gas flow can be 3m 3 / h、4m 3 / h、5m 3 / h, etc. The embodiment of the present application does not limit the default gas flow rate and can be set according to actual conditions.

[0088] If the absolute value of the difference between the second gas flow rate and the first gas flow rate collected this time is less than or equal to the preset abnormal difference value, it means that the first gas flow rate collected this time is normal. It may be because the gas consumption suddenly increases or decreases, resulting in a flight time change value greater than the preset abnormal time threshold. The first gas flow rate collected this time can be used as the third gas flow rate collected this time.

[0089] It should be noted that the preset abnormal difference can be 1m 3 / h、1.5m 3 / h、2m 3 / h, etc. The embodiment of the present application does not limit the preset abnormal difference value and can be set according to actual conditions.

[0090] S106: Determine a target gas flow rate according to all third gas flow rates determined within the detection period and the unupdated first gas flow rate.

[0091] In this step, the ultrasonic gas meter collects the first gas flow and determines the third gas flow within the detection period, and then after the detection period ends, the target gas flow can be determined based on all the third gas flows determined within the detection period and the unupdated first gas flow.

[0092] Specifically, an average value of all third gas flow rates determined within a detection period and the unupdated first gas flow rates is determined as the target gas flow rate.

[0093] It should be noted that all third gas flows determined within the detection period and the unupdated first gas flows may be filtered, and the average value may be calculated using the filtered data to obtain the target gas flow.

[0094] The flow detection method of the ultrasonic gas meter provided in this embodiment determines the target ultrasonic sampling frequency before the detection period, and collects the initial gas data according to the target ultrasonic sampling frequency through the ultrasonic flow detection device during the detection period. And after each collection of the initial gas data, the uplink duration change value and the downlink duration change value are determined. If at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold, the second gas flow is collected through the auxiliary flow detection device. Then, the first gas flow collected this time is updated according to the second gas flow to obtain the third gas flow collected this time. Finally, the target gas flow is determined according to all the third gas flows determined in the detection period and the first gas flow that has not been updated. Compared with the prior art that determines the gas flow only by the ultrasonic flow detection device, this solution collects the first gas flow through the ultrasonic flow detection device, and when there is external interference, the second gas flow is collected by the auxiliary flow detection device to update the first gas flow collected this time, and finally the target gas flow is calculated according to the updated first gas flow and the first gas flow that has not been updated, which effectively improves the accuracy of detecting the gas flow.

[0095] Based on the above embodiments, the following describes the situation in which the target ultrasonic sampling frequency of the ultrasonic gas meter is determined in the embodiments of the present application.

[0096] Before the detection cycle, the ultrasonic gas meter needs to determine the target ultrasonic sampling frequency, so that during the detection cycle, the first gas flow rate can be collected by the ultrasonic flow detection device according to the target ultrasonic sampling frequency.

[0097] As for the method of determining the target ultrasonic sampling frequency, the first preset ultrasonic sampling frequency may be determined as the target ultrasonic sampling frequency.

[0098] The target ultrasonic sampling frequency may also be determined by using an ultrasonic flow detection device to collect the current gas flow once, and determining the target ultrasonic sampling frequency according to the current gas flow.

[0099] Specifically, according to the current gas flow rate, it is determined whether there is gas passing through the ultrasonic gas meter pipeline. If the current gas flow rate is greater than 0, it is determined that there is gas passing through the ultrasonic gas meter pipeline; if the current gas flow rate is equal to 0, it is determined that there is no gas passing through the ultrasonic gas meter pipeline.

[0100] If gas passes through the ultrasonic gas meter pipeline, frequent sampling is required for accurate detection, and the first preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency;

[0101] If there is no gas flowing through the ultrasonic gas meter pipeline, in order to save energy, the second preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency.

[0102] It should be noted that the second preset ultrasonic sampling frequency is less than the first preset ultrasonic sampling frequency. The first preset ultrasonic sampling frequency may be 30 Hz, 32 Hz, 40 Hz, etc., and the second preset ultrasonic sampling frequency may be 3 Hz, 4 Hz, 10 Hz, etc. The embodiment of the present application does not limit the first preset ultrasonic sampling frequency and the second preset ultrasonic sampling frequency, and they may be set according to actual conditions.

[0103] The flow detection method of the ultrasonic gas meter provided in this embodiment can effectively ensure the precision and accuracy of the detection by determining the first preset ultrasonic sampling frequency as the target ultrasonic sampling frequency. By determining the target ultrasonic sampling frequency according to whether there is gas passing through the ultrasonic gas meter pipeline, energy waste can be effectively saved.

[0104] On the basis of the above embodiments, the following describes a situation in which, when at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, the situation in which whether to collect the second gas flow through the auxiliary flow detection device is determined based on the interval between the target collection time and the current time and the relationship between the preset energy-saving collection time threshold provided in the embodiment of the present application.

[0105] When at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold, in order to save energy, it is necessary to first determine whether the interval between the target collection time and the current time is greater than the preset energy-saving collection time threshold, wherein the target collection time is the time with the shortest interval with the current time among the stored collection times of collecting gas flow through the auxiliary flow detection device.

[0106] If the interval between the stored target collection time and the current time is greater than the preset energy-saving collection time threshold, it means that the auxiliary flow detection device will not work frequently. At this time, the second gas flow can be collected through the auxiliary flow detection device.

[0107] If the interval between the stored target collection time and the current time is less than or equal to the preset energy-saving collection time threshold, it means that if the auxiliary flow detection device is used to collect the second gas flow at this time, energy waste will be caused. At this time, the auxiliary flow detection device is not used to collect the second gas flow.

[0108] It should be noted that the preset energy-saving collection time threshold may be 1 second, 2 seconds, 5 seconds, etc. The embodiment of the present application does not limit the preset energy-saving collection time threshold, and it can be set according to actual conditions.

[0109] The flow detection method of the ultrasonic gas meter provided in this embodiment determines whether to collect the second gas flow through the auxiliary flow detection device according to the relationship between the interval between the target collection time and the current time and the preset energy-saving collection time threshold when at least one of the uplink duration change value and the downlink duration change value is greater than the preset abnormal duration threshold, which can effectively save energy.

[0110] Figure 2 This is a flow chart of the fourth embodiment of the flow detection method of the ultrasonic gas meter provided by the present application. Based on the above embodiment, the following describes the situation in which the abnormal continuous cumulative value is updated after the first gas flow is updated, and then whether to issue an alarm is determined. Figure 2 As shown, the flow detection method of the ultrasonic gas meter specifically includes the following steps:

[0111] S201: Update the abnormal continuous cumulative value.

[0112] In this step, the ultrasonic gas meter updates the first gas flow collected this time. After obtaining the third gas flow collected this time, in order to determine whether the ultrasonic gas meter is faulty, it is also necessary to update the abnormal continuous cumulative value.

[0113] If the third gas flow rate or the first gas flow rate collected last time is used as the third gas flow rate collected this time when the first gas flow rate is updated, the abnormal continuous cumulative value is increased by one.

[0114] If, when updating the first gas flow, the first gas flow collected this time is used as the third gas flow collected next time, the abnormal continuous cumulative value is updated to 0.

[0115] S202: If the updated abnormal continuous cumulative value is equal to the preset alarm threshold, the ultrasonic gas meter abnormality information is output.

[0116] In this step, after the ultrasonic gas meter updates the abnormal continuous cumulative value, it is determined whether the updated abnormal continuous cumulative value is equal to the preset alarm threshold. If the updated abnormal continuous cumulative value is less than the preset alarm threshold, no processing is performed.

[0117] If the updated abnormal continuous cumulative value is equal to the preset alarm threshold, it means that the ultrasonic gas meter is faulty, then the ultrasonic gas meter abnormal information is output, and the ultrasonic gas meter can also be stopped and the valve closed. After the staff learns of the abnormal information of the ultrasonic gas meter, they can inspect and repair the ultrasonic gas meter. After the inspection and repair are completed, the abnormal continuous cumulative value is set to 0.

[0118] It should be noted that the method of outputting the abnormal information of the ultrasonic gas meter may be to play the abnormal information of the ultrasonic gas meter through a speaker, to send the abnormal information of the ultrasonic gas meter to a terminal device of a staff member, or to display the abnormal information of the ultrasonic gas meter on a display screen. The embodiment of the present application does not limit the method of outputting the abnormal information of the ultrasonic gas meter, and it can be set according to actual conditions.

[0119] The flow detection method of the ultrasonic gas meter provided in this embodiment determines whether the ultrasonic gas meter is faulty by updating the abnormal continuous cumulative value, and outputs abnormal information of the ultrasonic gas meter when a fault occurs, thereby effectively improving the safety of the ultrasonic gas meter and improving the safety of gas use.

[0120] The following describes the situation where the auxiliary flow detection device provided in the present application collects gas flow at a fixed frequency.

[0121] The ultrasonic gas meter can collect gas flow at a fixed frequency through an auxiliary flow detection device, for example, collecting gas flow once or twice in each detection cycle. The staff can use the auxiliary flow detection device to collect gas flow at a fixed frequency during the detection cycle to verify the target gas flow obtained during this detection cycle.

[0122] It should be noted that when the gas flow is collected at a fixed frequency, the collection time is not stored.

[0123] The flow detection method of the ultrasonic gas meter provided in this embodiment can effectively improve the accuracy of the target gas flow by collecting the gas flow at a fixed frequency through the auxiliary flow detection device.

[0124] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0125] Figure 3 This is a schematic diagram of the structure of an embodiment of the flow detection device of an ultrasonic gas meter provided in this application; the device can be integrated into the ultrasonic gas meter in the above method embodiment, and can also be implemented by the ultrasonic gas meter in the above method embodiment. Figure 3 As shown, the flow detection device 30 of the ultrasonic gas meter includes:

[0126] An acquisition module 31 is used to determine a target ultrasonic sampling frequency;

[0127] The processing module 32 is used for:

[0128] During the detection period, the initial gas data is collected by the ultrasonic flow detection device according to the target ultrasonic sampling frequency, and the initial gas data includes the uplink flight time, the downlink flight time, and the first gas flow rate;

[0129] After each collection of initial gas data, determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time;

[0130] If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, collecting a second gas flow rate through an auxiliary flow rate detection device;

[0131] The first gas flow collected this time is updated according to the second gas flow rate to obtain a third gas flow collected this time;

[0132] The target gas flow rate is determined according to all third gas flow rates determined in the detection period and the unupdated first gas flow rate.

[0133] Furthermore, the acquisition module 31 is specifically used for:

[0134] determining a first preset ultrasonic sampling frequency as the target ultrasonic sampling frequency; or,

[0135] The ultrasonic flow detection device is used to collect the current gas flow once, and the target ultrasonic sampling frequency is determined according to the current gas flow.

[0136] Furthermore, the acquisition module 31 is further configured to:

[0137] Determining whether there is gas flowing through the ultrasonic gas meter pipeline according to the current gas flow rate;

[0138] If gas passes through the ultrasonic gas meter pipeline, the first preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency;

[0139] If there is no gas passing through the ultrasonic gas meter pipeline, a second preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency, and the second preset ultrasonic sampling frequency is less than the first preset ultrasonic sampling frequency.

[0140] Furthermore, the processing module 32 is specifically used for:

[0141] If the interval between the stored target collection time and the current time is greater than the preset energy-saving collection time threshold, the second gas flow is collected through the auxiliary flow detection device; wherein the target collection time is the time with the shortest interval with the current time among the stored collection times of collecting gas flow through the auxiliary flow detection device.

[0142] Furthermore, the processing module 32 is further configured to:

[0143] If the absolute value of the difference between the second gas flow rate and the first gas flow rate collected this time is greater than the preset abnormal difference value, the third gas flow rate or the first gas flow rate collected last time is used as the third gas flow rate collected this time;

[0144] If the absolute value of the difference between the second gas flow and the first gas flow collected this time is less than or equal to the preset abnormal difference, the first gas flow collected this time is used as the third gas flow collected next time.

[0145] Furthermore, the preset abnormal time threshold is equal to a preset abnormal time coefficient divided by an operating frequency of a transducer in the ultrasonic flow detection device.

[0146] Furthermore, the auxiliary flow detection device is a thermal flow meter, the thermal flow meter and the ultrasonic flow detection device are in the same pipeline of the ultrasonic gas meter, and the processor in the ultrasonic gas meter is respectively connected to the thermal flow meter and the ultrasonic flow detection device.

[0147] Furthermore, the processing module 32 is also used for:

[0148] Update the abnormal continuous cumulative value;

[0149] If the updated abnormal continuous cumulative value is equal to the preset alarm threshold, the ultrasonic gas meter abnormal information is output.

[0150] The flow detection device of the ultrasonic gas meter provided in this embodiment is used to implement the technical solution of the ultrasonic gas meter in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.

[0151] Figure 4 A schematic diagram of the structure of an ultrasonic gas meter provided in this application Figure 2 .like Figure 4 As shown, the ultrasonic gas meter 40 includes:

[0152] Processor 41, memory 42, communication interface 43, ultrasonic flow detection device 44, auxiliary flow detection device 45;

[0153] The memory 42 is used to store executable instructions of the processor 41;

[0154] The processor 41 is configured to execute the technical solution of the ultrasonic gas meter in any of the aforementioned method embodiments by executing the executable instructions.

[0155] Optionally, the memory 42 may be independent or integrated with the processor 41 .

[0156] Optionally, when the memory 42 is a device independent of the processor 41, the ultrasonic gas meter 40 may further include:

[0157] The bus 46, the ultrasonic flow detection device 44, the auxiliary flow detection device 45, the memory 42 and the communication interface 43 are connected to the processor 41 through the bus 46 and complete the communication with each other. The communication interface 43 is used to communicate with other devices.

[0158] Optionally, the communication interface 43 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0159] The bus 46 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0161] The ultrasonic gas meter is used to implement the technical solution of the ultrasonic gas meter in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0162] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.

[0163] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.

[0164] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A flow detection method for an ultrasonic gas meter, characterized in that: Applied to an ultrasonic gas meter, the ultrasonic gas meter includes an ultrasonic flow detection device and an auxiliary flow detection device, and the method includes: determining a target ultrasound sampling frequency; During the detection period, the ultrasonic flow detection device collects initial gas data according to the target ultrasonic sampling frequency, wherein the initial gas data includes an uplink flight duration, a downlink flight duration, and a first gas flow rate; After each collection of initial gas data, determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time; If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, the second gas flow is collected by the auxiliary flow detection device; The first gas flow collected this time is updated according to the second gas flow rate to obtain a third gas flow collected this time; The target gas flow rate is determined according to all third gas flow rates determined in the detection period and the unupdated first gas flow rate.

2. The method according to claim 1, characterized in that The step of determining the target ultrasonic sampling frequency comprises: determining a first preset ultrasonic sampling frequency as the target ultrasonic sampling frequency; or, The ultrasonic flow detection device is used to collect the current gas flow once, and the target ultrasonic sampling frequency is determined according to the current gas flow.

3. The method according to claim 2, characterized in that The step of determining the target ultrasonic sampling frequency according to the current gas flow rate includes: Determining whether there is gas flowing through the ultrasonic gas meter pipeline according to the current gas flow rate; If gas passes through the ultrasonic gas meter pipeline, the first preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency; If there is no gas passing through the ultrasonic gas meter pipeline, a second preset ultrasonic sampling frequency is determined as the target ultrasonic sampling frequency, and the second preset ultrasonic sampling frequency is less than the first preset ultrasonic sampling frequency.

4. The method according to claim 1, characterized in that: The collecting of the second gas flow rate by the auxiliary flow detection device comprises: If the interval between the stored target collection time and the current time is greater than the preset energy-saving collection time threshold, the second gas flow is collected through the auxiliary flow detection device; wherein the target collection time is the time with the shortest interval with the current time among the stored collection times of collecting gas flow through the auxiliary flow detection device.

5. The method according to claim 1, characterized in that The updating of the first gas flow collected this time according to the second gas flow to obtain the third gas flow collected this time includes: If the absolute value of the difference between the second gas flow rate and the first gas flow rate collected this time is greater than the preset abnormal difference value, the third gas flow rate or the first gas flow rate collected last time is used as the third gas flow rate collected this time; If the absolute value of the difference between the second gas flow and the first gas flow collected this time is less than or equal to the preset abnormal difference, the first gas flow collected this time is used as the third gas flow collected next time.

6. The method according to claim 1, characterized in that The preset abnormal time threshold is equal to a preset abnormal time coefficient divided by the operating frequency of the transducer in the ultrasonic flow detection device.

7. The method according to claim 1, characterized in that The auxiliary flow detection device is a thermal flow meter, which is in the same pipeline as the ultrasonic flow detection device of the ultrasonic gas meter. The processor in the ultrasonic gas meter is connected to the thermal flow meter and the ultrasonic flow detection device respectively.

8. The method according to claim 1, characterized in that After the first gas flow collected this time is updated according to the second gas flow to obtain the third gas flow collected this time, the method further includes: Update the abnormal continuous cumulative value; If the updated abnormal continuous cumulative value is equal to the preset alarm threshold, the ultrasonic gas meter abnormal information is output.

9. A flow detection device for an ultrasonic gas meter, characterized in that: include: An acquisition module, used to determine a target ultrasonic sampling frequency; Processing modules for: During the detection period, the initial gas data is collected by the ultrasonic flow detection device according to the target ultrasonic sampling frequency, and the initial gas data includes the uplink flight time, the downlink flight time, and the first gas flow rate; After each collection of initial gas data, determine the uplink duration change value between the uplink duration collected this time and the uplink duration collected last time, and the downlink duration change value between the downlink duration collected this time and the downlink duration collected last time; If at least one of the uplink duration change value and the downlink duration change value is greater than a preset abnormal duration threshold, collecting a second gas flow rate through an auxiliary flow rate detection device; The first gas flow collected this time is updated according to the second gas flow rate to obtain a third gas flow collected this time; The target gas flow rate is determined according to all third gas flow rates determined in the detection period and the unupdated first gas flow rate.

10. An ultrasonic gas meter, characterized in that: include: Processor, memory, communication interface, ultrasonic flow detection device, auxiliary flow detection device; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the flow detection method of the ultrasonic gas meter according to any one of claims 1 to 8 by executing the executable instructions.