Skip to main content

_DoIP_MessageAcknowledgeInd

Valid for: CANoe DE Note
The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

void _DoIP_MessageAcknowledgeInd( WORD payloadType, long ackCode, WORD testerAddress, WORD ecuAddress);

Description

A positive or negative acknowledgment was received in the tester. The code may provide additional information on the reason for a negative acknowledge.

Parameters

  • payloadType
    • ISO13400
      • 0x8002: Diagnostic message positive acknowledgment
      • 0x8003: Diagnostic message negative acknowledgment
    • HSFZ
      • 0x02: positive acknowledgment
      • 0x40..0xFF: negative acknowledgment (different reasons)
      • other reserved
  • ackCode
    • Response code transported in the acknowledgment, or -1 for HSFZ.
      • -1: not available, i.e. HSFZ does not send a code
      • 0: OK (ISO 13400 positive acknowledgment)
      • 2..8: Not OK (ISO 13400 negative acknowledgment)
      • other reserved
  • testerAddress
    • Logical address of the tester the acknowledgment is directed to.
  • ecuAddress
    • Logical address of the entity that sends the acknowledgment.

Return Values

Example

void _DoIP_MessageAcknowledgeInd( word payloadType, long code, word testerAddress, word ecuAddress)
{
  write( "_DoIP_MessageAcknowledgeInd type %04x, %d, tester=%04x, ecu=%04x", payloadType, code, testerAddress, ecuAddress);
}
DoIP_SetNextDiagnosticMessageNACKCode