CN115795257A - Method and device for processing metering data, metering instrument and readable storage medium - Google Patents

Method and device for processing metering data, metering instrument and readable storage medium Download PDF

Info

Publication number
CN115795257A
CN115795257A CN202211261959.1A CN202211261959A CN115795257A CN 115795257 A CN115795257 A CN 115795257A CN 202211261959 A CN202211261959 A CN 202211261959A CN 115795257 A CN115795257 A CN 115795257A
Authority
CN
China
Prior art keywords
value
metering
increment
data
instrument
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
CN202211261959.1A
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.)
Beijing Likong Yuantong Technology Co ltd
Original Assignee
Beijing Likong Yuantong Technology 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 Beijing Likong Yuantong Technology Co ltd filed Critical Beijing Likong Yuantong Technology Co ltd
Priority to CN202211261959.1A priority Critical patent/CN115795257A/en
Publication of CN115795257A publication Critical patent/CN115795257A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention relates to the technical field of data measurement, and discloses a method and a device for processing measurement data, a measurement instrument and a readable storage medium. Wherein, the method comprises the following steps: acquiring a first metering value and a second metering value corresponding to the metering instrument, wherein the first metering value and the second metering value are data acquired by adjacent acquisition frequencies; determining an increment value corresponding to the metering instrument based on the first metering value and the second metering value; judging whether the increment value is an effective increment or not; and when the increment value is the effective increment, the increment value is counted into the metering parameter accumulated value corresponding to the metering instrument. By implementing the method and the device, whether the difference value of the two metering values obtained by adjacent acquisition frequencies is an effective increment or not is judged, whether the metering instrument has a zero return condition or not can be effectively determined, and the accuracy and the reliability of the metering data are ensured to the greatest extent.

Description

