garminctl
1
08 Oct 2006
garminctl
control the modes of a Garmin GPS
garminctl
-?
-h
-n
-b
-D debuglevel
-V
serial-port
DESCRIPTION
garminctl can switch a serial Garmin
GPS to NMEA or Garmin Binary mode. On exit it leaves the serial
port set to the proper baud rate.
This program is not for use with Garmin USB devices. Those are
permanently set to Garmin Binary mode.
You will probably need to be root to run this program, as the
serial device it uses is normally privileged.
The program accepts the following options:
-?
Display program usage and exit.
-b
Force GPS into binary mode. After the GPS resets itself autobaud to
the new speed. Binary mode is always 9600 8N1.
-n
Force GPS into NMEA mode. After the GPS resets itself autobaud to
the new speed.
-h
Display program usage and exit.
-D
Set debug level.
-V
Display program version and exit.
BUGS AND LIMITATIONS
The logic for hunting the GPS's baud rate is vulnerable to
various sorts of RS232 flakiness. If it hangs for longer than a few
seconds, kill the program and restart.
SEE ALSO
gpsd8,
gps1,
libgps3,
libgpsd3,
gpsprof1,
gpsfake1,
gnuplot1.
NOTE
There are plans to merge this program with other
GPS-type-specific control utilities. Similar functionality will be
available, but name and invocation optins may be different.
AUTHOR
Gary E. Miller gem@rellim.com.
This code is part of the gpsd toolset; there is a
project website for gpsd here.