[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: [chrony-users] Synchronizing clock with GPS with PPS
- From: Ryan Govostes <rgovostes@xxxxxxxx>
- Date: Tue, 15 Sep 2020 14:30:51 +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=ivD2mbzqg2UXPUJDRgoubLqfNIC2dzS95iibTMMY95s=; b=BpjZFfUoM/6RVnia0rnYwZ8wGRp3r91BNLroOINZ4JlZ4Ebs/Vy7DxIG8hXtSSckx+H6zYaXlYXoA7yXc/rKxZT0+Dli7iNW/3iq1RW0GTiRXmGbwLqHDyrB4YQ+IOefDS8YqJ4593nK8xTFDEmLg4T4nRBvOBKJ09CbTaqSo2a0HCfriS1wFbRFlNURn1n5oYT+8Ozcd2Pd0l2gGKzzD7YcwP/WyMUkzUWI83tkUQkcYhl2GsPMvuC9WeqhwurUeH2xbfaP77qN32g/s+7+JzT2vMqUyYN93si5nTsVCM5qyrWqHIPN5z/kVkXzqab+wT8v1HW+27iSPrSH31ui7g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ijmH4vzVwkwaY7QTVp8yKAEqSZ2+viu3YYDRJcf8jPy0d7EchmrB+IKrR5ES3QS0GR/+VEsNTHkHb2qnlCknxsFsB8w1GNGNGBbhLSZwX57kjs09v7Sp02Kt7Bo6RjGrWDczfUx7bqXqlz8a48IvdROeUV/vFIgsZFlGtuUvtnjULRHDznoPpBeg6SXd5YK2IUsRH0awWD4PuauePeGYM2tiLnoKteCc7qsAH7/9rTwUj6+jM1qx2TlZiJr5dnJDaL9mKC6HsR0/Z01bDAaL/lXecOUHlOtO44Cc2uzbVty8V0BHB+QsEBNEru3RbdVi/HKYKNbfyap9N2sYpNA/dw==
- Authentication-results: chrony.tuxfamily.org; dkim=none (message not signed) header.d=none;chrony.tuxfamily.org; dmarc=none action=none header.from=whoi.edu;
- 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=ivD2mbzqg2UXPUJDRgoubLqfNIC2dzS95iibTMMY95s=; b=O+eneaKf8Y7n7ENOSPwM0Eg2Fq7yXO2TKcyi7B+Sz0H77Xs1ziE/mS8hoTY4H4ny40VFEwsQFjvaOHTv9q3LfCXMeNMlAPydb8BVB4QQ4ZI3elQxmUCQWHvtbSzlhdaXhVmwpLlKrfiRz9cdC/YIJR/obmiZepka2+1gOLYZb3s=
- Thread-index: AQHWi2zQDMfVfzRN1kK9Y3ttUJehzg==
- Thread-topic: Synchronizing clock with GPS with PPS
Hi all,
I am setting up chronyd on an embedded Linux device to synchronize the system clock using a GPS module. The GPS device sends NMEA strings over the character device /dev/ttyAMA1 and I have also configured /dev/pps0, both of which appear to be working OK.
The system is running Ubuntu 18.04 and the latest package versions are chronyd 3.2 and gpsd 3.17.
I configured gpsd to listen to the serial device and then added these lines to my chrony.conf:
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.2
refclock PPS /dev/pps0 refid PPS
When I run `chronyc sources` they both seem to be kind of working:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#- GPS 0 4 377 12 +128ms[ +128ms] +/- 200ms
#* PPS 0 4 377 12 +6ns[ +119ns] +/- 203ns
However it looks like the GPS source is “not combined”. Is this a degraded state, e.g., it is using one of these two sources?
Also, I am not sure why the LastRx from the PPS (or frankly either) ticks upwards so long—shouldn’t it constantly be receiving updates?
I am just using the precision / offset / delay figures that several examples use. Is there documentation on calibrating these values?
Finally, I read that using Unix sockets rather that shared memory is preferable, but my chronyd does not seem to create those sockets.
Thanks,
RyanN������y隊W!���������n���\��"������z)�.n7��Z+��f����|�������'��}���*+�����)�.n7��:蹹^f��X��f����'��}���*+