[ntp:questions] ntpd preplug for detachable gps or testing

Rob nomail at example.com
Tue May 17 17:22:11 UTC 2011


Uwe Klein <uwe at klein-habertwedt.de> wrote:
> Hi,
>
> I needed to sync a box to gps/nmea.
>
> But GPS and all other incoming nmea messages pass
> via socket connection into the main app.
>
> So I wrote a "pre"plug for ntp that indirects the
> gps tty into a pty.
> i.e. the pty behaves like the tty ( with attached gps )
>
> nmea sentences are handed in via udp socket
> from either another app or via a helper script that
> opens and reads a "real" gps device when available.
>
> 	http://wiki.tcl.tk/28358
>
> uwe

The usual way of doing this is with the "gpsd" server.
It handles all your GPS devices and provides an API for
one or more applications that use the GPS data, plus a shared
memory interface to NTP for time sync.




More information about the questions mailing list