Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Nov 2016 21:44:11 +0100
From:      =?utf-8?Q?Peter_Ankerst=C3=A5l?= <peter@pean.org>
To:        Ian Lepore <ian@freebsd.org>
Cc:        "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: PPS input on GPIO pin RPI2.
Message-ID:  <E5F1DB25-1F0B-4FEB-BE48-F8181ABC25B6@pean.org>
In-Reply-To: <1479846679.1889.8.camel@freebsd.org>
References:  <56FCEE15.60109@pean.org> <1460061822.1091.314.camel@freebsd.org> <794E7B45-5512-4032-8CBE-7D2BD1533BD4@pean.org> <1479426298.59911.135.camel@freebsd.org> <E2942C0C-D3A6-4163-B794-81CBF98C415B@pean.org> <1479426521.59911.137.camel@freebsd.org> <0D888B68-3231-4611-83FA-47DCD1A75CA5@pean.org> <1479837907.12501.39.camel@freebsd.org> <3FE31F8E-CFDF-4C36-89F8-B90EB8AC2D8D@pean.org> <1479846679.1889.8.camel@freebsd.org>

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

--Apple-Mail=_73610912-0D67-4A8F-A993-B650D465BB7D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 22 Nov 2016, at 21:31, Ian Lepore <ian@freebsd.org> wrote:
>=20
> Cool!  I notice we lost the CC to the arm@ list somewhere along the
> line.  I've added it back for this reply, so that other folks can see
> how to get this all configured.
>=20
> For those following along... this setup uses a PPS to make the kernel
> clock very accurate, but also requires another (network-based) ntp =
peer
> to provide the time-of-day.  The minimum entries you need in ntp.conf
> for a configuration like this are:
>=20
>   server 127.127.22.0 prefer
>   fudge  127.127.22.0 stratum 0
>   server <any network server> iburst prefer
>=20
> Of particular importance is that the 'prefer' keyword is needed on the
> pps (127.127.22.0) server and any one of the network servers.
>=20
> For a pure GPS solution that doesn't require another network ntp =
server
> to number the seconds, the 'gpsd' port knows how to talk to most gps
> receivers via a serial connection.  That's about all I know about =
gpsd.
>=20

Actually ntpd knows how to interpet NMEA (including timestamps) output =
which is usually output on the serial interface of your GPS.

All you need to do is to hook up it to the serial interface of your =
machine running ntpd and link your serial device to /dev/pps1 for =
example.

and then have something like this in ntp.conf:
server 127.127.20.1 mode 17
fudge 127.127.20.1 time1 +0.140

the first line tells ntpd to look for NMEA on /dev/pps1 and some =
settings about baudrate and so on.=20
the second line is to compensate for the delay of the serial interface =
which you will have to figure out in some way.=20

More information about this here: =
http://support.ntp.org/bin/view/Support/ConfiguringNMEARefclocks



--Apple-Mail=_73610912-0D67-4A8F-A993-B650D465BB7D
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIL0TCCBeIw
ggPKoAMCAQICEGunin0K14jWUQr5WeTntOEwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmlj
YXRlIFNpZ25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4X
DTE1MTIxNjAxMDAwNVoXDTMwMTIxNjAxMDAwNVowdTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0
YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMw
IQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAL192vfDon2D9luC/dtbX64eG3XAtRmvmCSsu1d52DXsCR58zJQbCtB2/A5uFqNx
WacpXGGtTCRk9dEDBlmixEd8QiLkUfvHpJX/xKnmVkS6Iye8wUbYzMsDzgnpazlPg19dnSqfhM+C
evdfa89VLn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ECgdtAmSjeAc9tW6KfjSDcX/Shetyz8rNUPifAk+yG
xfT4Vii/IOFlKREpfs+krauccUMRn5sbQvmdcY41wudgD5bsiB5MEA3/9BnLrFUakDBoo6lBM/kN
qyLjJKij7ZUaUJcTOw8kWqqTaAQEkvqv19k2Jn8zIuuVVQH/tJDcAacF+CP5PmsbDp8u5mhV49EZ
cpp4k7YvrzM3gwITBgoKA1XJ/28Tq9jVv7xUYPUqZyRJzKpdOD0nmHhVmxI5YiAOplIv0XWeu4Ef
jnir1y9qNCGa9T9RnZ6FZckEPAYScILlyUtbHddCfek23uJmoABH/e+Sl7DSSGU6HUFrxTwwyxy4
Sz9Ea0qI5y5ZMj9chktSNcLyu9Voa9fF5USQE+tl0JWyK1g+eezX79FJg9umt1lSwAHGHhQ1VDqV
GyaJTn4esDMzkwrWGVI9Z92lyCVi48EXavRz4Q5ZvuLmPYc/nbqr4xmvEOY4z/VXV/TF4KCKmZkK
51F5gU5g1aFKaykqm7xI6hqOZ1l23qgYyXzR66S34z72zvjAP8kdZqJe3mbv+tP2QjWyTFVQX0/F
ow48y56gGv86cy3MRDGPVqE+hSyQiVaJNPy790oaw/X/c4mZZY05FsCEBAMatiBHIU2NPVXTz7d+
nLYocqw+JCnnGD9H7p1xti61TZT8aAAAAAAAAA==
--Apple-Mail=_73610912-0D67-4A8F-A993-B650D465BB7D--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5F1DB25-1F0B-4FEB-BE48-F8181ABC25B6>