Yo Paul!

On Mon, 15 Dec 2025 19:00:31 +0000
Paul Tretiakov <[email protected]> wrote:

> We are using Linux kernel API that implements RFC2783 for PPS edge
> detection, but the GPSd implementation has an issue for our use case:
> it uses timestamps from realtime clock provided by the kernel,

Uh.  No.  gpsd drives NTP to drive the kernel time.  Not the other
way around.

> this
> means that if the clock is step back into the past, GPSd loses a
> single PPS, which is critical for our system.

If missing one PPS is a problem, then you are doing things wrong.  It
is very host dependent, but only using every 10th, or every 64th PPS
greatly improves performance.

> Why doesn't GPSd use
> sequence numbers to detect edge changes

Because they are often wrong, or unvailable.  Many systems do not
support RFC2783.

>  this means that if the clock is step back into the past, GPSd loses
> a single PPS,

Entirely intentional.  Ain't broke, don't fix it. gpsd only passes on
PPS that it is 100% certain that it knows the proper timestamp for.
When the clock, from the NMEA, jumps araound, we do NOT want anything to
do with it.

Much better a dropped clock than a wrong clock.  PPS is to trim your
PLLs, not as a primmary time source.

> like we suggest in the
> following diff:

That would work in some cases, but be fatal in many others.

> This email message and any attachments are intended solely for the
> use of the addressees hereof. This message and any attachments may
> contain information that is confidential, privileged and exempt from
> disclosure under applicable law. If you are not the intended
> recipient of this message, you are prohibited from reading,
> disclosing, reproducing, distributing, disseminating or otherwise
> using this transmission. If you have received this message in error,
> please promptly notify the sender at Ceragon by reply E-mail and
> immediately delete this message from your system.

I reject your terms.  Absent a valid contract they are legally null
and void.  They are just clutter.  This is a public mailing list, with
public archives.  If that scares you, then do not post here.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        [email protected]  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpaQbWikN0Mz.pgp
Description: OpenPGP digital signature

Reply via email to