OTX Reference  
OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication Class Reference

Stops the communication More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication:
Inheritance graph

Public Attributes

ComChannelTerm comChannel
 Cardinality [1]
This element comprises the communication channel, which shall be used for stopping the communication with the ECU the communication channel is connected to. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Stops the communication

The StopCommunication action stops the communication on a diag:ComChannel. Stopping communication on a ComChannel which already is in state ONLINE shall perform no operation and report no errors. It shall be for all effects a NOP.

Important:: In case an ODX/MVCI system is used, the ComPrimitive "StopCommunication" is executed on the logical link. In this case the logical link state is OFFLINE (see ComChannelState).

Exceptions
DiagCom.Exceptions.LossOfComExceptionIf communication to the ECU was interrupted during the stop communication process.
Syntax
DiagComPlus.StopCommunication(ComChannelTerm comChannel);
Examples
// Local Declarations
Exception Exception1;
DiagCom.ComChannel ComChannel1;
// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
try
{
[#DiagMetaData , <#Data>
<dmd:diagMetaData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dmd="http://iso.org/OTX/1.0.0/Auxiliaries/DiagMetaData">
<dmd:comChannelName value="LL_GatewUDS" />
<dmd:ecuVariantName value="EV_GatewLear_006" />
</dmd:diagMetaData></#Data>]
DiagComPlus.StartCommunication(ComChannel1);
<br/>
[#DiagMetaData , <#Data>
<dmd:diagMetaData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dmd="http://iso.org/OTX/1.0.0/Auxiliaries/DiagMetaData">
<dmd:comChannelName value="LL_GatewUDS" />
<dmd:ecuVariantName value="EV_GatewLear_006" />
</dmd:diagMetaData></#Data>]
DiagComPlus.StopCommunication(ComChannel1);
}
catch (DiagCom.LossOfComException Exception1)
{
}

Member Data Documentation

◆ comChannel

ComChannelTerm OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication.comChannel

Cardinality [1]
This element comprises the communication channel, which shall be used for stopping the communication with the ECU the communication channel is connected to.

OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication.comChannel
ComChannelTerm comChannel
Cardinality [1] This element comprises the communication channel, which shall be used for stopping th...
Definition: DiagComPlus.cs:530