Files
vanlink/gps/77-modem-gps.rules
Andreas WredeandClaude Fable 5 8d5415f326 gps: modem GNSS -> gpsd -> OwnTracks/MQTT publisher
EC25-AF GNSS wiring (udev hotplug into gpsd) plus van-gps-owntracks, a
port of the wayback-era gps_to_owntracks.py: apt-only deps (python3-gps
instead of pip-only gpsdclient, paho 2.x callback API), broker secrets
moved out of the code into /etc/van-gps/config.json (0600, seeded from
a sanitized example), gpsd host now localhost. client_id is vanq-wan —
a legacy client still holds vanq on the broker and shared IDs get
kicked in a connect/disconnect loop. Exit-on-disconnect + systemd
Restart=always is the reconnect logic.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 22:03:40 -04:00

6 lines
532 B
Plaintext

# Quectel EC25-AF GNSS NMEA port (USB interface 01): hand it to gpsd on hotplug
# via gpsd's own gpsdctl@ mechanism (same pattern as its 60-gpsd.rules) and give
# it a stable name. NMEA only streams while the GNSS engine is on — enabled
# persistently in modem NV via AT+QGPSCFG="autogps",1 (one-time; see README).
ACTION=="add", SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="2c7c", ENV{ID_MODEL_ID}=="0125", ENV{ID_USB_INTERFACE_NUM}=="01", SYMLINK+="modem-gps", GROUP="dialout", TAG+="systemd", ENV{SYSTEMD_WANTS}+="gpsdctl@%k.service"