gpscat
1
16 Nov 2006
gpscat
dump the output from a GPS
gpscat
-s speed
serial-port
DESCRIPTION
gpscat is a very simple little
program that reads from a specified serial device (presumed to
have a GPS attached) and dumps the output to standard output.
Nonprintable characters are rendered as hexadecimal string escapes,
except for CR followed by LF or LF preceded by CR. The program
runs forever until interrupted by ^C or other means.
This program is useful as a sanity checker when examining a new
device. It can be used as a primitive NMEA logger, but beware that
(a) interrupting it likely to cut off output in mid-sentence, and (b)
to avoid displaying incomplete NMEA sentences right up next to shell
prompts that often contain a $, it always emits an extra final
linefeed.
The program accepts the following options:
-s
Set the port's baud rate (and optionally its parity ad stop
bits) before reading. Argument should begin with one of the normal integer
baud rates (300, 1200, 4800, 9600, 19200, 38400, etc.). It may be
followed by an optional suffix [NOE][12] to set parity (None, Even,
Odd) and stop bits (1 or 2).
-h
Display program usage and exit.
-V
Display program version and exit.
Specifying -s 4800N1 is frequently helpful with unknown
devices.
SEE ALSO
gpsd8,
gps1,
libgps3,
libgpsd3,
gpsfake1.
gpsprof1,
gpsctl1,
sirfmon1.
AUTHOR
Eric S. Raymond esr@thyrsus.com. There is a
project page for gpsd here.