CN104978842B - A kind of method of low pressure concentrator clock self-regeneration - Google Patents

A kind of method of low pressure concentrator clock self-regeneration Download PDF

Info

Publication number
CN104978842B
CN104978842B CN201510314588.2A CN201510314588A CN104978842B CN 104978842 B CN104978842 B CN 104978842B CN 201510314588 A CN201510314588 A CN 201510314588A CN 104978842 B CN104978842 B CN 104978842B
Authority
CN
China
Prior art keywords
clock
concentrator
sample
sample table
ammeter
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
Application number
CN201510314588.2A
Other languages
Chinese (zh)
Other versions
CN104978842A (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.)
Yantai Dongfang Wisdom Electric Co Ltd
Original Assignee
Yantai Dongfang Wisdom Electric 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 Yantai Dongfang Wisdom Electric Co Ltd filed Critical Yantai Dongfang Wisdom Electric Co Ltd
Priority to CN201510314588.2A priority Critical patent/CN104978842B/en
Publication of CN104978842A publication Critical patent/CN104978842A/en
Application granted granted Critical
Publication of CN104978842B publication Critical patent/CN104978842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method of low pressure concentrator clock self-regeneration.First, concentrator determines whether clock is abnormal by one group of logic judgment;It is if abnormal, then concentrator presses ad hoc rules, selection certain amount enters row clock copy reading from the electric energy meter of its management, after removing meter reading communication channel delay and reading the asynchronous error brought of sample table, concentrator calculates most believable value in all sample table clock datas according to algorithm, finally completes the check and correction of concentrator clock.Whole clock repair process takes full advantage of the intrinsic electric energy meter and channel resource in low-voltage platform area, self diagnosis, self-healing, it is not necessary to manual intervention.With it, concentrator when the ammeter clock that is arrived using copy reading is come reverse school, can realize the self-regeneration of clock when confirming that clock has been lost or be wrong.

Description

