Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2019 11:37:59 +0930
From:      "O'Connor, Daniel" <darius@dons.net.au>
To:        Ian Lepore <ian@freebsd.org>
Cc:        "usb@freebsd.org" <usb@FreeBSD.org>, "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: Is it a good idea to use a usb-serial adapter for PPS input?  Yes, it is.
Message-ID:  <9D2ACA87-C2DB-40D9-9638-B0E215A4EEC0@dons.net.au>
In-Reply-To: <9E142F1A-5E8C-4410-91F5-7C80B3D0A15B@dons.net.au>
References:  <f1d765814f722fb2c99c9870b3cc2607b4eca2d7.camel@freebsd.org> <B9EFA4D4-C1AD-4181-B421-F6BD53434FA5@dons.net.au> <bfd784f6ac9c939dbe6a243336bc3b6eab02d4f5.camel@freebsd.org> <61B1AAF3-40F6-47BC-8F05-7491C13BF288@dons.net.au> <9E142F1A-5E8C-4410-91F5-7C80B3D0A15B@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 19 Aug 2019, at 17:09, O'Connor, Daniel <darius@dons.net.au> wrote:
> I am going to try this diff but buildkernel is going to take a =
while...

Was a lot faster cross building, so I installed it this morning:
[gps 1:56] ~ >uname -a
FreeBSD gps 13.0-CURRENT FreeBSD 13.0-CURRENT #1 =
41a4c010326-c262109(master)-dirty: Tue Aug 20 11:04:57 ACST 2019     =
darius@midget.dons.net.au:/usr/obj/arm-src/arm.armv7/sys/GENERIC  arm

[gps 1:57] ~ >dmesg|grep pps
am335x_dmtpps0: <AM335x PPS-Capture DMTimer4> mem 0x48044000-0x480443ff =
irq 30 on simplebus0
[gps 1:58] ~ >ll /dev/pps0 /dev/dmtpps
crw-rw----  1 root  ntpd   0x41 20 Aug 01:09 /dev/dmtpps
lrwxr-xr-x  1 root  wheel     6 20 Aug 01:09 /dev/pps0 -> dmtpps

[gps 1:58] ~ >cat /etc/ntp.conf
server 10.0.2.1 iburst prefer

server 127.127.22.0 minpoll 4 maxpoll 4
fudge  127.127.22.0 refid PPS

[gps 1:59] ~ >ntpq -nc pe
     remote           refid      st t when poll reach   delay   offset  =
jitter
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
*10.0.2.1        214.52.129.40    3 u   64   64   37    0.349   -0.631   =
0.299
o127.127.22.0    .PPS.            0 l   13   16  377    0.000    1.000   =
0.106

It certainly seems happier with the PPS than it was before.

Next up would be to use the NMEA coming from the GPS engine for time =
instead of using the LAN host so it's self contained.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D2ACA87-C2DB-40D9-9638-B0E215A4EEC0>