[ntp:questions] Meinberg DCF77 C51 with Linux 2.6

Frank Kardel kardel at ntp.org
Sun Feb 11 20:25:09 UTC 2007


Rune Magnussen <rum at gratismail.dk> writes:

> Den Sun, 11 Feb 2007 16:01:38 +0100. skrev Uwe Klein:
>
> Now the C51 is in sync Modulation seems ok and freilauf is off. The putput
> from ntpd is like this:
>
> pstatus:
>
> assID=12763 status=80f5 unreach, conf, 15 events, event_peer_clock,
> srcadr=GENERIC(0), srcport=123, dstadr=127.0.0.1, dstport=123, leap=11,
> stratum=0, precision=-20, rootdelay=0.000, rootdispersion=0.000,
> refid=DCFa, reach=000, unreach=0, hmode=3, pmode=4, hpoll=6, ppoll=7,
> flash=1600 peer_stratum, peer_dist, peer_unfit, keyid=0, ttl=64,
> offset=0.000, delay=0.000, dispersion=16000.000, jitter=0.001,
> reftime=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
> org=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
> rec=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
> xmt=c979ec84.a7e0c80b  Sun, Feb 11 2007 20:27:00.655,
> filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
> filtoffset=    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
> filtdisp=   16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0
>
>
> clockvars:
>
> assID=0 status=0505 clk_baddate, last_clk_baddate,
> device="Meinberg DCF77 C51 or compatible",
> timecode="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
> \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
> poll=12, noreply=5, badformat=0, baddata=6, fudgetime1=10.000, stratum=0,
> refid=DCFa, flags=0, refclock_time="<UNDEFINED>", refclock_status="",
> refclock_format="Meinberg Standard", refclock_states="*ILLEGAL DATE:
> 00:12:00 (100.00%); running time: 00:12:00"
>
> What do you mean by a "break condition" ?
>
> /Rune
No, thats not it. It should look more like this:

assID=0 status=0004 clk_okay, last_clk_badsignal,
device="Meinberg DCF77 C51 or compatible",
timecode="\x02D:11.02.07;T:7;U:21.13.46;    \x03", poll=14354,
noreply=0, badformat=0, baddata=0, fudgetime1=34.000, stratum=0,
refid=DCFa, flags=0,
refclock_time="c979f77a.00000000  Sun, Feb 11 2007 20:13:46.000",
refclock_status="TIME CODE; (LEAP INDICATION)",
refclock_format="Meinberg Standard",
refclock_states="*NOMINAL: 10d+15:13:26 (99.21%); PROPAGATION DELAY: 02:00:58 (0.78%); running time: 10d+17:14:24"

assID=15309 status=96f5 reach, conf, sel_sys.peer, 15 events, event_peer_clock,
srcadr=GENERIC(0), srcport=123, dstadr=127.0.0.1, dstport=123, leap=00,
stratum=0, precision=-18, rootdelay=0.000, rootdispersion=0.000,
refid=DCFa, reach=377, unreach=0, hmode=3, pmode=4, hpoll=6, ppoll=10,
flash=00 ok, keyid=0, ttl=64, offset=0.948, delay=0.000,
dispersion=0.977, jitter=0.756,
reftime=c979f999.00000000  Sun, Feb 11 2007 21:22:49.000,
org=c979f999.086e751c  Sun, Feb 11 2007 21:22:49.032,
rec=c979f999.087779e7  Sun, Feb 11 2007 21:22:49.033,
xmt=c979f998.2988afb3  Sun, Feb 11 2007 21:22:48.162,
filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtoffset=    0.95    0.84   -0.25    0.63   -0.29    0.53    1.67    0.46,
filtdisp=      0.01    1.03    2.00    3.05    3.97    4.90    5.85    6.83

You seem not to be able the receive the RS232 data correctly. As already said:
You should first verify that you get the RS232 data to read correctly. 
The Linux tool "cu" (usually in a some uucp package - doesn't seem ot be load on a SuSE 10.1
as default) should help you there.

The binary zeros are definitely not right and are not sent be the Meinberg C51 devices.
The tty port parameters will be set up correctly by ntpd.

Frank




More information about the questions mailing list