code: def MGMT_ED_SCAN(self, sAddr, xCommissionerSessionId, listChannelMask, xCount, xPeriod, xScanDuration):
          
          print '%s call MGMT_ED_SCAN' % self.port
          channelMask = ''
          channelMask = '0x' + self.__convertLongToString(self.__convertChannelMask(listChannelMask))
          try:
              cmd = 'commissioner energy %s %s %s %s %s' % (channelMask, xCount, xPeriod, xScanDuration, sAddr)
              print cmd
              return self.__sendCommand(cmd) == 'Done'
          except Exception, e:
              ModuleHelper.writeintodebuglogger("MGMT_ED_SCAN() error: " + str(e))
docs: send MGMT_ED_SCAN message to a given destinaition.
  
          Args:
              sAddr: IPv6 destination address for this message
              xCommissionerSessionId: commissioner session id
              listChannelMask: a channel array to indicate which channels to be scaned
              xCount: number of IEEE 802.15.4 ED Scans (milliseconds)
              xPeriod: Period between successive IEEE802.15.4 ED Scans (milliseconds)
              xScanDuration: IEEE 802.15.4 ScanDuration to use when performing an IEEE 802.15.4 ED Scan (milliseconds)
  
          Returns:
              True: successful to send MGMT_ED_SCAN message.
              False: fail to send MGMT_ED_SCAN message