CN108663093B - Method and device for dynamically adjusting measuring frequency of meter - Google Patents

Method and device for dynamically adjusting measuring frequency of meter Download PDF

Info

Publication number
CN108663093B
CN108663093B CN201710193491.XA CN201710193491A CN108663093B CN 108663093 B CN108663093 B CN 108663093B CN 201710193491 A CN201710193491 A CN 201710193491A CN 108663093 B CN108663093 B CN 108663093B
Authority
CN
China
Prior art keywords
measurement
weighted average
meter
historical weighted
frequency
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.)
Active
Application number
CN201710193491.XA
Other languages
Chinese (zh)
Other versions
CN108663093A (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.)
Beijing Shengtaiyi Technology Co.,Ltd.
Original Assignee
BEIJING YINGCIN TECHNOLOGY 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 BEIJING YINGCIN TECHNOLOGY Ltd filed Critical BEIJING YINGCIN TECHNOLOGY Ltd
Priority to CN201710193491.XA priority Critical patent/CN108663093B/en
Publication of CN108663093A publication Critical patent/CN108663093A/en
Application granted granted Critical
Publication of CN108663093B publication Critical patent/CN108663093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • G01F1/667Arrangements of transducers for ultrasonic flowmeters; Circuits for operating ultrasonic flowmeters
    • 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/001Means for regulating or setting the meter for a predetermined quantity
    • 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/001Means for regulating or setting the meter for a predetermined quantity
    • G01F15/002Means for regulating or setting the meter for a predetermined quantity for gases

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention discloses a method and a device for dynamically adjusting the measuring frequency of a meter, wherein the method comprises the following steps: when a meter is used for measuring a measured object, the measurement readings of the meter under the current measurement frequency are obtained; determining the difference between the measurement readings of the current measurement and the historical weighted average value before the current measurement; and adjusting the measuring frequency of the meter according to the difference. The method provided by the invention can adjust the measuring frequency of the meter in real time according to the current measuring result, not only can ensure the measuring precision of the meter, but also can effectively reduce the power consumption generated by the meter measurement.

Description

Method and device for dynamically adjusting measuring frequency of meter
Technical Field
The invention relates to the technical field of instruments and meters, in particular to a method and a device for dynamically adjusting the measuring frequency of a meter.
Background
With the development of meter technology, the meters are more and more intelligent, and as illustrated by an ultrasonic flow meter, the ultrasonic flow meter is widely applied to the measurement of gases such as natural gas, petroleum gas and coal gas, and also widely applied to the measurement of various liquids. The measurement nature of ultrasonic flow meters is that they perform an integration operation on the measured quantities, thereby requiring consideration of integration period issues. In the prior art, a fixed integration period (namely, fixed frequency) is usually adopted to measure a measured value, and if the adopted integration period is shorter, although the measured value obtained by integration is closer to a true value, the problem of higher power consumption is caused; if the integration period is long, the power consumption is not burdened, but the accuracy of the measurement value obtained by integration is not high. Therefore, when a measurement is performed with a fixed period (fixed frequency), the measurement accuracy and the power consumption are mutually restricted, and effective balance cannot be achieved, so that how to reduce the power consumption generated by the measurement while ensuring the measurement accuracy of the ultrasonic flowmeter is one of the technical problems to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a method and a device for dynamically adjusting the measurement frequency of a meter, which are used for effectively reducing the power consumption generated by measurement under the condition of ensuring the measurement precision.
The embodiment of the invention provides a method for dynamically adjusting the measuring frequency of a meter, which comprises the following steps:
when a meter is used for measuring a measured object, the measurement readings of the meter under the current measurement frequency are obtained; and are
Determining the difference between the metering readings of the current measurement and the historical weighted average value before the current measurement;
and adjusting the measuring frequency of the meter according to the difference.
The embodiment of the invention provides a device for dynamically adjusting the measuring frequency of a meter, which comprises:
the acquisition unit is used for acquiring the metering readings of the meter under the current measuring frequency when the meter is used for measuring the measured object;
the determining unit is used for determining the difference between the metering readings of the current measurement acquired by the acquiring unit and the historical weighted average value before the current measurement;
and the adjusting unit is used for adjusting the measuring frequency of the meter according to the difference determined by the determining unit.
The invention has the beneficial effects that:
the method and the device for dynamically adjusting the measuring frequency of the meter provided by the embodiment of the invention can adjust the measuring frequency of the meter in real time according to the current measuring result by acquiring the measuring indication of the current measurement, determining the difference between the measuring indication and the historical weighted average value before the current measurement and then adjusting the measuring frequency of the meter according to the difference when the meter is used for measuring the measured object.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1a is a schematic flow chart of a method for dynamically adjusting a measurement frequency of a meter according to an embodiment of the present invention;
FIG. 1b is a schematic flow chart of a method for adjusting the measurement frequency of a meter according to the difference value according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for dynamically adjusting a measurement frequency of a meter according to a second embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for dynamically adjusting the measurement frequency of a meter, which are used for effectively reducing the power consumption generated by measurement under the condition of ensuring the measurement precision.
The method for dynamically adjusting the measuring frequency of the meter can be applied to a meter charging platform or can also be applied to the meter, so that the meter does not need to measure according to fixed frequency. For example, when the current billing platform frequently detects the metering readings of the user's meter, by comparing the metering readings obtained by the current measurement with the historical weighted average value before the current measurement, the method of the present invention finds that the change is not large according to the comparison result, and can reduce the measurement frequency of the meter, thereby reducing the measurement power consumption of the meter. Or when the current charging platform detects the metering readings of the user's meter for a long time according to the lower frequency, after comparing the metering readings measured this time with the historical weighted average value before this time, the change is found to be large according to the comparison result, so the measuring frequency of the meter can be improved, and the measuring precision of the meter is improved.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
As shown in fig. 1a, a schematic flowchart of a method for dynamically adjusting a measurement frequency of a meter according to an embodiment of the present invention may include the following steps:
and S11, when the meter is used for measuring the measured object, the measurement reading of the meter under the current measurement frequency is obtained.
In specific implementation, the measurement readings of the meter may be obtained through a wireless transmission manner, for example, the reporting time is agreed in advance between the charging platform and the meter, for example, the meter needs to report the measurement readings of the meter to the charging platform once every 5 minutes, so that the meter reports the measurement readings of the meter to the charging platform through a wireless manner when the time preset time is reached, or the meter may report the measurement readings of the meter in other manners, which is not limited in the present invention.
And S12, determining the difference between the current metering index and the historical weighted average value before the current time.
In the specific implementation, in order to accurately reflect the real use condition of the measured object and improve the measurement accuracy, the invention provides that the measurement readings obtained by the current measurement are compared with the historical weighted average value before the current measurement, and the historical weighted average value can accurately reflect the actual use amount of the measured object before the current measurement.
Preferably, when the meter is currently used to measure the measured object, it may be the first measurement, the second measurement or the nth measurement, where N is a natural number greater than or equal to 3. Therefore, the historical weighted averages for the above three cases are different. In view of the above three situations, the first embodiment of the present invention proposes that the historical weighted average value before the present time can be determined according to the following three methods:
the method comprises the following steps: and if the current measurement is the first measurement, the historical weighted average value is a preset reference value.
Specifically, when the step S12 is executed based on the first method, that is, the measurement is the first measurement, a difference between the measurement index of the measurement and a preset reference value is determined, where the preset reference value may be determined according to an empirical value or may be set as the measurement index of the measurement.
The second method comprises the following steps: and if the measurement is the second measurement, determining the historical weighted average value before the second measurement according to the metering index of the first measurement and a preset reference value.
Specifically, when step S12 is executed based on the second method, since the current measurement is the second measurement, the historical weighted average value before the current time is the weighted average value obtained after the first measurement, that is, the difference between the measurement index of the current measurement and the weighted average value obtained after the first measurement is determined.
Preferably, if the current measurement is a second measurement, determining a historical weighted average value before the second measurement (i.e. a weighted average value obtained by the first measurement) according to formula (1) according to the measurement index of the first measurement and a preset reference value:
γ1=α1*a11*a0(1)
wherein, γ1The historical weighted average value before the second measurement is obtained;
a1a metering index for the first measurement;
a0is a preset reference value;
α1the weight value corresponding to the measurement index measured for the first time;
β1is a preset weight corresponding to the reference value, and α11=1。
Preferably, the preset reference value a in the formula (1)0It can be determined empirically or through a number of experiments, and in addition, the first measured metric corresponds to a weight α1The weight β corresponding to the preset reference value1All are default weights, when embodied, α1And β1May be determined based on empirical values.
The third method comprises the following steps: and if the current measurement is the Nth measurement, determining the historical weighted average value before the Nth measurement according to the metering index of the Nth-1-time measurement and the historical weighted average value before the Nth-1-time measurement, wherein N is a natural number which is more than or equal to 3.
Specifically, when step S12 is executed based on the third method, since this measurement is the nth measurement and N is a natural number greater than or equal to 3, the historical weighted average value before the nth measurement is the weighted average value obtained after the nth-1 measurement, and then the difference between the measurement index of this measurement and the weighted average value obtained after the nth-1 measurement is determined.
Preferably, if the current measurement is the Nth measurement, the historical weighted average value before the Nth measurement is determined according to the metering index of the Nth-1 measurement and the historical weighted average value before the Nth-1 measurement according to the formula (2):
γN-1=αN-1*aN-1N-1N-2(2)
wherein, γN-1The historical weighted average before the Nth measurement is taken;
aN-1the corresponding measurement reading is measured for the (N-1) th time;
αN-1the weight value corresponding to the metering index corresponding to the N-1 th measurement;
γN-2the historical weighted average before the N-1 measurement;
βN-1the weight value corresponding to the historical weighted average value before the N-1 measurement, wherein αN-1N-1=1。
Preferably, the weight corresponding to the metering index of the (N-1) th measurement and the weight corresponding to the historical weighted average value before the (N-1) th measurement are both determined according to the metering index corresponding to the (N-1) th measurement and the historical weighted average value before the (N-1) th measurement.
In specific implementation, after each measurement is performed, when the weight corresponding to the measurement index of the measurement and the weight corresponding to the previous historical weighted average are determined, the relationship between the ratio of the absolute value of the difference between the measurement index and the previous historical weighted average to the historical weighted average before the measurement and the preset ratio threshold may be determined. For example, in the first embodiment of the present invention, two gears are set for the weight: a0 and A1, when the proportion of the absolute value of the difference between the current measurement index and the current previous history weighted average value to the current previous history weighted average value is more than or equal to a preset proportion threshold value, the weight value corresponds to A0 grade; and if the proportion of the absolute value of the difference between the measured index and the previous historical weighted average value to the previous historical weighted average value is less than a preset proportion threshold, the weight value corresponds to an A1 gear, and after the gear corresponding to the weight value is determined, the weight value corresponding to the measured index and the weight value corresponding to the historical weighted average value before the measurement are respectively determined.
For example, as described in connection with equation (2), at decision αN-1And βN-1Firstly, the metering index a corresponding to the N-1 th measurement is determinedN-1And the historical weighted average gamma before the N-1 measurementN-2The absolute value of the difference is the historical weighted average gamma before the N-1 measurementN-2The ratio of (a) to (b), namely:
Figure BDA0001256793930000061
judging that
Figure BDA0001256793930000062
Whether the ratio exceeds a preset ratio threshold value or not, if so, the weight corresponds to the A0 gear, and if so, the value corresponding to the A0 gear is
Figure BDA0001256793930000063
The weight α corresponding to the measurement index corresponding to the N-1 th measurementN-1Comprises the following steps:
Figure BDA0001256793930000064
and the weight β corresponding to the historical weighted average before the N-1 measurementN-1Comprises the following steps:
Figure BDA0001256793930000065
obviously, the set gears may also be divided, for example, the gear a0 is divided into gears a01, a02, a03, a04, and the gear a1 is divided into gears a11, a12, a13, where each of the divided gears corresponds to a preset threshold proportion range, for example, when it is determined that the ratio of the absolute value of the difference between the measurement indicator and the historical weighted average value before the measurement to the historical weighted average value before the measurement is greater than or equal to a preset proportion threshold, the difference between the former ratio and the preset proportion threshold is determined, which range the difference is in is determined, the corresponding gear is searched according to the determined range, and then the weight corresponding to the measurement indicator and the weight corresponding to the historical weighted average value before the measurement are determined according to the value corresponding to the searched gear.
Preferably, after the nth measurement is performed, the weight α corresponding to the measurement index of the nth measurement may be determined according to the above methodNA weight β corresponding to the historical weighted average before the Nth measurement (the weighted average after the N-1 th measurement)NThen, the historical weighted average value gamma before the N +1 th measurement (i.e. the weighted average value obtained after the Nth measurement) is determined by the formula (2)NAnd adjusting the measuring frequency of the meter after the N +1 th measurement according to the metering readings obtained by the N +1 th measurement.
And S13, adjusting the measuring frequency of the meter according to the difference.
In specific implementation, after determining the difference between the current measurement indicator and the historical weighted average value before this time by using step S12, the method shown in fig. 1b may be used to adjust the measurement frequency of the meter according to the difference, and the method may include the following steps:
s131, judging whether the ratio of the absolute value of the difference value to the historical weighted average value is greater than or equal to a preset threshold value, and if so, executing a step S132; otherwise, executing step S133;
in specific implementation, when the condition that the historical weighted average value in the first method is the preset reference value indicates that the current measurement is the first measurement, whether the ratio of the absolute value of the difference value between the metering index of the first measurement and the preset reference value to the preset reference value is greater than or equal to a preset threshold value or not is judged, and if yes, the step S132 is executed; otherwise, step S133 is performed. After the determination process is executed, the weighted average value after the current measurement, that is, the corresponding weighted average value after the first measurement, needs to be determined according to the formula (1) in step S12 after the current measurement is performed, so as to be used for adjusting the measurement frequency for the second time.
In the second method, after the first measurement is performed, when the second measurement is performed, the historical weighted average value before this time is the weighted average value obtained after the first measurement, that is, the historical weighted average value γ before the second measurement is determined according to the formula (1) in step S121Then, in step S131, the measurement index a of the second measurement is determined2And gamma1The absolute value of the difference between and gamma1Whether the ratio of (A) is greater than or equal to a preset threshold value.
Aiming at the third method, since the current measurement is the Nth measurement, and N is a natural number more than or equal to 3, the historical weighted average value gamma before the Nth measurementN-1Then, in step S131, the measurement index a of the Nth measurement is determinedNAnd gammaN-1The absolute value of the difference between and gammaN-1Whether the ratio of (A) is greater than or equal to a preset threshold value.
And S132, increasing the measuring frequency of the meter.
In specific implementation, when the determination result in step S131 is yes, the measurement frequency of the meter may be correspondingly increased according to different application scenarios. Taking a total of 4 gears of the meter of the first embodiment of the invention as an example, one of the gears with high measurement frequency is gear B3 (once measured in 1 minute), and the other three gears are gear B0 (once measured in 10 minutes), gear B1 (once measured in 5 minutes) and gear B2 (once measured in 2 minutes). For example, for some meters requiring adjustment for a relatively large size, only one gear with a high measurement frequency, such as gear B3, is set on the meter, and when the determination result in step S131 is yes, the gear B1 corresponding to the current measurement frequency is directly adjusted to gear B3.
For some meters needing fine adjustment, multiple high-measurement-frequency gears can be set on the meter, such as 6 gears in total for the meter in the first embodiment of the present invention, wherein the gears B5 (once measured in 10 seconds), B4 (once measured in 30 seconds), and B3 (once measured in 1 minute) are all high-measurement-frequency gears, the gears B2 (once measured in 2 minutes), B1 (once measured in 5 minutes), and B0 (once measured in 10 minutes) are all low-measurement-frequency gears, and each gear of the high-measurement-frequency gears and the low-frequency gears corresponds to a preset difference range. If the result of the determination in step S131 is yes, a difference between the ratio of the absolute value of the difference to the historical weighted average in step S131 and a preset threshold may be determined, a preset difference range corresponding to the difference is determined according to the difference between the absolute value of the difference and the historical weighted average, a gear corresponding to the preset difference range is determined according to the determined preset difference range, then the current measurement frequency is adjusted to the gear corresponding to the preset difference range, and then the next measurement is performed at the measurement frequency corresponding to the gear.
S133, determining the number of times that the ratio of the absolute value of the difference value to the historical weighted average value is smaller than a preset threshold value.
In specific implementation, when the determination result in the step S131 is negative, in order to avoid occurrence of a problem that the determination result in the step S131 is inaccurate after the determination result in the step S131 is negative and the measurement frequency is adjusted, before the current measurement frequency is adjusted, step S133 is executed first, that is, the number of times that the ratio of the absolute value of the difference to the historical weighted average is smaller than the preset threshold is determined, specifically, a counter may be provided in the meter, and when the ratio of the absolute value of the difference to the historical weighted average is determined to be smaller than the preset threshold, the counter is incremented by 1, so that the number of times that the ratio of the absolute value of the difference to the historical weighted average is smaller than the preset threshold can be determined based on this.
S134, judging whether the times are smaller than a preset time threshold value, and if the times are smaller than the preset time threshold value, executing a step S135; otherwise, step S136 is executed.
In specific implementation, when it is determined in step S134 that the number of times is not less than the preset number threshold, it indicates that the deviation of the usage amount of the measured object corresponding to each measurement under the current measurement frequency is small and stable, so that the measurement frequency of the meter can be properly reduced, that is, step S136 is executed; when the number of times is judged to be smaller than the preset number threshold, it indicates that there may be some reasons under the current measurement frequency that the difference between the current measurement and the last measurement is not large, or the actual usage of the measured object under the current measurement frequency begins to tend to be stable, but in order to avoid the situation that the actual usage of the measured object cannot be monitored in time after the measurement frequency is adjusted under the situation, when the judgment result in step S134 is yes, the current measurement frequency of the meter is kept unchanged, that is, step S135 is executed.
And S135, keeping the measuring frequency of the meter unchanged.
And S136, reducing the measuring frequency of the meter.
In specific implementation, when the determination result in the step S134 is negative, in the first embodiment of the present invention, a multi-gear adjustment manner is adopted, for example, the count table in the first embodiment of the present invention totally has 6 gears, where the gears B5 (once measured in 10 seconds), B4 (once measured in 30 seconds), and B3 (once measured in 1 minute) are all high measurement frequency gears, and the gears B2 (once measured in 2 minutes), B1 (once measured in 5 minutes), and B0 (once measured in 10 minutes) are all low measurement frequency gears. Taking the shift corresponding to the current measuring frequency of the meter as the B3 shift for example, in order to avoid the problem that the measurement accuracy is affected because the actual usage of the object to be measured cannot be monitored due to the fact that the measuring frequency is adjusted to the lowest shift, in the embodiment of the present invention, when the determination result in step S134 is no, the measuring frequency is reduced by using a shift down manner, that is, the B3 shift corresponding to the current measuring frequency is adjusted to the B2 shift.
Preferably, each of the high measurement frequency range and the low measurement frequency range of the meter with the 6-gear position may further correspond to a preset range, when step S316 is executed, a difference between a ratio of an absolute value of the difference to the historical weighted average value in step S131 and a preset threshold may be determined, a preset difference range corresponding to the difference is determined according to the difference between the absolute value and the historical weighted average value, a gear corresponding to the preset difference range is determined according to the determined preset difference range, then the current measurement frequency is adjusted to the gear corresponding to the preset difference range, and then the next measurement is performed with the measurement frequency corresponding to the gear.
In order to further understand the method provided by the present invention, the present invention takes the meter as an ultrasonic flowmeter for explanation, and the method for dynamically adjusting the measurement frequency of the meter provided by the present invention is applied to the ultrasonic flowmeter, and the specific adjustment process is as follows:
for example, when an ultrasonic flowmeter is used for measuring a measured object for the first time, when the measured object is measured by using a meter, the measurement indication of the meter at the current measurement frequency is obtained, then the difference between the measurement indication and a preset reference value (because of the first measurement, the historical weighted average value is the preset reference value) is calculated, because the measurement is performed for the first time, the preset reference value can be determined according to an empirical value, or for the convenience of calculation, the measurement indication obtained by the first measurement can be determined as the preset reference value, the difference is zero, obviously, the ratio of the absolute value of the difference to the preset reference value is zero and is less than a preset threshold value, then the number of times that the ratio of the absolute value of the difference to the preset reference value is less than the preset threshold value is determined to be 1, the number of times that the ratio of the absolute value of the difference to the preset reference value is less than the preset threshold value is easily obtained (because when the measurement frequency is reduced, the usage amount of the measured object is in a steady state for a long time, the preset number of times threshold value is generally greater than 1, the preset number of times), in order to reduce the influence of the measurement error, the current measurement frequency, the average value is adjusted according to the weighted average value obtained by using the weighted average value of the current measurement frequency, the current measurement frequency is determined according to the weighted average value of the current measurement frequency, the weighted average value of the current measurement frequency is determined by the steps of the current measurement frequency, the steps of the current measurement frequency is determined by the steps of gamma measurement frequency, wherein the gamma measurement frequency is determined from the gamma measurement frequency of the gamma measurement of the.
The method for dynamically adjusting the measuring frequency of the meter provided by the embodiment of the invention is characterized in that when a measured object is measured by the meter, the measuring readings of the meter under the current measuring frequency are obtained; determining the difference between the current metering index and the historical weighted average value before the current time; according to again the difference, the adjustment the measuring frequency of strapping table can be according to the measuring frequency of current measuring result real-time adjustment strapping table, has reduced the produced consumption of strapping table measurement effectively, in addition, carries out the comparison with current measurement registration and this historical weighted average before of strapping table, utilizes this historical weighted average before measuring as the reference value from this, can accurately weigh the actual quantity of current strapping table, carries out measuring frequency's adjustment on this basis, can effectively guarantee the measurement accuracy of strapping table.
Example two
Based on the same inventive concept, the embodiment of the invention also provides a device for dynamically adjusting the measuring frequency of the meter, and as the principle of solving the problems of the device is similar to the method for dynamically adjusting the measuring frequency of the meter, the implementation of the device can refer to the implementation of the method, and repeated parts are not repeated.
As shown in fig. 2, a schematic structural diagram of a device for dynamically adjusting a measurement frequency of a meter according to a second embodiment of the present invention includes an obtaining unit 21, a determining unit 22, and an adjusting unit 23, where:
an acquisition unit 21 that acquires a measurement reading of a meter at a current measurement frequency when the meter is used to measure a measurement target;
a determining unit 22, configured to determine a difference between the measurement readings of the current measurement acquired by the acquiring unit 21 and a historical weighted average value before the current time;
and an adjusting unit 23, configured to adjust a measurement frequency of the meter according to the difference determined by the determining unit 22.
In specific implementation, the adjusting unit 23 specifically includes a first determining subunit, a first adjusting subunit, a determining subunit, a second adjusting subunit, and a third adjusting subunit, where:
the first judging subunit is configured to judge whether an absolute value of the difference is greater than or equal to a preset threshold;
the first adjusting subunit is used for increasing the measurement frequency of the meter if the judgment result of the first judging subunit is yes;
the determining subunit is configured to determine, if the determination result of the first determining subunit is negative, the number of times that the absolute value of the difference is smaller than a preset threshold;
the second judging subunit is configured to judge whether the number of times determined by the determining subunit is smaller than a preset number-of-times threshold;
the second adjusting subunit is configured to, if the second determining subunit determines that the number of times is smaller than a preset number-of-times threshold, keep the measurement frequency of the meter unchanged;
and the third adjusting subunit is used for reducing the measurement frequency of the meter if the second judging subunit determines that the frequency is not less than a preset frequency threshold.
In specific implementation, the determining unit 22 is specifically configured to determine that the historical weighted average is a preset reference value if the current measurement is the first measurement; or if the measurement is the second measurement, determining a historical weighted average value before the second measurement according to the metering index of the first measurement and a preset reference value; or if the current measurement is the Nth measurement, determining the historical weighted average value before the Nth measurement according to the metering index of the Nth-1 th measurement and the historical weighted average value before the Nth-1 th measurement, wherein N is a natural number which is more than or equal to 3.
Preferably, the determining unit 22 is further configured to determine, if the current measurement is a second measurement, a historical weighted average value before the second measurement according to the following formula, based on the measurement indicator of the first measurement and a preset reference value:
γ1=α1*a11*a0
wherein, γ1The historical weighted average value before the second measurement is obtained;
a1a metering index for the first measurement;
a0is a preset reference value;
α1the weight value corresponding to the measurement index measured for the first time;
β1is a preset weight corresponding to the reference value, and α11=1。
Preferably, the determining unit 22 is further configured to determine, if the current measurement is the nth measurement, a historical weighted average value before the nth measurement according to the metering index of the nth-1 measurement and the historical weighted average value before the nth-1 measurement according to the following formula:
γN-1=αN-1*aN-1N-1N-2
wherein, γN-1The historical weighted average before the Nth measurement is taken;
aN-1the corresponding measurement reading is measured for the (N-1) th time;
αN-1the weight value corresponding to the measurement index of the (N-1) th measurement is obtained;
γN-2the historical weighted average before the N-1 measurement;
βN-1the weight value corresponding to the historical weighted average value before the N-1 measurement, wherein αN-1N-1=1。
In specific implementation, the weight corresponding to the metering index of the (N-1) th measurement and the weight corresponding to the historical weighted average value before the (N-1) th measurement are both determined according to the metering index corresponding to the (N-1) th measurement and the historical weighted average value before the (N-1) th measurement.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention.
The device for dynamically adjusting the measurement frequency of the meter provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned division of the modules is only one of many divisions of the modules, and if the division into other modules or no division into modules is performed, it is within the scope of the present application as long as the device for dynamically adjusting the measurement frequency of the meter has the above-mentioned functions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for dynamically adjusting the measurement frequency of a meter, comprising:
when a meter is used for measuring a measured object, the measurement readings of the meter under the current measurement frequency are obtained; and are
Determining the difference between the current metering index and the historical weighted average value before the current measurement;
adjusting the measuring frequency of the meter according to the difference value;
wherein, according to the difference, adjust the measuring frequency of strapping table specifically includes:
judging whether the ratio of the absolute value of the difference value to the historical weighted average value is greater than or equal to a preset threshold value or not;
if the judgment result is yes, the measuring frequency of the meter is increased;
if the judgment result is negative, determining the times that the ratio of the absolute value of the difference value to the historical weighted average value is smaller than a preset threshold value; and are
Judging whether the frequency is smaller than a preset frequency threshold value or not;
if the times are determined to be less than a preset times threshold value, keeping the measuring frequency of the meter unchanged;
and if the number of times is determined to be not less than the preset number threshold, reducing the measuring frequency of the meter.
2. The method of claim 1, wherein the historical weighted average prior to the time is determined according to the following:
if the current measurement is the first measurement, the historical weighted average value is a preset reference value; or
If the measurement is the second measurement, determining a historical weighted average value before the second measurement according to the metering index of the first measurement and a preset reference value; or
And if the current measurement is the Nth measurement, determining the historical weighted average value before the Nth measurement according to the metering index of the Nth-1-time measurement and the historical weighted average value before the Nth-1-time measurement, wherein N is a natural number which is more than or equal to 3.
3. The method of claim 1, wherein if the current measurement is a second measurement, determining a historical weighted average value before the second measurement based on the metric indicator of the first measurement and a preset reference value according to the following formula:
γ1=α1*a11*a0
wherein, γ1The historical weighted average value before the second measurement is obtained;
a1a metering index for the first measurement;
a0is a preset reference value;
α1the weight value corresponding to the measurement index measured for the first time;
β1is a preset weight corresponding to the reference value, and α11=1。
4. The method of claim 1, wherein if the measurement is an nth measurement, determining the historical weighted average prior to the nth measurement based on the metric of the nth-1 measurement and the historical weighted average prior to the nth-1 measurement according to the following equation:
γN-1=αN-1*aN-1N-1N-2
wherein, γN-1The historical weighted average before the Nth measurement is taken;
aN-1the corresponding measurement reading is measured for the (N-1) th time;
αN-1the weight value corresponding to the measurement index of the (N-1) th measurement is obtained;
γN-2the historical weighted average before the N-1 measurement;
βN-1the weight value corresponding to the historical weighted average value before the N-1 measurement, wherein αN-1N-1=1。
5. The method of claim 4, wherein the weight corresponding to the metric of the (N-1) th measurement and the weight corresponding to the historical weighted average before the (N-1) th measurement are both determined based on the metric of the (N-1) th measurement and the historical weighted average before the (N-1) th measurement.
6. An apparatus for dynamically adjusting the measurement frequency of a meter, comprising:
the acquisition unit is used for acquiring the metering readings of the meter under the current measuring frequency when the meter is used for measuring the measured object;
the determining unit is used for determining the difference between the metering readings of the current measurement acquired by the acquiring unit and the historical weighted average value before the current measurement;
the adjusting unit is used for adjusting the measuring frequency of the meter according to the difference determined by the determining unit; wherein, the adjusting unit specifically includes: a first judging subunit, a first adjusting subunit, a determining subunit, a second judging subunit, a second adjusting subunit and a third adjusting subunit, wherein:
the first judging subunit is configured to judge whether a ratio of the absolute value of the difference to the historical weighted average is greater than or equal to a preset threshold;
the first adjusting subunit is used for increasing the measurement frequency of the meter if the judgment result of the first judging subunit is yes;
the determining subunit is configured to determine, if the determination result of the first determining subunit is negative, the number of times that the ratio of the absolute value of the difference to the historical weighted average is smaller than a preset threshold;
the second judging subunit is configured to judge whether the number of times determined by the determining subunit is smaller than a preset number-of-times threshold;
the second adjusting subunit is configured to, if the second determining subunit determines that the number of times is smaller than a preset number-of-times threshold, keep the measurement frequency of the meter unchanged;
and the third adjusting subunit is used for reducing the measurement frequency of the meter if the second judging subunit determines that the frequency is not less than a preset frequency threshold.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to determine that the historical weighted average is a preset reference value if the current measurement is a first measurement; or if the measurement is the second measurement, determining a historical weighted average value before the second measurement according to the metering index of the first measurement and a preset reference value; or if the current measurement is the Nth measurement, determining the historical weighted average value before the Nth measurement according to the metering index of the Nth-1 th measurement and the historical weighted average value before the Nth-1 th measurement, wherein N is a natural number which is more than or equal to 3.
8. The apparatus of claim 6, wherein the determining unit is further configured to determine a historical weighted average value before the second measurement according to the following formula according to the measurement index of the first measurement and a preset reference value if the current measurement is the second measurement:
γ1=α1*a11*a0
wherein, γ1The historical weighted average value before the second measurement is obtained;
a1a metering index for the first measurement;
a0is a preset reference value;
α1the weight value corresponding to the measurement index measured for the first time;
β1is a preset weight corresponding to the reference value, and α11=1。
9. The apparatus of claim 6, wherein the determining unit is further configured to determine a historical weighted average value before the nth measurement according to the following formula based on the metric of the nth-1 measurement and the historical weighted average value before the nth-1 measurement if the present measurement is the nth measurement:
γN-1=αN-1*aN-1N-1N-2
wherein, γN-1The historical weighted average before the Nth measurement is taken;
aN-1the corresponding measurement reading is measured for the (N-1) th time;
αN-1the weight value corresponding to the measurement index of the (N-1) th measurement is obtained;
γN-2the historical weighted average before the N-1 measurement;
βN-1the weight value corresponding to the historical weighted average value before the N-1 measurement, wherein αN-1N-1=1。
10. The apparatus of claim 9, wherein the weight corresponding to the metric of the (N-1) th measurement and the weight corresponding to the historical weighted average prior to the (N-1) th measurement are both determined based on the metric of the (N-1) th measurement and the historical weighted average prior to the (N-1) th measurement.
CN201710193491.XA 2017-03-28 2017-03-28 Method and device for dynamically adjusting measuring frequency of meter Active CN108663093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710193491.XA CN108663093B (en) 2017-03-28 2017-03-28 Method and device for dynamically adjusting measuring frequency of meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710193491.XA CN108663093B (en) 2017-03-28 2017-03-28 Method and device for dynamically adjusting measuring frequency of meter

