[LinuxPPS] Occasionally ntpd stops receiving NMEA data

Rodolfo Giometti giometti at linux.it
Mon Jun 5 15:48:01 CEST 2006


On Mon, Jun 05, 2006 at 03:30:31PM +0200, Udo van den Heuvel wrote:
> 
> At that point (do we have LinuxPPS) we do not care about version 1 or 2
> yet. We include the right header to get more info.
> Later, at the relevant points, ntp can discern between version 1 and 2
> when needed. (depending on ntp code and version dependencies)

Mmm...

> PSS?

PPS. :)

> If we are just one implementation, why does it check for PPS_API_VERS_1
> and why did you change to PPS_API_VERS_2 when nothign serious changed so
> far?
> I get lost here.

Ono thing is the "API version" and one thing is the "implementation
version".

Current API version is 1 and current implementation version regarding
LinuxPPS is 2.1.0.

You may decide to implement _another_ PPS API called UdoPPS and
versioning it as you wish.

Our problem is that LinuxPPS do _not_ exacly support PPS API version 1
since it needs the function time_pps_findsource() and function
time_pps_create() has a different semantic.

Again, I think that the better solution is declaring into timepps.h:

   #define PPS_API_VERS_1          1       /* draft-05, dated 1999-08 */
   #define PPS_API_VERS            PPS_API_VERS_1

since we start from PPS API version 1, and:

   #define LINUXPSS_API            1       /* mark LinuxPPS API */

to mark LinuxPPS slang.


> If all linux PPS implementations have the same header file wen do not
> need PPS_API_VERS_x for the first check.

This is not completely true. Have you read the PPS API definition?

> So it appears we have to adhere to the ntp `standard`.
> No PPS_API_VERS change. We check in the LinuxPPS code for the right
> version (for kernel 2.4 or 2.6 for example)

LinuxPPS now supports only kernel 2.6 series, NTPD driver should check
only for LinuxPPS slang.

> Does it make the patch to ntpd smaller?
> [snip]

See other topic.

Ciao,

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20060605/c433b018/attachment.pgp


More information about the LinuxPPS mailing list