CN112688692A - Meter reading data compression method, data format, device and storage medium - Google Patents

Meter reading data compression method, data format, device and storage medium Download PDF

Info

Publication number
CN112688692A
CN112688692A CN202011547790.7A CN202011547790A CN112688692A CN 112688692 A CN112688692 A CN 112688692A CN 202011547790 A CN202011547790 A CN 202011547790A CN 112688692 A CN112688692 A CN 112688692A
Authority
CN
China
Prior art keywords
data
difference
acquired
meter reading
identification
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
CN202011547790.7A
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.)
Shenzhen Jumpower Technology Development Co ltd
Original Assignee
Shenzhen Jumpower Technology Development 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 Shenzhen Jumpower Technology Development Co ltd filed Critical Shenzhen Jumpower Technology Development Co ltd
Priority to CN202011547790.7A priority Critical patent/CN112688692A/en
Publication of CN112688692A publication Critical patent/CN112688692A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a meter reading data compression method, a data format, equipment and a storage medium, wherein the meter reading data compression method comprises the following steps: acquiring and recording primary acquisition data of a metering device; acquiring subsequent acquired data of the metering instrument, and acquiring and recording difference data of the subsequent acquired data and the initial acquired data; generating identification data according to the difference data and the data acquisition times; and uploading the primary acquisition data, the difference data and the identification data. The meter reading data compression method, the data format, the equipment and the storage medium provided by the invention can reduce the data quantity to be uploaded by the metering instrument and improve the data transmission efficiency of the metering instrument.

Description

Meter reading data compression method, data format, device and storage medium
Technical Field
The invention relates to the technical field of data transmission of metering instruments, in particular to a meter reading data compression method, a data format, equipment and a storage medium.
Background
For a long time, domestic instruments such as electric energy meters and heat energy meters are all induction type mechanical instruments, and the original mode of manual meter reading has to be adopted to obtain instrument data, wherein the electric energy meters are the most prominent. With the rapid development of national economy in China, the living standard of people is increasingly improved, the complete set rate and commercialization of residences are continuously expanded, and the requirements of residents on the surrounding environment of the residences, the management quality of property departments, the service level of public utilities and the like are increasingly high. The traditional manual home-entry meter reading mode is not suitable for social development, and is increasingly obvious, the meter reading is difficult to enter a home, a plurality of door locks are provided, the labor intensity is high, the efficiency is low, the social problems are complex, the contradiction is large, and the like, so that great troubles are caused to both the user and the public service department.
In recent years, with the rapid development of information technology, new smart meters represented by smart meters have come into operation, and the collection of meter data is being changed from a manual meter reading mode to an automatic and remote meter reading mode. Currently, meter-bus (M-bus) is commonly used for remote meter reading.
The metering device comprises a water meter, an electricity meter and a gas meter, and when digital meter reading is carried out, data acquisition is usually carried out on the metering device at fixed intervals for a period of time, then the data is stored, and when a certain data volume is stored, the data is transmitted to an upper level through a bus. However, a lot of metering instruments are usually mounted on one bus, and a large amount of metering instrument data is correspondingly generated, which easily causes bus congestion, thereby affecting normal uploading of the metering instrument data and limiting the mounting number of the metering instruments.
Disclosure of Invention
The invention aims to provide a meter reading data compression method, which reduces the data quantity required to be uploaded by a metering instrument and improves the data transmission efficiency of the metering instrument.
The invention discloses a meter reading data compression method which adopts the technical scheme that:
a meter reading data compression method comprises the following steps: acquiring and recording primary acquisition data of a metering device; acquiring subsequent acquired data of the metering instrument, and acquiring and recording difference data of the subsequent acquired data and the initial acquired data; generating identification data according to the difference data and the data acquisition times; and uploading the primary acquisition data, the difference data and the identification data.
As a preferred scheme, the step of generating the identification data according to the difference data and the data acquisition times specifically includes: generating the digit of the identification data according to the data acquisition times; and generating a digit numerical value of the identification data according to the difference data.
As a preferred scheme, the step of generating the digit value of the identification data according to the difference data specifically includes: the digit value of the identification data is a binary value, and the binary value is used for indicating whether the difference data exists or not.
As a preferred scheme, the step of obtaining and recording difference data between the subsequent acquired data and the initial acquired data specifically includes: and comparing the subsequent acquired data with different parts of the primary acquired data to obtain difference data and recording the difference data.
As a preferred scheme, the step of uploading the primary collection data, the difference data and the identification data further comprises: and performing lossless compression on the acquired data, the difference data and the identification data.
Preferably, the step of obtaining and recording difference data between the subsequent acquired data and the initial acquired data further includes: comparing the difference data with the primary acquisition data or preset threshold data; and if the difference data is larger than the primary acquired data or the preset threshold data, comparing the subsequent acquired data with the current acquired data to obtain the difference data.
This scheme still provides a meter reading data format, includes: the initial data segment is used for representing the primary acquisition data of the metering instrument; the difference data section is used for representing the difference between the subsequent acquired data and the initial acquired data of the metering instrument; and the identification section is used for indicating the data acquisition times of the metering instrument and whether the data acquisition is changed relative to the data acquired for the first time.
The present solution also provides an apparatus comprising a memory and a processor, the memory storing a computer program, the processor executing the computer program for implementing the steps of the above method.
The present solution also provides a storage medium storing a computer program for implementing the steps of the above method when the computer program is executed by a processor.
The embodiment disclosed by the invention has the beneficial effects that: and acquiring and recording the primary acquired data of the metering instrument, and comparing the subsequent acquired data with the primary acquired data to obtain difference data when acquiring the subsequent acquired data of the metering instrument. Since the subsequent acquisition data typically changes less than the initial acquisition data, the difference data will also be correspondingly smaller. And then generating identification data according to the difference data and the data acquisition times, wherein the identification data is used for complete restoration of the subsequently acquired data. And finally, uploading the primary acquired data, the difference data and the identification data, wherein the subsequent acquired data only need to upload corresponding difference data, so that compared with uploading complete subsequent acquired data, the data volume of the metering instrument needing to be uploaded is greatly reduced, and the transmission efficiency of the metering instrument data is improved.
Drawings
FIG. 1 is a schematic flow chart of a meter reading data compression method of the invention.
FIG. 2 is a schematic flow chart of another embodiment of the meter reading data compression method of the present invention.
FIG. 3 is a schematic diagram of a meter reading data format according to the present invention.
Detailed Description
The invention will be further elucidated and described with reference to the embodiments and drawings of the specification:
referring to fig. 1, the meter reading data compression method includes:
s100: and acquiring and recording primary acquisition data of the metering device.
The data collected by the metering device is usually acquired for a certain number of times or time interval, and then is uploaded once, for example, once a day, while the data collected for the first time is the first data collection performed on the metering device after the data collected for the first time is uploaded.
S200: and acquiring subsequent acquired data of the metering instrument, and acquiring and recording difference data of the subsequent acquired data and the initial acquired data.
During the time interval of one data uploading, the data of the metering device is collected for a plurality of times, for example, the data of the metering device is collected every two hours. The data that is more common in a meter is the value displayed by the meter, however, the value of the meter generally changes less in a shorter time. And comparing the subsequent acquired data with the primary acquired data to obtain difference data, and replacing the subsequent acquired data with the difference data.
S300: and generating identification data according to the difference data and the data acquisition times.
And after the difference data replaces the subsequent acquired data, correspondingly generating identification data, wherein the identification data is used for representing the data acquisition times and whether the difference data exists. After receiving the identification data, the receiving end can restore the difference data into subsequent acquired data according to the identification data.
S400: and uploading the primary acquisition data, the difference data and the identification data.
By uploading the primary collected data, the difference data and the identification data, the method is equivalent to uploading the complete collected data of the metering instrument.
In this embodiment, the first collected data of the metering device is acquired and recorded, and when the subsequent collected data of the metering device is acquired, the subsequent collected data is compared with the first collected data to obtain difference data. Since the subsequent acquisition data typically changes less than the initial acquisition data, the difference data will also be correspondingly smaller. And then generating identification data according to the difference data and the data acquisition times, wherein the identification data is used for complete restoration of the subsequently acquired data. And finally, uploading the primary acquired data, the difference data and the identification data, wherein the subsequent acquired data only need to upload corresponding difference data, so that compared with uploading complete subsequent acquired data, the data volume of the metering instrument needing to be uploaded is greatly reduced, and the transmission efficiency of the metering instrument data is improved.
Step S200 specifically includes:
and S210, comparing the different parts of the subsequent acquired data and the initial acquired data to obtain difference data and recording the difference data.
Because the change between the subsequent collected data and the initial collected data is small, compared with the initial collected data, the higher-order data of the subsequent collected data is generally unchanged, and the lower-order data is correspondingly changed, so that only the lower-order data with the change is compared to obtain difference data.
Referring to fig. 2, after step S200, the method further includes:
and S220, comparing the difference data with the primary acquisition data or preset threshold data.
And S230, if the difference data is larger than the primary acquired data or the preset threshold data, comparing the subsequent acquired data with the current acquired data to obtain the difference data.
When the difference data is larger than the primary acquired data or the preset threshold data, the difference data is close to the primary acquired data due to the fact that the variation of the metering instrument is large or the service time of the metering instrument is short at the moment. Therefore, the subsequent collected data is compared with the current collected data to obtain difference data so as to reduce the data volume of the difference data.
Step S300 specifically includes:
and S310, generating the digit of the identification data according to the data acquisition times.
And S320, generating a digit numerical value of the identification data according to the difference data.
The number of digits of the identification data represents a number of data acquisitions, for example twelve acquisitions a day, i.e. the identification data is represented by a twelve digit number. And the specific value of each digit indicates whether the difference data exists.
Step S320 specifically includes:
and S330, adopting a binary number value as the digit numerical value of the identification data, wherein the binary number value is used for indicating whether the difference data exists or not.
The identification data is represented by binary data, the first bit of the identification data corresponds to the data acquired for the first time and is defaulted to be 1 or 0, the rest bits respectively represent whether the difference data exists through 0 and 1, if the difference data is zero, the difference data does not exist, and otherwise, the difference data exists.
Step S400 is preceded by:
and S340, performing lossless compression on the acquired data, the difference data and the identification data.
And the collected data, the difference data and the identification data are subjected to lossless compression, so that the uploaded data volume can be further reduced, and the restoration of the data is not influenced.
Referring to fig. 3, the present embodiment further provides a meter reading data format, including:
and the initial data section is used for representing the initial acquisition data of the metering device.
And the difference data section is used for representing the difference between the subsequent acquired data and the initial acquired data of the metering instrument.
And the identification section is used for indicating the data acquisition times of the metering instrument and whether the data acquisition is changed relative to the data acquired for the first time.
The present embodiment also provides an apparatus, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above method.
The present embodiment also provides a storage medium storing a computer program for implementing the steps of the above method when the computer program is executed by a processor.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the protection scope of the present invention, although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. A meter reading data compression method is characterized by comprising the following steps:
acquiring and recording primary acquisition data of a metering device;
acquiring subsequent acquired data of the metering instrument, and acquiring and recording difference data of the subsequent acquired data and the initial acquired data;
generating identification data according to the difference data and the data acquisition times;
and uploading the primary acquisition data, the difference data and the identification data.
2. The meter reading data compression method according to claim 1, wherein the step of generating identification data according to the difference data and the data acquisition times specifically comprises:
generating the digit of the identification data according to the data acquisition times;
and generating a digit numerical value of the identification data according to the difference data.
3. The meter reading data compression method according to claim 2, wherein the step of generating the digit numerical value of the identification data from the difference data specifically comprises:
the digit value of the identification data is a binary value, and the binary value is used for indicating whether the difference data exists or not.
4. The meter reading data compression method according to claim 1, wherein the step of obtaining and recording difference data between the subsequent collected data and the first collected data specifically comprises:
and comparing the subsequent acquired data with different parts of the primary acquired data to obtain difference data and recording the difference data.
5. The method of compressing meter reading data according to claim 1, wherein the step of uploading the first collected data, the difference data, and the identification data further comprises:
and performing lossless compression on the acquired data, the difference data and the identification data.
6. The method for compressing meter reading data according to claim 1, wherein the step of obtaining and recording difference data between the subsequent collected data and the initial collected data further comprises:
comparing the difference data with the primary acquisition data or preset threshold data;
and if the difference data is larger than the primary acquired data or the preset threshold data, comparing the subsequent acquired data with the current acquired data to obtain the difference data.
7. A meter reading data format, comprising:
the initial data segment is used for representing the primary acquisition data of the metering instrument;
the difference data section is used for representing the difference between the subsequent acquired data and the initial acquired data of the metering instrument;
and the identification section is used for indicating the data acquisition times of the metering instrument and whether the data acquisition is changed relative to the data acquired for the first time.
8. An apparatus comprising a memory and a processor, the memory storing a computer program, wherein the processor executes the computer program for implementing the steps of the method of any one of claims 1 to 6.
9. A storage medium storing a computer program for implementing the steps of the method according to any one of claims 1 to 6 when the computer program is executed by a processor.
CN202011547790.7A 2020-12-23 2020-12-23 Meter reading data compression method, data format, device and storage medium Pending CN112688692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011547790.7A CN112688692A (en) 2020-12-23 2020-12-23 Meter reading data compression method, data format, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011547790.7A CN112688692A (en) 2020-12-23 2020-12-23 Meter reading data compression method, data format, device and storage medium

