Timing references (PTP, GPS, etc.)

At the recent RetroNetConf, roh sparked some interested about precise timing.
Good timing is important for many of our topics of interest, including mobile networks, ISDN (and other synchronous) protocols, audio, broadcast and ham radio applications.

PTP has gotten more mainstream lately, with many popular platforms gaining support for accurate timing.
GPS modules with high-precision PPS outputs have also appeared on the market.
Even CSAC’s have gotten attainable (even if very much not affordable yet).

It would be very helpful to combine some of these things as open-source hardware.
Having things like a open-source PTPDO with configurable output frequency (similar to the popular Leo Bodnar GPSDO, but with PTP instead) would be a very useful device.

This thread should serve as a discussion ground for all things timing-related, I would like to invite all sorts of weird & wonderful ideas on how to get good & accurate timing.

3 Likes

tbh the only reasonable way is a pi CM5(or 4) + gpsdo, and for the other side TI LMK series jitter cleaner + something else, maybe lmx2492/2592/2820 for straigth rf clocks, or something a smaller. I considered driving the (r)gmii interface to a phy with a pi pico or using one of the ptp capable mcus (or rather “big” crossover mcus), but considering the cost of a ptp transparent switch (~200-300€ on the lower end) or a better timing gpsdo with less jitter (zed-f9t) I don’t think it’s worth spending too much time trying to replace the the pi cm side, in particular because its long term availability is pretty good and it does proper phy timestamping. And it can run some other stuff while doing ptp, like a whole o5gs setup… I can’t recommed the ublox neo 6 clones, by the way, m8 works much better and can do glonass and galileo as well. (pic related, yes, the pi cm5 carrier silkscreen is completely wrong and this is really the right PPS pin for the phy)

1 Like

Just not to omit anything, the Time Appliances Project - OpenCompute led to at least some designs that are worth a look, the big beefy time servers not so much and the Time Card with the atomic clock is a bit too expensive, but the are unfinished/half-finished semi open source designs for rpi hats and other stuff: Incubation-Projects/Hardware at master · Time-Appliances-Project/Incubation-Projects · GitHub

The most interesting part is the ppsdo and the switchberry, Incubation-Projects/Hardware/Switchberry at master · Time-Appliances-Project/Incubation-Projects · GitHub which could maybe be as expensive/cheap as a IES3110-8TF-R switch, but slightly more open source.