摘要
IEEE1588协议通过LAN通信可实现局域网内节点间的精密时钟同步,而时间戳的加盖方式和时钟偏差调整的方法影响着同步精度.为了满足高同步精度的需求,对硬件加盖时间戳和时钟偏差调整的方法进行研究,对嵌入式Linux系统的驱动层和内核层进行修改实现硬件加盖时间戳的功能,同时提出一种对从时钟频率进行调整的方法实现对时钟偏差的调整.实验结果表明,本设计可以有效对PTP报文加盖时间戳,时钟同步精度可达100ns以内.
LAN Node can achieve precision clock synchronization with IEEE1588 protocol communicated through LAN. The position of time stamp and method of clock offset adjustment affect the synchronization precision. In order to meet the needs of high precision, we study the hardware timestamp and method of clock offset adjustment. We modify the driver layer and the kernel in Linux to realize hardware timestamp, and puts forward a method to adjust clock offset. Experimental results showed that the design could implement hardware timestamp and clock synchronization precision could reach 100 ns.
出处
《玉林师范学院学报》
2017年第2期123-128,共6页
Journal of Yulin Normal University
基金
广西高校科学技术研究项目资助(Grant No.KY2015LX297)
玉林师范学院一般项目资助(Grant No.2016YJKY06)