Diagnostics with CAPL
2021-02-04
Author(s) Oliver Ernst, Dirk Schwarz
Restrictions
SN-IND-1-040_Diagnostics_with_CAPL_since_9.0_SP3 1
Table of Contents
1 About this Support Note .......................................................................................................................... 1
2 Overview ................................................................................................................................................. 1
3 Configuring the diagnostic components of CANoe/CANalyzer .................................................................. 2
3.1 How to add a diagnostic description in CANoe/CANalyzer................................................................ 2
3.2 Property pages ................................................................................................................................ 4
3.2.1 Transport layer ......................................................................................................................... 5
3.2.2 Diagnostic layer ....................................................................................................................... 6
3.2.3 Additional descriptions ............................................................................................................. 7
4 About qualifiers and short names............................................................................................................. 8
5 Addressing the ECU ................................................................................................................................ 9
6 Creating and sending a request ............................................................................................................. 10
7 Setting the parameters of a request ....................................................................................................... 10
8 Receiving the response and reading the response parameters .............................................................. 11
9 Reading the fault memory...................................................................................................................... 13
10 Reading extended data records and snapshot data of the fault memory ................................................. 14
11 Security access with Seed & Key DLL ................................................................................................... 17
12 Diagnostics in test modules ................................................................................................................... 19
13 Simulating an ECU ................................................................................................................................ 21
14 Sending functional requests .................................................................................................................. 23
15 Manipulating diagnostic data on raw level .............................................................................................. 24
16 Object-oriented programming ................................................................................................................ 25
17 Where to find more information .............................................................................................................. 27
18 Contact information ............................................................................................................................... 28
1 About this Support Note
In the table below you will find the icon conventions used throughout the Support Note.
2 Overview
This Support Note will show you how to access an ECU using the diagnostic features of CANoe and (as far as
possible) of CANalyzer and how to use the diagnostic functions provided by the CAPL programming language.
This Support Note will only cover diagnostics on CAN, but aside from the bus specific aspects, diagnostics on
FlexRay, LIN, K-Line and DoIP is quite similar.