CN110954170A - Flow detection and alarm method and device - Google Patents

Flow detection and alarm method and device Download PDF

Info

Publication number
CN110954170A
CN110954170A CN201911061922.2A CN201911061922A CN110954170A CN 110954170 A CN110954170 A CN 110954170A CN 201911061922 A CN201911061922 A CN 201911061922A CN 110954170 A CN110954170 A CN 110954170A
Authority
CN
China
Prior art keywords
flow
preset
alarm
flows
grades
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.)
Pending
Application number
CN201911061922.2A
Other languages
Chinese (zh)
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 CN201911061922.2A priority Critical patent/CN110954170A/en
Publication of CN110954170A publication Critical patent/CN110954170A/en
Priority to CN202011195410.8A priority patent/CN112504356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • G01F15/06Indicating or recording devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • G01F15/07Integration to give total flow, e.g. using mechanically-operated integrating mechanism

Abstract

The invention relates to the field of flow detection, in particular to a flow detection and alarm method and a device, wherein the method comprises the following steps: acquiring single flow in a single acquisition period; comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade of the single flow; obtaining the total flow according to the obtained single flow measurement; and when the single flow and the total flow simultaneously accord with a preset rule, determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow metering period. The invention has the beneficial effects that: the multi-stage division of the flow grade is realized, the accuracy of flow detection is improved, and alarm information is distinguished through different alarm types.

Description

