def open_port(self, port, listening_serial_thread):
if not self.fake:
self.ser = serial.Serial(port,
baudrate=115200,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_TWO,
#rtscts=True,
timeout=1000)
if listening_serial_thread:
SerialThread.SerialThread(self.ser).start()
评论列表
文章目录