Lines Matching refs:serial

216         import serial
236 self.ser = serial.Serial(pty, interCharTimeout=1, rtscts=True, dsrdtr=True)
257 self.serial = ProcessToSerial(device[len("exec:") :])
259 self.serial = ProcessPtyToTerminal(device[len("qemupty:") :])
262 self.serial = TelnetToSerial(device, user, password, read_timeout=10)
264 import serial
269 self.serial = serial.Serial()
270 self.serial.port = device
271 self.serial.baudrate = baudrate
272 self.serial.parity = "N"
273 self.serial.bytesize = 8
274 self.serial.stopbits = 1
275 self.serial.timeout = 0.05
278 self.serial.open()
295 self.serial.close()
299 self.serial.write(cmd)
302 self.serial.write(cmd)
311 data = self.serial.read(min_num_bytes)
318 elif self.serial.inWaiting() > 0:
319 new_data = self.serial.read(1)
340 self.serial.write(b"\r\x03") # exit running code
342 self.serial.write(b"\r\x02")
344 self.serial.write(b"\r\n")
348 self.serial.write(b"python\r\n") # ctrl-C twice: interrupt any running program
352 n = self.serial.inWaiting()
354 self.serial.read(n)
355 n = self.serial.inWaiting()
358 self.serial.write(b"\r\n")
360 self.serial.write(b"\r\x01") # ctrl-A: enter raw REPL
367 self.serial.write(b"\r\x01") # ctrl-A: enter raw REPL
387 self.serial.write(b"\r\x02") # ctrl-B: enter friendly REPL
391 self.serial.write(b"\r\x04") # ctrl-D: enter friendly REPL
411 data = self.serial.read(2)
418 while window_remain == 0 or self.serial.inWaiting():
419 data = self.serial.read(1)
425 self.serial.write(b"\x04")
432 self.serial.write(b)
437 self.serial.write(b"\x04")
456 self.serial.write(b"\x05A\x01")
457 data = self.serial.read(2)
474 self.serial.write(command_bytes[i : min(i + 256, len(command_bytes))])
476 self.serial.write(b"\x04")
479 data = self.serial.read(2)