from datetime import datetime
import serial
import io
import time

ser = serial.Serial('/dev/ttyUSB1', 115200)

while True:
  ser.write(b'x')
  print(datetime.now().strftime('%H:%M:%S.%d'), ser.read())
  time.sleep(0.2)