def setDefaultValues(self):
        """set default mandatory Thread Network parameter value"""
        print '%s call setDefaultValues' % self.port

        # initialize variables
        self.networkName = ModuleHelper.Default_NwkName
        self.networkKey = ModuleHelper.Default_NwkKey
        self.channel = ModuleHelper.Default_Channel
        self.channelMask = "0x7fff800" #(0xffff << 11)
        self.panId = ModuleHelper.Default_PanId
        self.xpanId = ModuleHelper.Default_XpanId
        self.meshLocalPrefix = ModuleHelper.Default_MLPrefix
        self.pskc = "00000000000000000000000000000000"  # OT only accept hex format PSKc for now
        self.securityPolicySecs = ModuleHelper.Default_SecurityPolicy
        self.securityPolicyFlags = "onrcb"
        self.activetimestamp = ModuleHelper.Default_ActiveTimestamp
        #self.sedPollingRate = ModuleHelper.Default_Harness_SED_Polling_Rate
        self.sedPollingRate = 3
        self.deviceRole = None
        self.provisioningUrl = ''
        self.hasActiveDatasetToCommit = False
        self.logThread = Queue()
        self.logThreadStatus = self.logStatus['stop']
        self.networkDataRequirement = ''      # indicate Thread device requests full or stable network data
        self.isPowerDown = False              # indicate if Thread device experiences a power down event
        self._addressfilterMode = 'disable'   # indicate AddressFilter mode ['disable', 'whitelist', 'blacklist']
        self._addressfilterSet = set()        # cache filter entries
        self.isActiveCommissioner = False     # indicate if Thread device is an active commissioner
        self._lines = None                    # buffered lines read from device

        # initialize device configuration
        try:
            self.setMAC(self.mac)
            self.__setChannelMask(self.channelMask)
            self.__setSecurityPolicy(self.securityPolicySecs, self.securityPolicyFlags)
            self.setChannel(self.channel)
            self.setPANID(self.panId)
            self.setXpanId(self.xpanId)
            self.setNetworkName(self.networkName)
            self.setNetworkKey(self.networkKey)
            self.setMLPrefix(self.meshLocalPrefix)
            self.setPSKc(self.pskc)
            self.setActiveTimestamp(self.activetimestamp)
        except Exception, e:
            ModuleHelper.WriteIntoDebugLogger('setDefaultValue() Error: ' + str(e))
def setDefaultValues ( self ) : print '%s call setDefaultValues' % self . port self . networkName = ModuleHelper . Default_NwkName self . networkKey = ModuleHelper . Default_NwkKey self . channel = ModuleHelper . Default_Channel self . channelMask = "0x7fff800" self . panId = ModuleHelper . Default_PanId self . xpanId = ModuleHelper . Default_XpanId self . meshLocalPrefix = ModuleHelper . Default_MLPrefix self . pskc = "00000000000000000000000000000000" self . securityPolicySecs = ModuleHelper . Default_SecurityPolicy self . securityPolicyFlags = "onrcb" self . activetimestamp = ModuleHelper . Default_ActiveTimestamp self . sedPollingRate = 3 self . deviceRole = None self . provisioningUrl = '' self . hasActiveDatasetToCommit = False self . logThread = Queue ( ) self . logThreadStatus = self . logStatus [ 'stop' ] self . networkDataRequirement = '' self . isPowerDown = False self . _addressfilterMode = 'disable' self . _addressfilterSet = set ( ) self . isActiveCommissioner = False self . _lines = None try : self . setMAC ( self . mac ) self . __setChannelMask ( self . channelMask ) self . __setSecurityPolicy ( self . securityPolicySecs , self . securityPolicyFlags ) self . setChannel ( self . channel ) self . setPANID ( self . panId ) self . setXpanId ( self . xpanId ) self . setNetworkName ( self . networkName ) self . setNetworkKey ( self . networkKey ) self . setMLPrefix ( self . meshLocalPrefix ) self . setPSKc ( self . pskc ) self . setActiveTimestamp ( self . activetimestamp ) except Exception , e : ModuleHelper . WriteIntoDebugLogger ( 'setDefaultValue() Error: ' + str ( e ) )
set default mandatory Thread Network parameter value