良好的时钟同步是汽车CAN网络可靠运行的关键。在分析常见主从同步和协商同步的基础上,提出了“前期协商”时钟同步方法,以同步主节点优先级表为基础进行节点之间的协商,选择时钟主节点。最后仿真实例表明:该方法在保证可靠性的前提下,仅用较小的软件开销便可实现精确度较高的时钟同步。
A good clock synchronization is the key of reliable operation for car CAN network. In this paper, the master-slave synchronization and negotiation synchronization is analyzed, and the "early consultation" clock synchronization method based on information status table is proposed. Aiming at the improving software synchronous precision problem, the synchronization mechanism and algorithm model based on sending and receiving synchronization messages frame is designed. Finally the example shows that this method guarantees the reliability that is only with smaller software overhead to realize high precision clock synchronization.