[LinuxPPS] LinuxPPS 5.0.0-rc1

Frank Kardel kardel at ntp.org
Sat Aug 11 13:41:05 CEST 2007


Hi,

Udo van den Heuvel wrote:
> Rodolfo Giometti wrote:
>   
>> On Fri, Aug 10, 2007 at 04:42:03PM +0200, Udo van den Heuvel wrote:
>>     
>> [...]
>>> +	if (gps_fd <= 0) {
>>>       
>> Make attention here! Refclock should work in both ways:
>>
>> 1) the GPS source and PPS source are the same device, or
>>
>> 2) the	GPS source and PPS source are __different__ devices.
>>
>> Your code assumes case 2 only. I suggest you in using bit 7 as PARSE
>> refclock in order to know what to do (please see my preovious letter
>> on this topic for a code example).
>>     
There is not need to obey the mode parameter - PARSE has this as a 
special feature
to enable and disable the PPS capabilities of PARSE. It would be 
perfectly ok
to attempt to use PPS at all times.
> [...]
>   

Frank



More information about the LinuxPPS mailing list