没有合适的资源?快使用搜索试试~ 我知道了~
首页CANoe实现故障诊断的说明文档
资源详情
资源推荐
CANoe as a diagnostic tool
Version 1.2
2006/06/06
Application Note AN-IND-1-001
Author(s) Asa Forsberg, Thomas R. Schmidt
Restrictions Public Document
Abstract This application gives a general introduction into working with diagnostics in CANoe. It
presents the basic technical aspects and possibilities with the Diagnostic Feature
Set.This document complements the help file of CANoe and may be used as a tutorial
Table of Contents
1
Copyright © 2006 - VecScan AB, Vector Informatik GmbH
Contact Information: www.vector-informatik.com or ++49-711-80 670-0
1.0 Overview ..........................................................................................................................................................3
1.1 Introduction....................................................................................................................................................3
1.2 Diagnostic components.................................................................................................................................4
1.3 Major changes between CANoe 5.0 and CANoe 5.1....................................................................................4
1.4 Major changes between CANoe 5.1 and CANoe 5.2....................................................................................4
2.0 Diagnostics in CANoe......................................................................................................................................6
2.1 OSEK TP support..........................................................................................................................................6
2.2 Diagnostic descriptions .................................................................................................................................6
2.2.1 Trace window..............................................................................................................................................6
2.2.2 Diagnostic Feature Set ...............................................................................................................................6
2.2.3 CAPL ECU simulations...............................................................................................................................7
2.2.4 CAPL tester simulations or test modules....................................................................................................7
2.2.5 Physical Network Request and Network CDD............................................................................................8
2.2.6 Access to diagnostics features via COM ....................................................................................................8
2.2.7 Symbolic selection dialog for diagnostics objects and parameters ............................................................8
2.3 KWP2000 and UDS.......................................................................................................................................9
3.0 First steps.......................................................................................................................................................10
3.1 Usage of diagnostic database files .............................................................................................................10
3.1.1 Add a CDD file ..........................................................................................................................................10
3.1.2 Configure the CDD file..............................................................................................................................10
3.2 Usage of Diagnostic Console and Fault Memory Window..........................................................................11
3.2.1 Send a diagnostic request and receive a response..................................................................................11
3.2.2 Read fault memory....................................................................................................................................11
3.2.3 Physical network requests ........................................................................................................................11
3.3 Usage of CAPL and CDDs to simulate diagnostics ....................................................................................11
3.3.1 CAPL Browser ..........................................................................................................................................11
3.3.2 Mandatory CAPL functions in ECU simulations and non-standard testers ..............................................11
3.3.3 Mandatory variable ...................................................................................................................................12
3.3.4 Debug level...............................................................................................................................................12
3.3.5 Create a simulated node with TP functionality .........................................................................................12
3.3.6 Set the diagnostic target ...........................................................................................................................12
3.3.7 Qualifier for Diagnostics request...............................................................................................................13
3.3.8 Qualifier for Diagnostics response............................................................................................................13
3.3.9 Create a diagnostic request......................................................................................................................13
3.3.10 Create a diagnostic response...................................................................................................................14
3.3.11 Work with parameters...............................................................................................................................14
CANoe as a diagnostic tool
2
Application Note AN-IND-1-001
3.3.12 Timeout handling ......................................................................................................................................16
3.3.13 Negative Response handling....................................................................................................................16
3.4 Combine Test Feature Set and Diagnostic Feature Set .............................................................................16
3.4.1 Difference between a Prog Node (ECU) and Test Module ......................................................................17
3.4.2 A simple Diagnostic Tester.......................................................................................................................17
3.4.3 Diagnostics tests with XML patterns.........................................................................................................18
4.0 Advanced examples.......................................................................................................................................20
4.1 ECU simulation of “Response Pending”......................................................................................................20
4.2 Modifying the length of a diagnostic object .................................................................................................21
4.3 Fill diagnostic content..................................................................................................................................21
4.4 Fault injection ..............................................................................................................................................22
4.4.1 Make request length illegal .......................................................................................................................22
4.4.2 Introduce errors on transport protocol level..............................................................................................22
4.5 Access LIN node via a CAN-LIN gateway simulation .................................................................................23
5.0 Common mistakes .........................................................................................................................................24
6.0 Abbreviations .................................................................................................................................................27
7.0 References.....................................................................................................................................................27
8.0 Additional Resources.....................................................................................................................................27
9.0 Contacts.........................................................................................................................................................27
CANoe as a diagnostic tool
3
Application Note AN-IND-1-001
1.0 Overview
1.1 Introduction
Diagnostics is used to configure, maintain, support, control and extend an ECU before or after it is installed in a
system, e.g. a vehicle. Diagnostics is usually performed in a request – response scheme: a tester (client) sends a
request to an ECU (or even more than one ECU) and the ECU(s) (server) respond(s) by sending a “positive
response message” containing the requested information, or a “negative response” indicating the reason for the
negative response.
The purpose of this application note is to give a general introduction into working with diagnostics in the Vector tool
CANoe. The basic technical aspects and possibilities (“first steps”) with the Diagnostic Feature Set will be
presented. Examples are used to get the test engineer started with testing diagnostics in CANoe.
This document is a complement to the help file of CANoe and should be used as a tutorial to learn the “first steps”
of the Diagnostic Feature Set. For more detailed information about the Diagnostic Feature Set, please refer to the
CANoe help file and to CANoe demo applications, both of which come with a standard CANoe installation.
Note: The functionality described here refers to CANoe (and CANalyzer) version 5.2. For older program
versions application notes can be requested from the Vector support (cf. 9.0).
CANoe as a diagnostic tool
4
Application Note AN-IND-1-001
1.2 Diagnostic components
The following table lists the names of the components relevant for diagnostics in CANoe, how to activate them and
where to find more information.
Component Description Activation More information
OSEK TP DLL Implementation of the ISO TP
for CANoe simulation nodes
Database:
“NodeLayerModules”,
simulation setup: node
configuration/“Modules”
Doc/osek_tp_e.pdf
ISO TP
Observer
Displays TP information for
the CAN messages used by
the ISO TP
Menu Configure,
Diagnostics/ISO TP
configuration, Standard
“Diagnostics/ISO TP
Configuration: Standard”
KWP 2000
interpreter
Extension of the ISO TP
Observer that interprets the
transported data according to
KWP 2000
Like ISO TP Observer, check
box “Interpretation according
to KWP2000”
“Diagnostics/ISO TP
Configuration: Standard”
Diagnostics
interpreter
Extension of the ISO TP
Observer, interpret the
transported data according to
the specifications in a CDD
Menu Configure,
Diagnostics/ISO TP
configuration, diagnostics
description (load a CDD)
“Diagnostics/ISO TP
Configuration: Diagnostics
Descriptions”
Diagnostics
console
Direct sending of requests
defined in a CDD, display of
responses
Menu Configure,
Diagnostics/ISO TP
configuration, diagnostics
description (assign CDD to a
bus or node!)
“Diagnostics Console:
Overview”
Fault memory
window
Direct access to an ECU’s
fault memory
Menu Configure,
Diagnostics/ISO TP
configuration, diagnostics
description (assign CDD to a
bus or node!)
“Fault Memory Window:
Overview”
CAPL
extensions for
diagnostics
Specialized CAPL functions to
access diagnostics objects
specified via CDDs
Load CDDs, usable from
CAPL programs
“Expanded Diagnostics
Functions in CAPL”
K-Line DLL CAPL DLL to access an ECU
via K-Line (Ser2K)
Activate as CAPL DLL “Doc/KLineCAPL_Manual.pdf”
1.3 Major changes between CANoe 5.0 and CANoe 5.1
• The usage of the KWP2000.DLL is discouraged. It is more comfortable and flexible to use a “Generic
CDD” and the CDD mechanisms (
2.3).
• It is possible to configure VW TP 2.0 for communicating with an ECU. Please refer to the document
“DiagnosticsInCANoe.pdf” provided with the VAG Addon packet.
• For CAPL tester implementations that do not need to influence the TP level behavior, it is no longer
necessary to implement a CAPL callback interface. Instead the communication mechanism for the
diagnostics console and the fault memory window is used (
3.3.2).
• In the CAPL browser a dialog for the symbolic selection of diagnostics object and parameter qualifiers can
be opened from the context menu (
2.2.7).
1.4 Major changes between CANoe 5.1 and CANoe 5.2
• The CAPL callback interface has been rewritten and needs only three functions to handle all protocol
settings implemented. Confer the sample code for details (
3.3.2).
• The diagnostics functionality can be accessed via the automation (COM) interface (cf. help
documentation).
CANoe as a diagnostic tool
5
Application Note AN-IND-1-001
• Simple diagnostics tests can be implemented using XML patterns (3.4.3).
• Physical network requests can now be sent from the diagnostics console and the fault memory window
(
2.2.5).
• There is a global options dialog for diagnostics (cf. help documentation).
• Diagnostics parameters can be displayed in data and graphics windows (cf. help documentation, topic
“Diagnostics Parameters“).
• It is possible to access LIN nodes (cf. help documentation,
4.5).
• TP level events (including diagnostics events) can be processed and filtered in the measurement setup (cf.
help documentation, topic “CallbackTPDataIndication”).
剩余26页未读,继续阅读
feng6033093
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- CIC Compiler v4.0 LogiCORE IP Product Guide
- G989.pdf
- G988中文版.pdf
- G9807.1中文版.pdf
- 从零开始做产品:产品汪
- URP-DeferredShading方案(高清版)
- Landsat/Sentinel-2 地表反射数据集说明文档(算法)HLS-ATBD-V15-provisional.pdf
- 本地部署开源大模型的完整教程LangChain + Streamlit+ Llama
- 【速记稿】科学引领智能变革——人工智能向善 共筑人类福祉(1).doc
- 技术展望2024 | AI拐点-重塑人类潜力.pdf
- 科学智能(AI4S) 全球发展观察与展望.pdf
- 面向企业的 生成式 AI 和 ML.pdf
- 使用深度学习技术来制作游戏内容.pdf
- 人工智能(AI)X-CUBE-AI扩展包入门指南-.pdf
- 衍生式设计:重新定义 未来制造的无限可能.pdf
- 1_00_尚硅谷大数据项目之docker.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功