# null

# DoIP\_AddECU

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

**Note**

* [DoIP\_AddEcu](#) and [DoIP\_AddTester](CAPLfunctionDoIPAddTester.md) may cause on receiver side the rejection of DoIP messages with unknown logical addresses (in principle a kind of filtering).
* [DoIP\_SetVehicleLogicalAddress](CAPLfunctionDoIPSetVehicleLogicalAddress.md) and [DoIP\_SetTesterLogicalAddress](CAPLfunctionDoIPSetTesterLogicalAddress.md) determine the logical addresses used when sending.

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:

* [DoIP CAPL Introduction](../CAPLDiagnosticDoIP.md)
* [AN-IND-1-012\_CAPL\_Callback\_Interface.pdf](javascript:startDemoLoader\('AN-IND-1-012_CAPL_Callback_Interface.pdf'\))
* [AN-IND-1-026\_DoIP\_in\_CANoe.pdf](javascript:startDemoLoader\('AN-IND-1-026_DoIP_in_CANoe.pdf'\))

## Function Syntax

```plaintext
void DoIP_AddECU( dword address);
```

## Description

Adds a valid DoIP ECU address to the DoIP layer.

## Parameters

* **address**: Logical DoIP address of an ECU. You must set at least one logical ECU address (e.g. the logical DoIP address of the DoIP entity).

## Example

```plaintext
DoIP_AddECU( 0x200);
DoIP_AddECU( 0x201);
```
