摘要
数据同步精度是影响分布式测试数据分析处理的关键因素,因此引入IEEE 1588协议,并对其实现原理进行研究。本文通过分析开源代码ptpd并在其基础上实现主从时钟同步。另外分析影响主从时钟同步精度的因素主要为时钟晶振的漂移。在PID控制器的基础上通过引入卡尔曼滤波器实现对时钟偏移(漂移)进行补偿校正,以软件的方式对PTP伺服时钟系统进行改进,并通过相关实验验证了改进后的效果。结果表明,改进后的系统能够提高同步精度。
Data synchronization accuracy is a key factor affecting the analysis and processing of distributed test data.Therefore,IEEE 1588 protocol is introduced and its implementation principle is studied.This paper analyzes the source code PTPD and realizes the master-slave clock synchronization based on it.In addition,the drift of clock crystal oscillation is the main factor affecting the synchronization accuracy of master and slave clocks.On the basis of PID controller,clock drift is compensated and corrected by introducing kalman filter,PTP servo clock system is improved by software,and the improved effect is verified by relevant experiments.The results show that the improved system can improve the synchronization accuracy.
作者
王旭
陈晔
郑宾
WANG Xu;CHEN Ye;ZHENG Bin(School of Electrical and Control Engineering,North University of China,Taiyuan 030051 China;National Key Laboratory for Electronic Measurement Technology,North University of China,Taiyuan 030051 China)
出处
《自动化技术与应用》
2020年第6期66-71,共6页
Techniques of Automation and Applications