CN107659629A - A kind of efficient electrical power archives synchronous method suitable for power information acquisition system - Google Patents

A kind of efficient electrical power archives synchronous method suitable for power information acquisition system Download PDF

Info

Publication number
CN107659629A
CN107659629A CN201710852041.7A CN201710852041A CN107659629A CN 107659629 A CN107659629 A CN 107659629A CN 201710852041 A CN201710852041 A CN 201710852041A CN 107659629 A CN107659629 A CN 107659629A
Authority
CN
China
Prior art keywords
archives
bit
terminal
main website
packet
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.)
Granted
Application number
CN201710852041.7A
Other languages
Chinese (zh)
Other versions
CN107659629B (en
Inventor
夏水斌
余鹤
何行
何欢
唐登平
魏胜清
彭翔
李帆
丁黎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hubei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hubei Electric Power 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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Hubei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201710852041.7A priority Critical patent/CN107659629B/en
Publication of CN107659629A publication Critical patent/CN107659629A/en
Application granted granted Critical
Publication of CN107659629B publication Critical patent/CN107659629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols 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 present invention provides a kind of efficient electrical power archives synchronous method suitable for power information acquisition system, comprises the following steps:Main website is ranked up to its electric energy meter archive information according to table address size respectively with terminal, and terminal-pair its sort electric energy meter archives be grouped;The check value that electric energy meter address computation of the terminal based on each packet is respectively grouped;Terminal will verify value set C and report main website, and main website determines whether upload information is completely correct, obtains main website terminal file difference set X and archives indifference set R according to check bit;Main website issues electric energy meter archive information and indifference set R in difference set X, and terminal is synchronous with main website archives according to information realization is issued.The technique effect of the present invention:Greatly reduce main website and synchronously issue data volume to end side archives, the significant increase synchronous efficiency of archives, help to improve the Consumer's Experience of power information acquisition system.

Description

A kind of efficient electrical power archives synchronous method suitable for power information acquisition system
Technical field
The present invention relates to a kind of efficient electrical power archives synchronous method suitable for power information acquisition system.
Background technology
In recent years, as the further genralrlization of national smart grid building-up work, power information acquisition system obtain It is widely applied and achieves preferable effect.But system still has the problem of collection success rate is not high enough, less efficient, The limitation of this existing communication technology in itself has the constraint of system administration aspect again.Wherein taiwan area archives confusion be still influence collection into One key factor of power, and it has an effect on the automatic index such as rate and line loss qualification rate of entering an item of expenditure in the accounts.Current power taiwan area archives Management and safeguard mostly to exist and need the archives between not mature enough manual intervention, Related Supporting Technologies, main website and terminal synchronous The problems such as less efficient.
The synchronous main content for including the following aspects of power information acquisition system archives:Main website archives are synchronous, terminal Archives synchronization and electric energy meter archives are synchronous.Carried out in marketing system after corresponding archives change, it is necessary to be initiated in marketing system Flow is debugged, after acquisition system main website receives debugging work order, associated profiles can be adjusted correspondingly according to work order content; On the other hand, main website can realize accurate File Maintenance and renewal further combined with terminal active reporting information.Present terminal shelves Case is synchronous typically with the following method:Main website and terminal calculate the MD5 values of both archive informations respectively, and then terminal is by its MD5 Value reports;Main website confirms that terminal reports MD5 values and its own archive information MD5 values whether consistent, if unanimously, not to terminal Archives renewal is carried out, whole updating otherwise is carried out to terminal file information.Electric energy meter archives come from the archives that terminal issues, separately Its outer synchronous basic principle is that it first confirms that whether itself archive information is abnormal, if there is abnormal then reporting terminal, otherwise Do not process.Electric energy meter judges the host node address that main website is belonged to by acquisition tasks, and compares the identification of taiwan area identification technology Host node address it is whether consistent, think if inconsistent itself taiwan area Archiveownership exception and do it is abnormal report, main website according to Exception reports and can decide whether to need to carry out archives renewal, and realization and concentrator based on this with reference to marketing system archives Archives it is synchronous, and then realize the synchronization of electric energy meter archives.
It can be seen that archives are synchronously the keys for influenceing electric power information collection system archives synchronous efficiency between main website and concentrator Factor.
The content of the invention
The present invention in view of the above-mentioned problems, with reference to power information acquisition system archives own characteristic, propose a kind of efficient Electric power file synchronization scenario, by the improvement of algorithm, greatly reduce main website and synchronously issue data volume to end side archives, greatly The synchronous efficiency of archives is improved, helps to improve the Consumer's Experience of power information acquisition system.
Technical scheme:A kind of efficient electrical power archives synchronous method suitable for power information acquisition system, bag Include following steps:
Main website is ranked up to its electric energy meter archive information according to table address size respectively with terminal, respectively obtains main website side Ascending order set M1, end side ascending order set M2;And its electric energy meter archives that sort of terminal-pair are grouped, and packet scale N takes even number And size is reasonably chosen according to the scale of taiwan area;
The check value that electric energy meter address computation of the terminal based on each packet is respectively grouped:First by the N number of of each packet Location step-by-step XOR obtains the full information summary I of this packetbit_i, due to the affiliated electric energy table address high byte basic one of same terminal Cause, the I that full information is made a summarybit_iHigh byte 00H is deleted, and can obtain compressing full information summary Ibit_i_com;Then its supervision is calculated Position Cbit_i, that is, obtain each packet checks value Ci, the check value set expression of all packets is C;
Terminal will verify value set C and report main website, and main website determines whether upload information is completely correct according to check bit, if It is no, then the packet index of error of transmission is recorded, and require that terminal uploads the check value of corresponding packet again;If so, then according to it Archives ranking results obtain the compression full information summary I for being grouped and calculating packetbit_temp_com;And with being obtained based on verification value set C To terminal side compression full information summary set B contrasted;So as to obtain main website-terminal file difference set X and archives Indifference set R;
Main website issues electric energy meter archive information and indifference set R in difference set X, and terminal is according to issuing information realization It is synchronous with main website archives.
If M2Middle electric energy meter number can not be evenly divisible by N, i.e., when last organizes insufficient N number of address, address space left high byte Replaced for the address that this TV station regional address high byte low byte is full 0, ensure that packet completes each packet afterwards and contains N number of data.
The check bit Cbit_iWith each packet checks value CiComputational methods be that obtained compression full information is made a summary Ibit_i_comCRC-16 check codes are carried out, obtain check bit Cbit_i;Check bit Cbit_iIt is attached to compression full information summary Ibit_i_comAfterwards, check value C is obtainedi
The technique effect of the present invention:Archives synchronizing process only issues difference table information and set R.Compare archives whole Delivery method, this scheme greatly reduces the archives amount of issuing, and main website and terminal file difference are smaller, and set N is also just smaller, this The advantage of scheme is also more obvious;And set R only includes grouping serial number, the information content for now transmitting non-difference set is also minimum;Separately On the one hand, when calculating check value, same taiwan area electric energy meter address high byte identical characteristic is taken full advantage of, check value is carried out Compression, reduce further upload data volume, improves efficiency.Result of field running shows that carrying archives synchronous method has Greater efficiency, and implementation complexity is relatively low, has preferable practical application and promotional value.
Brief description of the drawings
Fig. 1 carries the sequencer procedure based on table number for the present invention;
Fig. 2 puies forward the contrast flow based on compression full information summary for the present invention;
Fig. 3 is carried archives by the present invention and synchronously issues flow.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, with reference to accompanying drawing of the embodiment of the present invention, Further clear, complete description is done to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is the present invention One kind of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having The every other embodiment obtained under the premise of creative work is made, belongs to the scope of protection of the invention.
Whole archives are ranked up by the first step, terminal with main website according to table address size.In power information acquisition system, The address of terminal and electric energy meter is the compressed code that length is 6 bytes, and terminal and main website will be based on quick sorting algorithm and complete The ascending order arrangement of both archive informations, obtains main website side ascending order set M1, end side ascending order set M2.After sequence is completed, terminal Side archives carry out piecemeal (N takes even number and N can optimize according to taiwan area size) by size N, i.e., per the division of N block electric energy table address For one group, it is assumed that be divided into n groups altogether, represent as follows:
Because same taiwan area electric energy meter address high byte is consistent, if M2Middle electric energy meter number can not be evenly divisible by N, i.e., n-th group is not During the N number of address of foot, address space left is that the address that this TV station regional address high byte low byte is full 0 replaces with high byte, ensures packet Each packet contains N number of data after completing.As shown in Figure 1.
Second step, end side archives are grouped and calculate packet checks value.After packet is completed, end side calculates M2Each point The check value of group, ultimately form terminal file verification value set
C={ c1,c2,L,cn}.
Check value ciThe calculating of (1≤i≤n) is divided into two steps:
(1) N number of address step-by-step XOR obtains the full information summary I of this packet in each packetbit_i(48bit).Due to same The affiliated electric energy table address high byte of one terminal is basically identical, then the I that full information can be made a summarybit_iThe 00H of high byte is deleted, so as to Obtain compressing full information summary Ibit_i_com(40bit)。
(2) I obtained to upper stepbit_i_comCRC-16 check codes are carried out, obtain check bit Cbit_i;Check bit is attached to After compressing full information summary, 56bit check value c of the result as this packet is obtainedi
3rd step, the check value that main website is sent using end side carry out archives contrast, determine archives difference set.It can be divided into The following steps:
(1) terminal sends C and packet size N to main website.Main website is carried out solving parsing and judged based on check bit each to C ciWhether transmit correctly, if each ciAll transmission is correct, then removing check bit successively can obtain compressing full information summary set B ={ Ibit_1_com,Ibit_2_com,L,Ibit_n_comAnd entrance step (2);Otherwise the packet numbering of check errors is recorded, and to end Side sends repeat request, it is desirable to is retransmitted the grouping information of error of transmission;Until receive correct.
(2) main website is to itself archive information ordered set M1Computing is carried out, and operation result and terminal file are compressed entirely Informative abstract set B is compared, and process is as follows:
1. take M1The { 1,2 ..., N } altogether N number of power meter group into archives set Dtemp, and calculated according to second step check value The XOR that step (1) calculates N number of address is worth to this I being groupedbit_temp_com
2. by Ibit_temp_comContrasted with element in set B, as shown in Figure 2.
If
Ibit_temp_com∈ B, that is, i be present and cause Ibit_temp_com=Ibit_i_com
Then illustrate M1{ 1,2 ..., N } block table be already present in terminal file, record packet index value i now To indifference set R;And shifting N obtains new electric energy meter packet after being grouped electric energy meter sequence number, that is, takes M1{ (N+1), (N ... ,+2) 2N } individual power meter group is into new archive set DtempAnd calculate new Ibit_temp_com(only need afterwards with B Ibit_i+1_comAnd its value contrast afterwards).
If
Then record DtempThe 1st electric energy meter to difference set X;And obtain new electricity by moving 1 after packet electric energy meter sequence number Energy table packet, that is, take M1{ 2,3 .., (N+1) } individual power meter group into new archive set DtempAnd calculate new Ibit_temp_com (I corresponding with maximum maxR in R is needed afterwardsbit_maxR_comValue contrast afterwards).
3. by that analogy, repeat step is 2. until M1In electric energy meter be all fetched into.
4th step, by above-mentioned steps, electric energy meter indifference set R and difference set X are obtained, need not if X is sky It is synchronous;If X is not sky, main website need to only issue in X set index value in corresponding electric energy meter archives and R.End side parsing master Station issues archives renewal message, and according to information in non-difference set R, the reservation to same files information block and difference can be achieved The deletion of archive information packet;According to information in difference set X, the renewal of difference file can be achieved, as shown in Figure 3.
Archives synchronizing process only issues difference table information and set R it can be seen from synchronizing process.The archives that compare are complete Subordinate's forwarding method, this scheme greatly reduces the archives amount of issuing, and main website and terminal file difference are smaller, and set X is also just smaller, The advantage of this scheme is also more obvious;And set R only includes grouping serial number, the information content for now transmitting non-difference set is also minimum; On the other hand, when calculating check value, same taiwan area electric energy meter address high byte identical characteristic is taken full advantage of, check value is carried out Compression, reduce further upload data volume, improves efficiency.Result of field running shows, carries archives synchronous method tool There is greater efficiency, and implementation complexity is relatively low, has preferable practical application and promotional value.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to the limitation to the application is interpreted as, one of ordinary skill in the art within the scope of application can be to above-mentioned Embodiment is changed, changed, replacing and modification.

Claims (3)

1. a kind of efficient electrical power archives synchronous method suitable for power information acquisition system, it is characterised in that including following step Suddenly:
Main website is ranked up to its electric energy meter archive information according to table address size respectively with terminal, respectively obtains main website side ascending order Set M1, end side ascending order set M2;And its electric energy meter archives that sort of terminal-pair are grouped, packet scale N takes even number and big The small scale according to taiwan area is reasonably chosen;
The check value that electric energy meter address computation of the terminal based on each packet is respectively grouped:N number of address of each packet is pressed first Position XOR obtains the full information summary I of this packetbit_i, will because the affiliated electric energy table address high byte of same terminal is basically identical The I of full information summarybit_iHigh byte 00H is deleted, and can obtain compressing full information summary Ibit_i_com;Then its check bit is calculated Cbit_i, that is, obtain each packet checks value Ci, the check value set expression of all packets is C;
Terminal will verify value set C and report main website, and main website determines whether upload information is completely correct according to check bit, if it is not, then The packet index of error of transmission is recorded, and requires that terminal uploads the check value of corresponding packet again;If so, then arranged according to its archives Sequence result obtains the compression full information summary I for being grouped and calculating packetbit_temp_com;And the end with being obtained based on verification value set C Side compression full information summary set B is contrasted;So as to obtain main website-terminal file difference set X and archives indifference Set R;
Main website issues electric energy meter archive information and indifference set R in difference set X, and terminal is according to issuing information realization and master Stand the synchronizations of archives.
2. a kind of efficient electrical power archives synchronous method suitable for power information acquisition system according to claim 1, its It is characterised by,
If M2Middle electric energy meter number can not be evenly divisible by N, i.e., when last organizes insufficient N number of address, address space left is this TV station with high byte Regional address high byte low byte replaces for the address of full 0, ensures that each packet contains N number of data after being grouped completion.
3. a kind of efficient electrical power archives synchronous method suitable for power information acquisition system according to claim 1, its It is characterised by, the check bit Cbit_iWith each packet checks value CiComputational methods be that obtained compression full information is made a summary Ibit_i_comCRC-16 check codes are carried out, obtain check bit Cbit_i;Check bit Cbit_iIt is attached to compression full information summary Ibit_i_comAfterwards, check value C is obtainedi
CN201710852041.7A 2017-09-19 2017-09-19 Efficient electric power archive synchronization method suitable for electricity consumption information acquisition system Active CN107659629B (en)

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 true CN107659629A (en) 2018-02-02
CN107659629B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147959A (en) * 2020-01-06 2020-05-12 广东电科院能源技术有限责任公司 Processing method and device for change information of centralized meter reading system equipment and computer equipment
CN111767292A (en) * 2020-05-26 2020-10-13 宁波三星医疗电气股份有限公司 Ammeter communication module file fault tolerance method
CN113489794A (en) * 2021-07-07 2021-10-08 智洋创新科技股份有限公司 Communication interaction method for intelligent identification master station and intelligent station end equipment of transformer substation
CN113591027A (en) * 2021-07-05 2021-11-02 宁波三星医疗电气股份有限公司 Method for realizing file synchronization between concentrator and local communication module

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
IEEE: "《Generating synthetic electric power system data with accurate electric topology and parameters》", 《2016 51ST INTERNATIONAL UNIVERSITIES POWER ENGINEERING CONFERENCE (UPEC)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147959A (en) * 2020-01-06 2020-05-12 广东电科院能源技术有限责任公司 Processing method and device for change information of centralized meter reading system equipment and computer equipment
CN111767292A (en) * 2020-05-26 2020-10-13 宁波三星医疗电气股份有限公司 Ammeter communication module file fault tolerance method
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

Also Published As

Publication number Publication date
CN107659629B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN107659629A (en) A kind of efficient electrical power archives synchronous method suitable for power information acquisition system
CN111125089B (en) Time sequence data storage method, device, server and storage medium
WO2021115021A1 (en) Data processing method and apparatus, terminal device and computer-readable storage medium
CN112835738B (en) Method for constructing strip data storage structure
CN102118293B (en) Method for compressing and storing communication messages
CN103516529A (en) Management method, device and system of configuration files
CN112068865A (en) Efficient intelligent gas meter differential firmware upgrading method
CN101840366A (en) Storage method of loop chain type n+1 bit parity check code
CN101702639A (en) Check value calculation method and device of cyclic redundancy check
CN114449018B (en) Automatic log file uploading method and system for power acquisition terminal
CN104303470A (en) Apparatus and method of transmitting and receiving packet in a broadcasting and communication system
CN101106477A (en) Method for generating incremental data based on flow number
CN111464635A (en) Dictionary index transmission method and device
CN104701982B (en) A kind of method for carrying out automatic upgrading to distribution line monitoring terminal
CN104601374A (en) Network fault processing method and device for numerical control machine tool
CN102868557B (en) Method for realizing configuration synchronization between network manager and xPON (x-passive optical network) device
CN107064621B (en) Intelligent electric meter data compression method and system
CN101848055A (en) Method and device for correcting data
CN105631000A (en) Terminal-caching data compression method based on mobile terminal position characteristic information
CN104378239A (en) Rapid reliability index statistical system and method based on cluster frame
CN104636377A (en) Data compression method and equipment
CN103530153A (en) Remote updating method of user electricity utilization information collecting terminals
CN111447229A (en) Large-scale data acquisition method and device based on compressed sensing theory
CN115470241A (en) Aggregated data updating method and device based on mapping dictionary table
CN112510826B (en) Method for determining configuration change boundary of modification and extension intelligent recorder

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