Search

CN-121984785-A - Encryption compression transmission method and system for electric energy meter data

CN121984785ACN 121984785 ACN121984785 ACN 121984785ACN-121984785-A

Abstract

The invention discloses an encryption compression transmission method and system for electric energy meter data, and relates to the technical field of data compression transmission, wherein the method comprises the steps of collecting electric energy meter data in real time and periodically intercepting time windows to obtain window sequences with multiple dimensions; converting each sampling point into a group of binary data, dividing the binary data into bit plane sequences, obtaining the turnover probability of each bit plane sequence, calculating the turnover randomness of each bit plane sequence, determining a noise interference layer based on the turnover randomness and carrying out bit masking processing to obtain purified data corresponding to each dimension window sequence, calculating the trend confusion degree of each dimension window sequence based on the purified data, and calculating the transmission control coefficient corresponding to each dimension window sequence based on the trend confusion degree so as to execute a corresponding compression strategy and carry out encryption transmission. The method can improve the compression transmission efficiency of the data of the electric energy meter and solve the defect that the compression effect of the traditional LZW compression algorithm is reduced in a complex power grid environment.

Inventors

  • LI HAIYANG
  • XIE FEI
  • CHEN JIE
  • HUANG KAI

Assignees

  • 江苏盛德电子仪表有限公司

Dates

Publication Date
20260505
Application Date
20260407

