GXDLMSLNSettings contains commands for retrieving, and setting, the Logical Name settings of the server, shortly said LN referencing support.
Beispiel #1
0
 ///<summary>
 ///Constructor.
 ///</summary>
 internal GXDLMSSettings(bool isServer)
 {
     UseCustomChallenge = false;
     StartingBlockIndex = BlockIndex = 1;
     DLMSVersion        = 6;
     InvokeID           = 0x1;
     Priority           = Priority.High;
     ServiceClass       = ServiceClass.UnConfirmed;
     MaxReceivePDUSize  = DefaultMaxReceivePduSize;
     Server             = isServer;
     Objects            = new GXDLMSObjectCollection();
     Limits             = new GXDLMSLimits();
     if (isServer)
     {
         LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0x7C, 0x1F });
     }
     else
     {
         LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0x7E, 0x1F });
     }
     SnSettings = new GXDLMSSNSettings(new byte[] { 0x1C, 0x03, 0x20 });
     ResetFrameSequence();
 }
 public void CopyTo(GXDLMSLNSettings target)
 {
     target.m_ConformanceBlock = this.m_ConformanceBlock;
 }
Beispiel #3
0
 public void CopyTo(GXDLMSLNSettings target)
 {
     target.m_ConformanceBlock = this.m_ConformanceBlock;
 }
Beispiel #4
0
 ///<summary>
 ///Constructor.
 ///</summary>
 internal GXDLMSSettings(bool server)
 {
     UseCustomChallenge = false;
     StartingBlockIndex = BlockIndex = 1;
     DLMSVersion = 6;
     InvokeID = 0x1;
     Priority = Priority.High;
     ServiceClass = ServiceClass.Confirmed;
     MaxServerPDUSize = MaxPduSize = DefaultMaxReceivePduSize;
     IsServer = server;
     Objects = new GXDLMSObjectCollection();
     Limits = new GXDLMSLimits();
     LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0xFE, 0x1F });
     SnSettings = new GXDLMSSNSettings(new byte[] { 0x1C, 0x03, 0x20 });
     ResetFrameSequence();
 }