为了满足道路交通状态获取传感器网络大容量数据实时传输的需要,在研究CAN协议的原理及应用技术基础之上,针对道路交通基本参数结构复杂的特点,实现CAN网络的数据通信并设计了新的CAN总线应用层协议;协议定义了报文的标识符,合理地分配了优先权,实现广播式和点对点的通讯,并对网络负载,实时性等方面的问题进行了分析;实验结果表明,该协议适用于道路交通状态获取,系统的实时监控和数据传输,具有可靠性高,网络负载小,控制实时性强的特点。
In order to satisfy the demand of large data real-time transmission in the sensor network for state acquisition of road traffic, the date transmission of CAN was realized and a new kind of CAN application layer protocol was designed. This design considered the feature of basic traffic parameters, such as complex structure. Messages ID in the network, and the priorities of messages were assigned reasonably. The protocol realized destination specific communications and broadcast communications. The problems on network load and real time were analyzed. Experimental results indicated that the protocol was suitable for real time monitoring and data transmission in the acquisition system of road traffic. This protocol had high reliability, low network load and strong real-time performance.