Hi,

I have a time receiver that sends time information in MSTS format to the serial port of an OpenBSD system. The receiver sends 1 PPS pulses on the DCD pin and I'm trying to use these pulses to increase the accuracy (not that a simple DCF77 receiver will ever be very accurate, but at least I can try to get the most out of it).

However, there seem to be no difference when I start ldattach with or without the -t dcd option.

When reading the source of ldattach.c, I noticed this piece of code:

        /* line discpline specific setup */
        switch (ldisc) {
        case NMEADISC:
        case ENDRUNDISC:
                if (ioctl(fd, TIOCSTSTAMP, &tstamps) < 0) {
                        warnx("TIOCSTSTAMP");
                        goto bail_out;
                }
                tty.c_cflag |= CLOCAL;
                /* FALLTHROUGH */
        case SLIPDISC:
                tty.c_iflag = 0;
                tty.c_lflag = 0;
                tty.c_oflag = 0;
                tty.c_cc[VMIN] = 1;
                tty.c_cc[VTIME] = 0;
                break;
        }


As you can see, MSTSDISC is not mentioned here. I'm not a programmer and I don't understand much of this, but it seems odd that MSTSDISC is missing here.
Does this mean that the -t dcd option has no effect for MSTS?

regards,
Maurice

Reply via email to