[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] Time Service HOWTO: Clarify state of RFC2783 on N

From: Gary E. Miller
Subject: Re: [gpsd-dev] [PATCH] Time Service HOWTO: Clarify state of RFC2783 on NetBSD.
Date: Tue, 26 Aug 2014 18:00:46 -0700

Yo Greg!

On Tue, 26 Aug 2014 20:16:12 -0400
Greg Troxel <address@hidden> wrote:

> "Gary E. Miller" <address@hidden> writes:
> >> huh?  For real serial ports, it's been there about 15 years (and
> >> working with ntpd directly).  It's only the odd case of USB-serial
> >> PPS that is recent.
> >
> > Everytime I asked someone to test it I got nothing, I assumed it was
> > known broken.
> I think I was the first one to actually try to test PPS (at all) with
> gpsd [on NetBSD].  IIRC it wouldn't even compile.  I created and I think esr
> merged a commit that had a partial fix, 

Yup, let us know how to fix the rest of it.  You are the netBSD guy.

> I now understand what you mean by unspecified, in that what an
> "appropriate special file" is to get a pps_handle is left unclear with
> the following text:

Yup.  We are in sync now.

> The next problem was deeper, where somehow things went in a loop, and
> (I'm gradually paging this back in) the support for RFC2783 seemed to
> assume that TIOCMWAIT was implemented

Fixed earlier this year. or at least the start of a fix.

> So what's needed is to write the RFC2783 code
> just in terms of RFC2783 calls, without using TIOCMWAIT and without
> relying on PPS_CANWAIT).   That's how ntpd uses RFC2783 calls.

I see no use of PPS_CANWAIT in gpsd:

    spidey gpsd # fgrep CANWAIT * -r
    spidey gpsd # 

But we'll add whatever you want to try for NetBSD.  If ntpd does it, where
should I look for that code?

> >> Because esr added a doc change which was wrong, and that needs to
> >> be fixed.
> >
> > OK, what did he break?
> He said PPS support was added to NetBSD in 2014, which is wrong
> because it's off by 15 years, and wrong the other way because it
> doesn't (yet) work with gpsd.

Ah, he, like me, meant PPS support for usb serial.  So that needs a

> I sent a new patch with more narrow changes to explain things, and
> tried to make it clearer to respond to the points you raised.

Yes, we are converging.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]