Classification
OTL Syntax
String StringVariable = "";
StringVariable = DiagCom.GetComChannelIdentifierFromResponse(ResponseTerm);
Description
The GetComChannelIdentifierFromResponse term accepts a response and returns the identifier of the communication channel associated with the ECU that sent the response. This term is especially useful for results containing responses from different ECUs.
|
|
In case a MVCI/ODX system is used the identifier specifies the SHORT-NAME of the MCDLogicalLink to be used for communication.
|
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
String |
The identifier of the communication channel associated with the ECU that sent the response.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Response |
Response |
Term |
- |
[1] |
This element specifies the response of which the originating ECU shall be returned.
|
OTL Examples
DiagCom.ComChannel ComChannel1;
DiagCom.Result Result1;
DiagCom.Response Response1;
String Identifier1 = "";
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
[#MetaData(RequestPdu), <#Data>22 01 00</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "", false), "DiagnServi_ReadDataByIdentActuaTestStatu"), {}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1, );
Identifier1 = DiagCom.GetComChannelIdentifierFromResponse(Response1);
See also
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResponse
GetAllResponses