Claims (10)

  1. 1. A method for encrypting, compressing and transmitting electric energy meter data is characterized by collecting electric energy meter data in real time and periodically intercepting time windows to obtain window sequences with multiple dimensions, respectively converting each sampling point in each window sequence with multiple dimensions into a group of binary data, dividing the binary data into multiple bit plane sequences corresponding to each window sequence, respectively carrying out statistical analysis on each bit plane sequence to obtain turnover probability of each bit plane sequence, calculating turnover randomness of each bit plane sequence, determining noise interference layers of each window sequence with multiple dimensions based on the turnover randomness and carrying out bit mask processing to obtain purified data corresponding to each window sequence with multiple dimensions, calculating trend confusion degree of each window sequence with multiple dimensions based on the purified data, and calculating transmission control coefficients corresponding to each window sequence with multiple dimensions based on the trend confusion degree so as to execute corresponding compression strategies and carry out encryption transmission; The method comprises the steps of acquiring electric energy meter data in real time at a fixed frequency based on a data acquisition unit in the electric energy meter, wherein the electric energy meter data comprises two dimensions of voltage data and current data, presetting a time window length, periodically intercepting the time window to obtain a current window sequence and a voltage window sequence under the current period, and carrying out encryption compression transmission on the current window sequence and the voltage window sequence in the same processing mode.
  2. 2. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 1, wherein each sampling point in each dimension window sequence is converted into a group of binary data, and a plurality of bit plane sequences corresponding to each window sequence are obtained by dividing the sampling points, the decimal current data value of each sampling point is converted into binary data with the same bit number for the current window sequence, if the length is insufficient, then 0 supplementing operation is carried out before the highest bit of the binary data, so that the binary data length after conversion of each sampling point is consistent, and a group of binary data samples with the same bit width corresponding to the current window sequence are obtained; the binary data samples are decomposed according to bit positions, binary values of bits at the same position are extracted respectively, the binary values are arranged according to the original time stamp sequence of sampling points to form bit plane sequences of corresponding bits, a plurality of bit plane sequences corresponding to current window sequences in the current period are obtained, the number of the bit plane sequences is the same as the number of bits of each binary data, and similarly, the voltage window sequences are divided to obtain a plurality of bit plane sequences corresponding to the voltage window sequences in the current period.
  3. 3. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 2, wherein the method for acquiring the turnover probability of each bit plane sequence is characterized by comprising the steps of counting the occurrence times of four cases of binary values of 00, 01, 10 and 11 at any two adjacent sampling moments in a certain bit plane sequence corresponding to a current window sequence, taking the ratio of the four occurrence times to the total number of the data of the bit plane sequence as the four turnover probabilities of the bit plane sequence, and obtaining the four turnover probabilities of each bit plane sequence corresponding to the current window sequence in the current period in the same way, and obtaining the four turnover probabilities of each bit plane sequence corresponding to the voltage window sequence in the current period in the same way for the voltage window sequence.
  4. 4. The encryption compression transmission method of the electric energy meter data according to claim 3 is characterized in that the calculation of the turnover randomness of each bit plane sequence comprises the steps of extracting four turnover probabilities of any bit plane sequence for a current window sequence, taking information entropy corresponding to the bit plane sequence as the turnover randomness of the bit plane sequence based on a calculation formula of information entropy, traversing each bit plane sequence to obtain the turnover randomness of each bit plane sequence corresponding to the current window sequence in a current period, and similarly, calculating the turnover randomness of each bit plane sequence corresponding to the voltage window sequence in the current period for a voltage window sequence.
  5. 5. The method for encrypting, compressing and transmitting the data of the electric energy meter according to any one of claims 2 to 4, wherein the steps of determining noise interference layers of each dimension window sequence and performing bit mask processing to obtain purified data corresponding to each dimension window sequence comprise setting an empirical noise threshold value based on a power grid environment and artificial experience in an actual application scene, sequentially comparing the flip randomness of the corresponding bit plane sequence with the empirical noise threshold value from low bit to high bit, obtaining ordinal numbers of binary bits with the first flip randomness lower than the empirical noise threshold value for the current window sequence, taking a plurality of low bit binary bits with the ordinal numbers lower than the binary bit as noise interference layers corresponding to the current window sequence in the current period, setting the binary bit with the highest bit in the noise interference layers as 1, setting the rest binary bit as 0, completing the low bit mask processing of an original data value in the current window sequence, converting the data after the low bit mask processing into binary data, obtaining the current purified data sequence corresponding to the current window sequence in the current period, and obtaining the voltage purified data sequence corresponding to the current window sequence in the current period and the voltage window sequence in the same period.
  6. 6. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 5, wherein the calculating of the trend disorder degree of each dimension window sequence comprises the steps of calculating one fourth of the number of sampling points in a time window in a current period, rounding upwards, taking the rounded upwards value as the upper limit of a hysteresis order range, taking 1 as the lower limit of the hysteresis order range, calculating hysteresis correlation corresponding to any hysteresis order in the hysteresis order range based on an autocorrelation function and a current purification data sequence, taking the average value of the hysteresis correlation of all hysteresis orders as the regularity of the current window sequence in the current period, and obtaining the regularity of the voltage window sequence in the current period in the same way.
  7. 7. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 6, wherein the method for calculating the trend disorder degree of the window sequence of each dimension is characterized by further comprising the steps of regarding a mean value of absolute differences between all adjacent sampling points in a sequence as a change intensity degree for a current purification data sequence, reversely mapping a ratio between the change intensity degree and a regularity absolute value by adopting a natural exponential function, regarding a difference value between 1 and a mapping value as a fluctuation degree of the current window sequence in a current period, regarding a ratio between the length of a noise interference layer and the total length of binary data of the sampling points as a noise degree of the current window sequence in the current period, regarding a product between the fluctuation degree and the noise degree as the trend disorder degree of the current window sequence in the current period, and similarly, calculating the trend disorder degree of the voltage window sequence in the current period for the voltage purification data sequence.
  8. 8. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 7, wherein the calculation of the transmission control coefficient corresponding to each dimension window sequence comprises the steps of reversely mapping the noise degree of the current window sequence in the current period by adopting a natural exponential function for the current purification data sequence, taking the product between the inverse of the corresponding trend confusion degree added with 1 and the mapping value as the transmission control coefficient of the current window sequence in the current period, and similarly, calculating the transmission control coefficient of the voltage window sequence in the current period for the voltage purification data sequence.
  9. 9. The method for encrypting, compressing and transmitting the data of the electric energy meter according to claim 5, wherein the method for executing the corresponding compression strategy and carrying out encryption transmission is characterized by setting a compression threshold based on the requirement of the compression effect in an actual application scene, enabling an LZW algorithm to start updating a dictionary when the transmission control coefficient of a current purification data sequence is greater than or equal to the compression threshold, inputting a new character string mode identified in the current period into the dictionary, compressing the current purification data sequence in the current period by adopting the newly-input dictionary, enabling the LZW algorithm to stop updating a window when the transmission control coefficient of the current purification data sequence is smaller than the compression threshold, and using the existing dictionary only to complete compression, and similarly, executing the corresponding compression strategy for the voltage purification data sequence by adopting the same judging process, and encrypting the compressed data by utilizing an AES algorithm to realize encryption transmission of the data of the electric energy meter.
  10. 10. An electric energy meter data encryption compression transmission system is characterized by comprising a processor, a memory, a communication interface, a data acquisition unit and an electric energy meter communication module, wherein the processor stores computer program instructions for realizing the electric energy meter data encryption compression transmission method according to any one of claims 1 to 9, and the communication interface is electrically connected with the data acquisition unit and the electric energy meter communication module.

