9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Sape Mullender <sape@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] /n/gps/time ?
Date: Fri,  6 Apr 2007 16:41:02 -0400	[thread overview]
Message-ID: <5d4f27980009c26d46e274b004371bbb@plan9.bell-labs.com> (raw)
In-Reply-To: <20070406202203.GA29531@pestilenz.org>

> 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



      reply	other threads:[~2007-04-06 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-06 20:22 Matthias Bauer
2007-04-06 20:41 ` Sape Mullender [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d4f27980009c26d46e274b004371bbb@plan9.bell-labs.com \
    --to=sape@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).