[LinuxPPS] PPS/ntpd fails on fresh startup
Rodolfo Giometti
giometti at enneenne.com
Wed Oct 15 14:06:12 CEST 2008
On Wed, Oct 15, 2008 at 02:01:53PM +0200, Udo van den Heuvel wrote:
> Udo van den Heuvel wrote:
> > Rodolfo Giometti wrote:
> >> The "line" parameter should be 18.
> >
> > It is:
>
> BTW: ntp_refclock.h
>
> /*
> * Line discipline flags. These require line discipline or streams
> * modules to be installed/loaded in the kernel. If specified, but not
> * installed, the code runs as if unspecified.
> */
> #define LDISC_STD 0x00 /* standard */
> #define LDISC_CLK 0x01 /* tty_clk \n intercept */
> #define LDISC_CLKPPS 0x02 /* tty_clk \377 intercept */
> #define LDISC_ACTS 0x04 /* tty_clk #* intercept */
> #define LDISC_CHU 0x08 /* depredated */
> #define LDISC_PPS 0x10 /* ppsclock, ppsapi */
> #define LDISC_RAW 0x20 /* raw binary */
> #define LDISC_ECHO 0x40 /* enable echo */
> #define LDISC_REMOTE 0x80 /* remote mode */
> #define LDISC_7O1 0x100 /* 7-bit, odd parity for Z3801A */
Great! I think we can use these define to manage the LinuxPPS ldisc
settings!
I suppose that if flasg LDISC_PPS is define then NTPD set a proper
ldisc, you should tel to NTPD to use ldisc N_PPS (18) and everything
should go well. :)
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