PlcFrameWrapper Class
Static class that wraps/extracts DLMS frame into/from units that can be send via PLC.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
public static class PlcFrameWrapper
- Inheritance
- Object PlcFrameWrapper
CreateAddressStr |
Creates PLC address display string.
|
ExtractDlms |
Returns DLMS frame from PLC PDU. If raw data length is lower than 9 bytes (minimum PDU size), empty frame is returned.
|
ExtractEventNotification |
Returns first event notification from rawData or empty buffer if rawData does not contain any event notification.
|
IsPduComplete |
Checks if rawData contains complete PDU returned from PLC.
|
SkipUnrequestedData |
Returns requested PDU or start of requested PDU (if it is not yet complete). Skips responses from other meters and event notifications.
|
UnWrap |
Extracts wrapped DLMS frame.
byte DSAP, byte LSAP, ushort DestinationAddress, ushort SourceAddress, ushort length, byte[] data, con_class = 0
|____________________4-32 Data.Indication overhead___________________|________L_SDU______________|4-32-rozsireni|
|
Wrap |
Wraps dlms frame into unit that can be used for DLMS communication via PLC.
byte DSAP, byte LSAP, ushort DestinationAddress, ushort length ,byte[] data, con_class = 0
|___________4-32 Data.Request overhead_________|__________L_SDU____________|4-32-rozsireni|
|