GXDLMSSNSettings contains commands for retrieving and setting the Short Name settings of the server, shortly said SN referencing support.
コード例 #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();
 }
コード例 #2
0
 public void CopyTo(GXDLMSSNSettings target)
 {
     target.ConformanceBlock = this.ConformanceBlock;
 }
コード例 #3
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();
 }
コード例 #4
0
 public void CopyTo(GXDLMSSNSettings target)
 {
     target.ConformanceBlock = this.ConformanceBlock;
 }