ENHANCEMENTS:
- Add provision for user-defined payload definition dictionary, supplementing the existing
NMEA_PAYLOADS_GET
andNMEA_PAYLOADS_GET_PROP
dictionaries. Format should mirror that used inNMEA_PAYLOADS_GET
. Can be used for proprietary product development purposes or for standard payload definitions which are not yet in the public domain. - Drop active support for Python 3.8 - now End of Life as at October 2024.
ENHANCEMENTS:
- Add additional maritime talker IDs and NMEA sentence definitions.
- Add
DTL
date format ddmmyyyy.
ENHANCEMENTS:
-
Enhance NMEAMessage to parse unrecognised* NMEA sentence types to a nominal
<NMEA(TTXXX, NOMINAL, field_01=x...)>
message structure ifVALMSGID
validation flag is not set, rather than raise aNMEAParseMessage
error e.g.:A. with the
VALMSGID
flag not set (the new default behaviour):from pynmeagps import NMEAReader msg = NMEAReader.parse("$GNACN,103607.00,ECN,E,A,W,A,test,C*67\r\n") print(msg)
<NMEA(GNACN, NOMINAL, field_01=103607.00, field_02=ECN, field_03=E, field_04=A, field_05=W, field_06=A, field_07=test, field_08=C)>
B. with the
VALMSGID flag
set:from pynmeagps import NMEAReader, VALMSGID msg = NMEAReader.parse("$GNACN,103607.00,ECN,E,A,W,A,test,C*67\r\n", validate=VALMSGID) print(msg)
pynmeagps.exceptions.NMEAParseError: Unknown msgID GNACN, msgmode GET.
* unrecognised message types include those with unknown or invalid NMEA msgIDs (but valid payloads and checksums), or valid NMEA sentences whose payload definitions are not yet in the public domain (e.g. those currently commented-out in
NMEA_MSGIDS
). -
Add NMEA ALF sentence definition.
-
Add
validate
argument toNMEAMessage
and carry forward fromNMEAReader
-
Add logger to
NMEAMessage
.
ENHANCEMENTS:
- Add area() helper method to calculate spherical area of bounding box.
- Sphinx documentation and docstrings enhanced to include global constants and decodes.
socket_stream.SocketStream
class renamed tosocket_wrapper.SocketWrapper
class for clarity.
ENHANCEMENTS:
- Add support for NMEA streams with lower case hex checksums
ENHANCEMENTS:
-
Add Locosys proprietary NMEA GET and SET messages:
- $PINVCRES: Clear the NVM data
- $PINVCSTR: Start session
- $PINVMATTIT: ATTIT information
- $PINVMIMU: MEMS RAW-DATA message information
- $PINVMINR: Calibration status
- $PINVMSTR: Session Status
- $PINVMSLOPE: SLOPE information
- $PLSC: Set status/poll version
- $PLSR: Set status response
- $PLSVD: Attitude yaw, pitch, roll
NB: $PMTKnnn: proprietary command message sets not yet implemented
ENHANCEMENTS:
- Correct
planar()
helper function. - Internal logging & exception handling enhancements.
ENHANCEMENTS:
- Add further proprietary message definitions.
FIXES:
- Fixes & simplifies the derivation of NMEA
NS
andEW
values when creatingNMEAMessage
objects (e.g. GNGLL) using individual keyword arguments.NS
andEW
will always be derived from the sign of the provided signed decimallat
andlon
values and need not be provided explicitly. When creating anNMEAMessage
using a single payload argument (which is effectively what happens when parsing incoming serial data streams), the value ofNS
andEW
in the payload will determine the sign of the decimallat
/lon
values in theNMEAMessage
object.
FIXES:
- Add missing Trimble PASHR Proprietary Pitch and Roll sentence Fixes #52.
ENHANCEMENTS:
- Add planar formula in
nmeahelpers.py
to calculate approximate planar distance between two sets of coordinates. Complements the haversine formula at smaller scales.
ENHANCEMENTS:
- Cater for NMEA streams with LF (b"\x0a") rather than CRLF (b"\x0d\x0a") message terminators.
ENHANCEMENTS:
- Extend
NMEA_HDR
to include all known Talker IDs (not just those relevant to GNSS). - Minor Internal streamlining.
ENHANCEMENTS:
- Cater for 'IN' (Integrated Navigation) Talker ID.
ENHANCEMENTS:
- Cater for legacy "BD" (Beidou) NMEA Talker ID.
ENHANCEMENTS:
- Add 'NAVIC' to list of gnssId enumerations - reference only, no functional change.
CHANGES:
- Add write capability to socket_stream wrapper, allowing clients to write to NMEAReader socket stream (NMEAReader.datastream) as well as read from it.
- Update constructor arguments and docstrings to clarify API (no functional changes).
CHANGES:
- Deprecated
NMEAReader.iterate()
method removed - use the standard iterator instead e.g.nmr = NMEAReader(stream, **wkargs): for (raw,parse) in nmr: ...
, passing anyquitonerror
orerrorhandler
kwargs to the NMEAReader constructor. - Internal streamlining of helper methods.
FIXES:
- Add support for non-standard 3-digit degree latitude value, e.g.
'$GNGLL,02348.3822990,S,15313.5862807,E,040856.82,A,D*5F'
- NB: footprint of
dmm2ddd
helper method has changed -att
argument no longer required. - Fixes #37
- Remove Python 3.7 from workflows.
- Add proprietary POLL messages to nmeatypes_poll.py
ENHANCEMENTS:
- Add proprietary Trimble message definitions.
- GMP GNSS Map Projection Fix Data
- LLQ Leica local position and quality
- ROT Rate of turn
- PASHR,ALR Alarms
- PASHR,ARA True Heading
- PASHR,ARR Vector & Accuracy
- PASHR,ATT True Heading
- PASHR,BTS Bluetooth Status
- PASHR,CAP Parameters of Antenna Used at Received Base
- PASHR,CPA Height of Antenna Used at Received Base
- PASHR,CPO Position of Received Base
- PASHR,DDM Differential Decoder Message
- PASHR,DDS Differential Decoder Status
- PASHR,HPR True Heading
- PASHRHR Proprietary Roll and Pitch
- PASHR,LTN Latency
- PASHR,MDM Modem State and Parameter
- PASHR,PBN Position and Velocity Information
- PASHR,POS Position
- PASHR,PTT PPS Time Tag
- PASHR,PWR Power Status
- PASHR,RCS Recording Status
- PASHR,SBD BEIDOU Satellites Status
- PASHR,SGA GALILEO Satellites Status (E1,E5a,E5b)
- PASHR,SGL GLONASS Satellites Status
- PASHR,SGO GALILEO Satellites Status (E1,E5a,E5b,E6)
- PASHR,SGP GPS Satellites Status
- PASHR,SIR IRNSS Satellites Status
- PASHR,SLB L-Band Satellites Status
- PASHR,SQZ QZSS Satellites Status
- PASHR,SSB SBAS Satellites Status
- PASHR,TEM Receiver Temperature
- PASHR,THS True Heading and Status
- PASHR,TTT Event Marker
- PASHR,VCR Vector and Accuracy
- PASHR,VCT Vector and Accuracy
- PASHR,VEL Velocity
- FUGDP Fugro Dynamic Positioning
- GPPADV,110 Position and satellite information for RTK network operations 110
- GPPADV,120 Position and satellite information for RTK network operations 120
- PTNL,AVR Time, yaw, tilt, range, mode, PDOP, and number of SVs for Moving Baseline RTK
- PTNL,BPQ Base station position and position quality indicator
- PTNL,DG L-band corrections and beacon signal strength and related information
- PTNL,EVT Event marker data
- PTNL,GGK Time, position, position type, and DOP values
- PTNL,PJK Time, position, position type, and DOP values
- PTNL,PJT Projection type
- PTNL,REX Rover Extended Output
- PTNL,VGK Time, locator vector, type, and DOP values
- PTNL,VHD Heading Information
FIXES:
- Rounding removed from
haversine
helper method.
ENHANCEMENTS:
- Add
bearing
helper method.
CHANGES:
quitonerror
anderrorhandler
kwargs added to NMEAReader constructor - see Sphinx documentation for details.NMEAReader.iterate()
method deprecated - use the standard iterator instead e.g.nmr = NMEAReader(stream, **wkargs): for (raw,parse) in nmr: ...
, passing anyquitonerror
orerrorhandler
kwargs to the NMEAReader constructor.
FIXES:
- Fix typo in PUBX00 payload definition - PDOP is now TDOP. Thanks to @dbstf for issue report.
- Fix handling of VALMSGID flag in NMEAReader. Thanks to @nmichaels-qualinx for issue report.
ENHANCEMENTS:
- Following utility methods added to nmeahelpers.py:
latlon2dms
- converts decimal lat/lon to degrees, minutes, decimal seconds format e.g. "53°20′45.6″N", "2°32′46.68″W"latlon2dmm
- converts decimal lat/lon to degrees, decimal minutes format e.g. "53°20.76′N", "2°32.778′W"llh2iso6709
- converts lat/lon and altitude (hMSL) to ISO6709 format e.g. "+27.5916+086.5640+8850CRSWGS_84/"ecef2llh
- converts ECEF (X, Y, Z) coordinates to geodetic (lat, lon, ellipsoidal height) coordinatesllh2ecef
- converts geodetic (lat, lon, ellipsoidal height) coordinates to ECEF (X, Y, Z) coordinateshaversine
- finds spherical distance in km between two sets of (lat, lon) coordinates
CHANGES:
- shields.io build status badge URL updated.
No other functional changes.
ENHANCEMENTS:
time2utc
helper method enhanced to cater for proprietary NMEA messages containing timestamps in format hh.mm.ss rather than hh.mm.ss.ss (i.e. missing decimal seconds). Addresses PR #19.
ENHANCEMENTS:
- Enhancement to NMEAMessage constructor - will now automatically derive value of
NS
orEW
attributes from provided lat/lon e.g.lon
< 0 =>EW
= "W" - Enhancement to NMEAMessage constructor - optional keyword argument
hpnmeamode
added which allows NMEA position message payloads to be constructed to 7dp decimal minutes rather than the standard 5dp (i.e. (d)ddmm.mmmmmmm rather than (d)ddmm.mmmm). NB: this is primarily for manually constructed messages. Messages parsed from a GNSS receiver data stream retain whatever level of precision is output by the receiver to a maximum 10dp of decimal degrees.
CHANGES:
nmeadump
CLI utility has been removed and replaced by thegnssdump
utility available via thepygnssutils
PyPi package.- Python 3.11 classifier added to setup.
FIXES:
- When manually creating NMEA Messages, the nominal (default) value of time and date fields is now set to UTC time rather than local time. This is relevant, for example, when constructing NMEA GGA messages to send to NTRIP casters.
CHANGES:
- Add support for THS message type.
- Extend test coverage for socket handler.
ENHANCEMENTS:
- Add capability to read from TCP/UDP socket as well as serial stream. Utilises a SocketStream utility class to allow sockets to be read using standard stream-like read(bytes) and readline() methods.
FIXES:
- GBS and GSA message definitions updated -
systemId
andsignalId
now correctly defined as HX rather than IN.
FIXES:
- GRS message definition updated -
systemId
andsignalId
now correctly defined as HX rather than IN.
ENHANCEMENTS:
identity
property added to NMEAMessage for consistency with companionpyubx2
library - identity = (talker+msgID)- internal refactoring of error handling in
NMEAReader.read()
method to make it more consistent withpyubx2
when processing corrupted data streams.
FIXES:
- HX attribute type processing corrected - will now parse HX values as hex strings rather than convert to/from integers.
- GSV payload corrected - SignalId is now hex.
ENHANCEMENTS:
- Python 3.10 compatibility added
- Minor pylint code tweaks
ENHANCEMENTS:
- Filter added to
nmeadump
cli utility to limit output to specified NMEA msgIDs. See README for usage. - Update
dmm2ddd()
helper method to increase conversion accuracy from 6 to 8 decimal places - thanks for Doradx for the contribution.
ENHANCEMENTS:
- The nmeadump.py example has been moved into the pynmeagpscli module and configured as a setup entry point. It is now available as a simple command line utility. See README for usage.
FIXES:
- Fixed diffAge field type in GGA payload definition.
FIXES:
- Fixed typo in VTG payload definition -
cogT
is nowcogt
. Test script updated.
FIXES:
- Fixed typo in GBS payload definition -
effLon
is nowerrLon
. Test script updated. - Fixed cosmetic typo in nmeafile.py example - functionality not affected.
CHANGES:
- Marked to v1.0.0 Production/Stable. No other functional changes.
FIXES:
- NMEA PUBX msgId parsed as str rather than int.
ENHANCEMENTS:
- nmeatypes_core.py NMEA_MSGID table split into standard and proprietary dicts.
- nmeapollall.py example added.
ENHANCEMENTS:
- Following standard message types added: AAM, APA, APB, BOD, BWC, MSK, MSS, RMA, RMB, STN, VBW, WPL, XTE,
- Following proprietary message types added: (Garmin) GRME, GRMM, GRMZ
Further types will be added in subsequent releases. Shout or submit PR if you want yours prioritised.
ENHANCEMENTS:
- message types HDG, HDM, HDT, RTE added
- msgdesc() helper method added to get description of NMEA message type.
- construction of proprietary messages (talker = 'P') made more consistent with standard messages.
FIXES:
- nominal value for HX (hex) attribute type updated to integer rather than string (only currently affects RLM message type).
CHANGES:
- Optional arguments to NMEARreader constructor and parse() method have been changed to **kwargs rather than args for future flexibility. See docstrings for usage.
ENHANCEMENTS:
- Add Garmin proprietary NMEA sentences GET and SET.
ENHANCEMENTS:
- Parse validate flag added to NMEAReader.read() method, defaults to VLCKSUM (1 - check checksum only); other options are VALNONE = 0, VALMSGID = 2. Options can be ANDed. Examples updated accordingly.
- Constructor enhanced to allow NMEAMessage to be created using typed values.
- README.MD and GitHub workflow/coverage updated
- Initial public beta release