From: Frank Kardel Date: Fri, 22 Dec 2006 20:35:42 +0000 (+0000) Subject: driver8.html, refclock_parse.c: X-Git-Tag: NTP_4_2_4~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c6a20c4fc96c02c08ae8124338313e690e93fd9;p=thirdparty%2Fntp.git driver8.html, refclock_parse.c: Bug 746 (RFE): add configuration for Expert mouseCLOCK USB v2.0 as mode 19 bk: 458c419esR_DovIJS_WT8SHfq31Qww --- diff --git a/html/drivers/driver8.html b/html/drivers/driver8.html index 93cbef994..2ffed2a2e 100644 --- a/html/drivers/driver8.html +++ b/html/drivers/driver8.html @@ -18,7 +18,7 @@ Serial Port: /dev/refclock-u; TTY mode according to clock type
PPS device: /dev/refclockpps-u; alternate PPS device (if not available via the serial port)

Description

- The PARSE driver supports 19 different clock types/configurations. PARSE is actually a multi-clock driver.
+ The PARSE driver supports 20 different clock types/configurations. PARSE is actually a multi-clock driver.

The actual receiver status is mapped into various synchronization states generally used by receivers. The driver is configured to interpret the time codes of Meinberg DCF77 AM receivers, DCF77 FM receivers, Meinberg GPS16x/17x receivers, Trimble SV6 GPS, ELV DCF7000, Schmid, Wharton 400A and low cost receivers (see list below).

The reference clock support in NTP contains the necessary configuration tables for those receivers. In addition to supporting several different clock types and up to 4 devices, the processing of a PPS signal is also provided as a configuration option. The PPS configuration option uses the receiver-generated time stamps for feeding the PPS loopfilter control for much finer clock synchronization.

@@ -154,6 +154,10 @@

This mode works without additional data communication (version, GPS status etc.) and thus should be used with multidrop, heterogeneous multiclient operation.

Note: mode 18 must not be used with Meinberg PCI cards, use mode 2 instead.

+
  • server 127.127.8.0-3 mode 19 +

    Gude Analog- und Digitalsystem GmbH 'Expert mouseCLOCK USB v2.0'
    +

    +

    Actual data formats and setup requirements of the various clocks can be found in NTP PARSE clock data formats.

    Operation

    diff --git a/ntpd/refclock_parse.c b/ntpd/refclock_parse.c index db6652976..f24c75c5f 100644 --- a/ntpd/refclock_parse.c +++ b/ntpd/refclock_parse.c @@ -1,7 +1,7 @@ /* - * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.77 2006/08/05 07:44:49 kardel RELEASE_20060805_A + * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.78 2006/12/22 20:08:27 kardel RELEASE_20061222_A * - * refclock_parse.c,v 4.77 2006/08/05 07:44:49 kardel RELEASE_20060805_A + * refclock_parse.c,v 4.78 2006/12/22 20:08:27 kardel RELEASE_20061222_A * * generic reference clock driver for several DCF/GPS/MSF/... receivers * @@ -182,7 +182,7 @@ #include "ieee754io.h" #include "recvbuff.h" -static char rcsid[] = "refclock_parse.c,v 4.77 2006/08/05 07:44:49 kardel RELEASE_20060805_A"; +static char rcsid[] = "refclock_parse.c,v 4.78 2006/12/22 20:08:27 kardel RELEASE_20061222_A"; /**=========================================================================== ** external interface to ntp mechanism @@ -648,6 +648,11 @@ static poll_info_t wsdcf_pollinfo = { WS_POLLRATE, WS_POLLCMD, WS_CMDSIZE }; #define CONRAD_BASEDELAY 0.292 /* Conrad receiver @ 50 Baud on a Sun */ #define CONRAD_DESCRIPTION "RAW DCF77 CODE (Conrad DCF77 receiver module)" +/* Gude Analog- und Digitalsystem GmbH 'Expert mouseCLOCK USB v2.0' */ +#define GUDE_EMC_USB_V20_SPEED (B4800) +#define GUDE_EMC_USB_V20_BASEDELAY 0.425 /* USB serial<->USB converter FTDI232R */ +#define GUDE_EMC_USB_V20_DESCRIPTION "RAW DCF77 CODE (Expert mouseCLOCK USB v2.0)" + /* * TimeBrick receiver */ @@ -1317,6 +1322,29 @@ static struct parse_clockinfo GPS16X_SAMPLES, GPS16X_KEEP }, + { /* mode 19 */ + RAWDCF_FLAGS, + NO_POLL, + RAWDCF_INIT, + NO_EVENT, + NO_END, + NO_MESSAGE, + NO_LCLDATA, + RAWDCF_ROOTDELAY, + GUDE_EMC_USB_V20_BASEDELAY, + DCF_A_ID, + GUDE_EMC_USB_V20_DESCRIPTION, + RAWDCF_FORMAT, + DCF_TYPE, + RAWDCF_MAXUNSYNC, + GUDE_EMC_USB_V20_SPEED, + RAWDCF_CFLAG, + RAWDCF_IFLAG, + RAWDCF_OFLAG, + RAWDCF_LFLAG, + RAWDCF_SAMPLES, + RAWDCF_KEEP + }, }; static int ncltypes = sizeof(parse_clockinfo) / sizeof(struct parse_clockinfo); @@ -5707,6 +5735,9 @@ int refclock_parse_bs; * History: * * refclock_parse.c,v + * Revision 4.78 2006/12/22 20:08:27 kardel + * Bug 746 (RFE): add configuration for Expert mouseCLOCK USB v2.0 as mode 19 + * * Revision 4.77 2006/08/05 07:44:49 kardel * support optionally separate PPS devices via /dev/refclockpps-{0..3} *