[LinuxPPS] Struggling w/ PPS

Dave Hart hart at ntp.org
Thu Mar 1 20:42:39 CET 2012


On Thu, Mar 1, 2012 at 19:37, Dave Hart <hart at ntp.org> wrote:
> You don't mention the version of ntpd in use, but recent ones will
> whinge to syslog if NMEA flag1 1 is set and PPSAPI fails:
>
>                        msyslog(LOG_WARNING,
>                                "%s flag1 1 but PPSAPI fails",
>                                refnumtoa(&peer->srcadr));

Actually that code is under #ifdef HAVE_PPSAPI, so it is compiled out
if your ntpd was built without access to timepps.h.  Stick with the
PPS driver test to infer if your binary has PPSAPI, or just rebuild
ntpd from source (it's easy enough, particularly with recent 4.2.7
using configure --prefix=/ you should find make install overwrites the
installed binaries in the correct locations avoiding any need to
customize init scripts).  If you rebuild from source, check the
config.h that is generated to HAVE_PPSAPI to ensure your timepps.h was
detected.

Cheers,
Dave Hart




More information about the discussions mailing list