Publications (2)

Publication Number Publication Date
CN108663093A CN108663093A (en) 2018-10-16
CN108663093B true CN108663093B (en) 2020-07-14

Family

ID=63786012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710193491.XA Active CN108663093B (en) 2017-03-28 2017-03-28 Method and device for dynamically adjusting measuring frequency of meter

Country Status (1)

Country Link
CN (1) CN108663093B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112325967A (en) * 2020-11-09 2021-02-05 湖南常德德山表业有限公司 Intelligent Internet of things water meter working state early warning method and system
CN112418505A (en) * 2020-11-18 2021-02-26 北京国信华源科技有限公司 Self-adaptive data acquisition method and monitoring system
CN113155212A (en) * 2021-04-08 2021-07-23 浙江威星智能仪表股份有限公司 Ultrasonic metering method for improving metering precision under flow fluctuation
CN113487707A (en) * 2021-06-30 2021-10-08 北京达佳互联信息技术有限公司 Webpage animation processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010159973A (en) * 2009-01-06 2010-07-22 Panasonic Corp Flow rate measuring device
CN103913211A (en) * 2014-04-14 2014-07-09 姜跃炜 Time coefficient calibration method of ultrasonic water meter
CN104949724A (en) * 2015-07-10 2015-09-30 安徽水联水务科技有限公司 Dynamic measurement method for ultrasonic wave measuring instrument
CN105466928A (en) * 2015-11-17 2016-04-06 重庆市科学技术研究院 Calibration treatment method of turbidity sensor
CN105722210A (en) * 2016-03-02 2016-06-29 广东欧珀移动通信有限公司 Crystal oscillator static frequency error calibration method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010159973A (en) * 2009-01-06 2010-07-22 Panasonic Corp Flow rate measuring device
CN103913211A (en) * 2014-04-14 2014-07-09 姜跃炜 Time coefficient calibration method of ultrasonic water meter
CN104949724A (en) * 2015-07-10 2015-09-30 安徽水联水务科技有限公司 Dynamic measurement method for ultrasonic wave measuring instrument
CN105466928A (en) * 2015-11-17 2016-04-06 重庆市科学技术研究院 Calibration treatment method of turbidity sensor
CN105722210A (en) * 2016-03-02 2016-06-29 广东欧珀移动通信有限公司 Crystal oscillator static frequency error calibration method and system

