CN103729016A - 61588 time keeping method based on FPGA frequency modulation strategy - Google Patents
61588 time keeping method based on FPGA frequency modulation strategy Download PDFInfo
- Publication number
- CN103729016A CN103729016A CN201310638016.0A CN201310638016A CN103729016A CN 103729016 A CN103729016 A CN 103729016A CN 201310638016 A CN201310638016 A CN 201310638016A CN 103729016 A CN103729016 A CN 103729016A
- Authority
- CN
- China
- Prior art keywords
- time
- initialization
- fpga
- synchronous
- frequency modulation
- 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
Images
Abstract
The invention discloses a 61588 time keeping method based on an FPGA frequency modulation strategy, and belongs to the technical field of communication. The 61588 time keeping method is characterized in that on the premise that a crystal oscillator of a clock source and a crystal oscillator of a synchronized device are not influenced by external conditions, a central processing unit enables time errors calculated in every time of synchronization to serve as compensation values to fine adjust the number of ticks of an FPGA clock counter in real time, and the time keeping aim of the synchronized device under the condition that the 61588 synchronous clock source loses contact can be effectively achieved. Under the condition that the 61588 synchronous clock source loses contact, the reliability, the sensitivity and the stability of an intelligent device with the 61588 time keeping method can completely meet the requirements of an intelligent substation.
Description
Technical field
The present invention relates to a kind of 61588 punctual methods of measuring based on FPGA frequency modulation, belong to communication technique field.
Background technology
Present stage, the intelligent substation of employing based on IEC 61850 standards put on account schedule, along with the intelligent substation based on IEC 61850 standard construction puts into operation successively, electronic type voltage, current transformer and intelligent electronic device will be widely used in intelligent substation.Traditional time synchronization protocol, if SNTP is because synchronization accuracy is limited, cannot meet the synchronisation requirement of present stage Electric Power Automation Equipment.For solving intelligent substation Network Synchronization problem, the 1588 accurate timing protocol translation IEC61588 standards that IEC formulates IEEE, this standard is also adopted and is designated as the accurate clock synchronization protocol > > of < < for networking measurement and control system by China.
Electric system is punctual to be of great significance real-time analysis electric network state and guarantee safe operation of electric network tool.Can meet various device and the demand of system to time synchronized in the temporary transient lost contact situation of synchronous device, guarantee the consistance of real-time data acquisition, improve the accuracy of phasor and the dynamic monitoring of merit angle, line fault range finding etc., thereby strengthening power system fault analysis and the stable ability of controlling, is one of key point of 1588 synchro systems.
Summary of the invention
The object of the present invention is to provide a kind of 61588 punctual methods based on frequency modulation strategy.
The present invention is a kind of 61588 punctual methods of measuring based on FPGA frequency modulation, it is characterized in that, the method includes the steps of:
In the intelligent substation of employing IEC61588 standard, the time error that smart machine central processing unit CPU calculates according to clock source, by the each synchronometer of the crystal oscillator of synchronous device is worth by way of compensation, finely tune the tick number (a tick number is once counted in the every vibration of crystal oscillator) of FPGA clock counter, in synchronous clock source lost contact situation, adopt the mode of FPGA frequency modulation to make up this Crystal Oscillator Errors, comprise following steps:
(1) initialization
11) according to smart machine acquiescence, initialization break period is interrupted number N for whole second by synchronous device
s;
12) initialization 10ms offset registers tick counts N
10be 0;
13) initialization 100ms offset registers tick counts N
100be 0;
14) initialization 1000ms offset registers tick counts N
1000be 0;
15) initialization need compensate and nanosecond count T
bbe 0;
(2) in the each interruption section of smart machine CPU, carry out successively following link:
21) receive the sync message that adopts IEC 61588 accurate clock synchronization protocols;
22) record one time time error every 30 synchronizing cycles;
23) every 10 time errors are asked for a mean value and are drawn offset;
24) offset is covered to whole second time;
25) according to whole second Time Calculation, go out N
s, N
10, N
100, N
1000;
26) by N
s, N
10, N
100, N
1000set into corresponding register.
Having under synchronous situation, clock source initiation one in every 2 seconds is subsynchronous, by a synchronous error of 1 minute record of synchronous device.
The beneficial effect that the present invention reaches:
The method is in the situation that considering network delay, think by the mistiming between synchronous device and clock source it is to be caused by the otherness of two table apparatus clock crystal oscillators, by CPU (central processing unit), add up mistiming between the two of per minute and ask multiple averaging value as Crystal Oscillator Errors, in clock source lost contact situation, adopt the mode of FPGA frequency modulation to make up this Crystal Oscillator Errors, thus effectively solve by between synchronous device and clock source owing to there being the inconsistent impact of synchronizeing that oscillator frequency deviation causes.Adopt the smart machine of this punctual method, in 61588 synchronous clock source lost contact situations, its reliability, sensitivity and stability aspect meet the punctual requirement of intelligent substation completely.
Accompanying drawing explanation
The punctual main-process stream that arranges of Fig. 1 FPGA;
The normalization of Fig. 2 error and accumulation flow process;
Fig. 3 FPGA setting procedure of keeping time.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.Following examples are only for technical scheme of the present invention is more clearly described, and can not limit the scope of the invention with this.
Based on 61588 punctual methods of FPGA frequency modulation strategy, the method includes the steps of:
1, the punctual main-process stream that arranges of FPGA
Having under 61588 synchronous situation, in clock source 2s, initiate one time 61588 synchronous, by a synchronous error of 1 minute record of synchronous device, flow process is as shown in Figure 1.This flow process completes synchronously when having 61588 synchronizing signal, completes the statistics of the mistiming producing due to intelligent apparatus crystal oscillator and in the inconsistent unit interval causing of main kind of crystal oscillator of main frame simultaneously.
2, error normalization and accumulation, flow process as shown in Figure 2.This flow process is the sub-process of flow process 1, completes the mistiming that every 30 statistical computations once produce due to intelligent apparatus crystal oscillator and in the inconsistent unit interval causing of main kind of crystal oscillator of main frame, and in order to eliminate error, the mistiming is the mean value of 10 errors.
3, FPGA is punctual arranges, and flow process as shown in Figure 3.This flow process is the punctual flow process of FPGA after 61588 synchronizing signals disappear, FPGA according to flow process 1 and flow process 2 at 10ms, 100ms, 1000ms compensation point to compensating tick number according to the offset calculating.
Specific algorithm is as follows:
Whole second:
T: according to clock source, calculate by number of whole second nanosecond of synchronous device;
N
s: by synchronous device, within whole second, interrupted number;
N
10: 10ms offset registers tick number;
N
100: 100ms offset registers tick number;
N
1000: 1000ms offset registers tick number;
F: system frequency;
F
s: sample frequency;
T
ns: the nanosecond number of each tick;
T
b: need compensation nanosecond number;
There is formula:
T=(N
s×f×f
s+N
10×100+N
100×10+N
1000)×T
ns+T
b;
According to above formula, by reverse derivation, calculate N
s, N
10, N
100, N
1000and set into corresponding register.
A kind of 61588 punctual methods based on FPGA frequency modulation strategy that the present invention puts forward, prerequisite is clock source and not affected by external condition by the crystal oscillator of synchronous device.Punctual method major embodiment proposed by the invention is in operating on the DSP of CPU (central processing unit) and the software of FPGA inside, and the FB(flow block) of software as shown in the FIG..Punctual method comprises the following steps:
1, initialization
1) N
s: according to this device acquiescence, number is interrupted in initialization break period for whole second;
2) N
10: initialization 10ms offset registers tick number is 0;
3) N
100: initialization 100ms offset registers tick number is 0;
4) N
1000: initialization 1000ms offset registers tick number is 0;
5) T
b: it is 0 that initialization need compensate nanosecond number;
2, in smart machine interrupts section, carry out successively following link:
1) receive 61588 sync messages;
2) record one time time error every 30 synchronizing cycles;
3) every 10 time errors are asked for a mean value and are drawn offset;
4) offset is covered to whole second time;
5) according to whole second Time Calculation, go out N
s, N
10, N
100, N
1000;
6) by N
s, N
10, N
100, N
1000set into corresponding register;
7) while having synchronizing signal, carry out synchronously, FPGA does not compensate the time;
8) after synchronizing signal disappears, FPGA starts the time to compensate.
Above-mentioned punctual method all can obtain desirable effect in smart machine, and be convenient to realize in the CPU (central processing unit) take DSP as core CPU and FPGA, for keeping time of synchro system 61588 clock source lost contacts, adopt this punctual tactful smart machine when 1588 clock source lost contact, aspect reliability, sensitivity and stability, to meet the punctual requirement of intelligent substation completely.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the technology of the present invention principle; can also make some improvement and distortion, these improvement and distortion also should be considered as protection scope of the present invention.
Claims (2)
1. 61588 punctual methods based on FPGA frequency modulation strategy, it is characterized in that: in the intelligent substation of employing IEC 61850 standards, the time error that smart machine central processing unit CPU calculates according to clock source, by the each synchronometer of the crystal oscillator of synchronous device is worth by way of compensation, finely tune the tick number of FPGA clock counter, adopting in the synchronous clock source lost contact situation of IEC 61588 accurate clock synchronization protocols, adopt the mode of FPGA frequency modulation to make up this Crystal Oscillator Errors, comprise following steps:
(1) initialization
11) according to smart machine acquiescence, initialization break period is interrupted number N for whole second by synchronous device
s;
12) initialization 10ms offset registers tick counts N
10be 0;
13) initialization 100ms offset registers tick counts N
100be 0;
14) initialization 1000ms offset registers tick counts N
1000be 0;
15) initialization need compensate and nanosecond count T
bbe 0;
(2) in smart machine CPU each break period of section, carry out successively following link:
21) receive the sync message that adopts IEC 61588 accurate clock synchronization protocols;
22) record one time time error every 30 synchronizing cycles;
23) every 10 time errors are asked for a mean value and are drawn offset;
24) offset is covered to whole second time;
25) according to whole second Time Calculation, go out N
s, N
10, N
100, N
1000;
26) by N
s, N
10, N
100, N
1000set into corresponding register.
2. the 61588 punctual methods based on FPGA frequency modulation strategy according to claim 1, is characterized in that, are having synchronous in the situation that, and it is one subsynchronous that clock source is initiated for every 2 seconds, by a synchronous error of 1 minute record of synchronous device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310638016.0A CN103729016B (en) | 2013-12-02 | 2013-12-02 | A kind of 61588 punctual methods based on FPGA frequency modulation strategy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310638016.0A CN103729016B (en) | 2013-12-02 | 2013-12-02 | A kind of 61588 punctual methods based on FPGA frequency modulation strategy |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103729016A true CN103729016A (en) | 2014-04-16 |
CN103729016B CN103729016B (en) | 2016-06-01 |
Family
ID=50453128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310638016.0A Active CN103729016B (en) | 2013-12-02 | 2013-12-02 | A kind of 61588 punctual methods based on FPGA frequency modulation strategy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103729016B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105071887A (en) * | 2015-06-30 | 2015-11-18 | 许继集团有限公司 | Time synchronization method for process level device of intelligent substation |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1355455A (en) * | 2000-12-01 | 2002-06-26 | 神基科技股份有限公司 | Method for correcting time of computer system |
US20090307518A1 (en) * | 2008-06-05 | 2009-12-10 | Realtek Semiconductor Corp. | Asynchronous counter based timing error detection |
-
2013
- 2013-12-02 CN CN201310638016.0A patent/CN103729016B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1355455A (en) * | 2000-12-01 | 2002-06-26 | 神基科技股份有限公司 | Method for correcting time of computer system |
US20090307518A1 (en) * | 2008-06-05 | 2009-12-10 | Realtek Semiconductor Corp. | Asynchronous counter based timing error detection |
Non-Patent Citations (2)
Title |
---|
KANNISTO, J.ETC: "Software and Hardware Prototypes of the IEEE 1588 precision time protocol on wireless LAN", 《LOCAL AND METROPOLITAN AREA NETWORKS, 2005. LANMAN 2005. THE 14TH IEEE WORKSHOP ON》 * |
戚明珠: "基于FPGA的IEEE1588IP核开发", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105071887A (en) * | 2015-06-30 | 2015-11-18 | 许继集团有限公司 | Time synchronization method for process level device of intelligent substation |
Also Published As
Publication number | Publication date |
---|---|
CN103729016B (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108445279B (en) | Synchronous sampling method based on short-frequency wireless in transient recording type fault indicator | |
CN104836630B (en) | IEEE1588 clock synchronization system and implementation method therefor | |
CN108872910B (en) | Timing system and method for online verification of power quality monitoring device | |
CN102480350B (en) | Method and device for time synchronization and maintaining based on frequency deviation estimation | |
WO2012075881A1 (en) | Ieee1588-based sampled value multi-interface synchronization system for multiple slave clocks | |
CN101645869B (en) | Switch with submicrosecond clock and switching processing method thereof | |
WO2015070707A1 (en) | Method for acquiring universal data of intelligent substation | |
WO2012149811A1 (en) | Method, terminal and system for measuring asymmetric delay of transmission link | |
CN102315985A (en) | Time synchronization precision test method for intelligent device adopting IEEE1588 protocols | |
CN104579623A (en) | Network time-setting system and method for secondary equipment of electric power system | |
CN102546147B (en) | Method for realizing accurate network timing of wide-area protection system on basis of SDH (Synchronous Digital Hierarchy) network | |
CN104333426A (en) | Pulse per second synchronization method based on merging unit SV message sampling sequence number learning | |
WO2022041726A1 (en) | Time synchronization method for real-time dynamic tracking | |
CN107390090A (en) | A kind of circuitry fault detection method and system | |
CN103995471A (en) | Clock synchronization method of distributed control system | |
CN103595588A (en) | Method for accurately measuring asynchronous Ethernet circuit time delay | |
CN105376043A (en) | Dual-board system time synchronization method | |
CN111064536A (en) | Power distribution network monitoring device and method based on clock synchronization | |
CN103595582B (en) | High-accuracy synchronous system detection device applied to intelligent transformer substation | |
CN103399264B (en) | High-tension cable partial discharge monitoring and positioning system | |
CN102917284A (en) | Precise clock synchronization method based on PON (Passive Optical Network) system | |
CN100495858C (en) | Method for sampling and processing transmission data for protecting transmission line optical-fiber longitudinal difference | |
CN103729016A (en) | 61588 time keeping method based on FPGA frequency modulation strategy | |
CN102710359A (en) | Accurate clock frequency synchronizing method and device based on IEEE1588 (institute of electrical and electronics engineers) | |
Fubin et al. | The accuracy of IEEE 1588 time synchronization protocol and its improvement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |