Re: [chrony-users] Synchronizing clock with GPS with PPS |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: "chrony-users@xxxxxxxxxxxxxxxxxxxx" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [chrony-users] Synchronizing clock with GPS with PPS
- From: Ryan Govostes <rgovostes@xxxxxxxx>
- Date: Wed, 16 Sep 2020 01:06:44 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=whoi.edu; dmarc=pass action=none header.from=whoi.edu; dkim=pass header.d=whoi.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LGxtkVK3EZWLyDCD6T7My2D6Tk8Whrv3SYHH858MCJU=; b=N/k4ziFv7gOu3LeVtYYQ1A8k5AWlrW9SaxVVj8pBKw6J3Ggkhn6rKJSapEVeyJlXXQN0PjV6KddG2DXTNIv/xe+yWZBcMljjIYZL1CZjtStFonylLo7mvlTFY+ff8LehXlmQNzVsBrSEYnk7/H68SAqlMxb5KWmLk+tu+JwZjUpr7qKX1qz/sMKpsoypHDxdehRSoo0zyW6/9OZWNPoxvZP0qpyZMvIkhlafZhfX3qiIwKDsGzAdpMWc8nuPw1kpKhRYeHzlJG+lNZP25z6c04O+O3nXI4wgS3dZsOWVya3S6bQqb4HWnvT7wskE18DQduva46EVVh0RPN8vFBJwBw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UBw25baioViZ4hOxL+RG09q6a0rs4LwjtvgHw8bq+YkvvqmglaI9rSVROYHDRTV0appBoBF5cHGWQap281jokUM24I5QZ9dLbPemm4GwNV0k4XvKnCr4orjEyvg1oN14JrS5rN4oq0MVEp6k5M/k0PxzI0dahmpN3t4iE3W2mtNX1o5201VR9Ozgmq8N8Ps+WRvUKLdPs26zwxemIiWS9U+So1y0YqPrStrDMrMNj0OBoIE5OO0g4BStaDxUQk33NgyqjIg5S1z3qa1XIq2kzvxtsBDWXRaETEzNYX1N6P01nK1jk6Aji3cvg8YxGDOHFI5zWjtoKuQJxKh9cIJ8Hg==
- Authentication-results: chrony.tuxfamily.org; dkim=none (message not signed) header.d=none;chrony.tuxfamily.org; dmarc=none action=none header.from=whoi.edu;
- Cc: "hmurray@xxxxxxxxxxxxxxx" <hmurray@xxxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whoi.onmicrosoft.com; s=selector2-whoi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LGxtkVK3EZWLyDCD6T7My2D6Tk8Whrv3SYHH858MCJU=; b=UVdZCIZjb7OkzWDnciQJYSj1cZu3d8/dVJ4QWJOXYIA8lW68e8EHyurZExi9uVf+QVmt7iPgwSi+9i6pWmgS0w+uHK4GIhIqQHFFoqGrmQok+mMNFAjErRNoJtAqzdM0P/uDrKTBhss27g4y5cf4Yv8yUFSIRo6N/m01Sp5eKBQ=
- Thread-index: AQHWi8U7Ouo3S+3B9Ei6tlZYbksD7Klqc72A
- Thread-topic: [chrony-users] Synchronizing clock with GPS with PPS
Just as a side note here, I am on /dev/ttyAMA1 because the Raspberry Pi 4 has additional UARTs that can be configured with other device tree overlays.
> On Sep 15, 2020, at 9:02 PM, Hal Murray <hmurray@xxxxxxxxxxxxxxx> wrote:
>
>> But then I do not use something like a Rasberry.
>
> On a Pi, the built in serial port is /dev/ttyAMA0
> It doesn't have any pins for the modem control signals.
> At least with the typical setup.
>
> On a Pi and similar SoC chips, there are not enough pins for all the potential
> uses. There is a layer of muxing between the pins and the built in I/O
> devices. The normal setup assigns lots of pins to GPIO. With some work, you
> could probably activate the modem control signals. I think device-tree is the
> buzz word.
>
> On a Pi, the usual way is to turn one of the GPIO pins into a PPS. gpsd
> normally sets up a /dev/pps<n> to go with a serial port. There should be a
> way to tell GPSD to use /dev/pps0 rather than set up a new one. I don't know
> how to do that, but that's what you should be looking for what scanning the
> gpsd documentation.
From the brief flamewar that seems to have ensued from my asking the question, such a feature would be implemented over the maintainer’s dead body… A simple symlink of /dev/pps1 to the one you want it to use seems to work, though it is a clearly a hack.
>
> If gpsd is setting up /dev/pps1, it won't work. That internal signal doesn't
> go anywhere.
>
> -------------
>
> My notes from setting up a Pi, non gpsd:
>
> # PPS via gpio
> # https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.satsignal.eu%2Fntp%2FRaspberry-Pi-NTP.html%23easy&data=02%7C01%7Crgovostes%40whoi.edu%7C39146838a40e4910e20208d859dc39b0%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637358150270275800&sdata=yKWT9t33FvblBfKuufUPTCIL8aoqVxFvDmpS%2F6jqTeE%3D&reserved=0
> vi /boot/cmdline.txt
> remove the chunk(s) with ttyAMA0
> vi /boot/config.txt
> add new line: dtoverlay=pps-gpio,gpiopin=18
> pin 4 on Adafruit GPS HAT
> vi /etc/modules
> add new line: pps-gpio
> vi /etc/inittab
> run raspi-config Interfacing-Options/Serial
> comment out getty line for ttyAMA0 (at bottom)
>
> The GPIO pin numbering is different from the chip/hardware pin numbering.
>
> When this gets sorted out, somebody should write a HOWTO for using chrony and
> gpsd on a Pi.
>
>
> --
> These are my opinions. I hate spam.
>
>
>
>
> --
> To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> with "unsubscribe" in the subject.
> For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
>