[LinuxPPS] Re: nmea refclock patch update

Rodolfo Giometti giometti at enneenne.com
Thu Feb 22 22:07:00 CET 2007


On Thu, Feb 22, 2007 at 12:57:44PM -0800, gnu not unix wrote:
> 
> Ok that is done, and I have:
> 
> root at boomer.wraith.sf.ca.us[539] modprobe ktimer
> root at boomer.wraith.sf.ca.us[540] cat</sys/class/pps/0
> 00/ 01/ 02/ 
> root at boomer.wraith.sf.ca.us[540] cat</sys/class/pps/02/
> assert     echo       mode       name       path       subsystem/ uevent
> root at boomer.wraith.sf.ca.us[540] cat</sys/class/pps/02/assert 
> 1172173930.727783480#15
> root at boomer.wraith.sf.ca.us[541] cat</sys/class/pps/02/assert 
> 1172173931.727820355#16
> 
> So ktimer gets pps ok, however my gps only sees:
> 
> root at boomer.wraith.sf.ca.us[533] cat</sys/class/pps/00/assert 
> 1172173527.999977877#1
> root at boomer.wraith.sf.ca.us[534] cat</sys/class/pps/00/assert 
> 1172173527.999977877#1
> root at boomer.wraith.sf.ca.us[535] cat</sys/class/pps/00/assert 
> 1172173527.999977877#1
> 
> Hm, well I recompiled ppstest and it flapped pps ok.
> 
> Looks like a simple cat doesn't see an increment.

The reason could be that when you use "cat" the serial line is closed
and no irq is received at all.

Caould you please trying doing like this (I suppose you have serial
line at /dev/ttyS0 and connected PPS source is 0):

   $ cat /dev/ttyS0 &
   $ cat /sys/class/pps/00/assert

The first cat command holds open the serial line and the second one
try to read PPS data.

Please, let me know what you get so I can update the wiki.

> Also, the nmea refclock patch seems to have:
> 
> LINUXPPS_MAX_NAME_LEN
> 
> ...which fails, fix is:
> 
> PPS_MAX_NAME_LEN
> 
> So the patch needs updating.

Fixed. Thanks.

> Testing on boomer now...

Thanks a lot!

Rodolfo

P.S. I'll send my answer to the LinuxPPS ML since what I wrote could
be useful for others.

-- 

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/20070222/2ca8b1cc/attachment.pgp


More information about the LinuxPPS mailing list