国外电子测量技术2024,Vol.43Issue(3) :114-120.DOI:10.19652/j.cnki.femt.2305770

基于RT-thread的精确时间同步系统设计

Design of precise time synchronization system based on RT-thread

高中淦 岳凤英 王恩怀 赵田娟
国外电子测量技术2024,Vol.43Issue(3) :114-120.DOI:10.19652/j.cnki.femt.2305770

基于RT-thread的精确时间同步系统设计

Design of precise time synchronization system based on RT-thread

高中淦 1岳凤英 1王恩怀 2赵田娟1
扫码查看

作者信息

  • 1. 中北大学电气与控制工程学院 太原 030051
  • 2. 中北大学仪器与电子学院 太原 030051
  • 折叠

摘要

分布式智能采集终端需要一致的时间基准,用于多种数据和事件的时间标记.为满足智能采集终端对高精度时间同步的需求,选择IEEE 1588精确时间同步协议实现时间同步;设计基于纯国产32 bit双核微控制器 HPM6750和以太网收发器RTL8211FS(I)-VS的精确时间同步系统,选用国产开源嵌入式实时操作系统RT-thread操作系统,实现在物理层获取时间戳来运行IEEE 1588协议;构建测试平台对该时间同步系统进行主从时钟同步精度测试.测试结果表明,设计在物理层获取时间戳时达到的时间同步精度在±250 ns以内,与在数据链路层获取时间戳时达到±10 μs的时间同步精度相比较,有效提高了时间同步精度,可广泛应用于对时间同步精度有较高要求的智能采集终端.

Abstract

Distributed intelligent collection terminals require consistent time benchmarks for time tagging of various data and events.To meet the demand of intelligent collection terminals for high-precision time synchronization,IEEE 1588 precise time synchronization protocol is selected to achieve time synchronization.Built a precise time synchronization system based on a pure domestic 32-bit dual core microcontroller HPM6750 and Ethernet transceiver RTL8211FS(I)-VS.We have selected the domestic open-source embedded real-time operating system RT thread operating system to obtain timestamps at the physical layer and run the IEEE 1588 protocol.A testing platform was constructed to test the master slave clock synchronization accuracy of the time synchronization system.The test results show that the timestamp obtained at the data link layer reaches±10 μs.Compared with the time synchronization accuracy of±10 μs,the time synchronization accuracy achieved in the physical layer when obtaining timestamps in this design is within±250 ns,effectively improving the time synchronization accuracy.It can be widely used in intelligent acquisition terminals with high requirements for time synchronization accuracy.

关键词

采集终端/IEEE/1588/时间同步/实时操作系统/RT-thread/国产化

Key words

collection terminal/IEEE 1588/time synchronization/real time operating system/RT-thread/localization

引用本文复制引用

基金项目

山西省自然科学研究面上项目(20210302123026)

出版年

2024
国外电子测量技术
北京方略信息科技有限公司

国外电子测量技术

CSTPCD
影响因子:1.414
ISSN:1002-8978
参考文献量18
段落导航相关论文