![]() |
OTX Reference
|
|
Gets 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... | |
BooleanTerm | performVariantSelection |
Cardinality [0..1] This optional element can be used by the OTX author to control whether an implicit variant selection shall be performed. If <performVariantSelection> yields true at runtime, the variant selection is done automatically after the ComChannel is created. More... | |
StringTerm | resource |
Cardinality [0..1] The MVCI communication channel. More... | |
![]() | |
MetaData | metaData |
Cardinality [0..1] The MetaData type allows tools to store additional, mainly tool-specific data. More... | |
Gets a communication channel
The GetComChannelFromComInterface term returns a communication channel from the ComInterface. It depends on the implementation of the OTX runtime system when the channel is actually created by the communication layer.There are three possible scenarios: The channel is created at the time this term is executed.
The channel already exists; no additional action is carried out by the execution of this term. The channel is created when it is first needed for actual diagnostic communication. No matter which approach is chosen, the term GetComChannelFromComInterface shall always return a handle to the same ComChannel for a given ComInterface. 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. The OTX runtime shall perform an ECU variant selection after opening of the channel if the term given by the optional element <performVariantSelection> yields true. This implies that when the next action on a communication channel is performed, the runtime system has identified the variant of the ECU actually present at runtime and configured the ComChannel accordingly. In case both an <ecuVariantName> is provided and <performVariantSelection> yields true, the channel is created to point at the desired ECU variant and variant selection is performed on the link afterwards. The variant identification functionality also exists as a separate action.
DiagCom.Exceptions.LossOfComException | If communication to the ECU was interrupted during the variant identification process. |
DiagCom.Exceptions.UnknownTargetException | If the ComChannel identifier provided by the identifer element doesn't exist or is invalid. |
ComInterfaceTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.GetComChannelFromComInterface.comInterface |
Cardinality [1]
This element identifies the communication interface.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.GetComChannelFromComInterface.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 precise variant of which then can be implicitly or explicitly identified by the diagnostic application (compare the <performVariantSelection> element in this clause and the diag:IdentifyAndSelectVariant action). 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.
If the <ecuVariantName> element is defined, the <performVariantSelection> element shall be omitted or set to false.
MCDProject::createLogicalLinkByVariantAndInterfaceResource() has to be called if the <ecuVariantName> parameter and the Resource parameter are defined.
Default: If this parameter is not transmitted, no variant selection takes place.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.GetComChannelFromComInterface.identifier |
Cardinality [1]
This element represents a string identifying the communication channel, which shall be created.
BooleanTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.GetComChannelFromComInterface.performVariantSelection |
Cardinality [0..1]
This optional element can be used by the OTX author to control whether an implicit variant selection shall be performed. If <performVariantSelection> yields true at runtime, the variant selection is done automatically after the ComChannel is created.
This document cannot make assumptions about whether the vehicle communication component used by an OTX runtime supports the concept of ECU variant identification or about the behaviour of the communication component in case it does. The relevant parts of the OTX DiagCom standard are based on the following assumptions:
Default: false If the <performVariantSelection> element is set to true, the <ecuVariantName> element shall be omitted.
StringTerm OpenTestSystem.Otx.Extensions.ComInterface.Terms.GetComChannelFromComInterface.resource |
Cardinality [0..1]
The MVCI communication channel.
Default: the standard resource selected by runtime system.