xref: /freebsd/contrib/ntp/html/drivers/driver34.html (revision 9c2daa00c2315f101948c7144d62af5d5fb515cf)
19c2daa00SOllivier Robert<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29c2daa00SOllivier Robert
39c2daa00SOllivier Robert<html>
49c2daa00SOllivier Robert
59c2daa00SOllivier Robert    <head>
69c2daa00SOllivier Robert        <meta http-equiv="Content-Type" content="text/html; charset=iso8859-1">
79c2daa00SOllivier Robert        <title>Ultralink Clock</title>
89c2daa00SOllivier Robert        <link href="../scripts/style.css" type="text/css" rel="stylesheet">
99c2daa00SOllivier Robert    </head>
109c2daa00SOllivier Robert
119c2daa00SOllivier Robert    <body>
129c2daa00SOllivier Robert        <h3>Ultralink Clock</h3>
139c2daa00SOllivier Robert        <hr>
149c2daa00SOllivier Robert        <h4>Synopsis</h4>
159c2daa00SOllivier Robert        Address: 127.127.34.<i>u</i><br>
169c2daa00SOllivier Robert        Reference ID: <tt>WWVB</tt><br>
179c2daa00SOllivier Robert        Driver ID: <tt>ULINK</tt><br>
189c2daa00SOllivier Robert        Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 bps, 8-bits, no parity<br>
199c2daa00SOllivier Robert        <br>
209c2daa00SOllivier Robert        Features: <tt>(none)</tt>
219c2daa00SOllivier Robert        <h4>Description</h4>
229c2daa00SOllivier Robert        <p>This driver supports the Ultralink Model 320 RS-232 powered WWVB receiver. PDF specs available on <a href="http://www.ulio.com">www.ulio.com</a>. This driver also supports the Model 330,331,332 decoders in both polled or continous time code mode. Leap second and quality are supported.</p>
239c2daa00SOllivier Robert        <p>Most of this code is originally from refclock_wwvb.c with thanks. Any mistakes are mine. Any improvements are welcome.</p>
249c2daa00SOllivier Robert        <hr>
259c2daa00SOllivier Robert        <pre>
269c2daa00SOllivier Robert  The Model 320 timecode format is:
279c2daa00SOllivier Robert
289c2daa00SOllivier Robert   &lt;cr&gt;&lt;lf&gt;SQRYYYYDDD+HH:MM:SS.mmLT&lt;cr&gt;
299c2daa00SOllivier Robert
309c2daa00SOllivier Robert  where:
319c2daa00SOllivier Robert
329c2daa00SOllivier Robert  S = 'S' -- sync'd in last hour, '0'-'9' - hours x 10 since last update, else '?'
339c2daa00SOllivier Robert  Q = Number of correlating time-frames, from 0 to 5
349c2daa00SOllivier Robert  R = 'R' -- reception in progress, 'N' -- Noisy reception, ' ' -- standby mode
359c2daa00SOllivier Robert  YYYY = year from 1990 to 2089
369c2daa00SOllivier Robert  DDD = current day from 1 to 366
379c2daa00SOllivier Robert  + = '+' if current year is a leap year, else ' '
389c2daa00SOllivier Robert  HH = UTC hour 0 to 23
399c2daa00SOllivier Robert  MM = Minutes of current hour from 0 to 59
409c2daa00SOllivier Robert  SS = Seconds of current minute from 0 to 59
419c2daa00SOllivier Robert  mm = 10's milliseconds of the current second from 00 to 99
429c2daa00SOllivier Robert  L  = Leap second pending at end of month -- 'I' = inset, 'D'=delete
439c2daa00SOllivier Robert  T  = DST &lt;-&gt; STD transition indicators
449c2daa00SOllivier Robert </pre>
459c2daa00SOllivier Robert        <p>Note that this driver does not do anything with the T flag.</p>
469c2daa00SOllivier Robert        <p>The M320 also has a 'U' command which returns UT1 correction information. It is not used in this driver.</p>
479c2daa00SOllivier Robert        <hr>
489c2daa00SOllivier Robert        <pre>
499c2daa00SOllivier Robert  The Model 33x timecode format is:
509c2daa00SOllivier Robert
519c2daa00SOllivier Robert    S9+D 00 YYYY+DDDUTCS HH:MM:SSl+5
529c2daa00SOllivier Robert
539c2daa00SOllivier Robert  Where:
549c2daa00SOllivier Robert
559c2daa00SOllivier Robert  S =    sync indicator S insync N not in sync
569c2daa00SOllivier Robert         the sync flag is WWVB decoder sync
579c2daa00SOllivier Robert         nothing to do with time being correct
589c2daa00SOllivier Robert  9+ =   signal level 0 thru 9+ If over 9 indicated as 9+
599c2daa00SOllivier Robert  D  =   data bit ( fun to watch but useless ;-)
609c2daa00SOllivier Robert  space
619c2daa00SOllivier Robert  00 =   hours since last GOOD WWVB frame sync
629c2daa00SOllivier Robert  space
639c2daa00SOllivier Robert  YYYY = current year
649c2daa00SOllivier Robert  +  =   leap year indicator
659c2daa00SOllivier Robert  DDD =  day of year
669c2daa00SOllivier Robert  UTC =  timezone (always UTC)
679c2daa00SOllivier Robert  S  =   daylight savings indicator
689c2daa00SOllivier Robert  space
699c2daa00SOllivier Robert  HH  =  hours
709c2daa00SOllivier Robert  :  =   This is the REAL in sync indicator (: = insync)
719c2daa00SOllivier Robert  MM  =  minutes
729c2daa00SOllivier Robert  :  =   : = in sync ? = NOT in sync
739c2daa00SOllivier Robert  SS  =  seconds
749c2daa00SOllivier Robert  L  =   leap second flag
759c2daa00SOllivier Robert  +5 =   UT1 correction (sign + digit ))
769c2daa00SOllivier Robert </pre>
779c2daa00SOllivier Robert        <p>This driver ignores UT1 correction,DST indicator,Leap year and signal level.</p>
789c2daa00SOllivier Robert        <hr>
799c2daa00SOllivier Robert        <h4>Fudge factors</h4>
809c2daa00SOllivier Robert        <p>flag1 polling enable (1=poll 0=no poll)</p>
819c2daa00SOllivier Robert        <hr>
829c2daa00SOllivier Robert        <address><a href="mailto:dstrout@linuxfoundary.com">mail</a></address>
839c2daa00SOllivier Robert        <!-- hhmts start -->Last modified: Tue Sep 14 05:53:08 EDT 1999 <!-- hhmts end -->
849c2daa00SOllivier Robert        <hr>
859c2daa00SOllivier Robert        <script type="text/javascript" language="javascript" src="../scripts/footer.txt"></script>
869c2daa00SOllivier Robert    </body>
879c2daa00SOllivier Robert
889c2daa00SOllivier Robert</html>