DlmsFrame Class

Static class that can parse birary data into DLMS structures and create binary data from DLMS structures.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public static class DlmsFrame
Inheritance
Object    DlmsFrame

Methods

Create_ActionDataBlocks Prepares data for calling method of COSEM object using a block transfer.
Create_ActionRequestNextPblock Creates a Action-Request-With-Next-Pblock frame defined in GB page 208.
Create_ActionRequestNormal Creates an Action-Request-Normal frame to call method of COSEM object.
Create_ActionRequestWithFirstPblock Creates a Action-Request-Wit-hFirst-Pblock request.
Create_ActionRequestWithList Creates an Action-Request-With-List frame to call method of COSEM object.
Create_ActionRequestWithListAndFirstPblock Creates a Action-Request-With-List-And-First-Pblock frame defined in GB page 208. From the rawData paramter removes bytes, that will be send in the data block.
Create_ActionRequestWithPblock Creates a Action-Request-With-Pblock frame defined in GB page 208. From the rawData paramter removes bytes, that will be send in the data block.
Create_BlockSA Creates the DataBlock-SA defined in GB page 212.
Create_GetRequestNext Creates GET request-next. This request should be sent to the server (meter) repeatedly while Parse_GetResponse returns false, which means that response-with-datablock was recognized and not all data blocks were received.
Create_GetRequestNormal Creates GET request-normal used to read attribute values using LN referencing. While Parse_GetResponse returns false send request composed with Create_GetRequestNext to get all data blocks. After receiving all data blocks call Parse_GetResponseNormal to get the actual result.
Create_GetRequestWithList Creates GET request-with-list used to read attribute values using LN referencing. While Parse_GetResponse returns false send request composed with Create_GetRequestNext to get all data blocks. After receiving all data blocks call Parse_GetResponseWithList to get the actual results.
Create_ReadRequest Creates ReadRequest used to read attribute values with SN referencing.
Create_ReadRequestNext Creates ReadRequest for next data block. This request should be sent to the server (meter) repeatedly while Parse_ReadResponse returns false, which means that block transfer was recognized and not all data blocks were received.
Create_SetDataBlocks Creates the data blocks for SET request with data block transfer.
Create_SetRequestNormal Creates SET request-normal used to write attribute values using LN referencing.
Create_SetRequestWithDatablock Creates a Set-Request-With-Datablock frame defined in GB page 207. From the rawData paramter removes bytes, that will be send in the data block.
Create_SetRequestWithFirstDatablock Creates a Set-Request-With-First-Datablock frame defined in GB page 207. From the rawData paramter removes bytes, that will be send in the data block.
Create_SetRequestWithList Creates SET request-with-list used to write attribute values using LN referencing.
Create_SetRequestWithListAndFirstDatablock Creates a Set-Request-With-List-And-First-Datablock frame defined in GB page 207. From the rawData paramter removes bytes, that will be send in the data block.
Create_WriteDataBlocks Creates requests to provide WRITE using block transfer.
Create_WriteRequest Creates WRITE request used to write attribute values using SN referencing.
Create_WriteRequestData Creates a data of type WriteRequest used in WRITE request.
Create_WriteRequestWithDataBlock Creates one block of WRITE request while using block transfer.
CreateAARLRQ Creates AA release request with user-information part according to dlmsParameters
CreateAARQ Creates AARQ according to passed parameters.
CreateRawDataWithTag Creates raw data representation of the value with the tag of the DLMS type at the beginning of the result
CreateRawtData Creates raw data representation of the value
GetNextAttributesForGetRequest Returns a list of attributes from begginning of attributes array so GET request fits into DLMS frame of maxPDU size. Returned attributes are removed from attributes array.
GetNextAttributesForReadRequest Returns a list of requests specifications from begginning of attributes array so Read request fits into DLMS frame of maxPDU size. Returned variables are removed from attributes array.
GetNextDataWithTag Extracts next data part including the starting tag from the beginning of rawData and deletes it from rawData. See Data in GB.
getTypeDescriptor Extracts a type description from the beginning of rawData and deletes it from rawData. Type description is used in compact-array data type.
Is_DataNotificationRequest Checks if data contains a data-notification-request frame.
Is_EventNotificationRequest Checks if data contain event-notification-request frame.
Parse_AARE Parses AARE response and returns confirmed parameters. Parsing begins at position index in rawData. This method also updates ServerSysTitle, StoC and MeterSigningCertificate in dataSecurity.Settings.
Parse_AARLRE Parses AARLRE response. Returns release result as output parameter.
Parse_ActionResponse(ByteBuffer, Byte, DlmsActionResponse, UInt32) Parses a response to action request starting from the beginning of rawData.
Parse_ActionResponse(ByteBuffer, Int32, Byte, DlmsActionResponse, UInt32) Parses a response to action request.
Parse_ActionResponseNormalDataBlocks(ByteBuffer, DlmsActionResponse) Parses a response to action request normal starting at the beginning of rawData.
Parse_ActionResponseNormalDataBlocks(ByteBuffer, Int32, DlmsActionResponse) Parses a response to action request normal.
Parse_ActionResponseWithListDataBlocks(ByteBuffer, DlmsActionResponse) Parses a response to action request with list starting at the beginning of rawData.
Parse_ActionResponseWithListDataBlocks(ByteBuffer, Int32, DlmsActionResponse) Parses a response to action request with list.
Parse_ConfirmedServiceError(ByteBuffer, String) Parses confirmedServiceError APDU which can be returned by a meter.
Parse_ConfirmedServiceError(ByteBuffer, Int32, String) Parses confirmedServiceError APDU which can be returned by a meter.
Parse_DataNotificationRequest(ByteBuffer, DateTime, DlmsType) Parses data-notification-request frame starting at the beginning of rawData.
Parse_DataNotificationRequest(ByteBuffer, Int32, DateTime, DlmsType) Parses data notification beginning from index in rawData.
Parse_EventNotificationRequest(ByteBuffer, DateTime, DlmsObject) Parses event request.
Parse_EventNotificationRequest(ByteBuffer, Int32, DateTime, DlmsObject) Parses event request beginning from index in rawData.
Parse_GetResponse(ByteBuffer, Byte, DlmsDataResult, UInt32) Parses DLMS GET response and returns attribute values. Parsing begins at the beginning of rawData.
Parse_GetResponse(ByteBuffer, Int32, Byte, DlmsDataResult, UInt32) Parses DLMS GET response and returns attribute values. If this method returned false, the response is not complete and it is needed to request further data blocks. It can be done by sending request composed by Create_GetRequestNext method. Parsing begins at position index in rawData.
Parse_GetResponseNormalDataBlocks(ByteBuffer, DlmsDataResult) Parses GET response-normal which was returned in data blocks. Parsing begins at the beginning of rawData.
Parse_GetResponseNormalDataBlocks(ByteBuffer, Int32, DlmsDataResult) Parses GET response-normal which was returned in data blocks. Parsing begins at position index in rawData.
Parse_GetResponseWithListDataBlocks(ByteBuffer, DlmsDataResult) Parses GET response-with-list returned with data blocks. Parsing begins at the beginning of rawData.
Parse_GetResponseWithListDataBlocks(ByteBuffer, Int32, DlmsDataResult) Parses GET response-with-list returned with data blocks. Parsing begins at position index in rawData.
Parse_ReadResponse(ByteBuffer, DlmsDataResult, UInt16) Parses read response from the beginning of rawData.
Parse_ReadResponse(ByteBuffer, Int32, DlmsDataResult, UInt16) Parses DLMS ReadResponse and returns attribute values. If this method returned false, the response is not complete and it is needed to request further data blocks. It can be done by sending request composed by Create_ReadRequestNext method. Parsing starts at position index in rawData.
Parse_ReadResponseDataBlocks(ByteBuffer, DlmsDataResult) Parses ReadResponse which was returned in data blocks. Parsing starts at the beginning of rawData.
Parse_ReadResponseDataBlocks(ByteBuffer, Int32, DlmsDataResult) Parses ReadResponse which was returned in data blocks. Parsing starts at position index in rawData.
Parse_SetResponse(ByteBuffer, Byte, DlmsTypeDataAccessResult, UInt32) Parses DLMS SET response and returns result codes. Parsing begins at the beginning of rawData.
Parse_SetResponse(ByteBuffer, Int32, Byte, DlmsTypeDataAccessResult, UInt32) Parses DLMS SET response and returns result codes. Parsing begins at position index in rawData.
Parse_WriteResponse(ByteBuffer, DlmsTypeDataAccessResult, UInt16) Parses response returned while reading attributes using SN referencing.
Parse_WriteResponse(ByteBuffer, Int32, DlmsTypeDataAccessResult, UInt16) Parses response returned while reading attributes using SN referencing, starting at index.
ParseMeterId Parse meter identifier and returns a meter serial number. Format of meter identifier is MMMNNNNNNNNNN as it is returned by PLC drivers.
ParseMeterManufacturer Parse meter identifier and returns a manufacturer shortcut. Format of meter identifier is MMMNNNNNNNNNN as it is returned by PLC drivers.
TryParse_GetResponseNormalDataBlocks Tries to get as much as possible new objects from next received data block from GET response-normal.
TryParse_GetResponseWithListDataBlocks Tries to get as much as possible new objects from next received data block from GET response-with-list.
TryParse_ReadResponseDataBlocks Tries to get as much as possible new objects from next received data block from Read response.

See Also