We need to use 1pps (gpio source) for timestamp in application.

I thought that ntp should be used with the linux pps for this purpose. But the system is standalone without any other servers connected. So the question is:

  1. Is it possible to do it with ntp without other servers? How ntp.conf should be configured?

  2. Does ntp use with pps means that system clock is synced with pps?

If ntp is not the way, is there other method to achieve sync of system clock with pps?


Yes, its possible to sync via GPS the clock w/o any network connection. You need GPS receiver and antenna on the roof (and usually serial port to connect the receiver)

It is possible to use GSM signal as most of the mobile operators provide also precise clock over signalling channel

Also (as very odd solution) is possible to using D channel of PRI ISDN (if provider have precise time over this channel)

EDIT: You can also buy dedicated time server. Here are few manifacturers (no affiliate with any of them): 1, 2

  • Is there any example showing how to do it in standalone system? I did not find how to do it.
    – ransh
    Feb 16 '19 at 16:12
  • @ransh, example about what? Feb 16 '19 at 16:13
  • I mean example how to configure this sync between PPS (gpio source) and system clock. Thx
    – ransh
    Feb 16 '19 at 17:27
  • @ransh, do we talk about en.wikipedia.org/wiki/General-purpose_input/output ? Feb 16 '19 at 17:42
  • Yes, GPIO used as PPS (pulse-per-second).
    – ransh
    Feb 16 '19 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.