You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as written in the title, the offset value of 0.0 for the GPS refclock stored in /etc/chrony/chrony.conf (which seems to be the newer path for the config) prevents the usage of GPS as reference time. The same was discussed here.
Setting it to 0.1 fixed it, I'm not sure if that breaks something or lowers the accuracy, but afterwards it at least worked for me. Maybe you want to include this in your Readme?
Addition after writing this: I saw that you mentioned correcting the offset in the config later, but for me the problem was that the GPS didn't get selected as reference clock in the first place (as it should have been as described in https://github.com/domschl/RaspberryNtpServer#setting-up-chrony-as-time-server), and the Last sample shown for PPS was always 0. The linked section is where I got stuck, and I didn't even get to the point of having GPS selected as the main time source.
Also, while we're at it, it would be nice to have the corresponding udev rules included (as figuring out how to do it when you've never worked with them before is quite pain). Just as quick reference (if you want to copy it): /etc/udev/rules.d/pps-sources.rules should contain
This assumes the user of the chronyd process to be _chrony, which can be found out using ps aux | grep chronyd. Also, I'm using the serial connection here, otherwise ttyS0 probably needs to be changed. To reload udev rules without reboot, run
sudo udevadm control --reload-rules && sudo udevadm trigger
Both cost me quite some time figuring out, so I would be happy if you include both improvements in your Readme File.
The text was updated successfully, but these errors were encountered:
Hey,
as written in the title, the offset value of
0.0
for the GPS refclock stored in/etc/chrony/chrony.conf
(which seems to be the newer path for the config) prevents the usage of GPS as reference time. The same was discussed here.Setting it to
0.1
fixed it, I'm not sure if that breaks something or lowers the accuracy, but afterwards it at least worked for me. Maybe you want to include this in your Readme?Addition after writing this: I saw that you mentioned correcting the offset in the config later, but for me the problem was that the GPS didn't get selected as reference clock in the first place (as it should have been as described in https://github.com/domschl/RaspberryNtpServer#setting-up-chrony-as-time-server), and the
Last sample
shown for PPS was always 0. The linked section is where I got stuck, and I didn't even get to the point of having GPS selected as the main time source.Also, while we're at it, it would be nice to have the corresponding
udev
rules included (as figuring out how to do it when you've never worked with them before is quite pain). Just as quick reference (if you want to copy it):/etc/udev/rules.d/pps-sources.rules
should containThis assumes the user of the
chronyd
process to be_chrony
, which can be found out usingps aux | grep chronyd
. Also, I'm using the serial connection here, otherwisettyS0
probably needs to be changed. To reload udev rules without reboot, runBoth cost me quite some time figuring out, so I would be happy if you include both improvements in your Readme File.
The text was updated successfully, but these errors were encountered: