Giter Site home page Giter Site logo

tiagofreire-pt / rpi_uputronics_stratum1_chrony Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 1.68 MB

A straightforward and highly optimized approach to achieve a cost-effective Stratum 1 NTP server using a Raspberry Pi 5B and an Uputronics GPS HAT

License: GNU General Public License v3.0

Shell 100.00%
chrony ntp phc ptp raspberry-pi-5 stratum-1 ublox uputronics

rpi_uputronics_stratum1_chrony's People

Contributors

tiagofreire-pt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

by

rpi_uputronics_stratum1_chrony's Issues

kPPS Not Visible...and GPS+PPS Not Working After Following Instructions

I've got a Raspberry Pi 5, with 64 bit Rasperry Pi OS and previously have used ntpsec as the core of my time server. I have the Uputronix card, hardware revision 5.9.

Despite following the instructions to the letter, chrony always fails to start with this error:

Feb 10 21:27:12 ntp.reub.net chronyd[4556]: chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Feb 10 21:27:12 ntp.reub.net chronyd[4556]: Fatal error : unknown refclock driver kPPS
Feb 10 21:27:12 ntp.reub.net chronyd[4554]: unknown refclock driver kPPS
Feb 10 21:27:12 ntp.reub.net systemd[1]: chrony.service: Control process exited, code=exited, status=1/FAILURE

My chrony.conf has - as per the instructions the exact config specified:

# Choose the one with best long term results 
refclock SHM 1 refid PPS precision 1e-7 prefer 
refclock kPPS /dev/pps0 lock GPS maxlockage 2 poll 4 refid PPS precision 1e-7 prefer  
#

If I comment out the kPPS interface, then chronyd starts.

However, it seems that there's more wrong than this...

MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS                           0   8     0     -     +0ns[   +0ns] +/-    0ns
#? PPS                           0   4     0     -     +0ns[   +0ns] +/-    0ns
#* PHC                           0   0    77     0    +26us[ -475us] +/-   47ns
^- resolv.on.ii.net              2   6     7     1    +28ms[  +28ms] +/-  145ms

GPS and PPS never show any numbers at all as if they are not working.

But PPS does actually work:

root@ntp:/var/log/chrony# ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1707561010.030853608, sequence: 21945 - clear 0.000000000, sequence: 0
source 0 - assert 1707561011.030797783, sequence: 21946 - clear 0.000000000, sequence: 0
source 0 - assert 1707561012.030742405, sequence: 21947 - clear 0.000000000, sequence: 0

This did all work with ntpsecd before so I don't believe there are any issues with bad hardware.

Could these problems be caused by my somewhat older version of the Uputronix board or is there something else which could explain this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.