Address: 127.127.20.u
Reference ID: GPS
Driver ID: GPS_NMEA
Serial Port: /dev/gpsu; 4800/9600 baud, 8-bits, no parity
Serial Port: /dev/gpsppsu; for just the PPS signal (this is tried first for PPS, before /dev/gpsu)
Serial Port: /dev/gpsu; symlink to server:port (for nmead) Features: tty_clk
This driver supports GPS receivers with the $GPRMC NMEA output string by default. Alternately the $GPGGA or $GPGLL may be selected. The driver also supports Accord's custom NMEA sentence $GPZDG, which gives GPS time unlike rest of the sentences which give UTC.
The driver expects the receiver to be set up to transmit a $GPRMC message every second.
The accuracy depend on the receiver used. Inexpesive GPS models are available with a claimed PPS signal accuracy of 1 ms or better relative to the broadcast signal. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.
If the Operating System supports the PPSAPI, RFC-2783, it will be used.
The various GPS sentences that this driver recognises look like this:
(others quietly ignored)
$GPRMC,POS_UTC,POS_STAT,LAT,LAT_REF,LON,LON_REF,SPD,HDG,DATE,MAG_VAR,MAG_REF*CC<cr><lf> $GPGLL,LAT,LAT_REF,LONG,LONG_REF,POS_UTC,POS_STAT*CC<cr><lf> $GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO,G_UNIT,D_AGE,D_REF*CC<cr><lf> POS_UTC - UTC of position. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.fff]) POS_STAT - Position status. (A = Data valid, V = Data invalid) LAT - Latitude (llll.ll) LAT_REF - Latitude direction. (N = North, S = South) LON - Longitude (yyyyy.yy) LON_REF - Longitude direction (E = East, W = West) SPD - Speed over ground. (knots) (x.x) HDG - Heading/track made good (degrees True) (x.x) DATE - Date (ddmmyy) MAG_VAR - Magnetic variation (degrees) (x.x) MAG_REF - Magnetic variation (E = East, W = West) FIX_MODE - Position Fix Mode (0 = Invalid, >0 = Valid) SAT_USED - Number Satellites used in solution HDOP - Horizontal Dilution of Precision ALT - Antenna Altitude ALT_UNIT - Altitude Units (Metres/Feet) GEO - Geoid/Elipsoid separation G_UNIT - Geoid units (M/F) D_AGE - Age of last DGPS Fix D_REF - Reference ID of DGPS station CC - Checksum (optional) <cr><lf> - Sentence terminator.Accord's $GPZDG has the folowing format:
$GPZDG,POS_GPS,DD,MM,YYYY,AA.BB,V*CS<cr><lf> POS_GPS - GPS of position. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.f]) DD - Day of the month (1-31) MM - Month of the year (1-12) YYYY - Year AA.BB - Denotes the signal strength (should be < 05.00) V - GPS sync status '0' => INVALID time, '1' => accuracy of +/- 20ms, '2' => accuracy of +/- 100ns CS - Checksum <cr><lf> - Sentence terminator.
Alternate GPS sentences (other than $GPRMC - the default) and baudrates may be enabled by setting the relevent bits of 'mode' in the server configuration line
* server 127.127.20.x mode X
bit 0 - enables RMC (value = 1)
bit 1 - enables GGA (value = 2)
bit 2 - enables GLL (value = 4)
bit 3 - enables ZDG (value = 8)
Multiple sentences may be selected except when ZDG is enabled. The driver falls back to standard NMEA sentences when incorrent selection is configured.The driver uses 4800 baudrate by default. Altenatively, 9600 baudrate can be selected by using the fourth bit of 'mode' field;
bit 4 - selects baudrate ( 0 for 4800 - the default, 1 for 9600 )
The driver will send a $PMOTG,RMC,0000*1D<cr><lf> message each time a $GPRMC string is needed. This is not needed on most GPS receivers because they automatically send the $GPRMC string every second and will only work on GPS receivers that understand the $PMOTG string. Others will just ignore it.
"$PGRMO,,2<cr><lf>"
Now switch only $GPRMC on by sending it the following string.
"$PGRMO,GPRMC,1<cr><lf>"
On some systems the PPS signal isn't switched on by default. It can be switched on by sending the following string.
"$PGRMC,,,,,,,,,,,,2<cr><lf>"
The GPS sentence(s) that is used is written to the clockstats file.
Additional Information