首页 | 本学科首页   官方微博 | 高级检索  
     

基于CAN总线的分布式高精度时钟的实现
引用本文:何万里,隋江华,任光.基于CAN总线的分布式高精度时钟的实现[J].计算机工程与应用,2004,40(36):203-204,232.
作者姓名:何万里  隋江华  任光
作者单位:大连海事大学轮机学院,辽宁,116026
基金项目:高等学校博士学科点专项科研基金(编号:20030151005)
摘    要:在许多对时间要求很严格的应用中都需要一个精确的实时时钟,如分布式控制中的测试设备就需要一个精确到毫秒级的实时时钟。集中式控制系统达到毫秒级非常容易,但是在分布式控制系统(例如连接在CAN-bus上的传感器和执行机构),由于他们没有全局的时钟节拍,使系统达到毫秒级的同步就很困难。这个问题可以通过在一定的精度内同步所有的节点时钟来解决。该文提出了一种应用在总线上的时钟同步协议,并且以CAN-bus为例在实验室中得以实现。经验证该协议能够提供一个大约10毫秒的同步精度。该协议简单且不需要额外的硬件,它只是占有一定的带宽(<20个信息/每秒)。如必要也可在大型网络中达到与外部时钟基准同步的要求。

关 键 词:CAN  分布式系统  实时  时钟同步
文章编号:1002-8331-(2004)36-0203-02

Implementing a Distributed High-Resolution Real-time Clock by the CAN-bus
He Wanli,Sui Jianghua,Ren Guang.Implementing a Distributed High-Resolution Real-time Clock by the CAN-bus[J].Computer Engineering and Applications,2004,40(36):203-204,232.
Authors:He Wanli  Sui Jianghua  Ren Guang
Abstract:Much time critical applications,e.g.the measurement devices in distributed control system,require a real-time clock with an accuracy of microseconds.In a centralized system it is easy to implement the requirement,but in a distributed system (like a number of sensor and actuator nodes connected via the CAN-bus),this is more difficult as there is no global system tick.Synchronizing the local clocks of all nodes with a sufficient accuracy can solve this problem.This paper offers a clock synchronization protocol on the CAN-network and implements it in the lab.The results show this protocol can reach the accuracy of 10 microseconds.The protocol is simple and hardware-independent;it uses only a small amount of bandwidth(<20 messages/second).If necessary,e.g.in large scale networks,the protocol can be synchronized with an external time-base.
Keywords:CAN  distributed system  real-time  clock synchronization  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号