Skip to main content

Diagnostics: Processing Functional Diagnostic Requests in ECU Simulations

CAPL Functions » Diagnostics » Processing Functional Diagnostic Requests in ECU Simulations Valid for: CANoe DE An ECU simulation can respond to functional diagnostic requests sent in an individual CAN message by the tester. To implement such a response, proceed as follows:
  • When the communication parameters are configured in callback diag_SetChannelParameters, the values for functional requests have to be polled and saved.
  • On receipt of a CAN message, a check must be carried out to determine whether it matches the saved values. If it does, the data received has to be transferred to the diagnostic layer (see diag_DataInd).
Example Implementation
diagGetFunctionalGroupExtdiagGetFunctionalGroupIddiagGetFunctionalGroupIdMask