[ntp:questions] Re: AW: Re: AW: convert_rawdcf: parity check FAILED on my embedded Linux system

Frank Kardel kardel at ntp.org
Sun Oct 15 14:19:32 UTC 2006


Torsten.Krieger at krieger-mis.de (Torsten Krieger) writes:

> Hi Uwe,
>
> I made a small c program which reads the serial port /dev/refclock-0
> character by character, ntpd switched off. Shall I see one character by
> second (second = 1/60 minute) 0xf0 for low bit and 0x00 for high bit? If
> this should be the case then something went wrong with my serial interface.
>
> Ciao,
> Torsten
>

You may want to look at parseutil/testdcf and parseutil/dcfd.
testdcf has a fixed 1/0 decision while dcfd dynamically determines
the 1/0 decision value.

dcfd should give you something like this:
./dcfd -i /dev/refclock-1
  DCF77 monitor 4.18 - Copyright (C) 1993-2005 by Frank Kardel

  RADMLSMin....PHour..PMDay..DayMonthYear....P
  RADMLS1248124P124812P1248121241248112481248P
\ ----#-##-----#.............................. *** INCOMPLETE
/ --#--#----#--#-##-#-##-#-#-###----#-##-----# *** NO MINUTE INC
- --#--#-#--#----##-#-##-#-#-###----#-##...... Su, 16:11:52, 15.10.2006, <__D_>

testdcf would give:
./testdcf  /dev/refclock-1
  DCF77 monitor 4.10 - Copyright (C) 1993-2005, Frank Kardel

  RADMLSMin....PHour..PMDay..DayMonthYear....P
  RADMLS1248124P124812P1248121241248112481248P
- ##-#-##-#-#-###----#-##-----#............... *** INCOMPLETE
- ............................................ Su, 16:18:04, 15.10.06, <__D_>

Frank




More information about the questions mailing list