Re: [ntp:questions] SHM driver as a PPS source

2016-11-25 Thread Hal Murray

folk...@vanheusden.com said:
> How can I tell NTPd that an SHM time source is actually a PPS and that it
> thus should combine it with some other sources? (an '*' + 'o' combination so
> to say) 

I don't think you can do it the way you have described.

The API for SHM requires that you have already figured out which second 
matches your PPS pulse.

If you have a real PPS pulse, you can connect it to a modem control pin or 
whatever your kernel supports and use the ATOM driver.  Or maybe use gpsd.

If your PPS signal comes in via some strange hardware, you can hack your kernel 
to support the normal PPS API or you can hack the ATOM driver to talk to your 
hardware.

Or you can make your software that is talking to SHM smart enough to provide 
the right second.  Look at the ATOM driver and see how it decides if a time 
stamp is good enough.  You can probably just use the system time and set 
minsane to 3 so it will outvote your clock if the system time is way off.  I'd 
have to do some testing to verify that worked right, but it might solve your 
problem.


-- 
These are my opinions.  I hate spam.



___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] SHM driver as a PPS source

2016-11-24 Thread Brian Inglis

On 2016-11-24 05:49, folkert wrote:

How can I tell NTPd that an SHM time source is actually a PPS and
that it thus should combine it with some other sources? (an '*' +
'o' combination so to say)


Seems to be implied for paired gpsd SHM regions e.g.

server  127.127.28.0minpoll 4 maxpoll 4
fudge   127.127.28.0refid GPS time1 0.###

server  127.127.28.1minpoll 4 maxpoll 4 prefer
fudge   127.127.28.1refid PPS

Unit 0 is coarse time and output must *follow* closely *after*
unit 1 precise time output to get the correct seconds label.

Seems gpsd may connect /dev/gps0 interrupts to kernel pps and use
that, as it says the system must support kernel pps.

Use ntpshmmon to check SHM contents.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


[ntp:questions] SHM driver as a PPS source

2016-11-24 Thread folkert
Hi,

How can I tell NTPd that an SHM time source is actually a PPS and that
it thus should combine it with some other sources? (an '*' + 'o'
combination so to say)


Folkert van Heusden

-- 
--
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions