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);
}
}
Factory class for creating the NoneOtxDiagApi.
Definition: NoneOtxDiagFactory.java:12
static final INoneOtxDiag CreateSocketNoneOtxDiag(int port)
Creates a INoneOtxDiag instance inside a separate process with inter process communication.
Definition: NoneOtxDiagFactory.java:54
Identical to a datatype in the OTX standard ISO 13209. A detailed specification can be found there.
Definition: DiagRuntimeException.java:6
Factory class for creating the DiagOtxApi.
Definition: OtxDiagFactory.java:14
Class for general utils.
Definition: opentestsystem.otxdiagmanager.systemapi/src/opentestsystem/otx/diagmanager/systemapi/Util.java:20
static void SetLicenseKey(int port, String licenseKey)
Sets a valid license key to active DiagManagerServer.
Definition: opentestsystem.otxdiagmanager.systemapi/src/opentestsystem/otx/diagmanager/systemapi/Util.java:91
Contains methods which are not covered by the OTX standard.
Definition: INoneOtxDiag.java:9
Identical to a datatype in the OTX standard ISO 13209. A detailed specification can be found there.
Definition: datatypes/IComInterface.java:6
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IComInterface.java:13
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IDiagCom.java:10
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IOtxDiag.java:8
Package containing all methods that are not standardized in OTX but are available in a diagnostic run...
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Package covering all actions and terms of all diagnostic related OTX extension by an identical method...
Package containing all commands that are not standardized in OTX and are generally required,...
Package containing all objects for the communication to various, interchangeable diagnostic runtime s...
Package containing all objects which are standardized according to ISO 13209 (OTX)
Package containing all objects related to testing inside automotive industry.