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

Sets Request PDU More...

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

Public Attributes

ByteFieldTerm pdu
 ByteField contains the PDU of a diagnostic service request a set of raw bytes. More...
 
RequestTerm request
 Specifies a Request object of a diagnostic service. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets Request PDU

The SetPdu activity is used to directly set a specific ByteField to a Request instance, without using the symbolic level provided by the parameter mapping mechanism of the ExecuteDiagService activity or the related DiagCom object. In addition to SetPdu, there exists a GetPdu activity which is used to retrieve the raw byte representation from a Response instance. SetPdu is modelled as an ActionRealisation because it modifies the object it is invoked on.

A PDU as understood by the OTX 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.SetPdu(RequestTerm request, ByteFieldTerm pdu);
RequestTerm request
Specifies a Request object of a diagnostic service.
Definition: DiagCom.cs:1573
ByteFieldTerm pdu
ByteField contains the PDU of a diagnostic service request a set of raw bytes.
Definition: DiagCom.cs:1583
Examples
// Local Declarations
DiagCom.Request Request1;
DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_TransData");
Request1 = DiagCom.GetRequest(DiagService1);
DiagCom.SetPdu(Request1, &191040226D6E);

Member Data Documentation

◆ pdu

ByteFieldTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetPdu.pdu

ByteField contains the PDU of a diagnostic service request a set of raw bytes.

◆ request

RequestTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetPdu.request

Specifies a Request object of a diagnostic service.