Microsecond accurate NTP with a Raspberry Pi and PPS GPS(2021)

10 points by juliethefoxcoon


FRIGN

It's a bit of a shame that while the original post is obviously fully hand-written, the updated post is apparently AI generated and contains verbose clanker code examples.

Overall the topic is very interesting, though.

gerikson

Updated with new tech: https://lobste.rs/s/trap9p/from_milliseconds_26_nanoseconds_how_20

bediger4000

I put 2 GPS receivers, a $12 GT-U7 and a $120 NEO-M8T, on my home network using his original article last summer. Every Linux host on my home network synched to within 1 millisecond of the NEO-M8T, and probably within 300 microseconds. The Raspberry Pi's that had the GPS receivers on them claimed to synch to within 100 nanoseconds of the GPS receivers.

I don't know much about GPS, but the two GPS receivers would decide to use different sets of satellites, even though they both had the same view of the eastern horizon.

ag

Interesting. Is the next step to then use the Pi as your NTP in your network and configure all devices to use it as the authoritative NTP server? Wouldn't the error of that device-to-pi handshake be larger than the nanosecond precision anyway?

ysun

I have my instance running here, was a fun project

angusg

The dream would be to have a Pi as a time source for all the "stupid" clocks in my house, like the microwave and oven... Then maybe they wouldn't constantly drift!