A kind of method of low pressure concentrator clock self-regeneration
Technical field
The present invention relates to a kind of self-regeneration method of low pressure concentrator under loss of clock or clock abnormal conditions, belong to Power information acquisition technique field.
Background technology
With the continuous development of power information acquisition system, to 2015 the end of the year whole nation there will be over 300,000,000 residents and realize Long-range, automatic coppying meter, it is related to millions of individual taiwan areas and concentrator devices.In the application model of power information acquisition system In, clock is a core parameter, and clock is abnormal on being influenceed caused by data acquisition and application just it is increasingly evident that showing Come.Power information acquisition system is using top-down Clock management mechanism at present, by clock of the satellite clock as system Source, main website server is synchronous with satellite clock holding by dedicated channel, using telecommunication mode from main website to concentrator, With wireless public network(GPRS/CDMA)Based on, therefore row clock inspection and synchronization are generally entered for the cycle with day or week, usually then rely on The clock unit of concentrator in itself ensures the accuracy of clock.Under the so huge scale of construction, clock is different caused by various factors Often it is very difficult to avoid completely, for example Clock battery failure, clock crystal oscillator failure, device aging, software fault, extreme condition trigger Clock entanglement etc..Once clock is abnormal, especially concentrator clock is abnormal, and chain type will be caused to influence:
1), influence judgement of the concentrator to the meter reading period, cause meter reading task normally to start;
2), markers when influenceing concentrator meter reading, such as the freezing data of one future time point of copy reading causes copy reading to lose Lose;
3), influence the data storage of concentrator, deposit mistake when to cause concentrator by real time data timing unloading be historical data Position;
4), influence the statistical function of concentrator, cause day statistics, moon statistics, the mistake of statistics at times;
5), influence the alarm function of concentrator, including judge the accuracy of anomalous event, the markers of reported event, cause Report by mistake, misrepresent deliberately, misled to administrative staff.
According to existing design, concentrator can only wait main website when next in the case of loss of clock or mistake Clock proof cycle checks and corrected clock, generally after 1 day or more days, and at this moment often to data acquisition, system The promptness and accuracy of meter generate the influence for being not easy to retrieve.
The content of the invention
The technical problem to be solved by the invention is to provide a kind of method of low pressure concentrator clock self-regeneration, pass through This method, concentrator can be when confirming that clock has been lost or be wrong, when the ammeter clock that is arrived using copy reading is come reverse school, realization The self-regeneration of clock.
In order to solve the above technical problems, present invention employs following technical scheme.
A kind of method of low pressure concentrator clock self-regeneration, it is characterised in that follow the steps below:
1), concentrator with the fixed cycle check present clock, according to the validity of following logic judgment clock:
2000 ≤ Y ≤ 2100;
1 ≤ M ≤ 12;
When M values are 1,3,5,7,8,10,12,1≤D≤31;
When M values are 4,6,9,11,1≤D≤30;
During the integral multiple that M values are 2 and Y value is 4,1≤D≤29;
When M values are 2 and the integral multiple of Y value non-4,1≤D≤28;
0 ≤ h ≤ 23;
0 ≤ m ≤ 59;
0 ≤ s ≤ 59;
Y represents year, and M represents the moon, and D represents day, and when h is represented, m, which is represented, to be divided, and s represents the second;
2), when concentrator is according to step 1)When judging present clock to be invalid, then according to following principle from the concentrator pipe A number of sample is chosen in the ammeter of reason and enters row clock copy reading:
During S≤30, n=S;
S>When 30, n=30;
S represents the ammeter total quantity of concentrator management, n representative sample quantity;
3), start the timer of concentrator and start the clock of n electric energy meter of copy reading successively, by n-th sample table of copy reading Message send and be designated as t constantlyn , t is designated as at the time of sample table returned packet will be receivedn ';For copy reading failure and clock without The ammeter of effect is then rejected from sample, and the method for ammeter clock Effective judgement is the same as step 1)Middle concentrator clock validity is sentenced Disconnected method;
4), the half-duplex channel calculated for every sample meter during copy reading ammeter clock is delayed:
5), the clock that sample table returns is designated as T respectively1 、T2、……Tn , according to step 4)The half-duplex channel of middle calculating Delay calculates revised sample table clock:
Tn '=Tn n
6), delay of the 2-n sample table meter reading moment relative to the 1st sample table meter reading moment is calculated as follows:
n=tn '-t1 '
7), according to step 6)Obtained delay product, with t1 'On the basis of the moment, calculate all sample tables according to the following formula same The clock at one moment:
T" n=Tn '-△n
8), according to the following formula, under same time reference, calculate time deviation of each sample table relative to other sample tables Sum:
9), set the optimal value of sample clock data as TS, and T is obtained by following formulaSValue:
During n≤2,
n>When 2, the minimum value in Pn is searched, if minimum value is Pi, then TS=T" i
10), will complete sample clock optimal value calculate at the time of be designated as ts, and be calculated as follows for when repairing concentrator The mesh of clock
Scale value Td
Td=TS + (ts-t1 );
11), concentrator by clock setting be Td, complete clock reparation.
Preferably, the record of each clock amendment is stored in daily record for retrospect;The record bag of the clock amendment Clock after including clock before correcting and correcting.
The present invention compared with prior art, has advantages below:
1), concentrator can actively monitoring oneself clock it is whether normal, when confirming clock exception, copy reading user can be passed through The mode of ammeter realizes self-regeneration, so as to ensureing that meter reading task is unaffected;
2), the method for clock reparation reduces sample data based on the cluster sampling to batch ammeter, and by tailor-made algorithm The error that discreteness and communication channel delay are brought, in sample size abundance, precision is higher;
3), clock repair process borrow existing channel resource, without increasing any hardware, self diagnosis, self-healing, during reparation Between it is short, it is not necessary to manual intervention, and normal meter reading will not being had an impact;
4), be widely used in carrier wave, be wireless, in the centralized meter-reading system of various communication modes and networking mode such as RS485.
Embodiment
The present invention is further illustrated below in conjunction with instantiation.
1), concentrator with the fixed cycle check present clock, according to the validity of following logic judgment clock:
2000 ≤ Y ≤ 2100;
1 ≤ M ≤ 12;
When M values are 1,3,5,7,8,10,12,1≤D≤31;
When M values are 4,6,9,11,1≤D≤30;
During the integral multiple that M values are 2 and Y value is 4,1≤D≤29;
When M values are 2 and the integral multiple of Y value non-4,1≤D≤28;
0 ≤ h ≤ 23;
0 ≤ m ≤ 59;
0 ≤ s ≤ 59;
Y represents year, and M represents the moon, and D represents day, and when h is represented, m, which is represented, to be divided, the behalf second.
2), when concentrator is according to step 1)When judging present clock to be invalid, then according to following principle from the concentrator pipe A number of sample is chosen in the ammeter of reason and enters row clock copy reading:
During S≤30, n=S;
S>When 30, n=30;
S represents ammeter total quantity, n representative sample quantity.
3), start the timer of concentrator and start the clock of n electric energy meter of copy reading successively, by the 1st sample table of copy reading Sending for message is designated as t constantly1, t is designated as at the time of receiving ammeter returned packet1 ;Equally, by the 2-n sample table of copy reading Sending for message is designated as t respectively constantly2 、t3、…… tn, t is designated as respectively at the time of receiving sample statistical tables and reports text2 、t3 、…… tn ;Then rejected for the invalid table of copy reading failure and clock from sample, the same step of method of ammeter clock Effective judgement 1)The determination methods of middle concentrator clock validity.
4), because low pressure centralized automatic meter-reading generally uses power line carrier communication mode, be characterized in that communication channel delay is longer, institute With the half-duplex channel delay that must be directed to during every sample meter calculates copy reading ammeter clock:
,... ...
5), the clock that sample table returns is designated as T respectively1、T2、…… Tn , it is known that TnNot actually tn Moment The clock of sample table, but (tn - δn) moment sample table clock, it is therefore desirable to by step 4)The half-duplex channel of middle calculating prolongs When calculate amendment after(I.e. real tn Moment)Sample table clock:
T1=T11, T2 =T2 2... ... Tn =Tnn。
6), because the copy reading process of n table is successively to perform, therefore T1 —Tn Be not n table synchronization when Clock is, it is necessary to unified to a reference instant.The 2-n sample table meter reading moment is calculated relative to the 1st sample table meter reading moment Delay:
1=t1 -t1 , △2=t2 -t1 ... ... △n=tn -t1
7), according to above-mentioned delay, with t1 On the basis of the moment calculate the clock of all sample tables in synchronization, so as to than Compared with:
T" 1= T1 -△1, T" 2= T2 -△2... ... T" n= Tn -△n。
8), because ammeter belongs to measurement instrument, its clock accuracy is generally reliable, and field statistics shows, actual motion In ratio of the clock of power meter error less than 60 seconds be higher than 99.5%, therefore the sample table clock data of all acquisitions is in theory Discrete lines are smaller, but are not excluded for individual failure table and larger deviation occurs, it is necessary to find out sample data by algorithm In one of most " accurate ", using with the following method, under same time reference, calculate each sample table relative to other samples The time deviation sum of table:
……
9), set the optimal value of sample clock data as TS, then T is obtained by following algorithmSValue:
During n≤2,
n>When 2, P is searched1 , P2... the minimum value in Pn, it is assumed that minimum value Pi, then TS=T" i
10), will complete sample clock optimal value calculate at the time of be designated as ts, then calculate and concentrated for repairing by the following method The desired value T of device clockd
Td=TS+(ts-t1 )
11), concentrator by clock setting be Td, complete clock reparation.Meanwhile the record of this clock amendment(Containing amendment Clock after preceding clock, amendment)It will be stored in daily record for retrospect.

