import serial

ser=serial.Serial("COM21")

while True:
    a=input("please type your cmd here, q for quit, e for remote quit.")
    print(a)
    if a=='q':
        break
    ser.write(a.encode())

6a27464f24615df8679a39e810b9332e789d2e60
<mask token>

<mask token>
while True:
    a = input('please type your cmd here, q for quit, e for remote quit.')
    print(a)
    if a == 'q':
        break
    ser.write(a.encode())

<mask token>
ser = serial.Serial('COM21')
while True:
    a = input('please type your cmd here, q for quit, e for remote quit.')
    print(a)
    if a == 'q':
        break
    ser.write(a.encode())

import serial
ser = serial.Serial('COM21')
while True:
    a = input('please type your cmd here, q for quit, e for remote quit.')
    print(a)
    if a == 'q':
        break
    ser.write(a.encode())

import serial

ser=serial.Serial("COM21")

while True:
    a=input("please type your cmd here, q for quit, e for remote quit.")
    print(a)
    if a=='q':
        break
    ser.write(a.encode())
