OTX Reference  
OpenTestSystem.Otx.Extensions.DiagCom.Actions.ExecuteHexDiagService Class Reference

Send Hex-block(PDU) More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagCom.Actions.ExecuteHexDiagService:
Inheritance graph

Public Attributes

ComChannelTerm comChannel
 Comprises the handle of the communication channel (LogicalLink). More...
 
ByteFieldTerm hexRequest
 ByteField contains the service request as a set of raw bytes. More...
 
ByteFieldVariable hexResponse
 Specifies the ByteField variable that contains the raw response bytes of the service. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Send Hex-block(PDU)

The ExecuteHexDiagService activity allows the sending of diagnostic services by directly entering the request byte stream, bypassing the symbolic level that is utilized by the normal ExecuteDiagService activity. By using this activity, ECUs can be directly addressed with hex values entered manually by the OTX sequence author. Possible use cases for this functionality are bugs in the diagnostic database which have to be bypassed to achieve a temporary workaround. The response to an ExecuteHexDiagService is provided as a ByteField containing the raw uninterpreted ECU response message.

Please note that the ExecuteHexDiagSevice action is only meant to be used in cases where there is one response from one ECU to a diagnostic service. In case more than one ECU respond to a service request and/or ECUs respond more than once, the <hexResponse> assignment will only contain the first Response of the first Result.
A PDU as understood by the DiagCom extension comprises the complete payload of a message including the service identifier and any other request parameters.It does not include header or checksum bytes from underlying protocol layers.

Syntax
DiagCom.ExecuteHexDiagService(ComChannelTerm comChannel, ByteFieldTerm hexRequest, ByteFieldVariable hexResponse);
ByteFieldTerm hexRequest
ByteField contains the service request as a set of raw bytes.
Definition: DiagCom.cs:1239
ByteFieldVariable hexResponse
Specifies the ByteField variable that contains the raw response bytes of the service.
Definition: DiagCom.cs:1249
ComChannelTerm comChannel
Comprises the handle of the communication channel (LogicalLink).
Definition: DiagCom.cs:1229
Examples
// Local Declarations
ByteField HexResponse1;
DiagCom.ComChannel ComChannel1;
// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagCom.ExecuteHexDiagService(ComChannel1, &amp;22F1A2, HexResponse1);

Member Data Documentation

◆ comChannel

ComChannelTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.ExecuteHexDiagService.comChannel

Comprises the handle of the communication channel (LogicalLink).

◆ hexRequest

ByteFieldTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.ExecuteHexDiagService.hexRequest

ByteField contains the service request as a set of raw bytes.

◆ hexResponse

ByteFieldVariable OpenTestSystem.Otx.Extensions.DiagCom.Actions.ExecuteHexDiagService.hexResponse

Specifies the ByteField variable that contains the raw response bytes of the service.