semuconsulting / pynmeagps

Python library for parsing and generating NMEA 0183 GNSS/GPS protocol messages.
BSD 3-Clause "New" or "Revised" License
81 stars 28 forks source link

"Universal" reader #13

Closed flytrex-vadim closed 2 years ago

flytrex-vadim commented 2 years ago

Since u-blox receivers are frequently configured to emit both UBX and NMEA message types, it could be useful to have a reader module that can process such a stream and parse it correctly using both pyubx2 and pynmeagps.

Something like the code in pygpsclient/serial_handler.py, but packaged for reusability, with an interface like NMEAReader / UBXReader.

semudev2 commented 2 years ago

ok we can port PYGPSClient's serial_handler.py mixed-protocol read routine into a stand-alone CLI example if that helps.

flytrex-vadim commented 2 years ago

I think that would be a good step, especially if separated from dependency on Serial and made work with a stream like NMEAReader and UBXReader.

semuadmin commented 2 years ago

FYI Provisional implementation as cli utility gnssdump.py as part of pyubx2 rather than pynmeagps. Work in progress is in pyubx2 branch add-gnssdump-cli-utility.

semuadmin commented 2 years ago

This has hopefully been addressed via https://github.com/semuconsulting/pyubx2/pull/50