From 118e757284cbb8fc4f43a713e892b41504b50a5f Mon Sep 17 00:00:00 2001 From: roberto Date: Tue, 20 Jul 2004 15:01:56 +0000 Subject: Virgin import of ntpd 4.2.0 --- contrib/ntp/html/drivers/driver29.html | 797 +++++++++++++++++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 contrib/ntp/html/drivers/driver29.html (limited to 'contrib/ntp/html/drivers/driver29.html') diff --git a/contrib/ntp/html/drivers/driver29.html b/contrib/ntp/html/drivers/driver29.html new file mode 100644 index 0000000..65600bf --- /dev/null +++ b/contrib/ntp/html/drivers/driver29.html @@ -0,0 +1,797 @@ + + + + + + + Trimble Palisade Receiver + + + + +

Trimble Palisade Receiver +
+

+

+

Synopsis

+ + + + + + + + + + + + + + + + + + + + + +
+
+ Address: 
+
127.127.29.u
+
+ Reference ID:
+
GPS
+
+ Driver ID:
+
GPS_PALISADE
+
+ Serial Port:
+
/dev/palisadeu
+
+ Serial I/O:
+
9600 baud, 8-bits, 1-stop, odd parity
+

Description

+ The refclock_palisade driver supports Trimble Navigation's Palisade Smart Antenna GPS receiver.
+ Additional software and information about the Palisade GPS is available from: http://www.trimble.com/oem/ntp.
+ Latest NTP driver source, executables and documentation is maintained at: ftp://ftp.trimble.com/pub/ntp +

This documentation describes version 7.12 of the GPS Firmware and version 2.46 (July 15, 1999) and later, of the driver source.
+  

+

Operating System Compatibility

+ The Palisade driver has been tested on the following software and hardware platforms:
+   +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PlatformOperating SystemNTP SourcesAccuracy
i386 (PC) LinuxNTP Distribution10 us
i386 (PC) Windows NTftp://ftp.trimble.com/pub/ntp1 ms
SUNSolaris 2.xNTP Distribution50 us
Hewlett-PackardHPUX 9, 10, 11http://us-support.external.hp.com50 us
VariousFree BSDNTP Distribution20 us
+
+

GPS Receiver

+ The Palisade GPS receiver is an 8-channel smart antenna, housing the GPS receiver, antenna and interface in a single unit, and is designed for rooftop deployment in static timing applications. +

Palisade generates a PPS synchronized to UTC within +/- 100 ns.  The Palisade's external event input with 40 nanosecond resolution is utilized by the Palisade NTP driver for asynchronous precision time transfer.

+

No user initialization of the receiver is required. This driver is compatible with the following versions of Palisade:
+  

+
+ + + + + + + + + + + + + + + + + + + + + +
+
+ Version
+
+
+ Event Input
+
+
+ Trimble Part Number
+
+
+ 7.02
+
+
+ No
+
+
+ 26664-00
+
+
+ 7.02E
+
+
+ Yes
+
+
+ 26664-10
+
+
+ 7.12
+
+
+ Yes
+
+
+ 38158-00
+
+
+
+
+ Note: When using Palisade 26664-00, you must set fudge flag2 to 1 in ntp.conf. See configuration. +
+
+

GPS Installation

+ A location with unobstructed view of the horizon is recommended. Palisade is designed to be securely mounted atop standard 3/4 inch threaded pipe. +

The 12 conductor (dia. 10 mm)  power and I/O cable must be routed from the rooftop site to the NTP server and properly strain relieved.

+

GPS Connection

+ The Palisade is equipped with dual (A & B) RS-422 serial interfaces and a differential TTL PPS output. An RS-232 / RS-422 Interface Module is supplied with the Palisade NTP Synchronization Kit. Palisade port A must be connected to the NTP host server. Maximum antenna cable length is 500 meters. See the pinouts table for detailed connection Information. +

Palisade's port B provides a TSIP (Trimble Standard Interface Protocol) interface for diagnostics, configuration, and monitoring. Port B and the PPS output are not currently used by the Palisade NTP reference clock driver.
+  

+
+
+

O/S Serial Port Configuration

+ The driver attempts to open the device /dev/palisadeu where u is the NTP refclock unit number as defined by the LSB of the refclock address.  Valid refclock unit numbers are 0 - 3. +

The user is expected to provide a symbolic link to an available serial port device.  This is typically performed by a command such as:

+
+ ln -s /dev/ttyS0 /dev/palisade0
+ Windows NT does not support symbolic links to device files. COMx: is used by the driver, based on the refclock unit number, where unit 1 corresponds to COM1: and unit 3 corresponds to COM3:
+   +

NTP Configuration

+ Palisade NTP configuration file "ntp.conf" with event polling:
+ #------------------------------------------------------------------------------
+ # The Primary reference
+ server 127.127.29.0 # Trimble Palisade GPS Refclock Unit #0
+ peer terrapin.csc.ncsu.edu # internet server
+ # Drift file for expedient re-synchronization after downtime or reboot.
+ driftfile /etc/ntp.drift
+ #------------------------------------------------------------------------------ +

Configuration without event polling:
+ #------------------------------------------------------------------------------
+ # The Primary reference
+ server 127.127.29.0 # Trimble Palisade GPS (Stratum 1).
+ # Set packet delay
+ fudge 127.127.29.0 time1 0.020
+ # and set flag2 to turn off event polling.
+ fudge 127.127.29.0 flag2 1
+ #------------------------------------------------------------------------------
+  

+

Time Transfer and Polling

+ Time transfer to the NTP host is performed via the Palisade's comprehensive time packet output. The time packets are output once per second, and whenever an event timestamp is requested. +

The driver requests an event time stamp at the end of each polling interval, by pulsing the RTS (request to send) line on the serial port. The Palisade GPS responds with a time stamped event packet.

+

Time stamps are reported by the Palisade with respect to UTC time. The GPS receiver must download UTC offset information from GPS satellites. After an initial UTC download, the receiver will always start with correct UTC offset information.
+  

+

Run NTP in Debugging Mode

+ The following procedure is recommended for installing and testing a Palisade NTP driver: +
    +
  1. Perform initial checkout procedures. Place the GPS receiver outdoors; with clear view of the sky. Allow the receiver to obtain an UTC almanac. +
  2. Verify presence of timing packets by observing the 1 Hz (PPS) led on the interface module. It should flash once per second. +
  3. Connect Palisade's port A to the NTP host. +
  4. Configure NTP and the serial I/O port on the host system. +
  5. Initially use fudge flag2 in ntp.conf, to disable event polling (see configuration). +
  6. Run NTP in debug mode (-d -d), to observe Palisade_receive events. +
  7. The driver reports the tracking status of the receiver. Make sure it is tracking several satellites. +
  8. Remove fudge flag2 and restart ntpd in debug mode to observe palisade_receive events. +
  9. If event polling fails, verify the connections and that the host hardware supports RTS control. +
+

Event Logging

+ System and Event log entries are generated by NTP to report significant system events. Administrators should monitor the system log to observe NTP error messages. Log entries generated by the Palisade NTP reference clock driver will be of the form: +
+
Nov 14 16:16:21 terrapin ntpd[1127]: Palisade #0: message
+
+

Fudge Factors

+
+
time1 time +
Specifies the time offset calibration factor, in seconds and fraction, with default 0.0. If event capture is not used, time1 should be set to 20 milliseconds to correct serial line and operating system delays incurred in capturing time stamps from the synchronous packets. +
stratum number +
Specifies the driver stratum, in decimal from 0 to 15, with default 0. +
refid string +
Specifies the driver reference identifier, GPS. +
flag2 0 | 1 +
When set to 1, driver does not use hardware event capture. The synchronous packet output by the receiver at the beginning of each second is time stamped by the driver. If triggering the event pulse fails, the driver falls back to this mode automatically. +
+

Mode Parameter

+
+
mode number
+
The mode parameter to the server command specifies the specific hardware this driver is for. The default is 0 for a normal Trimble Palisade. The only other option at this time is 1 for a Endrun Praecis in Trimble emulation mode. +
+

DEFINEs

+ The following constants are defined in the driver source code. These defines may be modified to improve performance or adapt to new operating systems.
+   +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LabelDefinitionDefault Value
DEVICEThe serial port device to be used by the driver/dev/palisadeu
PRECISIONAccuracy of time transfer1 microsecond
CURRENT_UTCValid GPS - UTC offset13
SPEED232Host RS-232 baud rateB9600
TRMB_MINPOLL Minimum polling interval5 (32 seconds)
TRMB_MAXPOLLMaximum interval between polls7 (128 seconds)
+
+

Data Format

+ Palisade port A can output two synchronous time packets. The NTP driver can use either packet for synchronization. Packets are formatted as follows: +

Packet 8F-AD (Primary NTP Packet)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ByteItemTypeMeaning
0Sub-Packet IDBYTESubcode 0xAD
1 - 2Event CountINTEGERExternal event count recorded (0 = PPS)
3 - 10Fractional SecondDOUBLETime elapsed in current second (s)
11HourBYTEHour (0 - 23)
12MinuteBYTEMinute (0 - 59)
13SecondBYTESecond (0 - 59; 60 = leap)
14DayBYTEDate (1 - 31)
15MonthBYTEMonth (1 - 12)
16 - 17YearINTEGERYear (4 digit)
18Receiver StatusBYTETracking Status
19UTC FlagsBYTELeap Second Flags
20ReservedBYTEContains 0xFF
21ReservedBYTEContains 0xFF
+
+
+

Leap Second Flag Definition:

