CN112557623A - Gas detection method, apparatus, device, storage medium and program product - Google Patents

Gas detection method, apparatus, device, storage medium and program product Download PDF

Info

Publication number
CN112557623A
CN112557623A CN202011522035.3A CN202011522035A CN112557623A CN 112557623 A CN112557623 A CN 112557623A CN 202011522035 A CN202011522035 A CN 202011522035A CN 112557623 A CN112557623 A CN 112557623A
Authority
CN
China
Prior art keywords
gas
sound velocity
type
determining
detected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011522035.3A
Other languages
Chinese (zh)
Other versions
CN112557623B (en
Inventor
任赟鹏
张礼
林上玉
王澍奇
俞平平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goldcard Smart Group Co Ltd
Original Assignee
Goldcard Smart Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goldcard Smart Group Co Ltd filed Critical Goldcard Smart Group Co Ltd
Priority to CN202011522035.3A priority Critical patent/CN112557623B/en
Publication of CN112557623A publication Critical patent/CN112557623A/en
Application granted granted Critical
Publication of CN112557623B publication Critical patent/CN112557623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/22Fuels, explosives
    • G01N33/225Gaseous fuels, e.g. natural gas
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N29/00Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
    • G01N29/02Analysing fluids
    • G01N29/024Analysing fluids by measuring propagation velocity or propagation time of acoustic waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2291/00Indexing codes associated with group G01N29/00
    • G01N2291/02Indexing codes associated with the analysed material
    • G01N2291/021Gases
    • G01N2291/0212Binary gases

Abstract

The embodiment of the application provides a gas detection method, a gas detection device, gas detection equipment, a storage medium and a program product. The gas detection method comprises the following steps: acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected; determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature; obtaining the current gas sound velocity obtained by measuring the gas to be detected; and determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air. The method is used for improving the accuracy of the gas meter in determining the type of the gas to be detected.

Description

Gas detection method, apparatus, device, storage medium and program product
Technical Field
Embodiments of the present disclosure relate to gas meters, and more particularly, to a gas detection method, a gas detection apparatus, a gas detection device, a storage medium, and a program product.
Background
Currently, gas meters are capable of detecting the type of gas in a gas pipeline.
In the related art, a method of a gas meter detecting a type of gas in a gas pipeline generally includes: acquiring the actual sound velocity of gas in a gas pipeline; judging whether the actual sound velocity is greater than or equal to a sound velocity threshold value; if yes, determining the type of the gas as fuel gas; if not, determining that the type of the gas is air.
In the related art, the sound velocity threshold is a preset fixed value, and the type of the gas is determined according to the actual sound velocity and the fixed sound velocity threshold, so that the accuracy of detecting the type of the gas by the gas meter is low.
Disclosure of Invention
The embodiment of the application provides a gas detection method, a gas detection device, equipment, a storage medium and a program product, which are used for improving the accuracy of the type of gas detected by a gas meter.
In a first aspect, an embodiment of the present application provides a gas detection method, including:
acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected;
determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature;
acquiring the current gas sound velocity obtained by measuring the gas to be detected;
and determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air.
In one possible design, determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold includes:
acquiring reference data, the reference data including at least one of: acquiring a preset return difference, gas detection times or air detection times;
and determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold value and the reference data.
In one possible design, determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold and the reference data includes:
judging whether the current gas sound velocity is greater than or equal to a sound velocity threshold value;
if so, acquiring a first difference value between the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times;
if not, acquiring a first sum of the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times.
In one possible design, determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times includes:
judging whether the current gas sound velocity is less than or equal to a first difference value;
if so, adding 1 to the air detection times, and determining the type of the gas to be detected according to the updated air detection times;
if not, setting the air detection times to be 0, and determining the type of the gas to be detected to be fuel gas.
In one possible design, determining the type of gas to be detected based on the updated number of air detections includes:
judging whether the updated air detection times are larger than or equal to a first threshold value or not;
if so, setting the air detection times to be 0, and determining the type of the gas to be detected to be air;
if not, determining that the type of the gas to be detected is fuel gas.
In one possible design, determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times includes:
judging whether the current gas sound velocity is greater than or equal to a first sum value;
if so, adding 1 to the gas detection times, and determining the type of the gas to be detected according to the updated gas detection times;
if not, the gas detection times are set to be 0, and the type of the gas to be detected is determined to be air.
In one possible design, determining the type of gas to be detected according to the updated gas detection times includes:
judging whether the updated gas detection times are greater than or equal to a second threshold value;
if yes, setting the gas detection times to be 0, and determining the type of the gas to be detected to be gas;
if not, determining that the type of the gas to be detected is air.
In a second aspect, an embodiment of the present application provides a gas detection apparatus, including: a first obtaining module, a first determining module, a second obtaining module, and a second determining module, wherein,
the first acquisition module is used for acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected;
the first determining module is used for determining a sound velocity threshold according to the gas composition parameter, the temperature correction coefficient and the current gas temperature;
the second acquisition module is used for acquiring the current gas sound velocity obtained by measuring the gas to be detected;
the second determining module is used for determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air.
In one possible design, the second determining module is specifically configured to:
acquiring reference data, the reference data including at least one of: acquiring a preset return difference, gas detection times or air detection times;
and determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold value and the reference data.
In one possible design, the second determining module is specifically configured to:
judging whether the current gas sound velocity is greater than or equal to a sound velocity threshold value;
if so, acquiring a first difference value between the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times;
if not, acquiring a first sum of the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times.
In one possible design, the second determining module is specifically configured to:
judging whether the current gas sound velocity is less than or equal to a first difference value;
if so, adding 1 to the air detection times, and determining the type of the gas to be detected according to the updated air detection times;
if not, setting the air detection times to be 0, and determining the type of the gas to be detected to be fuel gas.
In one possible design, the second determining module is specifically configured to:
judging whether the updated air detection times are larger than or equal to a first threshold value or not;
if so, setting the air detection times to be 0, and determining the type of the gas to be detected to be air;
if not, determining that the type of the gas to be detected is fuel gas.
In one possible design, the second determining module is specifically configured to:
judging whether the current gas sound velocity is greater than or equal to a first sum value;
if so, adding 1 to the gas detection times, and determining the type of the gas to be detected according to the updated gas detection times;
if not, the gas detection times are set to be 0, and the type of the gas to be detected is determined to be air.
In one possible design, the second determining module is specifically configured to:
judging whether the updated gas detection times are greater than or equal to a second threshold value;
if yes, setting the gas detection times to be 0, and determining the type of the gas to be detected to be gas;
if not, determining that the type of the gas to be detected is air.
In a third aspect, an embodiment of the present application provides a gas meter, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to cause the processor to perform a gas detection method as in any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the gas detection method as in any one of the first aspect is implemented.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program that, when executed by a processor, implements a gas detection method as in any one of the first aspect.
The embodiment of the application provides a gas detection method, a gas detection device, gas detection equipment, a storage medium and a program product. In the gas detection method, the sound velocity threshold is determined according to the gas component parameters, the temperature correction coefficient and the current gas temperature, so that the sound velocity threshold can be changed along with the change of the gas component parameters, the temperature correction coefficient and the current gas temperature, the bad response of temperature, gas quality and the like to the accuracy of determining the type of the gas to be detected is avoided, and the accuracy of the determined sound velocity threshold is improved. The type of the gas to be detected is determined according to the current gas sound velocity and the sound velocity threshold value, the accuracy of the gas meter for determining the type of the gas to be detected is improved, and the problem that the accuracy of the gas meter for determining the type of the gas to be detected is low due to the fact that the gas type is determined by using the fixed sound velocity threshold value can be solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to the drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario of a gas detection method according to an embodiment of the present disclosure;
FIG. 2 is a first schematic flow chart of a gas detection method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a gas detection method according to an embodiment of the present application;
FIG. 4 is a third schematic flow chart illustrating a gas detection method according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of a gas detection apparatus provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of a gas meter provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In practical applications, the sound velocity of the gas in the gas pipeline is related to the temperature and the gas quality (i.e. the composition of the gas), and if the temperature and the gas quality change, the sound velocity of the gas also changes. In the related art, the sound velocity threshold is a preset fixed value, and the type of the gas is determined according to the actual sound velocity and the fixed sound velocity threshold, so that the accuracy of detecting the type of the gas by the gas meter is low.
In this application, in order to improve the accuracy that gas measuring meter detected the type of gas, this application provides a gas detection method, according to gas composition parameter, temperature correction coefficient and current gas temperature, confirms the sound velocity threshold value, and then according to sound velocity threshold value and current gas sound velocity, confirms the type of gas to realize improving the purpose of the accuracy that gas measuring meter detected the type of gas.
An application scenario of the gas detection method provided by the present application is described below with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario of a gas detection method according to an embodiment of the present application. As shown in fig. 1, includes: gas pipeline, gas strapping table, temperature sensor, sound velocity detector and server.
The gas pipeline passes through the gas meter. The gas meter is provided with a temperature sensor and a sound speed detector. The temperature sensor is used for collecting the current gas temperature in the gas pipeline. The sound velocity detector is used for collecting the current gas sound velocity in the gas pipeline. The gas meter can acquire the current gas temperature and the current gas sound velocity.
The gas meter is in remote communication with the server through a wireless network or a wired network. Alternatively, the wired network may be coaxial cable, twisted pair, fiber optics, and the like. Alternatively, the wireless network may be a 2G network, a 3G network, a 4G network or a 5G network, a narrowband Internet of Things (Narrow Band Internet of Things, NB-IoT), General Packet Radio Service (GPRS), Long Range Radio (LoRa) network, or the like. The embodiment of the present invention does not limit the specific type or specific form of interaction, as long as it can implement the communication function between the server and the gas meter.
In the process of remote communication between the gas metering meter and the server, the server can send gas component parameters and temperature correction coefficients to the gas metering meter, the gas metering meter can determine a sound velocity threshold value according to the gas component parameters, the temperature correction coefficients and the current gas temperature, and then determine the type of gas in a gas pipeline according to the current gas sound velocity and the sound velocity threshold value. Thereby improving the accuracy of the gas meter for detecting the type of gas.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first schematic flow chart of a gas detection method according to an embodiment of the present disclosure. As shown in fig. 2, the gas detection method provided in this embodiment includes:
s201, acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected.
Optionally, the execution subject of the embodiment of the present application may be a gas meter, and may also be a gas detection device in the gas meter, and the gas detection device may be implemented by a combination of software and/or hardware. For ease of understanding, the following description will be made taking an example in which the execution subject is a gas meter.
The gas meter and the server perform remote communication through the wired network and the wireless network in the figure 1 to obtain the gas composition parameters and the temperature correction coefficient.
Specifically, the gas meter may transmit a first request to the server according to a user operation. The first request is for requesting the server to send the gas composition parameter and the temperature correction factor. Alternatively, the user operation may be a manual start operation or a timed start operation. When the user operation is a manual start operation, the gas meter may transmit a first request to the server once per one user operation. When the user operation is the timer start operation, the gas meter may periodically transmit a first request to the server at one user operation.
The server stores gas composition parameters and temperature correction coefficients. After the server receives the first request, the gas composition parameters and the temperature correction coefficients may be sent to the gas meter. When the gas meter first transmits the first request to the server, the server transmits the gas component parameter and the temperature correction coefficient to the gas meter.
In practical application, the operation and maintenance personnel can update the gas composition parameters and the (/ or) temperature correction coefficients stored in the server, so that the server stores the updated gas composition parameters and the (/ or) temperature correction coefficients. After the gas meter sends the first request to the server for the second time, the third time, etc., the server may send the updated gas composition parameters and (/ or) temperature correction factors to the gas meter.
For example, after the gas meter transmits the first request to the server for the first time, the server transmits the gas composition parameter and the temperature correction coefficient to the gas meter, the operation and maintenance staff updates the gas composition parameter stored in the server, and after the gas meter transmits the first request to the server for the second time, the server may transmit only the updated gas composition parameter to the gas meter or may transmit the temperature correction coefficient and the updated gas composition parameter to the gas meter.
Alternatively, the gas meter may store the gas composition parameter and the temperature correction factor in the memory after receiving the gas composition parameter and the temperature correction factor. The memory is a memory which is not lost when power is down. For example, the memory may be a charged Erasable Programmable read only memory (EEPROM), a Flash memory (Flash), or the like.
The gas to be detected is gas inside the gas pipeline, and the current gas temperature is determined by a plurality of temperature values obtained after the gas meter collects the temperature in the gas pipeline according to the temperature sensor in the first timing duration.
S202, determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature.
Alternatively, the speed of sound threshold may be determined by the following feasible algorithm: cThreshold(s)K T + B; wherein, CThreshold(s)Is the sound velocity threshold, k is the temperature correction coefficient, B is the gas composition parameter, and T is the current gas temperature.
And S203, acquiring the current gas sound velocity obtained by measuring the gas to be detected.
The current gas temperature is determined by a plurality of sound velocity values obtained after the gas meter collects the sound velocity in the gas pipeline according to the sound velocity detector (such as a metering module in the gas meter) in the current detection period.
And S204, determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air.
Alternatively, the type of gas to be detected can be determined according to three possible ways:
mode 1, judging whether the current gas sound velocity is greater than or equal to a sound velocity threshold value, if so, determining that the type of the gas to be detected is gas, and if not, determining that the type of the gas to be detected is air.
And 2, judging whether the sound velocity of the current gas is greater than a sound velocity threshold value, if so, determining that the type of the gas to be detected is gas, and if not, determining that the type of the gas to be detected is air.
Mode 3, obtaining reference data, where the reference data includes at least one of: acquiring a preset return difference, gas detection times or air detection times; and determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold value and the reference data.
For a detailed description of the method 3, please refer to S304 to S307 in the embodiment of fig. 3.
In this application, revise current gas temperature through temperature correction coefficient, can avoid the temperature to the bad response of the accuracy of confirming the type of waiting to detect gas, revise current gas temperature through gas composition parameter, can avoid the bad response of different gases to the accuracy of confirming the type of waiting to detect gas, improve the accuracy of sound velocity threshold value, and then improve the accuracy that the gas strapping table confirms the type of waiting to detect gas
In the gas detection method provided in the embodiment of fig. 2, the gas meter obtains the gas component parameter and the temperature correction coefficient through a remote communication mode (the wired network and the wireless network in the embodiment of fig. 1), so that the gas meter can determine the sound velocity threshold value in time according to the gas component parameter and the temperature correction coefficient. Further, when the gas composition parameters and/or temperature correction coefficients are updated, the gas meter may determine a new sound speed threshold in time. And determining the sound velocity threshold according to the gas composition parameter, the temperature correction coefficient and the current gas temperature, so that the sound velocity threshold can be changed along with the change of the gas composition parameter, the temperature correction coefficient and the current gas temperature, the bad response of temperature, gas quality and the like to the accuracy of determining the type of the gas to be detected is avoided, and the accuracy of the determined sound velocity threshold is improved. The type of the gas to be detected is determined according to the current gas sound velocity and the sound velocity threshold value, the accuracy of the gas meter for determining the type of the gas to be detected is improved, and the problem that the accuracy of the gas meter for determining the type of the gas to be detected is low due to the fact that the gas type is determined by using the fixed sound velocity threshold value can be solved.
In practical application, a gas meter usually determines a historical metering value of gas according to the type of gas to be detected, and corrects the historical metering value to obtain a new metering value. In the prior art, the type of gas is determined according to the actual sound velocity and a fixed sound velocity threshold value, so that the accuracy of detecting the type of gas by a gas meter is low, and further the accuracy of a new metering value is low. In the application, the sound velocity threshold value is determined according to the gas composition parameters, the temperature correction coefficient and the current gas temperature, the type of the gas to be detected is determined according to the current gas sound velocity and the sound velocity threshold value, and the accuracy of the gas meter for determining the type of the gas to be detected can be improved, so that the accuracy of a new metering value is improved.
In practical applications, when the gas meter is mounted to the gas pipe, the interior will be immediately filled with gas. If the sound velocity is smaller than the sound velocity threshold value, the gas meter determines that the type of the gas is air, and the gas meter executes anti-dismantling alarm. In the prior art, the type of gas is determined according to the actual sound velocity and a fixed sound velocity threshold value, so that the accuracy of detecting the type of gas by a gas meter is low, and false alarm of the gas meter can be caused. And in this application, according to gas composition parameter, temperature correction coefficient and current gas temperature, confirm the sound velocity threshold value, according to current gas sound velocity and sound velocity threshold value, confirm the type of gas that detects, can improve the accuracy that the gas strapping table confirms the type of gas that detects, consequently can prevent gas strapping table false alarm.
On the basis of the above embodiments, the following describes in detail the gas detection method provided in the embodiments of the present application with reference to fig. 3, specifically, refer to the embodiment of fig. 3.
Fig. 3 is a schematic flow chart of a gas detection method according to an embodiment of the present application. As shown in fig. 3, the gas detection method provided in this embodiment includes:
s301, acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected.
And S302, determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature.
And S303, obtaining the current gas sound velocity obtained by measuring the gas to be detected.
Specifically, the execution method of S301 to S303 is the same as the execution method of S201 to S203, and the execution process of S301 to S303 is not described herein again.
S304, acquiring reference data, wherein the reference data comprises: and acquiring the preset return difference, the gas detection times or the air detection times.
The preset return difference is a preset numerical value prestored in the gas meter.
S305, judging whether the current gas sound velocity is larger than or equal to a sound velocity threshold value.
If yes, go to S306.
If not, go to step S307.
Specifically, when the current gas sound velocity is greater than or equal to the sound velocity threshold, the type of the gas to be detected is determined to be gas, and if the current gas sound velocity is smaller than the sound velocity threshold, the type of the gas to be detected is determined to be air.
S306, acquiring a first difference value between the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times.
Specifically, the detailed description of S306 can refer to S412 to S418 in the embodiment of fig. 4, and is not described in detail here.
S307, acquiring a first sum of the sound velocity threshold and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times.
Specifically, the detailed description of S307 may refer to S405 to S411 in the embodiment of fig. 4, and is not described in detail here.
In the embodiment of fig. 3, when the current gas sound velocity is greater than or equal to the sound velocity threshold, determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times; when the current gas sound velocity is smaller than the sound velocity threshold value, the type of the gas to be detected is determined according to the current gas sound velocity, the first sum and the gas detection times, the problem that the determined type of the gas to be detected changes repeatedly when the current gas sound velocity is equal to the sound velocity threshold value can be avoided, and the accuracy of determining the type of the gas to be detected by the gas meter is improved.
Fig. 4 is a third schematic flowchart of a gas detection method according to an embodiment of the present application. As shown in fig. 4, the gas detection method provided in this embodiment includes:
s401, acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected.
S402, determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature.
And S403, obtaining the current gas sound velocity obtained by measuring the gas to be detected.
S404, judging whether the current gas sound velocity is larger than or equal to the sound velocity threshold value.
Otherwise, executing S405 to S411.
If yes, then S412-S418 are executed.
Specifically, when the current gas sound velocity is smaller than the sound velocity threshold value, determining that the type of the gas to be detected is air, and executing S405-S411; and when the current gas sound velocity is greater than or equal to the sound velocity threshold value, determining that the type of the gas to be detected is gas, and executing S412-S418.
S405, acquiring a first sum of the sound speed threshold and a preset return difference.
S406, judging whether the current gas sound velocity is greater than or equal to a first sum value;
if yes, S407-S410 are executed.
If not, S411 is executed.
And S407, adding 1 to the gas detection frequency.
And S408, judging whether the updated gas detection frequency is greater than or equal to a second threshold value.
If yes, S409 is performed.
If not, go to S410.
And S409, setting the gas detection times to be 0, and determining the type of the gas to be detected to be gas.
In one possible design, after S409, S4091-S4094 may also be performed.
S4091, judging whether the timing duration of the first timer is equal to the first timing duration.
If not, S4092 is executed.
If yes, executing S4093-S4094.
Alternatively, the first timing length may be 2 seconds, 5 seconds, or the like.
S4092, waiting for the first timer to continue timing, and executing S4094 at the same time.
And S4093, adding 1 to the detection cycle number N.
And S4094, judging whether the timing duration of the first timer is greater than or equal to a second preset duration.
If yes, S401-S418 are executed.
If not, S4091 is executed.
Alternatively, the second preset time period may be 3 seconds, 5 seconds, or the like.
And S410, determining the type of the gas to be detected to be air.
In one possible design, S4091 to S4094 may be directly performed without performing S410. That is, it is not determined in S410 that the type of the gas to be detected is air.
S411, setting the gas detection times to be 0, and determining that the type of the gas to be detected is air.
In one possible design, S411 may also be: the number of times of gas detection is set to 0, and then S4091 to S4094, that is, it is not determined in S411 that the type of gas to be detected is air.
S412, acquiring a first difference value of the sound velocity threshold value and a preset return difference.
S413, judging whether the current gas sound velocity is smaller than or equal to a first difference value;
if yes, then S414-S417 are executed.
If not, S418 is performed.
And S414, adding 1 to the air detection times.
And S415, judging whether the updated air detection times are larger than or equal to a first threshold value.
If yes, go to S416.
If not, S417 is executed.
And S416, setting the air detection times to be 0, and determining the type of the gas to be detected to be air.
In one possible design, after S416, S4091-S4094 may also be performed.
S417, determining the type of the gas to be detected as gas.
In one possible design, S4091 to S4094 may be directly performed without performing S417. That is, it is not determined in S410 that the type of gas to be detected is gas.
And S418, setting the air detection times to be 0, and determining the type of the gas to be detected to be fuel gas.
In one possible design, S411 may also be: the number of times of air detection is set to 0, and then S4091 to S4094, that is, it is not determined in S418 that the type of gas to be detected is gas.
In the embodiment of fig. 4, it can be determined whether the timing duration of the first timer is equal to the first timing duration, so that the type of the gas to be detected is determined in a multi-cycle manner within the first timing duration, the problem that the determined type of the gas to be detected is changed repeatedly when the current gas sound velocity is equal to the sound velocity threshold is solved, and the accuracy of the gas meter for determining the type of the gas to be detected is improved.
Fig. 5 is a schematic view of a gas detection apparatus according to an embodiment of the present application. As shown in fig. 5, the gas detection apparatus 10 includes: a first obtaining module 11, a first determining module 12, a second obtaining module 12 and a second determining module 14, wherein,
the first obtaining module 11 is configured to obtain a gas composition parameter, a temperature correction coefficient, and a current gas temperature of a gas to be detected;
the first determining module 12 is configured to determine a sound velocity threshold according to the gas composition parameter, the temperature correction coefficient, and the current gas temperature;
the second obtaining module 13 is configured to obtain a current gas sound velocity obtained by measuring the gas to be detected;
the second determining module 14 is configured to determine the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, where the type of the gas to be detected is gas or air.
The gas detection device provided by the embodiment of the application can execute the technical scheme shown in the method embodiment, the implementation principle and the beneficial effect are similar, and the detailed description is omitted here.
In one possible design, the second determining module 13 is specifically configured to:
acquiring reference data, the reference data including at least one of: acquiring a preset return difference, gas detection times or air detection times;
and determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold value and the reference data.
In one possible design, the second determining module 13 is specifically configured to:
judging whether the current gas sound velocity is greater than or equal to a sound velocity threshold value;
if so, acquiring a first difference value between the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times;
if not, acquiring a first sum of the sound velocity threshold value and a preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times.
In one possible design, the second determining module 13 is specifically configured to:
judging whether the current gas sound velocity is less than or equal to a first difference value;
if so, adding 1 to the air detection times, and determining the type of the gas to be detected according to the updated air detection times;
if not, setting the air detection times to be 0, and determining the type of the gas to be detected to be fuel gas.
In one possible design, the second determining module 13 is specifically configured to:
judging whether the updated air detection times are larger than or equal to a first threshold value or not;
if so, setting the air detection times to be 0, and determining the type of the gas to be detected to be air;
if not, determining that the type of the gas to be detected is fuel gas.
In one possible design, the second determining module 13 is specifically configured to:
judging whether the current gas sound velocity is greater than or equal to a first sum value;
if so, adding 1 to the gas detection times, and determining the type of the gas to be detected according to the updated gas detection times;
if not, the gas detection times are set to be 0, and the type of the gas to be detected is determined to be air.
In one possible design, the second determining module 13 is specifically configured to:
judging whether the updated gas detection times are greater than or equal to a second threshold value;
if yes, setting the gas detection times to be 0, and determining the type of the gas to be detected to be gas;
if not, determining that the type of the gas to be detected is air.
Fig. 6 is a schematic diagram of a hardware structure of a gas meter provided in an embodiment of the present application. As shown in fig. 6, the gas meter 20 includes: a processor 21 and a memory 22, which,
the processor 21 and the memory 22 are connected by a bus 23.
In particular implementations, processor 21 executes computer-executable instructions stored by memory 22 that cause processor 21 to perform the gas detection methods described above.
For a specific implementation process of the processor 21, reference may be made to the above method embodiments, which implement similar principles and technical effects, and this embodiment is not described herein again.
In the embodiment shown in fig. 6, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as disk storage.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the gas detection method in any one of the above embodiments is implemented.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the gas detection method of any of the above embodiments.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the unit is only a logical division, and other division ways are possible in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method of gas detection, comprising:
acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected;
determining a sound velocity threshold according to the gas component parameters, the temperature correction coefficient and the current gas temperature;
obtaining the current gas sound velocity obtained by measuring the gas to be detected;
and determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air.
2. The method of claim 1, wherein determining the type of the gas to be detected based on the current gas sound velocity and the sound velocity threshold comprises:
acquiring reference data, the reference data comprising at least one of: acquiring a preset return difference, gas detection times or air detection times;
and determining the type of the gas to be detected according to the current gas sound velocity, the sound velocity threshold and the reference data.
3. The method of claim 2, wherein determining the type of the gas to be detected based on the current gas sound velocity, the sound velocity threshold, and the reference data comprises:
judging whether the current gas sound velocity is greater than or equal to the sound velocity threshold value;
if so, acquiring a first difference value between the sound velocity threshold value and the preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first difference value and the air detection times;
if not, acquiring a first sum of the sound velocity threshold value and the preset return difference, and determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the gas detection times.
4. The method of claim 3, wherein determining the type of the gas to be detected based on the current gas sound velocity, the first difference value, and the number of air detections comprises:
judging whether the current gas sound velocity is smaller than or equal to the first difference value;
if so, adding 1 to the air detection times, and determining the type of the gas to be detected according to the updated air detection times;
if not, setting the air detection times to be 0, and determining the type of the gas to be detected to be fuel gas.
5. The method of claim 4, wherein determining the type of gas to be detected based on the updated number of air detections comprises:
judging whether the updated air detection times are larger than or equal to a first threshold value or not;
if so, setting the air detection times to be 0, and determining the type of the gas to be detected to be air;
if not, determining that the type of the gas to be detected is fuel gas.
6. The method of claim 3, wherein determining the type of the gas to be detected according to the current gas sound velocity, the first sum and the number of gas detections comprises:
judging whether the current gas sound velocity is greater than or equal to the first sum value;
if so, adding 1 to the gas detection times, and determining the type of the gas to be detected according to the updated gas detection times;
if not, the gas detection frequency is set to be 0, and the type of the gas to be detected is determined to be air.
7. The method of claim 6, wherein determining the type of gas to be detected based on the updated number of gas detections comprises:
judging whether the updated gas detection times are greater than or equal to a second threshold value;
if yes, setting the gas detection times to be 0, and determining the type of the gas to be detected to be gas;
if not, determining that the type of the gas to be detected is air.
8. A gas detection apparatus comprising: a first obtaining module, a first determining module, a second obtaining module, and a second determining module, wherein,
the first acquisition module is used for acquiring gas composition parameters, temperature correction coefficients and the current gas temperature of the gas to be detected;
the first determining module is used for determining a sound velocity threshold according to the gas composition parameter, the temperature correction coefficient and the current gas temperature;
the second acquisition module is used for acquiring the current gas sound velocity obtained by measuring the gas to be detected;
the second determining module is used for determining the type of the gas to be detected according to the current gas sound velocity and the sound velocity threshold, wherein the type of the gas to be detected is gas or air.
9. A gas meter, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the gas detection method of any one of claims 1 to 7.
10. A computer readable storage medium having computer executable instructions stored thereon which, when executed by a processor, implement the gas detection method of any one of claims 1 to 7.
11. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements a gas detection method as claimed in any one of claims 1 to 7.
CN202011522035.3A 2020-12-21 2020-12-21 Gas detection method, apparatus, device, storage medium, and program product Active CN112557623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522035.3A CN112557623B (en) 2020-12-21 2020-12-21 Gas detection method, apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522035.3A CN112557623B (en) 2020-12-21 2020-12-21 Gas detection method, apparatus, device, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN112557623A true CN112557623A (en) 2021-03-26
CN112557623B CN112557623B (en) 2023-05-16

Family

ID=75031140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522035.3A Active CN112557623B (en) 2020-12-21 2020-12-21 Gas detection method, apparatus, device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN112557623B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1319185A (en) * 1998-09-11 2001-10-24 松下电器产业株式会社 Gas identification system
JP2008256485A (en) * 2007-04-04 2008-10-23 Ebara Corp Device for detecting gas component
CN206177890U (en) * 2016-10-26 2017-05-17 哈尔滨理工大学 Combustible gas concentration detection device with remote alarm function
DE102016112678A1 (en) * 2016-07-11 2018-01-11 Rational Aktiengesellschaft Method and arrangement for analyzing gas properties
EP3270149A1 (en) * 2016-07-11 2018-01-17 Rüeger S.A. Method and arrangement for the analysis of gas characteristics by measuring speed of sound
CN111323100A (en) * 2020-03-24 2020-06-23 成都千嘉科技有限公司 Ultrasonic gas meter fault diagnosis system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1319185A (en) * 1998-09-11 2001-10-24 松下电器产业株式会社 Gas identification system
JP2008256485A (en) * 2007-04-04 2008-10-23 Ebara Corp Device for detecting gas component
DE102016112678A1 (en) * 2016-07-11 2018-01-11 Rational Aktiengesellschaft Method and arrangement for analyzing gas properties
EP3270149A1 (en) * 2016-07-11 2018-01-17 Rüeger S.A. Method and arrangement for the analysis of gas characteristics by measuring speed of sound
CN206177890U (en) * 2016-10-26 2017-05-17 哈尔滨理工大学 Combustible gas concentration detection device with remote alarm function
CN111323100A (en) * 2020-03-24 2020-06-23 成都千嘉科技有限公司 Ultrasonic gas meter fault diagnosis system and method

Also Published As

Publication number Publication date
CN112557623B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN109765578B (en) Bus GPS equipment clock calibration method and device
US11086945B2 (en) System and method for updating upload-period of apparatus data
CN110888065B (en) Battery pack state of charge correction method and device
CN106707187B (en) Method and device for determining target SOC of battery
CN105318918A (en) A non-magnetic flow metering device and a metering method thereof
CN109034180A (en) Method for detecting abnormality, device, computer readable storage medium and electronic equipment
CN112557623A (en) Gas detection method, apparatus, device, storage medium and program product
KR101942719B1 (en) Real Time Clock Apparatus
CN110553976B (en) Method and device for detecting environmental corrosion rate
JPH07181263A (en) Radioactive ray measuring instrument
JP5372315B2 (en) Telemeter system slave station equipment
CN108896070B (en) Method and device for detecting sensor error in mobile equipment and terminal
CN111080352A (en) Product price determining method and device and server
CN113709582B (en) Bandwidth measurement method and device
CN110413706B (en) Data processing method, data processing device, storage medium and electronic equipment
KR101171538B1 (en) Electronic apparatus operates within program updating and meter
CN109303953A (en) Drip monitoring method and system
CN114418427A (en) Gas meter matching method and system
CN108693164B (en) Temperature demodulation method, device and system based on optical fiber Raman scattering signal
CN114076609A (en) Vehicle mileage determination method and device, vehicle and storage medium
CN108174187B (en) Method and system for testing response time of smart television
JP2599747Y2 (en) Remote indicator
CN106445935B (en) Misjudgment processing method and device for click data
CN112798860B (en) Electric quantity calculation method and device and multi-split system
CN111189471A (en) Correction method, correction device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant