[go: up one dir, main page]

CN101252404A - FPGA-based distributed network clock synchronization system and method - Google Patents

FPGA-based distributed network clock synchronization system and method Download PDF

Info

Publication number
CN101252404A
CN101252404A CNA200810069526XA CN200810069526A CN101252404A CN 101252404 A CN101252404 A CN 101252404A CN A200810069526X A CNA200810069526X A CN A200810069526XA CN 200810069526 A CN200810069526 A CN 200810069526A CN 101252404 A CN101252404 A CN 101252404A
Authority
CN
China
Prior art keywords
synchronization
distributed
time
unit
data
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
Application number
CNA200810069526XA
Other languages
Chinese (zh)
Other versions
CN101252404B (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.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN200810069526XA priority Critical patent/CN101252404B/en
Publication of CN101252404A publication Critical patent/CN101252404A/en
Application granted granted Critical
Publication of CN101252404B publication Critical patent/CN101252404B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明请求保护一种基于现场可编程门阵列(FPGA)实现的小型分布式网络时钟同步系统,涉及分布式网络同步技术。它主要包括PC、HUB以及基于FPGA的分布式单元。每个分布式单元都带有通用网络接口,采用固定的同步周期时间方案来实现小型分布式网络的时钟同步,使系统能够达到微秒级的同步。本发明的同步方式采用类似IEEE1588标准的方式,根据该标准的高精度同步特性,改善其初始同步速度,实现一个初始同步速度快、高精度时钟同步的分布式系统。它根据提供分布式网络系统各个组成单元的同步时钟,作为系统的工作时钟的参照。这样,可以满足对实时要求性较高的分布式网络用于传输数据等。

Figure 200810069526

The invention claims to protect a small distributed network clock synchronization system based on field programmable gate array (FPGA), which relates to distributed network synchronization technology. It mainly includes PC, HUB and distributed units based on FPGA. Each distributed unit has a common network interface, and uses a fixed synchronization cycle time scheme to realize clock synchronization of small distributed networks, enabling the system to achieve synchronization at the microsecond level. The synchronization method of the present invention adopts a method similar to the IEEE1588 standard. According to the high-precision synchronization characteristics of the standard, the initial synchronization speed is improved, and a distributed system with fast initial synchronization speed and high-precision clock synchronization is realized. It serves as a reference for the working clock of the system based on the synchronous clock provided by each component unit of the distributed network system. In this way, distributed networks with high real-time requirements can be satisfied for data transmission and the like.

Figure 200810069526

Description

基于FPGA的分布式网络时钟同步系统及方法 FPGA-based distributed network clock synchronization system and method

技术领域 technical field

本发明涉及计算机控制技术,尤其涉及分布式网络同步技术。The invention relates to computer control technology, in particular to distributed network synchronization technology.

背景技术 Background technique

随着计算机网络的发展,分布式系统的范围扩大且更加分散,通过网络联系的分散控制节点之间的实时性变得越来越重要。影响分布式系统实时性的主要根源在于各个测控设备之间的时钟差异和测控数据在网络中的传输延迟及抖动。这些问题是分布式系统所固有的,解决这些问题的关键就是时间同步,时间同步的目的就是要将时间基准点准确地传递到网络各控制点。目前国内外流行的同步方法有:简单时间同步协议SNTP、网络化测量和控制系统的精确时钟同步协议IEEE1588标准等。With the development of computer networks, the scope of distributed systems has expanded and become more dispersed, and the real-time performance between distributed control nodes connected through the network has become more and more important. The main root that affects the real-time performance of the distributed system is the clock difference between the various measurement and control devices and the transmission delay and jitter of the measurement and control data in the network. These problems are inherent in distributed systems. The key to solving these problems is time synchronization. The purpose of time synchronization is to accurately transmit the time reference point to each control point of the network. At present, the popular synchronization methods at home and abroad include: simple time synchronization protocol SNTP, networked measurement and control system precision clock synchronization protocol IEEE1588 standard, etc.

1、简单时间同步协议SNTP,能用单播方式(点对点)和广播方式(点对多点)操作,也能在IP多播方式下操作。但SNTP的时间精度依赖于客户端和服务端网络的情况,采用这种同步方式在分布式系统中可以达到0.5~2ms的精度。在同步要求较高的试飞系统、工业采集与控制的情况下,该同步的精度远远不能达到要求。1. The simple time synchronization protocol SNTP can operate in unicast mode (point-to-point) and broadcast mode (point-to-multipoint), and can also operate in IP multicast mode. However, the time precision of SNTP depends on the conditions of the client and server networks. Using this synchronization method can achieve an accuracy of 0.5-2ms in a distributed system. In the case of flight test systems and industrial acquisition and control with high synchronization requirements, the synchronization accuracy is far from meeting the requirements.

2、IEEE1588标准,定义了一个适于在测量和自动化系统中使用的时钟同步协议,最高可以实现微秒量级的超高精度的时钟同步,高于其他网络时间同步协议的精度。但是该标准对网络的要求也相当高,适合于只有以太网的工作环境。而且当有新的单元加入到网络中或网络环境变化时,网络需要重新同步,完成同步的时间长。在2单元的系统中,完成一次同步需要10次线路延迟,而且随着同步单元的增加,完成同步的时间将成倍地增加。2. The IEEE1588 standard defines a clock synchronization protocol suitable for use in measurement and automation systems. It can achieve ultra-high-precision clock synchronization at the microsecond level, which is higher than the accuracy of other network time synchronization protocols. However, the standard has very high requirements on the network, which is suitable for the working environment with only Ethernet. Moreover, when a new unit is added to the network or the network environment changes, the network needs to be re-synchronized, and it takes a long time to complete the synchronization. In a 2-unit system, 10 line delays are required to complete a synchronization, and as the number of synchronization units increases, the time to complete synchronization will increase exponentially.

随着计算机和电子技术的发展,FPGA技术得到了广泛的应用且已经相当成熟,FPGA还增加了高速I/O、嵌入式内存、专用锁相环(PLL)、以及嵌入式处理器,目前还存在着大量以IP核呈现的预设计电路模块。With the development of computer and electronic technology, FPGA technology has been widely used and has become quite mature. FPGA has also added high-speed I/O, embedded memory, dedicated phase-locked loop (PLL), and embedded processor. There are a large number of pre-designed circuit blocks presented as IP cores.

其次片上可编程系统SOPC(System On a Programmable Chip,)是现代电子技术和电子系统设计的汇聚点和发展方向。SOPC综合了SOC和PLD、FPGA各自的优点,集成了硬核或软核CPU、OSP、存储器、外围I/O及可编程逻辑,用户可以利用SOPC平台自行设计高速、高性能的DSP处理器或特定功能的CPU处理器,从而使电子系统设计进入一个全新的模式。Secondly, on-chip programmable system SOPC (System On a Programmable Chip,) is the convergence point and development direction of modern electronic technology and electronic system design. SOPC combines the respective advantages of SOC, PLD and FPGA, and integrates hard-core or soft-core CPU, OSP, memory, peripheral I/O and programmable logic. Users can use the SOPC platform to design high-speed, high-performance DSP processors or CPU processors with specific functions, so that the design of electronic systems has entered a new mode.

采用FPGA技术实现分布式网络时钟同步,能满足遵循不同协议网络间的时钟同步,同步精度高,同步单元的增加不会大幅增加同步的时间。提高了网络工作效率。Using FPGA technology to achieve distributed network clock synchronization can meet the clock synchronization between networks that follow different protocols, with high synchronization accuracy, and the increase of synchronization units will not greatly increase the synchronization time. Improve network work efficiency.

发明内容 Contents of the invention

本发明所要解决的技术问题是,针对现有技术中存在的分布式网络时钟同步系统对网络环境要求高,同步时间长的缺陷,设计一种基于FPGA的分布式网络时钟同步系统,以实现网络快速进入同步状态以及高精度的时钟同步。The technical problem to be solved by the present invention is to design a distributed network clock synchronization system based on FPGA to realize network Quickly enter the synchronization state and high-precision clock synchronization.

本发明解决上述技术问题的技术方案是,提出一种基于FPGA的分布式网络时钟同步系统,该分布式网络时钟同步系统包括控制与处理部分、时钟同步部分、数据传输部分。The technical solution of the present invention to solve the above technical problems is to propose an FPGA-based distributed network clock synchronization system, which includes a control and processing part, a clock synchronization part, and a data transmission part.

所述控制与处理部分包括网络中心控制处理部分和各分布式单元控制处理部分,每个分布式单元控制处理部分都是以FPGA为核心的单元,FPGA中内嵌有1个微处理器,控制网络中各分布式单元实现实时同步,定时把数据发送到分布式网络中或者接收其它分布式单元发送的数据。The control and processing part includes a network center control processing part and each distributed unit control processing part, each distributed unit control processing part is a unit with FPGA as the core, and a microprocessor is embedded in the FPGA to control Each distributed unit in the network realizes real-time synchronization, regularly sends data to the distributed network or receives data sent by other distributed units.

网络中心控制处理部分由主控计算机和监控计算机实施控制处理,包括计算机侦测部分、计算机配置部分和数据包检测部分。The control and processing part of the network center is controlled and processed by the main control computer and the monitoring computer, including a computer detection part, a computer configuration part and a data packet detection part.

计算机侦测部分:主控计算机发送侦测数据,侦测网络中有多少分布式单元;计算机配置部分:主控计算机发送配置数据,配置各分布式单元功能,定义包括工作周期、数据产生时刻、数据产生频率和数据发送时刻等;数据包检测部分:当系统进入实时工作(开始进行数据传输)后,主控和监控计算机完成对数据包的监测。Computer detection part: the main control computer sends detection data to detect how many distributed units are in the network; computer configuration part: the main control computer sends configuration data to configure the functions of each distributed unit, and the definitions include working cycle, data generation time, Data generation frequency and data sending time, etc.; data packet detection part: when the system enters real-time work (starts data transmission), the main control and monitoring computer complete the monitoring of data packets.

所述时钟同步部分包括1个主分布式单元MASTER和多个从分布式单元SLAVER,由其实时控制模块实现主、从分布式单元之间的同步。从分布式单元实时控制模块根据其接收、发送报文的时间间隔和从分布式单元单元号,计算各从分布式单元的网络线路延迟Delay,根据各从分布式单元的网络线路延迟确定MASTER单元和SLAVER单元的时钟归零时刻,使MASTER单元和各个SLAVER单元在同一时刻时钟归零。The clock synchronization part includes a master distributed unit MASTER and multiple slave distributed units SLAVER, and its real-time control module realizes the synchronization between the master and slave distributed units. The real-time control module of the slave distributed unit calculates the network line delay Delay of each slave distributed unit according to the time interval of receiving and sending messages and the number of the slave distributed unit, and determines the MASTER unit according to the network line delay of each slave distributed unit and the clock reset time of the SLAVER unit, so that the clock of the MASTER unit and each SLAVER unit is reset to zero at the same time.

这样,多个终端可以同时进行同步,所以这是一种更加适合多终端同步周期比较频繁的分布式系统的网络时钟同步方式。In this way, multiple terminals can be synchronized at the same time, so this is a network clock synchronization method that is more suitable for distributed systems with frequent multi-terminal synchronization cycles.

所述数据传输部分采用以太网传输方式,非同步模式下传输侦测、配置数据、同步发起报文等,同步模式下传输各分布式单元实时数据。The data transmission part adopts the Ethernet transmission mode, and transmits detection, configuration data, synchronous initiation messages, etc. in the asynchronous mode, and transmits real-time data of each distributed unit in the synchronous mode.

本发明还提出一种基于FPGA的分布式网络时钟同步方法,主分布式单元向网络发送同步发起报文;各从分布式单元返回包含其单元号、发送与收到数据包之间的处理时间的同步响应报文;主分布式单元根据时间间隔和处理时间,计算各从分布式单元的网络线路延迟;再根据线路延迟通知从分布式单元同步开始时刻。The present invention also proposes an FPGA-based distributed network clock synchronization method, the main distributed unit sends a synchronization initiation message to the network; each slave distributed unit returns a processing time including its unit number, sending and receiving data packets The master distributed unit calculates the network line delay of each slave distributed unit according to the time interval and processing time; and then notifies the slave distributed unit of the synchronization start time according to the line delay.

该方法包括如下步骤:The method comprises the steps of:

1、MASTER单元向SLAVER单元发送同步发起报文;1. The MASTER unit sends a synchronization initiation message to the SLAVER unit;

2、SLAVER单元收到MASTER单元的报文,返回一个同步响应报文,此报文带有MASTER单元单元号和报文处理时间(从收到报文到返回报文之间的时间);2. The SLAVER unit receives the message from the MASTER unit and returns a synchronous response message with the unit number of the MASTER unit and the message processing time (the time between receiving the message and returning the message);

3、MASTER单元收到同步响应报文后,根据发送报文和收到报文的时刻计算线路延迟;3. After the MASTER unit receives the synchronous response message, it calculates the line delay according to the time when the message is sent and received;

4、MASTER单元根据线路延迟向SLAVER单元发送同步开始包;4. The MASTER unit sends a synchronization start packet to the SLAVER unit according to the line delay;

5、MASTER单元和所有SLAVER单元同时时钟归零。5. The clocks of the MASTER unit and all SLAVER units are reset to zero at the same time.

本分布式网络时钟同步系统采用基于FPGA的分布式网络时钟,实现了该分布式系统在网络中的高精度同步,能够满足试飞系统、高精度工业采集与控制等分布式实时数据采集与控制的需要,并且在初始同步或网络环境发生变化需要重新同步时,能够实现快速进入同步状态。本系统只要各单元数据发送时刻不冲突,系统能够很准确地将各时刻采集的数据送到指定的位置,而且传输可靠、抗干扰能力强,稳定性好,实时性及兼容性强。经实际应用表明,该系统时钟同步、数据采集及处理由FPGA实现,不但能实现微秒级的时间同步,而且使分布式系统的初始同步所需的时间大大减小。工作稳定、可靠;数据通信能够实时完成。This distributed network clock synchronization system uses an FPGA-based distributed network clock to achieve high-precision synchronization of the distributed system in the network, and can meet the requirements of distributed real-time data collection and control such as flight test systems and high-precision industrial collection and control. Need, and when the initial synchronization or the network environment changes and needs to be resynchronized, it can quickly enter the synchronization state. As long as the data transmission time of each unit does not conflict, the system can accurately send the data collected at each time to the designated location, and the transmission is reliable, the anti-interference ability is strong, the stability is good, and the real-time performance and compatibility are strong. The practical application shows that the clock synchronization, data acquisition and processing of the system are realized by FPGA, which not only can realize the microsecond-level time synchronization, but also greatly reduces the time required for the initial synchronization of the distributed system. The work is stable and reliable; data communication can be completed in real time.

附图说明 Description of drawings

附图1:分布式系统构架Figure 1: Distributed system architecture

附图2:各分布式单元体系结构Figure 2: Architecture of each distributed unit

附图3:2单元同步工作原理图Figure 3: 2-unit synchronous working principle diagram

附图4:多单元同步工作原理图Figure 4: Schematic diagram of multi-unit synchronization

附图5:MASTER单元处理流程图Figure 5: Flow chart of MASTER unit processing

附图6:SLAVER单元处理流程图Figure 6: SLAVER unit processing flow chart

具体实施方案specific implementation plan

本发明提出一种基于FPGA的分布式网络时钟同步系统,该分布式网络时钟同步系统包括控制与处理部分、时钟同步部分、数据传输部分。The invention proposes an FPGA-based distributed network clock synchronization system, which includes a control and processing part, a clock synchronization part and a data transmission part.

控制与处理部分包括网络中心控制处理部分和各分布式单元控制处理部分,每个分布式单元控制处理部分都是以FPGA为核心的单元,FPGA中内嵌有1个微处理器,控制网络中各分布式单元实现实时同步,定时把数据发送到分布式网络中或者接收其它分布式单元发送的数据。网络中心控制处理部分由主控计算机和监控计算机实施控制处理,包括计算机侦测部分、计算机配置部分和数据包检测部分。计算机侦测部分:主控计算机发送侦测数据,侦测网络中有多少分布式单元;计算机配置部分:主控计算机发送配置数据,配置各分布式单元功能,定义包括工作周期、数据产生时刻、数据产生频率和数据发送时刻等;数据包检测部分:当系统进入实时工作,开始进行数据传输后,主控和监控计算机完成对数据包的监测。时钟同步部分包括1个主分布式单元MASTER和多个从分布式单元SLAVER,网络时钟同步采用类似IEEE1588标准的方式,但根据其初始同步速度慢的缺点,用各分布式单元的时钟同时归零来取代在IEEE1588标准中的对时钟偏移的调整,The control and processing part includes the control processing part of the network center and the control processing part of each distributed unit. The control processing part of each distributed unit is a unit with FPGA as the core. There is a microprocessor embedded in the FPGA, and the control network Each distributed unit realizes real-time synchronization, regularly sends data to the distributed network or receives data sent by other distributed units. The control and processing part of the network center is controlled and processed by the main control computer and the monitoring computer, including a computer detection part, a computer configuration part and a data packet detection part. Computer detection part: the main control computer sends detection data to detect how many distributed units are in the network; computer configuration part: the main control computer sends configuration data to configure the functions of each distributed unit, and the definitions include working cycle, data generation time, Data generation frequency and data transmission time, etc.; data packet detection part: when the system enters real-time work and starts data transmission, the main control and monitoring computer completes the monitoring of data packets. The clock synchronization part includes a master distributed unit MASTER and multiple slave distributed units SLAVER. The network clock synchronization adopts a method similar to the IEEE1588 standard, but according to the disadvantage of slow initial synchronization speed, the clocks of each distributed unit are reset to zero at the same time. To replace the adjustment of the clock skew in the IEEE1588 standard,

这样,多个终端可以同时进行同步,所以这是一种更加适合多终端同步周期比较频繁的分布式系统的网络时钟同步方式。In this way, multiple terminals can be synchronized at the same time, so this is a network clock synchronization method that is more suitable for distributed systems with frequent multi-terminal synchronization cycles.

以下针对附图和具体实例对本发明的实施作具体描述。The implementation of the present invention will be specifically described below with reference to the accompanying drawings and specific examples.

如图1所示为本发明所述分布式网络时钟同步系统结构框图。该系统包括一个主分布式单元MASTER和多个(如n个)从分布式单元SLAVER,各个单元之间分别通过集线器HUB连接到网络中心控制处理部分的主控和监控计算机,每个分布式单元(包括MASTER和SLAVER单元)都包括网络接口和FPGA板,以FPGA为核心的分布式单元控制处理部分各自通过网络接口连接HUB。FIG. 1 is a structural block diagram of the distributed network clock synchronization system of the present invention. The system includes a master distributed unit MASTER and multiple (such as n) slave distributed units SLAVER, each unit is connected to the main control and monitoring computer of the control and processing part of the network center through a hub HUB, each distributed unit (including MASTER and SLAVER units) include network interfaces and FPGA boards, and the control and processing parts of distributed units with FPGA as the core are connected to HUB through network interfaces.

MASTER单元和SLAVER单元的功能除了时钟同步部分不同外,其它功能和结构都相同。MASTER单元为时钟同步发起者,SLAVER单元跟随MASTER单元的时钟。The functions of the MASTER unit and the SLAVER unit are the same except for the clock synchronization part, and the other functions and structures are the same. The MASTER unit is the clock synchronization initiator, and the SLAVER unit follows the clock of the MASTER unit.

网络中心控制处理部分由主控计算机和监控计算机实现控制处理,完成包括计算机侦测部分、计算机配置部分和数据包检测部分功能。主控计算机负责发送侦测数据、同步命令(即退出控制状态)或发送各个单元的配置包,侦测网络中有多少分布式单元;配置各分布式单元功能,定义包括工作周期、数据产生时刻、数据产生频率和数据发送时刻等;当系统进入实时工作(开始进行数据传输)后,主控和监控计算机通过数据包检测部分对数据包实时监测。The control and processing part of the network center is controlled and processed by the main control computer and the monitoring computer, and completes the functions of the computer detection part, the computer configuration part and the data packet detection part. The main control computer is responsible for sending detection data, synchronous commands (that is, exiting the control state) or sending configuration packets of each unit to detect how many distributed units there are in the network; configure the functions of each distributed unit, and define the working cycle and data generation time , data generation frequency and data transmission time, etc.; when the system enters real-time work (starts data transmission), the main control and monitoring computer will monitor the data packets in real time through the data packet detection part.

如图2所示为各分布式单元体系结构。每个分布式单元控制处理部分都是以FPGA为核心的单元,FPGA板中嵌有SOPC软核处理器。设置有系统配置、功能配置、传输控制、实时控制、UDP以及采集与输出等模块。控制网络中各分布式单元实现实时同步,定时把数据发送到分布式网络中或者接收其它分布式单元发送的数据。Figure 2 shows the architecture of each distributed unit. The control and processing part of each distributed unit is a unit with FPGA as the core, and SOPC soft-core processor is embedded in the FPGA board. There are system configuration, function configuration, transmission control, real-time control, UDP, acquisition and output modules. Each distributed unit in the control network realizes real-time synchronization, and regularly sends data to the distributed network or receives data sent by other distributed units.

其中系统配置模块、功能配置模块和传输控制模块都属于应用层模块,它们与采集与输出模块都是由FPGA实现。实时控制模块、UDP模块由FPGA中的SOPC系统实现。主控计算机发送系统配置信息和功能配置信息,分布式单元接收到上述系统配置信息后将其存入分布式单元的FLASH中,分布式单元系统配置模块根据系统配置信息初始化系统工作状态,系统配置信息包括系统同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻;功能配置模块根据功能配置信息确定每个同步周期初始采集时刻、数据采集速率、数据采集通道数、数据采集存储地址、数据输出缓存地址等信息。当系统上电进入初始化或者FLASH中存储的系统配置和功能配置信息改变时,FPGA主动通过读写FLASH改变系统功能。Among them, the system configuration module, function configuration module and transmission control module all belong to the application layer module, and they and the acquisition and output module are realized by FPGA. Real-time control module and UDP module are realized by SOPC system in FPGA. The main control computer sends system configuration information and function configuration information. After receiving the above system configuration information, the distributed unit stores it in the FLASH of the distributed unit. The system configuration module of the distributed unit initializes the system working state according to the system configuration information. The information includes system synchronization period, data transmission period, data transmission length, data receiving buffer address, and data transmission time; the function configuration module determines the initial collection time, data collection rate, number of data collection channels, and data collection time of each synchronization cycle according to the function configuration information. Storage address, data output cache address and other information. When the system is powered on and initialized or the system configuration and function configuration information stored in the FLASH is changed, the FPGA actively changes the system function by reading and writing the FLASH.

传输控制模块包括站内传输控制模块和站间传输控制模块,站内传输控制模块在实时状态下将采集模块采集的数据存储在存储器SRAM中,或者将SRAM中的数据送到输出模块的缓存地址中。站间传输控制模块在实时状态下将此刻存储到SRAM中的实时数据组合成UDP包格式等待发送。The transmission control module includes an intra-station transmission control module and an inter-station transmission control module. The intra-station transmission control module stores the data collected by the acquisition module in the memory SRAM in real time, or sends the data in the SRAM to the cache address of the output module. In the real-time state, the inter-station transmission control module combines the real-time data stored in the SRAM into a UDP packet format for sending.

实时控制模块根据从单元接收到同步发起报文Sync到发送同步响应报文Sync_Responce的时间间隔Adjust和SLAVER单元单元号,计算各SLAVER单元的网络线路延迟Delay,根据各从分布式单元的网络线路延迟确定MASTER单元和SLAVER单元的时钟归零时刻,实现主、从分布式单元之间的同步。The real-time control module calculates the network line delay Delay of each SLAVER unit according to the time interval Adjust and the SLAVER unit number from receiving the synchronous initiation message Sync to sending the synchronous response message Sync_Responce from the slave unit, and according to the network line delay of each slave distributed unit Determine the time when the clocks of the MASTER unit and the SLAVER unit return to zero, and realize the synchronization between the master and slave distributed units.

UDP模块:通过传输UDP包来实现实时数据的传输,数据传输由SOPC软核处理器通过控制命令实现。其收发函数分别为发送报文TransmitPacket和接收报文ReceivePacket。UDP module: Real-time data transmission is realized by transmitting UDP packets, and data transmission is realized by SOPC soft-core processor through control commands. Its sending and receiving functions are sending message TransmitPacket and receiving message ReceivePacket respectively.

以下分别以2单元和多单元的系统为例,对本发明分布式网络时钟同步系统的同步控制过程进行具体描述。The synchronization control process of the distributed network clock synchronization system of the present invention will be specifically described below by taking two-unit and multi-unit systems as examples respectively.

如图3所示为2单元的分布式系统同步过程示意图。该同步过程定义了3个同步报文:同步发起报文Sync、同步响应报文Sync_Responce和同步开始报文Sync_Start。系统时钟由分布式单元的晶振计数产生,如可选择系统晶振频率为32M。同步流程如下:FIG. 3 is a schematic diagram of the synchronization process of the distributed system of 2 units. The synchronization process defines three synchronization messages: a synchronization initiation message Sync, a synchronization response message Sync_Responce, and a synchronization start message Sync_Start. The system clock is generated by the crystal oscillator count of the distributed unit, for example, the system crystal oscillator frequency can be selected as 32M. The synchronization process is as follows:

首先MASTER单元传输控制模块控制输出模块向SLAVER单元发送Sync报文,SLAVER单元数据采集模块收到Sync报文后,传输控制模块控制输出模块向MASTER单元反馈一个包含SLAVER单元从接收到Sync报文到发送Sync_Responce报文的时间间隔Adjust和SLAVER单元单元号的Sync_Responce报文,当MASTER单元收到Sync_Responce报文后,确定MASTER单元发送Sync报文与收到Sync_Responce报文的时间Tm1、Tm2,MASTER单元实时控制模块根据时间间隔Adjust和发送Sync报文与收到Sync_Responce报文的时间Tm1、Tm2,调用公式Delay=(Tm2-Tm1-Adjust)/2计算网络的线路延迟Delay。然后Tm3时刻MASTER单元的传输控制模块控制其输出模块向SLAVER单元发送Sync_Start报文,并延迟Delay个时钟后,Ts3时刻实时控制模块控制MASTER单元时钟归零,同时SLAVER单元收到Sync_Start报文后,时钟也归零,时钟控制单元从0开始计时。这样MASTER单元和SLAVER单元在同一时刻归零,实现了时钟的同步。First, the MASTER unit transmission control module controls the output module to send a Sync message to the SLAVER unit. After the SLAVER unit data acquisition module receives the Sync message, the transmission control module controls the output module to feed back a message containing the SLAVER unit from receiving the Sync message to the MASTER unit. The time interval for sending the Sync_Responce message is Adjust and the Sync_Responce message of the SLAVER unit unit number. When the MASTER unit receives the Sync_Responce message, determine the time Tm1 and Tm2 between the MASTER unit sending the Sync message and receiving the Sync_Responce message, and the MASTER unit real-time The control module calls the formula Delay=(Tm2-Tm1-Adjust)/2 to calculate the line delay Delay of the network according to the time interval Adjust and the time Tm1 and Tm2 of sending the Sync message and receiving the Sync_Responce message. Then at Tm3 the transmission control module of the MASTER unit controls its output module to send a Sync_Start message to the SLAVER unit, and after delaying Delay clocks, the real-time control module at Ts3 controls the clock of the MASTER unit to return to zero, and after the SLAVER unit receives the Sync_Start message, The clock is also reset to zero, and the clock control unit starts timing from 0. In this way, the MASTER unit and the SLAVER unit return to zero at the same time, realizing clock synchronization.

采用该方法仅通过3次线路传输就完成了2单元分布式网络的主从单元的时钟同步。所以当分布式系统环境变化时,需要重新同步的时间很短,能满足系统的需要。Using this method, the clock synchronization of the master-slave unit of the 2-unit distributed network is completed only through three line transmissions. Therefore, when the distributed system environment changes, the resynchronization time is very short, which can meet the needs of the system.

如图4为多单元的分布式系统同步过程示意图。FIG. 4 is a schematic diagram of a multi-unit distributed system synchronization process.

当分布式系统为多单元(n个)时,MASTER单元传输控制模块控制输出模块在预定发送间隔时间先后向系统中所有的SLAVER单元发送Sync报文,并分别记录发送时刻,各个SLAVER单元通过数据采集模块收到Sync报文后,传输控制模块控制输出模块向MASTER单元反馈一个Sync_Responce报文,该Sync_Responce报文中包含SLAVER单元从接收到Sync报文到发送Sync_Responce报文的时间间隔Adjust和SLAVER单元单元号。当MASTER单元数据采集模块收到Sync_Responce报文后,根据上面的线路延迟计算公式Delay=(Tm2-Tm1-Adjust)/2计算各个SLAVER单元的线路延迟Delay。再根据各个SLAVER单元的线路延迟,确定向各个SLAVER单元发送Sync_Start报文的时刻Tm4-Tmk,然后MASTER单元的传输控制模块控制其输出模块向各个SLAVER单元发送Sync_Start报文,根据每个SLAVER单元的线路延迟时间确定各个SLAVER单元收到报文的时刻,当达到第n个SLAVER单元的线路延迟时实时控制模块控制MASTER单元时钟归零,同时SLAVER单元已收到Sync_Start报文,时钟也归零。使MASTER单元和各个SLAVER单元在同一时刻时钟归零。When the distributed system is multi-unit (n), the MASTER unit transmission control module controls the output module to send Sync messages to all the SLAVER units in the system at the predetermined sending interval time, and record the sending time respectively, and each SLAVER unit passes the data After the acquisition module receives the Sync message, the transmission control module controls the output module to feed back a Sync_Responce message to the MASTER unit. The Sync_Responce message contains the time interval Adjust and the SLAVER unit from receiving the Sync message to sending the Sync_Responce message from the SLAVER unit unit number. After receiving the Sync_Responce message, the data acquisition module of the MASTER unit calculates the line delay Delay of each SLAVER unit according to the above line delay calculation formula Delay=(Tm2-Tm1-Adjust)/2. According to the line delay of each SLAVER unit, determine the time Tm4-Tmk to send the Sync_Start message to each SLAVER unit, then the transmission control module of the MASTER unit controls its output module to send the Sync_Start message to each SLAVER unit, according to the time of each SLAVER unit The line delay time determines the moment when each SLAVER unit receives the message. When the line delay of the nth SLAVER unit is reached, the real-time control module controls the clock of the MASTER unit to reset to zero. At the same time, the clock of the SLAVER unit has received the Sync_Start message, and the clock also resets to zero. Make the clock of the MASTER unit and each SLAVER unit reset to zero at the same time.

当分布式单元增多的时候,可能引起MASTER单元发送和接收的冲突,所以可以分批对SLAVER单元与MASTER单元实行同步。经测试,系统中一次线路延迟大概为100000个时钟左右,所以可将一次同步的SLAVER单元限定在预定个数以内。主控计算机发送侦测数据,侦测网络中有多少分布式单元,当主控计算机侦测到网络中SLAVER单元超过预定个数时,MASTER单元根据接收到各个SLAVER单元的Sync_Responce报文时刻,及其所包含的信息,先计算出前预定个SLAVER单元的线路延迟,再计算出其它SLAVER单元的线路延迟,实时控制模块根据网络中所有SLAVER单元的线路延迟,发送控制命令使系统中所有分布式单元时钟同时归零。When the number of distributed units increases, it may cause conflicts between the transmission and reception of the MASTER unit, so the SLAVER unit and the MASTER unit can be synchronized in batches. After testing, a line delay in the system is about 100,000 clocks, so the SLAVER units that are synchronized at a time can be limited to a predetermined number. The main control computer sends detection data to detect how many distributed units are in the network. When the main control computer detects that the number of SLAVER units in the network exceeds the predetermined number, the MASTER unit receives the Sync_Responce message time of each SLAVER unit, and The information contained in it first calculates the line delay of the previously scheduled SLAVER unit, and then calculates the line delay of other SLAVER units. The real-time control module sends control commands to make all distributed units in the system The clock is reset to zero at the same time.

由于时钟晶振的偏差,当系统运行一定时间后,系统需要重新同步一次。图中示出了系统时钟需归零的各种时刻。如:Tsnk=0表示从单元n第k次时钟归为0。Due to the deviation of the clock crystal oscillator, when the system runs for a certain period of time, the system needs to re-synchronize once. The figure shows various times when the system clock needs to be reset to zero. For example: Tsnk=0 indicates that the kth clock of the slave unit n returns to 0.

如图5所示为MASTER单元处理流程图,分布式系统包括同步状态和非同步状态两种状态。Figure 5 shows the processing flow chart of the MASTER unit. The distributed system includes two states: synchronous state and asynchronous state.

在非同步状态下,系统上电后,MASTER单元读取FLASH中的配置信息,初始化系统配置和功能配置。然后MASTER单元广播hello包,检测网络上是否有主控计算机,如果没有检测到主控计算机或者等待预定时间未收到反馈信息,系统直接进入实时状态,进行实时数据传输;当MASTER单元收到主控计算机返回的response包,进入MASTER控制状态。MASTER在控制状态下,主控计算机对网络进行侦测、系统配置和功能配置等工作。In the asynchronous state, after the system is powered on, the MASTER unit reads the configuration information in the FLASH, and initializes the system configuration and function configuration. Then the MASTER unit broadcasts the hello packet to detect whether there is a master computer on the network. If the master computer is not detected or the feedback information is not received after waiting for a predetermined time, the system directly enters the real-time state and performs real-time data transmission; when the MASTER unit receives the master computer The response packet returned by the control computer enters the MASTER control state. When MASTER is in the control state, the main control computer performs work such as network detection, system configuration and function configuration.

侦测:主控计算机向网络广播UnitGet包对网络中的分布式单元进行侦测,在线的分布式单元都会向主控计算机返回一个UnitInform包;主控计算机根据接收到的UnitInform包确定网络中有多少分布式单元。Detection: The main control computer broadcasts the UnitGet package to the network to detect the distributed units in the network, and the online distributed units will return a UnitInform package to the main control computer; the main control computer determines that there are How many distributed units.

系统配置:主控计算机向MASTER单元发送系统配置SysConfig包,根据系统配置数据确定SysConfig包,包括系统同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻。System configuration: The main control computer sends a system configuration SysConfig package to the MASTER unit, and determines the SysConfig package according to the system configuration data, including the system synchronization cycle, data sending cycle, data sending length, data receiving buffer address, and data sending time.

MASTER单元收到SysConfig包后,将配置数据写入其FLASH中,根据系统配置信息初始化系统各工作状态,包括系统同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻;功能配置:主控计算机向MASTER单元发送FunConfig包,MASTER单元收到FunConfig包后,将配置数据写入FLASH中,根据功能配置信息确定网络中各分布式单元每个同步周期初始采集时刻、数据采集速率、数据采集通道数、数据采集存储地址、数据输出缓存地址等信息。After the MASTER unit receives the SysConfig packet, it writes the configuration data into its FLASH, and initializes the working states of the system according to the system configuration information, including the system synchronization cycle, data sending cycle, data sending length, data receiving buffer address, and data sending time; function Configuration: The main control computer sends a FunConfig package to the MASTER unit. After receiving the FunConfig package, the MASTER unit writes the configuration data into the FLASH, and determines the initial collection time and data collection rate of each synchronization cycle of each distributed unit in the network according to the function configuration information. , data acquisition channel number, data acquisition storage address, data output buffer address and other information.

当系统完成侦测、配置后,主控计算机发送QuitCongfig包,MASTER单元收到主控计算机发出的QuitCongfig包,退出控制状态,实时启动,系统进入如图4所示的同步控制过程。当系统完成同步后,根据控制状态中主控计算机发来的系统配置配置信息和功能配置信息实现网络中数据的传输;After the system completes the detection and configuration, the main control computer sends the QuitCongfig package, and the MASTER unit receives the QuitCongfig package from the main control computer, exits the control state, starts in real time, and the system enters the synchronous control process shown in Figure 4. After the system is synchronized, the data transmission in the network is realized according to the system configuration configuration information and function configuration information sent by the master computer in the control state;

如果MASTER单元没有检测到主控计算机,系统直接进入实时数据传输状态,系统实现同步后,根据FLASH中已经存入的系统配置和功能配置来实现数据传输。实时数据传输状态下,系统根据同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻、每个同步周期初始采集时刻、数据采集速率、数据采集通道数、数据采集存储地址和数据输出缓存地址进行实时数据传输。If the MASTER unit does not detect the main control computer, the system will directly enter the real-time data transmission state. After the system is synchronized, the data transmission will be realized according to the system configuration and function configuration already stored in the FLASH. In the state of real-time data transmission, the system according to the synchronization cycle, data sending cycle, data sending length, data receiving buffer address, data sending time, initial collection time of each synchronization cycle, data collection rate, number of data collection channels, data collection storage address and Data output buffer address for real-time data transmission.

在实时数据传输阶段,由每个分布式单元的每个同步周期初始采集时刻和采集速率一样,使每个分布式单元的数据采集时刻都一样。这样,某个分布式单元在一个数据发送周期内收到的其它分布式单元的采集数据都是同一时刻产生,可以对各分布式单元采集的数据进行处理。In the stage of real-time data transmission, the initial acquisition time of each synchronization cycle of each distributed unit is the same as the acquisition rate, so that the data acquisition time of each distributed unit is the same. In this way, the collected data of other distributed units received by a certain distributed unit within a data sending cycle are all generated at the same time, and the data collected by each distributed unit can be processed.

如图6所示为SLAVER单元处理流程图。当系统处于非同步状态下,系统初始化后,直接进入SLAVER控制状态,如SLAVER单元没有接收到MASTER单元发送的Sync包,SLAVER单元一直处于SLAVER控制状态,此时,主控计算机可以对SLAVER单元进行侦测、系统配置和功能配置等工作,工作处理过程与MASTER单元一样。当MASTER单元向SLAVER单元发送Sync包后,SLAVER单元跟随MASTER单元进入同步状态(如图4所述)。同步后,数据传输根据控制状态时计算机配置实时状态功能来实现;如果控制状态没有系统配置和功能配置,数据传输根据FLASH中的系统配置和功能配置来实现。实时数据传输状态下,系统根据同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻、数据采集速率、数据采集通道数、数据采集存储地址和数据输出缓存地址进行实时数据传输。Figure 6 shows the processing flow chart of the SLAVER unit. When the system is in the asynchronous state, after the system is initialized, it directly enters the SLAVER control state. If the SLAVER unit does not receive the Sync packet sent by the MASTER unit, the SLAVER unit is always in the SLAVER control state. At this time, the master computer can control the SLAVER unit. Detection, system configuration and function configuration, etc., the work process is the same as that of the MASTER unit. After the MASTER unit sends a Sync packet to the SLAVER unit, the SLAVER unit follows the MASTER unit into a synchronization state (as described in FIG. 4 ). After synchronization, data transmission is realized according to the real-time status function of computer configuration in the control state; if there is no system configuration and function configuration in the control state, data transmission is realized according to the system configuration and function configuration in FLASH. In the state of real-time data transmission, the system performs real-time data transmission according to the synchronization cycle, data sending cycle, data sending length, data receiving buffer address, data sending time, data acquisition rate, number of data acquisition channels, data acquisition storage address and data output buffer address .

根据系统配置对系统中各种报文的格式进行定义。以下对几种报文的格式进行举例说明。网络UDP包定义:(44332211为区别于其它系统的特设的数据包字段)Define the format of various messages in the system according to the system configuration. The following describes the formats of several packets with examples. Network UDP packet definition: (44332211 is an ad hoc data packet field different from other systems)

hello包:UDP包头+44332211+90hello packet: UDP header +44332211+90

response包:UDP包头+44332211+91response package: UDP header +44332211+91

UnitGet包:UDP包头+44332211+99UnitGet package: UDP header +44332211+99

UnitInform包:UDP包头+44332211+9a+单元号(可设MASTER单元为00,SLAVER单元为01-ff,每个SLAVER单元单元号必须是唯一的)UnitInform package: UDP header + 44332211 + 9a + unit number (the MASTER unit can be set to 00, the SLAVER unit can be set to 01-ff, and the unit number of each SLAVER unit must be unique)

SysConfig包:UDP包头+44332211+01+单元号(同UnitInform包)+FLASH地址(2个字节)+配置数据(系统同步周期+数据发送周期+数据发送长度+数据发送时刻+数据接收缓存地址)+ffffffff(配置数据结束标志)SysConfig package: UDP header + 44332211 + 01 + unit number (same as UnitInform package) + FLASH address (2 bytes) + configuration data (system synchronization cycle + data sending cycle + data sending length + data sending time + data receiving buffer address )+ffffffff (configuration data end flag)

FunConfig包:UDP包头+44332211+01+单元号(同UnitInform包)+FLASH地址(2个字节)+配置数据(数据采集速率+数据采集通道数+数据采集存储地址+数据输出缓存地址)+ffffffff(配置数据结束标志)FunConfig package: UDP header + 44332211 + 01 + unit number (same as UnitInform package) + FLASH address (2 bytes) + configuration data (data acquisition rate + number of data acquisition channels + data acquisition storage address + data output cache address) + ffffffff (configuration data end flag)

Sync报文:UDP包头+44332211+70+单元号(同UnitInform包)Sync message: UDP header + 44332211 + 70 + unit number (same as UnitInform package)

Sync_Responce报文:UDP包头+44332211+71+单元号(同UnitInform包)+Delay(4个字节)Sync_Responce message: UDP header + 44332211 + 71 + unit number (same as UnitInform package) + Delay (4 bytes)

Sync_Start报文:UDP包头+44332211+72+单元号(同UnitInform包)。Sync_Start message: UDP header + 44332211 + 72 + unit number (same as UnitInform package).

Claims (7)

1. 一种基于FPGA技术的分布式网络时间同步系统,包括控制与处理部分、时钟同步部分、数据传输部分,其特征在于,所述控制与处理部分包括网络中心控制处理部分和各分布式单元控制处理部分,各分布式单元控制处理部分以FPGA为核心,控制网络中各分布式单元实现实时同步,定时发送和接收数据;网络中心控制处理部分:由主控计算机和监控计算机实施控制处理,主控计算机侦测网络中有多少分布式单元并根据系统配置信息和功能配置信息配置各分布式单元功能,主控计算机和监控计算机完成对数据包的监测;所述时钟同步部分包括1个主分布式单元MASTER和多个从分布式单元SLAVER,主分布式单元根据各从分布式单元的网络线路延迟确定主分布式单元和从分布式单元的时钟归零时刻,实现主、从分布式单元之间的同步;所述数据传输部分在非同步模式下传输侦测、配置数据及同步发起报文,同步模式下传输各分布式单元实时数据1. A distributed network time synchronization system based on FPGA technology, comprising control and processing part, clock synchronization part, data transmission part, it is characterized in that, described control and processing part comprise network center control processing part and each distributed unit The control processing part, the control processing part of each distributed unit takes FPGA as the core, and realizes real-time synchronization of each distributed unit in the control network, and sends and receives data at regular intervals; the control processing part of the network center: the main control computer and the monitoring computer implement control processing, The main control computer detects how many distributed units there are in the network and configures the functions of each distributed unit according to the system configuration information and function configuration information. The main control computer and the monitoring computer complete the monitoring of the data packets; the clock synchronization part includes a main Distributed unit MASTER and multiple slave distributed units SLAVER, the master distributed unit determines the clock reset time of the master distributed unit and the slave distributed unit according to the network line delay of each slave distributed unit, and realizes the master and slave distributed units Synchronization among them; the data transmission part transmits detection, configuration data and synchronization initiation messages in asynchronous mode, and transmits real-time data of each distributed unit in synchronous mode 2. 根据权利要求1所述的分布式网络时间同步系统,其特征在于,各从分布式单元实时控制模块根据其接收和发送报文的处理时间,发送报文的时间间隔和从分布式单元单元号,计算各从分布式单元的网络线路延迟Delay。2. The distributed network time synchronization system according to claim 1, wherein each slave distributed unit real-time control module receives and sends messages according to its processing time, the time interval of sending messages and the slave distributed unit Unit number, calculate the network line delay Delay of each slave distributed unit. 3. 根据权利要求1所述的分布式网络时间同步系统,其特征在于,系统配置信息包括系统同步周期、数据发送周期、数据发送长度、数据接收缓存地址、数据发送时刻;功能配置模块根据功能配置信息确定数据采集速率、数据采集通道数、数据采集存储地址、数据输出缓存地址。3. The distributed network time synchronization system according to claim 1, wherein the system configuration information includes system synchronization cycle, data sending cycle, data sending length, data receiving cache address, data sending time; function configuration module according to function The configuration information determines the data acquisition rate, the number of data acquisition channels, the data acquisition storage address, and the data output buffer address. 4. 根据权利要求1所述的分布式网络时间同步系统,其特征在于,FPGA中嵌有SOPC软核处理器,设置有系统配置、功能配置、传输控制、实时控制、UDP以及采集与输出模块,其中系统配置模块、功能配置模块和传输控制模块由FPGA实现;实时控制模块、UDP模块由FPGA中的SOPC实现。4. distributed network time synchronization system according to claim 1, is characterized in that, SOPC soft-core processor is embedded in FPGA, is provided with system configuration, function configuration, transmission control, real-time control, UDP and acquisition and output module , wherein the system configuration module, function configuration module and transmission control module are realized by FPGA; the real-time control module and UDP module are realized by SOPC in FPGA. 5. 一种基于FPGA技术的分布式网络时间同步方法,其特征在于,从分布式单元接收到主分布式单元发送的同步发起报文后,实时控制模块控制输出模块返回一个包含报文处理时间间隔和从分布式单元单元号的同步响应报文,主分布式单元根据同步响应报文、发送同步发起报文的时间Tm1、收到同步响应报文的时间Tm2,计算各从分布式单元的网络线路延迟,实时控制模块根据各从分布式单元的网络线路延迟确定主分布式单元和从分布式单元的时钟归零时刻,实现主、从分布式单元之间的同步。5. A distributed network time synchronization method based on FPGA technology, characterized in that, after the distributed unit receives the synchronous initiation message sent by the main distributed unit, the real-time control module controls the output module to return a message containing the processing time The interval and the synchronization response message of the slave distributed unit number, the master distributed unit calculates the time of each slave distributed unit according to the synchronization response message, the time Tm1 of sending the synchronization initiation message, and the time Tm2 of receiving the synchronization response message. Network line delay, the real-time control module determines the clock reset time of the master distributed unit and the slave distributed unit according to the network line delay of each slave distributed unit, and realizes the synchronization between the master and slave distributed units. 6. 根据权利要求5所述的分布式网络时间同步方法,其特征在于,所述报文处理时间间隔为从分布式单元从接收到同步发起报文到发送同步响应报文之间的时间间隔Adjust,根据公式Delay=(Tm2-Tm1-Adjust)/2计算从分布式单元网络线路延迟。6. The distributed network time synchronization method according to claim 5, wherein the message processing time interval is the time interval between receiving the synchronization initiation message and sending the synchronization response message from the distributed unit Adjust, according to the formula Delay=(Tm2-Tm1-Adjust)/2, calculates the line delay from the distributed unit network. 7. 根据权利要求5所述的分布式网络时间同步方法,其特征在于,当分布式单元增多时,分批对从分布式单元与主分布式单元实行同步。7. The distributed network time synchronization method according to claim 5, wherein when the distributed units increase, the distributed units and the master distributed units are synchronized in batches.
CN200810069526XA 2008-03-31 2008-03-31 Distributed network clock synchronizing system and method based on FPGA Expired - Fee Related CN101252404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810069526XA CN101252404B (en) 2008-03-31 2008-03-31 Distributed network clock synchronizing system and method based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810069526XA CN101252404B (en) 2008-03-31 2008-03-31 Distributed network clock synchronizing system and method based on FPGA

Publications (2)

Publication Number Publication Date
CN101252404A true CN101252404A (en) 2008-08-27
CN101252404B CN101252404B (en) 2012-01-04

Family

ID=39955603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810069526XA Expired - Fee Related CN101252404B (en) 2008-03-31 2008-03-31 Distributed network clock synchronizing system and method based on FPGA

Country Status (1)

Country Link
CN (1) CN101252404B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958785A (en) * 2009-07-17 2011-01-26 中国科学院沈阳计算技术研究所有限公司 Transfer time difference-based numerical control system on-site bus time synchronization method and device
CN101594673B (en) * 2009-06-29 2011-05-11 中兴通讯股份有限公司 Method and system for processing 1588 time stamp in distribution mode
CN101447861B (en) * 2008-12-29 2011-10-26 中兴通讯股份有限公司 IEEE 1588 time synchronization system and implementation method thereof
CN101388741B (en) * 2008-10-24 2012-12-12 中国科学院计算技术研究所 Highly precised time synchronization device, system and method for computer network
CN103369036A (en) * 2013-06-27 2013-10-23 国电南瑞科技股份有限公司 Point to point message synchrony-based sampling and controlling method
US8625641B2 (en) 2009-04-02 2014-01-07 Huawei Technologies Co., Ltd. Apparatus, method, and system for synchronizing time
CN103795790A (en) * 2014-01-23 2014-05-14 国电南瑞科技股份有限公司 Distributed synchronous sampling and control system and method based on communication
CN103825697A (en) * 2014-03-11 2014-05-28 武汉迈信电气技术有限公司 Multiple master station synchronization method and multiple master station synchronization system based on PowerLink
CN103957233A (en) * 2014-03-26 2014-07-30 哈尔滨工业大学 Real-time communication platform based on processor nucleus dividing and virtual machine
CN103995471A (en) * 2014-05-23 2014-08-20 华中科技大学 Clock synchronization method of distributed control system
CN104078089A (en) * 2014-06-25 2014-10-01 中广核核电运营有限公司 Distributed control system of nuclear power plant unit and clock synchronization method thereof
CN104464254A (en) * 2014-12-08 2015-03-25 中北大学 Distributed data synchronous acquisition device and distributed data synchronous acquisition method
CN103795520B (en) * 2014-01-23 2017-01-25 国家电网公司 Method for real-time synchronization based on FPGA message
CN106667516A (en) * 2016-12-29 2017-05-17 上海联影医疗科技有限公司 Time synchronization system of mammary gland tomography device
CN106982103A (en) * 2017-05-05 2017-07-25 烽火通信科技股份有限公司 The method and system of PTP messages are controlled in more than 100G optical transport chips
CN107666360A (en) * 2017-09-07 2018-02-06 中车大连电力牵引研发中心有限公司 Train system time synchronization control method and device
CN109274451A (en) * 2018-08-24 2019-01-25 新华三技术有限公司 A kind of time obtaining method, device and equipment
CN111338246A (en) * 2020-03-02 2020-06-26 上海电气集团股份有限公司 High-precision time synchronization control system of wind power converter
CN113810167A (en) * 2021-09-27 2021-12-17 上海航天计算机技术研究所 Time sequence control and synchronization method of distributed system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7145362B1 (en) * 2004-09-10 2006-12-05 Xilinx, Inc. Clock signal-distribution network for an integrated circuit
CN1333538C (en) * 2005-03-18 2007-08-22 北京北方烽火科技有限公司 Digital phase-lock method for clock signal in radio-frequency Layuan module
CN100533600C (en) * 2007-03-14 2009-08-26 北京中星微电子有限公司 Device and method for verifying synchronous memory controller based on field programmable gate array
CN101114896A (en) * 2007-05-15 2008-01-30 北京东土科技股份有限公司 Method for implementing precise synchronization clock

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388741B (en) * 2008-10-24 2012-12-12 中国科学院计算技术研究所 Highly precised time synchronization device, system and method for computer network
CN101447861B (en) * 2008-12-29 2011-10-26 中兴通讯股份有限公司 IEEE 1588 time synchronization system and implementation method thereof
US8625641B2 (en) 2009-04-02 2014-01-07 Huawei Technologies Co., Ltd. Apparatus, method, and system for synchronizing time
CN101594673B (en) * 2009-06-29 2011-05-11 中兴通讯股份有限公司 Method and system for processing 1588 time stamp in distribution mode
CN101958785B (en) * 2009-07-17 2013-01-02 中国科学院沈阳计算技术研究所有限公司 Transfer time difference-based numerical control system on-site bus time synchronization method and device
CN101958785A (en) * 2009-07-17 2011-01-26 中国科学院沈阳计算技术研究所有限公司 Transfer time difference-based numerical control system on-site bus time synchronization method and device
WO2014205936A1 (en) * 2013-06-27 2014-12-31 国电南瑞科技股份有限公司 Sampling and control method based on point-to-point message synchronization
CN103369036A (en) * 2013-06-27 2013-10-23 国电南瑞科技股份有限公司 Point to point message synchrony-based sampling and controlling method
CN103795520B (en) * 2014-01-23 2017-01-25 国家电网公司 Method for real-time synchronization based on FPGA message
CN103795790A (en) * 2014-01-23 2014-05-14 国电南瑞科技股份有限公司 Distributed synchronous sampling and control system and method based on communication
CN103825697A (en) * 2014-03-11 2014-05-28 武汉迈信电气技术有限公司 Multiple master station synchronization method and multiple master station synchronization system based on PowerLink
CN103825697B (en) * 2014-03-11 2017-02-08 武汉迈信电气技术有限公司 Multiple master station synchronization method and multiple master station synchronization system based on PowerLink
CN103957233A (en) * 2014-03-26 2014-07-30 哈尔滨工业大学 Real-time communication platform based on processor nucleus dividing and virtual machine
CN103957233B (en) * 2014-03-26 2017-03-15 哈尔滨工业大学 Based on processor pyrene and the real-time communication platform of virtual machine
CN103995471A (en) * 2014-05-23 2014-08-20 华中科技大学 Clock synchronization method of distributed control system
CN104078089A (en) * 2014-06-25 2014-10-01 中广核核电运营有限公司 Distributed control system of nuclear power plant unit and clock synchronization method thereof
CN104464254A (en) * 2014-12-08 2015-03-25 中北大学 Distributed data synchronous acquisition device and distributed data synchronous acquisition method
CN106667516A (en) * 2016-12-29 2017-05-17 上海联影医疗科技有限公司 Time synchronization system of mammary gland tomography device
CN106667516B (en) * 2016-12-29 2020-11-27 上海联影医疗科技股份有限公司 Time synchronization system of breast tomography equipment
CN106982103A (en) * 2017-05-05 2017-07-25 烽火通信科技股份有限公司 The method and system of PTP messages are controlled in more than 100G optical transport chips
CN107666360A (en) * 2017-09-07 2018-02-06 中车大连电力牵引研发中心有限公司 Train system time synchronization control method and device
CN107666360B (en) * 2017-09-07 2022-11-25 中车大连电力牵引研发中心有限公司 Train system time synchronization control method and device
CN109274451A (en) * 2018-08-24 2019-01-25 新华三技术有限公司 A kind of time obtaining method, device and equipment
CN109274451B (en) * 2018-08-24 2020-08-04 新华三技术有限公司 Time acquisition method, device and equipment
CN111338246A (en) * 2020-03-02 2020-06-26 上海电气集团股份有限公司 High-precision time synchronization control system of wind power converter
CN111338246B (en) * 2020-03-02 2021-04-13 上海电气集团股份有限公司 High-precision time synchronization control system of wind power converter
CN113810167A (en) * 2021-09-27 2021-12-17 上海航天计算机技术研究所 Time sequence control and synchronization method of distributed system
CN113810167B (en) * 2021-09-27 2023-05-09 上海航天计算机技术研究所 Time sequence control and synchronization method of distributed system

Also Published As

Publication number Publication date
CN101252404B (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN101252404A (en) FPGA-based distributed network clock synchronization system and method
CN101977104B (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN105429725B (en) A kind of submicrosecond grade clock synchronizing method and system based on SOPC networkings
CN102237997B (en) Method for real-time synchronization and dynamic compensation between chain Ethernet nodes
CN102332973B (en) Real-time communication and clock synchronization method of chain network
CN1667997B (en) Method and system for the clock synchronization of network terminals
CN108259109B (en) Network equipment in PTP domain and TOD synchronization method
CN103780320B (en) Multi-band Data Detector Based on FPGA
CN110493744A (en) A kind of synchronous data sampling method and system of master-slave radio sensor
CN114337895A (en) Clock synchronization system based on linear daisy chain Ethernet topology
CN103248471A (en) Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network
CN107579793A (en) The optimization method of time synchronized, device and equipment between a kind of communication network device
CN103929293A (en) Asymmetric delay time synchronization method and system
WO2008101394A1 (en) Real-time synchronous method and synchronous network based on the standard ethernet
CN104363083A (en) Intelligent substation IEEE1588 clock synchronous redundancy system and method
CN103995471A (en) Clock synchronization method of distributed control system
CN109996325A (en) A kind of clock system and method for wireless sensor network
CN102811480A (en) Time Synchronization Method for Wireless Sensor Networks Based on Physical Pulse Coupling
CN103002562A (en) A hardware synchronization method and synchronization system for a wireless sensor network
CN100479361C (en) Synchronous medium access controller
CN110955179B (en) Dual-channel shared clock trigger delay adjusting device based on PCI bus
CN103684647A (en) Time delay eliminating method and device for PTP data packet when converted between Ethernet and E1 protocol
CN105450320B (en) A kind of intelligent substation whole process us class precisions wireless ethernet network sychronisation and method
CN108737809B (en) A Remote Synchronized Image Acquisition Method
CN201557117U (en) GPS and nanosecond NTP two-way inputted synchronous networking clock

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120104

Termination date: 20160331