A kind of method and apparatus for time synchronization between neighboring devices in electric system

文档序号:1744508 发布日期:2019-11-26 浏览:17次 中文

阅读说明:本技术 一种用于电力系统内相邻装置间时间同步的方法和装置 (A kind of method and apparatus for time synchronization between neighboring devices in electric system ) 是由 顾浩 吴汪兵 瞿亮 文继锋 周强 赵天恩 李广华 王自成 陶士全 于 2019-09-04 设计创作,主要内容包括:本发明公开一种用于电力系统内相邻装置间高精度时间同步的方法和装置,方法包括接收并解析外部IEEE 1588报文和同步以太网报文,使接收端的时钟同步外部时钟源时钟频率和相位;调节发送端时钟使其与接收端的时钟频率以及相位保持同步,并将发送端时钟作为下一级装置的主时钟同时输出IEEE 1588报文和同步以太网报文。本发明实现相邻装置间高精度时间同步要求,并解决软件实现时钟相位同步和频率同步的算法复杂性等问题。(The present invention discloses a kind of method and apparatus for precise synchronization between neighboring devices in electric system, and method includes receiving and parsing through 1588 message of exterior I EEE and synchronous ethernet message, makes the synchronous external clock source clock frequency of the clock of receiving end and phase;Adjusting transmitting terminal clock keeps it synchronous with the clock frequency of receiving end and phase holding, and exports 1588 message of IEEE and synchronous ethernet message simultaneously for transmitting terminal clock as the master clock of next stage arrangement.The present invention realizes precise synchronization requirement between neighboring devices, and the problems such as solve the algorithm complexity of software realization clock phase synchronization and Frequency Synchronization.)

1. a kind of method for time synchronization between neighboring devices in electric system, which is characterized in that

1588 message of exterior I EEE and synchronous ethernet message are received and parsed through, the synchronous external clock reference of the clock of receiving end is made Clock frequency and phase;

It is synchronous with the clock frequency of receiving end and phase holding that adjusting transmitting terminal clock makes it, and using transmitting terminal clock as under The master clock of further device exports 1588 message of IEEE and synchronous ethernet message simultaneously.

2. a kind of method for time synchronization between neighboring devices in electric system as described in claim 1, it is characterised in that: Adjust the method that transmitting terminal clock keeps it synchronous with the holding of the clock phase of receiving end are as follows:

The clock information for reading receiving end and transmitting terminal adjusts transmitting terminal clock, makes itself and receiving end according to the two time deviation Clock phase keep synchronize.

3. a kind of method for time synchronization between neighboring devices in electric system as described in claim 1, it is characterised in that: By way of hard wires, the clock of receiving end is directly output to transmitting terminal, make transmitting terminal clock and receiving end when Clock frequency keeps synchronizing.

4. one kind is for time synchronism apparatus between neighboring devices in electric system, it is characterised in that: the synchronizing device includes one A clock receiving module, clock synchronization module and at least one clock sending module;

The clock receiving module makes receiving end for receiving and parsing through 1588 message of exterior I EEE and synchronous ethernet message Synchronous external clock source clock frequency and phase;

The clock synchronization module, the clock for adjusting clock transmitting terminal keep the clock frequency and phase of itself and receiving end It is synchronous;

The clock sending module, for exporting IEEE 1588 simultaneously for transmitting terminal clock as the master clock of next stage arrangement Message and synchronous ethernet message.

5. as claimed in claim 4 a kind of for time synchronism apparatus between neighboring devices in electric system, it is characterised in that: institute Clock receiving module and clock sending module are stated, the PHY chip for supporting synchronous ethernet and 1588 standard of IEEE is all made of.

6. as claimed in claim 4 a kind of for time synchronism apparatus between neighboring devices in electric system, it is characterised in that: its Be characterized in that: clock synchronization module is by the clock frequency signal of clock receiving module, by way of hard wires, directly exports Clock sending module is given, keeps clock sending module synchronous with the holding of the clock frequency of clock receiving module.

Technical field

The invention belongs to Automation of Electric Systems transformer substation system internal communication fields, in particular to a kind of to be used for power train The method and apparatus of time synchronization between interior neighboring devices of uniting.

Background technique

IEEE 1588 is widely answered in the power system since timing tracking accuracy is high, advantages of simple structure and simple With.But 1588 network of IEEE of electric system, generally use a master clock, by multistage switches, connect it is multiple from when The networking model of clock device.This method is all to track the same master clock from clock, but the time synchronization between neighboring devices Precision not can guarantee, especially the introducing of multistage switches time synchronization error.Such as electric system medium and high voltage cable is locally put The monitoring and positioning system of electricity, are related to the accuracy of fault point ranging between two neighboring device, focus more between neighboring devices Timing tracking accuracy.

The time synchronization of IEEE 1588 uses clock phase synchronization and clock rate synchronization, but is adjusted simultaneously with software The phase and frequency of clock is saved, algorithm is complicated and software frequency modulation not can guarantee higher synchronization accuracy, also can in adjustment process Additionally introduce shake and error.

Summary of the invention

In view of this, that an embodiment of the present invention is intended to provide one kind is same for split-second precision between neighboring devices in electric system The method and apparatus of step to realize precise synchronization requirement between neighboring devices, and solve software realization clock phase synchronization The problems such as with the algorithm complexity of clock rate synchronization.

In order to achieve the above objectives, solution of the invention is:

On the one hand, the present invention provides a kind of method for time synchronization between neighboring devices in electric system, and feature exists In:

1588 message of exterior I EEE and synchronous ethernet message are received and parsed through, when the clock of receiving end being made to synchronize outside Clock source clock frequency and phase;

It is synchronous with the clock frequency of receiving end and phase holding that adjusting transmitting terminal clock makes it, and transmitting terminal clock is made 1588 message of IEEE and synchronous ethernet message are exported simultaneously for the master clock of next stage arrangement.

Further, the method that transmitting terminal clock keeps it synchronous with the holding of the clock phase of receiving end is adjusted are as follows:

The clock information for reading receiving end and transmitting terminal adjusts transmitting terminal clock, makes it and connect according to the two time deviation The clock phase of receiving end keeps synchronizing.

Further, by way of hard wires, the clock of receiving end is directly output to transmitting terminal, makes transmitting terminal Clock is synchronous with the holding of the clock frequency of receiving end.

On the other hand, the present invention provides a kind of for time synchronism apparatus, feature between neighboring devices in electric system Be: the synchronizing device includes a clock receiving module, clock synchronization module and at least one clock sending module;

The clock receiving module makes to connect for receiving and parsing through 1588 message of exterior I EEE and synchronous ethernet message The synchronous external clock source clock frequency of receiving end and phase;

The clock synchronization module, the clock for adjusting clock transmitting terminal make its clock frequency and phase with receiving end It keeps synchronizing;

The clock sending module, for exporting IEEE simultaneously for transmitting terminal clock as the master clock of next stage arrangement 1588 messages and synchronous ethernet message.

Further, the clock receiving module and clock sending module are all made of and support synchronous ethernet and IEEE The PHY chip of 1588 standards.

Further, by way of hard wires, be directly output to clock sending module, make clock sending module and when The clock frequency of clock receiving module keeps synchronizing.

The beneficial effects of the present invention are, present invention input is 1588+ synchronous ethernet message, respectively frequency modulation and phase modulation, Realize that receiving end is synchronous with external clock reference;

The present invention realizes that internal transmitting terminal is synchronous with the clock of receiving end two, realizes split-second precision between neighboring devices Synchronous to require, and realize clock phase and decoupling that frequency is adjusted, it is excellent to have that algorithm is simple, timing tracking accuracy is high etc. Point.

Detailed description of the invention

Fig. 1 is the present invention in one of synchronizing network networking schematic diagram;

Fig. 2 is the structural block diagram of method for synchronizing time of the invention.

Specific embodiment

Below with reference to attached drawing, technical solution of the present invention and beneficial effect are described in detail.

Fig. 1 is networking mode schematic diagram of the present invention in synchronizing network.

Master clock provides 1588 clock synchronization message of IEEE to network, and exports synchronous ethernet message;When device N1 synchronizes main The clock of clock device exports synchronous clock information as the master clock of next stage network.Device N2 and N3 tracking device N1's Clock, while master clock of the N3 as next stage network, export synchronous clock information.Device N4 and N5 tracking device N3 when Clock.Wherein the neighboring devices in networking refer to (N1, N2), (N1, N3), (N3, N4), (N3, N5).

Fig. 2 is the structural block diagram of method for synchronizing time of the invention, and one kind is for high-precision between neighboring devices in electric system The method of time synchronization is spent, this method includes: receiving and parsing through 1588 message of exterior I EEE and synchronous ethernet message, makes to connect The synchronous external clock source clock frequency of the clock of receiving end and phase;

It is synchronous with the clock frequency of receiving end and phase holding that adjusting transmitting terminal clock makes it, and transmitting terminal clock is made 1588 message of IEEE and synchronous ethernet message are exported simultaneously for the master clock of next stage arrangement.

On the basis of above embodiments, the clock information of receiving end and transmitting terminal is read, according to the two time deviation, is adjusted Sending end of haircuting clock keeps it synchronous with the holding of the clock phase of receiving end.

On the basis of above embodiments, by way of hard wires, the clock of receiving end is directly output to send End, keeps the clock of transmitting terminal synchronous with the holding of the clock frequency of receiving end.

Another embodiment provides for one kind to be used in electric system time synchronism apparatus between neighboring devices (referring to Fig. 2), It include: clock receiving module, clock synchronization module and clock sending module;

Clock receiving module receives and parses through 1588 message of exterior I EEE and synchronous ethernet message, tracks external clock Frequency and phase;

Clock synchronization module adjusts the clock of clock sending module, it is made to track the frequency of the clock of upper clock receiving module And phase;

Master clock of the clock sending module as next stage network exports 1588 message of IEEE and synchronous ethernet message;

In a particular embodiment, using the method for software phase modulation and hardware frequency modulation, clock receiving module and clock hair are adjusted Send the clock of module.

Software phase modulation refers to calibration method when clock receiving module is beaten using hardware, and IEEE is identified inside PHY chip 1588 messages and logging timestamp adjust the clock of clock receiving module according to 1588 standard of IEEE, track external clock;When Clock synchronization module reads the clock information of clock receiving module and clock sending module, calculates the two time deviation (comprising positive and negative Information), the interface for calling PHY to provide adjusts the clock of sending module, it is made to track the clock of upper clock receiving module.

Hardware frequency modulation is that clock receiving module receives and parses through synchronous ethernet message, synchronous external clock reference clock frequency Rate.Specific embodiment is in order to simplify implementation, and clock synchronization module is by the clock frequency signal of clock receiving module, by hard The mode of part line is directly output to clock sending module, protects the clock frequency of clock sending module and clock receiving module Hold synchronization.

Clock receiving module and clock sending module are all made of the PHY core for supporting synchronous ethernet and IEEE1588 standard Piece.This method includes a clock receiving module and one or more clock sending modules, and each module safeguards respective clock.

It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.

The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.

These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.

These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.

The embodiment of the present invention is described in conjunction with attached drawing above, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据处理方法和装置、通信系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!