+ Bit 0:  (1) UTC Time is available
+ Bits 1 - 3: Undefined
+ Bit 4:  (1) Leap Scheduled: Leap second pending asserted by GPS control segment.
+ Bit 5:  (1) Leap Pending: set 24 hours before, until beginning of leap second.
+ Bit 6:  (1) GPS Leap Warning: 6 hours before until 6 hours after leap event
+ Bit 7:  (1) Leap In Progress. Only set during the leap second. +

Tracking Status Flag Definitions:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeMeaningAccuracyReceiver Mode
0Receiver is Navigating+/- 1 usSelf Survey
1Static 1 Sat. Timing Mode +/- 1 us1-D Timing
2Approximate Time20 - 50 msAcquisition
3StartupN/AInitialization
4StartupN/AInitialization
5Dilution of Position too High 5 ppmSelf Survey
6Static 1 Sat. Timing: Sat. not usable5 ppm1-D Timing
7No Satellites UsableN/ASelf Survey
8Only 1 Satellite Usable20 - 50 msSelf Survey
9Only 2 Satellite Usable20 - 50 msSelf Survey
10Only 3 Satellites Usable20 - 50 msSelf Survey
11Invalid SolutionN/AError
12Differential Corrections N/AN/A
13Overdetermined Fixes+/- 100 nsTiming Steady State
+
+

Packet 8F-0B (Comprehensive Timing Packet)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ByteItemTypeMeaning
0Sub-Packet IDBYTESubcode 0x0B
1 - 2Event CountINTEGERExternal event count recorded (0 = PPS)
3 - 10UTC / GPS TOWDOUBLEUTC / GPS time of week (seconds)
11DateBYTEDay of Month
12MonthBYTEMonth of Event
13 - 14YearINTYear of event
15Receiver ModeBYTEReceiver operating dimensions: 
+ 0: Horizontal (2D) 
+ 1: Full Position (3D) 
+ 2: Single Satellite (0D) 
+ 3: Automatic (2D / 3D) 
+ 4: DGPS reference 
+ 5: Clock hold (2D) 
+ 6: Over determined Clock
15 - 17UTC OffsetINTEGERUTC Offset value (seconds)
18 - 25Oscillator BiasDOUBLEOscillator BIAS (meters)
26 - 33Oscillator Drift RateDOUBLEOscillator Drift (meters / second)
34 - 37Bias UncertaintySINGLEOscillator bias uncertainty (meters)
38 - 41Drift UncertaintySINGLEOscillator bias rate uncertainty (m / sec)
42 - 49LatitudeDOUBLELatitude in radians
50 - 57LongitudeDOUBLELongitude in radians
58 - 65AltitudeDOUBLEAltitude above mean sea level, in meters
66 - 73Satellite IDBYTESV Id No. of tracked satellites
+
+

Pinouts

+ The following connections are required when connecting Palisade with a host:
+  
+   +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DescriptionHostPalisade 
Port ADB-9DB-25RS-232RS-422Palisade Pin
Receive Data 23<-->GreenGreen / Blue8 (T-) & 10 (T+)
Request to Send74<-->GrayGray / White6 (R-) & 7 (R+)
Signal Ground57<-->BlackBlack9 (GND)
Port B
Receive Data 23<-->BrownBrown / Yellow4 (T-) & 5 (T+)
Transmit Data32<-->VioletOrange/ Violet2 (R-) & 3 (R+)
Signal Ground57<-->BlackBlack9 (GND)
+
+
+ Note: If driving the RS-422 inputs on the Palisade single ended, i.e. using the Green and Gray connections only, does not work on all serial ports. Use of the Palisade NTP Synchronization Interface Module is recommended.
+
+ The 12 pin connector pinout definition:
+ Face the round 12 pin connector at the end of the cable, with the notch turned upwards.
+ Pin 1 is to the left of the notch. Pins 2 - 8 wrap around the bottom, counterclockwise to pin 9 on the right of the notch. Pin 10 is just below the notch. Pins 10 (top), 11 (bottom left) and 12 (bottom right) form a triangle in the center of the connector.
+
+ Pinouts for the Palisade NTP host adapter (Trimble PN 37070) DB-25 M connector are as follows:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DB-25MConductor PalisadeDescription
Red1Power
Black9Ground
9Black/White12PPS -
10 Green8Transmit Port A (T-)
11 Brown4Transmit Port B (T-)
12 Gray7Receive Port A (R+)
13Orange3Receive Port B (R+)
21Orange/White11PPS +
22Blue10Transmit Port A (T+)
23Yellow5Transmit Port B (T+)
24White6Receive Port A (R-)
25Violet2Receive Port B (R-)
+
+

+
+

Questions or Comments:
+ Sven Dietrich
+ Trimble Navigation Ltd.

+

(last updated July 29, 1999)

+
+ + ; + + + \ No newline at end of file -- cgit v1.1