Flow detection and alarm method and device
Technical Field
The invention relates to the field of flow detection, in particular to a flow detection and alarm method and device.
Background
In the gas flow detection field, the flow of gas is monitored while the flow of gas is measured through the intelligent gas meter, when the gas flow is greater than a set flow threshold value or less than the set flow threshold value, an alarm is given, but only a single flow in a single acquisition period is compared with a flow threshold value, so that whether the flow is the flow or the flow is over-current or has a large error is judged.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for detecting and alarming traffic.
The invention provides a flow detection and alarm method, which comprises the following steps:
acquiring single flow in a single acquisition period;
comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade of the single flow;
obtaining the total flow according to the obtained single flow measurement;
and when the single flow and the total flow simultaneously accord with a preset rule, determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow metering period.
Preferably, before the comparing the acquired single flow rate with at least two preset flow rate thresholds, the method further comprises:
judging whether the single flow is less than or equal to a preset value;
if yes, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades;
and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, the method further comprises:
when the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value;
and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
Preferably, the method further comprises:
when the result that whether the proportion of the plurality of current flows which is in line with the preset value or less reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong is in line with the preset condition is judged to be negative, the step that the obtained single flow is in line with the preset value or less, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the times of returning execution are accumulated;
and when the times of the return execution reach a preset value, re-acquiring the single flow in the next acquisition period.
Preferably, each flow grade corresponds to a different alarm type; the determining, according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, corresponding alarm information specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, the method further comprises:
calculating the average value of at least two latest single flows;
comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information.
The invention provides a flow detection and alarm method, which comprises the following steps:
acquiring single flow in a single acquisition period;
comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grades to which the single flow belongs, wherein each flow grade corresponds to different alarm types;
and when the single flow accords with a preset rule, determining alarm information corresponding to the alarm type according to the flow grade distribution information to which the single flow belongs and sending the alarm information.
Preferably, the method further comprises:
obtaining the total flow according to the obtained single flow measurement;
and when the single flow and the total flow simultaneously accord with a preset rule, determining alarm information corresponding to the alarm type and sending the alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information.
Preferably, before the comparing the acquired single flow rate with at least two preset flow rate thresholds, the method further comprises:
judging whether the single flow is less than or equal to a preset value;
if yes, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades;
and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, the method further comprises:
when the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value;
and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
Preferably, the method further comprises:
when the result that whether the proportion of the plurality of current flows which is in line with the preset value or less reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong is in line with the preset condition is judged to be negative, the step that the obtained single flow is in line with the preset value or less, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the times of returning execution are accumulated;
and when the times of the return execution reach a preset value, re-acquiring the single flow in the next acquisition period.
Preferably, the determining and sending alarm information corresponding to the alarm type specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, the method further comprises:
calculating the average value of at least two latest single flows;
comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information.
The invention provides a flow detection and alarm device, which comprises:
the first flow acquisition module is used for acquiring single flow in a single acquisition period;
the first calculation module is used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade of the single flow and metering the acquired single flow to obtain the total flow;
and the first alarm module is used for determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information when the single flows and the total flows simultaneously accord with preset rules.
Preferably, the apparatus further comprises:
the first judgment module is used for judging whether the single flow is smaller than or equal to a preset value, and if so, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, when the acquired single flow is less than or equal to a preset value, the first flow acquisition module acquires the current flow at each moment respectively at different moments within a predetermined certain period, the first calculation module compares each current flow with the preset value and/or the flow threshold, the first judgment module is configured to judge whether a proportion, which is less than or equal to the preset value, in the multiple current flows reaches a predetermined proportion, and/or whether a distribution situation of flow classes to which the multiple current flows belong meets a predetermined situation, and if so, the first alarm module determines corresponding alarm information and sends the alarm information.
Preferably, when the result of determining whether the proportion of the plurality of current flows that is less than or equal to the preset value reaches the preset proportion and/or whether the distribution condition of the flow classes to which the plurality of current flows belong meets the preset condition is negative, the first flow acquisition module acquires the current flow at each moment respectively at different moments within a preset certain period when the acquired single flow is less than or equal to the preset value, the first calculation module is further configured to accumulate the acquired times, and when the acquired times reach the preset value, the first flow acquisition module acquires the single flow again within the next acquisition period.
Preferably, each flow grade corresponds to a different alarm type; the determining, according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, corresponding alarm information specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, the first calculating module is further configured to calculate an average value of at least two latest single flows;
the first judgment module is further used for comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and the first alarm module is also used for determining and sending corresponding alarm information when the number of times of meeting the preset rule is greater than a set threshold value.
The invention provides a flow detection and alarm device, which comprises:
the second flow acquisition module is used for acquiring single flow in a single acquisition period;
the second calculation module is used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grades to which the single flow belongs, and each flow grade corresponds to different alarm types;
and the second alarm module is used for determining alarm information corresponding to the alarm type and sending the alarm information according to the flow grade distribution information to which the single flow belongs when the single flow accords with the preset rule.
Preferably, the second calculation module is further configured to obtain a total flow amount according to the obtained single flow measurement, and when both the single flow amount and the total flow amount meet a preset rule, the second alarm module determines alarm information corresponding to an alarm type according to the flow value of the one or more single flow amounts and/or the flow level distribution information that the one or more single flow amounts have been obtained within the total flow amount measurement period, and sends the alarm information.
Preferably, the apparatus further comprises:
the second judgment module is used for judging whether the single flow is smaller than or equal to a preset value or not, and if so, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes: obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, when the acquired single flow is less than or equal to a preset value, the current flow at each moment is respectively acquired at different moments in a predetermined certain period, and each current flow is compared with the preset value and/or the flow threshold value, the second judgment module is further configured to judge whether a proportion, which is smaller than or equal to the preset value, in the multiple current flows reaches a predetermined proportion, and/or whether a distribution situation of flow classes to which the multiple current flows belong meets a predetermined situation, and if so, determine alarm information corresponding to the alarm type through the second alarm module and send the alarm information.
Preferably, when the result of determining whether the proportion of the plurality of current flows that is less than or equal to the preset value reaches the preset proportion and/or whether the distribution condition of the flow classes to which the plurality of current flows belong meets the preset condition is negative, when the obtained single flow is less than or equal to the preset value, the second flow collection module collects the current flow at each moment respectively at different moments within a preset certain period, the second calculation module is configured to accumulate the collection times, and when the collection times reach the preset value, the second flow collection module obtains the single flow again within the next collection period.
Preferably, the determining and sending alarm information corresponding to the alarm type specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, the second calculating module is further configured to calculate an average value of at least two latest single flows;
the second judgment module is further used for comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and the second alarm module is also used for determining and sending corresponding alarm information when the times of meeting the preset rule are greater than a set threshold value.
The invention has the beneficial effects that:
1. acquiring single flow in a single acquisition period, comparing the acquired single flow with at least two preset flow thresholds to obtain a flow grade to which the single flow belongs, thereby realizing multi-stage division of the flow grade and improving the accuracy of flow detection;
2. obtaining the total flow according to the obtained single flow measurement; when the single flow and the total flow simultaneously accord with a preset rule, determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information, and increasing the judgment of the total flow on the basis of the single flow judgment to further improve the accuracy of flow detection;
3. judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion, judging the stability of the divided flow grades, and further improving the accuracy of flow detection;
4. each flow grade corresponds to different alarm types, and alarm information is distinguished through different alarm types according to the acquired flow values of the one or more single flows and/or the flow grade distribution information of the one or more single flows in the flow total amount metering period so as to adopt different corresponding schemes aiming at different alarm types;
5. calculating the average value of at least two latest single flows, comparing the obtained flow average value with at least two preset flow threshold values to obtain the flow grade of the flow average value, and further improving the accuracy of flow grade judgment.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a schematic flow chart diagram of a traffic detection and alarm method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of obtaining a single flow rate in a flow rate detection and alarm method according to an embodiment of the present invention;
FIG. 3 is a general schematic flow chart diagram of a traffic detection and alarm method according to an embodiment of the present invention;
FIG. 4 is a general schematic flow chart diagram of a traffic detection and alarm method according to another embodiment of the present invention;
FIG. 5 is a general schematic flow chart diagram of a traffic detection and alarm method according to another embodiment of the present invention;
FIG. 6 is a general schematic flow chart diagram of a method for flow detection and alarm in accordance with another embodiment of the present invention;
FIG. 7 is a general schematic flow chart diagram of a method of flow detection and alarm in accordance with another embodiment of the present invention;
FIG. 8 is a schematic flow chart diagram of a method of flow detection and alarm in accordance with another embodiment of the present invention;
FIG. 9 is a schematic flow chart diagram of a method of flow detection and alarm in accordance with another embodiment of the present invention;
FIG. 10 is a schematic flow chart diagram of a method of flow detection and alarm in accordance with another embodiment of the present invention;
FIG. 11 is a schematic block diagram of a flow detection and alarm apparatus according to an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a first determining module in a flow detecting and alarming device according to another embodiment of the present invention;
FIG. 13 is a schematic block diagram of a flow detection and alarm apparatus according to another embodiment of the present invention;
fig. 14 is a schematic block diagram of a first determining module in a flow detecting and alarming device according to another embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
It can be understood that the technical solution of the embodiment of the present invention can be applied to various flow detection and alarm, for example: water, gas, natural gas, petroleum and the like.
The flow detection and alarm method provided by the invention is mainly applied to the scenes of gas flow, over-current detection and alarm, but can also be applied to other scenes, and the embodiment of the invention does not limit the scenes.
Fig. 1 shows a schematic flow chart of a flow detection and alarm method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
s1: a single flow rate is acquired within a single acquisition period.
In one embodiment, acquiring a single flow rate in a single acquisition cycle, as shown in fig. 2, comprises the following steps:
s11: collecting the accumulated amount of fuel gas;
s12, when the accumulated quantity difference of the collected fuel gas reaches a set threshold value △ V, calculating a collected time difference △ t;
and S13, calculating the flow Q of the fuel gas to be △ V/△ t.
The method comprises the steps of collecting gas metering through a gas meter, collecting single pulse single flow corresponding to a mechanical gas meter, and collecting single flow corresponding to an electronic gas meter in a set time period, accumulating and calculating accumulated gas, judging whether an accumulated difference value reaches a set threshold value △ V, continuing collecting gas metering when the accumulated difference value does not reach the set threshold value △ V, calculating a time difference value △ t when the accumulated difference value does not reach the set threshold value △ V, and finally calculating the gas flow Q to be △ V/△ t.
S2: and comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade to which the single flow belongs.
Wherein the obtained flow grade of each single flow specifically comprises: obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
And the flow grades are divided according to actual needs so as to realize grade division of micro flow and overcurrent conditions. When the flow grade needs to be finely divided, relatively more gas threshold values can be set; when only a rough division of the flow rate level is required, relatively few gas thresholds can be set.
Different threshold values Q of gas flow are set from small to large in sequencef1、……、QfNObtaining a plurality of continuous threshold intervals of [ Qf1,Qf2)、……、[QfN-1,QfN]The threshold value section to which the gas flow rate Q belongs is judged according to the magnitude of the gas flow rate Q, and different threshold value sections correspond to different flow rate levels, so that the flow rate level to which the gas flow rate Q belongs can be judged according to the threshold value section to which the gas flow rate Q belongs.
In a typical case, the flow rate level is divided into three levels. Setting a first threshold Q of gas flow from small to largef0A second threshold value Qf1A third threshold value Qf2And a fourth threshold value Qf3Therefore, the first-order flow interval is [ Q ]f0,Qf1) The second-stage flow interval is [ Q ]f1,Qf2) The three-level flow interval is [ Q ]f2,Qf3]。
And judging the flow grade: when the flow rate Q is in the interval [ Q ]f0,Qf1) If so, judging the flow as primary flow; when the flow rate Q is in the interval [ Q ]f1,Qf2) If so, judging the flow as secondary flow; when the flow rate Q is in the interval [ Q ]f2,Qf3]And if so, judging the flow rate to be the third-level flow rate.
S3: and measuring the flow total according to the acquired single flow.
In consideration of instability of the gas flow, there is an error in judging the level of the gas flow through the single flow in the single collection period, so the embodiment is further based on the above method of acquiring the flow in the single collection period, and the total flow is obtained by metering according to the acquired single flow. For the calculation of the total flow, in an embodiment, the total flow is obtained by performing cumulative summation on the single flows in each acquisition period, in another embodiment, the total flow is obtained by performing cumulative summation on the flows in which the single flows in each acquisition period meet a set flow grade, and in another embodiment, the total flow can be obtained by performing cumulative summation on the parts exceeding a set flow threshold compared with the single flows in each acquisition period.
S4: and when the single flow and the total flow simultaneously accord with a preset rule, determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow metering period.
When the single flow is greater than the set flow threshold and the total flow is greater than the set flow total threshold, alarm information needs to be sent, and each flow grade corresponds to different alarm types. The invention combines the judgment of the total flow on the basis of single flow judgment, so that the division of the flow grade is more accurate, and the sent alarm information is more in line with the actual flow condition.
In an embodiment, the alarm information can be sent according to the flow grade to which the single flow belongs in a single acquisition period, and the higher the flow grade is, the more serious the alarm type corresponding to the sent alarm information is. In another embodiment, the alarm information can also be sent according to the flow values of a plurality of single flows and/or the flow grade distribution information.
In one embodiment, a rule of flow rate grade distribution is set according to actual needs, and alarm information is sent according to flow rate grade distribution information. For example: in order to improve the sensitivity of the alarm, sending the alarm type corresponding to the highest traffic grade in the plurality of traffic grades; in order to improve the accuracy of the alarm, the alarm type corresponding to the traffic class with the largest quantity in the multiple traffic classes is sent.
Different alarm types correspond to different alarm codes. After the server end receives the alarm information, the alarm codes in the alarm information are identified, and different coping schemes are formulated according to the alarm codes, so that the potential safety hazard caused by the phenomenon of micro flow or overcurrent is reduced.
In one embodiment, different alarm types correspond to different times for sending alarm information. For example: the sending time corresponding to the primary flow is T1(ii) a The sending time corresponding to the secondary flow is T2(ii) a The sending time corresponding to the three-level flow is T3(ii) a Wherein the transmission time T1> Transmission time T2> transmission timeT3
Normally, the transmission time T1Set to 24 hours, transmission time T2Set as the working time of the next day, the transmission time T3It is set to transmit immediately. In contrast, the severity of the tertiary flow is greater than that of the secondary flow, so that the warning message and the valve closing instruction need to be sent immediately for the tertiary flow, while the severity of the secondary flow is relatively medium, so that the warning message and the valve closing instruction can be sent in the next day of work, and the severity of the primary flow is lowest, so that the warning message and the valve closing instruction can be sent after 24 hours.
Preferably, in an embodiment, before comparing the acquired single flow with at least two preset flow thresholds, it is further required to compare the acquired single flow with a preset value, and determine whether the single flow is less than or equal to the preset value. The preset value is used for judging whether the flow belongs to micro flow.
It can be understood that, since the change of the flow rate may cause deviation in the judgment of the flow rate level, in the embodiment, it is added that whether the proportion that meets the preset value or less in the plurality of current flow rates reaches the predetermined proportion and whether the distribution condition of the flow rate level to which the plurality of current flow rates belong meets the predetermined condition is calculated to judge the stability of the flow rate level, so as to improve the accuracy of the flow rate detection.
When the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value; and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
When the result that whether the proportion of the plurality of current flows which is less than or equal to the preset value reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets the preset condition is judged to be negative, the step that the obtained single flow is less than or equal to the preset value, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the number M of times of returning execution is accumulated; and when the number of times of the return execution reaches a preset value Mmax, re-acquiring the single flow in the next acquisition period.
Specifically, calculating whether the proportion meeting the preset value or less in the plurality of current flows reaches a preset proportion is the meeting rate F: collecting N flow samples; calculating the number K of samples which are less than or equal to a preset value; and calculating the coincidence rate F as the coincidence sample number K/the flow sample number N.
In one embodiment, the method further comprises: calculating the average value of at least two latest single flows; comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule; and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information. Because the fluctuation of the over-flow is larger relative to the fluctuation of the micro-flow, the flow grade judgment is carried out on the basis of calculating the average value of at least two single flows in the embodiment, and the accuracy of the flow grade judgment is improved.
Calculating the average value of at least two latest single flows is specifically as follows: suppose 5 single flows Q are collected in sequence1、Q2、Q3、Q4、Q5When the flow Q is collected3While, calculating the flow rate Q1、Q2、Q3When the flow rate Q is collected4While, calculating the flow rate Q2、Q3、Q4When the flow rate Q is collected5While, calculating the flow rate Q3、Q4、Q5Average value of (a). The method can calculate the average value for many times and improve the accuracy of flow grade judgment.
In an embodiment, as shown in fig. 3, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], preferably 0.06, when the single flow Qt is less than or equal to a, performing a micro-flow level judgment, calculating a flow rate compliance rate F, calculating a total flow amount, judging whether the total flow amount is greater than a threshold, and when both the flow rate compliance rate and the total flow amount comply with a preset rule, determining an alarm type and sending the alarm type. In addition, the average value of the latest S single flows Qt, in this embodiment, the average value of 3 single flows Qt, is calculated, and the average value is compared with a preset value B, C, where the preset value B is in the range of [3.8, 5], preferably 4, and the preset value C is in the range of [3, 3.5], preferably 3.2, when the average value is greater than or equal to B, it is determined as an over-flow, and an alarm type is determined and transmitted, and when the average value is less than B and greater than or equal to C, it is determined as an over-flow, and an alarm type is determined and transmitted.
In another embodiment, as shown in fig. 4, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], preferably 0.06, when the single flow Qt is less than or equal to a, performing a micro-flow level judgment, and when a flow compliance rate meets a preset rule, determining an alarm type and sending the alarm type. In addition, the average value of the latest S single flows Qt, in this embodiment, the average value of 3 single flows Qt, is calculated, and the average value is compared with a preset value B, C, where the preset value B is in the range of [3.8, 5], preferably 4, and the preset value C is in the range of [3, 3.5], preferably 3.2, when the average value is greater than or equal to B, it is determined as an over-flow, and an alarm type is determined and transmitted, and when the average value is less than B and greater than or equal to C, it is determined as an over-flow, and an alarm type is determined and transmitted.
In another embodiment, as shown in fig. 5, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], preferably 0.06, when the single flow Qt is less than or equal to a, performing a micro-flow level judgment, and when a flow compliance rate meets a preset rule, determining an alarm type and sending the alarm type. In addition, an average value of the latest S single flows Qt, in this embodiment, an average value of 3 single flows Qt, is calculated, and the average value is compared with a preset value B, C, where a range of the preset value B is [3.8, 5], preferably 4, a range of the preset value C is [3, 3.5], preferably 3.2, when the average value is greater than or equal to B, it is determined as an over flow, the sub flow is buffered, and the number of times N that meets the condition is calculated, when N is greater than or equal to D, an alarm type is determined and transmitted, when the average value is less than B and greater than or equal to C, it is determined as an over flow, the sub flow is buffered, and the number of times M that meets the condition is calculated, and when M is greater than or equal to E, the alarm.
In another embodiment, as shown in fig. 6, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], and preferably 0.06, when the single flow Qt is less than or equal to a, performing a micro-flow level judgment, calculating a flow rate compliance rate, and simultaneously calculating a flow total amount, judging whether the flow total amount is greater than a threshold, and when both the flow rate compliance rate and the flow total amount comply with a preset rule, determining an alarm type and sending the alarm type. In addition, the single-time flow rate Qt is compared with a preset value B, C, where the preset value B is [3.8, 5], preferably 4, the preset value C is [3, 3.5], preferably 3.2, when the single-time flow rate Qt is greater than or equal to B, it is determined as an overflow, the sub-flow rate is buffered, and the number of times N that meets the condition is calculated, when N is greater than or equal to D, the alarm type is determined and transmitted, when the average value is less than B and greater than or equal to C, it is determined as an overflow, the sub-flow rate is buffered, and the number of times M that meets the condition is calculated, and when M is greater than or equal to D, the alarm type is determined and transmitted.
In another embodiment, as shown in fig. 7, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], and preferably 0.06, when the single flow Qt is less than or equal to the preset value a, performing a micro-flow level judgment, and simultaneously calculating a total flow amount, judging whether the total flow amount is greater than a threshold, and when the micro-flow level and the total flow amount both meet a preset rule, determining an alarm type and sending the alarm type. In addition, an average value of the latest S single flows Qt, in this embodiment, an average value of 3 single flows Qt, is calculated, the average value is compared with a preset value B, C, where a range of the preset value B is [3.8, 5], preferably 4, a range of the preset value C is [3, 3.5], preferably 3.2, when the single flow Qt is greater than or equal to B, it is determined as an over-flow, the sub-flow is buffered, and the number of times N that meets the condition is calculated, when N is greater than or equal to D, the alarm type is determined and transmitted, when the average value is less than B and greater than or equal to C, it is determined as an over-flow, the sub-flow is buffered, and the number of times M that meets the condition is calculated, and when M is greater than or equal to E.
In another embodiment, as shown in fig. 8, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], preferably 0.06, when the single flow Qt is less than or equal to a, performing a micro-flow level judgment, and when a flow compliance rate meets a preset rule, determining an alarm type and sending the alarm type. In addition, the single-time flow rate Qt is compared with a preset value B, C, where the preset value B is [3.8, 5], preferably 4, the preset value C is [3, 3.5], preferably 3.2, when the single-time flow rate Qt is greater than or equal to B, the single-time flow rate Qt is determined to be an over-flow, the single-time flow rate Qt is buffered, the number of times N that the single-time flow rate Qt meets the condition is calculated, when N is greater than or equal to D, the alarm type Qt is determined and transmitted, when the average value is less than B and greater than or equal to C, the single-time flow rate Qt is buffered, the number of times M that the single-time flow rate Qt.
In another embodiment, as shown in fig. 9, an overall schematic flowchart of the method includes first obtaining a single flow Qt in a single acquisition period, comparing the single flow Qt with a preset value a, where the range of the preset value a is [0.02, 0.1], preferably 0.06, when the single flow Qt is less than or equal to the preset value a, performing a micro-flow level judgment, simultaneously calculating a total flow amount, judging whether the total flow amount is greater than a threshold, and when both the flow compliance rate and the total flow amount meet a preset rule, determining an alarm type and sending the alarm type. In addition, an average value of the latest S single flows Qt, in this embodiment, an average value of 3 single flows Qt, is calculated, the average value is compared with a preset value B, C, where a range of the preset value B is [3.8, 5], preferably 4, a range of the preset value C is [3, 3.5], preferably 3.2, when the single flow Qt is greater than or equal to B, it is determined as an over-flow, the sub-flow is buffered, and the number of times N that meets the condition is calculated, when N is greater than or equal to D, the alarm type is determined and transmitted, when the average value is less than B and greater than or equal to C, it is determined as an over-flow, the sub-flow is buffered, and the number of times M that meets the condition is calculated, and when M is greater than or equal to E.
Fig. 10 is a schematic flow chart of a flow detection and alarm method according to another embodiment of the present invention, as shown in fig. 10, the method includes the following steps:
s1: acquiring single flow in a single acquisition period;
the method comprises the steps of collecting the metering of the gas through a gas meter, carrying out accumulation calculation on the accumulated amount of the gas, judging whether an accumulated amount difference value reaches a set threshold value △ V, continuing to collect the metering of the gas when the accumulated amount difference value does not reach a set threshold value △ V, calculating a time difference value △ t when the accumulated amount difference value does not reach a set threshold value △ V, and finally calculating the flow Q of the gas to be △ V/△ t.
S2: comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grades to which the single flow belongs, wherein each flow grade corresponds to different alarm types;
wherein the obtained flow grade of each single flow specifically comprises: obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
And the flow grades are divided according to actual needs so as to realize grade division of micro flow and overcurrent conditions. When the flow grade needs to be finely divided, relatively more gas threshold values can be set; when only a rough division of the flow rate level is required, relatively few gas thresholds can be set.
Different from the prior art, the invention distinguishes different flow grades through different alarm types, and each flow grade corresponds to different alarm types. Different alarm types correspond to different alarm codes. After the server end receives the alarm information, the alarm codes in the alarm information are identified, and different coping schemes are formulated according to the alarm codes, so that the potential safety hazard caused by the phenomenon of micro flow or overcurrent is reduced.
In one embodiment, the types of alarms are: primary alarm, secondary alarm and tertiary alarm. The first-level alarm corresponds to an alarm warning, an alarm is sent to a user at the server end, and the valve is not closed; the secondary alarm corresponds to a common closed valve, and a user at the server end can perform valve opening operation; the three-level alarm corresponds to the common valve closing and locking, and the valve opening operation can be realized only by releasing the authority.
S3: and when the single flow accords with a preset rule, determining alarm information corresponding to the alarm type according to the flow grade distribution information to which the single flow belongs and sending the alarm information.
When the single flow is greater than the set flow threshold and the total flow is greater than the set flow total threshold, alarm information needs to be sent, each flow grade corresponds to different alarm types, and the higher the flow grade is, the more serious the alarm type corresponding to the sent alarm information is.
Preferably, in an embodiment, before comparing the acquired single flow with at least two preset flow thresholds, it is further required to compare the acquired single flow with a preset value, and determine whether the single flow is less than or equal to the preset value.
Preferably, in an embodiment, the method further includes: obtaining the total flow according to the obtained single flow measurement; and when the total flow quantity simultaneously accords with a preset rule, determining alarm information corresponding to the alarm type according to the acquired flow values of a plurality of single flows and/or the flow grade distribution information of the single flows in the total flow quantity metering period, and sending the alarm information.
And setting a rule of flow grade distribution according to actual needs, and sending alarm information according to the flow grade distribution information. For example: in order to improve the sensitivity of the alarm, sending the alarm type corresponding to the highest traffic grade in the plurality of traffic grades; in order to improve the accuracy of the alarm, the alarm type corresponding to the traffic class with the largest quantity in the multiple traffic classes is sent.
The invention combines the judgment of the total flow on the basis of single flow judgment, so that the division of the flow grade is more accurate, and the sent alarm information is more in line with the actual flow condition.
Preferably, in an embodiment, the stability of the flow rate level needs to be judged in consideration of the instability of the flow rate. When the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value; and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
When the result that whether the proportion of the plurality of current flows which is in line with the preset value or less reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong is in line with the preset condition is judged to be negative, the step that the obtained single flow is in line with the preset value or less, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the times of returning execution are accumulated; and when the times of the return execution reach a preset value, re-acquiring the single flow in the next acquisition period.
In one embodiment, the method further comprises: calculating the average value of at least two latest single flows; comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule; and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information. Because the fluctuation of the over-flow is larger relative to the fluctuation of the micro-flow, the flow grade judgment is carried out on the basis of calculating the average value of at least two single flows in the embodiment, and the accuracy of the flow grade judgment is improved.
The foregoing embodiment provides a method for detecting and alarming traffic, and correspondingly, in terms of hardware, another embodiment of the present invention provides a device for detecting and alarming traffic, as shown in fig. 11, including: a first flow rate acquisition module 110, configured to acquire a single flow rate in a single acquisition period; the first calculation module 120 is configured to compare the acquired single flow with at least two preset flow thresholds to obtain a flow grade to which the single flow belongs, and further configured to measure and obtain a total flow according to the acquired single flow; and the first alarm module 130 is configured to, when the single flows and the total flows both conform to a preset rule, determine corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, and send the corresponding alarm information.
Preferably, as shown in fig. 12, in the above embodiment, the apparatus further includes: the first determining module 140 is configured to determine whether the single flow is smaller than or equal to a preset value, and if so, further compare the acquired single flow with at least two preset flow thresholds.
The total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, in the above embodiment, when the obtained single flow rate is less than or equal to a preset value, the flow rate collection module respectively collects the current flow rate at each time at different times within a predetermined certain period, the calculation module compares each current flow rate with the preset value and/or the flow rate threshold, the first judgment module 140 is configured to judge whether a proportion, which is smaller than or equal to the preset value, in the plurality of current flow rates reaches a predetermined proportion, and/or whether a distribution situation of flow rate classes to which the plurality of current flow rates belong meets a predetermined situation, and if so, the first alarm module 130 determines and sends corresponding alarm information.
Preferably, in the above embodiment, when the result that whether the ratio that is less than or equal to the preset value in the multiple current flows reaches the preset ratio and/or whether the distribution condition of the flow classes to which the multiple current flows belong meets the preset condition is judged to be negative, if the obtained single flow is less than or equal to the preset value, the first flow collecting module 110 respectively collects the current flow at each time at different times within a predetermined certain period, the first calculating module 120 is further configured to accumulate the collected times, and if the collected times reach the preset value, the single flow in the next collection period is obtained again through the first flow collecting module 110.
Preferably, in the above embodiment, each traffic class corresponds to a different alarm type; the determining, according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, corresponding alarm information specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, in the above embodiment, the first calculating module 120 is further configured to calculate an average value of at least two latest single flows; the first determining module 140 is further configured to compare the obtained flow average value with at least two preset flow thresholds to obtain a flow class to which the flow average value belongs, and calculate the number of times that the flow class meets a preset rule; the first alarm module 130 is further configured to determine and send corresponding alarm information when the number of times that the preset rule is met is greater than a set threshold.
It should be noted that, in the present apparatus, descriptions of methods and beneficial effects of the first flow rate collecting module 110, the first calculating module 120, the first alarming module 130, and the first determining module 140 are disclosed in the above embodiments, and therefore, no further description is given.
The above embodiment provides a flow detection and alarm method, and correspondingly, in terms of hardware, another embodiment of the present invention provides a flow detection and alarm device, as shown in fig. 14, including: a second flow rate acquisition module 210, configured to acquire a single flow rate in a single acquisition period; the second calculating module 220 is configured to compare the acquired single traffic with at least two preset traffic thresholds to obtain traffic classes to which the single traffic belongs, where each traffic class corresponds to a different alarm type; and the second alarm module 230 is configured to, when the single traffic conforms to a preset rule, determine alarm information corresponding to an alarm type according to traffic level distribution information to which the single traffic belongs, and send the alarm information.
Preferably, in the above embodiment, the second calculating module 220 is further configured to obtain a total flow amount according to the obtained single flow measurement, and when both the single flow amount and the total flow amount meet a preset rule, the second alarm module 230 determines and sends alarm information corresponding to an alarm type according to the flow value of the one or more single flow amounts obtained in the total flow amount measurement period and/or the flow level distribution information that the second alarm module belongs to.
Preferably, in the above embodiment, the apparatus further comprises: a second determining module 240, configured to determine whether the single flow is smaller than or equal to a preset value, and if so, further compare the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes: obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
Preferably, in the above embodiment, when the obtained single flow rate is less than or equal to the preset value, the current flow rate at each time is respectively collected at different times within a predetermined certain period, and each current flow rate is compared with the preset value and/or the flow rate threshold, the second determining module 240 is further configured to determine whether a proportion, which is smaller than or equal to the preset value, in the multiple current flow rates reaches a predetermined proportion, and/or whether a distribution condition of the flow rate classes to which the multiple current flow rates belong meets a predetermined condition, and if so, determine alarm information corresponding to the alarm type through the second alarm module 230 and send the alarm information.
Preferably, in the above embodiment, when the result of determining whether the proportion, which is smaller than or equal to the preset value, in the multiple current flows reaches the preset proportion and/or whether the distribution condition of the flow classes to which the multiple current flows belong meets the preset condition is negative, if the obtained single flow is smaller than or equal to the preset value, the second flow collecting module 210 collects the current flow at each time at different times within a predetermined certain period, the second calculating module 220 is configured to accumulate the collected times, and if the collected times reach the preset value, the second flow collecting module 210 obtains the single flow in the next collecting period again.
Preferably, in the above embodiment, the determining and sending alarm information corresponding to the alarm type specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
Preferably, in the above embodiment, the second calculating module 220 is further configured to calculate an average value of at least two latest single flows; the second determining module 240 is further configured to compare the obtained flow average value with at least two preset flow thresholds, obtain a flow class to which the flow average value belongs, and calculate the number of times that the flow class meets a preset rule; the second alarm module 230 is further configured to determine and send corresponding alarm information when the number of times that the preset rule is met is greater than a set threshold.
It should be noted that, in the present apparatus, descriptions of methods and beneficial effects of the second flow rate collecting module 210, the second calculating module 220, the second alarming module 230, and the second determining module 240 are disclosed in the above embodiments, and therefore are not described again.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (26)

