摘要
针对停车场计时收费系统的时间同步和监测问题,设计了一种基于NTP的停车场时间同步系统,将停车场计时收费系统的时间同步并溯源至UTC(NIM),并对网络时间协议的滤波算法进行优化,降低网络链路不对称所造成的影响,同步后的平均时间偏差减少了2.62 ms。该系统运行在μC/OS实时操作系统上,采用网络时间协议并通过4G无线传输的方式与标准时间实时同步,再将同步后的时间通过总线或以太网传递给停车场计时收费系统,同时将时间偏差上传至监测平台,有效解决了停车场计时收费系统的时间同步问题。
To solve problems of time synchronization and monitoring of parking lot,an NTP-based time synchronization system for the parking lot was designed to synchronize and trace the time of the parking lot to UTC(NIM),and the filtering algorithm of NTP was optimized to reduce the impact caused by network link asymmetry,and the average time deviation after synchronization is reduced by 2.62 ms.The system runs onμC/OS real-time operating system,adopts NTP to synchronize time to time standard in near real-time through 4G wireless transmission,then transmits the synchronized time to the parking lot timing and charging system through bus or Ethernet,and uploads the time deviation to the monitoring platform at the same time,which effectively solves the time synchronization problem of parking lot timing and charging system.
作者
袁小迪
宋文霞
张越
YUAN Xiaodi;SONG Wenxia;ZHANG Yue(National Institute of Metrology,Beijing 100029,China;Beijing Information Science&Technology University,Beijing 100101,China)
出处
《计量科学与技术》
2021年第5期96-100,共5页
Metrology Science and Technology
作者简介
袁小迪(1990-),中国计量科学研究院助理工程师,研究方向:计量管理、时间频率计量等,邮箱:yuanxd@nim.ac.cn。