Skip to main content

DoIP_SetVehicleUdpPort

CAPL Functions » Diagnostics » DoIP_SetVehicleUdpPort 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_SetVehicleUdpPort( dword port);

Description

Sets the UDP port (UDP_VEHICLE_LOCAL) to be used by the DoIP layer. This function must be called in on preStart.

Parameters

  • port: The UDP_VEHICLE_LOCAL port of the DoIP layer.

Return Values

Example

dword port;
port = DiagGetCommParameter( "DoIP.VEHICLE_UDP_Data");
// Set the vehicle UDP port
DoIP_SetVehicleUdpPort( port);
DiagGetCommParameter