DoIP_UDPSend
Valid for: CANoe DEDoIP_UDPSend (raw)
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
Description
Sends given raw data to peer(s) as UDP frame.Parameters
- IPaddress: If given, do not send to the selected peer, but to this address.
- data: The UDP payload, i.e. it must contain a DoIP header if the peer shall recognize it as such.
- length: Payload length.
Return Values
Error codeExample
DoIP_UDPSend (PDU)
Function Syntax
Description
Sends a DoIP PDU with valid layout to peer(s) as UDP frame. The configured DoIP version is used.Parameters
- IPaddress: If given, do not send to the selected peer, but to this address.
- payloadType: Type to send, i.e. this can be any value. [0; 0xFFFF]
- payload: The data following the generic DoIP header.
- payloadLen: Payload length.