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);
}
}
Contains methods which are not covered by the OTX standard
Definition: INoneOtxDiag.h:14
Factory class for creating the NoneOtxDiagApi
Definition: NoneOtxDiagFactory.h:26
std::shared_ptr< INoneOtxDiag > CreateSocketNoneOtxDiag(unsigned short port)
Creates a DiagManager instance inside a separate process with inter process communication via Sockets
Identical to a datatype in the OTX standard ISO 13209. A detailed specification can be found there.
Definition: DiagRuntimeException.h:15
Identical to a datatype in the OTX standard ISO 13209. A detailed specification can be found there.
Definition: DataTypes/IComInterface.h:13
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IComInterface.h:21
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IDiagCom.h:23
DiagManager, which contains methods to get access to the supported OTX extension classes
Definition: IOtxDiag.h:32
Factory class for creating the DiagOtxApi
Definition: OtxDiagFactory.h:37
API_EXPORTS std::shared_ptr< IOtxDiag > CreateSocketOtxDiag(unsigned short port)
Creates a DiagManager instance inside a separate process with inter process communication via Sockets
Class for general utils
Definition: Util.h:25
static void SetLicenseKey(unsigned short port, const std::string &licenseKey)
Sets a valid license key to active DiagManagerServer
Namespace containing all methods that are not standardized in OTX but are available in a diagnostic r...
Namespace containing all OTX data types
Namespace covering all actions and terms of all diagnostic related OTX extension by an identical meho...
Namespace containing all commands that are not standardized in OTX and are generally required,...
Namespace containing all objects for the communication to various, interchangeable diagnostic runtime...
Namespace containing all objects which are standardized according to ISO 13209 (OTX)
Namespace containing all objects related to testing inside automotive industry