The DiagManager supports the diagnostic communication over Internet Protocol (DoIP), see ISO 13400-2. The following section describes how a DoIP communication can be established.
Basic Sequence
The OTX ComInterface extensions provides all actions and terms to establish a DoIP communication. The following diagram shows the basic sequence.
Note: For DoIP communication the Extended Mode is necessary, see Communication Modes. The DiagManager can switch implicit to the right mode.
Basic sequence to establish a DoIP communication
Pseudo Code Example
The basic proceeding how to establish a DoIP communication is described in the following pseudo code example.
void main()
{
List<String> comInterfaceNames = comInterface.GetComInterfaceNameList();
try
{
comInterface.ConnectComInterface(otxComInterface);
comInterface.ActivateEthernet(otxComInterface);
Thread.Sleep(8000);
List<String> comInterfaceNamesFromEthernet = comInterface.GetComInterfaceNameListFromEthernet(null, "PDU_IOCTL='PDU_IOCTL_VEHICLE_ID_REQUEST' PreselectionMode='None' PreselectionValue='' CombinationMode='DoIP-Entity' VehicleDiscoveryTime='1000' DestinationAddressCount='1' DA1='255.255.255.255'");
comInterface.ConnectComInterface(otxComInterfaceFromEthernet);
noneOtxDiag.SetPreferedInterface(otxComInterfaceFromEthernet.ShortName);
diagCom.ExecuteDiagService(diagService);
diagCom.CloseComChannel(comChannel);
}
{
throw e;
}
finally
{
comInterface.DeactivateEthernet(otxComInterface);
comInterface.CloseComInterface(otxComInterface);
}
}
Namespace containing all objects which are standardized according to ISO 13209 (OTX)
Namespace containing all objects related to testing inside automotive industry