Hi there
On Sun, 22 Nov 2026, Bastian Blank wrote:
Control: tags -1 moreinfo
On Mon, Oct 26, 2026 at 02:23:30PM +0100, Rob van der Putten wrote:
Flushing the FIFO when this really should happen would probably result in
the experienced behaviour. It is perfectly normal for a DCF77 receiver to
produce a continuous stream of breaks, framing- and parity errors and the
software should just ignore these.
Why would producing parity errors be okay? Those are for error checking
the connection.
Wait, this device does not actually speak RS232? Interesting idea to
push raw DCF77 over RS232 and hope the receiving side will ignore the
errors.
The DCF receiver produces pulses of either 100 ms or 200 ms long. At 50
baud (20 ms per bit) this is either five or ten bits. Depending on the
parity setting (eight bits plus odd or even parity), this produces parity
errors on 100 ms or 200 ms pulses.
Users of serial data are free to use data with parity errors if they want
to; Input parity checking is not enabled by NTPD's rawdcf driver.
I will try to build a kernel without this change. I haven't build a kernel
since the 1990's, so this may take some time to figure out.
If this works I will try to modify the above change.
The change you identified is marked as security fix.
I don't know if this security fix still works if it excludes parity
errors. Making it exclude parity errors does work for me though.
Alternatives to ignoring parity errors are:
Modifying the Linux TTY driver to support 45 baud (22 ms per bit).
And
Modifying the NTPD rawdcf driver to use 45 baud.
And
Modifying the NTPD rawdcf driver not to use parity.
OR:
Build and apply a circuit which reduces the pulse length to 180 ms (or slightly
less).
And
Modifying the NTPD rawdcf driver not to use parity.
So please directly talk to upstream if you think this is wrong.
I have no idea how to do this.
Pointers are greatly welcomed.
Regards,
Rob