summaryrefslogtreecommitdiff
path: root/garminctl.1
blob: 6f4acf59cd062a036ba24b8e06ea43bba763cd25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "GARMINCTL" 1 "" "" ""
.SH NAME
garminctl \- Control the modes of a Garmin GPS
.SH "SYNOPSIS"
.ad l
.hy 0
.HP 10
\fBgarminctl\fR [\-?] [\-h] [\-n] [\-b] [\-D\ \fIdebuglevel\fR] [\-V] \fIserial\-port\fR
.ad
.hy

.SH "DESCRIPTION"

.PP
garminctl switch a serial Garmin GPS to NMEA or Garmin Binary mode\&. On exit it leaves the serial port set to the proper baud rate\&.

.PP
This program is not for use with Garmin USB devices\&. Those are permanently set to Garmin Binary mode\&.

.PP
You will probably need to be root to run this program, as the serial device it uses is normally privileged\&.

.PP
The program accepts the following options:

.TP
\-?
Display program usage and exit\&.

.TP
\-b
Force GPS into binary mode\&. After the GPS resets itself autobaud to the new speed\&. Binary mode is always 9600 8N1\&.

.TP
\-n
Force GPS into NMEA mode\&. After the GPS resets itself autobaud to the new speed\&.

.TP
\-h
Display program usage and exit\&.

.TP
\-D
Set debug level\&.

.TP
\-V
Display program version and exit\&.

.SH "BUGS AND LIMITATIONS"

.PP
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\&.

.SH "SEE ALSO"

.PP
 \fBgpsd\fR(8), \fBgps\fR(1), \fBlibgps\fR(3), \fBlibgpsd\fR(3), \fBgpsprof\fR(1), \fBgpsfake\fR(1), \fBgnuplot\fR(1)\&.

.SH "AUTHOR"

.PP
Gary E\&. Miller <gem@rellim\&.com>\&. This code is part of the gpsd toolset; there is a project page for gpsd  here: \fIhttp://gpsd.berlios.de/\fR\&.