[LinuxPPS] ntp-dev-4.2.5p237-RC does sync with PPS for me

clemens at dwf.com clemens at dwf.com
Tue Oct 27 00:19:32 CET 2009


I am unfamiliar with the NMEA driver, but from what I have seen with
the ONCORE driver, I can guess what the problem is.

Check the code where you get the PPS event, see if you blindly 
pass it 'up' to the rest of the code.  If that is the case, and
you are using ASSERT, you need to add a piece of code that will
ignore the 2nd event with the same id.  This will be the CLEAR
event.

As I have noted in a couple, three, posting, linuxPPS is currently
passing both ASSERT and CLEAR events, even though you only selected
ASSERT (or CLEAR).  

The ONCORE driver sees this 2nd occurance of a ID (the sequence 
number that comes along with the timestamp) as an error, and
ignores it, but if the NMEA driver is passing both upward into
the code, I can see how you would be having problems.

Hopefully, this will be fixed in the next iteration of the
kernel patch.
-- 
                                        Reg.Clemens
                                        reg at dwf.com





More information about the LinuxPPS mailing list