[LinuxPPS] ntp-dev-4.2.5p237-RC does sync with PPS for me
William S. Brasher
billb958 at door.net
Wed Oct 28 14:54:59 CET 2009
On Wed, 28 Oct 2009, Rodolfo Giometti wrote:
>
> However a better implementation of the above setting should be:
>
> diff --git a/Documentation/pps/ppstest.c b/Documentation/pps/ppstest.c
> index d911bf6..30c8f6d 100644
> --- a/Documentation/pps/ppstest.c
> +++ b/Documentation/pps/ppstest.c
> @@ -55,6 +55,7 @@ int find_source(char *path, pps_handle_t *handle,
> int *avail_m
> params.assert_offset.tv_sec = 0;
> params.assert_offset.tv_nsec = 675;
> params.mode |= PPS_CAPTUREASSERT | PPS_OFFSETASSERT;
> + params.mode &= ~(PPS_CAPTURECLEAR | PPS_OFFSETCLEAR);
> ret = time_pps_setparams(*handle, ¶ms);
> if (ret < 0) {
> fprintf(stderr, "cannot set parameters (%m)\n");
>
> Ciao,
>
> Rodolfo
>
> --
>
> GNU/Linux Solutions e-mail: giometti at enneenne.com
> Linux Device Driver giometti at linux.it
> Embedded Systems phone: +39 349 2432127
> UNIX programming skype: rodolfo.giometti
> Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
>
>
And the results are:
source 0 - assert 1256737706.999560770, sequence: 2930 - clear 1256734786.998287980, sequence: 10
source 0 - assert 1256737707.999561031, sequence: 2931 - clear 1256734786.998287980, sequence: 10
source 0 - assert 1256737708.999560666, sequence: 2932 - clear 1256734786.998287980, sequence: 10
source 0 - assert 1256737709.999560329, sequence: 2933 - clear 1256734786.998287980, sequence: 10
More information about the LinuxPPS
mailing list