Skip to content

Enable GPS time sync for Station G2 repeater builds 🤖🤖#2255

Open
TerryFrench wants to merge 1 commit intomeshcore-dev:devfrom
TerryFrench:feature/station-g2-gps-repeater
Open

Enable GPS time sync for Station G2 repeater builds 🤖🤖#2255
TerryFrench wants to merge 1 commit intomeshcore-dev:devfrom
TerryFrench:feature/station-g2-gps-repeater

Conversation

@TerryFrench
Copy link
Copy Markdown

Summary

  • Add PERSISTANT_GPS=1 and ENV_SKIP_GPS_DETECT=1 build flags to [env:Station_G2_repeater] in variants/station_g2/platformio.ini
  • Ensures the GPS module (when physically connected) is active from boot and automatically syncs the RTC clock
  • Without these flags, cold-starting GPS modules miss the 1-second detection window at startup, causing gps_detected=false and hiding all GPS CLI commands

Details

The Station G2 has GPS pins defined and GPS code compiles in, but the boot-time detection gives the GPS only 1 second to output NMEA data. Cold-starting GPS modules miss this window. With these flags, GPS is assumed present and stays active, letting the existing MicroNMEALocationProvider sync the RTC automatically on fix (~30-90s) and re-sync every 30 minutes.

Relates to #1426

Change

Two build flags added to [env:Station_G2_repeater] in variants/station_g2/platformio.ini

Testing

Built and flashed to Station G2 with GPS module. Confirmed:

  • gps command shows on, active, no fix, 0 sats immediately after boot
  • gps on/gps off/gps sync commands all functional
  • Awaiting outdoor GPS fix test for time sync verification

🤖 Generated with Claude Code

Add PERSISTANT_GPS and ENV_SKIP_GPS_DETECT flags to the Station G2
repeater build so the GPS module (when physically connected) is active
from boot and automatically syncs the RTC clock.

Without these flags, GPS detection fails on cold-starting GPS modules
that need more than 1 second to begin outputting NMEA data, causing all
GPS CLI commands to be unavailable. The existing MicroNMEALocationProvider
already handles initial sync after fix acquisition and periodic re-sync
every 30 minutes - these flags just ensure it is enabled.

Relates to meshcore-dev#1426

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant