Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #10494 > unrolled thread

Raspberry Pi clock trivia

Started byHils <hils@saynotospam.net>
First post2016-02-01 23:26 +0000
Last post2016-02-06 17:29 +0000
Articles 12 on this page of 32 — 15 participants

Back to article view | Back to comp.sys.raspberry-pi


Contents

  Raspberry Pi clock trivia Hils <hils@saynotospam.net> - 2016-02-01 23:26 +0000
    Re: Raspberry Pi clock trivia Adrian Caspersz <email@here.invalid> - 2016-02-01 23:48 +0000
    Re: Raspberry Pi clock trivia Alister <Alister.ware@ntlworld.com> - 2016-02-02 10:16 +0000
    Re: Raspberry Pi clock trivia andre <ahr@blabla.be> - 2016-02-02 14:27 +0100
      Re: Raspberry Pi clock trivia The Natural Philosopher <tnp@invalid.invalid> - 2016-02-02 13:48 +0000
    Re: Raspberry Pi clock trivia "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2016-02-02 16:15 +0000
      Re: Raspberry Pi clock trivia Hils <hils@saynotospam.net> - 2016-02-03 07:01 +0000
        Re: Raspberry Pi clock trivia Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-03 08:49 +0000
          Re: Raspberry Pi clock trivia "Kerr Mudd-John" <admin@127.0.0.1> - 2016-02-03 11:50 +0000
            Re: Raspberry Pi clock trivia Moi <moi@here.now> - 2016-02-03 15:21 +0000
              Re: Raspberry Pi clock trivia Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-03 15:47 +0000
                Re: Raspberry Pi clock trivia James Harris <james.harris.1@gmail.com> - 2016-02-04 11:26 +0000
                  Re: Raspberry Pi clock trivia Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-04 12:03 +0000
                    Re: Raspberry Pi clock trivia James Harris <james.harris.1@gmail.com> - 2016-02-04 12:35 +0000
                    Re: Raspberry Pi clock trivia mm0fmf <none@mailinator.com> - 2016-02-04 18:11 +0000
        Re: Raspberry Pi clock trivia rickman <gnuarm@gmail.com> - 2016-02-03 08:59 -0500
          Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-03 14:51 +0000
            Re: Raspberry Pi clock trivia rickman <gnuarm@gmail.com> - 2016-02-03 10:33 -0500
              Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-03 19:25 +0000
                Re: Raspberry Pi clock trivia rickman <gnuarm@gmail.com> - 2016-02-03 20:48 -0500
                  Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-04 14:18 +0000
                  Re: Raspberry Pi clock trivia Rob <nomail@example.com> - 2016-02-04 15:30 +0000
              Re: Raspberry Pi clock trivia Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-03 19:59 -0500
                Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-04 14:31 +0000
                  Re: Raspberry Pi clock trivia Rob <nomail@example.com> - 2016-02-04 15:25 +0000
                    Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-04 15:47 +0000
                      Re: Raspberry Pi clock trivia Rob <nomail@example.com> - 2016-02-04 16:02 +0000
                      Re: Raspberry Pi clock trivia rickman <gnuarm@gmail.com> - 2016-02-04 11:23 -0500
                        Re: Raspberry Pi clock trivia Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-04 22:39 -0500
        Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-03 14:50 +0000
          Re: Raspberry Pi clock trivia Hils <hils@saynotospam.net> - 2016-02-06 16:31 +0000
            Re: Raspberry Pi clock trivia David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-06 17:29 +0000

Page 2 of 2 — ← Prev page 1 [2]


#10530

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-04 14:18 +0000
Message-ID<n8vmdv$gfg$1@dont-email.me>
In reply to#10526
On 04/02/2016 01:48, rickman wrote:
[]
> I have worked with GPS PPS signals and they are seldom as accurate as
> theory allows.  There are many realities in low end units so that the
> actual accuracy is in the 10's or even 100's of us.  I can get that from
> a WWVB signal at 60 kHz.
>
> I guess the real question is, can a rPi make any use of accuracy better
> than a ms or so?  Both signals will have excellent long term accuracy.
> Both signals provide time of day and calendar, etc.  The WWVB type
> signal may be hard to receive in some areas while the GPS signal
> requires an outdoor antenna in some cases.

I've been using typically uBlox units, and they are well within a 
microsecond, typically within 100 ns, two to three orders of magnitude 
better than you suggest.  You can see the effect of poor GPS antenna 
location on some of my flock here:

   http://www.satsignal.eu/mrtg/performance_ntp.php

whereas the devices with well situated antennas don't have the loss of 
sync.  By the way, these RPi cards all have indoor antennas.

As you say, both GPS and WWVB have reception issues.  The RPi makes a 
nice NTP server for quite a large network, whatever the source.

   http://www.satsignal.eu/ntp/HAB-GPSPI+-ASSY-4-432x288.jpg

-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [next] | [standalone]


#10533

FromRob <nomail@example.com>
Date2016-02-04 15:30 +0000
Message-ID<slrnnb6rk7.ja7.nomail@xs9.xs4all.nl>
In reply to#10526
rickman <gnuarm@gmail.com> wrote:
> I have worked with GPS PPS signals and they are seldom as accurate as 
> theory allows.  There are many realities in low end units so that the 
> actual accuracy is in the 10's or even 100's of us.  I can get that from 
> a WWVB signal at 60 kHz.

I have both a GPS and a DCF77 (similar to WWVB) receiver connected to
the same system and in the past I have made plots of their relative
time, where the day/night propagation differences could easily be seen.
The jitter on the DCF77 signal during night was about 200us.
(the receiver in use only demodulates the ASK, not PSK)

[toc] | [prev] | [next] | [standalone]


#10525

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2016-02-03 19:59 -0500
Message-ID<l285bb1e8q8ahb0inb41sm7q2kqji2cdhm@4ax.com>
In reply to#10517
On Wed, 3 Feb 2016 10:33:11 -0500, rickman <gnuarm@gmail.com> declaimed the
following:

>On 2/3/2016 9:51 AM, David Taylor wrote:
>> On 03/02/2016 13:59, rickman wrote:
>> []
>>> Or something like a WWVB receiver.  Very simple, low power and just as
>>> accurate.
>>
>> Far less accurate than GPS/PPS - most of the time!
>
>????  How is that?

	The typical GPS time server is, besides computing a lat/long/alt, also
computing the time... One reason at least four birds are needed to get a
good fix, as the receiver time is back-fit to the propagation delays of the
multiple birds. That is: "based on these three birds I think I'm standing
here; if I am here, then the time delay from the fourth should be /d/...
It's not, so my clock must be off... Adjust the clock and recompute the
location, check time delay..."

	WWVB is a single time signal, with somewhat uncertain propagation
delays (if really bad, one might be getting the long-path signal -- around
the back side of the earth -- rather than the short "direct" path [which
may still be different "bounces"])
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [next] | [standalone]


#10531

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-04 14:31 +0000
Message-ID<n8vn5u$jn5$1@dont-email.me>
In reply to#10525
On 04/02/2016 00:59, Dennis Lee Bieber wrote:
[]
> 	The typical GPS time server is, besides computing a lat/long/alt, also
> computing the time... One reason at least four birds are needed to get a
> good fix, as the receiver time is back-fit to the propagation delays of the
> multiple birds. That is: "based on these three birds I think I'm standing
> here; if I am here, then the time delay from the fourth should be /d/...
> It's not, so my clock must be off... Adjust the clock and recompute the
> location, check time delay..."
[]

.. and if the receiver location is fixed, and has been determined by the 
GPS, even fewer satellites are needed just for timekeeping.  Some GPS 
receivers have this operational mode - initial location determination, 
followed by optimal timekeeping reception.
-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [next] | [standalone]


#10532

FromRob <nomail@example.com>
Date2016-02-04 15:25 +0000
Message-ID<slrnnb6rbg.ja7.nomail@xs9.xs4all.nl>
In reply to#10531
David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
> On 04/02/2016 00:59, Dennis Lee Bieber wrote:
> []
>> 	The typical GPS time server is, besides computing a lat/long/alt, also
>> computing the time... One reason at least four birds are needed to get a
>> good fix, as the receiver time is back-fit to the propagation delays of the
>> multiple birds. That is: "based on these three birds I think I'm standing
>> here; if I am here, then the time delay from the fourth should be /d/...
>> It's not, so my clock must be off... Adjust the clock and recompute the
>> location, check time delay..."
> []
>
> .. and if the receiver location is fixed, and has been determined by the 
> GPS, even fewer satellites are needed just for timekeeping.  Some GPS 
> receivers have this operational mode - initial location determination, 
> followed by optimal timekeeping reception.

These are the old units.  In the old days, a GPS receiver could really
only receive a single satellite at a time, even when it had 6, 8 or 12
channels.  Those were multiplexed, in reality.

