CN115497263A - Gas detection method and device - Google Patents

Gas detection method and device Download PDF

Info

Publication number
CN115497263A
CN115497263A CN202211148990.4A CN202211148990A CN115497263A CN 115497263 A CN115497263 A CN 115497263A CN 202211148990 A CN202211148990 A CN 202211148990A CN 115497263 A CN115497263 A CN 115497263A
Authority
CN
China
Prior art keywords
flow
period
gas meter
gas
awakening
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
CN202211148990.4A
Other languages
Chinese (zh)
Other versions
CN115497263B (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.)
TANCY INSTRUMENT GROUP CO Ltd
Goldcard Smart Group Co Ltd
Original Assignee
TANCY INSTRUMENT GROUP CO Ltd
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 TANCY INSTRUMENT GROUP CO Ltd, Goldcard Smart Group Co Ltd filed Critical TANCY INSTRUMENT GROUP CO Ltd
Priority to CN202211148990.4A priority Critical patent/CN115497263B/en
Publication of CN115497263A publication Critical patent/CN115497263A/en
Application granted granted Critical
Publication of CN115497263B publication Critical patent/CN115497263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The application provides a gas detection method and equipment. The method comprises the following steps: the gas meter can measure the obtained awakening flow of the gas meter in the awakening period of each cycle. The gas meter can calculate the dormancy flow of the dormancy period of the period according to the awakening flow. The gas meter can determine the periodic flow of the period according to the awakening flow and the dormancy flow of the period. The gas meter can accumulate the periodic flow of each period when the main battery is powered off to obtain the total flow. When the total flow is greater than or equal to the flow threshold value, the gas meter can record and send an alarm signal. The method improves the gas detection effect.

Description

