CN108234054A - 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 PDFInfo
- Publication number
- CN108234054A CN108234054A CN201611268907.1A CN201611268907A CN108234054A CN 108234054 A CN108234054 A CN 108234054A CN 201611268907 A CN201611268907 A CN 201611268907A CN 108234054 A CN108234054 A CN 108234054A
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0644—External master-clock
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock 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)
- Secondary Cells (AREA)
- Mobile Radio Communication Systems (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.This method includes the following steps:After concentrator booting, check whether Clock battery voltage condition judgement concentrator clock is normal;After concentrator normal operation, whether judgement concentrator clock is lost;When concentrator loss of clock, anti-school is carried out to the concentrator time.By above technical scheme it is found that the present invention can solve the deficiencies in the prior art, ensure that concentrator is run steadily in the long term.
Description
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 technology
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 readings 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 Feature 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, and then
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 ensure that clock is less than the precision of 0.5s/d, clock standby
Battery is indispensable, and battery is the device being most lost easily 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 it is very prominent.
Existing concentrator loss of clock self-test self-recovery method has the following disadvantages:
1st, judge that loss of clock condition is not comprehensive, some loss situations can be caused, be still judged as effectively, causing with the time of mistake
It continues to run with;
2nd, the accuracy of clock reparation is not high, finds out a value of most " accurate " from sample simply by algorithm, in this way to collection
The task start of middle device, event, which judge to exist, to be influenced.
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.
Invention content
The purpose of the present invention is to provide a kind of self-healing method of concentrator loss of clock self-test, this method can solve
The deficiencies in the prior art ensure that concentrator is run steadily in the long term.
To achieve the above object, present invention employs following technical schemes:
A kind of self-healing method of concentrator loss of clock self-test, this method include the following steps:
(1)Clock battery voltage threshold U is set, after concentrator booting, checks Clock battery voltage condition;If Clock battery voltage
Less than Clock battery voltage threshold U, then concentrator loss of clock is judged, perform step(4);If Clock battery voltage is not less than
Clock battery voltage threshold U then judges that concentrator clock is normal, performs step(2).
(2)Stored count number of seconds is emptied, record current time is tag time.
(3)After concentrator normal operation, following two flows are performed:
(a)When stored count number of seconds is equal to T0, following steps are performed:
(a1)On the basis of time t, current time and identified time are respectively converted into number of seconds T1 and T2;
(a2)If | T1- (T2- T0) |>T3 then judges concentrator loss of clock, performs step(4);
(a3)If | T1- (T2- T0) |≤T3 judges that concentrator clock is normal, returns and performs step(2).Wherein, T0 is tired
Meter counts number of seconds threshold value, and unit is the second;Whether T3 loses decision threshold for concentrator clock, and unit is the second.
(b)When receive main website pair when order when, concentrator is first calibrated clock itself, then performs following walk
Suddenly:
(b1)Stored count number of seconds is emptied, record current time is tag time.
(b2)According to the Clock battery voltage threshold of setting, in the low-voltage customer ammeter hung under concentrator, when filtering out
The normal ammeter of clock cell voltage.
(b3)The clock of ammeter filtered out is read, calculates the difference of ammeter clock and concentrator clock, and to difference
Carry out it is ascending be ranked sequentially, by preceding n difference and its electric meter address storage to external memory.
(4) when concentrator judges to need the anti-school time, following flow is performed:
(c1)According to the electric meter address stored in external memory, copy and read through ammeter clock.
(c2)According to the difference of the n ammeter clock stored in external memory and concentrator clock, 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.
By above technical scheme it is found that the present invention can solve the deficiencies in the prior art, ensure that concentrator is long-term
Steadily run.The present invention has the following advantages:
(1)Concentrator counts number of seconds by processor when Clock battery voltage and normal operation and external clock number of seconds compares, and comes
Judge loss of clock, the method is reliably comprehensive, can be from all case of clock loss of detection.
(2)After in main website pair, concentrator filters out a collection of reliable ammeter as anti-correcting time clock source, can ensure very high
Anti- accuracy in calibration.
(3)In the flow for performing anti-school, the discreteness of sample data is reduced by proprietary algorithm, further improves 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 be ensured in the case where Clock battery fails using the method, concentrator still has very high clock standard
Exactness so as to ensure the functions normal operations such as the task start of concentrator, event judgement, effectively extends the use of concentrator
Service life.
Description of the drawings
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 below in conjunction with the accompanying drawings:
A kind of self-healing method of concentrator loss of clock self-test as Figure 1-Figure 2, this method include the following steps:
(1)Clock battery voltage threshold U is set, after concentrator booting, checks Clock battery voltage condition;If Clock battery voltage
Less than Clock battery voltage threshold U, then concentrator loss of clock is judged, perform step(4);If Clock battery voltage is not less than
Clock battery voltage threshold U then judges that concentrator clock is normal, performs step(2).In existing concentrator product, RX-8025T
For the clock chip of mainstream, it is 1.8V that the time, which keeps minimum voltage, i.e. clock cell voltage is concentrated in the case of being less than 1.8V
Device power-off can cause loss of clock, therefore be switched on and check 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 normal operation, following two flows are performed:
(a)When stored count number of seconds is equal to T0, following steps are performed:
(a1)On the basis of time t, current time and identified time are respectively converted into number of seconds T1 and T2,
(a2)If | T1- (T2- T0) |>T3 then judges concentrator loss of clock, performs step(4);
(a3)If | T1- (T2- T0) |≤T3 judges that concentrator clock is normal, returns and performs step(2).
In the present invention, t takes 1970-01-01 00:00:00, T0=1800 seconds, T3=2 second.The processor of concentrator adds up
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 during middle device normal operation.
(b)When receive main website pair when order when, concentrator is first calibrated clock itself, then performs following walk
Suddenly:
(b1)Stored count number of seconds is emptied, record current time is tag time.
(b2)According to the Clock battery voltage threshold of setting, in the low-voltage customer ammeter hung under concentrator, when filtering out
The normal ammeter of clock cell voltage.
(b3)The clock of ammeter filtered out is read, calculates the difference of ammeter clock and concentrator clock, and to difference
Carry out it is ascending be ranked sequentially, the difference of n and its electric meter address storage are 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 pass through step(a1)~(a3), you can find reliable clock source.In step(a1)~(a3)In,
The clock for reading through all ammeters filtered out is copied, if ammeter is wirelessly communicated by carrier wave or micropower with concentrator, it is also necessary to
According to《1376.2-2013 power user power consumption information acquisition system communication protocol part 2s of Q/GDW:Concentrator is locally logical
Believe module interface agreement》It is required that ammeter clock amendment, the difference of ammeter clock and concentrator clock is then calculated.
(4) when concentrator judges to need the anti-school time, following flow is performed:
(c1)According to the electric meter address stored in external memory, copy and read through ammeter clock.If ammeter passes through carrier wave or micro- work(
Rate wirelessly communicates with concentrator, it is also necessary to according to《1376.2-2013 power user power consumption information acquisition systems of Q/GDW communicate
Agreement part 2:Concentrator Local Communication Module interface protocol》It is required that ammeter clock amendment.
(c2)According to the difference of the n ammeter clock stored in external memory and concentrator clock, n terminal is calculated
Theoretical time.
(c3)In order to further ensure that the accuracy of clock source, in n terminal theoretical time, find 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 is only that the preferred embodiment of the present invention is described, not to the model of the present invention
It encloses and is defined, under the premise of design spirit of the present invention is not departed from, those of ordinary skill in the art are to the technical side of the present invention
The various modifications and improvement that case is made should all be fallen into the protection domain that claims of the present invention determines.
Claims (1)
- A kind of 1. self-healing method of concentrator loss of clock self-test, it is characterised in that:This method includes the following steps:(1)Clock battery voltage threshold U is set, after concentrator booting, checks Clock battery voltage condition;If Clock battery voltage Less than Clock battery voltage threshold U, then concentrator loss of clock is judged, perform step(4);If Clock battery voltage is not less than Clock battery voltage threshold U then judges that concentrator clock is normal, performs step(2);(2)Stored count number of seconds is emptied, record current time is tag time;(3)After concentrator normal operation, following two flows are performed:(a)When stored count number of seconds is equal to T0, following steps are performed:(a1)On the basis of time t, current time and identified time are respectively converted into number of seconds T1 and T2;(a2)If | T1- (T2- T0) |>T3 then judges concentrator loss of clock, performs step(4);(a3)If | T1- (T2- T0) |≤T3 judges that concentrator clock is normal, returns and performs step(2);Wherein, T0 is tired Meter counts number of seconds threshold value, and unit is the second;Whether T3 loses decision threshold for concentrator clock, and unit is the second;(b)When receive main website pair when order when, concentrator is first calibrated clock itself, then performs 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, in the low-voltage customer ammeter hung under concentrator, clock electricity is filtered out The normal ammeter of cell voltage;(b3)The clock of ammeter filtered out is read, calculates the difference of ammeter clock and concentrator clock, and difference is carried out Ascending is ranked sequentially, and preceding n difference and its electric meter address are stored to external memory;(4) when concentrator judges to need the anti-school time, following flow is performed:(c1)According to the electric meter address stored in external memory, copy and read through ammeter clock;(c2)According to the difference of the n ammeter clock stored in external memory and concentrator clock, 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 during concentrator Between;(c4)Stored count number of seconds is emptied, record current time is tag time.
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 true CN108234054A (en) | 2018-06-29 |
CN108234054B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116430300A (en) * | 2023-06-08 | 2023-07-14 | 石家庄科林电气股份有限公司 | Method, device and system for identifying clock faults of electric energy meter |
Citations (4)
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 |
-
2016
- 2016-12-31 CN CN201611268907.1A patent/CN108234054B/en active Active
Patent Citations (4)
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)
Title |
---|
刘颖等: "采集终端自动对时异常引发电能表时钟问题的分析", 《电子技术与软件工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116430300A (en) * | 2023-06-08 | 2023-07-14 | 石家庄科林电气股份有限公司 | Method, device and system for identifying clock faults of electric energy meter |
CN116430300B (en) * | 2023-06-08 | 2023-08-25 | 石家庄科林电气股份有限公司 | Method, device and system for identifying clock faults of electric energy meter |
Also Published As
Publication number | Publication date |
---|---|
CN108234054B (en) | 2019-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569850B (en) | Electric energy meter with independent metering part and management part and calibration method thereof | |
CN106338705B (en) | A kind of method and apparatus of the verification error for three-phase electric energy metering device | |
CN102279776B (en) | Error checking and correcting ability testing method and device | |
CN110829590B (en) | Intelligent monitoring system, method, platform and storage medium for line loss of transformer area | |
CN104330177B (en) | The portable ground temperature harvester of super low-power consumption and method | |
CN106569921B (en) | A kind of metering core clock processing method and processing device of twin-core intelligent electric energy meter | |
CN103809147A (en) | AC ammeter fault self diagnosis method | |
CN110196404A (en) | A kind of metering chip calibration method, device and the terminal device of charging pile | |
CN110083479B (en) | EEPROM data protection method of intelligent electric energy meter | |
CN105738855A (en) | Intelligent electric meter embedded application-orientated test method | |
CN201269911Y (en) | Multifunctional electric power monitor | |
CN106443171A (en) | System and method for metering data of power bus during power failure of power utilization equipment | |
CN108234054B (en) | A kind of self-healing method of concentrator loss of clock self-test | |
CN109212462A (en) | A kind of fault detection method of single-phase intelligent electric energy meter residual amount exception | |
CN206224689U (en) | A kind of Intelligent Card for Gas Meter controller based on the GPRS communication technologys | |
WO2016041398A1 (en) | Method for storing battery level information of mobile terminal and mobile terminal | |
CN206300696U (en) | A kind of photo-electronic directly reading gas meter controller based on LoRa spread spectrum technics | |
CN201060514Y (en) | Three-phase smart card type electric energy meter for farm irrigation | |
CN101408591A (en) | Real time energy detection system of wireless sensor network node | |
CN111273181A (en) | Battery backup unit monitoring method and device, server and readable storage medium | |
CN203643504U (en) | Single-phase intelligent electric energy meter based SOC technology | |
CN202976445U (en) | Counter bus data collector with ultralow power consumption | |
CN202904758U (en) | Power-down data protection device for fiscal cash register | |
CN106710180A (en) | Meter reading method of water meter, water meter and system | |
CN104730993A (en) | Intelligent instrument partitioning upgrading method and intelligent instrument |
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 |