CN107659629B - Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system - Google Patents
Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system Download PDFInfo
- Publication number
- CN107659629B CN107659629B CN201710852041.7A CN201710852041A CN107659629B CN 107659629 B CN107659629 B CN 107659629B CN 201710852041 A CN201710852041 A CN 201710852041A CN 107659629 B CN107659629 B CN 107659629B
- Authority
- CN
- China
- Prior art keywords
- terminal
- master station
- bit
- file
- electric energy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000005611 electricity Effects 0.000 title abstract description 7
- 230000001174 ascending effect Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000006835 compression Effects 0.000 claims description 2
- 238000007906 compression Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 3
- 230000001360 synchronised effect Effects 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000006066 Comins reaction Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a high-efficiency electric power archive synchronization method suitable for an electricity consumption information acquisition system, which comprises the following steps of: the master station and the terminal sort the electric energy meter file information according to the size of the meter address respectively, and the terminal groups the sorted electric energy meter files; the terminal calculates the check value of each group based on the address of the electric energy meter of each group; the terminal reports the check value set C to the master station, and the master station determines whether the uploaded information is completely correct according to the supervision bits to obtain a master station-terminal file difference set X and a file non-difference set R; and the master station issues the electric energy meter file information in the difference set X and the non-difference set R, and the terminal realizes the synchronization with the master station file according to the issued information. The invention has the technical effects that: greatly reduced master station to the synchronous data volume of issuing of terminal side archives, greatly promoted archives synchronous efficiency, help improving the user experience of power consumption information acquisition system.
Description
Technical Field
The invention relates to a high-efficiency electric power archive synchronization method suitable for an electricity utilization information acquisition system.
Background
In recent years, with the further popularization of the construction work of the national smart grid, the electricity utilization information acquisition system is widely applied and obtains better effect. However, the system still has the problems of low acquisition success rate and low efficiency, which not only has the limitations of communication technology, but also has the constraints of system management level. The disordered platform area archives are still an important factor influencing the acquisition success rate, and the indexes of automatic account rate, line loss qualification rate and the like are also influenced. Most of the current file management and maintenance of the power distribution area have the problems of manual intervention, immature related supporting technologies, low file synchronization efficiency between a main station and a terminal and the like.
The file synchronization of the electricity utilization information acquisition system mainly comprises the following contents in the following aspects: master station file synchronization, terminal file synchronization and electric energy meter file synchronization. After corresponding file change is carried out in the marketing system, a debugging process needs to be initiated in the marketing system, and after a master station of the acquisition system receives a debugging work order, corresponding adjustment can be carried out on related files according to the content of the work order; on the other hand, the master station can further combine the terminal to report information actively to realize accurate file maintenance and update. The current terminal file synchronization generally adopts the following method: the master station and the terminal respectively calculate MD5 values of the archive information of the master station and the terminal, and then the terminal reports the MD5 values; the master station confirms whether the value of MD5 reported by the terminal is consistent with the value of self file information MD5, if so, the file updating is not carried out on the terminal, otherwise, the file information of the terminal is integrally updated. The electric energy meter file comes from a file issued by a terminal, and in addition, the synchronization basic principle is that whether the file information of the electric energy meter is abnormal or not is firstly confirmed, if the file information is abnormal, the file information is reported to the terminal, and if not, the file information is not processed. The electric energy meter judges the address of the main node to which the main station belongs according to the collection task, compares the addresses of the main nodes identified by the district identification technology to determine whether the addresses of the main nodes are consistent, if not, the main station considers that the self district file is abnormal in attribution and reports the abnormal, and the main station can determine whether to update the file according to the abnormal report and the marketing system file, and realizes the file synchronization with the concentrator on the basis of the file update and further realizes the file synchronization of the electric energy meter.
Therefore, the file synchronization between the master station and the concentrator is a key factor influencing the file synchronization efficiency of the power information acquisition system.
Disclosure of Invention
Aiming at the problems, the invention provides an efficient electric power archive synchronization scheme by combining the characteristics of the archive of the power consumption information acquisition system, greatly reduces the synchronous data volume issued by the main station to the terminal side archive through the improvement of the algorithm, greatly improves the archive synchronization efficiency, and is beneficial to improving the user experience of the power consumption information acquisition system.
The technical scheme of the invention is as follows: a high-efficiency electric power archive synchronization method suitable for a power utilization information acquisition system comprises the following steps:
the master station and the terminal sort the electric energy meter file information according to the meter address size respectively to obtain a master station side ascending order set M1Terminal side ascending order set M2(ii) a The terminal groups the sorted electric energy meter files, and the grouping scale N is an even number and the size is reasonably selected according to the scale of the platform area;
the terminal calculates the check value of each group based on the electric energy meter address of each group: firstly, carrying out bitwise XOR on N addresses of each group to obtain a full information abstract I of the groupbit_iBecause the high bytes of the electric energy meter addresses belonging to the same terminal are basically consistent, the I of the full information abstract is extractedbit_iDeleting high byte 00H to obtain compressed full information abstract Ibit_i_com(ii) a Then calculates its supervisory bit Cbit_iObtaining the check value C of each groupiThe check value set of all the packets is denoted as C;
the terminal reports the check value set C to the master station, the master station determines whether the uploaded information is completely correct according to the supervision bit, if not, the master station records the group index with transmission error, and requires the terminal to upload the check value of the corresponding group again; if yes, obtaining the grouping according to the file sorting result and calculating the compression full information abstract I of the groupingbit_temp_com(ii) a And comparing the set with a terminal side compressed full information summary set B obtained based on the check value set C; thereby obtaining a master station-terminal file difference set X and filesA set of no differences R;
and the master station issues the electric energy meter file information in the difference set X and the non-difference set R, and the terminal realizes the synchronization with the master station file according to the issued information.
If M is2The number of the middle electric energy meters cannot be divided by N, namely when the last group of addresses is less than N, the rest addresses are replaced by addresses with high bytes as the address of the station area and low bytes as all 0, and each group is guaranteed to contain N data after the grouping is finished.
The supervision position Cbit_iAnd each packet check value CiThe calculation method comprises the following steps of obtaining a compressed full information abstract Ibit_i_comPerforming CRC-16 check coding to obtain a supervision bit Cbit_i(ii) a Supervision position Cbit_iAttached to compressed full message digest Ibit_i_comThen, a check value C is obtainedi。
The invention has the technical effects that: the file synchronization process only issues the difference table information and the set R. Compared with a file all-issuing method, the scheme greatly reduces the file issuing amount, and the smaller the difference between the master station and the terminal file is, the smaller the set N is, and the more obvious the advantages of the scheme are; the set R only contains packet sequence numbers, and the information quantity of the transmission non-differential set is minimum at the moment; on the other hand, when the check value is calculated, the characteristic that the high bytes of the electric energy meter address in the same station area are the same is fully utilized, the check value is compressed, the uploading data volume is further reduced, and the efficiency is improved. The field operation result shows that the proposed file synchronization method has high efficiency, low implementation complexity and good practical application and popularization values.
Drawings
FIG. 1 is a table number based sorting process proposed by the present invention;
FIG. 2 is a comparison process based on compressing the full message abstract according to the present invention;
FIG. 3 is a flowchart of the present invention for synchronously issuing a file.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly and completely apparent, the technical solutions in the embodiments of the present invention are further clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are one, 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.
Firstly, the terminal and the master station sort all the files according to the size of the table address. In the electricity consumption information acquisition system, the addresses of the terminal and the electric energy meter are compressed BCD codes with the length of 6 bytes, the terminal and the master station finish ascending order arrangement of archive information of the terminal and the electric energy meter based on a quick ordering algorithm to obtain a master station side ascending order set M1Terminal side ascending order set M2. After the sorting is completed, the terminal side files are partitioned according to the size N (N is an even number and N can be optimized according to the size of the station area), that is, each N blocks of electric energy meter addresses are divided into one group, and if the addresses are totally divided into N groups, the method is expressed as follows:
if M is consistent due to the high byte of the electric energy meter address in the same region2When the number of the middle electric energy meters cannot be divided by N, namely the nth group is less than N addresses, the rest addresses are replaced by addresses with high bytes as the address of the station area and low bytes as all 0, and each group is ensured to contain N data after the grouping is finished. As shown in fig. 1.
And secondly, grouping the terminal side files and calculating a grouping check value. After the grouping is completed, the terminal side calculates M2The check value of each group finally forms a terminal archive check value set
C={c1,c2,L,cn}.
Check value ci(i is more than or equal to 1 and less than or equal to n) is calculated in two steps:
(1) n addresses in each group are subjected to bitwise XOR to obtain a full information abstract I of the groupbit_i(48 bit). Because the high bytes of the electric energy meter addresses belonging to the same terminal are basically consistent, the I of the full information summary can be extractedbit_iThe 00H deletion of the high byte is,thereby obtaining a compressed full message abstract Ibit_i_com(40bit)。
(2) For I obtained in the previous stepbit_i_comPerforming CRC-16 check coding to obtain a supervision bit Cbit_i(ii) a After the parity bits are appended to the compressed full message digest, a result of 56 bits is obtained as the check value c for this packeti。
And thirdly, the master station compares the files by using the check value sent by the terminal side to determine a file difference set. The method comprises the following steps:
(1) the terminal transmits C and the packet size N to the master station. The master station resolves the C and judges each C based on the check bitiWhether or not transmission is correct, if each ciIf the transmission is correct, the supervision bits are removed in sequence to obtain a compressed full information summary set B ═ Ibit_1_com,Ibit_2_com,L,Ibit_n_comAnd entering the step (2); otherwise, recording the packet number with the error check, sending a retransmission request to the terminal side, and requesting to retransmit the packet information with the error transmission; until the reception is correct.
(2) The master station sorts the self file information into a set M1And (3) performing operation, and comparing the operation result with the terminal file compressed full information abstract set B, wherein the process is as follows:
① get M1N electric energy meters of {1,2, …, N } form a file set DtempAnd calculating the XOR value of the N addresses according to the second check value calculating step (1) to obtain the I of the groupbit_temp_com。
② mixing Ibit_temp_comIn contrast to the elements in set B, as shown in fig. 2.
If it is
Ibit_temp_comE.g. there is I so that Ibit_temp_com=Ibit_i_com
Then explain M1The {1,2, …, N } block table of (A) already exists in the terminal archive, records the grouping index value i at this time to the set R of no difference; and the serial number of the grouped electric energy meters is shifted backwards by N to obtain a new electric energy meter group, namely the Mth electric energy meter group is taken1The { (N +1), (N +2), …,2N } electric energy meters form a new file set DtempAnd meterCalculating new Ibit_temp_com(thereafter only the same as I in Bbit_i+1_comAnd subsequent value comparisons).
If it is
③ and so on, repeat step ② until M1The electric energy meters in the system are all taken out.
Step four, obtaining a non-difference set R and a difference set X of the electric energy meter through the steps, and if X is empty, the synchronization is not needed; if X is not empty, the master station only needs to issue the corresponding electric energy meter file in the X set and the index value in the R. The terminal side analyzes the master station to send file updating messages, and can realize the reservation of the same file information group and the deletion of different file information groups according to the information in the non-difference set R; based on the information in the difference set X, updating of the difference file can be achieved, as shown in FIG. 3.
As can be seen from the synchronization process, the archive synchronization process only issues the difference table information and the set R. Compared with a file all-issuing method, the file issuing amount is greatly reduced by the scheme, and the smaller the difference between the master station and the terminal file is, the smaller the set X is, and the more obvious the advantages of the scheme are; the set R only contains packet sequence numbers, and the information quantity of the transmission non-differential set is minimum at the moment; on the other hand, when the check value is calculated, the characteristic that the high bytes of the electric energy meter address in the same station area are the same is fully utilized, the check value is compressed, the uploading data volume is further reduced, and the efficiency is improved. The field operation result shows that the proposed file synchronization method has high efficiency, low implementation complexity and good practical application and popularization values.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (2)
1. A high-efficiency electric power archive synchronization method suitable for a power consumption information acquisition system is characterized by comprising the following steps:
the master station and the terminal sort the electric energy meter file information according to the meter address size respectively to obtain a master station side ascending order set M1Terminal side ascending order set M2(ii) a The terminal groups the sorted electric energy meter files, and the grouping scale N is an even number and the size is reasonably selected according to the scale of the platform area;
the terminal calculates the check value of each group based on the electric energy meter address of each group: firstly, carrying out bitwise XOR on N addresses of each group to obtain a full information abstract I of the groupbit_iSummarizing the full information Ibit_iDeleting the high byte 00H to obtain a compressed full information abstract Ibit_i_com(ii) a Then calculates its supervisory bit Cbit_iObtaining the check value C of each groupiThe check value set of all the packets is denoted as C;
the terminal reports the check value set C to the master station, the master station determines whether the uploaded information is completely correct according to the supervision bit, if not, the master station records the group index with transmission error, and requires the terminal to upload the check value of the corresponding group again; if yes, obtaining the grouping according to the file sorting result and calculating the compression full information abstract I of the groupingbit_temp_com(ii) a And comparing the set with a terminal side compressed full information summary set B obtained based on the check value set C; thereby obtaining a master station-terminal file difference set X and a file non-difference set R;
the master station issues the electric energy meter file information in the difference set X and the non-difference set R, and the terminal realizes the synchronization with the master station file according to the issued information;
the supervision position Cbit_iAnd each packet check value CiThe calculation method comprises the following steps of obtaining a compressed full information abstract Ibit_i_comPerforming CRC-16 check coding to obtain a supervision bit Cbit_i(ii) a Supervision position Cbit_iAttached to compressed full message digest Ibit_i_comThen, a check value C is obtainedi。
2. The method for synchronizing the high-efficiency power file of the power consumption information acquisition system as claimed in claim 1,
if M is2The number of the middle electric energy meters cannot be divided by N, namely when the last group of addresses is less than N, the rest addresses are replaced by addresses with high bytes as the address of the station area and low bytes as all 0, and each group is guaranteed to contain N data after the grouping is finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710852041.7A CN107659629B (en) | 2017-09-19 | 2017-09-19 | Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710852041.7A CN107659629B (en) | 2017-09-19 | 2017-09-19 | Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107659629A CN107659629A (en) | 2018-02-02 |
CN107659629B true CN107659629B (en) | 2020-06-02 |
Family
ID=61129722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710852041.7A Active CN107659629B (en) | 2017-09-19 | 2017-09-19 | Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107659629B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147959B (en) * | 2020-01-06 | 2021-12-28 | 南方电网电力科技股份有限公司 | Processing method and device for change information of centralized meter reading system equipment and computer equipment |
CN111767292B (en) * | 2020-05-26 | 2024-07-02 | 宁波三星医疗电气股份有限公司 | File fault-tolerant method for ammeter communication module |
CN113591027A (en) * | 2021-07-05 | 2021-11-02 | 宁波三星医疗电气股份有限公司 | Method for realizing file synchronization between concentrator and local communication module |
CN113489794A (en) * | 2021-07-07 | 2021-10-08 | 智洋创新科技股份有限公司 | Communication interaction method for intelligent identification master station and intelligent station end equipment of transformer substation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101718854A (en) * | 2009-11-27 | 2010-06-02 | 深圳市科陆电子科技股份有限公司 | Management method for ammeter in concentrator |
CN102142863A (en) * | 2011-01-30 | 2011-08-03 | 重庆电力科学试验研究院 | Data reporting method and system |
CN102737491A (en) * | 2012-06-28 | 2012-10-17 | 杭州讯能科技有限公司 | Electric power meter reading system |
CN102882980A (en) * | 2012-10-19 | 2013-01-16 | 国电南瑞科技股份有限公司 | Advanced material information (AMI) collection system file synchronization method |
CN104978627A (en) * | 2015-06-13 | 2015-10-14 | 烟台东方威思顿电气股份有限公司 | Inner energy meter file updating method of electric force acquisition terminal |
-
2017
- 2017-09-19 CN CN201710852041.7A patent/CN107659629B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101718854A (en) * | 2009-11-27 | 2010-06-02 | 深圳市科陆电子科技股份有限公司 | Management method for ammeter in concentrator |
CN102142863A (en) * | 2011-01-30 | 2011-08-03 | 重庆电力科学试验研究院 | Data reporting method and system |
CN102737491A (en) * | 2012-06-28 | 2012-10-17 | 杭州讯能科技有限公司 | Electric power meter reading system |
CN102882980A (en) * | 2012-10-19 | 2013-01-16 | 国电南瑞科技股份有限公司 | Advanced material information (AMI) collection system file synchronization method |
CN104978627A (en) * | 2015-06-13 | 2015-10-14 | 烟台东方威思顿电气股份有限公司 | Inner energy meter file updating method of electric force acquisition terminal |
Non-Patent Citations (1)
Title |
---|
《Generating synthetic electric power system data with accurate electric topology and parameters》;IEEE;《2016 51st International Universities Power Engineering Conference (UPEC)》;20160930;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN107659629A (en) | 2018-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107659629B (en) | Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system | |
CN101359981B (en) | Method, apparatus and system for data packet redundant encoding and decoding | |
CN103379136A (en) | Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data | |
CN102804661B (en) | Block aggregation of objects in a communication system | |
CN103888317B (en) | A kind of unrelated network redundancy flow removing method of agreement | |
CN108833058B (en) | Dynamic data compression and decompression method in communication process of wide area measurement system | |
CN101651709B (en) | Method for calibrating integrity of P2P download files | |
CN102202349B (en) | Wireless sensor networks data compression method based on self-adaptive optimal zero suppression | |
CN109510687A (en) | A kind of fountain code encoding method based on satellite communication | |
CN111464635B (en) | Dictionary index transmission method and device | |
CN104380832A (en) | Compression devices, decompression devices, compression methods, and decompression methods | |
CN101222297A (en) | Interlaced code and network code combined data distribution method | |
CN102082662B (en) | Quantum safety communication method based on synchronous random number information base information retrieval | |
CN108153483A (en) | A kind of time series data compression method based on attribute grouping | |
CN109274462B (en) | Image transmission method based on improved online fountain codes | |
Yang et al. | SolarCode: Utilizing erasure codes for reliable data delivery in solar-powered wireless sensor networks | |
CN104104727B (en) | Raptor code based large file transmission method | |
CN103152606B (en) | Video file processing method and device, system | |
CN101621681A (en) | Method and equipment for adjusting video communication quality | |
CN104701982B (en) | A kind of method for carrying out automatic upgrading to distribution line monitoring terminal | |
CN105631000A (en) | Terminal-caching data compression method based on mobile terminal position characteristic information | |
CN106790550B (en) | A kind of system suitable for the compression of power distribution network monitoring data | |
CN114024952B (en) | File compression transmission method based on DL/T698.45-2007 protocol | |
CN104935406B (en) | A kind of data compression of intelligent grid communication and decompression method and intelligent grid communication system | |
CN1949761B (en) | Data synchronous method and different coding method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |