This series adds support for substantial new features. 1. Using a 1-PPS signal from a GPS in order to become a Grand Master from a high quality, globally traceable time source.
2. Using a heterogeneous group of PHC cards wired together via their auxiliary pins to form a Transparent Clock whose ports are synchronized in hardware. 3. Unlocking many testing scenarios with PHC cards synchronized in hardware. Credit for the original ts2phc program goes to Balint Ferencz. This series is a further development of his work. There a couple of TODOs outstanding, but the code is already quite usable. Richard Cochran (5): Introduce the ts2phc program. ts2phc: Support using a PHC as the master clock. Introduce a leap second table. ts2phc: Support using a GPS radio as the master clock. Add documentation for the ts2phc program. .gitignore | 1 + config.c | 17 ++ configs/ts2phc-TC.cfg | 27 +++ configs/ts2phc-generic.cfg | 18 ++ lstab.c | 206 ++++++++++++++++++ lstab.h | 64 ++++++ makefile | 11 +- nmea.c | 202 ++++++++++++++++++ nmea.h | 44 ++++ serial.c | 96 +++++++++ serial.h | 19 ++ sock.c | 58 +++++ sock.h | 17 ++ ts2phc.8 | 217 +++++++++++++++++++ ts2phc.c | 209 ++++++++++++++++++ ts2phc_generic_master.c | 63 ++++++ ts2phc_generic_master.h | 14 ++ ts2phc_master.c | 38 ++++ ts2phc_master.h | 52 +++++ ts2phc_master_private.h | 20 ++ ts2phc_nmea_master.c | 227 ++++++++++++++++++++ ts2phc_nmea_master.h | 13 ++ ts2phc_phc_master.c | 113 ++++++++++ ts2phc_phc_master.h | 14 ++ ts2phc_slave.c | 425 +++++++++++++++++++++++++++++++++++++ ts2phc_slave.h | 20 ++ 26 files changed, 2202 insertions(+), 3 deletions(-) create mode 100644 configs/ts2phc-TC.cfg create mode 100644 configs/ts2phc-generic.cfg create mode 100644 lstab.c create mode 100644 lstab.h create mode 100644 nmea.c create mode 100644 nmea.h create mode 100644 serial.c create mode 100644 serial.h create mode 100644 sock.c create mode 100644 sock.h create mode 100644 ts2phc.8 create mode 100644 ts2phc.c create mode 100644 ts2phc_generic_master.c create mode 100644 ts2phc_generic_master.h create mode 100644 ts2phc_master.c create mode 100644 ts2phc_master.h create mode 100644 ts2phc_master_private.h create mode 100644 ts2phc_nmea_master.c create mode 100644 ts2phc_nmea_master.h create mode 100644 ts2phc_phc_master.c create mode 100644 ts2phc_phc_master.h create mode 100644 ts2phc_slave.c create mode 100644 ts2phc_slave.h -- 2.20.1 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel