If I just write msg without the str I get the following error:įile "\My Documents\LiClipse Workspace\NMEA converter\project.py", line 20, in įile "\Downloads\pyserial-3.4\serial\serialwin32.py", line 308, in writeįile "\Downloads\pyserial-3.4\serial\serialutil.py", line 66, in to_bytes
Ser2.close()My problem is that the parsed sentence is written as a continuous string, whilst I would like it to be written as a list like this:
It is expected to be the penultimate release for Python 2.7. 19, 2019 Python 2.7.17 is a bug fix release in the Python 2.7.x series.
Your pip suggestion worked perfectly in Win 10 Python 3.5.0 :: Anaconda 2.4. Pyserial 3.4 Download How to download willio mac. Streamreader = pynmea2.NMEAStreamReader() dhoomakethu I ended up here again, love it when Google finds me my own questions. #read from COM-port, parse NMEA and send to new COM-port Ser = serial.Serial(port, 4800, timeout=0) the components Python 3.6.5 and pyserial 3.4 from the Runtime Package. When you issue a command like pip3 install -user pyserial it checks an online repository and downloads the pyserial package (which may contain multiple. Ser2 = serial.Serial(port2, 4800, timeout=0) In addition, an Internet connection is required to download new firmware versions. I am trying to write a code that can receive a stream of NMEA sentences from my GPS via serial port, parse the sentence and write it as a different type of NMEA sentence to another serial port.