[ntp:questions] ntp & system without a rtc

folkert folkert at vanheusden.com
Sun May 12 19:26:18 UTC 2013


> >> How do you access the GPS receiver?  Via gpsd?
> >
> > Via gpsd indeed. But it that is a problem I can do other things first
> > before I start gpsd.
> 
> No, with gpsd it is easier because you can connect the gpsd
> port and ask it for the current time without having to worry
> about parsing the gps data, sharing the serial port with other
> applications, etc.
> 
> Just send a D command to gpsd, get and parse the reply and set the clock.

Yeah that's what I did in the end. Only 10 lines of code using libgpsd.

> Maybe a program to do that is already available on the net.

There's no fun in that :-)


Folkert van Heusden

-- 
www.TrustedTimestamping.com is a service that enables you to show that
at a certain point in time, you had access to a hash-value reflecting
the contents of a file (this file can be a word document, a jpeg
image, everything).
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


More information about the questions mailing list