Claims (2)

  1. A kind of 1. method of low pressure concentrator clock self-regeneration, it is characterised in that follow the steps below:
    1), concentrator checks present clock with the fixed cycle, according to the validity of following logic judgment clock:
    ①2000≤Y≤2100;
    ②1≤M≤12;
    3. M values are 1,3,5,7,8,10,12,1≤D≤31;
    When M values are 4,6,9,11,1≤D≤30;
    During the integral multiple that M values are 2 and Y value is 4,1≤D≤29;
    When M values are 2 and the integral multiple of Y value non-4,1≤D≤28;
    ④0≤h≤23;
    ⑤0≤m≤59;
    ⑥0≤s≤59;
    Y represents year, and M represents the moon, and D represents day, and when h is represented, m, which is represented, to be divided, the behalf second;
    2), when concentrator judges present clock to be invalid according to step 1), then according to following principle from the concentrator management A number of sample is chosen in ammeter and enters row clock copy reading:
    1. during S≤30, n=S;
    ②S>When 30, n=30;
    S represents the ammeter total quantity of concentrator management, n representative sample quantity;
    3), start the timer of concentrator and start the clock of n electric energy meter of copy reading successively, by the report of copy reading jth sample table Text is sent is designated as t constantlyj, t is designated as at the time of jth sample table returned packet will be receivedj', wherein j=1,2,3 ..., n;For Copy reading failure and the invalid ammeter of clock are then rejected from sample, and the method for ammeter clock Effective judgement in step 1) the same as collecting The determination methods of middle device clock validity;
    4) the half-duplex channel delay during copy reading ammeter clock, is calculated for every sample meter:
    Wherein j=1,2,3 ..., n;
    5) clock that sample table returns, is designated as T respectively1、T2、……Tn, it is delayed and is counted according to the half-duplex channel calculated in step 4) Calculate revised sample table clock:
    Tj'=Tjj;Wherein j=1,2,3 ..., n;
    6) delay of the every sample table meter reading moment relative to the 1st sample table meter reading moment, is calculated as follows:
    j=tj'-t1';Wherein j=1,2,3 ..., n;
    7), the delay product obtained according to step 6), with t1' on the basis of the moment, calculate according to the following formula all sample tables with for the moment The clock at quarter:
    Tj"=Tj'-△j;Wherein j=1,2,3 ..., n;
    8), according to the following formula, under same time reference, calculate each sample table relative to other sample tables time deviation it With:
    Wherein j=1,2,3 ..., n;
    9) optimal value of sample clock data, is set as TS, and T is obtained by following formulaSValue:
    1. during n≤2,
    ②n>When 2, the minimum value in Pn is searched, if minimum value is Pi, then TS=Ti";
    10), will complete to be designated as t at the time of sample clock optimal value calculatess, and be calculated as follows for repairing concentrator clock Desired value Td
    Td=TS+(ts-t1’);
    11), clock setting is T by concentratord, complete clock reparation.
  2. 2. the method for low pressure concentrator clock self-regeneration as claimed in claim 1, it is characterised in that:By each clock amendment Record be stored in daily record for retrospect;The record of the clock amendment includes clock and clock after amendment before amendment.
