xref: /freebsd/contrib/ntp/html/drivers/driver40.html (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
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 &nbsp; flag2 0|1 &nbsp; time2 H</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>Time2 may specify a grace period in hours after the 'adjusted' reply of the STUS command stopped coming.<br>This hours is effective when both flag1 and flag2 are set to 1.</p>
59								<p>Flag1 has no effect for time synchronization unless flag2 is set to 1.<br>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>
60								<table border="1" summary="fudge flag1">
61									<tr><td>0 (Default)</td><td>DCST and STUS commands are not issued</td></tr>
62									<tr><td>1</td><td>DCST and STUS commands are issued</td></tr>
63								</table>
64								<p>Flag2 enables the time synchronization only when the reply of the STUS is 'adjusted'. When this functionality is used, flag1 must be set to 1 together.</p>
65								<table border="1" summary="fudge flag2">
66									<tr><td>0 (Default)</td><td>Always</td></tr>
67									<tr><td>1</td><td>'adjusted' only</td></tr>
68								</table>
69							</dd>
70						</dl>
71						<br>
72					</dd>
73					<dt>Interface</dt>
74					<dd>
75						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
76						<br>
77					</dd>
78					<dt>Time code format</dt>
79					<dd><br>
80						<table summary="CommandAndReply">
81							<tr>
82								<td>Command</td>
83								<td>&nbsp;--&gt;&nbsp;</td>
84								<td>Reply</td>
85							</tr>
86							<tr>
87								<td><code>dcst{CR}{LF}</code></td>
88								<td>&nbsp;--&gt;&nbsp;</td>
89								<td><code>valid{CR}{LF} | invalid{CR}{LF}</code></td>
90							</tr>
91							<tr>
92								<td><code>stus{CR}{LF}</code></td>
93								<td>&nbsp;--&gt;&nbsp;</td>
94								<td><code>adjusted{CR}{LF} | unadjusted{CR}{LF}</code></td>
95							</tr>
96							<tr>
97								<td><code>time{CR}{LF}</code></td>
98								<td>&nbsp;--&gt;&nbsp;</td>
99								<td><code>HH:MM:SS{CR}{LF}</code></td>
100							</tr>
101							<tr>
102								<td><code>date{CR}{LF}</code></td>
103								<td>&nbsp;--&gt;&nbsp;</td>
104								<td><code>YYYY/MM/DD WWW{CR}{LF}</code></td>
105							</tr>
106							<tr>
107								<td><code>stim{CR}{LF}</code></td>
108								<td>&nbsp;--&gt;&nbsp;</td>
109								<td><code>HH:MM:SS{CR}{LF}</code></td>
110							</tr>
111						</table>
112						<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>
113					</dd>
114				</dl>
115			</li>
116
117			<li>
118				<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>
119				<dl>
120					<dt>NTP configuration ( ntp.conf )</dt>
121					<dd><br>
122						<dl>
123							<dt>server &nbsp; 127.127.40.X &nbsp; mode 2</dt>
124							<dd><br></dd>
125							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
126						</dl>
127						<br>
128					</dd>
129					<dt>Interface</dt>
130					<dd>
131						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
132						<br>
133					</dd>
134					<dt>Time code format</dt>
135					<dd><br>
136						<table summary="CommandAndReply">
137							<tr>
138								<td>Command</td>
139								<td>&nbsp;--&gt;&nbsp;</td>
140								<td>Reply</td>
141							</tr>
142							<tr>
143								<td><code>{ENQ}1J{ETX}</code></td>
144								<td>&nbsp;--&gt;&nbsp;</td>
145								<td><code>{STX}JYYMMDDWHHMMSSS{ETX}</code></td>
146							</tr>
147						</table>
148						<br>
149					</dd>
150				</dl>
151			</li>
152
153			<li>
154				<p><a name="mode-3">Echo Keisokuki Co.,Ltd. &nbsp; LT-2000</a> &nbsp; <!-- a href="http://www.clock.co.jp/" --></p><br>
155				<p>Echo Keisokuki was dissolved. Some business of the company was taken over by FreqTime Co., Ltd. in July, 2015.</p><br>
156				<dl>
157					<dt>NTP configuration ( ntp.conf )</dt>
158					<dd><br>
159						<dl>
160							<dt>server &nbsp; 127.127.40.X &nbsp; mode 3</dt>
161							<dd><br></dd>
162							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
163						</dl>
164						<br>
165					</dd>
166					<dt>Interface</dt>
167					<dd>
168						<p>RS-232C, 9600 BPS, 8-bits, no parity, 1 stop bit</p>
169						<br>
170					</dd>
171					<dt>Time code format</dt>
172					<dd><br>
173						<table summary="CommandAndReply">
174							<tr>
175								<td>Command</td>
176								<td>&nbsp;--&gt;&nbsp;</td>
177								<td>Reply</td>
178							</tr>
179							<tr>
180								<td><code>C</code></td>
181								<td>&nbsp;--&gt;&nbsp;</td>
182								<td>( Mode 2 : Continuous )</td>
183							</tr>
184							<tr>
185								<td>( Every second before 0.5 second )</td>
186								<td></td>
187								<td><code>YYMMDDWHHMMSS{ST1}{ST2}{ST3}{ST4}{CR}</code></td>
188							</tr>
189							<tr>
190								<td><code>#</code></td>
191								<td>&nbsp;--&gt;&nbsp;</td>
192								<td>( Mode 1 : Request&amp;Send )</td>
193							</tr>
194						</table>
195						<br>
196					</dd>
197				</dl>
198			</li>
199
200			<li>
201				<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>
202				<p>The JJY-200 became the end of sales in 2013.</p><br>
203				<dl>
204					<dt>NTP configuration ( ntp.conf )</dt>
205					<dd><br>
206						<dl>
207							<dt>server &nbsp; 127.127.40.X &nbsp; mode 4</dt>
208							<dd><br></dd>
209							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
210						</dl>
211						<br>
212					</dd>
213					<dt>Interface</dt>
214					<dd>
215						<p>RS-232C, 4800 BPS, 8-bits, no parity, 1 stop bit</p>
216						<br>
217					</dd>
218					<dt>Time code format</dt>
219					<dd><br>
220						<table summary="CommandAndReply">
221							<tr>
222								<td>Command</td>
223								<td>&nbsp;--&gt;&nbsp;</td>
224								<td>Reply</td>
225							</tr>
226							<tr>
227								<td>( Every second )</td>
228								<td></td>
229								<td><code>'XX YY/MM/DD W HH:MM:SS{CR}</code></td>
230							</tr>
231						</table>
232						<br>
233					</dd>
234				</dl>
235			</li>
236
237			<li>
238				<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>
239				<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>
240				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>
241				<dl>
242					<dt>NTP configuration ( ntp.conf )</dt>
243					<dd><br>
244						<dl>
245							<dt>server &nbsp; 127.127.40.X &nbsp; mode 5</dt>
246							<dd><br></dd>
247							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN &nbsp; flag1 0|1</dt>
248							<dd>
249								<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>
250								<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>
251								<table border="1" summary="fudge flag1">
252									<tr><td>0 (Default)</td><td>STUS command is not issued</td></tr>
253									<tr><td>1</td><td>STUS command is issued</td></tr>
254								</table>
255							</dd>
256						</dl>
257						<br>
258					</dd>
259					<dt>Interface</dt>
260					<dd>
261						<p>USB ( /dev/ttyACM<em>0</em> )</p>
262						<br>
263					</dd>
264					<dt>Time code format</dt>
265					<dd><br>
266						<table summary="CommandAndReply">
267							<tr>
268								<td>Command</td>
269								<td>&nbsp;--&gt;&nbsp;</td>
270								<td>Reply</td>
271							</tr>
272							<tr>
273								<td><code>stus{CR}{LF}</code></td>
274								<td>&nbsp;--&gt;&nbsp;</td>
275								<td><code>*R{CR}{LF} | *G{CR}{LF} | *U{CR}{LF} | +U{CR}{LF}</code></td>
276							</tr>
277							<tr>
278								<td><code>time{CR}{LF}</code></td>
279								<td>&nbsp;--&gt;&nbsp;</td>
280								<td><code>HH:MM:SS{CR}{LF}</code></td>
281							</tr>
282							<tr>
283								<td><code>date{CR}{LF}</code></td>
284								<td>&nbsp;--&gt;&nbsp;</td>
285								<td><code>YYYY/MM/DD{CR}{LF}</code></td>
286							</tr>
287							<tr>
288								<td><code>time{CR}{LF}</code></td>
289								<td>&nbsp;--&gt;&nbsp;</td>
290								<td><code>HH:MM:SS{CR}{LF}</code></td>
291							</tr>
292						</table>
293						<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>
294					</dd>
295				</dl>
296			</li>
297
298			<li>
299				<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>
300				<p>The TDC-300 must be set to the type 3 data format using the front panel menu display and the switches.</p>
301				<dl>
302					<dt>NTP configuration ( ntp.conf )</dt>
303					<dd><br>
304						<dl>
305							<dt>server &nbsp; 127.127.40.X &nbsp; mode 6</dt>
306							<dd><br></dd>
307							<dt>fudge &nbsp; 127.127.40.X &nbsp; time1 0.NNN</dt>
308						</dl>
309						<br>
310					</dd>
311					<dt>Interface</dt>
312					<dd>
313						<p>RS-232C, 2400 BPS, 8-bits, no parity, 1 stop bit</p>
314						<br>
315					</dd>
316					<dt>Time code format</dt>
317					<dd><br>
318						<table summary="CommandAndReply">
319							<tr>
320								<td>Command</td>
321								<td>&nbsp;--&gt;&nbsp;</td>
322								<td>Reply</td>
323							</tr>
324							<tr>
325								<td></td>
326								<td></td>
327								<td><code>{STX}YYMMDDWHHMMSS{ETX}</code></td>
328							</tr>
329							<tr>
330								<td>( 5 to 10 mSec. before second )</td>
331								<td></td>
332								<td><code>{STX}{xE5}{ETX}</code></td>
333							</tr>
334						</table>
335						<br>
336					</dd>
337				</dl>
338			</li>
339
340			<li>
341				<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>
342				<p>The telephone JJY is the time service through a public telephone line.<br>
343				The service is provided by the National Institute of Information and Communications Technology in Japan.</p>
344				<p>ATTENTION; This mode, the telephone JJY, can not be used with the refclock_acts ( type 18 ) at the same time.
345				Because the "phone" statement in the ntp configuration file is not involved with the "server" statement,
346				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>
347				<dl>
348					<dt>NTP configuration ( ntp.conf )</dt>
349					<dd><br>
350						<dl>
351							<dt>server &nbsp; 127.127.40.X &nbsp; mode (100, 101 to 180) &nbsp; minpoll N</dt>
352							<dd>
353							<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>
354							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>
355							The round trip time through the Telphone JJY loopback circuit is measured 5 times, and each delay time is greater than 700 milli-seconds,
356							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,
357							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>
358							The adjustment time is calculated by the formula,<br>
359							multiply ( the measured round trip time ) by ( ( the mode number ) - 100 ) %,<br>
360							and the adjustment delay time is added to the syncronizing time.<br>
361							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>
362							<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>
363							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>
364							</dd>
365							<dt>fudge &nbsp; 127.127.40.X &nbsp; flag1 0|1 &nbsp; flag2 0|1 &nbsp; flag3 0|1 &nbsp; flag4 0|1</dt>
366							<dd>
367								<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>
368								When the mode 100 is specified, the time1 may be specified in order to adjust the time offset.<br>
369								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>
370								<div style="text-align:left;">Flag1 is the modem dialing type.</div>
371								<table border="1" summary="fudge flag1">
372									<tr><td>0 (Default)</td><td>Tone</td><td>ATDWTnn...nn</td></tr>
373									<tr><td>1</td><td>Pulse</td><td>ATDWPnn...nn</td></tr>
374								</table>
375								<br>
376								<div style="text-align:left;">Flag2 is the modem error correction type.</div>
377								<table border="1" summary="fudge flag2">
378									<tr><td>0 (Default)</td><td>Normal</td><td>AT\N0</td></tr>
379									<tr><td>1</td><td>Auto V42, MNP, Normal</td><td>AT\N3</td></tr>
380								</table>
381								<br>
382								<div style="text-align:left;">Flag3 is the modem speaker switch.</div>
383								<table border="1" summary="fudge flag3">
384									<tr><td>0 (Default)</td><td>Off</td><td>ATM0Ln</td></tr>
385									<tr><td>1</td><td>On</td><td>ATM2Ln</td></tr>
386								</table>
387								<br>
388								<div style="text-align:left;">Flag4 is the modem speaker volume.</div>
389								<table border="1" summary="fudge flag4">
390									<tr><td>0 (Default)</td><td>Low</td><td>ATMnL1</td></tr>
391									<tr><td>1</td><td>Middle</td><td>ATMnL2</td></tr>
392								</table>
393								<br>
394							</dd>
395							<dt>phone 042NNNNNNN</dt>
396							<dd>
397								<p>The phone number is available at <a href="http://jjy.nict.go.jp/">http://jjy.nict.go.jp/</a><br>
398								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>
399								The first 2 or 3 digits are checked. The emergency service number and the special service number in Japan are not allowed.<br>
400								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>
401							</dd>
402						</dl>
403						<br>
404					</dd>
405					<dt>Interface</dt>
406					<dd>
407						<p>RS-232C or USB, 2400 BPS, 8-bits, no parity, 1 stop bit</p>
408						<p>Modem control commands:<br>
409						<code>ATE0Q0V1, ATMnLn, AT&amp;K4, AT+MS=V22B, AT%C0, AT\Nn, ATH1, ATDWxnn...nn</code><br>
410						<code>+++, ATH0</code></p>
411						<br>
412					</dd>
413					<dt>Time code format</dt>
414					<dd><br>
415						<table summary="CommandAndReply">
416							<tr>
417								<td>Prompt</td>
418								<td>&nbsp;--&gt;&nbsp;</td>
419								<td>Command</td>
420								<td>&nbsp;--&gt;&nbsp;</td>
421								<td>Reply</td>
422							</tr>
423							<tr>
424								<td><code>Name{SP}?{SP}</code></td>
425								<td>&nbsp;--&gt;&nbsp;</td>
426								<td><code>TJJY{CR}</code></td>
427								<td>&nbsp;--&gt;&nbsp;</td>
428								<td>Welcome messages</td>
429							</tr>
430							<tr>
431								<td><code>&gt;</code></td>
432								<td>&nbsp;--&gt;&nbsp;</td>
433								<td><code>LOOP{CR}</code></td>
434								<td>&nbsp;--&gt;&nbsp;</td>
435								<td>( Switch to the loopback circuit )</td>
436							</tr>
437							<tr>
438								<td><code>&nbsp;</code></td>
439								<td>&nbsp;&nbsp;</td>
440								<td><code>( One char. )</code></td>
441								<td>&nbsp;--&gt;&nbsp;</td>
442								<td><code>( One char. )</code></td>
443							</tr>
444							<tr>
445								<td><code>&nbsp;</code></td>
446								<td>&nbsp;&nbsp;</td>
447								<td><code>COM{CR}</code></td>
448								<td>&nbsp;--&gt;&nbsp;</td>
449								<td>( Exit from the loopback circuit )</td>
450							</tr>
451							<tr>
452								<td><code>&gt;</code></td>
453								<td>&nbsp;--&gt;&nbsp;</td>
454								<td><code>TIME{CR}</code></td>
455								<td>&nbsp;--&gt;&nbsp;</td>
456								<td><code>HHMMSS{CR}HHMMSS{CR}HHMMSS{CR}</code> 3 times on second</td>
457							</tr>
458							<tr>
459								<td><code>&gt;</code></td>
460								<td>&nbsp;--&gt;&nbsp;</td>
461								<td><code>4DATE{CR}</code></td>
462								<td>&nbsp;--&gt;&nbsp;</td>
463								<td><code>YYYYMMDD{CR}</code></td>
464							</tr>
465							<tr>
466								<td><code>&gt;</code></td>
467								<td>&nbsp;--&gt;&nbsp;</td>
468								<td><code>LEAPSEC{CR}</code></td>
469								<td>&nbsp;--&gt;&nbsp;</td>
470								<td><code>{SP}0{CR} | +1{CR} | -1{CR}</code></td>
471							</tr>
472							<tr>
473								<td><code>&gt;</code></td>
474								<td>&nbsp;--&gt;&nbsp;</td>
475								<td><code>TIME{CR}</code></td>
476								<td>&nbsp;--&gt;&nbsp;</td>
477								<td><code>HHMMSS{CR}HHMMSS{CR}HHMMSS{CR}</code> 3 times on second</td>
478							</tr>
479							<tr>
480								<td><code>&gt;</code></td>
481								<td>&nbsp;--&gt;&nbsp;</td>
482								<td><code>BYE{CR}</code></td>
483								<td>&nbsp;--&gt;&nbsp;</td>
484								<td>Sayounara messages</td>
485							</tr>
486						</table>
487						<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>
488						The leap second is not handled, and only written in the clockstats file as an information.</p>
489						<br>
490					</dd>
491				</dl>
492			</li>
493
494		</ul>
495
496		<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.
497		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>
498		<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>
499		<p><code>ln -s /dev/ttyS0 /dev/jjy0</code></p>
500		<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>
501		<p><code>ln -s /dev/ttyUSB0 /dev/jjy0</code></p>
502		<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>
503		<h4>Monitor Data</h4>
504		<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>
505		<p><code>
506		statsdir /var/log/ntpd/<br>
507		filegen clockstats file clockstats type day enable
508		</code></p>
509		<div style="text-align:left;">Mark of the clockstats record</div>
510		<table border="1" summary="Clockstats">
511			<tr><td><code>JJY</code>&nbsp;</td><td>Infomation message ( This refclock starts or stops. )</td></tr>
512			<tr><td><code>--&gt;</code>&nbsp;</td><td>Sent data</td></tr>
513			<tr><td><code>&lt;--</code>&nbsp;</td><td>Received data</td></tr>
514			<tr><td><code>---</code>&nbsp;</td><td>Infomation message</td></tr>
515			<tr><td><code>===</code>&nbsp;</td><td>Infomation message ( Start of each polling, and sync. time. )</td></tr>
516			<tr><td><code>-W-</code>&nbsp;</td><td>Warning message</td></tr>
517			<tr><td><code>-X-</code>&nbsp;</td><td>Error message</td></tr>
518		</table>
519		<h4>Fudge Factors</h4>
520		<dl>
521			<dt><code>time1 <em>time</em></code></dt>
522			<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.</dd>
523			<dt><code>time2 <em>time</em></code></dt>
524			<dd>Not used by this driver.
525			<dt><code>stratum <em>number</em></code></dt>
526			<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.</dd>
527			<dt><code>refid <em>string</em></code></dt>
528			<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <code>JJY</code>.</dd>
529			<dt><code>flag1 0 | 1</code></dt>
530			<dd>See corresponding receiver.</dd>
531			<dt><code>flag2 0 | 1</code></dt>
532			<dd>See corresponding receiver.</dd>
533			<dt><code>flag3 0 | 1</code></dt>
534			<dd>See corresponding receiver.</dd>
535			<dt><code>flag4 0 | 1</code></dt>
536			<dd>See corresponding receiver.</dd>
537		</dl>
538		<hr>
539		<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
540	</body>
541
542</html>
543