I used pyserial to control a uart, hardware is Odroid and OS is ubuntu 14.04, and there are something wrong happend:
>>> import serial
>>> s = serial.Serial("/dev/ttyUSB1", 115200)
>>> s.readline()
'$GPNTR,054626.40,0,0.000,+0.000,+0.000,+0.000,*41\r\n'
>>> s.close()
>>> s = serial.Serial("/dev/ttyUSB1", 115200)
>>> s.readline()
'\x7f\x84)\x95\x02\x84a\xfd\x021\x95\n'
>>> s.close()
But after using minicom to open the port, this port will return to normal, and if i run the code, mistakes will happen again.
Thank.
Tianyu.