吉林大学学报(信息科学版) ›› 2015, Vol. 33 ›› Issue (1): 57-41.

• 论文 • 上一篇    下一篇

基于ARM7 的汽车CAN 总线冗余网关设计

李小龙1, 宋 欣2, 徐 强1, 宋占伟1   

  1. 1. 吉林大学电子科学与工程学院, 长春130012; 2. 吉林省启明软件园企业孵化有限公司结构部, 长春130117
  • 收稿日期:2014-04-21 出版日期:2015-01-24 发布日期:2015-03-20
  • 作者简介:李小龙(1988—), 男, 湖北宜昌人, 吉林大学硕士研究生, 主要从事汽车电子研究,(Tel)86-15948704199(E-mail)lixiaolongmessi@sina.com; 宋占伟(1962—), 男, 长春人, 吉林大学教授, 硕士生导师, 主要从事汽车电子、 图像处理、 嵌入式系统和智能家居研究,(Tel)86-431-85095828(Email)songzw@jlu.edu.cn。
  • 基金资助:

    长春市物联网重大科技专项基金资助项目(2011144)

Design of Vehicle CAN Bus Redundancy Gateway Based on ARM7

LI Xiaolong1, SONG Xin2, XU Qiang1, SONG Zhanwei1   

  1. 1. College of Electronic Science and Engineering, Jilin University, Changchun 130012, China;2. Structure Department, Qiming Software Park Business Incubation Limited Company, Changchun 130117, China
  • Received:2014-04-21 Online:2015-01-24 Published:2015-03-20

摘要:

针对目前汽车内部连接ECU(Electronic Control Unit)的单线结构CAN(Controller Area Networks)总线网关, 一旦CAN总线线束损坏, 无法保证汽车各ECU之间稳定通信的问题, 提出了一种基于ARM7的冗余网关设计方案。该方案以ARM7处理器为中控网关控制器, 利用总线冗余的设计思想, 为主CAN总线备用辅助的CAN总线, 采用支持多任务实时调度的μC/OSⅡ作为实时操作系统, 在ADS(ARM -Developer- Suite)上软件编程完成各节点与网关之间的数据通信、 网关对数据中继转发、 总线故障切换。实验室组网测试表明, 该网关不但能与普通节点之间进行数据通信, 而且具有高低CAN总线节点之间的数据通信的中继转发功能, 在主CAN总线出现故障时及时切换到辅助CAN总线, 使整个车载CAN网络稳定可靠运行。

关键词: 汽车, CAN总线, 冗余网关, 数据通信, μC/OSⅡ操作系统

Abstract:

In view of the single bus structure of present vehicle internal CAN(Controller Area Network) bus gateway can not guarantee the stability of communication between ECU(Electronic Control Unit) when meeting with wire damaged, this paper proposed a redundant gateway design scheme based on ARM7. The scheme used ARM7 processor as central gateway controller, utilized the ideas of bus redundancy design, spared an auxiliary CAN bus for the prime CAN bus, used μC/OSⅡ real-time operation system as software platform which supported multitasking real-time scheduling. Software programming on ADS completed the data communications between nodes and gateway, data relay of the gateway, switching the bus when the prime bus breakdown. Expe
rimental results showed that the gateway can complete not only data communication between nodes, but also relaying function between high CAN bus nodes and low CAN bus nodes, in addition, it can switch to the auxiliary CAN bus in time if the prime CAN bus met fault, all of this can make the whole vehicle CAN network stable and reliable.

Key words: vehicle, controller area networks (CAN) bus, redundancy gateway, data communication, μC/OSⅡ operation system

中图分类号: 

  • TP336