Repository navigation
SN-9079: Add $PGNSSP NMEA sentence, deprecate $PGPSP - #1396
Merged
Merged
Conversation
$PGNSSP (NMEA_MSG_ID_PGNSSP = 20) carries every gnss_pos_t field except ecef, plus the GNSS velocity. Fields 1-17 match $PGPSP; it adds satsUsed, cnoMeanSigma and status2 (jamming/spoofing, eGnssStatus2). - nmea_pgnssp() / nmea_parse_pgnssp(); $PGPSP and $PGNSSP share one field encoder and parser so fields 1-17 cannot drift apart. - Talker <-> ID lookup, DID_GNSS1/2_POS RMC bits, GRMC bit names. - CBOR registry regenerated: NMEA_PGNSSP pseudo-DID 0x3F14, NMEA_MSG_ID_COUNT 20 -> 21. - $PGPSP encoder/parser marked @deprecated; behavior unchanged. - File headers and copyright years brought up to the style guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round trip with every new field non-zero, a full time-of-week sweep, fields 1-17 byte-identical to $PGPSP, satsUsed independent of status, talker/ID lookup and RMC bits, and $ASCE enable by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tmcd249
requested review from
aabogdanov,
kylemallory,
shefft and
waltjohnson
November 23, 2026 23:20
aabogdanov
approved these changes
Nov 24, 2026
kylemallory
approved these changes
Nov 24, 2026
waltjohnson
requested changes
Nov 25, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical buffer-write and parser-read bounds violations remain, alongside acceptance of incomplete sentences and incorrect velocity frame status handling.
3 open issues
What changed in this PR
Adds $PGNSSP to the SDK’s NMEA support, carrying additional GNSS solution fields while deprecating $PGPSP and preserving its wire format.
Changes:
- Shares encoding and parsing logic for the existing fields, adding
satsUsed,cnoMeanSigma, andstatus2. - Registers the new sentence in message lookup, broadcast mappings, and the CBOR registry.
- Adds six tests covering round trips, legacy-field compatibility, lookup, and
$ASCEenablement.
| File | Description |
|---|---|
| tests/test_protocol_nmea.cpp | Adds six $PGNSSP tests. |
| src/protocol_nmea.h | Declares new APIs and marks legacy APIs deprecated. |
| src/protocol_nmea.cpp | Implements $PGNSSP using shared field encoding and parsing. |
| src/ISDataMappings.cpp | Adds the broadcast-bit display label. |
| src/data_sets.h | Defines the new message ID and broadcast bit. |
| src/data_sets.c | Adds talker lookup and GNSS dataset mappings. |
| src/cbor/cbor_registry.h | Defines the $PGNSSP pseudo-DID. |
| src/cbor/cbor_registry.c | Updates the message-count assertion to 21. |
| src/cbor/cbor_registry_names.c | Adds the CBOR registry name. |
Review effort: Balanced
waltjohnson
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Jira: SN-9079. Submodule bump and firmware: inertialsense/imx#1837.
What
Adds the
$PGNSSPNMEA sentence (NMEA_MSG_ID_PGNSSP = 20) and deprecates$PGPSP.$PGNSSPcarries everygnss_pos_tfield exceptecef(it can be computed fromlla), plus the GNSS velocity:$PGPSP(time, week, status, LLA, MSL, DOP/accuracy, velocity, sAcc, cnoMean, towOffset, leapS)satsUsed: its own field instead of the deprecated low byte ofstatuscnoMeanSigmastatus2: jamming/spoofing flags (eGnssStatus2), decimal$PGPSPand$PGNSSPshare one field encoder and one parser, so fields 1-17 can't drift apart. A$PGPSPparser only needs the new talker name and fields 18-20.$PGPSPis unchanged on the wire and still parsed; its functions are marked@deprecated.NMEA_PGNSSPpseudo-DID0x3F14,NMEA_MSG_ID_COUNT20 → 21. Stored flash configs are unaffected: the decoder accepts a shorternmeaPeriod[]array (if (i < f->count)).Tests
IS-SDK_unit-tests: 133 passed (protocol_nmea, CBOR, data mappings, ISComm), including 6 new$PGNSSPtests: round trip with every new field non-zero, a full time-of-week sweep, fields 1-17 byte-identical to$PGPSP, satsUsed independent of status, talker/ID lookup, and$ASCEenable by name.Pre-PR check (base d3d6e68)
data_sets.c,data_sets.h(eNmeaMsgId) andISDataMappings.cpparound one-row insertions, and the rewrap of the old license comment around the copyright year. Those are lines this PR didn't write (step 3)protocol_nmea.cppand the test moved to unnamed namespaces). The&a[N] // $TALKER,parser offsets follow the convention of every other parser in the file/tmp/check: 0🤖 Generated with Claude Code