Gas detection method and device
Technical Field
The application relates to the field of electronics and electricity, in particular to a gas detection method and gas detection equipment.
Background
With the continuous development of the technology, the metering method in the gas industry is continuously evolved and innovated. At present, common gas meters include a mechanical gas meter and an electronic gas meter.
In the prior art, a common electronic gas meter needs a power supply to effectively supply power for the electronic gas meter in metering. Once the power supply of the electronic gas meter is disconnected, the electric quantity is insufficient and other power failure conditions occur, the electronic gas meter loses the metering capacity.
The gas meter without metering capability cannot monitor the gas use condition of a user, and has the problem of poor gas detection effect.
Disclosure of Invention
The application provides a gas detection method and gas detection equipment, which are used for solving the problem of poor gas detection effect.
In a first aspect, the present application provides a gas detection method applied to a gas meter powered off from a main battery, including:
determining the periodic flow of each period according to the awakening flow of the gas meter measured in the awakening time period of each period;
accumulating the periodic flow of each period to obtain total flow;
and when the total flow is greater than or equal to the flow threshold value, recording and sending an alarm signal.
Optionally, determining the cycle flow of each cycle according to the wakeup flow of the gas meter measured in the wakeup time period of each cycle specifically includes:
measuring and obtaining the awakening flow of the awakening time interval of each period;
determining the average flow of each period according to the ratio of the time length of the awakening period of each period to the awakening flow;
determining the dormancy flow of each period according to the product of the average flow of each period and the duration of the dormancy period of each period;
and determining the periodic flow of each period according to the sum of the awakening flow of each period and the sleeping flow of each period.
Optionally, the measuring of the wake-up flow of the wake-up period of each cycle includes:
acquiring instantaneous flow in real time;
when the number of the continuous instantaneous flows which are larger than or equal to the disturbance threshold value is larger than or equal to the preset number, accumulating the continuous instantaneous flows which are larger than or equal to the disturbance threshold value into the awakening flow;
otherwise, when the number of continuous instantaneous flows greater than or equal to the disturbance threshold is less than the preset number, the continuous instantaneous flows greater than or equal to the disturbance threshold are discarded.
Optionally, the method further comprises:
before a period begins, randomly obtaining a first random number and a second random number in a preset range;
determining the duration of a periodic wake-up period according to the first random number;
and determining the duration of the sleep period of the cycle according to the second random number.
Optionally, the method further comprises:
when the periodic flow of a plurality of continuous periods is larger than 0, accumulating the periodic number of the plurality of continuous periods to obtain an accumulated value;
and when the accumulated value is greater than or equal to the time threshold value, recording and sending an alarm signal.
Optionally, the method further comprises:
determining the use times of the gas meter, the use duration and the use flow of each time according to the use record of the gas meter every day before the main battery is powered off;
determining the frequency threshold value of the gas meter according to the use duration and the preset range of the period; and determining the flow threshold value of the gas meter according to the using flow.
In a second aspect, the present application provides a gas detection device, which is applied to a gas meter powered off by a main battery, and includes:
the metering module is used for metering the awakening flow of the gas meter according to the awakening time period of each cycle and determining the cycle flow of each cycle;
the control module is used for accumulating the periodic flow of each period to obtain total flow; and when the total flow is greater than or equal to the flow threshold value, recording and sending an alarm signal.
Optionally, the metering module is specifically configured to:
measuring and obtaining the awakening flow of the awakening time interval of each period;
determining the average flow of each period according to the ratio of the time length of the awakening period of each period to the awakening flow;
determining the dormancy flow of each period according to the product of the average flow of each period and the duration of the dormancy period of each period;
and determining the periodic flow of each period according to the sum of the awakening flow of each period and the sleeping flow of each period.
Optionally, the metering module is specifically configured to:
acquiring instantaneous flow in real time;
when the number of the continuous instantaneous flows which are larger than or equal to the disturbance threshold value is larger than or equal to the preset number, accumulating the continuous instantaneous flows which are larger than or equal to the disturbance threshold value into the awakening flow;
otherwise, when the number of continuous instantaneous flows greater than or equal to the disturbance threshold is less than the preset number, the continuous instantaneous flows greater than or equal to the disturbance threshold are discarded.
Optionally, the metering module is further configured to:
before a period begins, randomly obtaining a first random number and a second random number in a preset range;
determining the duration of the periodic wakeup time interval according to the first random number;
and determining the duration of the sleep period of the cycle according to the second random number.
Optionally, the control module is further configured to:
when the periodic flow of a plurality of continuous periods is larger than 0, accumulating the periodic number of the plurality of continuous periods to obtain an accumulated value;
and when the accumulated value is greater than or equal to the time threshold value, recording and sending an alarm signal.
Optionally, the control module is further configured to:
determining the use times of the gas meter, the use duration and the use flow of each time according to the use record of the gas meter every day before the main battery is powered off;
determining the frequency threshold value of the gas meter according to the use duration and the preset range of the period; and determining the flow threshold value of the gas meter according to the using flow.
In a third aspect, the present application provides a gas meter, including: a memory and a processor;
the memory is used for storing a computer program; the processor is configured to execute the gas detection method according to the first aspect and any one of the possible designs of the first aspect according to a computer program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when at least one processor of the gas meter executes the computer program, the gas meter executes the gas detection method in any one of the possible designs of the first aspect and the first aspect.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a computer program, and when at least one processor of the gas meter executes the computer program, the gas meter executes the gas detection method in any one of the possible designs of the first aspect and the first aspect.
According to the gas detection method and the gas detection equipment, the awakening flow of the gas meter is measured through the awakening time period of each period; calculating the dormancy flow of the dormancy period of the period according to the awakening flow; determining periodic flow of the period according to the awakening flow and the dormancy flow of the period; accumulating the periodic flow of each period when the main battery is powered off to obtain the total flow; when the total flow is greater than or equal to the flow threshold, the gas meter can record and send an alarm signal, so that the flow monitoring function can be kept in a normal service life period of 10 years after the main battery is powered off, and the effect of gas detection effect is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or prior art, the drawings used in the embodiments or the description of the prior art are briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an application of a gas meter according to an embodiment of the present application;
FIG. 2 is a flow chart of a gas detection method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a gas detection method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a gas detection device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of a gas meter according to an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged where appropriate. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein.
The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise.
It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof.
The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
With the continuous development of the technology, the metering method in the gas industry is continuously evolved and innovated. At present, common gas meters include a mechanical gas meter and an electronic gas meter. Different from traditional mechanical gas meters such as diaphragm gas meters and the like, electronic gas meters such as ultrasonic gas meters, thermal gas meters and the like adopt an electronic metering mode, so that effective power supply must be ensured in the metering process. Once the power supply of the electronic gas meter is disconnected, the electric quantity is insufficient and other power failure conditions occur, the electronic gas meter loses the metering capacity. Therefore, the electronic gas meter currently in the market generally closes the built-in valve automatically when the power is off, stops supplying gas, and does not measure the gas. Or, the electronic gas meter can also maintain metering for a period of time by means of a built-in standby battery after the point is dropped until a user replaces a new battery. The scheme of supplying power by using the standby battery can be used for a period of time, but the standby battery mainly adopts a non-replaceable small lithium battery. The capacity is small and is difficult to maintain for a long time. Generally, the backup battery can be maintained for only about 1 year. Therefore, the existing two schemes lose the metering capability after the electronic gas meter is powered off. The arrangement of the two schemes mainly considers that a user cannot replace a new main battery for a long time after the electronic gas meter is closed due to power failure. However, in actual use, for various reasons, a user often does not replace the main battery for a long time after the electronic gas meter is shut down due to power failure. And the life cycle of a gas meter is usually ten years. In the ten years, as long as the total power-off time exceeds 1 year, the electronic gas meter can not measure the main battery after the power-off. At the moment, the user only needs to pull out the main battery to close the built-in valve of the electronic gas meter, and then the user can continue to use the gas. And after the built-in valve of the electronic gas meter is closed, the user cannot have any gas use record and flow cumulant measurement when using the electronic gas meter. The mode of destroying the built-in valve by the manual opening mode is a common gas stealing method at present. The occurrence of the gas stealing situation can cause huge economic loss to gas companies. And in this case the theft of the gas will be difficult to detect and trace. Therefore, how to continuously monitor the gas usage of the user when the electronic gas meter loses the metering capability becomes an urgent problem to be solved.
In order to solve the problems, the application provides an electronic fuel gas detection method applied to a main battery in a power-off state. In the following description, since a mechanical gas meter is not involved, an electronic gas meter is referred to as a gas meter. The gas meter of the application comprises a small standby battery. This small-size reserve battery need not be at the technical scheme in-process that realizes this application for the original design of this gas table, additionally increases the cost. When the main battery of the gas meter is powered off, the gas meter enters a power-off state and the standby battery is started. The gas meter uses the standby battery to realize the measurement of flow during the power-off of the main battery. In addition, in order to prolong the service life of the standby battery, the power consumption is reduced by intermittently supplying power to the metering part circuit, and the metering function in the whole life cycle of 10 years can be maintained only by using the standby power. During the standby battery power supply period, the gas meter can use a wakeup period and a sleep period as a cycle to realize one-time intermittent power supply. And in the awakening period, the gas meter can normally measure. And in the dormant period, the gas meter stops metering, and estimates the flow value according to the metering result in the awakening period. The gas detection method can cycle the period in the whole life cycle of the gas meter, and realizes flow measurement during the power-off period of the main battery. Meanwhile, the gas stealing prevention method and the gas stealing prevention system can provide an all-around gas stealing prevention solution integrating functions of detection, recording, alarming and the like according to the metering result, effectively restrain the gas stealing behavior of the user and guarantee the benefits of a gas company. Because the built-in valve of the gas meter is automatically closed after the main battery is powered off. Therefore, the gas consumption behavior after the power failure of the gas meter can be regarded as abnormal gas consumption. The gas meter can judge whether gas stealing behavior exists or not through a gas stealing prevention detection algorithm according to the gas consumption condition in the whole power-off period, if so, a gas stealing event is recorded, and an alarm signal is sent. The gas meter can also store gas consumption condition records and alarm signals in an external nonvolatile memory chip during power failure. Meanwhile, the gas meter can also ensure that the recorded data cannot be falsified and cannot be lost by adopting modes such as an encryption algorithm, an electronic seal, a hardware encryption chip and the like, so that the data security is improved, and the evidence preservation effect is achieved. The gas meter can also judge whether an alarm signal exists after the main battery is electrified. When an alarm signal exists, the gas meter can immediately report the alarm signal to the system through remote communication. The system can inform the gas company operation and maintenance personnel to go to the door for detection immediately after receiving the alarm signal. The gas meter can also be provided with a local communication interface. The local communication interface is used for supporting the function of reading the gas consumption condition record and the alarm signal during power-off through the maintenance equipment. And after the operation and maintenance personnel go to the door, the operation and maintenance personnel read the gas consumption condition record and the alarm signal during the power-off period through the maintenance equipment, and comprehensively judge whether the user really has the gas stealing behavior by combining with the field trace inspection. If the charge does exist, the operation and maintenance personnel can record the charge in the table to be used as the basis for paying the charge.
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. 1 shows a scene schematic diagram of an application of a gas meter according to an embodiment of the present application. As shown in fig. 1, a local communication interface may be provided on the gas meter. The gas meter can upload information to the maintenance equipment through the local communication interface. The maintenance device may be a device that is brought to the field by a maintenance person. After the maintenance personnel bring the maintenance equipment to the site where the gas meter is located, the maintenance personnel can connect the maintenance equipment and the gas meter in a preset connection mode. The connection mode may include physical connection through a connection line, or short-distance wireless communication through functions such as bluetooth, infrared, NFC, and the like. The connected maintenance equipment can read information from the gas meter. The maintenance device may upload the read information to the server through the mobile network. The server can analyze and process the information in the gas meter. For example, when an alarm is included in the information, the server may send an exception alert to an administrator. For another example, when the information includes a gas consumption record after the main battery is powered off, the server may determine whether the gas consumption condition of the gas meter is normal according to a preset algorithm. For another example, when the information includes a gas usage record before the main battery is powered off, the server may also determine the usage habit of the user based on the gas usage record. The usage habit may include information of number of usage times per day, duration of usage each time, flow rate of usage each time, etc.
In one example, a remote communication module may be disposed in the gas meter. The remote communication module can be a wireless network module such as a 4G communication module. The remote communication may upload usage records, alarm signals, etc. directly to the server during the wake-up period.
In one example, the gas meter may be provided with an external nonvolatile memory chip. The storage chip is used for storing information such as usage records and alarm signals of the gas meter.
In the present application, a gas meter is used as an execution subject to execute the gas detection method of the following embodiment. Specifically, the execution subject may be a hardware device of the gas meter, or a software application implementing the following embodiment in the gas meter, or a computer-readable storage medium on which the software application implementing the following embodiment is installed, or code of the software application implementing the following embodiment.
Fig. 2 shows a flowchart of a gas detection method according to an embodiment of the present application. On the basis of the embodiment shown in fig. 1, as shown in fig. 2, a gas meter is taken as an execution subject, and the method of this embodiment may include the following steps:
s101, determining the periodic flow of each period according to the awakening flow of the gas meter measured in the awakening time period of each period.
In this embodiment, during the main battery outage, in order to improve the service life of the backup battery, the gas meter can reduce power consumption by setting a metering cycle. Each cycle may include one awake period and one sleep period. The gas meter can realize intermittent power supply in a mode of alternately cycling between the awakening time period and the sleeping time period. This mode can make the gas table can be when using backup battery, when maintaining the measurement function, guarantees that the gas table can not appear the condition that the measurement function that the power supply is not enough leads to loses in full life cycle. After the main battery of the gas meter recovers power supply, the gas meter can end intermittent power supply and start a normal metering function.
In each cycle, the gas meter can normally measure the flow of the gas meter in the wake-up period. The gas meter can record the total flow of the awakening period of one cycle as the awakening flow. In the sleep period of a cycle, the standby battery does not supply power to the gas meter, so that the gas meter cannot normally measure the flow. Therefore, the gas meter can estimate and calculate the dormancy flow of the dormancy period according to the measured awakening flow. The gas meter can determine the periodic flow in a period according to the awakening flow and the dormancy flow.
In one example, in order to avoid the situation that the user grasps the rules of waking up and sleeping and then uses the gas only in the sleeping period, the step uses a random number to set the duration of the waking up period and the duration of the sleeping period in each cycle. The method comprises the following specific steps:
step 1, the gas meter can generate two random numbers in a preset range before a period begins. The two random numbers may be denoted as a first random number and a second random number, respectively. For example, the preset range may be 5 to 10, and the first random number and the second random number may be 6 and 8, respectively.
And 2, the gas meter can determine the time length of the periodic awakening time period according to the first random number. The gas meter can determine the duration of the sleep period of the cycle according to the second random number. For example, when the first random number is 6, the duration of the wake-up period may be 6 minutes. When the second random number is 8, the duration of the sleep period may be 8 minutes. That is, the gas meter can be put to sleep for 8 minutes after the normal measurement for 6 minutes. And when the gas meter is dormant for 8 minutes, the gas meter enters the awakening time period of the next cycle.
In one example, the specific calculation process of the periodic flow rate may include the following steps:
step 1, the gas meter can measure and obtain the awakening flow of the awakening time period of each period. And in the awakening period, the standby battery of the gas meter can normally supply power for the gas meter so that the gas meter can normally work. The normally working gas meter can normally measure the flow passing through the gas meter. The gas meter can accumulate the total flow passing through the gas meter in the awakening period of the period, and the total flow is recorded as the awakening flow in the period.
After the main battery is powered off, the built-in valve in the gas meter is automatically closed. Therefore, in theory, any use of gas during this period can be considered as gas theft. However, due to the high metering sensitivity of electronic meters, the metering of such gas meters may be affected by disturbances in the gas flow within the pipeline. Therefore, in order to improve the metering accuracy, the gas meter needs to add a filtering algorithm during metering. The filtering algorithm can judge that the gas is used after the instantaneous flow reaches a certain threshold and lasts for a period of time, and measures the gas, so that the influence of disturbance is avoided. The specific steps of the filtering algorithm may be:
and 11, the gas meter acquires the instantaneous flow in real time within the awakening time period.
When the instantaneous flow is greater than or equal to the disturbance threshold, step 12, the gas meter can start counting. The count may stop when the instantaneous flow is less than the disturbance threshold.
And step 13, when the counted value is greater than or equal to the preset number, the gas meter can accumulate the continuous instantaneous flows greater than or equal to the disturbance threshold value into the wake-up flow. Otherwise, when the count value is smaller than the preset number, the gas meter can directly discard the continuous instantaneous flows larger than or equal to the disturbance threshold.
And step 14, the gas meter can circulate the steps until the awakening time period is finished.
And 2, the gas meter can take the gas consumption in the unit time in the awakening period as the average value of the gas consumption in the whole metering period. Therefore, the gas meter can determine the average flow of each cycle according to the ratio of the time length of the awakening time period of each cycle to the awakening flow.
And 3, the gas meter can determine the dormant flow of each period according to the product of the average flow of each period and the duration of the dormant time period of each period.
And 4, the gas meter can determine the periodic flow of each period according to the sum of the awakening flow of each period and the sleeping flow of each period.
And S102, accumulating the periodic flow of each period to obtain the total flow.
In this embodiment, the gas meter may accumulate the periodic flow of each period. In the accumulation process of this embodiment, the gas meter does not require that each period of the existence period flow is continuous. For example, on the first day the meter may have a periodic flow rate of one period greater than 0. After one month, the periodic flow of the gas meter in one period is more than 0. The two periodic flows will be summed to a total flow. That is, the gas meter will continue to accumulate periodic flow rates during main battery power outage until the total flow rate is at or equal to the flow rate threshold.
And S103, recording and sending an alarm signal when the total flow is greater than or equal to the flow threshold value.
In this embodiment, the gas meter may first determine whether the total flow is greater than or equal to the flow threshold. The flow threshold may be a preset threshold. When the total flow is greater than or equal to the flow threshold, the gas meter can determine that the gas stealing behavior exists in the user, record the event and send an alarm signal.
In one example, the gas meter may send the gas usage records and alarm signals directly to the server through the remote communication module. The remote communication module is used, so that the gas meter has the function of actively reporting alarm information, and operation and maintenance personnel of a gas company can remotely acquire suspicious conditions, thereby timely arranging on-site inspection and reducing the risk of gas theft.
In another example, the gas meter may store the alarm signal and the gas consumption record in an external nonvolatile memory chip such as E2PROM and Flash. When the gas meter comprises an external nonvolatile memory chip, the gas meter can encrypt data such as the gas record, the alarm signal and the like, store the data in a plurality of backup areas of the external nonvolatile memory chip, and add an electronic seal. The data record in the external nonvolatile memory chip only allows the gas meter to be automatically written in during the power-off period of the main battery, and any manual writing operation is forbidden. Moreover, when the maintenance device reads data from the external nonvolatile memory chip, the data needs to be decrypted and verified, so that the data cannot be lost or tampered.
In another example, the gas meter may further store data such as the gas record and the alarm signal in a security chip having functions of data encryption and decryption, signature verification, secure storage, and the like. The security level of the security chip is higher, and the relative cost is higher than that of a common memory chip.
The gas meter can ensure that gas records and alarm signals are not lost or tampered when the main battery of the gas meter is powered off by using the encryption algorithm and the electronic seal or using a hardware encryption chip, and a basis is provided for gas stealing behavior judgment and gas consumption condition tracing during power off of a gas company. Currently, regulations relating to legitimacy of metering data after electronic sealing of a gas meter for civil use are being formulated. The issuance of this procedure may improve the validity of the electronic-sealed metrology data as evidence in this application.
According to the gas detection method, the gas meter can measure the awakening flow of the gas meter at the awakening time period of each period. The gas meter can calculate the dormancy flow of the dormancy period of the period according to the awakening flow. The gas meter can determine the periodic flow of the period according to the awakening flow and the dormancy flow of the period. The gas meter can accumulate the periodic flow of each period when the main battery is powered off to obtain the total flow. When the total flow is greater than or equal to the flow threshold value, the gas meter can record and send an alarm signal. In this application, through the mode that sets up awakening time period and dormancy period in each cycle, realize the intermittent type of gas table and use to reduce the reserve battery's of gas table consumption, make this gas table need not increase the reserve battery of large capacity, can still guarantee after the outage of main battery in its 10 normal life cycles, keep the flow monitoring function, improve gas detection effect.
Fig. 3 shows a flowchart of a gas detection method according to an embodiment of the present application. On the basis of the embodiment shown in fig. 2, as shown in fig. 3, the gas meter may further determine whether to alarm according to the number of cycles used continuously, and the method of this embodiment may include the following steps:
s201, determining the periodic flow of each period according to the awakening flow of the gas meter measured in the awakening time period of each period.
Step S201 is similar to the step S101 in the embodiment of fig. 2, and this embodiment is not described herein again.
S202, when the periodic flow of a plurality of continuous periods is larger than 0, accumulating the periodic number of the plurality of continuous periods to obtain an accumulated value.
In this embodiment, the gas meter may determine whether the periodic flow of a period is greater than 0 after acquiring the periodic flow of the period. When the periodic flow of the period is larger than 0, the gas meter can start to accumulate the period number and obtain an accumulated value. The gas meter can continuously acquire the periodic flow of the next period, and continuously accumulate the period number when the periodic flow is greater than 0. The accumulation process may be ended when the gas meter obtains a periodic flow equal to 0 for one period. The multiple cycles of the accumulated value calculation period are continuous cycles, and the cycle flow of the accumulated value in the continuous cycles is all larger than 0.
And S203, recording and sending an alarm signal when the accumulated value is greater than or equal to the time threshold value.
In this embodiment, the gas meter may obtain a preset number threshold. When the accumulated value is larger than or equal to the frequency threshold value, the situation that the gas meter continuously uses gas is indicated. That is, the user may have a gas theft behavior. At this time, the gas meter can generate and send an alarm signal. Otherwise, when the accumulated value is smaller than the time threshold value, the situation that the continuous gas consumption of the gas meter does not reach the warning value is shown, and an alarm signal does not need to be sent.
According to the gas detection method, the gas meter can measure the awakening flow of the gas meter at the awakening time period of each period. The gas meter can calculate the dormancy flow of the dormancy period of the period according to the awakening flow. The gas meter can determine the periodic flow of the period according to the awakening flow and the dormancy flow of the period. When the periodic flow of a plurality of continuous periods is larger than 0, the gas meter can accumulate the periodic number of the plurality of continuous periods to obtain an accumulated value. When the accumulated value is larger than or equal to the time threshold value, the gas meter can record and send an alarm signal. In the application, the use early warning of the gas meter is realized by setting the frequency threshold value, and the detection effect is improved.
On the basis of the above embodiment, the gas meter may further obtain a number threshold and a flow threshold sent by the server. The number threshold and the flow threshold can be associated with user habits of the user, so that the using effect of the number threshold and the flow threshold is improved. The server can construct a user profile by obtaining historical gas usage, thereby generating more personalized time thresholds and flow thresholds. Taking the server as an execution subject, the specific calculation process of the number threshold and the flow threshold may include the following steps:
s301, the server can acquire the daily use record of the gas meter before the main battery is powered off from the gas meter. The usage record may be periodically uploaded to a server by the gas meter. E.g., daily uploads, weekly uploads, etc. Alternatively, the usage record may be uploaded to the server by the gas meter in real time. The server can determine the usage rule of the user corresponding to the gas meter according to the usage record of the gas meter before the main battery is powered off every day. The usage rules may be user portraits analyzed by the server in conjunction with a big data algorithm. The usage rules may include the number of times of use per day, and the duration and flow rate of use per time.
S302, the server can determine the frequency threshold value of the gas meter according to the use duration and the preset range of the period. The server can determine a flow threshold of the gas meter according to the usage flow. The user portrait is used, so that the server can generate different user portraits for different users, and the algorithm parameters are configured for each user independently, and different times threshold values and flow threshold values are calculated, so that the personalized setting of the parameters is realized. The method can improve the effectiveness of the frequency threshold and the flow threshold, thereby improving the accuracy of the gas theft detection and reducing the possibility of missing report and false report.
Fig. 4 shows a schematic structural diagram of a gas detection device provided in an embodiment of the present application, and as shown in fig. 4, the gas detection device 10 of this embodiment is used to implement an operation corresponding to a gas meter in any one of the method embodiments, where the gas detection device 10 of this embodiment includes:
and the metering module 11 is configured to determine the periodic flow rate of each period according to the wakeup flow rate of the gas meter measured in the wakeup time period of each period.
And the control module 12 is used for accumulating the periodic flow of each period to obtain the total flow. And when the total flow is greater than or equal to the flow threshold value, recording and sending an alarm signal.
In one example, the metering module 11 is specifically configured to:
and metering the awakening flow of the awakening period of each cycle.
And determining the average flow of each period according to the ratio of the time length of the awakening period of each period to the awakening flow.
And determining the dormant flow of each period according to the product of the average flow of each period and the duration of the dormant period of each period.
And determining the periodic flow of each period according to the sum of the awakening flow of each period and the sleeping flow of each period.
In one example, the metering module 11 is specifically configured to:
and in each cycle, accumulating the instantaneous flow which is greater than or equal to the disturbance threshold value in the cycle to obtain the awakening flow of the awakening period of the cycle.
In one example, the metering module 11 is further configured to:
before a period begins, a first random number and a second random number are randomly obtained within a preset range.
And determining the duration of the periodic wake-up period according to the first random number.
And determining the duration of the sleep period of the cycle according to the second random number.
In one example, the control module 12 is further configured to:
and when the periodic flow of a plurality of continuous periods is larger than 0, accumulating the periodic numbers of the plurality of continuous periods to obtain an accumulated value.
And when the accumulated value is greater than or equal to the time threshold value, recording and sending an alarm signal.
In one example, the control module 12 is further configured to:
and determining the use times of the gas meter, the use duration and the use flow of each time according to the use record of the gas meter every day before the main battery is powered off.
And determining the frequency threshold value of the gas meter according to the use duration and the preset range of the period. And determining the flow threshold value of the gas meter according to the using flow.
The gas detection device 10 provided in the embodiment of the present application may implement the above method embodiment, and for specific implementation principles and technical effects, reference may be made to the above method embodiment, which is not described herein again.
Fig. 5 shows a hardware structure schematic diagram of a gas meter provided in an embodiment of the present application. As shown in fig. 5, the gas meter 20 is configured to implement the operation corresponding to the gas meter in any one of the method embodiments, where the gas meter 20 of this embodiment may include: memory 21, processor 22 and communication interface 24.
A memory 21 for storing a computer program. The Memory 21 may include a Random Access Memory (RAM), a Non-Volatile Memory (NVM), at least one disk Memory, a usb flash drive, a removable hard drive, a read-only Memory, a magnetic disk or an optical disk.
And a processor 22 for executing the computer program stored in the memory to implement the gas detection method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above. The Processor 22 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. 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 connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When the memory 21 is a device separate from the processor 22, the gas meter 20 may further include a bus 23. The bus 23 is used to connect the memory 21 and the processor 22. The bus 23 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 communication interface 24 is used for realizing communication with the management background and sending alarm signals.
The gas meter provided by this embodiment can be used to execute the above gas detection method, and its implementation manner and technical effect are similar, and this embodiment is not described here again.
The present application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used for implementing the methods provided by the above-mentioned various embodiments when being executed by a processor.
The computer-readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer readable storage medium. Of course, the computer readable storage medium may also be integral to the processor. The processor and the computer-readable storage medium may reside in an Application Specific Integrated Circuit (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, 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 disk, or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The present application also provides a computer program product comprising a computer program stored in a computer readable storage medium. The computer program can be read by at least one processor of the device from a computer-readable storage medium, and execution of the computer program by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
Embodiments of the present application further provide a chip, where the chip includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules may be combined or may be 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 modules, and may be in an electrical, mechanical or other form.
Wherein the modules may be physically separated, e.g. mounted at different locations on one device, or on different devices, or distributed over multiple network elements, or distributed over multiple processors. The modules may also be integrated, for example, in the same device, or in a set of codes. The respective modules may exist in the form of hardware, or may also exist in the form of software, or may also be implemented in the form of software plus hardware. The method and the device can select part or all of the modules according to actual needs to achieve the purpose of the scheme of the embodiment.
When the respective modules are implemented as integrated modules in the form of software functional modules, they may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods according to the embodiments of the present application.
It should be understood that, although the respective steps in the flowcharts in the above-described embodiments are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit 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: it is also possible to modify the solutions described in the previous embodiments or to substitute some or all of them with equivalents. 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 (10)

1. A gas detection method is characterized by being applied to a main battery power-off gas meter, and comprises the following steps:
determining the periodic flow of each period according to the awakening flow of the gas meter measured in the awakening time period of each period;
accumulating the periodic flow of each period to obtain total flow;
and when the total flow is greater than or equal to the flow threshold value, recording and sending an alarm signal.
2. The method according to claim 1, wherein the determining the cycle flow of each cycle according to the wakeup flow of the gas meter measured in the wakeup period of each cycle specifically comprises:
measuring the awakening flow of the awakening period of each cycle;
determining the average flow of each cycle according to the ratio of the time length of the awakening period of each cycle to the awakening flow;
determining the dormancy flow of each period according to the product of the average flow of each period and the duration of the dormancy period of each period;
and determining the periodic flow of each period according to the sum of the awakening flow of each period and the dormant flow of each period.
3. The method according to claim 2, wherein the metering of the wake-up traffic for the wake-up period of each of the cycles comprises:
acquiring instantaneous flow in real time;
when the number of the continuous instantaneous flows which are larger than or equal to the disturbance threshold value is larger than or equal to the preset number, accumulating the continuous instantaneous flows which are larger than or equal to the disturbance threshold value into the wake-up flow;
otherwise, discarding successive instantaneous flows greater than or equal to a disturbance threshold when the number of successive instantaneous flows greater than or equal to the disturbance threshold is less than the preset number.
4. The method of claim 2, further comprising:
before the period starts, randomly obtaining a first random number and a second random number in a preset range;
determining the duration of the awakening period of the cycle according to the first random number;
and determining the duration of the sleep period of the cycle according to the second random number.
5. The method according to any one of claims 1-4, further comprising:
when the cycle flow of a plurality of continuous cycles is larger than 0, accumulating the cycle number of the plurality of continuous cycles to obtain an accumulated value;
and when the accumulated value is greater than or equal to the time threshold value, recording and sending an alarm signal.
6. The method according to any one of claims 1-4, further comprising:
determining the use times of the gas meter, the use duration and the use flow of the gas meter each time according to the daily use record of the gas meter before the main battery is powered off;
determining a frequency threshold value of the gas meter according to the use duration and the preset range of the period; and determining the flow threshold of the gas meter according to the using flow.
7. The utility model provides a gas detection device which characterized in that is applied to the gas table of main battery outage, the device includes:
the metering module is used for determining the periodic flow of each period according to the awakening flow of the gas meter obtained by metering the awakening time period of each period;
the control module is used for accumulating the periodic flow of each period to obtain total flow; and when the total flow is greater than or equal to the flow threshold value, recording and sending an alarm signal.
8. A gas meter, characterized in that, the gas meter includes: memory, a processor, wherein the memory is configured to store executable instructions of the processor, wherein the processor is configured to implement the gas detection method according to any one of claims 1 to 6 according to the executable instructions stored in the memory.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the gas detection method according to any one of claims 1 to 6.
10. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the gas detection method according to any one of claims 1 to 6.
CN202211148990.4A 2022-09-21 2022-09-21 Gas detection method and device Active CN115497263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211148990.4A CN115497263B (en) 2022-09-21 2022-09-21 Gas detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211148990.4A CN115497263B (en) 2022-09-21 2022-09-21 Gas detection method and device

Publications (2)

Publication Number Publication Date
CN115497263A true CN115497263A (en) 2022-12-20
CN115497263B CN115497263B (en) 2023-11-28

Family

ID=84469774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211148990.4A Active CN115497263B (en) 2022-09-21 2022-09-21 Gas detection method and device

Country Status (1)

Country Link
CN (1) CN115497263B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005137143A (en) * 2003-10-31 2005-05-26 Osaka Gas Co Ltd Energy supply evaluation system
CN102257323A (en) * 2008-12-19 2011-11-23 松下电器产业株式会社 Gas shut-off device
CN103988055A (en) * 2012-01-23 2014-08-13 松下电器产业株式会社 Flow measurement device
JP2017162278A (en) * 2016-03-10 2017-09-14 日本瓦斯株式会社 Estimation system and estimation method of gas consumption
CN113916468A (en) * 2021-09-29 2022-01-11 浙江威星智能仪表股份有限公司 Micro-flow gas leakage detection method based on ultrasonic gas meter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005137143A (en) * 2003-10-31 2005-05-26 Osaka Gas Co Ltd Energy supply evaluation system
CN102257323A (en) * 2008-12-19 2011-11-23 松下电器产业株式会社 Gas shut-off device
CN103988055A (en) * 2012-01-23 2014-08-13 松下电器产业株式会社 Flow measurement device
JP2017162278A (en) * 2016-03-10 2017-09-14 日本瓦斯株式会社 Estimation system and estimation method of gas consumption
CN113916468A (en) * 2021-09-29 2022-01-11 浙江威星智能仪表股份有限公司 Micro-flow gas leakage detection method based on ultrasonic gas meter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
许立伟;董秀娟;: "超声波流量计在湿气中的应用", 工业计量, no. 04, pages 36 - 37 *

Also Published As

Publication number Publication date
CN115497263B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US9886723B1 (en) Determining appliance insurance coverage/products using informatic sensor data
US8754634B2 (en) System and method for tamper detection in a utility meter
JP5130220B2 (en) Automatic detection system and device for abnormal consumption with a practical meter
US20100036625A1 (en) Temperature Profiling in an Electricity Meter
JP2013502181A5 (en)
EP3030863A1 (en) Method for measuring dynamics of a flow of energy and relevant device and system
Kate et al. ZIGBEE based monitoring theft detection and automatic electricity meter reading
WO2016201985A1 (en) Method of managing prepaid smart measurement and control terminal and prepaid smart measurement and control terminal utilizing same
CN109389697A (en) Recording method, equipment and the readable storage medium storing program for executing of underground inspection data inputting time
CN115497263B (en) Gas detection method and device
CN111323626A (en) Uncovering detection circuit integrated in MCU and uncovering detection method based on MCU
CN106443171B (en) The metering system and metering method of electrical bus data when a kind of electrical equipment power down
CN110988420A (en) Anti-electricity-theft system and anti-electricity-theft control method
CN212159910U (en) MCU integrated uncapping detection circuit and electric energy meter control chip
TWI656441B (en) Standby abnormal power consumption detecting system and method
CN205319800U (en) Power scheduling operation safety control system
CN111273181A (en) Battery backup unit monitoring method and device, server and readable storage medium
CN114488915B (en) Processing method for abnormal reset of MCU and electric energy meter for realizing method
JP6707646B2 (en) System and method for dealing with outages in utility systems
JP2000205923A (en) Gas meter mounted with plurality of electronic counter
JP6738896B2 (en) Detecting error conditions by monitoring resource flow within the facility
JP2017167618A (en) Battery type alarm
CN200947109Y (en) Electric controller for preventing illegal use of electricity
CN114037113B (en) Intelligent water meter control method, device and system, storage medium and cloud computing center
EP0981758A1 (en) Battery monitoring in metering systems

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