[LinuxPPS] 17Jun Patch

Rodolfo Giometti giometti at enneenne.com
Wed Jun 18 12:28:19 CEST 2008


On Tue, Jun 17, 2008 at 05:02:24PM -0600, Reg Clemens wrote:
> The (2nd) patch applies just fine to 2.6.24.4, but when built the clock is not 
> running.
> I see
> 
>     [reg at deneb pps1]$ more assert
>     0.000000000#0
> 
> on both pps0 and pps1.

You should verify that the IRQ for DCD has been activated.

> As mentioned in my previous note, the following  is a test program that 
> returns the LineDiscipline,
> 
> [root at deneb reg]# a.out /dev/ttyS0
> Line Discipline = 17
> [root at deneb reg]# a.out /dev/pps1
> IOCTL returned -1
> 
> and having 17 for the serial line and -1 (error) for the PPS line just doesnt 
> look right.

On Tue, Jun 17, 2008 at 11:13:17PM +0000, Cirilo Bernardo wrote:
> On Tue, Jun 17, 2008 at 11:02 PM, Reg Clemens <reg at dwf.com> wrote:
> > [snip]
> > and having 17 for the serial line and -1 (error) for the PPS line just doesnt
> > look right.
> >
> 
> It looks right to me; the PPS virtual device is not a TTY so the IOCTL
> should fail.  It is the GPS device which should continue to function
> as a TTY and essentially be unaffected by the PPS line discipline.

Cirilo was right. :)

Did you test communication with the GPS antenna? Now it should be
ok... please 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