Ultrasonic gas leakage detection method and device, electronic equipment and computer storage medium
By installing valves and ultrasonic sensors at both ends of the gas passage, and calibrating by detecting the calibration time difference and real-time time difference, the technical problems of ultrasonic gas leak detection devices were solved, and the technical problems of detection devices for circuit delay and temperature rise were realized, thus improving the detection accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- OUHAO OPTOELECTRONIC CONTROL TECH (CHONGQING) CO LTD
- Filing Date
- 2024-10-24
- Publication Date
- 2026-04-24
AI Technical Summary
Existing ultrasonic gas leak detection devices suffer from circuit delay and temperature drift issues, which affect detection accuracy.
By installing valves at both ends of the gas passage and using first and second ultrasonic sensors to detect the calibration time difference and real-time time difference, the real-time time difference is calibrated using the calibration time difference, and the gas leakage flow rate is calculated.
It overcomes the interference of circuit delay and temperature drift, and improves the accuracy of gas leak detection.
Smart Images

Figure CN121917162A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of ultrasonic gas leak detection technology, and in particular to an ultrasonic gas leak detection method, apparatus, electronic device, and computer storage medium. Background Technology
[0002] As the requirements for gas metering accuracy become increasingly stringent in the gas metering field, ultrasonic gas meters are gaining popularity. Ultrasonic gas meters estimate instantaneous flow rate by utilizing the difference in flight time of ultrasonic waves in the upstream and downstream directions. Compared to diaphragm gas meters, they offer advantages such as wider measurement range, smaller size, simpler structure, higher metering accuracy, and better stability.
[0003] Because natural gas is flammable and explosive, it is necessary to monitor gas leaks. Those skilled in the art have designed ultrasonic gas leak detection devices based on ultrasonic gas meters; however, ultrasonic gas leak detection devices often employ a fully electronic structure, and their circuits often suffer from time drift due to circuit delays, as well as temperature drift due to temperature changes, which may cause problems in gas leak detection. Summary of the Invention
[0004] In view of this, embodiments of this application provide an ultrasonic gas leak detection scheme to at least partially solve the above-mentioned problems.
[0005] According to a first aspect of the embodiments of this application, an ultrasonic gas leak detection method is provided, applied to an ultrasonic gas velocity measuring device. The device includes a first valve and a second valve disposed at both ends of a gas passage, and a first ultrasonic sensor and a second ultrasonic sensor disposed within the gas passage. The method includes:
[0006] Close the first valve and the second valve;
[0007] The calibration time difference is detected using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0008] Open the first valve and the second valve;
[0009] The real-time time difference is detected by using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0010] The real-time time difference is calibrated using the calibration time difference to obtain the calibrated time difference;
[0011] Calculate the gas leak flow rate based on the time difference after calibration.
[0012] According to a second aspect of the embodiments of this application, an ultrasonic gas leak detection device is provided, comprising:
[0013] The first and second valves are installed at both ends of the gas passage;
[0014] A first ultrasonic sensor and a second ultrasonic sensor are installed in the gas passage.
[0015] The valve control module is used to operate the first valve and the second valve according to a predetermined timing sequence;
[0016] The time drift detection module is used to detect the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor when the first valve and the second valve are closed.
[0017] The time difference detection module is used to detect the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor when the first valve and the second valve are opened;
[0018] A calibration module is used to calibrate the real-time time difference using the calibration time difference to obtain a calibrated time difference;
[0019] A rate calculation module is used to calculate the gas leakage flow rate based on the calibrated time difference.
[0020] According to a third aspect of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction causes the processor to perform an operation corresponding to the ultrasonic gas leak detection method described in the first aspect.
[0021] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the ultrasonic gas leak detection method as described in the first aspect.
[0022] According to the ultrasonic gas leak detection scheme provided in the embodiments of this application, by operating the first valve and the second valve, the first ultrasonic sensor and the second ultrasonic sensor are used to detect the calibration time difference and the real-time time difference. The calibration time difference is used to calibrate the real-time time difference to obtain the calibrated time difference. The gas leak flow rate is calculated based on the calibrated time difference, thereby overcoming the interference of factors such as circuit delay and improving the accuracy of the detection results. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0024] Figure 1 This is a schematic diagram of the structure of an ultrasonic gas leak detection device according to an embodiment of this application;
[0025] Figure 2 This is a flowchart of the steps of an ultrasonic gas leak detection method according to an embodiment of this application;
[0026] Figure 3 yes Figure 2 A detailed flowchart of step S202 in the process;
[0027] Figure 4 yes Figure 2 A detailed flowchart of step S204 in the process;
[0028] Figure 5 This is a flowchart of the steps of an ultrasonic gas leak detection method according to an embodiment of this application;
[0029] Figure 6 This is a system block diagram of an ultrasonic gas leak detection device according to an embodiment of this application;
[0030] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0031] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art should fall within the protection scope of the embodiments of this application.
[0032] The specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.
[0033] Figure 1 This is a schematic diagram of the structure of an ultrasonic gas leak detection device according to an embodiment of this application. Figure 1As shown, the ultrasonic gas leak detection device 100 may include a detection unit 10 having a gas passage 11, a first valve 21 and a second valve 22 disposed at both ends of the gas passage 11, and a first ultrasonic sensor 31 and a second ultrasonic sensor 32 disposed within the gas passage 11.
[0034] In some embodiments, the detection unit 10 includes a peripheral wall 12 and two opposite side walls 13. The cavity formed by the peripheral wall 12 and the two opposite side walls 13 serves as a gas passage 11. An air inlet 131 is provided on the peripheral wall 12 near one side wall 13, and an air outlet 132 is provided on the peripheral wall 12 near the other side wall 13. A first valve 21 is provided at the air inlet 131, and a second valve 22 is provided at the air outlet 132. A first ultrasonic sensor 31 and a second ultrasonic sensor 32 are respectively disposed on the opposite inner sides of the two side walls 13, wherein the first ultrasonic sensor 31 is disposed near the air inlet 131, and the second ultrasonic sensor 32 is disposed near the air outlet 132. The first ultrasonic sensor 31 and the second ultrasonic sensor 32 are disposed opposite each other to transmit and receive ultrasonic signals. The distance between the first ultrasonic sensor 31 and the second ultrasonic sensor 32 is the ultrasonic signal transmission distance. The first ultrasonic sensor 31 may be equipped with a first ultrasonic receiver and a first ultrasonic generator, and the second ultrasonic sensor 32 may be equipped with a second ultrasonic receiver and a second ultrasonic generator. The first ultrasonic receiver is adapted to receive the ultrasonic signal emitted by the second ultrasonic generator, and the second ultrasonic receiver is adapted to receive the ultrasonic signal emitted by the first ultrasonic generator. By detecting the flight time of the ultrasonic signal between the first ultrasonic sensor 31 and the second ultrasonic sensor 32, information such as the gas flow rate, gas flow rate, gas leakage flow rate, and leakage flow rate within the gas passage 11 can be obtained. It should be noted that the specific structure of the detection unit 10 is not limited here. For example, the positions of the first ultrasonic sensor 31 and the second ultrasonic sensor 32 can be set on the same side of the peripheral wall 12 or on opposite sides of the peripheral wall, as long as the ultrasonic signal emitted by one ultrasonic sensor can be received by the other ultrasonic sensor. The transmission distance of the ultrasonic wave can be calculated based on the distance between the two ultrasonic sensors and the incident angle.
[0035] The principle of the ultrasonic gas leak detection method and device of this application will be further explained in detail below with reference to the embodiments of this application.
[0036] Reference Figure 2 , Figure 2 This is a flowchart illustrating the steps of an ultrasonic gas leak detection method according to an embodiment of this application. The following is in conjunction with... Figure 2The specific process of an ultrasonic gas leak detection method according to an embodiment of this application is described below. The ultrasonic gas leak detection method according to an embodiment of this application is applied to the aforementioned ultrasonic gas leak detection device, and the method includes the following steps:
[0037] S201: Close the first valve and the second valve.
[0038] In this embodiment, after the first valve and the second valve are closed, the gas passage is isolated from the external gas flow, and a certain amount of stagnant gas exists in the gas passage.
[0039] S202: Detect the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0040] Specifically, a first downstream ultrasonic signal and a first upstream ultrasonic signal are generated using a first ultrasonic sensor and a second ultrasonic sensor, and the calibration time difference is calculated using the time difference between the flight of the first downstream ultrasonic signal and the first upstream ultrasonic signal in a stationary gas medium.
[0041] S203: Open the first valve and the second valve.
[0042] In this embodiment, after the first valve and the second valve are opened, the gas passage is connected to the external gas flow. When a gas leak occurs, a gas flow with a certain velocity will be generated in the gas passage.
[0043] S204: Detect the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0044] Specifically, a second downstream ultrasonic signal and a second upstream ultrasonic signal are generated using a first ultrasonic sensor and a second upstream ultrasonic signal, and the real-time time difference is calculated using the time difference between the flight of the second downstream ultrasonic signal and the second upstream ultrasonic signal in the non-static gas medium.
[0045] S205: Use the calibration time difference to calibrate the real-time time difference to obtain the calibrated time difference.
[0046] Specifically, the calibrated time difference can be calculated using the following formula:
[0047] △t=△t1-△t0, where △t is the time difference after calibration, △t1 is the real-time time difference, and △t0 is the calibration time difference.
[0048] S206: Calculate the gas leakage flow rate based on the time difference after calibration.
[0049] Specifically, the gas leak velocity can be calculated based on the calibrated time difference, including using the following formula:
[0050] Where V is the gas leakage velocity, L is the ultrasonic signal transmission distance, Δt is the time difference after calibration, and c is the speed of the ultrasonic wave in the gas medium.
[0051] Reference Figure 3 , Figure 3 yes Figure 2 A detailed flowchart of step S202 in the process;
[0052] As shown in the figure, step S202: Detecting the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor includes the following specific steps:
[0053] S301: Use the first ultrasonic sensor to send a first downstream ultrasonic signal.
[0054] Specifically, a first ultrasonic generator of a first ultrasonic sensor can be used to send a first downstream ultrasonic signal.
[0055] S302: Receive the first downstream ultrasonic signal using the second ultrasonic sensor.
[0056] Specifically, the first downstream ultrasonic signal can be received by the second ultrasonic receiver of the second ultrasonic sensor.
[0057] S303: Calculate the flight time of the first downstream ultrasonic wave, that is, the flight time of the first downstream ultrasonic wave signal from the first ultrasonic generator of the first ultrasonic sensor to the second ultrasonic receiver of the second ultrasonic sensor.
[0058] S304: Use the second ultrasonic sensor to send a first counter-current ultrasonic signal.
[0059] Specifically, the second ultrasonic generator of the second ultrasonic sensor can be used to send the first reverse ultrasonic signal.
[0060] S305: Receive the first countercurrent ultrasonic signal using the first ultrasonic sensor.
[0061] Specifically, the first reverse-current ultrasonic signal can be received by the first ultrasonic receiver of the first ultrasonic sensor.
[0062] S306: Calculate the flight time of the first reverse-flow ultrasonic wave, that is, the flight time of the first reverse-flow ultrasonic wave signal from the second ultrasonic wave generator of the second ultrasonic wave sensor to the first ultrasonic wave receiver of the first ultrasonic wave sensor.
[0063] S307: Calculate the calibration time difference based on the first downstream ultrasonic flight time and the first upstream ultrasonic flight time.
[0064] Specifically, the flight time of the first downstream ultrasonic wave is subtracted from the flight time of the first upstream ultrasonic wave to obtain the calibration time difference.
[0065] See also Figure 4 , Figure 4 yes Figure 2 The detailed flowchart of step S204 is as follows.
[0066] As shown in the figure, the detailed steps of step S204—detecting the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor—include:
[0067] S401: Use the first ultrasonic sensor to send a second downstream ultrasonic signal.
[0068] Specifically, a second downstream ultrasonic signal can be sent using the first ultrasonic generator of the first ultrasonic sensor.
[0069] S402: Receive the second downstream ultrasonic signal using the second ultrasonic sensor.
[0070] Specifically, the second downstream ultrasonic signal can be received by the second ultrasonic receiver of the second ultrasonic sensor.
[0071] S403: Calculate the flight time of the second downstream ultrasonic wave, that is, the flight time of the second downstream ultrasonic wave signal from the first ultrasonic generator of the first ultrasonic sensor to the second ultrasonic receiver of the second ultrasonic sensor.
[0072] S404: Use the second ultrasonic sensor to send a second countercurrent ultrasonic signal.
[0073] Specifically, a second ultrasonic generator of the second ultrasonic sensor can be used to send a second countercurrent ultrasonic signal.
[0074] S405: Receive the second countercurrent ultrasonic signal using the first ultrasonic sensor.
[0075] Specifically, the second countercurrent ultrasonic signal can be received by the first ultrasonic receiver of the first ultrasonic sensor.
[0076] S406: Calculate the second reverse-current ultrasonic flight time, that is, the flight time of the second reverse-current ultrasonic signal from the second ultrasonic generator of the second ultrasonic sensor to the first ultrasonic receiver of the first ultrasonic sensor.
[0077] S407: Calculate the real-time time difference based on the flight time of the second downstream ultrasonic wave and the flight time of the second upstream ultrasonic wave.
[0078] Specifically, the flight time of the first downstream ultrasonic wave is subtracted from the flight time of the first upstream ultrasonic wave to obtain the calibration time difference.
[0079] According to the ultrasonic gas leak detection method provided in the embodiments of this application, by operating the first valve and the second valve, the first ultrasonic sensor and the second ultrasonic sensor are used to detect the calibration time difference and the real-time time difference. The calibration time difference is used to calibrate the real-time time difference to obtain the calibrated time difference. The gas leak flow rate is calculated based on the calibrated time difference, thereby overcoming the interference of factors such as time drift or temperature drift and improving the accuracy of the detection results.
[0080] Reference Figure 5 , Figure 5 This is a flowchart illustrating the steps of an ultrasonic gas leak detection method according to an embodiment of this application. The following is in conjunction with... Figure 5 The specific process of an ultrasonic gas leak detection method according to an embodiment of this application is described below. The ultrasonic gas leak detection method according to an embodiment of this application is applied to the aforementioned ultrasonic gas leak detection device, and the method includes the following steps:
[0081] S501: Close the first valve and the second valve.
[0082] In this embodiment, after the first valve and the second valve are closed, the gas passage is isolated from the external gas flow, and a certain amount of stagnant gas exists in the gas passage.
[0083] S502: Detect the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0084] Specifically, a first downstream ultrasonic signal and a first upstream ultrasonic signal are generated using a first ultrasonic sensor and a second ultrasonic sensor, and the calibration time difference is calculated using the time difference between the flight of the first downstream ultrasonic signal and the first upstream ultrasonic signal in a stationary gas medium.
[0085] S503: Open the first valve and the second valve.
[0086] In this embodiment, after the first valve and the second valve are opened, the gas passage is connected to the external gas flow. When a gas leak occurs, a gas flow with a certain velocity will be generated in the gas passage.
[0087] S504: Detect the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor.
[0088] Specifically, a second concurrent ultrasonic signal and a second countercurrent ultrasonic signal are generated using a first ultrasonic sensor and a second ultrasonic sensor, and the real-time time difference is calculated using the time difference between the flight of the second concurrent ultrasonic signal and the second countercurrent ultrasonic signal in the gas medium.
[0089] S505: Use the calibration time difference to calibrate the real-time time difference to obtain the calibrated time difference.
[0090] Specifically, the calibrated time difference can be calculated using the following formula:
[0091] △t=△t1-△t0, where △t is the time difference after calibration, △t1 is the real-time time difference, and △t0 is the calibration time difference.
[0092] S506: Calculate the gas leak flow rate based on the time difference after calibration.
[0093] Specifically, the gas leak velocity can be calculated based on the calibrated time difference, including using the following formula:
[0094] Where V is the gas leakage velocity, L is the ultrasonic signal transmission distance, Δt is the time difference after calibration, and c is the speed of the ultrasonic wave in the gas medium.
[0095] S507: Calculate the gas leakage rate using the following formula: Q = VST, where V is the gas leakage velocity, S is the cross-sectional area of the gas passage, and T is 1 hour (3600 seconds). After obtaining the gas leakage rate, determine whether a gas leak has occurred based on preset parameters.
[0096] Reference Figure 6 , Figure 6 This is a system block diagram of an ultrasonic gas leak detection device according to an embodiment of this application.
[0097] As shown in the figure, the ultrasonic gas leak detection device according to an embodiment of this application includes: a first valve, a second valve, a first ultrasonic sensor, a second ultrasonic sensor, a valve control module, a time drift detection module, a time difference detection module, a calibration module, and a rate calculation module. The first and second valves are located at both ends of a gas passage; the first and second ultrasonic sensors are located within the gas passage; the valve control module operates the first and second valves according to a predetermined timing sequence; the time drift detection module detects the calibration time difference using a first downstream ultrasonic signal and a first upstream ultrasonic signal between the first and second ultrasonic sensors when the first and second valves are closed; the time difference detection module detects the real-time time difference using a second downstream ultrasonic signal and a second upstream ultrasonic signal between the first and second ultrasonic sensors when the first and second valves are open; the calibration module calibrates the real-time time difference using the calibration time difference to obtain a calibrated time difference; and the rate calculation module calculates the gas leak flow rate based on the calibrated time difference. Related content has been described in the foregoing method embodiments and will not be repeated here.
[0098] In some embodiments, the rate calculation module calculates the gas leak velocity according to the following formula:
[0099] Where V is the gas leakage velocity, L is the ultrasonic signal transmission distance, Δt is the time difference after calibration, and c is the speed of the ultrasonic wave in the gas medium.
[0100] In some embodiments, the ultrasonic gas leak detection device further includes a leak calculation module for calculating the gas leak amount according to the following formula:
[0101] Q = VST, where V is the gas leakage velocity, S is the cross-sectional area of the gas passage, and T is 1h (3600s).
[0102] Reference Figure 7 , Figure 7 The diagram illustrates the structure of an electronic device according to an embodiment of this application. The specific embodiments of this application do not limit the specific implementation of the electronic device.
[0103] like Figure 7 As shown, the electronic device may include: a processor 702, a communications interface 704, a memory 706, and a communications bus 708.
[0104] in:
[0105] The processor 702, communication interface 704, and memory 706 communicate with each other via communication bus 708.
[0106] Communication interface 704 is used to communicate with other electronic devices or servers.
[0107] The processor 702 is used to execute program 710, which can specifically execute the relevant steps in the above-described ultrasonic gas leak detection method embodiment.
[0108] Specifically, program 710 may include program code that includes computer operation instructions.
[0109] The processor 702 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The smart device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0110] Memory 706 is used to store program 710. Memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0111] Specifically, program 710 can be used to cause processor 702 to execute the aforementioned ultrasonic gas leak detection method and related operations.
[0112] The specific implementation of each step in procedure 710 can be found in the corresponding steps and units described in the above embodiments of the ultrasonic gas leak detection method, and will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described equipment and modules can be referred to the corresponding process descriptions in the aforementioned method embodiments, and will not be repeated here.
[0113] The electronic device in this embodiment is used to implement the corresponding ultrasonic gas leak detection methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0114] This application also provides a computer-readable storage medium for storing a computer program, the computer program including computer instructions that instruct a computing device to perform an operation corresponding to any of the ultrasonic gas leak detection methods in the above-described multiple method embodiments.
[0115] It should be noted that, depending on the implementation needs, the various components / steps described in the embodiments of this application can be broken down into more components / steps, or two or more components / steps or parts of the operation of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of this application.
[0116] The methods described in the embodiments of this application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code downloaded over a network that is originally stored in a remote recording medium or a non-transitory machine-readable medium and will be stored in a local recording medium. Thus, the methods described herein can be stored on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA) for such software processing. It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., RAM, ROM, flash memory, etc.) capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the ultrasonic gas leak detection method described herein. Furthermore, when a general-purpose computer accesses code used to implement the ultrasonic gas leak detection method shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for executing the ultrasonic gas leak detection method shown herein.
[0117] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0118] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims.
Claims
1. An ultrasonic gas leak detection method, characterized in that, An ultrasonic gas leak detection device is used, the device comprising a first valve and a second valve disposed at both ends of a gas passage, and a first ultrasonic sensor and a second ultrasonic sensor disposed within the gas passage, the method comprising: Close the first valve and the second valve; The calibration time difference is detected using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor. Open the first valve and the second valve; The real-time time difference is detected by using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor. The real-time time difference is calibrated using the calibration time difference to obtain the calibrated time difference; Calculate the gas leak flow rate based on the time difference after calibration.
2. The ultrasonic gas leak detection method according to claim 1, wherein, The step of detecting the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor includes: The first ultrasonic sensor is used to send a first downstream ultrasonic signal; The first downstream ultrasonic signal is received using the second ultrasonic sensor; Calculate the flight time of the first downstream ultrasonic wave; The second ultrasonic sensor is used to send a first countercurrent ultrasonic signal; The first countercurrent ultrasonic signal is received using the first ultrasonic sensor; Calculate the flight time of the first countercurrent ultrasonic wave; The calibration time difference is calculated based on the first downstream ultrasonic flight time and the first upstream ultrasonic flight time.
3. The ultrasonic gas leak detection method according to claim 1, wherein, The step of detecting the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor includes: The first ultrasonic sensor is used to send a second downstream ultrasonic signal; The second ultrasonic sensor is used to receive the second downstream ultrasonic signal; Calculate the flight time of the second downstream ultrasonic wave; The second ultrasonic sensor is used to send a second countercurrent ultrasonic signal; The second countercurrent ultrasonic signal is received using the first ultrasonic sensor; Calculate the flight time of the second countercurrent ultrasonic wave; The real-time time difference is calculated based on the flight time of the second downstream ultrasonic wave and the flight time of the second upstream ultrasonic wave.
4. The ultrasonic gas leak detection method according to claim 1, wherein, The steps for calculating the gas leak velocity based on the calibrated time difference include using the following formula: Where V is the gas leakage velocity, L is the ultrasonic signal transmission distance, Δt is the time difference after calibration, and c is the speed of the ultrasonic wave in the gas medium.
5. The ultrasonic gas leak detection method according to claim 4, wherein, The method further includes calculating the gas leakage amount according to the following formula: Q = VST, where V is the gas leakage velocity, S is the cross-sectional area of the gas passage, and T is 1h (3600s).
6. An ultrasonic gas leak detection device, characterized in that, include: The first and second valves are installed at both ends of the gas passage; The first and second ultrasonic sensors are installed in the gas passage. The valve control module is used to operate the first valve and the second valve according to a predetermined timing sequence; The time drift detection module is used to detect the calibration time difference using the first downstream ultrasonic signal and the first upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor when the first valve and the second valve are closed. The time difference detection module is used to detect the real-time time difference using the second downstream ultrasonic signal and the second upstream ultrasonic signal between the first ultrasonic sensor and the second ultrasonic sensor when the first valve and the second valve are opened; A calibration module is used to calibrate the real-time time difference using the calibration time difference to obtain a calibrated time difference; A rate calculation module is used to calculate the gas leakage flow rate based on the calibrated time difference.
7. The ultrasonic gas leak detection device according to claim 6, wherein, The rate calculation module calculates the gas leakage velocity according to the following formula: Where V is the gas leakage velocity, L is the ultrasonic signal transmission distance, Δt is the time difference after calibration, and c is the speed of the ultrasonic wave in the gas medium.
8. The ultrasonic gas leak detection device according to claim 6, wherein, The device also includes a leakage calculation module for calculating the gas leakage amount according to the following formula: Q = VST, where V is the gas leakage velocity, S is the cross-sectional area of the gas passage, and T is 1h (3600s).
9. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the ultrasonic gas leak detection method as described in any one of claims 1-5.
10. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the ultrasonic gas leak detection method as described in any one of claims 1-5.