![]() |
OTX Reference
|
|
Creates a communication channel More...
Public Attributes | |
ComInterfaceTerm | comInterface |
Cardinality [1] This element identifies the communication interface. More... | |
StringTerm | ecuVariantName |
Cardinality [0..1] This optional element allows an OTX sequence to explicitly specify a particular ECU variant that the ComChannel shall be associated with. More... | |
StringTerm | identifier |
Cardinality [1] This element represents a string identifying the communication channel, which shall be created. More... | |
StringTerm | ressource |
Cardinality [0..1] The InterfaceResource as String that shall be used for physical communication. More... | |
![]() | |
MetaData | metaData |
Cardinality [0..1] The MetaData type allows tools to store additional, mainly tool-specific data. More... | |
Creates a communication channel
The CreateComChannelFromComInterface term creates a communication channel to an ECU on the specified communication interface. The term is needed, because the comIf:GetComChannelFromInterface term does not guarantee, that the communication is not started.For exchangeability the usage of this term is recommended instead of comIf:GetComChannelFromInterface, if the user wants to set communication parameters before starting communication.
IMPORTANT — The channel is created at the time this term is executed.
IMPORTANT — If the ComChannel already exists, the state of the diag:ComChannel shall not be changed by this term.
IMPORTANT — In case an ODX/MVCI system is used, a StartCommunication on the logical link is not executed.In this case the logical link state is ONLINE.
The term CreateComChannelFromInterface shall always return a handle to the same ComChannel for a given ECU. It is possible to manually control the lifecycle of a ComChannel object by closing a ComChannel handle using the diag:CloseComChannel action. This is up to the author of a diagnostic sequence, an OTX runtime system is expected to clean up open ComChannel handles at the end of a diagnostic session.
ComInterfaceTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.CreateComChannelFromComInterface.comInterface |
Cardinality [1]
This element identifies the communication interface.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.CreateComChannelFromComInterface.ecuVariantName |
Cardinality [0..1]
This optional element allows an OTX sequence to explicitly specify a particular ECU variant that the ComChannel shall be associated with.
It is provided in addition to the identifier attribute based on the assumption that the ComChannel identifier specifies a connection to a base variant of an ECU.
The <ecuVariantName> element can be used to directly create a ComChannel to a specific ECU variant without needing to perform the ECU variant identification step.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.CreateComChannelFromComInterface.identifier |
Cardinality [1]
This element represents a string identifying the communication channel, which shall be created.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.CreateComChannelFromComInterface.ressource |
Cardinality [0..1]
The InterfaceResource as String that shall be used for physical communication.
MCDProject::createLogicalLinkByVariantAndInterfaceResource() shall be called if the <ecuVariantName> parameter and the Resource parameter are defined.
Default: the standard resource selected by runtime system.