So to get the best time fix using those old GPSDO boxes, they first do
a "survey", i.e. they determine their position by averaging 200-2000
fixes.  Then they store that (some in RAM, some in EEPROM) and switch
to "single satellite mode" where they lock only their clock to a single
satellite, using the known distance from that satellite to the fixed
location.

The advantage is that they can concentrate on receiving a single
satellite, with better performance in those old receivers.  The
disadvantage is when one satellite provides wrong time (as happened
last week), they go completely haywire.  A receiver that always
receives 8-12 satellites in parallel can easily determine that one
satellite is faulty (because its reported time does not agree with
the time computed from the other satellites and the location), but
these old boxes cannot, and they will change their local clock to
agree with the faulty reference for the time period that satellite
is selected.

[toc] | [prev] | [next] | [standalone]


#10534

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-04 15:47 +0000
Message-ID<n8vrkr$6h2$1@dont-email.me>
In reply to#10532
On 04/02/2016 15:25, Rob wrote:
> David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
[]
>> .. and if the receiver location is fixed, and has been determined by the
>> GPS, even fewer satellites are needed just for timekeeping.  Some GPS
>> receivers have this operational mode - initial location determination,
>> followed by optimal timekeeping reception.
>
> These are the old units.  In the old days, a GPS receiver could really
> only receive a single satellite at a time, even when it had 6, 8 or 12
> channels.  Those were multiplexed, in reality.

Not only "old units" - even some of the latest u-blox receivers offer 
survey/fixed operation, for example:

 
https://www.u-blox.com/sites/default/files/products/documents/LEA-M8F_DataSheet_%28UBX-14001772%29.pdf

See para: 1.10.6.  Incidentally, its specification for accuracy is:

Time pulse accuracy

Clear sky ≤ 20 ns

Indoor ≤ 500 ns


-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [next] | [standalone]


#10535

FromRob <nomail@example.com>
Date2016-02-04 16:02 +0000
Message-ID<slrnnb6tg2.jsa.nomail@xs9.xs4all.nl>
In reply to#10534
David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
> On 04/02/2016 15:25, Rob wrote:
>> David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
> []
>>> .. and if the receiver location is fixed, and has been determined by the
>>> GPS, even fewer satellites are needed just for timekeeping.  Some GPS
>>> receivers have this operational mode - initial location determination,
>>> followed by optimal timekeeping reception.
>>
>> These are the old units.  In the old days, a GPS receiver could really
>> only receive a single satellite at a time, even when it had 6, 8 or 12
>> channels.  Those were multiplexed, in reality.
>
> Not only "old units" - even some of the latest u-blox receivers offer 
> survey/fixed operation, for example:

Actually survey/fixed is not the same as single-satellite operation.
I see this unit allows fixed mode with multiple satellites, or with
a single satellite.  In the old unites, that mode was preferable due
to receiver limitations, I expect that in these new receivers it is
only present for backward compatability, e.g. to operate in an environment
where single-satellite (1SV) operation has been defined.

Last week's incident (and it has happened before) showed that it is
a bit dangerous to do so.

[toc] | [prev] | [next] | [standalone]


#10536

Fromrickman <gnuarm@gmail.com>
Date2016-02-04 11:23 -0500
Message-ID<n8vtpd$f7j$1@dont-email.me>
In reply to#10534
On 2/4/2016 10:47 AM, David Taylor wrote:
> On 04/02/2016 15:25, Rob wrote:
>> David Taylor <david-taylor@blueyonder.co.uk.invalid> wrote:
> []
>>> .. and if the receiver location is fixed, and has been determined by the
>>> GPS, even fewer satellites are needed just for timekeeping.  Some GPS
>>> receivers have this operational mode - initial location determination,
>>> followed by optimal timekeeping reception.
>>
>> These are the old units.  In the old days, a GPS receiver could really
>> only receive a single satellite at a time, even when it had 6, 8 or 12
>> channels.  Those were multiplexed, in reality.
>
> Not only "old units" - even some of the latest u-blox receivers offer
> survey/fixed operation, for example:
>
>
> https://www.u-blox.com/sites/default/files/products/documents/LEA-M8F_DataSheet_%28UBX-14001772%29.pdf
>
>
> See para: 1.10.6.  Incidentally, its specification for accuracy is:
>
> Time pulse accuracy
>
> Clear sky ≤ 20 ns
>
> Indoor ≤ 500 ns

