diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-05-25 19:30:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-05-25 19:30:59 +0000 |
commit | ff1807f29013afcd1a3e07674fde5a53a3df8592 (patch) | |
tree | 58395023e37b7dad2f1f31696ac56cce4dfa9653 /sirfmon.xml | |
parent | 56a4a454d8360ec4f863fe2fc880dd37cf35ca6e (diff) | |
download | gpsd-ff1807f29013afcd1a3e07674fde5a53a3df8592.tar.gz |
Large step towards enabling sirfmon to run as a client...
...but it doesn't quite work yet.
Diffstat (limited to 'sirfmon.xml')
-rw-r--r-- | sirfmon.xml | 62 |
1 files changed, 53 insertions, 9 deletions
diff --git a/sirfmon.xml b/sirfmon.xml index 8623d61f..aed4292b 100644 --- a/sirfmon.xml +++ b/sirfmon.xml @@ -10,13 +10,27 @@ </refmeta> <refnamediv id='name'> <refname>sirfmon</refname> -<refpurpose>monitor a SiRF GPS</refpurpose> +<refpurpose>monitor and control a SiRF GPS in binary mode</refpurpose> </refnamediv> <refsynopsisdiv id='synopsis'> <cmdsynopsis> <command>sirfmon</command> - <arg choice='opt'><replaceable>device</replaceable></arg> + <arg choice='opt'>-h </arg> + <arg choice='opt'>-v </arg> + <arg>-F <replaceable>control-socket</replaceable></arg> + <arg choice='opt'> + <group> + <arg choice='plain'> + <replaceable>server</replaceable> + <group> + <replaceable>:port</replaceable> + <group><replaceable>:device</replaceable></group> + </group> + </arg> + <arg choice='plain'><replaceable>device</replaceable></arg> + </group> + </arg> </cmdsynopsis> </refsynopsisdiv> @@ -32,13 +46,31 @@ logic that different from the decoder in the <application>gpsd</application> SiRF driver, so behaviors that show up in both are unlikely to be due to logic bugs in either.</para> -<para>The device argument should be the serial devicename associated -with the GPS; <application>sirfmon</application> will search for a -correct baud rate and lock on to it automatically.</para> - -<para>Note that <application>sirfmon</application> will fail if -<application>gpsd</application> is running, and vice-versa. You will -probably need to be root to run this program.</para> +<para><application>xgps</application> accepts an -h option that +displays a usage message, or a -v option to dump the package +version and exit.</para> + +<para>This program may be run in either of two modes, as a client for +the <application>gpsd</application> daemon (and its associated control +socket) or directly connected to a specified serial device. When run +with no argument, it attempts to connect to the daemon. If the +argument looks like a server:port specification it will also attempt +to connect to the daemon. If the argument looks like a bare server +name it will attempt to connect to a daemon running on the default +gpsd port on that server. Only if the device argument contains +slashes but no colons will it be treated as a serial device for direct +connection. In direct-connect mode <application>sirfmon</application> +will hunt for a correct baud rate and lock on to it +automatically.</para> + +<para>The -F option is only valid in client mode; it specifies a +control socket to which the program should send device control +strings. You must specify a valid pathname of a Unix-domain socket on +your local filesystem.</para> + +<para> You will probably need to be root to run this program, as the +serial devices and control socket it uses are normally +privileged.</para> <para>After startup, the top part of the screen reports the contents of several especially interesting packet types. The bottom half of @@ -117,6 +149,18 @@ MID 19, including the Static Navigation bit toggled by the 'c' command.</para> </variablelist> </refsect1> +<refsect1 id='files'><title>FILES</title> + +<variablelist> +<varlistentry> +<term><filename>/var/run/gpsd.sock</filename></term> +<listitem> +<para>The default location of the control socket.</para> +</listitem> +</varlistentry> +</variablelist> + +</refsect1> <refsect1 id='bugs'><title>BUGS AND LIMITATIONS</title> <para>The logic for hunting the GPS's baud rate is vulnerable to |