针对无线传感器网络存在着传输距离短、抗干扰性差等缺点,设计并实现了一种基于CAN总线的传感器网络;整个网络采用总线式拓扑结构,利用C8051F040内部集成的CAN模块和CAN收发器TJAl040实现网络中各节点与总线的通信,使用usBUART桥接芯片CP2101实现上位机与监测总站之间的通信;试验中通过点名操作和控制帧同步,系统自动识别了各节点在系统的定位及节点的数目,并成功读取4个节点的传感器采集到的数据,满足实际工作需要。
With some disadvantages, such as short transmission distance and weak antijamming capability, consisting in wireless sen sor network, a sensor network based on CAN bus was designed, which adopts the bus topological structure. This design realized data com munication between each node and CAN bus by using CAN controller of C8051F040 MCU and TJA1040 and realized communication between PC and monitoring station by using USB UART bridge chip CP2101. Through naming operation and controlling frame synchronization in experiment, the system automatically identified the location of each node and the numbers of nodes in system, and successfully read data col lected by sensors in four nodes. The experiment results indicated that the system can meet the actual need in work.