driver4.html revision 132451
1132451Sroberto<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2132451Sroberto
3132451Sroberto<html>
4132451Sroberto
5132451Sroberto    <head>
6132451Sroberto        <title>Spectracom 8170 and Netclock/2 WWVB Receivers</title>
7132451Sroberto        <link href="../scripts/style.css" type="text/css" rel="stylesheet">
8132451Sroberto    </head>
9132451Sroberto
10132451Sroberto    <body>
11132451Sroberto        <h3>Spectracom 8170 and Netclock/2 WWVB Receivers</h3>
12132451Sroberto        <hr>
13132451Sroberto        <h4>Synopsis</h4>
14132451Sroberto        Address: 127.127.4.<i>u</i><br>
15132451Sroberto        Reference ID: <tt>WWVB</tt><br>
16132451Sroberto        Driver ID: <tt>WWVB_SPEC</tt><br>
17132451Sroberto        Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
18132451Sroberto        Features: <tt>tty_clk</tt>
19132451Sroberto        <h4>Description</h4>
20132451Sroberto        <p>This driver supports all known Spectracom radio and satellite clocks, including the Model 8170 and Netclock/2 WWVB Synchronized Clocks and the Netclock/GPS GPS Master Clock. The claimed accuracy of the WWVB clocks is 100 usec relative to the broadcast signal. These clocks have proven a reliable source of time, except in some parts of the country with high levels of conducted RF interference. WIth the GPS clock the claimed accuracy is 130 ns. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.</p>
21132451Sroberto        <p>The DIPswitches on these clocks should be set to 24-hour display, AUTO DST off, data format 0 or 2 (see below) and baud rate 9600. If this clock is used as the source for the IRIG Audio Decoder (<tt>refclock_irig.c</tt> in this distribution), set the DIPswitches for AM IRIG output and IRIG format 1 (IRIG B with signature control).</p>
22132451Sroberto        <p>There are two timecode formats used by these clocks. Format 0, which is available with all clocks, and format 2, which is available with all clocks except the original (unmodified) Model 8170.</p>
23132451Sroberto        <p>Format 0 (22 ASCII printing characters):<br>
24132451Sroberto            &lt;cr&gt;&lt;lf&gt;i ddd hh:mm:ss TZ=zz&lt;cr&gt;&lt;lf&gt;</p>
25132451Sroberto        <p>on-time = first &lt;cr&gt;<br>
26132451Sroberto            i = synchronization flag (' ' = in synch, '?' = out synch)<br>
27132451Sroberto            hh:mm:ss = hours, minutes, seconds</p>
28132451Sroberto        <p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours.</p>
29132451Sroberto        <p>Format 2 (24 ASCII printing characters):<br>
30132451Sroberto            lt;cr&gt;lf&gt;iqyy ddd hh:mm:ss.fff ld</p>
31132451Sroberto        <p>on-time = &lt;cr&gt;<br>
32132451Sroberto            i = synchronization flag (' ' = in synch, '?' = out synch)<br>
33132451Sroberto            q = quality indicator (' ' = locked, 'A'...'D' = unlocked)<br>
34132451Sroberto            yy = year (as broadcast)<br>
35132451Sroberto            ddd = day of year<br>
36132451Sroberto            hh:mm:ss.fff = hours, minutes, seconds, milliseconds</p>
37132451Sroberto        <p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours. The unlock condition is indicated by other than ' ' at <tt>q</tt>.</p>
38132451Sroberto        <p>The <tt>q</tt> is normally ' ' when the time error is less than 1 ms and a character in the set <tt>A...D</tt> when the time error is less than 10, 100, 500 and greater than 500 ms respectively. The <tt>l</tt> is normally ' ', but is set to <tt>L</tt> early in the month of an upcoming UTC leap second and reset to ' ' on the first day of the following month. The <tt>d</tt> is set to <tt>S</tt> for standard time <tt>S</tt>, <tt>I</tt> on the day preceding a switch to daylight time, <tt>D</tt> for daylight time and <tt>O</tt> on the day preceding a switch to standard time. The start bit of the first &lt;cr&gt; is synchronized to the indicated time as returned.</p>
39132451Sroberto        <p>This driver does not need to be told which format is in use - it figures out which one from the length of the message. A three-stage median filter is used to reduce jitter and provide a dispersion measure. The driver makes no attempt to correct for the intrinsic jitter of the radio itself, which is a known problem with the older radios.</p>
40132451Sroberto        <h4>Monitor Data</h4>
41132451Sroberto        <p>The driver writes each timecode as received to the <tt>clockstats</tt> file. When enabled by the <tt>flag4</tt> fudge flag, a table of quality data maintained internally by the Netclock/2 is retrieved and written to the <tt>clockstats</tt> file when the first timecode message of a new dayis received.</p>
42132451Sroberto        <h4>Fudge Factors</h4>
43132451Sroberto        <dl>
44132451Sroberto            <dt><tt>time1 <i>time</i></tt>
45132451Sroberto            <dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
46132451Sroberto            <dt><tt>time2 <i>time</i></tt>
47132451Sroberto            <dd>Not used by this driver.
48132451Sroberto            <dt><tt>stratum <i>number</i></tt>
49132451Sroberto            <dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
50132451Sroberto            <dt><tt>refid <i>string</i></tt>
51132451Sroberto            <dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>WWVB</tt>.
52132451Sroberto            <dt><tt>flag1 0 | 1</tt>
53132451Sroberto            <dd>Not used by this driver.
54132451Sroberto            <dt><tt>flag2 0 | 1</tt>
55132451Sroberto            <dd>Not used by this driver.
56132451Sroberto            <dt><tt>flag3 0 | 1</tt>
57132451Sroberto            <dd>Not used by this driver.
58132451Sroberto            <dt><tt>flag4 0 | 1</tt>
59132451Sroberto            <dd>Enable verbose <tt>clockstats</tt> recording if set.
60132451Sroberto        </dl>
61132451Sroberto        <hr>
62132451Sroberto        <script type="text/javascript" language="javascript" src="../scripts/footer.txt"></script>
63132451Sroberto    </body>
64132451Sroberto
65132451Sroberto</html>