> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionDoIPSetProtocol

# DoIP\_SetProtocol

[Valid for](../../../Shared/FeatureAvailability.md):  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:

* [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 theme={null}
void DoIP_SetProtocol (dword protocolID);
```

## Description

Sets protocol version used in DoIP PDUs.

## Parameters

* **protocolID**\
  1: Draft version (2010)\
  2: First released ISO standard 2012 (ISO 13400-2 first edition 2012-06-01)\
  1000: HSFZ protocol\
  Others reserved

## Return Values

—

## Example

This value can also be configured globally on the diagnostics configuration dialog, **DoIP Main Settings**.

```plaintext theme={null}
// Use early draft version of the protocol
DoIP_SetProtocol(1);
```
