Skip to main content

DoIP_SetVehicleLogicalAddress

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_SetVehicleLogicalAddress(dword logicalAddress);

Description

Sets vehicle logical DoIP address sent in DoIP PDUs.

Parameters

  • logicalAddress: Address used (0x0000 to 0xFFFF)

Return Values

Example

The following example sets the Logical Address of a vehicle (used e.g. in Routing Activation Responses) and makes it known to the DoIP layer.
dword gGatewayLogAddress = 0x1000;
write("Logical address of vehicle = 0x%04x", gGatewayLogAddress);
DoIP_SetVehicleLogicalAddress( gGatewayLogAddress);
DoIP_AddECU( gGatewayLogAddress);