Subject: PPS code
To: Bill Studenmund <skippy@macro.Stanford.EDU>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: current-users
Date: 03/31/1999 12:47:22
>Is anyone familiar with the PPS (Pule Per Second on the serial port)
>timekeeping stuff? I want to play with it a little.

Hi Bill,

The `usual suspect client is NTP. If I'm not misremembering, ntpd
(ntpv4) or xntpd (ntp v3) require you to configure a local `refclock'
(atomic or maybe GPS clock) before it will use the PPS clock.

I beleive someone emailed a trivial test app, which assumed two NetBSD
apps which used usleep() and ioctls to waggle the modem control lines
to generate a fake PPS signal. (it wouldnt pass the ntp filters but is
enough for testing).  That was just around the time the first ppsapi
code got committed.

I beleive the PPSAPI Internet-Draft includes has a skeleton
application which enables and samples a pps signal.  If it's not in
there, probably got it from Poul-Henning Kamp; I'll look.  

There's also a newer draft of the API, which fixes some security bugs
I pointed out with the existing draft and the code in the NetBSD tree.
I have some sample fixes; PHK has implemented the newer API, tested
them thoroughly, and they're in the latest FreeBSD 4.x codebase.

If you have time to implement/test/incorporate this stuff over the
next week, go for it.  Or contact me and we'll sort it out.