[LinuxPPS] pps stops when ntpd starts?

Rodolfo Giometti giometti at enneenne.com
Thu Jun 11 09:13:30 CEST 2009


On Wed, Jun 10, 2009 at 07:41:56PM +0200, Udo van den Heuvel wrote:
> William S. Brasher wrote:
>> On Wed, 10 Jun 2009, Udo van den Heuvel wrote:
>>
>>> William S. Brasher wrote:
>>>> The following patch to ldattach will "fix" the problem and with ppstest
>>>> hanging and ntpd never seeing the pps signal after ntpd is started:
>>> These ioctl flags are the ones missing in ldattach versus ppsldisc?
>>
>> I used stty to get the flags after ppsldisc and then after ntpd was 
>> started.  Then I stopped ppsldisc and ntpd, started ldattach, got the 
>> flags, and then started ntpd, and got the flags.  After ntpd was run the 
>> flags were the same as set by ppsldisc.  Ldattach, however, does not set 
>> ignbrk and icrnl and icanon were marked -crnl and -icanon.
>>
>> So, I just started setting flags in ldattach to get it to match what ntpd 
>> seemed to want, and after setting IGNBRK and ICRNL in c_iflag things 
>> started to work. Note that -icanon is also gone after ntpd is running, but 
>> letting ntpd set that flag didn't kill the pps signal.
> (cut)
>
> Ah, thanks.
> If we can make the extra flags conditional for N_PPS only I could send the 
> ldattach maintainer an updated patch....

Or provide a patch for ntpd... if using ldattach ppstest works ok I
suppose the problem is inside ntpd.

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



More information about the LinuxPPS mailing list