Skip to main content

DoIP_DataInd

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_DataInd( byte buffer[], dword count, dword ecuAddress, dword testerAddress);

Description

This callback is called from the DoIP layer when new data is received.

Parameters

  • buffer: Buffer containing the received data.
  • count: Size of the received data in bytes.
  • ecuAddress: Logical DoIP address of the ECU the data was sent to.
  • testerAddress: Logical DoIP address of the tester that sent/received the data.
    (Note: before 8.2 SP4 the value of testerAddress is 0 always.)

Return Values

Example

void DoIP_DataInd( byte buffer[], dword count,
                   dword ecuAddress, dword testerAddress)
{
    // gateway processing here…
    // pass data up to the diagnostics layer
    Diag_DataInd( buffer, count, 0);
}