From: Harlan Stenn Date: Mon, 17 Sep 2012 06:46:11 +0000 (-0400) Subject: [Bug 2278] ACTS flag3 mismatch between code and driver18.html. X-Git-Tag: NTP_4_2_7P329~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ed92cace5344fd7dc724d0f6c1ceff9aaf84ef4;p=thirdparty%2Fntp.git [Bug 2278] ACTS flag3 mismatch between code and driver18.html. bk: 5056c733zrJv4sFips-pqcq9eE1fKw --- diff --git a/ChangeLog b/ChangeLog index 7b980714d..c9c6e7964 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2278] ACTS flag3 mismatch between code and driver18.html. (4.2.7p306) 2012/09/15 Released by Harlan Stenn * [Bug 752] ToS cleanup from Mike Tatarinov. (4.2.7p305) 2012/09/15 Released by Harlan Stenn diff --git a/html/drivers/driver18.html b/html/drivers/driver18.html index 49a289a58..fdedebe46 100644 --- a/html/drivers/driver18.html +++ b/html/drivers/driver18.html @@ -8,7 +8,7 @@

NIST/USNO/PTB Modem Time Services

-

Autjhor: David L. Mills (mills@udel.edu)
+

Author: David L. Mills (mills@udel.edu)
Last update: 03-Sep-2010 17:59 UTC

@@ -27,7 +27,7 @@

There are three modes of operation selected by the mode keyword in the server configuration command. In manual mode (2) the calling program is initiated by setting fudge flag1. This can be done manually using ntpdc, or by a cron job. In auto mode (0) flag1 is set at each poll event. In backup mode (1) flag1 is set at each poll event, but only if no other synchronization sources are available.

When flag1 is set, the calling program dials the first number in the list specified by the phone command. If the call fails for any reason, the program dials the second number and so on. The phone number is specified by the Hayes ATDT prefix followed by the number itself, including the prefix and long-distance digits and delay code, if necessary. The flag1 is reset and the calling program terminated if (a) valid clock update has been determined, (b) no more numbers remain in the list, (c) a device fault or timeout occurs or (d) fudge flag1 is reset manually using ntpdc.

The driver automatically recognizes the message format of each modem time service. It selects the parsing algorithm depending on the message length. There is some hazard should the message be corrupted. However, the data format is checked carefully and only if all checks succeed is the message accepted. Corrupted lines are discarded without complaint. Once the service is known, the reference identifier for the driver is set to NIST, USNO, PTB or WWVB as appropriate.

-

Ordinarily, the serial port is connected to a modem; however, if fudge flag3 is set, it can be connected directly to a Spectracom WWV or GPS radio for testing or calibration. The Spectracom radio can be connected via a modem if the radio is connfigured to send time codes continuoulsly at 1-s intervals. In principle, fudge flag2 enables port locking, allowing the modem to be shared when not in use by this driver. At least on Solaris with the current NTP I/O routines, this results in lots of ugly error messages.

+

The Spectracom radio can be connected via a modem if the radio is configured to send time codes continuously at 1-s intervals. In principle, fudge flag2 enables port locking, allowing the modem to be shared when not in use by this driver. At least on Solaris with the current NTP I/O routines, this results in lots of ugly error messages.

The minpoll and maxpoll keywords of the server configuration command can be used to limit the intervals between calls. The recommended settings are 12 (1.1 hours) for minpoll and 17 (36 hours) for maxpoll. Ordinarily, the poll interval will start at minpoll and ramp up to maxpoll in a day or two.

US Phone Numbers and Formats

Note: Phone numbers include the entire Hayes modem command, including the ATDT and other control codes as may be necessary. For most cases only the ATDT may be necessary.

@@ -54,7 +54,7 @@

Spectracom GPS and WWVB Receivers

If a modem is connected to a Spectracom receiver, this driver will call it and retrieve the time in one of two formats, 0 and 2. Ordinarily, the receiver requires a T in order to return the timecode. As this driver does not send data via the modem, it must either be configured in continuous mode or be polled by another local driver.

Monitor Data

-

The received timecode is written as-is to the clockstats file along with the Hayes connection and hangup commands and result codes.

+

The received timecode is written as-is to the clockstats file along with the Hayes connection and hang-up commands and result codes.

Fudge Factors

time1 time
@@ -70,7 +70,7 @@
flag2 0 | 1
Enables port locking if 1, disables if 0 (default).
flag3 0 | 1
-
Enables direct connection if 1, or modem if 0 (default). If set, the driver will send a single character 'T' at every poll event.
+
Not used by this driver.
flag4 0 | 1
Not used by this driver.