ntpsec-rs-loggps 0.3.50

NTP GPS logger — forensic Rust reconstruction of ntploggps
ntpsec-rs-loggps-0.3.50 is not a library.

ntpsec-rs-loggps

crates.io Documentation License

ntploggps-rs — GPS reference clock logging daemon for the ntpsec-rs workspace. Reads data from GPS receivers (via gpsd or serial devices) and continuously logs time, position, and satellite information for post-processing and clock stability analysis.

Equivalent to NTPsec's ntploggps (Python, ~8K).

Part of the ntpsec-rs workspace — a forensic Rust reconstruction of NTPsec. v0.3.48.


Overview

GPS reference clocks provide the highest-accuracy time source for NTP deployments. The ntploggps-rs daemon connects to a GPS data source — either a gpsd daemon running on the network or a directly attached serial GPS device — and records timestamped observations for:

  • Clock stability analysis — correlate GPS time against system time over long intervals
  • Position logging — record receiver location for mobile or field deployments
  • Satellite visibility — track which satellites are in view and providing fixes
  • Post-processing — analyze timing jitter and accuracy of the GPS reference

The daemon runs as a persistent service, appending to the log file every poll interval.

Oracle

ntpsec ntpclients/ntploggps.py (Python, 8K)

Usage

Basic usage (default gpsd source)

ntploggps-rs

Connects to gpsd://localhost and logs data to /var/log/ntpstats/gpsd every 10 seconds.

Specify a custom GPS source

ntploggps-rs gpsd://192.168.1.100:2947

Connects to a remote gpsd instance.

Custom output path

sudo ntploggps-rs -o /var/log/ntpstats/gps-observations

Custom poll interval

ntploggps-rs -i 30

Logs GPS data every 30 seconds instead of the default 10.

Command-line options

Option Description Default
source GPS source (gpsd://host or serial device path) gpsd://localhost
-o, --output Output file path /var/log/ntpstats/gpsd
-i, --interval Poll interval in seconds 10

Related Crates

All crates in the ntpsec-rs workspace on crates.io:

GitHub Repository

https://github.com/infinityabundance/ntpsec-rs