Publications (1)

Publication Number Publication Date
CN112688692A true CN112688692A (en) 2021-04-20

Family

ID=75451931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011547790.7A Pending CN112688692A (en) 2020-12-23 2020-12-23 Meter reading data compression method, data format, device and storage medium

Country Status (1)

Country Link
CN (1) CN112688692A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709012A (en) * 2021-08-26 2021-11-26 远景能源有限公司 Extended communication method based on Modbus communication protocol

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0355919A (en) * 1989-07-25 1991-03-11 Daicel Chem Ind Ltd Compressor for time series observation data
US6370193B1 (en) * 1997-02-26 2002-04-09 Samsung Electronics Co., Ltd. MPEG data compression and decompression using adjacent data value differencing
CN1786939A (en) * 2005-11-10 2006-06-14 浙江中控技术有限公司 Real-time data compression method
JP2006277378A (en) * 2005-03-29 2006-10-12 Toshiba Corp Wireless meter reading system
CN103944580A (en) * 2014-04-14 2014-07-23 天津万合星辰信息技术有限公司 Lossless compression method for signals continuously collected by physical sign sensor
CN105530013A (en) * 2015-12-03 2016-04-27 四川中光防雷科技股份有限公司 Waveform data compression method and system
CN108616280A (en) * 2018-04-09 2018-10-02 重庆大学 Unstable state real time data acquisition data compression method
CN111130552A (en) * 2018-10-31 2020-05-08 罗伯特·博世有限公司 Data compression method, data compression system and vehicle ECU adopting same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0355919A (en) * 1989-07-25 1991-03-11 Daicel Chem Ind Ltd Compressor for time series observation data
US6370193B1 (en) * 1997-02-26 2002-04-09 Samsung Electronics Co., Ltd. MPEG data compression and decompression using adjacent data value differencing
JP2006277378A (en) * 2005-03-29 2006-10-12 Toshiba Corp Wireless meter reading system
CN1786939A (en) * 2005-11-10 2006-06-14 浙江中控技术有限公司 Real-time data compression method
CN103944580A (en) * 2014-04-14 2014-07-23 天津万合星辰信息技术有限公司 Lossless compression method for signals continuously collected by physical sign sensor
CN105530013A (en) * 2015-12-03 2016-04-27 四川中光防雷科技股份有限公司 Waveform data compression method and system
CN108616280A (en) * 2018-04-09 2018-10-02 重庆大学 Unstable state real time data acquisition data compression method
CN111130552A (en) * 2018-10-31 2020-05-08 罗伯特·博世有限公司 Data compression method, data compression system and vehicle ECU adopting same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709012A (en) * 2021-08-26 2021-11-26 远景能源有限公司 Extended communication method based on Modbus communication protocol

Similar Documents

Publication Publication Date Title
CN111624544B (en) Method and related device for identifying household transformer relation of transformer area
CN107730394A (en) The polynary isomeric data fusion method of panorama power network based on big data
CN105606920A (en) System and method for determining the current and future state of health of a power transformer
CN114881292A (en) Transformer substation fault early warning system and method based on digital twinning
CN112068865A (en) Efficient intelligent gas meter differential firmware upgrading method
CN112688692A (en) Meter reading data compression method, data format, device and storage medium
CN111131728A (en) Infrared image processing method, device and system based on coding
CN108762717B (en) Meter reading success recording method, statistical method and recruitment method based on Bit-map
CN108491432B (en) Electric power system accumulated quantity storage and extraction method based on message abstract, electronic equipment and storage medium
CN104901706B (en) A kind of digitalized electric energy quality monitoring terminal detection means and its data transfer device
CN113191003A (en) Nuclear power real-time data trend fitting algorithm
CN112364755A (en) Big data-based power consumption monitoring and management system for smart electric meter
CN116228298A (en) Big data analysis method and system based on NB-IOT water meter metering information
CN115759436A (en) User electric quantity and electricity charge prediction method and system under power grid big data
CN213904530U (en) Digital meter reading communication system
CN113933739A (en) Direct current fault recording device and fault recording method
CN112419698B (en) Electric energy meter data transmission method, system and device based on distribution line message specification
CN112463793B (en) EMS information display system and method based on inflixdb database
CN111625517B (en) New energy real-time data processing method and device based on change storage
CN211928051U (en) Low-voltage distribution network line loss diagnosis system
CN101769949B (en) Method for transmitting electric quantity register, system and ammeter
CN112905714A (en) Power planning data visualization and graphic expression method
CN112445796A (en) New energy station report generation method
CN112651136B (en) CIM equipment measurement model generation method, device, equipment and medium
CN109598918A (en) A kind of transmission method of electric energy meter event information

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