1. A flow detection and alarm method is characterized by comprising the following steps:
acquiring single flow in a single acquisition period;
comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade of the single flow;
obtaining the total flow according to the obtained single flow measurement;
and when the single flow and the total flow simultaneously accord with a preset rule, determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow metering period.
2. The flow detection and alarm method according to claim 1, wherein before said comparing said acquired single flow with at least two preset flow thresholds, said method further comprises:
judging whether the single flow is less than or equal to a preset value;
if yes, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades;
and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
3. The method of claim 2, further comprising:
when the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value;
and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
4. The method of claim 3, further comprising:
when the result that whether the proportion of the plurality of current flows which is in line with the preset value or less reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong is in line with the preset condition is judged to be negative, the step that the obtained single flow is in line with the preset value or less, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the times of returning execution are accumulated;
and when the times of the return execution reach a preset value, re-acquiring the single flow in the next acquisition period.
5. The flow detection and alarm method according to claim 1, wherein each flow class corresponds to a different alarm type; the determining, according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, corresponding alarm information specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
6. The flow detection and alarm method according to any one of claims 1 to 5, wherein the method further comprises:
calculating the average value of at least two latest single flows;
comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information.
7. A flow detection and alarm method is characterized by comprising the following steps:
acquiring single flow in a single acquisition period;
comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grades to which the single flow belongs, wherein each flow grade corresponds to different alarm types;
and when the single flow accords with a preset rule, determining alarm information corresponding to the alarm type according to the flow grade distribution information to which the single flow belongs and sending the alarm information.
8. The method of claim 7, further comprising:
obtaining the total flow according to the obtained single flow measurement;
and when the single flow and the total flow simultaneously accord with a preset rule, determining alarm information corresponding to the alarm type and sending the alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information.
9. The flow detection and alarm method according to claim 8, wherein before said comparing said acquired single flow with at least two preset flow thresholds, said method further comprises:
judging whether the single flow is less than or equal to a preset value;
if yes, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades;
and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
10. The method of claim 8, further comprising:
when the acquired single flow is smaller than or equal to a preset value, respectively acquiring the current flow at each moment in a preset certain period at different moments, and comparing each current flow with the preset value and/or the flow threshold value;
and judging whether the proportion which is less than or equal to a preset value in the plurality of current flows reaches a preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong meets a preset condition, and if so, determining corresponding alarm information and sending the alarm information.
11. The method of claim 10, further comprising:
when the result that whether the proportion of the plurality of current flows which is in line with the preset value or less reaches the preset proportion and/or whether the distribution condition of the flow grades to which the plurality of current flows belong is in line with the preset condition is judged to be negative, the step that the obtained single flow is in line with the preset value or less, the current flow at each moment is respectively collected at different moments in a preset certain period is returned to be executed, and the times of returning execution are accumulated;
and when the times of the return execution reach a preset value, re-acquiring the single flow in the next acquisition period.
12. The flow rate detecting and alarming method according to claim 7, wherein the determining and sending alarm information corresponding to the alarm type specifically comprises: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
13. The flow detection and alarm method according to any one of claims 7 to 12, further comprising:
calculating the average value of at least two latest single flows;
comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and when the times of meeting the preset rules are larger than a set threshold value, determining and sending corresponding alarm information.
14. A flow detection and alarm device, comprising:
the first flow acquisition module is used for acquiring single flow in a single acquisition period;
the first calculation module is used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grade of the single flow and metering the acquired single flow to obtain the total flow;
and the first alarm module is used for determining and sending corresponding alarm information according to the acquired flow values of the one or more single flows and/or the flow grade distribution information when the single flows and the total flows simultaneously accord with preset rules.
15. The flow sensing and alarm device of claim 14, further comprising:
the first judgment module is used for judging whether the single flow is smaller than or equal to a preset value, and if so, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes:
obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
16. The flow detecting and alarming device of claim 15, wherein when the obtained single flow is less than or equal to a preset value, the first flow collecting module collects the current flow at each moment respectively at different moments within a predetermined certain period, the first calculating module compares each current flow with the preset value and/or the flow threshold, the first judging module is configured to judge whether a proportion, which is less than or equal to the preset value, in the plurality of current flows reaches a predetermined proportion, and/or whether a distribution situation of flow classes to which the plurality of current flows belong meets a predetermined situation, and if so, the first alarming module determines and transmits corresponding alarming information.
17. The flow detecting and alarming device of claim 16, wherein when it is determined whether a ratio of the plurality of current flows that is less than or equal to a preset value reaches a predetermined ratio and/or whether a distribution of flow classes to which the plurality of current flows belong meets a predetermined condition is negative, the first flow acquiring module respectively acquires the current flow at each time at different times within a predetermined certain period when the acquired single flow is less than or equal to the preset value, the first calculating module is further configured to accumulate the acquired times, and when the acquired times reach the preset value, the first flow acquiring module reacquires the single flow within a next acquisition period.
18. A flow sensing and alarm device according to claim 14, wherein each flow class corresponds to a different alarm type; the determining, according to the acquired flow values of the one or more single flows and/or the flow grade distribution information thereof in the total flow measurement period, corresponding alarm information specifically includes: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
19. A flow sensing and alarm device according to any one of claims 14 to 18,
the first calculation module is further used for calculating the average value of at least two latest single flows;
the first judgment module is further used for comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and the first alarm module is also used for determining and sending corresponding alarm information when the number of times of meeting the preset rule is greater than a set threshold value.
20. A flow detection and alarm device, comprising:
the second flow acquisition module is used for acquiring single flow in a single acquisition period;
the second calculation module is used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow grades to which the single flow belongs, and each flow grade corresponds to different alarm types;
and the second alarm module is used for determining alarm information corresponding to the alarm type and sending the alarm information according to the flow grade distribution information to which the single flow belongs when the single flow accords with the preset rule.
21. The flow rate detecting and alarming device according to claim 20, wherein the second calculating module is further configured to obtain a total flow rate according to the obtained single flow rate measurement, and when both the single flow rate and the total flow rate meet a preset rule, the second alarming module determines and sends alarm information corresponding to an alarm type according to the flow rate value of the one or more single flow rates obtained in the total flow rate measurement period and/or flow rate class distribution information to which the flow rate class belongs.
22. The flow sensing and alarm device of claim 20, further comprising:
the second judgment module is used for judging whether the single flow is smaller than or equal to a preset value or not, and if so, further comparing the acquired single flow with at least two preset flow thresholds;
the total flow obtained according to the obtained single flow measurement is specifically as follows: when the acquired single flow is smaller than or equal to a preset value, accumulating the single flow to obtain the total flow;
the obtaining of the traffic class to which each single traffic belongs includes: obtaining at least two corresponding threshold intervals according to at least two set flow thresholds, wherein different threshold intervals correspond to different flow grades; and obtaining the flow grades to which the flows respectively belong according to the threshold value interval to which the obtained flows belong.
23. The flow detecting and alarming device of claim 22, wherein when the obtained single flow is less than or equal to a preset value, the current flow at each time is respectively collected at different times within a predetermined certain period, each current flow is compared with the preset value and/or the flow threshold value, the second determining module is further configured to determine whether a proportion that is less than or equal to the preset value among the multiple current flows reaches a predetermined proportion, and/or whether a distribution situation of flow classes to which the multiple current flows belong meets a predetermined situation, and if so, an alarm message corresponding to an alarm type is determined by the second alarming module and sent.
24. The flow detecting and alarming device of claim 23, wherein when it is determined whether a ratio of the plurality of current flows that is less than or equal to a preset value reaches a predetermined ratio and/or whether a distribution of flow classes to which the plurality of current flows belong meets a predetermined condition is negative, the second flow collecting module collects the current flow at each time at different times within a predetermined certain period when the obtained single flow is less than or equal to the preset value, the second calculating module is configured to accumulate the collected times, and when the collected times reach the preset value, the second flow collecting module obtains the single flow in a next collection period again.
25. The flow detecting and alarming device of claim 20, wherein said determining and sending alarm information corresponding to an alarm type specifically comprises: and when the flow values of the single flows and/or the flow grades are distributed in a plurality of flow grades, determining the corresponding alarm type according to the highest flow grade in the plurality of flow grades.
26. The flow sensing and alarm device of any one of claims 20-25,
the second calculation module is further used for calculating the average value of at least two latest single flows;
the second judgment module is further used for comparing the obtained flow average value with at least two preset flow threshold values to obtain a flow grade of the flow average value, and calculating the times of meeting a preset rule;
and the second alarm module is also used for determining and sending corresponding alarm information when the times of meeting the preset rule are greater than a set threshold value.
CN201911061922.2A 2019-11-01 2019-11-01 Flow detection and alarm method and device Pending CN110954170A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911061922.2A CN110954170A (en) 2019-11-01 2019-11-01 Flow detection and alarm method and device
CN202011195410.8A CN112504356A (en) 2019-11-01 2020-10-31 Gas anomaly detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911061922.2A CN110954170A (en) 2019-11-01 2019-11-01 Flow detection and alarm method and device

