Received: from louie.udel.edu by huey.udel.edu id aa23654; 11 Mar 94 7:49 EST Received: from faui45.informatik.uni-erlangen.de by louie.udel.edu id aa14038; 10 Mar 94 14:14 EST Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP; id AA13885 (5.65c-6/7.3v-FAU); Thu, 10 Mar 1994 20:10:36 +0100 Received: from faui45x.informatik.uni-erlangen.de by immd4.informatik.uni-erlangen.de with SMTP; id AA03872 (5.65c-6/7.3m-FAU); Thu, 10 Mar 1994 20:10:33 +0100 From: Frank Kardel Message-Id: <199403101910.AA03872@faui43.informatik.uni-erlangen.de> Subject: RAW dcf77 showstopper 8-(. To: mills@udel.edu Date: Thu, 10 Mar 94 20:10:25 MET Cc: dpk@morgan.com, Frank.Kardel@informatik.uni-erlangen.de, Piete.Brooks@cl.cam.ac.uk, jcs@bear.zoo.bt.co.uk X-Mailer: ELM [version 2.3 PL11] Hi, my changes for 3.3m introduced a subtle reliability problem for the cheap DCF77 receiver code - it only returned somtimes the correct time 8-(. Well, here is the patch. (I'll post this one to the news group also as it is a show stopper for the cheap clocks 8-(). So don't be confused. RCS file: /src/NTP/REPOSITORY/v3/parse/clk_rawdcf.c,v retrieving revision 3.12 diff -c -r3.12 clk_rawdcf.c *** parse/clk_rawdcf.c:3.12 1994/02/20 13:04:39 --- parse/clk_rawdcf.c 1994/03/10 19:00:43 *************** *** 1,8 **** #if defined(REFCLOCK) && (defined(PARSE) || defined(PARSEPPS)) && defined(CLOCK_RAWDCF) /* ! * /src/NTP/REPOSITORY/v3/parse/clk_rawdcf.c,v 3.12 1994/02/20 13:04:39 kardel Exp * ! * clk_rawdcf.c,v 3.12 1994/02/20 13:04:39 kardel Exp * * Raw DCF77 pulse clock support * --- 1,8 ---- #if defined(REFCLOCK) && (defined(PARSE) || defined(PARSEPPS)) && defined(CLOCK_RAWDCF) /* ! * /src/NTP/REPOSITORY/v3/parse/clk_rawdcf.c,v 3.13 1994/03/10 19:00:43 kardel Exp * ! * clk_rawdcf.c,v 3.13 1994/03/10 19:00:43 kardel Exp * * Raw DCF77 pulse clock support * *************** *** 245,250 **** --- 245,251 ---- parseprintf(DD_RAWDCF,("parse: convert_rawdcf: parity check passed\n")); clock->flags = PARSEB_S_ANTENNA|PARSEB_S_LEAP; + clock->utctime= 0; clock->usecond= 0; clock->second = 0; clock->minute = ext_bf(buffer, DCF_M10, dcfparam->zerobits); *************** *** 528,534 **** /* * History: * ! * clk_rawdcf.c,v * Revision 3.12 1994/02/20 13:04:39 kardel * parse add/delete second support * --- 529,538 ---- /* * History: * ! * clk_rawdcf.c,v ! * Revision 3.13 1994/03/10 19:00:43 kardel ! * clear utctime field to avoid confusion on synthesize time stamps ! * * Revision 3.12 1994/02/20 13:04:39 kardel * parse add/delete second support * -- Frank Kardel (kardel@informatik.uni-erlangen.de) All SCSI disks will from now on be required to send an email notice 24 hours prior to complete hardware failure!