123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE refentry PUBLIC
- "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
- <refentry id='xgps.1'>
- <refentryinfo><date>30 Sep 2020</date></refentryinfo>
- <refmeta>
- <refentrytitle>xgps</refentrytitle>
- <manvolnum>1</manvolnum>
- <refmiscinfo class="source">The GPSD Project</refmiscinfo>
- <refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
- </refmeta>
- <refnamediv id='name'>
- <refname>xgps</refname>
- <refname>xgpsspeed</refname>
- <refpurpose>sample clients for gpsd</refpurpose>
- </refnamediv>
- <refsynopsisdiv id='synopsis'>
- <cmdsynopsis>
- <command>xgps</command>
- <arg choice='opt'>--help </arg>
- <arg choice='opt'>--debug <replaceable>DEBUG-LEVEL</replaceable></arg>
- <arg choice='opt'>--device <replaceable>DEVICE</replaceable></arg>
- <arg choice='opt'>--host <replaceable>HOST</replaceable></arg>
- <arg choice='opt'>--port <replaceable>PORT</replaceable></arg>
- <arg choice='opt'>--rotate <replaceable>DEGREES</replaceable></arg>
- <arg choice='opt'>-? </arg>
- <arg choice='opt'>-D <replaceable>DEBUG-LEVEL</replaceable></arg>
- <arg choice='opt'>-h </arg>
- <arg choice='opt'>-l <group><arg>d</arg><arg>m</arg><arg>s</arg></group></arg>
- <arg choice='opt'>-r <replaceable>DEGREES</replaceable></arg>
- <arg choice='opt'>-u <group><arg>i</arg><arg>n</arg><arg>m</arg></group></arg>
- <arg choice='opt'>-V </arg>
- <group>
- <replaceable>server</replaceable>
- <group>
- <replaceable>:port</replaceable>
- <group><replaceable>:device</replaceable></group>
- </group>
- </group>
- </cmdsynopsis>
- <cmdsynopsis>
- <command>xgpsspeed</command>
- <arg choice='opt'>--debug <replaceable>DEBUG-LEVEL</replaceable></arg>
- <arg choice='opt'>--device <replaceable>DEVICE</replaceable></arg>
- <arg choice='opt'>--help </arg>
- <arg choice='opt'>--host <replaceable>HOST</replaceable></arg>
- <arg choice='opt'>--landspeed </arg>
- <arg choice='opt'>--maxspeed <replaceable>MAXSPEED</replaceable></arg>
- <arg choice='opt'>--nautical </arg>
- <arg choice='opt'>--port <replaceable>PORT</replaceable></arg>
- <arg choice='opt'>--rotate <replaceable>DEGREES</replaceable></arg>
- <arg choice='opt'>--speedunits
- <group choice='req'>
- <arg>mph</arg><arg>kmh</arg><arg>knots</arg>
- </group>
- </arg>
- <arg choice='opt'>-D <replaceable>DEBUG-LEVEL</replaceable></arg>
- <arg choice='opt'>-? </arg>
- <arg choice='opt'>-h </arg>
- <arg choice='opt'>-r <replaceable>DEGREES</replaceable></arg>
- <arg choice='opt'>-V </arg>
- <group>
- <replaceable>server</replaceable>
- <group>
- <replaceable>:port</replaceable>
- <group><replaceable>:device</replaceable></group>
- </group>
- </group>
- </cmdsynopsis>
- </refsynopsisdiv>
- <refsect1 id='description'><title>DESCRIPTION</title>
- <para>These are two sample clients shipped with
- <application>gpsd</application>. They have some common options:</para>
- <para>The <option>-h</option> option causes each client to emit a summary of its
- options and then exit.</para>
- <para>The <option>-V</option> option causes each client to dump the package
- version and exit.</para>
- <para> The <option>-l</option> option, when present, sets the format
- of latitude and longitude reports. The value 'd' produces decimal
- degrees and is the default. The value 'm' produces degrees and
- decimal minutes. The value 's' produces degrees, minutes, and decimal
- seconds.</para>
- <para><application>xgps</application>,
- <application>cgps</application>, and <application>lcdgps</application>
- look at variables in the environment to figure out what units they
- should default to using for display — imperial, nautical, or
- metric. Here are the variables and values they check:</para>
- <screen>
- GPSD_UNITS one of:
- i = miles/feet
- imperial = miles/feet
- n = knots/feet
- nautical = knots/feet
- m = km/meters
- metric = km/meters
- LC_MEASUREMENT
- en_US = miles/feet
- C = miles/feet
- POSIX = miles/feet
- [other] = km/meters
- LANG
- en_US = miles/feet
- C = miles/feet
- POSIX = miles/feet
- [other] = km/meters
- </screen>
- <para>These preferences may be overridden by the <option>-u</option>
- option.</para>
- <para>The <option>-u</option> option can be used to set
- the system units for display; follow the keyword with 'i' for
- 'imperial' for American units (International Feet in altitude and error
- estimates, miles per hour in speeds), 'n' for 'nautical' (feet in altitude
- and error estimates, knots in speed) or 'm' for 'metric' (meters in
- altitude and error estimates, kilometers per hour in speeds).</para>
- <para>Note: The USA Survey Foot is not supported.</para>
- <para> The <option>-D</option> option, when present, sets a debug
- level; it is primarily for use by GPSD developers. It enables
- various progress messages to standard error.</para>
- <para>By default, clients collect data from all compatible devices on
- localhost, using the default GPSD port 2947. An optional argument to any
- client may specify a server to get data from. A colon-separated suffix
- is taken as a port number. If there is a second colon-separated
- suffix, that is taken as a specific device name to be
- watched. However, if the server specification contains square
- brackets, the part inside them is taken as an IPv6 address and
- port/device suffixes are only parsed after the trailing bracket.
- Possible cases look like this:</para>
- <para>The options for xgps can be placed in the XGPSOPTS environment variable.
- XGPSOPTS is processed before the CLI options.</para>
- <variablelist>
- <varlistentry>
- <term>localhost:/dev/ttyS1</term>
- <listitem><para>Look at the default port of localhost, trying both
- IPv4 and IPv6 and watching output from serial device 1.</para></listitem>
- </varlistentry>
- <varlistentry>
- <term>example.com:2317</term>
- <listitem><para>Look at port 2317 on example.com, trying both
- IPv4 and IPv6.</para></listitem>
- </varlistentry>
- <varlistentry>
- <term>71.162.241.5:2317:/dev/ttyS3</term>
- <listitem><para>Look at port 2317 at the specified IPv4
- address, collecting data from attached serial device 3.</para></listitem>
- </varlistentry>
- <varlistentry>
- <term>[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:2317:/dev/ttyS5</term>
- <listitem><para>Look at port 2317 at the specified IPv6
- address, collecting data from attached serial device 5.</para></listitem>
- </varlistentry>
- </variablelist>
- <refsect2><title>xgps</title>
- <para><application>xgps</application> is a simple sample client for
- <application>gpsd</application> with an X interface. It displays
- current GPS position/time/velocity information and (for GPSes that
- support the feature) the locations of accessible satellites.</para>
- <para>In the sky view, satellites are color-coded to indicate quality
- of signal; consult the data display to the left for exact figures in
- dB. Diamond-shaped icons indicate GLONASS satellites, squares are used
- for SBAS (e.g. WAAS, EGNOS), circles indicate GPS, and down-, up-,
- right-, and left-pointing triangles, respectively, indicate Galileo,
- BeiDou, QZSS, and other systems' satellites (e.g. IMES, IRNSS, as well
- as unknown systems). Filled icons were used in the current fix,
- outline icons were not. Hovering over a symbol with the mouse pointer
- will temporarily display a small popup window with the satellite
- details from the Satellite List pane.</para>
- <para>The -r option accepts an argument in degrees, to rotate the
- skyview counterclockwise.</para>
- </refsect2>
- <refsect2><title>xgpsspeed</title>
- <para><application>xgpsspeed</application> is a speedometer that uses
- position information from the GPS. It accepts an -h option and
- optional argument as for <application>gps</application>, or a -V
- option to dump the package version and exit.</para>
- <para>The default display mode is a speed and track presentation
- modeled after a marine navigation display; for backward compatibility
- the --nautical option forces this mode. The --landspeed option produces
- a simple speedometer.</para>
- <para>The --speedunits option can be used to set the speed units for
- display; follow the keyword with knots for nautical miles per hour,
- kmh for kilometers per hour, or mph for miles per hour. The default
- is miles per hour.</para>
- <para>In the nautical mode only, --maxspeed sets the maximum on the
- speedometer.</para>
- </refsect2>
- </refsect1>
- <refsect1 id='environment'><title>ENVIRONMENT</title>
- <para>The environment variable <envar>GPSD_UNITS</envar> is checked
- if no unit system is specified on the command line or in
- <envar>XPGSOPTS</envar> it may be set to 'i'. 'imperial', 'm', 'metric', or
- 'n', 'nautical'.</para>
- <para><envar>LC_MEASUREMENT</envar> and then <envar>LANG</envar> are
- checked if no unit system has been specified on the command line, in
- <envar>XPGSOPTS</envar> or in <envar>GPSD_UNITS</envar>. If the value
- is 'C', 'POSIX', or begins with
- 'en_US' the unit system is set to imperial. The default
- if no system has been selected defaults to metric.</para>
- <para>The <option>XGPSOPTS></option> environment variable may be set to
- pass commonly used command line options to <command>xgps</command>
- and <command>xgpsspeed</command>. This is often used to set the
- <option>-u</option> option for locale specific units.
- <option>XGPSOPTS</option> is processed before the CLI options.</para>
- </refsect1>
- <refsect1 id='see_also'><title>SEE ALSO</title>
- <para>
- <citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>libgpsmm</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>gpsfake</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>gpsctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>gpscat</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>gpsprof</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
- <citerefentry><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
- <citerefentry><refentrytitle>gpsmon</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
- <citerefentry><refentrytitle>gpxlogger</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
- </para>
- </refsect1>
- <refsect1 id='maintainer'><title>AUTHORS</title>
- <para>
- Remco Treffcorn, Derrick Brashear, Russ Nelson & Eric S. Raymond,
- Jeff Francis (cgps), Chen Wei <email>weichen302@aol.com</email> (gegps & xgpsspeed),
- Robin Wittler <email>real@the-real.org</email> (xgpsspeed).
- </para>
- <para>This manual page by Eric S. Raymond <email>esr@thyrsus.com</email></para>
- </refsect1>
- </refentry>
|