Lines Matching refs:timeout
28 self.device = telnetlib.Telnet(self._host, port=self._port, timeout=self.__timeout)
30 def tellogin(self, username, password, endwaittag, timeout): argument
32 rets = self.device.read_until(endwaittag, timeout)
38 rets = self.sendCmdAndCheckResult(username.encode('utf-8'), 'Password:', timeout)
42 rets = self.sendCmdAndCheckResult(password.encode('utf-8'), endwaittag, timeout)
47 def sendCmd(self, send_cmd, endtag, timeout): argument
51 rets = self.device.read_until(endtag.encode('utf-8'), timeout)
57 def sendEnterCmd(self, endtag, timeout): argument
73 def sendCmdAndCheckResult(self, cmd, endtag, timeout): argument
75 rets = self.sendCmd(cmd + '\n'.encode('utf-8'), endtag, timeout)
86 def sendCmdAndCheckSucTag(self, cmd, endtag, suctag , timeout): argument
88 rets = self.sendCmd(cmd + '\n'.encode('utf-8'), endtag, timeout)
99 def sendUpgradeCmd(self, sendcmd, endwaittag, suctag, timeout): argument
102 return self.sendCmdAndCheckSucTag(sendcmd.encode('utf-8'), endwaittag, suctag, timeout)
105 return self.sendCmdAndCheckResult(sendcmd.encode('utf-8'), endwaittag, timeout)
107 def sendResetCmd(self, endtag, timeout): argument
113 if not self.sendEnterCmd(endtag, timeout):
121 def getBoardType(self, endtag, timeout): argument
122 rcvStr = self.sendCmd(b'\r\n', endtag, timeout)