[LinuxPPS] Not seeing PPS with new stuff (More2)
Rodolfo Giometti
giometti at enneenne.com
Wed Jun 11 11:16:31 CEST 2008
On Wed, Jun 11, 2008 at 03:07:20AM -0600, clemens at dwf.com wrote:
> >
> > A line discipline is referred to a serial port so you have to use the
> > command:
> >
> > $ ./ttyctrl -X -s 17 /dev/ttyS0
> >
> OK, a bit better.
> with 2.6.24.4-PPS-quater + patch in linuxPPS, when I run
>
> ./ttyctrl -X -s 17 /dev/ttyS0
>
> It runs, creates /dev/pps1, BUT NEVER COMPLETES. The job is still sitting
> there
> and is IMPOSSIBLE to kill.
What about kernel messages? Did you see something like "PPS source #0
"/dev/ttyS0" added"?
> When I run your ppstest, I see
>
> [root at deneb pps]# ./ppstest /dev/pps1
> trying PPS source "/dev/pps1"
> found PPS source "/dev/pps1"
> ok, found 1 source(s), now start fetching data...
> time_pps_fetch() error -1 (Connection timed out)
> time_pps_fetch() error -1 (Connection timed out)
Did you enabled the IRQ on the serial port? Take a look at
/proc/interrupts to see if IRQs are arriving from the serial lines.
> and when I run my slightly modified version, I see
>
> [root at deneb Testing]# ./rodolfo6 /dev/pps1
> fd2 = 3
> getcap says 0x1133
> set mode to 0xbfc5b9db
> getparam is 0x1133
> Enter loop
>
> getparam is 0x1133
> getparam assert is 0 0000675
> getparam clear is 0 0000000
> A: 1213174047.015311729 #44 C: 1213174047.213825757 #44
>
> and it is killable.
>
> Checking /sys/class/pps/pps1 I see
>
> [root at deneb pps1]# more assert ; more clear
> 1213174047.015311729#44
> 1213174047.213825757#44
>
> So it seems to have counted to 44 and then hung...
Or the system stops recording PPS events... can you please enable
DEBUGging kernel messages and report?
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