Don't believe the specs on units will be met all the time or even any of 
the time.  I was working for a military radio company and we evaluated 
uBlox and Fastrax units for a new product.  I believe it was the Fastrax 
unit that would not meet the spec for time to first fix.  This was not a 
constellation problem as it happened repeatedly over a couple of days 
and the rest of the setup was the same as was used with the uBlox 
device.  I see now they are the same company.  lol

My point is that the specs are under rather ideal conditions and are not 
always met.  There is also the issue of just what the spec is saying. 
Consider how they generate the PPS and explain to me where the above 20 
ns number comes from.  I'd be willing to be it is specifying the jitter 
in the timing pulse due to being clocked by a 50 MHz oscillator.  If 
that is true, every other source of error would have to be zero.

But then it appears my recollection is a bit out of date.  Our efforts 
were done nearly 10 years ago and I see GPS receivers have improved a 
lot.  The location accuracy is speced at 2 m CEP which is many times 
better than the units we evaluated.  Location and timing accuracy go 
hand in hand.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#10546

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2016-02-04 22:39 -0500
Message-ID<9m58bb980rfed3etgrf07btnluqgi9e2io@4ax.com>
In reply to#10536
On Thu, 4 Feb 2016 11:23:48 -0500, rickman <gnuarm@gmail.com> declaimed the
following:

>But then it appears my recollection is a bit out of date.  Our efforts 
>were done nearly 10 years ago and I see GPS receivers have improved a 
>lot.  The location accuracy is speced at 2 m CEP which is many times 
>better than the units we evaluated.  Location and timing accuracy go 
>hand in hand.

	Besides the discontinuation of Selective Availability, North America
(or, at least, the US) now has the Wide-Area Augmentation System (Europe
equivalent is EGNOS, as I recall)... WAAS is a pair of non-Navstar
satellites that transmit a set of "corrections" based on the Navstar
position errors computed at a number of fixed ground stations... Sort of a
differential GPS for the continent. (Differential GPS makes use of "local"
ground transmitters which broadcast on a different frequency -- requiring
an adjunct receiver -- giving the local correction between their surveyed
position and a GPS fix. As I recall, most DGPS transmitters are located
near coastal ports, allowing more precise shipping).

	The newest receivers not only use Navstar, but GLONASS birds.

	Some of the top end receivers may also make use of both GPS frequencies
even if they can't decrypt the precise position signal -- since matching
the second frequency chips to the first allows for some estimation of
ionospheric effects. (I haven't kept up on this, but recall some hearsay
that the Navstar will be adding two more frequencies giving military GPS
four frequencies for ionospheric corrections and reducing the odds of being
jammed, and was going to open the current second frequency for civil
signals).
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [next] | [standalone]


#10514

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-03 14:50 +0000
Message-ID<n8t3tn$61n$1@dont-email.me>
In reply to#10508
On 03/02/2016 07:01, Hils wrote:
> I thought it was fairly typical, but thanks for the rigorous analysis. I
> happened to have the data, it seemed a shame to keep it to myself. I
> rather like the idea of getting the time from a GPS receiver.

These may help....

   http://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html

   http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [next] | [standalone]


#10552

FromHils <hils@saynotospam.net>
Date2016-02-06 16:31 +0000
Message-ID<n9574e$kll$1@gioia.aioe.org>
In reply to#10514
On 03/02/16 14:50, David Taylor wrote:
> On 03/02/2016 07:01, Hils wrote:
>> I rather like the idea of getting the time from a GPS receiver.
> 
> These may help....
> 
> http://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html
> 
> http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

I had your fine work partly in mind. :-)

It seems a shame to have such high quality time information in the air
around us and not use it.

[toc] | [prev] | [next] | [standalone]


#10553

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-06 17:29 +0000
Message-ID<n95ac7$fqr$1@dont-email.me>
In reply to#10552
On 06/02/2016 16:31, Hils wrote:
> On 03/02/16 14:50, David Taylor wrote:
>> On 03/02/2016 07:01, Hils wrote:
>>> I rather like the idea of getting the time from a GPS receiver.
>>
>> These may help....
>>
>> http://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html
>>
>> http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html
>
> I had your fine work partly in mind. :-)
>
> It seems a shame to have such high quality time information in the air
> around us and not use it.

Particularly when it no longer costs an arm and a leg!
Educational, too.

-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.sys.raspberry-pi


csiph-web