stratum one on pi 4?

Gary E. Miller gem at rellim.com
Sat Sep 21 00:59:04 UTC 2019


Yo Paul!

On Fri, 20 Sep 2019 17:49:44 -0700
Paul Theodoropoulos via users <users at ntpsec.org> wrote:

> > Maybe try ubxtool in direct mode?  

Did not work?

> So far, I've discovered that one does _not_ want to declare the other
> uart overlays in /boot/config.txt - they just get taken over by our
> beloved systemd as serial devices. So all that's needed in config.txt
> is exactly what's needed on the rpi 3 -
> 
> enable_uart=1
> init_uart_baud=115200
> dtoverlay=pps-gpio,gpiopin=4
> dtoverlay=pi3-disable-bt
> dtoverlay=pi3-miniuart-bt

Good to know.

> But, still no PPS - at least not that ntpsec can see.

Did you try gpsd?

>     root@ C-NTPsec: ~ # ppstest /dev/pps0
>     trying PPS source "/dev/pps0"
>     found PPS source "/dev/pps0"
>     ok, found 1 source(s), now start fetching data...
>     source 0 - assert 1569025998.999693563, sequence: 70 - clear
>     0.000000000, sequence: 0
>     source 0 - assert 1569025999.999693151, sequence: 71 - clear
>     0.000000000, sequence: 0
>     source 0 - assert 1569026000.999692590, sequence: 72 - clear
>     0.000000000, sequence: 0

That looks good.  That is all gpsd needs.

>     root@ C-NTPsec: ~ # ntpshmmon
>     ntpshmmon: version 3.19-dev

Ah, so you are using gpsd.  What was your command line?

Easy check:
	pstree -paul | fgrep gpsd


> root@ C-NTPsec: # cat /etc/default/gpsd
> START_DAEMON="true"
> DEVICES="/dev/gpsd0"
> GPSD_OPTIONS="-r -P /var/run/gpsd.pid"

Oh, not good.  You forgot "-n /dev/pps0".

> root@ C-NTPsec: ~ # ps -ecf|grep [g]psd
> nobody______ 1039________ 1 TS____ 29 17:37 ?______________ 00:00:01
> /usr/local/sbin/gpsd -r -P /var/run/gpsd.pid /dev/gpsd0

Yup, missing /dev/pps0.

>     root@ C-NTPsec: /etc/default # gpsd -V
>     gpsd: 3.19-dev (revision dev-3.19a-770-gde7a1c4c)

3.19 has been released.  3.19.1~dev is the current git.

> I have that nagging feeling that I'm missing some trivial little
> thing (as usual).

Or two.  "-n", "/dev/pps0".

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20190920/85c59945/attachment.bin>


More information about the users mailing list