GPS as a source of time like NTP

Daniel Willmann daniel at
Sun Jul 27 04:27:52 CEST 2008

On Sun, 27 Jul 2008 09:28:19 +0800
Joerg Reisenweber <joerg at> wrote:

> Am So  27. Juli 2008 schrieb Daniel Willmann:
> > On Sat, 26 Jul 2008 19:42:43 -0500
> > "Dale Schumacher" <dale.schumacher at> wrote:
> > 
> > > Is the GPS time used as a source for the system, like an NTP
> > > server?
> > 
> > There's no code for it yet, but yeah, that is being taken into
> > consideration. Basically I want to send a TimeChanged signal once
> > after I got the valid time from GPS (and not every second as gypsy
> > specifies as that is just wasting resources - although that
> > probably matters if we really route accelerometer through dbus...)
> > and whenever a program asks for it via a method.
> > Then you would have a program listening on dbus for the TimeChanged
> > signal and set the system clock (and rtc) according to that.

> please consider using ntpd. There should be standard "modules" for
> using GPS for a timeserver.

Just had a look at the gpsd sources. There's a gpsd/refclock_nmea.c in
there. I guess it should be pretty easy (at least doable :-) to make a
refclock_dbus/gypsy.c and listen to the specific dbus signals.

Daniel Willmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : 

More information about the devel mailing list