[LinuxPPS] refclock_nmea patch

Rodolfo Giometti giometti at enneenne.com
Tue Oct 23 18:35:00 CEST 2007


On Tue, Oct 23, 2007 at 06:26:53PM +0200, Udo van den Heuvel wrote:
> I see in the LinuxPPS source that a port is checked: First we check if
> current device is a PPS valid PPS one.
> What is the use? (if this test fails on my /dev/gps0?)

Just to verify that the supplied device is a PPS source. It fails
because your /dev/gps0 is a serial line and _not_ a PPS source.

> So what use is it then to make /dev/gps0 if we have an automagic /dev/pps0?

Beacuse /dev/pps0 is _only_ a PPS source so you cannot get GPS/NMEA
data from it. That's why you need both /dev/gps0 and /dev/pps0.  The
former is used to collect GPS/NMEA data while the latter is is used to
collect PPS data.

> (just trying to understand)

Hope I was clear now. :)

Does your code work now? :D

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list