Also Published As

Publication number Publication date
CN108663093A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108663093B (en) Method and device for dynamically adjusting measuring frequency of meter
US7937247B2 (en) Virtual metering
CN104949748A (en) Method for self-testing of electronic belt weighing in real-time and online way
CN105258779A (en) Automatic calibration method of electronic scale
CN111998919B (en) Gas meter calibration method and device
CN101014839A (en) Method and apparatus for calibrating flow meter
CN106503841B (en) method and device for determining index threshold
KR101228427B1 (en) Digital meter capable of modifying flow and automatic modifying system for the same digital meter
CN103119453A (en) Digital frequency estimation based on quadratic forms
CN111998918A (en) Error correction method, error correction device and flow sensing system
CN112325967A (en) Intelligent Internet of things water meter working state early warning method and system
CN110688755A (en) Method and system for calculating residual life of engine filter element
WO2017070974A1 (en) Method and device for quickly detecting sensitivity of radio frequency receiver
CN106813761A (en) Lead automatic correcting method
US20180274942A1 (en) Method and apparatus for detecting background noise of sensor
CN110031079B (en) Online calibration method for electronic belt scale
JP2009257775A (en) Charging rate estimation method and device for secondary battery
CN105403725A (en) Rotating speed measurement method and system, and tachometer
CN111157938B (en) Method and system for evaluating metering process capability of automatic verification system
CN103697812A (en) Light intensity adjusting system and light intensity adjusting method of critical dimension measuring device
KR101184726B1 (en) Flow meter for measuring flow rate at several time slots
CN104090830B (en) Processing method for solving problem of time interleaving of timer during frequency measurement through cycle measuring method
CN109635421B (en) Weibull model-based dynamic optimization method for detection period of general pressure gauge
CN110020000A (en) Determine the method and apparatus of abnormal air speed data
KR101250430B1 (en) Fall compensation method and system for accurate weight measuring

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
TR01 Transfer of patent right

Effective date of registration: 20221215

Address after: 102209 Room 701, Unit 2, Floor 7, Building 3, Yard 42, Beiqi Road, Changping District, Beijing

Patentee after: Beijing Shengtaiyi Technology Co.,Ltd.

Address before: 102209 701, Block B, Building 3, TBD Yunji Center, Beiqijia Town, Changping District, Beijing

Patentee before: BEIJING YINGCIN TECHNOLOGY Ltd.

TR01 Transfer of patent right