Method and device for processing metering data, metering instrument and readable storage medium
Technical Field
The invention relates to the technical field of data metering, in particular to a method and a device for processing metering data, a metering instrument and a readable storage medium.
Background
In the development of industrial enterprises, metering management is an important component of enterprise basic management and is a foundation for enterprise production and operation. Accurate and reliable metering data is the basis that enterprise management, production and management and product quality can be guaranteed, metering problems are found in time through integration and analysis of the data, metering risks are controlled, metering guarantee can be provided for enterprise management, and therefore accuracy and scientificity of the metering data are particularly important.
The recording of the metering data is that the production data is continuously metered by the metering instrument, and the instrument has the maximum and minimum measuring ranges. When the measurement is beyond the maximum range, the measurement is accumulated again, and the re-zeroing is frequently performed, and when the measurement returns to the zero position, the accumulated value is influenced to a certain extent, and the complete accumulated value from the starting moment to the current moment cannot be recorded completely. But also makes it difficult for the meter to return completely to the "0" starting position, i.e. to zero completely, for various uncertain reasons. This causes a certain error in the accumulated value of the metering data, which makes it difficult to ensure the accuracy and reliability of the metering data.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing metering data, a metering device, and a readable storage medium, so as to solve the problem that the accuracy and reliability of the metering data are difficult to guarantee.
According to a first aspect, an embodiment of the present invention provides a method for processing metering data, including: acquiring a first metering value and a second metering value corresponding to a metering instrument, wherein the first metering value and the second metering value are data acquired by adjacent acquisition frequencies; determining an incremental value corresponding to the metering device based on the first metering value and the second metering value; judging whether the increment value is a valid increment or not; and when the increment value is an effective increment, the increment value is counted into the metering parameter accumulated value corresponding to the metering instrument.
The method for processing the metering data provided by the embodiment of the invention determines the increment value through the first metering value and the second metering value acquired in the adjacent acquisition frequency, then determines whether the increment value is an effective increment according to the characteristics of the metering instrument, and counts the increment value into the metering parameter accumulated value corresponding to the metering instrument if the increment value is the effective increment, so as to realize the accumulation of the metering parameters. Therefore, whether the difference value of the two metering values obtained by adjacent acquisition frequencies is an effective increment or not is judged, whether the metering instrument has a zero return condition or not can be effectively determined, and the accuracy and the reliability of the metering data are ensured to the maximum extent.
With reference to the first aspect, in a first implementation manner of the first aspect, the acquiring of the first metering value precedes the acquiring of the second metering value, and the determining of the incremental value corresponding to the metering device based on the first metering value and the second metering value includes: judging whether the metering device is in a return-to-zero state or not; when the metering instrument is in a return-to-zero state, acquiring the maximum measuring range of the metering instrument; determining a first difference between the maximum measurement range and the first metering value; determining the incremental value based on the first difference and the second metric value.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining the increment value based on the first difference value and the second metering value includes: determining a sum of an absolute value of the first difference and an absolute value of the second metric, the sum being determined as the incremental value.
According to the method for processing the metering data, when the metering instrument is in the return-to-zero state, the increment value in the adjacent acquisition frequency is determined through the total range, the first metering value and the second metering value of the metering instrument, so that whether the increment value is effective or not is determined in the return-to-zero state, effective processing aiming at the return-to-zero state of the metering instrument is realized, and therefore when the increment value is effective, the metering parameters can be continuously accumulated, and therefore the metering parameters are completely recorded.
With reference to the first embodiment of the first aspect, in a third embodiment of the first aspect, the method further includes: when the metering device is not in a zero state, acquiring a second difference value between the first metering value and the second metering value; determining the second difference value as the increment value.
According to the method for processing the metering data provided by the embodiment of the invention, when the metering instrument is not in the return-to-zero state, the difference value between the first metering value and the second metering value is directly calculated to determine the incremental value, and whether the metering instrument has a metering problem can be determined in time by judging whether the incremental value is an effective increment or not, so that an abnormal alarm is performed when the metering problem occurs, and the accuracy of the metering data is ensured to the greatest extent.
With reference to the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the determining whether the metering device is in a return-to-zero state includes: determining whether the first metering value is greater than the second metering value; when the first metering value is greater than the second metering value, determining that the metering device is in the zeroing state.
According to the processing method of the metering data provided by the embodiment of the invention, whether the metering instrument is in the return-to-zero state or not is determined by comparing the metering values obtained by adjacent acquisition frequencies, so that the increment value in the return-to-zero state is prepared.
With reference to the first aspect or any one of the first to fourth embodiments of the first aspect, in a fifth embodiment of the first aspect, the determining whether the increment value is a valid increment includes: acquiring data change information of the metering instrument in adjacent acquisition frequencies; judging whether the incremental value meets the data change information or not; and when the increment value meets the data change information, determining that the increment value is a valid increment.
With reference to the fifth embodiment of the first aspect, in a sixth embodiment of the first aspect, the method further comprises: and when the increment value does not meet the data change information, judging that the increment value is an invalid increment, discarding the increment value and performing abnormal alarm.
According to the method for processing the metering data, provided by the embodiment of the invention, since the data change information of different metering instruments in adjacent acquisition frequencies is constant, whether the incremental value meets the data change information can be determined by comparing the incremental value with the data change information, so that the effective accumulation aiming at the metering parameters can be realized.
According to a second aspect, an embodiment of the present invention provides a device for processing metering data, including: the acquisition module is used for acquiring a first metering value and a second metering value corresponding to a metering instrument, wherein the first metering value and the second metering value are data acquired by adjacent acquisition frequencies, and the acquisition of the first metering value is prior to the acquisition of the second metering value; a determining module, configured to determine an incremental value corresponding to the metering device based on the first metering value and the second metering value; the judging module is used for judging whether the increment value is an effective increment or not; and the accumulation module is used for counting the increment value into the corresponding metering parameter accumulation value of the metering instrument when the increment value is an effective increment.
According to a third aspect, embodiments of the present invention provide a metering device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for processing metering data according to the first aspect or any embodiment of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the method for processing metering data according to the first aspect or any implementation manner of the first aspect.
It should be noted that, for corresponding beneficial effects of the processing apparatus for metering data, the metering device and the computer readable storage medium provided in the embodiment of the present invention, please refer to descriptions of corresponding contents in the processing method for metering data, which are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a method of processing metering data according to an embodiment of the present invention;
FIG. 2 is another flow diagram of a method of processing metrology data in accordance with an embodiment of the present invention;
FIG. 3 is yet another flow chart of a method of processing metering data according to an embodiment of the present invention;
FIG. 4 is a block diagram of a device for processing metering data according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a metering device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the development of industrial enterprises, metering management is an important component of enterprise basic management, is a foundation for enterprise production and operation, and is particularly important for establishing a metering data system oriented to metering management specialties. With the development and transformation of informatization and digitization. The management of the metering data is continuously perfected, perfect metering data transmission service is provided by using an information network, and timely, accurate and reliable metering data is provided for enterprises to generate management, safety, environmental protection, quality control, energy conservation and consumption reduction. Through integration and analysis to data, in time discover the measurement problem, management and control measurement risk not only carries out omnidirectional transformation and promotion to measurement management, provides the measurement assurance for enterprise's operation moreover, has promoted each enterprise measurement management service level.
The metering data is the basis for ensuring enterprise management, production and management and product quality, and the execution of fairness, justice and openness can not only improve the economic benefit of enterprises, but also improve the social benefit of enterprises. Therefore, the accuracy and the scientificity of the metering data are particularly important. The recording of the metering data is that the production data is continuously metered by the metering instrument, and the instrument has the maximum and minimum measuring ranges. When the measurement is beyond the maximum range, the measurement is accumulated again, and the re-zeroing is frequently performed, and when the measurement returns to the zero position, the accumulated value is influenced to a certain extent, and the complete accumulated value from the starting moment to the current moment cannot be recorded completely. And a starting position that cannot be completely returned to "0" may occur for various uncertain reasons. This causes a certain error in the accumulated value of the metering data, which makes it difficult to ensure the accuracy and reliability of the metering data.
Based on this, according to the technical scheme, whether the difference value of the two metering values in the adjacent acquisition frequencies accords with the data change information or not is judged to determine whether the increment value is an effective increment or not, so that the return-to-zero condition of the metering instrument in the data acquisition process can be effectively processed, the complete recording of the metering parameters is realized, and the accuracy and the reliability of the metering data are ensured to the greatest extent.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing metrology data, it being noted that the steps illustrated in the flow chart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flow chart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
In the present embodiment, a method for processing metering data is provided, which can be used in a metering device, such as an electric meter, a flow meter, a water meter, etc., fig. 1 is a flow chart of a method for processing metering data according to an embodiment of the present invention, and as shown in fig. 1, the flow chart includes the following steps:
s11, acquiring a first metering value and a second metering value corresponding to the metering instrument.
Wherein the first metric and the second metric are data acquired at adjacent acquisition frequencies.
The first measurement value is a measurement parameter value obtained by the measurement instrument at the last acquisition frequency relative to the current acquisition frequency, and the second measurement value is a measurement parameter value obtained by the measurement instrument at the current acquisition frequency. The acquisition frequencies correspond to acquisition time intervals, for example, the flow meter may acquire water flow once every 1 minute, and time stamps may be placed on the water flow acquired at each acquisition frequency to facilitate determining the water flow acquired at each acquisition frequency.
It should be noted that, for the same meter, the collection frequency is fixed, and the collection frequency is determined based on the product parameters of the meter itself.
And S12, determining an increment value corresponding to the metering device based on the first metering value and the second metering value.
The incremental value is used for representing the change value of the metering value obtained in the current acquisition frequency compared with the metering value obtained in the previous acquisition frequency. For normal increment, the increment value is the difference between the first metering value and the second metering value, and for the zero-return state, the specific increment value needs to be determined by combining the maximum measuring range of the metering device.
And S13, judging whether the increment value is an effective increment or not.
The effective increment is used for representing the normal change state of the metering value in the adjacent acquisition frequency. The metering device can compare the increment value with the effective increment to determine whether the current increment value is the effective increment, namely whether the increment value meets the normal change state of the metering value. When the increment value is a valid increment, step S14 is executed, otherwise, other operations are executed. Other operations may be discarding the current increment value, or performing a secondary judgment to avoid a judgment error, and the like, where other operations are not limited, and those skilled in the art may determine the operation according to actual needs.
And S14, adding the increment value into the metering parameter accumulated value corresponding to the metering instrument.
The metering parameter represents a parameter recorded by the metering instrument, and the metering parameter accumulated value represents the complete metering parameter usage recorded from the use time of the metering instrument. For example, if the metering instrument is an ammeter, the metering parameter is the electricity consumption, and the accumulated value of the metering parameter is the total electricity consumption recorded by the ammeter; and if the metering instrument is a water meter, the metering parameter is the water consumption, and the cumulative value of the metering parameter is the total water consumption recorded by the water meter.
When the increment value is an effective increment, the current increment value of the metering instrument meets the normal change state, and at the moment, the metering instrument can count the increment value into the metering parameter accumulated value, so that the complete record from the starting moment to the current moment aiming at the metering parameter is realized. Specifically, the metering device may store the calculated increment value in a database corresponding to the metering device, and the increment value is accumulated on the current accumulated value of the metering parameter by the database, so as to update the accumulated value of the metering parameter.
In the method for processing metering data provided in this embodiment, an increment value is determined according to a first metering value and a second metering value obtained within adjacent acquisition frequencies, and then whether the increment value is an effective increment is determined according to characteristics of a metering instrument, and if the increment value is an effective increment, the increment value is counted into a metering parameter accumulated value corresponding to the metering instrument, so as to accumulate metering parameters. Therefore, whether the difference value of the two metering values obtained by adjacent acquisition frequencies is an effective increment or not is judged, whether the metering instrument has a zero return condition or not can be effectively determined, and the accuracy and the reliability of the metering data are ensured to the maximum extent.
In this embodiment, a method for processing metering data is provided, which can be used in a metering device, such as an electric meter, a flow meter, a water meter, etc., fig. 2 is a flow chart of a method for processing metering data according to an embodiment of the present invention, and as shown in fig. 2, the flow chart includes the following steps:
s21, acquiring a first metering value and a second metering value corresponding to the metering device. The first metering value and the second metering value are data acquired by adjacent acquisition frequencies.
For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
And S22, determining an increment value corresponding to the metering instrument based on the first metering value and the second metering value.
Specifically, the first measurement value is collected before the second measurement value, and the step S22 may include:
s221, judging whether the metering device is in a zero state.
The metering device has maximum range and minimum range, and when the maximum range of the metering device is exceeded in the process of using the metering device to perform data metering, the metering device returns to zero to continue to perform data metering. After the metering device is reset to zero, the metering value of the metering device has a larger deviation compared with the metering value of the last collection frequency, so that in order to ensure the accuracy of the incremental value, the zero resetting state of the metering device needs to be judged, so that the accuracy of the incremental value is prevented from being influenced by abnormal states such as abnormal zero resetting and meter skipping.
Specifically, the step S221 may include:
(1) And judging whether the first metering value is larger than the second metering value.
(2) And when the first metering value is larger than the second metering value, judging that the metering device is in a return-to-zero state.
The first metering value is collected before the second metering value, namely the second metering value is the metering value collected by the current collection frequency, and the first metering value is the metering value collected by the last collection frequency.
When in normal metering, the second metering value is larger than the first metering value; when the zeroing condition occurs, the second metric may be less than the first metric because the second metric is re-metered after the 0 point. By comparing the first metering value with the second metering value, when the first metering value is larger than the second metering value, the metering device can be judged to be in a return-to-zero state. When the metering device is in the zero state, step S222 to step S224 are executed, otherwise step S225 is executed.
The above described metering values obtained by comparing adjacent acquisition frequencies to determine whether the meter is in a zeroing state in order to prepare an incremental value in the zeroing state.
S222, obtaining the maximum measuring range of the measuring instrument.
The maximum measuring range is the maximum measuring value of the measuring instrument and belongs to product parameter information of the measuring instrument. When the metering device is in the return-to-zero state, the metering device can call the product parameter information thereof, and the maximum measuring range of the metering device is determined.
S223, a first difference between the maximum measuring range and the first metering value is determined.
And if the maximum range is D and the first metering value is A, the first difference value between the maximum range and the first metering value is D-A.
And S224, determining an increment value based on the first difference value and the second metering value.
Under the condition that the first difference value and the second metering value are known, the current increment value can be calculated according to the mathematical relationship among the first difference value, the second metering value and the increment value in the return-to-zero state.
Specifically, the step S224 may include: a sum of the absolute value of the first difference and the absolute value of the second metric is determined, the sum being determined as an incremental value.
When the metering devices are all positive values, the first difference value and the second metering value can be added, and then the incremental value can be obtained. Specifically, if B is taken as the second measurement value, the increment value is | D-A | + | B | = D-A + B.
When the maximum measurement range of the metering device is 0, in order to ensure the accuracy of the increment value, the increment value can be expressed as | D-a | + | B |.
And S225, acquiring a second difference value between the first metering value and the second metering value, and determining the second difference value as an increment value.
When the metering device is not in the return-to-zero state, the metering device is indicated to be in a normal metering state, and the metering difference value between two adjacent acquisition frequencies is used as an increment value. Specifically, the metering difference is a second difference between the first metering value and the second metering value, i.e., the second difference is taken as an incremental value. And if the first metering value is A and the second metering value is B, the second difference value is B-A, and the current increment value is B-A.
And S23, judging whether the increment value is an effective increment or not.
For detailed description, reference is made to the corresponding related description of the above embodiments, and details are not repeated herein.
And S24, when the increment value is the effective increment, the increment value is counted into the metering parameter accumulated value corresponding to the metering instrument.
For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
According to the method for processing the metering data, when the metering instrument is in the return-to-zero state, the increment value in the adjacent acquisition frequency is determined through the total range, the first metering value and the second metering value of the metering instrument, so that whether the increment value is effective or not is determined in the return-to-zero state, effective processing aiming at the return-to-zero state of the metering instrument is realized, and therefore when the increment value is effective, the metering parameters can be continuously accumulated, and therefore the metering parameters are completely recorded. When the metering device is not in the return-to-zero state, the difference value between the first metering value and the second metering value is directly calculated to determine the incremental value, whether the metering device has a metering problem or not can be determined in time by judging whether the incremental value is an effective increment or not, so that an abnormal alarm is performed when the metering problem occurs, and the accuracy of the metering data is ensured to the maximum extent.
In this embodiment, a method for processing metering data is provided, which can be used in a metering device, such as an electric meter, a flow meter, a water meter, etc., fig. 3 is a flowchart of a method for processing metering data according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
and S31, acquiring a first metering value and a second metering value corresponding to the metering instrument. The first metering value and the second metering value are data acquired by adjacent acquisition frequencies.
For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
And S32, determining an increment value corresponding to the metering device based on the first metering value and the second metering value.
For detailed description, reference is made to the corresponding related description of the above embodiments, and details are not repeated herein.
And S33, judging whether the increment value is an effective increment or not.
Specifically, the step S33 may include:
and S331, acquiring data change information of the metering device in adjacent acquisition frequencies.
The data change information is used for representing the change state of the metering value in the adjacent acquisition frequency. The data variation information may be a fixed value C, for example, the difference between the N-1 th collection frequency and the N th collection frequency is C, where N is a positive integer and C is a constant.
The data variation information may also be a value range [ X, Y ], for example, the difference between the measured values obtained in the N-1 st and the N-th acquisition frequencies is M, where M is in the value range [ X, Y ]. Wherein N is a positive integer, and M, X and Y are constants.
S332, it is determined whether the incremental value satisfies the data change information.
And comparing the increment value with the data change information to determine whether the current increment value meets the data change information. When the increment value satisfies the data change information, step S333 is executed, otherwise step S334 is executed.
Specifically, when the data change information is a fixed value C, the current increment value is compared with the fixed value C, and it is determined whether the increment value is equal to the fixed value C. If the increment value is not equal to the fixed value C, the increment value does not meet the data change information, otherwise, the increment value meets the data change information.
Similarly, when the data change information is the numerical range [ X, Y ], judging whether the current increment value is in the numerical range [ X, Y ], if the increment value is not in the numerical range [ X, Y ], indicating that the increment value does not meet the data change information, otherwise, indicating that the increment value meets the data change information.
S333, determines the increment value as the valid increment.
When the increment value meets the data change information, the change state of the metering value in the adjacent acquisition frequency is normal, and the current increment value can be determined to be the effective increment.
And S334, judging the increment value to be an invalid increment, abandoning the increment value and carrying out abnormal alarm.
When the increment value does not meet the data change information, the change state of the metering value in the adjacent acquisition frequency is abnormal, and at this time, the current increment value can be judged to be an invalid increment. When invalid increment occurs, the metering device discards the increment value and gives an abnormal alarm so that related technical personnel can check the increment value in time, and corresponding fault repair or operation and maintenance are carried out on the metering device so as to ensure the accuracy of subsequent metering data. The abnormal alarm can be an audio alarm or a sound-light alarm, the abnormal alarm is not limited in form, and the abnormal alarm can be set by a person skilled in the art according to actual requirements.
And S34, when the increment value is the effective increment, the increment value is counted into the metering parameter accumulated value corresponding to the metering instrument.
For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
In the method for processing metering data provided by this embodiment, since the data change information of different metering instruments in adjacent acquisition frequencies is constant, whether the incremental value satisfies the data change information can be determined by comparing the incremental value with the data change information, so that effective accumulation of the metering parameters can be realized.
In this embodiment, a device for processing metering data is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a processing apparatus for metering data, as shown in fig. 4, including:
the obtaining module 41 is configured to obtain a first metering value and a second metering value corresponding to the metering device, where the first metering value and the second metering value are data acquired by adjacent acquisition frequencies.
And a determining module 42, configured to determine an incremental value corresponding to the metering device based on the first metering value and the second metering value.
And a judging module 43, configured to judge whether the increment value is a valid increment.
And the accumulation module 44 is configured to, when the increment value is an effective increment, count the increment value into the accumulated value of the metering parameter corresponding to the metering instrument.
Optionally, the first measurement value is collected before the second measurement value, and accordingly, the determining module 42 may include:
and the first judgment submodule is used for judging whether the metering device is in a return-to-zero state or not.
And the first acquisition submodule is used for acquiring the maximum measuring range of the measuring instrument.
A first determining submodule for determining a first difference between the maximum measurement range and the first metering value.
And a second determining submodule for determining an incremental value based on the first difference and the second metering value.
And the third determining submodule is used for acquiring a second difference value between the first metering value and the second metering value and determining the second difference value as an increment value.
Optionally, the first determining submodule is specifically configured to determine whether the first measurement value is greater than the second measurement value; and when the first metering value is larger than the second metering value, judging that the metering device is in a return-to-zero state.
Alternatively, the judging module 43 may include:
and the second acquisition submodule is used for acquiring data change information of the metering device in adjacent acquisition frequencies.
And the second judgment submodule is used for judging whether the incremental value meets the data change information.
The judging submodule is used for judging the increment value to be an effective increment when the increment value meets the data change information; and when the increment value does not meet the data change information, judging the increment value to be an invalid increment, abandoning the increment value and carrying out abnormal alarm.
The processing means for metering data in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
The processing apparatus for metering data provided in this embodiment determines an increment value according to a first metering value and a second metering value obtained within adjacent acquisition frequencies, then determines whether the increment value is an effective increment according to characteristics of a metering instrument, and if the increment value is an effective increment, counts the increment value into a metering parameter cumulative value corresponding to the metering instrument, so as to realize the accumulation of the metering parameter. Therefore, whether the difference value of the two metering values obtained by adjacent acquisition frequencies is an effective increment or not is judged, whether the metering instrument has a zero return condition or not can be effectively determined, and the accuracy and the reliability of the metering data are ensured to the maximum extent.
The embodiment of the invention also provides a metering device which is provided with the processing device of the metering data shown in the figure 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a metering device according to an alternative embodiment of the present invention, and as shown in fig. 5, the metering device may include: at least one processor 501, such as a Central Processing Unit (CPU), at least one communication interface 503, memory 504, and at least one communication bus 502. Wherein a communication bus 502 is used to enable the connection communication between these components. The communication interface 503 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a standard wireless interface. The Memory 504 may be a high-speed volatile Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 504 may alternatively be at least one memory device located remotely from the processor 501. Wherein the processor 501 may be in connection with the apparatus described in fig. 4, an application program is stored in the memory 504, and the processor 501 calls the program code stored in the memory 504 for performing any of the method steps described above.
The communication bus 502 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 502 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 504 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 504 may also comprise a combination of the above types of memory.
The processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 504 is also used to store program instructions. The processor 501 may call program instructions to implement the processing method of metering data as shown in the above embodiments of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method for processing the metering data in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for processing metrology data, comprising:
acquiring a first metering value and a second metering value corresponding to a metering instrument, wherein the first metering value and the second metering value are data acquired by adjacent acquisition frequencies;
determining an incremental value corresponding to the metering device based on the first metering value and the second metering value;
judging whether the increment value is a valid increment or not;
and when the increment value is an effective increment, the increment value is counted into the metering parameter accumulated value corresponding to the metering instrument.
2. The method of claim 1, wherein the first metering value is collected prior to the second metering value, and wherein determining the corresponding incremental value for the metering device based on the first metering value and the second metering value comprises:
judging whether the metering device is in a return-to-zero state or not;
when the metering instrument is in a return-to-zero state, acquiring the maximum measuring range of the metering instrument;
determining a first difference between the maximum measurement range and the first metering value;
determining the incremental value based on the first difference and the second metric value.
3. The method of claim 2, wherein the determining the incremental value based on the first difference value and the second metric value comprises:
determining a sum of an absolute value of the first difference and an absolute value of the second metric, the sum being determined as the incremental value.
4. The method of claim 2, further comprising:
when the metering device is not in a zero state, acquiring a second difference value between the first metering value and the second metering value;
determining the second difference value as the increment value.
5. The method of claim 2, wherein said determining whether the meter is in a zeroing state comprises:
determining whether the first metering value is greater than the second metering value;
and when the first metering value is larger than the second metering value, determining that the metering device is in the zero state.
6. The method according to any of claims 1-5, wherein said determining whether the delta value is a valid delta comprises:
acquiring data change information of the metering instrument in adjacent acquisition frequencies;
judging whether the incremental value meets the data change information or not;
and when the increment value meets the data change information, determining that the increment value is a valid increment.
7. The method of claim 6, further comprising:
and when the increment value does not meet the data change information, judging that the increment value is an invalid increment, discarding the increment value and performing abnormal alarm.
8. A device for processing metrology data, comprising:
the acquisition module is used for acquiring a first metering value and a second metering value corresponding to a metering instrument, wherein the first metering value and the second metering value are data acquired by adjacent acquisition frequencies;
a determining module, configured to determine an incremental value corresponding to the metering device based on the first metering value and the second metering value;
the judging module is used for judging whether the increment value is an effective increment or not;
and the accumulation module is used for counting the increment value into the corresponding metering parameter accumulation value of the metering instrument when the increment value is an effective increment.
9. A metering device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of processing metrology data as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of processing metrology data as claimed in any one of claims 1 to 7.
CN202211261959.1A 2022-10-14 2022-10-14 Method and device for processing metering data, metering instrument and readable storage medium Pending CN115795257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211261959.1A CN115795257A (en) 2022-10-14 2022-10-14 Method and device for processing metering data, metering instrument and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211261959.1A CN115795257A (en) 2022-10-14 2022-10-14 Method and device for processing metering data, metering instrument and readable storage medium

