See ConfiguringGarminRefclocksDev for discussion of this topic.
6.1.4. Configuring Garmin Refclocks
22.214.171.124. General Notes
The Garmin GPS18-LVC works well with NTP. Beware: The other models of the GPS18 don't have PPS support. You should be able to get one for under $100.
It comes with bare wires. You need to supply 5V and wire it up to a DB-9 connector.
You can get the 5V from a USB connector.
You can also get 5V from some serial cards. (The context is powering things like bar code scanners.) The SIIG CyberSerial 4S has jumpers to supply 5V or 12V on pin 9/RI.
126.96.36.199. GPS18x-LVC specifics
Please note that the GPS18x-LVC sometimes gives odd huge offsets in the range of -600ms upto -700ms. One specific model was examined a bit closer and showed a varying delay between the asserting edge of the PPS signal and the receive time of the $GPRMC sentence of 580ms to 610ms at 4800bd. (Only $GPRMC was enabled in the GPS18x and the NMEA driver, though according to the GPS18x spec $GPRMC should be the first sentence in a burst anyway if enabled in the receiver. See section 4.2 of Garmin's GPS18x tech spec.) Using a fudge time2 of 0.600 was needed to avoid malfunction of the NMEA clock driver. I (mailto:email@example.com
) do not know if this affects all GPS18x-LVC models or if this is baud rate dependent. (Apart from the transmission duration itself, which is of course baud rate dependent per se
and should account for ~150ms for a $GPRMC at 4800bd.)
If you experience severe trouble with the GPS18x-LVC a possible solution is to configure a few good public NTP servers as reference and configure the NMEA driver as a 'noselect' peer with PPS disabled and a fudge time2 of 0.0. When the system becomes stable, use the negated offset given for the NMEA driver as fudge time2, remove the 'noselect' from the clock driver and enable PPS processing with fudge flag1.
It seems that using the GPS18x-LVC without PPS support and some basic calibration cannot be recommended.
188.8.131.52. Related Links
Related Topics: GarminRefclockUsers