UnicodeDecodeError from tty.readline(), u-Blox 8
Hal Murray
halmurray at sonic.net
Mon May 29 22:22:43 UTC 2023
Can somebody give me a lesson on this area?
The code is:
tty = open("/dev/ttyACM0")
forever:
line = tty.readline()
a) How do I read mostly ASCII without crashing when there is non-ASCII?
b) Why is a u-Blox LEA-M8T sending me non-ASCII crap?
This is coming from the USB port. It's running in NMEA mode.
I don't think I have sent it any commands.
--
These are my opinions. I hate spam.
More information about the devel
mailing list