3.2.4 Change the session and security level ........................................................................... 18
3.3 Display diagnostic data .................................................................................................. 18
3.3.1 Diagnostic data in State Tracker, Data and Graphics window ........................................ 19
3.3.2 Diagnostic data in panels .............................................................................................. 19
4.0 Using CAPL for Diagnostics .................................................................................................. 20
4.1 Common techniques for Simulation and Tester .............................................................. 20
4.1.1 Usage of the CAPL Browser .......................................................................................... 20
4.1.2 Work with parameters.................................................................................................... 21
4.2 ECU diagnostics simulation ........................................................................................... 22
4.2.1 Necessary preparations ................................................................................................. 22
4.2.2 Add a Network Node to the Simulation Setup ................................................................ 23
4.2.3 Add a database in case of LIN and FlexRay .................................................................. 23
4.2.4 Add a Diagnostic Description and assign it to the network node ..................................... 23
4.2.5 Configure the Network Node in Simulation Setup ........................................................... 24
4.2.6 Add the CAPL Callback Interface................................................................................... 25
4.2.7 Debug level ................................................................................................................... 25
4.2.8 Add a diagnostics request event handler ....................................................................... 26
4.2.9 Create a diagnostic response ........................................................................................ 26
4.3 CANoe/CANalyzer as Diagnostic Tester ........................................................................ 27
4.3.1 Set the diagnostic target ................................................................................................ 27
4.3.2 Create a diagnostic request ........................................................................................... 27
4.3.3 Add a diagnostics response event handler ..................................................................... 27
4.3.4 Negative Response handling ......................................................................................... 27
4.4 Combine Test Feature Set and Diagnostic Feature Set.................................................. 28
4.4.1 Timeout handling ........................................................................................................... 28
4.4.2 Automated diagnostic tests with CANoe ........................................................................ 29
4.5 Using CAPL in the measurement setup ......................................................................... 32
5.0 Advanced examples ............................................................................................................... 32
5.1 ECU simulation of “Response Pending” ......................................................................... 32
5.2 Modifying the length of a diagnostic object ..................................................................... 33
5.3 Fill diagnostic content .................................................................................................... 33
5.4 Fault injection ................................................................................................................ 33
5.4.1 Make request length illegal ............................................................................................ 33
5.4.2 Introduce errors on transport protocol level .................................................................... 34
5.5 Access a node via a gateway simulation ........................................................................ 34
6.0 Common mistakes ................................................................................................................. 35
7.0 Abbreviations ......................................................................................................................... 37
8.0 References ............................................................................................................................. 37
9.0 Additional Resources ............................................................................................................ 38
10.0 Contacts ................................................................................................................................. 38