Description

Encryption compression transmission method and system for electric energy meter data Technical Field The invention relates to the technical field of data compression transmission, in particular to an encryption compression transmission method and system for electric energy meter data. Background With the deep advancement of smart grid construction, an Advanced-measurement-Infrastructure (AMI), a two-way information interaction system constructed by smart meters, a communication network and a data management system, has become a core facility for supporting smart grid operation and digital transformation of an electric power system. The technical architecture of the AMI comprises an intelligent ammeter terminal, a local area or wide area communication network, a measurement data management platform and a user side interaction system, and supports the functions of minute-level data acquisition and remote control. The intelligent ammeter is used as a terminal sensing node of the AMI and bears key functions such as electricity data acquisition, two-way communication and remote control, and the real-time performance, safety and efficiency of data transmission of the intelligent ammeter are directly related to the reliability of power grid operation and the privacy protection level of users. Currently, the data transmission of the electric energy meter generally adopts a general lossless compression algorithm and a Standard Encryption algorithm, wherein the lossless compression algorithm is such as an LZW algorithm (Lempel-Ziv-Welch-Encoding algorithm), and the Standard Encryption algorithm is such as an AES algorithm (Advanced-Encryption-Standard), and the Standard Encryption algorithm is such as a symmetric block Encryption algorithm. The LZW algorithm maps consecutive character sequences in the input stream to dictionary indices by maintaining a dynamic dictionary, with shorter codes replacing longer character strings to achieve compression. However, the prior art has the obvious defects that when the load of the power grid is stable, the data repetition rate is high, the compression effect is good, but when the power grid has transient fluctuation, such as starting and stopping of high-power equipment and harmonic interference, the LZW algorithm can be judged to be in a new mode, so that the dictionary is quickly expanded and frequently reset, the compression ratio is rapidly reduced, and the compression effect and the transmission efficiency are greatly reduced. Particularly, in the harmonic or micro-jitter environment of the power grid, the LZW dictionary coding can be saturated rapidly due to the fact that a large number of non-repeated noise sequences are identified, so that the compression effect is reduced, and transmission congestion and packet loss risks can be caused. Disclosure of Invention In order to improve the compression transmission efficiency of the data of the electric energy meter under the power grid fluctuation environment and solve the defect that the compression effect is reduced due to the fact that the LZW dictionary coding is easy to quickly saturate due to the fact that a large number of non-repeated noise sequences are identified in the traditional LZW compression algorithm, the invention provides an encryption compression transmission method and system of the data of the electric energy meter, and the technical scheme is as follows: The invention provides an encryption compression transmission method of electric energy meter data, which comprises the steps of collecting electric energy meter data in real time, periodically intercepting a time window to obtain window sequences with multiple dimensions, respectively converting each sampling point in each dimension window sequence into a group of binary data, dividing the binary data into multiple bit plane sequences corresponding to each window sequence, respectively carrying out statistical analysis on each bit plane sequence to obtain the turnover probability of each bit plane sequence, calculating the turnover randomness of each bit plane sequence, determining a noise interference layer of each dimension window sequence based on the turnover randomness, carrying out bit mask processing to obtain purified data corresponding to each dimension window sequence, calculating the trend confusion degree of each dimension window sequence based on the purified data, and calculating the transmission control coefficient corresponding to each dimension window sequence based on the trend confusion degree so as to execute corresponding compression strategy and carry out encryption transmission; The method comprises the steps of acquiring electric energy meter data in real time at a fixed frequency based on a data acquisition unit in the electric energy meter, wherein the electric energy meter data comprises two dimensions of voltage data and current data, presetting a time window length, periodically intercepting the time window to obtain a cur