gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] RFC 2783


From: Gary E. Miller
Subject: Re: [gpsd-dev] RFC 2783
Date: Tue, 10 Mar 2015 14:50:52 -0700

Yo Eric!

On Tue, 10 Mar 2015 16:48:48 -0400
"Eric S. Raymond" <address@hidden> wrote:

> > How about something like this:
> > 
> >     gpsd -n /dev/ttyUSB0 -p /dev/pps0
> > 
> > Ideas?
> 
> Is there always, and necessarily, only *one* pps device?  Wherever
> that assumption is violated, seems like this syntax will fail to be
> fully general.

Each serial device may have, or may allow to be created, one matching
/dev/ppsX.  In the interesting case of GPIO pins on Raspi there may
be a /dev/ppsX and no matching serial.

> It would be more in harmony with the GPSD way of autoconfiguration to
> jigger it so we can say this:
> 
> gpsd -n /dev/ttyUSB0 /dev/pps0
> 
> and have GPSD figure out for itself that /dev/pps0 should be treated
> as a PPS device.

Hmm, that could work.  Would still want gpsd, at least on Linux, to be
able to create the /dev/pps0 automagically if possible, but that allows
other OS to play as well.

> Have a look at serial.c:gpsd_classify() - that's probably where the
> magic should happen, based on either a path match to pps or a kernel
> device major number.

Good idea, will ponder.

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



reply via email to

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