xref: /freebsd/contrib/ntp/html/drivers/driver40.html (revision 77a1348b3c1cfe8547be49a121b56299a1e18b69)
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html lang="en">
4
5	<head>
6		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
7		<meta name="generator" content="HTML Tidy, see www.w3.org">
8		<meta http-equiv="Content-Style-Type" content="text/css">
9		<meta http-equiv="Content-Script-Type" content="text/javascript">
10		<title>JJY Receivers</title>
11		<link rev="made" href="http://www.bea.hi-ho.ne.jp/abetakao/">
12		<link rel="start" href="http://www.eecis.udel.edu/~mills/ntp/html/refclock.html">
13		<link href="scripts/style.css" type="text/css" rel="stylesheet">
14	</head>
15
16	<body>
17		<h3>JJY Receivers</h3>
18<p>Last update:
19  <!-- #BeginDate format:En2m -->12-Oct-2017  09:05<!-- #EndDate -->
20  UTC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="driver40.html">ENGLISH</a> &nbsp; <a href="driver40-ja.html">JAPANESE</a></p>
21		<hr>
22		<h4>Synopsis</h4>
23		Address: 127.127.40.<em>u</em><br>
24		Reference ID: <code>JJY</code><br>
25		Driver ID: <code>JJY</code><br>
26		Serial Port: <code>/dev/jjy<em>u</em></code>; See corresponding receiver
27		<h4>Description</h4>
28		<p>This driver supports the following the JJY receivers and the GPS clock sold in Japan, and the time service through a telephone line.
29		</p>
30		<table width="100%">
31		<tr>
32		<td width="50%" style="vertical-align:top;">
33		<a href="#mode-1">Tristate Ltd. &nbsp; TS-JJY01, TS-JJY02</a><br>
34		<a href="#mode-2">C-DEX Co.,Ltd. &nbsp; JST2000</a><br>
35		<a href="#mode-3">Echo Keisokuki Co.,Ltd. &nbsp; LT-2000</a><br>
36		<a href="#mode-4">CITIZEN T.I.C. CO.,LTD. &nbsp; JJY-200</a><br>
37		<a href="#mode-5">Tristate Ltd. &nbsp; TS-GPSclock-01</a><br>
38		</td>
39		<td width="50%" style="vertical-align:top; border-left:solid; padding:0px 0px 0px 10px;">
40		<a href="#mode-6">SEIKO TIME SYSTEMS INC. &nbsp; TDC-300</a><br>
41		<a href="#mode-100">Telephone JJY</a><br>
42		</td>
43		</tr>
44		</table>
45		<ul>
46
47			<li>
48				<p><a name="mode-1">Tristate Ltd. &nbsp; TS-JJY01, TS-JJY02</a> &nbsp; <a href="http://www.tristate.ne.jp/">http://www.tristate.ne.jp/</a> (Japanese only)</p><br>
49				<dl>
50					<dt>NTP configuration ( ntp.conf )</dt>
51					<dd><br>
52						<dl>
53							<dt>server &nbsp; 127.127.40.X &nbsp; mode 1</dt>
54							<dd><br></dd>
55							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN &nbsp; flag1 0|1</dt>
56							<dd>
57								<p>Time1 may specify a constant to be added to the time offset for the time from the receiver, a fixed-point decimal number in seconds. You may specify the time offset from several tens of milli-seconds ( 0.0NN seconds ) to a hundred and several tens of milli-seconds  ( 0.1NN seconds ) for this clock.</p>
58								<p>Flag1 has no effect for time synchronization. When flag1 is set to 1, status commands are issued before DATE and STIM commands, and write a response text into the clockstats file.</p>
59								<table border="1" summary="fudge flag1">
60									<tr><td>0 (Default)</td><td>DCST and STUS commands are not issued</td></tr>
61									<tr><td>1</td><td>DCST and STUS commands are issued</td></tr>
62								</table>
63							</dd>
64						</dl>
65						<br>
66					</dd>
67					<dt>Interface</dt>
68					<dd>
69						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
70						<br>
71					</dd>
72					<dt>Time code format</dt>
73					<dd><br>
74						<table summary="CommandAndReply">
75							<tr>
76								<td>Command</td>
77								<td>&nbsp;--&gt;&nbsp;</td>
78								<td>Reply</td>
79							</tr>
80							<tr>
81								<td><code>dcst{CR}{LF}</code></td>
82								<td>&nbsp;--&gt;&nbsp;</td>
83								<td><code>valid{CR}{LF} | invalid{CR}{LF}</code></td>
84							</tr>
85							<tr>
86								<td><code>stus{CR}{LF}</code></td>
87								<td>&nbsp;--&gt;&nbsp;</td>
88								<td><code>adjusted{CR}{LF} | unadjusted{CR}{LF}</code></td>
89							</tr>
90							<tr>
91								<td><code>time{CR}{LF}</code></td>
92								<td>&nbsp;--&gt;&nbsp;</td>
93								<td><code>HH:MM:SS{CR}{LF}</code></td>
94							</tr>
95							<tr>
96								<td><code>date{CR}{LF}</code></td>
97								<td>&nbsp;--&gt;&nbsp;</td>
98								<td><code>YYYY/MM/DD WWW{CR}{LF}</code></td>
99							</tr>
100							<tr>
101								<td><code>stim{CR}{LF}</code></td>
102								<td>&nbsp;--&gt;&nbsp;</td>
103								<td><code>HH:MM:SS{CR}{LF}</code></td>
104							</tr>
105						</table>
106						<p>The date and time are requested separately. The time is requested before and after the date request to check uncertainty of the date whether it's before or after midnight.</p><br>
107					</dd>
108				</dl>
109			</li>
110
111			<li>
112				<p><a name="mode-2">C-DEX Co.,Ltd. &nbsp; JST2000</a> &nbsp; <a href="http://www.c-dex.co.jp/">http://www.c-dex.co.jp/</a> (Japanese only)</p><br>
113				<dl>
114					<dt>NTP configuration ( ntp.conf )</dt>
115					<dd><br>
116						<dl>
117							<dt>server &nbsp; 127.127.40.X &nbsp; mode 2</dt>
118							<dd><br></dd>
119							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
120						</dl>
121						<br>
122					</dd>
123					<dt>Interface</dt>
124					<dd>
125						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
126						<br>
127					</dd>
128					<dt>Time code format</dt>
129					<dd><br>
130						<table summary="CommandAndReply">
131							<tr>
132								<td>Command</td>
133								<td>&nbsp;--&gt;&nbsp;</td>
134								<td>Reply</td>
135							</tr>
136							<tr>
137								<td><code>{ENQ}1J{ETX}</code></td>
138								<td>&nbsp;--&gt;&nbsp;</td>
139								<td><code>{STX}JYYMMDDWHHMMSSS{ETX}</code></td>
140							</tr>
141						</table>
142						<br>
143					</dd>
144				</dl>
145			</li>
146
147			<li>
148				<p><a name="mode-3">Echo Keisokuki Co.,Ltd. &nbsp; LT-2000</a> &nbsp; <!-- a href="http://www.clock.co.jp/" --></p><br>
149				<p>Echo Keisokuki was dissolved. Some business of the company was taken over by FreqTime Co., Ltd. in July, 2015.</p><br>
150				<dl>
151					<dt>NTP configuration ( ntp.conf )</dt>
152					<dd><br>
153						<dl>
154							<dt>server &nbsp; 127.127.40.X &nbsp; mode 3</dt>
155							<dd><br></dd>
156							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
157						</dl>
158						<br>
159					</dd>
160					<dt>Interface</dt>
161					<dd>
162						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
163						<br>
164					</dd>
165					<dt>Time code format</dt>
166					<dd><br>
167						<table summary="CommandAndReply">
168							<tr>
169								<td>Command</td>
170								<td>&nbsp;--&gt;&nbsp;</td>
171								<td>Reply</td>
172							</tr>
173							<tr>
174								<td><code>C</code></td>
175								<td>&nbsp;--&gt;&nbsp;</td>
176								<td>( Mode 2 : Continuous )</td>
177							</tr>
178							<tr>
179								<td>( Every second before 0.5 second )</td>
180								<td></td>
181								<td><code>YYMMDDWHHMMSS{ST1}{ST2}{ST3}{ST4}{CR}</code></td>
182							</tr>
183							<tr>
184								<td><code>#</code></td>
185								<td>&nbsp;--&gt;&nbsp;</td>
186								<td>( Mode 1 : Request&amp;Send )</td>
187							</tr>
188						</table>
189						<br>
190					</dd>
191				</dl>
192			</li>
193
194			<li>
195				<p><a name="mode-4">CITIZEN T.I.C. CO.,LTD. &nbsp; JJY-200</a> &nbsp; <a href="http://www.tic-citizen.co.jp/">http://www.tic-citizen.co.jp/</a> (Japanese only)</p><br>
196				<dl>
197					<dt>NTP configuration ( ntp.conf )</dt>
198					<dd><br>
199						<dl>
200							<dt>server &nbsp; 127.127.40.X &nbsp; mode 4</dt>
201							<dd><br></dd>
202							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
203						</dl>
204						<br>
205					</dd>
206					<dt>Interface</dt>
207					<dd>
208						<p>RS-232C, 4800 BPS, 8-bits, no parity, 1 stop bit</p>
209						<br>
210					</dd>
211					<dt>Time code format</dt>
212					<dd><br>
213						<table summary="CommandAndReply">
214							<tr>
215								<td>Command</td>
216								<td>&nbsp;--&gt;&nbsp;</td>
217								<td>Reply</td>
218							</tr>
219							<tr>
220								<td>( Every second )</td>
221								<td></td>
222								<td><code>'XX YY/MM/DD W HH:MM:SS{CR}</code></td>
223							</tr>
224						</table>
225						<br>
226					</dd>
227				</dl>
228			</li>
229
230			<li>
231				<p><a name="mode-5">Tristate Ltd. &nbsp; TS-GPSclock-01</a> &nbsp; <a href="http://www.tristate.ne.jp/">http://www.tristate.ne.jp/</a> (Japanese only)</p>
232				<p>This driver supports the Tristate TS-GPSclock-01 in command/response mode, though it is a GPS clock, not JJY radio clock. Using the menus and the onboard switches, the TS-GPSclock-01 should be set to command/response mode and JST time zone.<br>
233				Besides this driver ( Type 40 ), <a href="driver20.html">the generic NMEA GPS driver ( Type 20 )</a> supports the TS-GPSclock-01 in NMEA mode.</p>
234				<dl>
235					<dt>NTP configuration ( ntp.conf )</dt>
236					<dd><br>
237						<dl>
238							<dt>server &nbsp; 127.127.40.X &nbsp; mode 5</dt>
239							<dd><br></dd>
240							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN &nbsp; flag1 0|1</dt>
241							<dd>
242								<p>Time1 may specify a constant to be added to the time offset for the time from the receiver, a fixed-point decimal number in seconds.</p>
243								<p>Flag1 has no effect for time synchronization. When a flag1 is set to 1, status command is issued before DATE and TIME commands, and write a response text into a clockstats file.</p>
244								<table border="1" summary="fudge flag1">
245									<tr><td>0 (Default)</td><td>STUS command is not issued</td></tr>
246									<tr><td>1</td><td>STUS command is issued</td></tr>
247								</table>
248							</dd>
249						</dl>
250						<br>
251					</dd>
252					<dt>Interface</dt>
253					<dd>
254						<p>USB ( /dev/ttyACM<em>0</em> )</p>
255						<br>
256					</dd>
257					<dt>Time code format</dt>
258					<dd><br>
259						<table summary="CommandAndReply">
260							<tr>
261								<td>Command</td>
262								<td>&nbsp;--&gt;&nbsp;</td>
263								<td>Reply</td>
264							</tr>
265							<tr>
266								<td><code>stus{CR}{LF}</code></td>
267								<td>&nbsp;--&gt;&nbsp;</td>
268								<td><code>*R{CR}{LF} | *G{CR}{LF} | *U{CR}{LF} | +U{CR}{LF}</code></td>
269							</tr>
270							<tr>
271								<td><code>time{CR}{LF}</code></td>
272								<td>&nbsp;--&gt;&nbsp;</td>
273								<td><code>HH:MM:SS{CR}{LF}</code></td>
274							</tr>
275							<tr>
276								<td><code>date{CR}{LF}</code></td>
277								<td>&nbsp;--&gt;&nbsp;</td>
278								<td><code>YYYY/MM/DD{CR}{LF}</code></td>
279							</tr>
280							<tr>
281								<td><code>time{CR}{LF}</code></td>
282								<td>&nbsp;--&gt;&nbsp;</td>
283								<td><code>HH:MM:SS{CR}{LF}</code></td>
284							</tr>
285						</table>
286						<p>The date and time are requested separately. The time is requested before and after the date request to check uncertainty of the date whether it's before or after midnight.</p><br>
287					</dd>
288				</dl>
289			</li>
290
291			<li>
292				<p><a name="mode-6">SEIKO TIME SYSTEMS INC. &nbsp; TDC-300</a> &nbsp; <a href="http://www.seiko-sts.co.jp/">http://www.seiko-sts.co.jp/</a> (English and Japanese)</p><br>
293				<p>The TDC-300 must be set to the type 3 data format using the front panel menu display and the switches.</p>
294				<dl>
295					<dt>NTP configuration ( ntp.conf )</dt>
296					<dd><br>
297						<dl>
298							<dt>server &nbsp; 127.127.40.X &nbsp; mode 6</dt>
299							<dd><br></dd>
300							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
301						</dl>
302						<br>
303					</dd>
304					<dt>Interface</dt>
305					<dd>
306						<p>RS-232C, 2400 BPS, 8-bits, no parity, 1 stop bit</p>
307						<br>
308					</dd>
309					<dt>Time code format</dt>
310					<dd><br>
311						<table summary="CommandAndReply">
312							<tr>
313								<td>Command</td>
314								<td>&nbsp;--&gt;&nbsp;</td>
315								<td>Reply</td>
316							</tr>
317							<tr>
318								<td></td>
319								<td></td>
320								<td><code>{STX}YYMMDDWHHMMSS{ETX}</code></td>
321							</tr>
322							<tr>
323								<td>( 5 to 10 mSec. before second )</td>
324								<td></td>
325								<td><code>{STX}{xE5}{ETX}</code></td>
326							</tr>
327						</table>
328						<br>
329					</dd>
330				</dl>
331			</li>
332
333			<li>
334				<p><a name="mode-100">Telephone JJY</a> &nbsp; <a href="http://jjy.nict.go.jp/">http://jjy.nict.go.jp/</a> (English and Japanese)</p>
335				<p>The telephone JJY is the time service through a public telephone line.<br>
336				The service is provided by the National Institute of Information and Communications Technology in Japan.</p>
337				<p>ATTENTION; This mode, the telephone JJY, can not be used with the refclock_acts ( type 18 ) at the same time.
338				Because the "phone" statement in the ntp configuration file is not involved with the "server" statement,
339				so the both the refclock_acts ( type 18 ) and this refclock_jjy ( type 40, mode 100 to 180 ) can not recognize the appropriate "phone" statement among the "phone" statements.</p>
340				<dl>
341					<dt>NTP configuration ( ntp.conf )</dt>
342					<dd><br>
343						<dl>
344							<dt>server &nbsp; 127.127.40.X &nbsp; mode (100, 101 to 180) &nbsp; minpoll N</dt>
345							<dd>
346							<p>The mode 100 is specified, this driver does not issue the loopback command in order to measure the delay, and the delay of the telephone line and the system processing is not adjusted.<br>
347							The mode 101 to 180 is specified, this driver issues the loopback command and measures the delay of the telephone line and the system processing through the Telphone JJY loopback circuit.<br>
348							The round trip time through the Telphone JJY loopback circuit is measured 5 times, and each delay time is greater than 700 milli-seconds,
349							that delay time is ignored during average delay time calculation. Also, if the valid delay time ( &lt;= 700 mS. ) is measured more than 3 times, the maximum delay time among the valid delay times is ignored,
350							and if the valid delay time is measured more than 4 times, the minimum delay time among them is ignored, like marking/grading sports judgment.<br>
351							The adjustment time is calculated by the formula,<br>
352							multiply ( the measured round trip time ) by ( ( the mode number ) - 100 ) %,<br>
353							and the adjustment delay time is added to the syncronizing time.<br>
354							If you choose the automatic delay ajustment, in other words, the mode 101 to 180 is specifed, the recommended mode number is 145 to 165.</p>
355							<p>The default polling interval 6 ( 64 seconds ) is too short for this mode. The "minpoll" should be set to greater than or equal to 8 ( 256 seconds, about 4 minutes ).<br>
356							The interval time is given the value in second power of 2. The minpoll value 12 is 4096 seconds interval ( about 1 hour ), 14 is 16384 seconds interval ( about 4.5 hours ), 16 is 65536 seconds ( about 18 hours ), respectively.</p><br>
357							</dd>
358							<dt>fudge &nbsp; 127.127.40.X &nbsp; flag1 0|1 &nbsp; flag2 0|1 &nbsp; flag3 0|1 &nbsp; flag4 0|1</dt>
359							<dd>
360								<p>Time1 may specify a constant to be added to the time offset for the time from the receiver, a fixed-point decimal number in seconds.<br>
361								When the mode 100 is specified, the time1 may be specified in order to adjust the time offset.<br>
362								When the mode 101 to 180 is specified, the time1 should not be specified because this driver adds some percentage of the measured loopback delay, depending on the value of the mode number.</p>
363								<div style="text-align:left;">Flag1 is the modem dialing type.</div>
364								<table border="1" summary="fudge flag1">
365									<tr><td>0 (Default)</td><td>Tone</td><td>ATDWTnn...nn</td></tr>
366									<tr><td>1</td><td>Pulse</td><td>ATDWPnn...nn</td></tr>
367								</table>
368								<br>
369								<div style="text-align:left;">Flag2 is the modem error correction type.</div>
370								<table border="1" summary="fudge flag2">
371									<tr><td>0 (Default)</td><td>Normal</td><td>AT\N0</td></tr>
372									<tr><td>1</td><td>Auto V42, MNP, Normal</td><td>AT\N3</td></tr>
373								</table>
374								<br>
375								<div style="text-align:left;">Flag3 is the modem speaker switch.</div>
376								<table border="1" summary="fudge flag3">
377									<tr><td>0 (Default)</td><td>Off</td><td>ATM0Ln</td></tr>
378									<tr><td>1</td><td>On</td><td>ATM2Ln</td></tr>
379								</table>
380								<br>
381								<div style="text-align:left;">Flag4 is the modem speaker volume.</div>
382								<table border="1" summary="fudge flag4">
383									<tr><td>0 (Default)</td><td>Low</td><td>ATMnL1</td></tr>
384									<tr><td>1</td><td>Middle</td><td>ATMnL2</td></tr>
385								</table>
386								<br>
387							</dd>
388							<dt>phone 042NNNNNNN</dt>
389							<dd>
390								<p>The phone number is available at <a href="http://jjy.nict.go.jp/">http://jjy.nict.go.jp/</a><br>
391								The number of digits of the phone number is checked. If the international access number and the country number are added in order to call from outside of Japan, the number of digits is over the limit.<br>
392								The first 2 or 3 digits are checked. The emergency service number and the special service number in Japan are not allowed.<br>
393								Calling from extension line, the number for an outside line should be prefix "0," ( Zero, Comma ). The prefix is also checked, and no other outside access number is allowed.</p>
394							</dd>
395						</dl>
396						<br>
397					</dd>
398					<dt>Interface</dt>
399					<dd>
400						<p>RS-232C or USB, 2400 BPS, 8-bits, no parity, 1 stop bit</p>
401						<p>Modem control commands:<br>
402						<code>ATE0Q0V1, ATMnLn, AT&amp;K4, AT+MS=V22B, AT%C0, AT\Nn, ATH1, ATDWxnn...nn</code><br>
403						<code>+++, ATH0</code></p>
404						<br>
405					</dd>
406					<dt>Time code format</dt>
407					<dd><br>
408						<table summary="CommandAndReply">
409							<tr>
410								<td>Prompt</td>
411								<td>&nbsp;--&gt;&nbsp;</td>
412								<td>Command</td>
413								<td>&nbsp;--&gt;&nbsp;</td>
414								<td>Reply</td>
415							</tr>
416							<tr>
417								<td><code>Name{SP}?{SP}</code></td>
418								<td>&nbsp;--&gt;&nbsp;</td>
419								<td><code>TJJY{CR}</code></td>
420								<td>&nbsp;--&gt;&nbsp;</td>
421								<td>Welcome messages</td>
422							</tr>
423							<tr>
424								<td><code>&gt;</code></td>
425								<td>&nbsp;--&gt;&nbsp;</td>
426								<td><code>LOOP{CR}</code></td>
427								<td>&nbsp;--&gt;&nbsp;</td>
428								<td>( Switch to the loopback circuit )</td>
429							</tr>
430							<tr>
431								<td><code>&nbsp;</code></td>
432								<td>&nbsp;&nbsp;</td>
433								<td><code>( One char. )</code></td>
434								<td>&nbsp;--&gt;&nbsp;</td>
435								<td><code>( One char. )</code></td>
436							</tr>
437							<tr>
438								<td><code>&nbsp;</code></td>
439								<td>&nbsp;&nbsp;</td>
440								<td><code>COM{CR}</code></td>
441								<td>&nbsp;--&gt;&nbsp;</td>
442								<td>( Exit from the loopback circuit )</td>
443							</tr>
444							<tr>
445								<td><code>&gt;</code></td>
446								<td>&nbsp;--&gt;&nbsp;</td>
447								<td><code>TIME{CR}</code></td>
448								<td>&nbsp;--&gt;&nbsp;</td>
449								<td><code>HHMMSS{CR}HHMMSS{CR}HHMMSS{CR}</code> 3 times on second</td>
450							</tr>
451							<tr>
452								<td><code>&gt;</code></td>
453								<td>&nbsp;--&gt;&nbsp;</td>
454								<td><code>4DATE{CR}</code></td>
455								<td>&nbsp;--&gt;&nbsp;</td>
456								<td><code>YYYYMMDD{CR}</code></td>
457							</tr>
458							<tr>
459								<td><code>&gt;</code></td>
460								<td>&nbsp;--&gt;&nbsp;</td>
461								<td><code>LEAPSEC{CR}</code></td>
462								<td>&nbsp;--&gt;&nbsp;</td>
463								<td><code>{SP}0{CR} | +1{CR} | -1{CR}</code></td>
464							</tr>
465							<tr>
466								<td><code>&gt;</code></td>
467								<td>&nbsp;--&gt;&nbsp;</td>
468								<td><code>TIME{CR}</code></td>
469								<td>&nbsp;--&gt;&nbsp;</td>
470								<td><code>HHMMSS{CR}HHMMSS{CR}HHMMSS{CR}</code> 3 times on second</td>
471							</tr>
472							<tr>
473								<td><code>&gt;</code></td>
474								<td>&nbsp;--&gt;&nbsp;</td>
475								<td><code>BYE{CR}</code></td>
476								<td>&nbsp;--&gt;&nbsp;</td>
477								<td>Sayounara messages</td>
478							</tr>
479						</table>
480						<p>The date and time are requested separately. The time is requested before and after the date request to check uncertainty of the date whether it's before or after midnight.<br>
481						The leap second is not handled, and only written in the clockstats file as an information.</p>
482						<br>
483					</dd>
484				</dl>
485			</li>
486
487		</ul>
488
489		<p>The JJY is the radio station which transmits the JST (Japan Standard Time) in long wave radio. The station JJY is operated by the National Institute of Information and Communications Technology.
490		An operating announcement and some information are available from <a href="http://www.nict.go.jp/">http://www.nict.go.jp/</a> (English and Japanese) and <a href="http://jjy.nict.go.jp/">http://jjy.nict.go.jp/</a> (English and Japanese)</p>
491		<p>The user is expected to provide a symbolic link to an available serial port device. This is typically performed by a command such as;</p>
492		<p><code>ln -s /dev/ttyS0 /dev/jjy0</code></p>
493		<p>Using an RS-232C to USB converter cable, the clock or a modem can be connected to a USB port instead of a serial port. In this case, the typical symbolic link command is as follows;</p>
494		<p><code>ln -s /dev/ttyUSB0 /dev/jjy0</code></p>
495		<p>Windows NT does not support symbolic links to device files. COM<em>X</em>: is the unit used by the driver, based on the refclock unit number, where unit 1 corresponds to COM1: and unit 3 corresponds to COM3:</p>
496		<h4>Monitor Data</h4>
497		<p>The driver writes sent and received data to/from the JJY receivers, GPS clock, and the modem into the <code>clockstats</code> file.</p>
498		<p><code>
499		statsdir /var/log/ntpd/<br>
500		filegen clockstats file clockstats type day enable
501		</code></p>
502		<div style="text-align:left;">Mark of the clockstats record</div>
503		<table border="1" summary="Clockstats">
504			<tr><td><code>JJY</code>&nbsp;</td><td>Infomation message ( This refclock starts or stops. )</td></tr>
505			<tr><td><code>--&gt;</code>&nbsp;</td><td>Sent data</td></tr>
506			<tr><td><code>&lt;--</code>&nbsp;</td><td>Received data</td></tr>
507			<tr><td><code>---</code>&nbsp;</td><td>Infomation message</td></tr>
508			<tr><td><code>===</code>&nbsp;</td><td>Infomation message ( Start of each polling, and sync. time. )</td></tr>
509			<tr><td><code>-W-</code>&nbsp;</td><td>Warning message</td></tr>
510			<tr><td><code>-X-</code>&nbsp;</td><td>Error message</td></tr>
511		</table>
512		<h4>Fudge Factors</h4>
513		<dl>
514			<dt><code>time1 <em>time</em></code></dt>
515			<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.</dd>
516			<dt><code>time2 <em>time</em></code></dt>
517			<dd>Not used by this driver.
518			<dt><code>stratum <em>number</em></code></dt>
519			<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.</dd>
520			<dt><code>refid <em>string</em></code></dt>
521			<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <code>JJY</code>.</dd>
522			<dt><code>flag1 0 | 1</code></dt>
523			<dd>See corresponding receiver.</dd>
524			<dt><code>flag2 0 | 1</code></dt>
525			<dd>See corresponding receiver.</dd>
526			<dt><code>flag3 0 | 1</code></dt>
527			<dd>See corresponding receiver.</dd>
528			<dt><code>flag4 0 | 1</code></dt>
529			<dd>See corresponding receiver.</dd>
530		</dl>
531		<hr>
532		<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
533	</body>
534
535</html>
536