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

Uwe Klein uwe at klein-habertwedt.de
Tue May 17 21:20:34 UTC 2011


Rob wrote:
> 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.

Actually not.

I get _all_ nmea sentences of the system piped through one socket.
the main application munges all of them ( and the majority is AIS stuff).

So the easiest way is to just select the RMC messages and forward those
to ntp in some way.

uwe





More information about the questions mailing list