Publications (1)

Publication Number Publication Date
CN110954170A true CN110954170A (en) 2020-04-03

Family

ID=69976000

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911061922.2A Pending CN110954170A (en) 2019-11-01 2019-11-01 Flow detection and alarm method and device
CN202011195410.8A Pending CN112504356A (en) 2019-11-01 2020-10-31 Gas anomaly detection method, device, equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011195410.8A Pending CN112504356A (en) 2019-11-01 2020-10-31 Gas anomaly detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN110954170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037656A (en) * 2022-05-19 2022-09-09 无线生活(杭州)信息科技有限公司 Alarm method and device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022205403A1 (en) * 2021-04-02 2022-10-06 广州燃气集团有限公司 Intelligent gas meter, system and method capable of monitoring household gas leakage state
CN113722557A (en) * 2021-08-25 2021-11-30 广州东部发展燃气有限公司 Method and device for determining gas supply and sale difference
CN115560816A (en) * 2022-03-18 2023-01-03 荣成市宇翔实业有限公司 Gas meter control method
CN114613120A (en) * 2022-03-29 2022-06-10 新奥(中国)燃气投资有限公司 Remote meter reading abnormity identification method and device
CN114757270A (en) * 2022-03-30 2022-07-15 重庆合众慧燃科技股份有限公司 NB-IoT (NB-IoT) based gas intelligent equipment anomaly analysis method system and storage medium
CN115223344A (en) * 2022-07-18 2022-10-21 浙江正泰仪器仪表有限责任公司 Monitoring alarm method and device for meter equipment, electronic equipment and storage medium
CN115374851A (en) * 2022-08-19 2022-11-22 北京市燃气集团有限责任公司 Gas data anomaly detection method and device
CN116451043B (en) * 2023-06-12 2023-09-05 天津新科成套仪表有限公司 Fault model building system based on user gas meter measurement data analysis

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2571534Y2 (en) * 1991-10-07 1998-05-18 株式会社コムネットイレブン Gas flow meter
CN201607786U (en) * 2010-01-18 2010-10-13 杭州权衡科技有限公司 Intelligent IC card gas meter under safety control
CN106128046A (en) * 2014-07-16 2016-11-16 曹新民 Monitoring Power Transformer state, the method for work of the gradable warning system do not reported to the police
CN105279873B (en) * 2015-09-29 2018-06-08 小米科技有限责任公司 Reminding method and device
CN108959034A (en) * 2018-07-05 2018-12-07 北京木瓜移动科技股份有限公司 A kind of monitoring alarm method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037656A (en) * 2022-05-19 2022-09-09 无线生活(杭州)信息科技有限公司 Alarm method and device
CN115037656B (en) * 2022-05-19 2024-02-20 无线生活(杭州)信息科技有限公司 Alarm method and device