Publications (1)

Publication Number Publication Date
CN115795257A true CN115795257A (en) 2023-03-14

Family

ID=85432969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211261959.1A Pending CN115795257A (en) 2022-10-14 2022-10-14 Method and device for processing metering data, metering instrument and readable storage medium

Country Status (1)

Country Link
CN (1) CN115795257A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192046A1 (en) * 2006-02-15 2007-08-16 Hairston Ronald J Flow meter diagnostics
US8768870B1 (en) * 2012-05-22 2014-07-01 Google Inc. Training a model using parameter server shards
CN108491432A (en) * 2018-02-09 2018-09-04 珠海派诺科技股份有限公司 Electric system cumulative amount storage based on eap-message digest and abstracting method, electronic equipment and storage medium
CN114877964A (en) * 2022-04-27 2022-08-09 上海创新给水设备制造(集团)有限公司 Water source water supply data acquisition method and system, storage medium and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192046A1 (en) * 2006-02-15 2007-08-16 Hairston Ronald J Flow meter diagnostics
US8768870B1 (en) * 2012-05-22 2014-07-01 Google Inc. Training a model using parameter server shards
CN108491432A (en) * 2018-02-09 2018-09-04 珠海派诺科技股份有限公司 Electric system cumulative amount storage based on eap-message digest and abstracting method, electronic equipment and storage medium
CN114877964A (en) * 2022-04-27 2022-08-09 上海创新给水设备制造(集团)有限公司 Water source water supply data acquisition method and system, storage medium and intelligent terminal

