Difference between revisions of "Extensions.DiagCom.GetPdu"
Jump to navigation
Jump to search
m (Hb moved page GetPdu to Extensions.DiagCom.GetPdu: #3153) |
|
(No difference)
|
Revision as of 07:05, 5 February 2016
Contents
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.
![]()
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);