CN201510314588.2A 2015-06-10 2015-06-10 A kind of method of low pressure concentrator clock self-regeneration Active CN104978842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510314588.2A CN104978842B (en) 2015-06-10 2015-06-10 A kind of method of low pressure concentrator clock self-regeneration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510314588.2A CN104978842B (en) 2015-06-10 2015-06-10 A kind of method of low pressure concentrator clock self-regeneration

Publications (2)

Publication Number Publication Date
CN104978842A CN104978842A (en) 2015-10-14
CN104978842B true CN104978842B (en) 2018-03-06

Family

ID=54275315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510314588.2A Active CN104978842B (en) 2015-06-10 2015-06-10 A kind of method of low pressure concentrator clock self-regeneration

Country Status (1)

Country Link
CN (1) CN104978842B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490768B (en) * 2015-11-18 2018-11-30 积成电子股份有限公司 A kind of automatic calibrating method of concentrator clock chip
CN106054106B (en) * 2016-05-25 2018-08-31 宁波三星医疗电气股份有限公司 A kind of clock of power meter exception automatic testing method based on power line carrier
CN108206721B (en) * 2016-12-19 2019-12-31 成都长城开发科技有限公司 Automatic meter reading system and time correction method thereof
CN108234054B (en) * 2016-12-31 2019-07-12 科大智能电气技术有限公司 A kind of self-healing method of concentrator loss of clock self-test
CN108020716B (en) * 2017-11-17 2021-04-13 杭州海兴电力科技股份有限公司 Method for accurately timing time of terminal based on distributed clock source
CN109088691B (en) * 2018-08-30 2019-12-20 宁波迦南智能电气股份有限公司 Calendar clock abnormity self-recovery method of electric energy meter concentrator
CN113823075B (en) * 2021-10-29 2022-07-05 深圳市力合微电子股份有限公司 Intelligent adjustment method and device for request waiting time delay of concentrator high-efficiency meter reading equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581700A (en) * 2003-08-13 2005-02-16 惠普开发有限公司 Regulation for clock
CN101247123A (en) * 2007-10-24 2008-08-20 吴明星 Single-chip system clock calibration method
CN101964689A (en) * 2010-08-20 2011-02-02 惠州中城电子科技有限公司 Method for improving time accuracy of electric energy information acquisition system
CN103368719A (en) * 2012-03-28 2013-10-23 北京华电信通科技有限公司 Time setting system and time setting method in PLC-based electricity utilization information collecting system
CN104464247A (en) * 2014-12-12 2015-03-25 武汉中原电子信息公司 Method for reducing time synchronization error of public network of concentrator

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478385B (en) * 2009-02-04 2012-09-26 中兴通讯股份有限公司 Method for sending, receiving time clock and apparatus for transferring time clock

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581700A (en) * 2003-08-13 2005-02-16 惠普开发有限公司 Regulation for clock
CN101247123A (en) * 2007-10-24 2008-08-20 吴明星 Single-chip system clock calibration method
CN101964689A (en) * 2010-08-20 2011-02-02 惠州中城电子科技有限公司 Method for improving time accuracy of electric energy information acquisition system
CN103368719A (en) * 2012-03-28 2013-10-23 北京华电信通科技有限公司 Time setting system and time setting method in PLC-based electricity utilization information collecting system
CN104464247A (en) * 2014-12-12 2015-03-25 武汉中原电子信息公司 Method for reducing time synchronization error of public network of concentrator

