From 1de5e37d1cbcc474149dd387affc6fdb834a255b Mon Sep 17 00:00:00 2001 From: rongli Date: Thu, 16 Mar 2017 00:43:06 +0800 Subject: [PATCH] THCI: Add long timeout for new joiner (#1469) --- tools/harness-thci/OpenThread.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 8796322f1..da98ec4bb 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -1937,7 +1937,10 @@ class OpenThread(IThci): JoinerAddr = ModuleHelper.CalculateHashMac(xEUI) JoinerHashMac = hex(int(JoinerAddr)).rstrip("L").lstrip("0x") - cmd = 'commissioner joiner add %s %s' % (JoinerHashMac, strPSKd) + # long timeout value to avoid automatic joiner removal (in seconds) + timeout = 500 + + cmd = 'commissioner joiner add %s %s %s' % (JoinerHashMac, strPSKd, str(timeout)) print cmd if self.__sendCommand(cmd)[0] == 'Done': if self.logThreadStatus == self.logStatus['stop']: @@ -2533,3 +2536,6 @@ class OpenThread(IThci): cmd = 'delaytimermin %s' % iSeconds print cmd return self.__sendCommand(cmd)[0] == 'Done' + + def ValidateDeviceFirmware(self): + pass