Also Published As

Publication number Publication date
CN112504356A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN110954170A (en) Flow detection and alarm method and device
CN109325692B (en) Real-time data analysis method and device for water pipe network
CN112348237B (en) Abnormal trend detection method for dynamic drilling data
EP2166422B1 (en) Method of alarm mask generation and condition monitoring of wind turbines
CN112882445B (en) Intelligent monitoring and management system for 5G and block chain for intelligent manufacturing
JP5793651B2 (en) Flow measuring device
CN102789676B (en) Method for designing industrial alarm on basis of alarm evidence fusion
CN110264715A (en) A kind of traffic incidents detection method based on section burst jamming analysis
CN110414154A (en) A kind of detection of fan part temperature anomaly and alarm method with double measuring points
CN107144764A (en) A kind of user's voltage dip accident detection method based on ammeter data
CN105703332A (en) Anti-TA saturation differential protection method and device for transformer
CN107276808A (en) A kind of optimization method of Traffic Anomaly monitoring
CN104636874A (en) Method and equipment for detecting business exception
CN112361218A (en) Municipal administration water supply and drainage pipe network operation safety intelligent monitoring system based on big data
CN114580852B (en) Water pump breakwater clearance real-time warning system based on industry big data
KR100689844B1 (en) Realtime detection and analysis method and systems of infiltration/inflow and leakage in the sewer
CN108921409A (en) A kind of voltage dip severity grade determination method
CN106644055B (en) A kind of detection method of slewing vibration monitoring protective device channel abnormal
CN116308305A (en) Bridge health monitoring data management system
CA2580408A1 (en) Aircraft fuel storage leak detection method and detection circuit therefor
CN111207306B (en) Heating power pipe network leakage monitoring method based on digital pressure signal processing
CN106855990A (en) Nuclear power generating sets instrument channel measurement error Demonstration Method
CN111125195B (en) Data anomaly detection method and device
CN114858250A (en) Fault detection method and system of intelligent water meter and readable storage medium
CN111259538B (en) Vibration alarm method, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200403

WD01 Invention patent application deemed withdrawn after publication