feat(hal): GPS PPS timestamp sync via lgw_gps_* for SX1303#66
Open
iceice400 wants to merge 4 commits into
Open
feat(hal): GPS PPS timestamp sync via lgw_gps_* for SX1303#66iceice400 wants to merge 4 commits into
iceice400 wants to merge 4 commits into
Conversation
2033516 to
7861cd1
Compare
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.
Summary
Follow-up to #65: adds Semtech HAL GPS/PPS bindings so the SX1302/SX1303 concentrator can align internal packet
timestamp_uswith GPS time on RAK Pi HATs (u-blox on/dev/ttyAMA0, PPS into the concentrator).This is orthogonal to
location.source: uart/gpsd, which only feed dashboard coordinates and NodeInfo.Changes
HAL (
src/hal/)sx1302_gps_types.py—TimespecS,TrefS,CoordS, GPS message constants.sx1302_gps_signatures.py+apply_gps_signatures()fromapply_signatures().sx1302_gps.py—HalGpsPpsSync:lgw_gps_enable, background UBX/NMEA parser,lgw_gps_synconUBX-NAV-TIMEGPS,sx1302_gps_enable, optionallgw_cnt2utc.SX1302Wrapper.start_gps_pps()/stop_gps_pps();ConcentratorCaptureSourcestarts PPS afterlgw_start()when configured.Config
radio.gps_pps_enabled,gps_pps_tty_path,gps_family,gps_pps_target_baud.validate_config_consistency()rejectsgps_pps_enabled+location.source: uarton the same TTY.API
GET /api/device/gps-pps-status— sync count, last error, reference counter.radio_advancedinGET /api/configexposes PPS fields.Docs
CONFIGURATION.md— GPS PPS section + uart/PPS matrix.docs/plans/gps-pps-follow-up-issue.md— issue template for trackers.Why
#65 fixed
lgw_start()on RAK/SX1303 and wired UART for map GPS. Operators running SX1303 with PPS still need concentrator-time alignment for accurate packet timestamps — that path lives inlgw_gps_*, not in NMEA GGA parsing.Operator notes
location.source: uart,gps_pps_enabled: falselocation.source: gpsd,gps_pps_enabled: truelocation.source: static,gps_pps_enabled: trueRequires
libloragwbuilt withloragw_gps.c. If symbols are missing, Meshpoint logs once and continues without PPS.Type
Testing
Depends on
mainonce feat: RAK/SX1303 HAL guard, UART onboard GPS, and operator docs #65 lands.Closes