Example for Performing Seed&Key with CAPL in Simulation Nodes (for CANoe ≥ 10.0)
This example shows how to send and receive the Security Access Service (0x27) for different security levels with CAPL. It contains a simulated ECU that responds to the tester's diagnostic requests.
For the key computation in simulation nodes there are two CAPL functions available. Which function to use depends on the length of the key computation.
- If the computation is guaranteed to take much less than 1 ms, diagGenerateKeyFromSeed may be used.
- Otherwise diagStartGenerateKeyFromSeed in combination with the callback _Diag_GenerateKeyResult should be used.
Both functions are covered in this example.
This example can be used with CANoe 10.0 and higher. The corresponding Diagnostic Description (CDD-File) is provided in CANdelaStudio 8.5-Format.
Please complete all required fields. Fields marked with * are required.