节点文献

基于汽车总线模型的CANopen协议的实现

The Realization of CANopen Protocol Based on the Model of Automobile Bus

【作者】 王芳

【导师】 郭文成;

【作者基本信息】 天津工业大学 , 模式识别与智能系统, 2008, 硕士

【摘要】 随着汽车技术的日益发展,汽车电子装备不断增加,进而带来汽车综合控制系统中大量的信号需实时交换的问题,传统线束已远远不能满足这种要求,因而,越来越多的汽车采用控制器局域网(CAN)。但是,CAN总线只定义了开放式系统互连参考模型(OSI)中的物理层和数据链路层,一般用户必须直接用驱动程序操作链路层,不能直接满足复杂控制网络的组态和产品互连要求。CANopen作为一种真正开放的CAN高层协议,实现不同的CAN设备以标准化的方式进行通信,使得CAN设备具有互操作性。随着CANopen协议的日益完善,它已经广泛应用于多个行业。本文首先介绍了CAN网络模型中各层的功能和层次结构,设计了基于CAN总线的汽车控制系统模型。该模型主要包含4个节点:发动机控制系统(EMS)、制动防抱死控制系统(ABS)、安全气囊控制系统(SRS)、车身控制系统。各个节点设计上采用内置CAN模块的飞思卡尔16位单片机作为主控芯片来搭建硬件电路,以实现CAN总线的物理层和数据链路层。设计并实现了CAN的驱动层,为各节点间的CANopen通信做准备。然后,详细分析了CANopen应用层协议,解释了CANopen的核心——对象字典、各类通讯对象、标识符的分配,以及一些设备子协议(Device Profiles)。软件上实现了模型中各节点间的CANopen通信,完成了总线数据通讯、网络管理和相应的控制任务。

【Abstract】 With the development of the automotive technology, the electronic devices of automobile increase rapidly, which brings the problem that it is necessary for integrated control systems to exchange the vast signals in the real-time. The traditional wiring hameses can not satisfy the development of the quest, so more and more automobile use CAN.However, CAN-bus just define CAN physical layer and CAN data link layer of OSI communication model. Common users have to deal with the data link layer with the result that CAN chips cannot meet the requirement of configuration and product interlinkage in complicated control networks. As a completely open higher layer protocol of CAN-bus, the CANopen protocol allows different CAN devices to communicate with each other in a standardized manner and makes them interoperable. With its perfection increasingly, the CANopen protocol has been widely applied into some fields.This article firstly introduced the layers structure and each layer function of CAN-bus’s network model and designed the automobile control system model based on CAN-bus. The model divided into four nodes, including EMS, ABS, SRS and body control system. Through using 16-bit freescale MCU embedded CAN controller as master chip in each node, it achieved the design of hardware circuit, so realized CAN physical layer and CAN data link layer. It also designed and finished the CAN driver layer, laying the foundation for the CANopen communication among the nodes.Secondly this article analyzed the CANopen application layer protocol in detail. It explained the core of CANopen—object dictionary, all kinds of communication objects, the allocation of COB-ID and some device profiles. Then it realized CANopen communication among the nodes in the model through software, and finished the bus data communication, network management, as well as its corresponding mission in control.

【关键词】 CAN总线CAN控制器CANopenMC9S12DG128B
【Key words】 CAN-busCAN controllerCANopenMC9S12DG128B
  • 【分类号】TP273
  • 【被引频次】16
  • 【下载频次】578
节点文献中: