CN108234054B - A kind of self-healing method of concentrator loss of clock self-test - Google Patents

A kind of self-healing method of concentrator loss of clock self-test Download PDF

Info

Publication number
CN108234054B
CN108234054B CN201611268907.1A CN201611268907A CN108234054B CN 108234054 B CN108234054 B CN 108234054B CN 201611268907 A CN201611268907 A CN 201611268907A CN 108234054 B CN108234054 B CN 108234054B
Authority
CN
China
Prior art keywords
clock
concentrator
time
battery voltage
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
CN201611268907.1A
Other languages
Chinese (zh)
Other versions
CN108234054A (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.)
KEDA INTELLIGENT ELECTRICAL TECHNOLOGY Co Ltd
Original Assignee
KEDA INTELLIGENT ELECTRICAL TECHNOLOGY 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 KEDA INTELLIGENT ELECTRICAL TECHNOLOGY Co Ltd filed Critical KEDA INTELLIGENT ELECTRICAL TECHNOLOGY Co Ltd
Priority to CN201611268907.1A priority Critical patent/CN108234054B/en
Publication of CN108234054A publication Critical patent/CN108234054A/en
Application granted granted Critical
Publication of CN108234054B publication Critical patent/CN108234054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0644External master-clock
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Secondary Cells (AREA)

Abstract

The present invention relates to power information acquisition system technical fields, and in particular to a kind of self-healing method of concentrator loss of clock self-test.Method includes the following steps: checking that Clock battery voltage condition determines whether concentrator clock is normal after concentrator booting;After concentrator operates normally, determine whether concentrator clock is lost;When concentrator loss of clock, anti-school is carried out to the concentrator time.From the above technical scheme, the present invention is able to solve the deficiencies in the prior art, guarantees that concentrator is run steadily in the long term.

Description

A kind of self-healing method of concentrator loss of clock self-test
Technical field
The present invention relates to power information acquisition system technical fields, and in particular to a kind of concentrator loss of clock self-test is from extensive Multiple method.
Background technique
In power information acquisition system, concentrator includes II type of I type of concentrator and concentrator, their difference is to concentrate I type of device is used by power line carrier or the wireless copy reading low-voltage customer data of micropower, II type of concentrator by RS485 copy reading low pressure User data.They the characteristics of are that the low-voltage customer of acquisition is more, and quantity is from tens to thousands of;Core function is all copy reading low-voltage customer Data and form a day freezing data, finally on be sent to acquisition system main website.Concentrator clock is a core parameter, once go out It is wrong, it will influence low-voltage customer data reading system, storage and on give, lead to low-voltage customer acquisition failure under entire concentrator, in turn Influence the acquisition rate of power information acquisition system.
With the continuous development of power information acquisition system, by realizing all standing, complete substantially to 2015 end of the year whole nations The target of acquisition, wherein covering millions of concentrators.In order to guarantee that clock is less than the precision of 0.5s/d, clock standby Battery is indispensable, and battery is the device being most easily lost as the time increases.If backup battery electricity is low, and concentrator is again Had a power failure, concentrator clock is bound to lose.Even if the probability of very little, under so huge scale of construction, the problem of loss of clock Also very prominent.
Existing concentrator loss of clock self-test self-recovery method has the disadvantage in that
1, judge that loss of clock condition is not comprehensive, will cause some loss situations, be still judged as effectively, cause with mistake Time continues to run;
2, the accuracy of clock reparation is not high, finds out a value of most " accurate " from sample simply by algorithm, in this way Existing on the task start of concentrator, event judgement influences.
To sum up, clock is a core parameter for concentrator, due to battery, there are the risk of loss of clock, And existing self-regeneration method is not perfect.
Summary of the invention
The purpose of the present invention is to provide a kind of self-healing method of concentrator loss of clock self-test, this method is able to solve The deficiencies in the prior art guarantee that concentrator is run steadily in the long term.
To achieve the above object, the invention adopts the following technical scheme:
A kind of self-healing method of concentrator loss of clock self-test, method includes the following steps:
(1) it sets Clock battery voltage threshold U and checks Clock battery voltage condition after concentrator booting;If Clock battery Voltage is lower than Clock battery voltage threshold U, then determines concentrator loss of clock, executes step (4);If Clock battery voltage is not low In Clock battery voltage threshold U, then determine that concentrator clock is normal, executes step (2).
(2) stored count number of seconds is emptied, record current time is tag time.
(3) after concentrator operates normally, following two process is executed:
(a) when stored count number of seconds is equal to T0, following steps are executed:
(a1) on the basis of time t, current time and tag time are respectively converted into number of seconds T1 and T2;
(a2) if | T1- (T2+ T0) | > T3 determines concentrator loss of clock, executes step (4);
(a3) if | T1- (T2+ T0) |≤T3 determines that concentrator clock is normal, returns to step (2).Wherein, T0 For stored count number of seconds threshold value, unit is the second;T3 is whether concentrator clock loses decision threshold, and unit is the second.
(b) when receiving the clock synchronization order of main website, concentrator is first calibrated clock itself, then executes following step It is rapid:
(b1) stored count number of seconds is emptied, record current time is tag time.
(b2) according to the Clock battery voltage threshold of setting, from the low-voltage customer ammeter hung under concentrator, when filtering out The normal ammeter of clock cell voltage.
(b3) clock for reading the ammeter filtered out, calculates the difference of ammeter clock Yu concentrator clock, and to difference Ascending sequence arrangement is carried out, preceding n difference and its electric meter address are stored to external memory.
(4) when concentrator judges to need the anti-school time, following process is executed:
(c1) it according to the electric meter address stored in external memory, copies and reads through ammeter clock.
(c2) according to the difference of n ammeter clock and concentrator clock storing in external memory, n terminal is calculated Theoretical time.
(c3) in n terminal theoretical time, consistent the largest number of terminal theoretical times are found out, using the time as concentration The device time.
(c4) stored count number of seconds is emptied, record current time is tag time.
From the above technical scheme, the present invention is able to solve the deficiencies in the prior art, guarantees that concentrator is long-term Steadily run.The invention has the following advantages that
(1) by Clock battery voltage and when operating normally, processor counts number of seconds and external clock number of seconds pair to concentrator Than to determine loss of clock, the method is reliably comprehensive, can be from all case of clock loss of detection.
(2) after main website clock synchronization, concentrator filters out a collection of reliable ammeter as anti-correcting time clock source, can guarantee very high Anti- accuracy in calibration.
(3) in the process for executing anti-school, the discreteness of sample data is reduced by proprietary algorithm, further increases anti-school Accuracy.
(4) clock self-test self- recoverage process utilizes existing channel resource, and without adding any hardware, repair time is short, And any adverse effect will not be generated to normal meter reading.
(5) it can guarantee that, in the case where Clock battery fails, concentrator still has very high clock quasi- using the method Exactness effectively extends the use of concentrator to guarantee that the functions such as the task start of concentrator, event judgement operate normally Service life.
Detailed description of the invention
Fig. 1 is the self-healing method flow diagram of concentrator loss of clock self-test;
Fig. 2 is the method flow diagram in the anti-school of concentrator clock.
Specific embodiment
The present invention will be further described with reference to the accompanying drawing:
A kind of self-healing method of concentrator loss of clock self-test as Figure 1-Figure 2, method includes the following steps:
(1) it sets Clock battery voltage threshold U and checks Clock battery voltage condition after concentrator booting;If Clock battery Voltage is lower than Clock battery voltage threshold U, then determines concentrator loss of clock, executes step (4);If Clock battery voltage is not low In Clock battery voltage threshold U, then determine that concentrator clock is normal, executes step (2).In existing concentrator product, RX- 8025T is the clock chip of mainstream, and it is 1.8V that the time, which keeps minimum voltage, i.e., clock cell voltage is lower than in the case where 1.8V Concentrator power-off will cause loss of clock, therefore is switched on and checks that Clock battery voltage can determine whether case of clock loss.
(2) stored count number of seconds is emptied, record current time is tag time.
(3) after concentrator operates normally, following two process is executed:
(a) when stored count number of seconds is equal to T0, following steps are executed:
(a1) on the basis of time t, current time and tag time are respectively converted into number of seconds T1 and T2,
(a2) if | T1- (T2+ T0) | > T3 determines concentrator loss of clock, executes step (4);
(a3) if | T1- (T2+ T0) |≤T3 determines that concentrator clock is normal, returns to step (2).
In the present invention, t takes 1970-01-01 00:00:00, T0=1800 second, T3=2 second.The processor of concentrator is accumulative Although counting, number of seconds is accurate without special clock chip, and error does not exceed 2 seconds in 1800 seconds, therefore may determine that collection with this Case of clock loss when middle device operates normally.
(b) when receiving the clock synchronization order of main website, concentrator is first calibrated clock itself, then executes following step It is rapid:
(b1) stored count number of seconds is emptied, record current time is tag time.
(b2) according to the Clock battery voltage threshold of setting, from the low-voltage customer ammeter hung under concentrator, when filtering out The normal ammeter of clock cell voltage.
(b3) clock for reading the ammeter filtered out, calculates the difference of ammeter clock Yu concentrator clock, and to difference Ascending sequence arrangement is carried out, n differences and its electric meter address are stored to external memory before coming.Preferably, n =10。
Because ammeter belongs to measurement instrument, clock accuracy is generally reliable, and under concentrator hang ammeter 20 with On, therefore have sufficient sample, then by step (a1) ~ (a3), reliable clock source can be found.In step (a1) ~ (a3), The clock for reading through all ammeters filtered out is copied, if ammeter is wirelessly communicated with concentrator by carrier wave or micropower, it is also necessary to According to " 1376.2-2013 power user power consumption information acquisition system communication protocol part 2 of Q/GDW: concentrator is locally logical Believe module interface agreement " it requires to correct ammeter clock, then calculate the difference of ammeter clock Yu concentrator clock.
(4) when concentrator judges to need the anti-school time, following process is executed:
(c1) it according to the electric meter address stored in external memory, copies and reads through ammeter clock.If ammeter by carrier wave or Micropower is wirelessly communicated with concentrator, it is also necessary to according to " 1376.2-2013 power user power consumption information acquisition system of Q/GDW Communication protocol part 2: concentrator Local Communication Module interface protocol " it requires to correct ammeter clock.
(c2) according to the difference of n ammeter clock and concentrator clock storing in external memory, n terminal is calculated Theoretical time.
(c3) it in order to further ensure that the accuracy of clock source, in n terminal theoretical time, finds out consistent the largest number of Terminal theoretical time, using the time as the concentrator time.
(c4) stored count number of seconds is emptied, record current time is tag time.
Embodiment described above only describe the preferred embodiments of the invention, not to model of the invention It encloses and is defined, without departing from the spirit of the design of the present invention, those of ordinary skill in the art are to technical side of the invention The various changes and improvements that case is made should all be fallen into the protection scope that claims of the present invention determines.

Claims (1)

1. a kind of self-healing method of concentrator loss of clock self-test, it is characterised in that: method includes the following steps:
(1) it sets Clock battery voltage threshold U and checks Clock battery voltage condition after concentrator booting;If Clock battery voltage Lower than Clock battery voltage threshold U, then concentrator loss of clock is determined, execute step (4);If Clock battery voltage is not less than Clock battery voltage threshold U then determines that concentrator clock is normal, executes step (2);
(2) stored count number of seconds is emptied, record current time is tag time;
(3) after concentrator operates normally, following two process is executed:
(a) when stored count number of seconds is equal to T0, following steps are executed:
(a1) on the basis of time t, current time and tag time are respectively converted into number of seconds T1 and T2;
(a2) if | T1- (T2+ T0) | > T3 determines concentrator loss of clock, executes step (4);
(a3) if | T1- (T2+ T0) |≤T3 determines that concentrator clock is normal, returns to step (2);Wherein, T0 is tired Meter counts number of seconds threshold value, and unit is the second;T3 is whether concentrator clock loses decision threshold, and unit is the second;
(b) when receiving the clock synchronization order of main website, concentrator is first calibrated clock itself, then executes following steps:
(b1) stored count number of seconds is emptied, record current time is tag time;
(b2) according to the Clock battery voltage threshold of setting, from the low-voltage customer ammeter hung under concentrator, clock electricity is filtered out The normal ammeter of cell voltage;
(b3) clock for reading the ammeter filtered out calculates the difference of ammeter clock Yu concentrator clock, and carries out to difference Ascending sequence arrangement, preceding n difference and its electric meter address are stored to external memory;
(4) when concentrator judges to need the anti-school time, following process is executed:
(c1) it according to the electric meter address stored in external memory, copies and reads through ammeter clock;
(c2) according to the difference of n ammeter clock and concentrator clock storing in external memory, it is theoretical to calculate n terminal Time;
(c3) in n terminal theoretical time, consistent the largest number of terminal theoretical times are found out, using the time as when concentrator Between;
(c4) stored count number of seconds is emptied, record current time is tag time.
CN201611268907.1A 2016-12-31 2016-12-31 A kind of self-healing method of concentrator loss of clock self-test Active CN108234054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611268907.1A CN108234054B (en) 2016-12-31 2016-12-31 A kind of self-healing method of concentrator loss of clock self-test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611268907.1A CN108234054B (en) 2016-12-31 2016-12-31 A kind of self-healing method of concentrator loss of clock self-test

