C# Class Gurux.DLMS.GXDLMS

GXDLMS implements methods to communicate with DLMS/COSEM metering devices.
Afficher le fichier Open project: Gurux/Gurux.DLMS.Net Class Usage Examples

Méthodes publiques

Méthode Description
GetData ( GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data ) : bool
GetObjectTypes ( Type>.Dictionary availableObjectTypes ) : System.Type[]

Returns object types.

This can be used with serialization.

GetPdu ( GXDLMSSettings settings, GXReplyData data ) : void

Get PDU from the packet.

Private Methods

Méthode Description
AddLLCBytes ( GXDLMSSettings settings, GXByteBuffer data ) : void

Add LLC bytes to generated message.

AppendData ( GXDLMSSettings settings, GXDLMSObject obj, int index, GXByteBuffer bb, Object value ) : void
AppendMultipleSNBlocks ( GXDLMSSNParameters p, GXByteBuffer header, GXByteBuffer reply ) : int
CheckHdlcAddress ( bool server, GXDLMSSettings settings, GXByteBuffer reply, int index ) : bool

Check that client and server address match.

CheckInit ( GXDLMSSettings settings ) : void

Reserved for internal use.

CheckWrapperAddress ( GXDLMSSettings settings, GXByteBuffer buff ) : void
CreateObject ( ObjectType type, Type>.Dictionary availableObjectTypes ) : GXDLMSObject
GetActionInfo ( ObjectType objectType, int &value, int &count ) : void

Returns action method information.

GetAvailableObjects ( Type>.Dictionary availableObjectTypes ) : void

Get available COSEM objects.

GetDataFromBlock ( GXByteBuffer data, int index ) : int

Get data from Block.

GetDataFromFrame ( GXByteBuffer reply, GXReplyData info ) : void

Get data from HDLC or wrapper frame.

GetDescription ( ErrorCode error ) : string

Get error description.

GetGloMessage ( Command cmd ) : byte

Get used glo message.

GetHdlcAddressBytes ( int value, byte size ) : byte[]

Convert HDLC address to bytes.

GetHdlcData ( bool server, GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data ) : byte
GetHdlcFrame ( GXDLMSSettings settings, byte frame, GXByteBuffer data ) : byte[]

Get HDLC frame for data.

GetHhlcAddress ( int value, byte size ) : Object

Get HDLC address.

GetInvokeIDPriority ( GXDLMSSettings settings ) : byte

Generates Invoke ID and priority.

GetLLCBytes ( bool server, GXByteBuffer data ) : bool

Check LLC bytes.

GetLNPdu ( GXDLMSLNParameters p, GXByteBuffer reply ) : void

Get next logical name PDU.

GetLnMessages ( GXDLMSLNParameters p ) : byte[][]

Get all Logical name messages. Client uses this to generate messages.

GetLongInvokeIDPriority ( GXDLMSSettings settings ) : UInt32

Generates Invoke ID and priority.

GetSNPdu ( GXDLMSSNParameters p, GXByteBuffer reply ) : void

GetServerAddress ( int address, int &logical, int &physical ) : void
GetSnMessages ( GXDLMSSNParameters p ) : byte[][]

Get all Short Name messages. Client uses this to generate messages.

GetTcpData ( GXDLMSSettings settings, GXByteBuffer buff, GXReplyData data ) : void

Get data from TCP/IP frame.

GetValueFromData ( GXDLMSSettings settings, GXReplyData reply ) : void

Get value from the data.

GetWrapperFrame ( GXDLMSSettings settings, GXByteBuffer data ) : byte[]

Split DLMS PDU to wrapper frames.

HandleAccessResponse ( GXDLMSSettings settings, GXReplyData reply ) : void
HandleActionResponseNormal ( GXDLMSSettings settings, GXReplyData data ) : void
HandleConfirmedServiceError ( GXReplyData data ) : void
HandleDataNotification ( GXDLMSSettings settings, GXReplyData reply ) : void
HandleGbt ( GXDLMSSettings settings, GXReplyData data ) : void

Handle General block transfer message.

HandleGetResponse ( GXDLMSSettings settings, GXReplyData reply, int index ) : bool

Handle get response and get data from block and/or update error status.

HandleMethodResponse ( GXDLMSSettings settings, GXReplyData data ) : void

Handle method response and get data from block and/or update error status.

HandleReadResponse ( GXDLMSSettings settings, GXReplyData reply, int index ) : bool

Handle read response and get data from block and/or update error status.

HandleSetResponse ( GXDLMSSettings settings, GXReplyData data ) : void
HandleWriteResponse ( GXReplyData data ) : void

Handle write response and get data from block.

MultipleBlocks ( GXDLMSLNParameters p, GXByteBuffer reply, bool ciphering ) : void

Check is all data fit to one data block.

ReadResponseDataBlockResult ( GXDLMSSettings settings, GXReplyData reply, int index ) : bool

Handle read response data block result.

ReceiverReady ( GXDLMSSettings settings, RequestTypes type ) : byte[]

Generates an acknowledgment message, with which the server is informed to send next packets.

Method Details

GetData() public static méthode

public static GetData ( GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data ) : bool
settings GXDLMSSettings
reply GXByteBuffer
data GXReplyData
Résultat bool

GetObjectTypes() public static méthode

Returns object types.
This can be used with serialization.
public static GetObjectTypes ( Type>.Dictionary availableObjectTypes ) : System.Type[]
availableObjectTypes Type>.Dictionary
Résultat System.Type[]

GetPdu() public static méthode

Get PDU from the packet.
public static GetPdu ( GXDLMSSettings settings, GXReplyData data ) : void
settings GXDLMSSettings DLMS settings.
data GXReplyData received data.
Résultat void