9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /n/gps/time ?
@ 2007-04-06 20:22 Matthias Bauer
  2007-04-06 20:41 ` Sape Mullender
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Bauer @ 2007-04-06 20:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,
using gpsfs i get the correct position
from an NMEA gps device (Haicom 204); but
 aux/timesync -G 
resets the clock to 19:xx 31 December 1969.
The valid nanoseconds value in 
 /n/gps/time
is a 10-digit number. Converted to
seconds it's about 20 seconds after the
start of the epoch. 
All other time values are zero.
Anyone had the same problem?

Best regards,

Matthias


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] /n/gps/time ?
  2007-04-06 20:22 [9fans] /n/gps/time ? Matthias Bauer
@ 2007-04-06 20:41 ` Sape Mullender
  0 siblings, 0 replies; 2+ messages in thread
From: Sape Mullender @ 2007-04-06 20:41 UTC (permalink / raw)
  To: 9fans

> Hi,
> using gpsfs i get the correct position
> from an NMEA gps device (Haicom 204); but
>  aux/timesync -G 
> resets the clock to 19:xx 31 December 1969.
> The valid nanoseconds value in 
>  /n/gps/time
> is a 10-digit number. Converted to
> seconds it's about 20 seconds after the
> start of the epoch. 
> All other time values are zero.
> Anyone had the same problem?
> 
> Best regards,
> 
> Matthias

Why not
	cat /n/gps/time
This prints three numbers, the time in seconds since the epoch,
the GPS time in nanoseconds since the epoch and the local time
in nanoseconds since the epoch (the local time at which the GPS
time was received).  The difference between the 2nd and 3rd number
measures how far your local clock is off.

Without running timesync, try to see if the numbers make sense.

	Sape



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-06 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 20:22 [9fans] /n/gps/time ? Matthias Bauer
2007-04-06 20:41 ` Sape Mullender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).