Purpose

Sends a UDP request to all DoIP-capable vehicles on the specified broadcast address to identify themselves.

Format

        long ndDoIPSendVehicleIdentRequestAllVersions (
       TD1 *diagRef,
       char BroadcastAddress[]),
       LVBoolean *AllVersions);

      

Input

diagRef

Specifies the handle for the diagnostic session, obtained from ndOpenDiagnosticOnIPStack and passed to subsequent diagnostic functions. Usually, it is not necessary to manually manipulate the elements of this struct.

BroadcastAddress

Defines the subnet address to which the request is sent. Usually, this is 255.255.255.255, meaning a broadcast to the local subnet on the default Network Interface Controller. It can, however, be overridden to specify a different broadcast address, for example on a different Network Interface Controller.

AllVersions

Specifies whether the request is sent with 0xFF as protocol version in the Generic DoIP header. If you pass a NULL pointer, this defaults to TRUE. If the protocol version in ndOpenDiagnosticOnIPStack is set to 1 (2010), this flag is ignored and the request is always sent with the protocol version byte of the header set to 1. Output

Return Value

The return value indicates the function call status as a signed 32-bit integer. Zero means the function executed successfully. A negative value specifies an error, which means the function did not perform the expected behavior. A positive value specifies a warning, which means the function performed as expected, but a condition arose that may require attention.

Use the ndStatusToString function to obtain a descriptive string for the return value.

Description

ndDoIPSendVehicleIdentRequestAllVersions sends a Vehicle Identification Request to all DoIP entities on the specified broadcast address.

Usually, this is done as part of ndDoIPGetEntitiesAllVersions and does not need to be executed separately.