Publications (2)

Publication Number Publication Date
CN108234054A CN108234054A (en) 2018-06-29
CN108234054B true CN108234054B (en) 2019-07-12

Family

ID=62656439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611268907.1A Active CN108234054B (en) 2016-12-31 2016-12-31 A kind of self-healing method of concentrator loss of clock self-test

Country Status (1)

Country Link
CN (1) CN108234054B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430300B (en) * 2023-06-08 2023-08-25 石家庄科林电气股份有限公司 Method, device and system for identifying clock faults of electric energy meter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807638B1 (en) * 2000-12-29 2004-10-19 Cisco Systems O.I.A. (1988) Ltd. Apparatus for and method of in-band clock compensation
CN104505936A (en) * 2014-12-02 2015-04-08 国家电网公司 Power data monitoring method and power data monitoring system
CN104978842A (en) * 2015-06-10 2015-10-14 烟台东方威思顿电气股份有限公司 Self-repair method of low-pressure concentrator clock
CN105467827A (en) * 2015-12-08 2016-04-06 广西电网有限责任公司电力科学研究院 A correction method and system for an asymmetric clock and based on a concentrator

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807638B1 (en) * 2000-12-29 2004-10-19 Cisco Systems O.I.A. (1988) Ltd. Apparatus for and method of in-band clock compensation
CN104505936A (en) * 2014-12-02 2015-04-08 国家电网公司 Power data monitoring method and power data monitoring system
CN104978842A (en) * 2015-06-10 2015-10-14 烟台东方威思顿电气股份有限公司 Self-repair method of low-pressure concentrator clock
CN105467827A (en) * 2015-12-08 2016-04-06 广西电网有限责任公司电力科学研究院 A correction method and system for an asymmetric clock and based on a concentrator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
采集终端自动对时异常引发电能表时钟问题的分析;刘颖等;《电子技术与软件工程》;20160218;第131页

Also Published As

Publication number Publication date
CN108234054A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN106569850B (en) Electric energy meter with independent metering part and management part and calibration method thereof
CN105334383B (en) A kind of electricity data storage method of electric energy meter
CN103728516B (en) Soc chip clock detection circuit
CN102279776B (en) Error checking and correcting ability testing method and device
CN104330177B (en) The portable ground temperature harvester of super low-power consumption and method
CN103809147A (en) AC ammeter fault self diagnosis method
CN106569921B (en) A kind of metering core clock processing method and processing device of twin-core intelligent electric energy meter
CN107576930B (en) power supply and relay status detection circuit and method
CN102945594B (en) Meter-bus data collector with ultra-low power loss
CN110083479B (en) EEPROM data protection method of intelligent electric energy meter
CN103091550B (en) Synchronous isolation sampling direct-current power meter of wide voltage and large current
CN108234054B (en) A kind of self-healing method of concentrator loss of clock self-test
CN106443171B (en) The metering system and metering method of electrical bus data when a kind of electrical equipment power down
CN201269911Y (en) Multifunctional electric power monitor
CN105738855A (en) Intelligent electric meter embedded application-orientated test method
CN202677594U (en) Watt-hour meter collector capable of initiatively reporting incidents
CN111323626A (en) Uncovering detection circuit integrated in MCU and uncovering detection method based on MCU
CN114925973A (en) Power grid running state obtaining method and system based on multi-source data integration
CN109212462A (en) A kind of fault detection method of single-phase intelligent electric energy meter residual amount exception
CN103389411A (en) Multifunctional watt-hour meter and electric energy data recovery method thereof
CN212159910U (en) MCU integrated uncapping detection circuit and electric energy meter control chip
WO2016041398A1 (en) Method for storing battery level information of mobile terminal and mobile terminal
CN202351311U (en) Intelligent voltage calibration device applicable to various power battery and capacitor management systems
CN109856550A (en) The evaluation method and system of the SOC of flow battery
CN203455376U (en) Multifunctional electric energy meter with redundancy electric energy data storing technology

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