import serial
ser = serial.Serial('/dev/ttyS8', 57600, timeout=10) # open serial port
print(ser.name) # check which port was really used
#ser.write(b'hello') # write a string
s = ser.read(20)
print(f'--> {s}')
ser.close()
796505b70f726abe169a6d9400819ca0b15dbe7c
<mask token>

<mask token>
print(ser.name)
<mask token>
print(f'--> {s}')
ser.close()

<mask token>
ser = serial.Serial('/dev/ttyS8', 57600, timeout=10)
print(ser.name)
s = ser.read(20)
print(f'--> {s}')
ser.close()

import serial
ser = serial.Serial('/dev/ttyS8', 57600, timeout=10)
print(ser.name)
s = ser.read(20)
print(f'--> {s}')
ser.close()

import serial
ser = serial.Serial('/dev/ttyS8', 57600, timeout=10) # open serial port
print(ser.name) # check which port was really used
#ser.write(b'hello') # write a string
s = ser.read(20)
print(f'--> {s}')
ser.close()