Similar Documents

Publication Publication Date Title
CN109558295B (en) Performance index abnormality detection method and device
CN110864795B (en) Weighing abnormity alarm system
CN110542867A (en) Battery health state evaluation method and device and storage medium
CN112801315A (en) State diagnosis method and device for power secondary equipment and terminal
CN112580858A (en) Equipment parameter prediction analysis method and system
CN115796708A (en) Intelligent quality inspection method, system and medium for big data for engineering construction
CN112729884B (en) Equipment fault diagnosis method and device based on big data
CN117148252B (en) Switch measurement unit and multi-CT interconnection precision self-calibration method
CN113434498A (en) Method and device for monitoring data abnormity of database of power system and electronic equipment
CN115795257A (en) Method and device for processing metering data, metering instrument and readable storage medium
CN116166655B (en) Big data cleaning system
CN117272145A (en) Health state evaluation method and device of switch machine and electronic equipment
CN113376564B (en) Smart electric meter metering correction method and device based on data analysis and terminal
CN116380228A (en) Method, system, terminal and storage medium for monitoring operation of weighing apparatus
CN113065234B (en) Batch reliability risk level assessment method and system for intelligent electric meters
CN110472118A (en) A kind of method for evaluating quality, equipment, server and readable storage medium storing program for executing
CN113945801B (en) Power distribution network fault positioning method, device, equipment and storage medium
CN113986897A (en) Multi-source data fusion method and device based on hydrological robot
CN111176931A (en) Operation monitoring method, operation monitoring device, server and storage medium
CN111882289A (en) Device and method for measuring and calculating item data audit index interval
CN112749099A (en) PAS application performance evaluation method, system, terminal equipment and medium
CN115587287B (en) Hidden danger troubleshooting method and device for electric energy meter and electric energy meter
CN117311295B (en) Production quality improving method and system based on wireless network equipment
CN116878728B (en) Pressure sensor fault detection analysis processing system
CN110864664B (en) Working condition-based settlement measurement frequency optimization method and device

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