天津职业技术师范大学
Tianjin University of Technology and Education
毕 专 业:班级学号:学生姓名:指导教师:
设 计
汽车维修工程教育(高本) 汽修1001 - 25 陈灏 徐征 副教授
二〇一四年六月
业
天津职业技术师范大学本科生毕业设计
电子驻车制动控制器的CAN节点诊断仿真
模型设计
Simulation Model Design of CAN node diagnosis of
Electrical Parking Brake
专业班级:汽修1001 学生姓名:陈灏 指导教师:徐征 副教授 学 院:汽车与交通学院
2014年6月
I
摘 要
随着汽车电子化程度变高,针对汽车设计的通信网络CAN(Controller Area Network)总线的应用越来越普及。由于电子驻车制动控制器(EPB)的应用越来越多,CAN总线被使用到了EPB上来对驻车制动器进行电子化的实现和控制。
ISO 15765协议是一种诊断协议,并且符合CAN总线标准。它因为汽车厂商们要在汽车上实现UDS协议而被设计出来。在大量阅读国内外研究资料后,对ISO 15765协议的网络层和应用层进行研究。
利用CAN仿真软件对故障功能后进行仿真模型设计,实现EPB的故障诊断测试用例。利用CANoe语言编辑器CAPL配置诊断文件。在程序里添加网络节点并且对其添加诊断说明,设置变量,调试级别,设置诊断目标,创建诊断响应和请求。仿真模型提供的诊断服务有:确定ECU,读取ECU的输入信号,将输入信号写入执行器,读取ECU内部信息。利用设计的仿真模型测试EPB控制器,给出测试结果报告,并就数据进行分析。
关键词:EPB;CAN协议;诊断;CANoe仿真软件
II
ABSTRACT
With the increasingly high level of automotive electronics, CAN bus
communication network designed for automotive applications are widely used. Electronic parking brake controller (EPB) an increasing number of applications, CAN-bus was used to the EPB to realization of electronic parking brake and control.
ISO 15765 diagnosis Protocol is a communication protocol based on CAN protocol. Because car manufacturers to achieve UDS Protocol vehicles are designed. Read the research information, the network layer and application layer of the ISO 15765 Protocol for research.
I will use simulation software CAN simulate the fault feature model design, and realizing EPB troubleshooting test cases. Using CANoe CAPL language Editor to configure the diagnostic files. Adding network node and add it to the program troubleshooting instructions, then set a variable to the debug level set diagnostic targets, then create a diagnostic responses and requests. Diagnostic services provided by the simulation model: determine the ECU, reads the input signals of the ECU, then write the input signal to actuator, ECU internal information is read. Using design simulation model test of EPB controllers and take test results report and data analysis. Key Words:EPB; CAN protocols; Diagnosis; CANoe simulation software
III
目 录
1 引 言 ...................................................................................................................... 1
1.1 研究背景 ............................................................................................................ 1 1.2 研究内容 ............................................................................................................ 1 1.3 研究目的及意义 ................................................................................................ 2 2 EPB系统介绍 .............................................................................................................. 3
2.1 EPB的工作原理 ................................................................................................. 3 2.2 EPB结构 ............................................................................................................. 3 2.3 EPB功能 ............................................................................................................. 4
2.3.1 驻车功能 .................................................................................................. 4 2.3.2 动态起步辅助功能 .................................................................................. 4 2.3.3紧急制动功能 ........................................................................................... 4 2.3.4 自动驻车功能 .......................................................................................... 5
3 CAN总线介绍 ............................................................................................................. 6
3.1 CAN概述 ............................................................................................................ 6 3.2 CAN基本概念 .................................................................................................... 6 3.3 CAN物理层 ........................................................................................................ 7
3.3.1 拓扑结构 .................................................................................................. 7 3.3.2 总线电平 .................................................................................................. 8 3.3.3 位定时要求 .............................................................................................. 9 3.4 CAN数据链路层 ................................................................................................ 9
3.4.1 CAN报文的帧类型 .................................................................................. 9
4 CAN诊断 ................................................................................................................... 11
4.1诊断基本概念 ................................................................................................... 11 4.2 诊断的发展 ...................................................................................................... 11 4.3 诊断系统结构 .................................................................................................. 11 4.4 CAN诊断-网络层(ISO 15765-2) ................................................................ 13
4.4.1 消息类型 ................................................................................................ 13 4.4.2 单帧传送 ................................................................................................ 13 4.4.3 多帧传送 ................................................................................................ 13 4.4.4 寻址模式 ................................................................................................ 14
IV