Difference between revisions of "Extensions.DiagCom.GetPdu"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | GetPdu | Byte stream of a request or a response | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Request related terms]] | - | - }}
 
{{ClassificationActivity | GetPdu | Byte stream of a request or a response | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Request related terms]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ByteField GetPdu(Message message);
+
ByteFieldTerm = DiagCom.GetPdu(RequestTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 19:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ByteField pdu = GetPdu(message);
+
DiagCom.ComChannel myComCannel;
 +
DiagCom.DiagService DiagService1;
 +
DiagCom.Request Request1;
 +
ByteField ByteField1;
 +
 
 +
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
 +
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
 +
Request1 = DiagCom.GetRequest(DiagService1);
 +
ByteField1 = DiagCom.GetPdu(Request1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 
[[GetRequest]]
 
[[GetRequest]]

Revision as of 07:36, 5 February 2015

Classification

Name GetPdu
Short Description Byte stream of a request or a response
Class Term
Extension OTX DiagCom extension
Group Request related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ByteFieldTerm = DiagCom.GetPdu(RequestTerm);

Description

The GetPdu term returns the byte stream of a request or a response. The byte stream is referred to as PDU (Protocol Data Unit). The PDU contains the entire block starting with the service identifier (SID), but without header and checksum.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ByteField Request of diagnostic services.

Properties

Name Data Type Class Default Cardinality Description
Message Message Term - [1] Request or Response.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
DiagCom.Request Request1;
ByteField ByteField1;

myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
Request1 = DiagCom.GetRequest(DiagService1);
ByteField1 = DiagCom.GetPdu(Request1);

See also

GetRequest