Also Published As

Publication number Publication date
CN104978842A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104978842B (en) A kind of method of low pressure concentrator clock self-regeneration
CN105930933B (en) Wind power plant theoretical power curve determines method and device
CN102496072B (en) System for estimating distributive state of intelligent transformer station
CN102289731B (en) Method for maintaining state of power transmission equipment based on system risk
CN102521080B (en) Computer data recovery method for electricity-consumption information collecting system for power consumers
CN109919328B (en) Low-voltage branch line power failure research and judgment method based on multi-source power failure event
CN104462779B (en) Using rapid modeling and the theory wire loss on-line calculation method of Data Quality Analysis
US9500499B2 (en) Time diversified packet protocol
CN108732977A (en) A kind of collecting method and system
CN107454143A (en) A kind of digitalized electrical energy meter metering performance intelligent polling method of wide area measurement mode
CN103744047A (en) Method for locating out-of-tolerance electric-energy meters in operation
CN111446988A (en) Low-voltage transformer area line-changing user topology identification edge calculation method based on HP L C carrier communication
CN105719062B (en) A kind of power grid risk considering double probability of malfunction characteristic and weak link appraisal procedure
CN103869192A (en) Smart power grid line loss detection method and system
CN105134493A (en) Information acquisition and storage method based on wind generator set control system
CN116231633A (en) Method, device, equipment and storage medium for monitoring carbon emission of power distribution network
CN115660631A (en) Power distribution terminal state evaluation method based on correction weight fault tree model
CN105004932B (en) A kind of Lightning Warning data correcting method based on real-time lighting location data dependence analysis
CN106156945A (en) Wind energy turbine set electric energy quality monitoring data statistical approach based on power interval
CN108599233B (en) Method and device for determining admission capacity of power distribution network with distributed power supply
CN103368790A (en) Performance delay monitoring method aiming at electronic trading system and system thereof
CN113468729B (en) Method and system for measuring and calculating operation errors of electric power station metering device without calibration mode
Batz et al. A first analysis of the photovoltaic auction program in Germany
CN115207909A (en) Method, device, equipment and storage medium for identifying platform area topology
CN110633270B (en) Multi-strategy electric meter daily freezing value automatic substitution method and device based on priority

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 264003 Laishan City, Yantai province Venture Center, Shandong

Applicant after: Yantai Dongfang Wisdom Electric Co., Ltd.

Address before: 264003 Laishan City, Yantai province Venture Center, Shandong

Applicant before: Yantai Dongfang Wisdom Electronic Co., Ltd.

GR01 Patent grant
GR01 Patent grant