gps.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!--
  3. This file is Copyright 2004 by the GPSD project
  4. SPDX-License-Identifier: BSD-2-clause
  5. -->
  6. <!DOCTYPE refentry PUBLIC
  7. "-//OASIS//DTD DocBook XML V4.1.2//EN"
  8. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
  9. <refentry id='gps.1'>
  10. <refentryinfo><date>30 Sep 2020</date></refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gps</refentrytitle>
  13. <manvolnum>1</manvolnum>
  14. <refmiscinfo class="source">The GPSD Project</refmiscinfo>
  15. <refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
  16. </refmeta>
  17. <refnamediv id='name'>
  18. <refname>cgps</refname>
  19. <refname>gegps</refname>
  20. <refname>gps</refname>
  21. <refname>lcdgps</refname>
  22. <refpurpose>simple clients for gpsd</refpurpose>
  23. </refnamediv>
  24. <refsynopsisdiv id='synopsis'>
  25. <cmdsynopsis>
  26. <command>cgps</command>
  27. <arg choice='opt'>-D <replaceable>debug-level</replaceable></arg>
  28. <arg choice='opt'>-h </arg>
  29. <arg choice='opt'>-l <group><arg>d</arg><arg>m</arg><arg>s</arg></group></arg>
  30. <arg choice='opt'>-m </arg>
  31. <arg choice='opt'>-s </arg>
  32. <arg choice='opt'>-u <group><arg>i</arg><arg>n</arg><arg>m</arg></group></arg>
  33. <arg choice='opt'>-V </arg>
  34. <group>
  35. <replaceable>server</replaceable>
  36. <group>
  37. <replaceable>:port</replaceable>
  38. <group><replaceable>:device</replaceable></group>
  39. </group>
  40. </group>
  41. </cmdsynopsis>
  42. <cmdsynopsis>
  43. <command>gegps</command>
  44. <arg choice='opt'>--debug <replaceable>DEBUG</replaceable></arg>
  45. <arg choice='opt'>--device <replaceable>DEVICE</replaceable></arg>
  46. <arg choice='opt'>--help </arg>
  47. <arg choice='opt'>--host <replaceable>HOST</replaceable></arg>
  48. <arg choice='opt'>--initialize </arg>
  49. <arg choice='opt'>--kmldir <replaceable>DIRECTORY</replaceable></arg>
  50. <arg choice='opt'>--port <replaceable>PORT</replaceable></arg>
  51. <arg choice='opt'>--version</arg>
  52. <arg choice='opt'>-D <replaceable>DEBUG</replaceable></arg>
  53. <arg choice='opt'>-d <replaceable>DIRECTORY</replaceable></arg>
  54. <arg choice='opt'>-h </arg>
  55. <arg choice='opt'>-i </arg>
  56. <arg choice='opt'>-V </arg>
  57. <group>
  58. <replaceable>server</replaceable>
  59. <group>
  60. <replaceable>:port</replaceable>
  61. <group><replaceable>:device</replaceable></group>
  62. </group>
  63. </group>
  64. </cmdsynopsis>
  65. <cmdsynopsis>
  66. <command>lcdgps</command>
  67. <arg choice='opt'>-h </arg>
  68. <arg choice='opt'>-j </arg>
  69. <arg choice='opt'>-l <group><arg>d</arg><arg>m</arg><arg>s</arg></group></arg>
  70. <arg choice='opt'>-s </arg>
  71. <arg choice='opt'>-u <group><arg>i</arg><arg>n</arg><arg>m</arg></group></arg>
  72. <arg choice='opt'>-V </arg>
  73. <group>
  74. <replaceable>server</replaceable>
  75. <group>
  76. <replaceable>:port</replaceable>
  77. <group><replaceable>:device</replaceable></group>
  78. </group>
  79. </group>
  80. </cmdsynopsis>
  81. </refsynopsisdiv>
  82. <refsect1 id='description'><title>DESCRIPTION</title>
  83. <para>These are some simple clients shipped with
  84. <application>gpsd</application>. They have some common options:</para>
  85. <para>The <option>-h</option> option causes each client to emit a summary of its
  86. options and then exit.</para>
  87. <para>The <option>-V</option> option causes each client to dump the package
  88. version and exit.</para>
  89. <para> The <option>-l</option> option, when present, sets the format
  90. of latitude and longitude reports. The value 'd' produces decimal
  91. degrees and is the default. The value 'm' produces degrees and
  92. decimal minutes. The value 's' produces degrees, minutes, and decimal
  93. seconds.</para>
  94. <para>Where present, the <option>-u</option> option can be used to set
  95. the system units for display; follow the keyword with 'i' for
  96. 'imperial' for American units (International Feet in altitude and error
  97. estimates, miles per hour in speeds), 'n' for 'nautical' (feet in altitude
  98. and error estimates, knots in speed) or 'm' for 'metric' (meters in
  99. altitude and error estimates, kilometers per hour in speeds).</para>
  100. <para>Note: The USA Survey Foot is not supported.</para>
  101. <para> The <option>-D</option> option, when present, sets a debug
  102. level; it is primarily for use by GPSD developers. It enables
  103. various progress messages to standard error.</para>
  104. <para>By default, clients collect data from all compatible devices on
  105. localhost, using the default GPSD port 2947. An optional argument to any
  106. client may specify a server to get data from. A colon-separated suffix
  107. is taken as a port number. If there is a second colon-separated
  108. suffix, that is taken as a specific device name to be
  109. watched. However, if the server specification contains square
  110. brackets, the part inside them is taken as an IPv6 address and
  111. port/device suffixes are only parsed after the trailing bracket.
  112. Possible cases look like this:</para>
  113. <variablelist>
  114. <varlistentry>
  115. <term>localhost:/dev/ttyS1</term>
  116. <listitem><para>Look at the default port of localhost, trying both
  117. IPv4 and IPv6 and watching output from serial device 1.</para></listitem>
  118. </varlistentry>
  119. <varlistentry>
  120. <term>example.com:2317</term>
  121. <listitem><para>Look at port 2317 on example.com, trying both
  122. IPv4 and IPv6.</para></listitem>
  123. </varlistentry>
  124. <varlistentry>
  125. <term>71.162.241.5:2317:/dev/ttyS3</term>
  126. <listitem><para>Look at port 2317 at the specified IPv4
  127. address, collecting data from attached serial device 3.</para></listitem>
  128. </varlistentry>
  129. <varlistentry>
  130. <term>[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:2317:/dev/ttyS5</term>
  131. <listitem><para>Look at port 2317 at the specified IPv6
  132. address, collecting data from attached serial device 5.</para></listitem>
  133. </varlistentry>
  134. </variablelist>
  135. <refsect2><title>cgps</title>
  136. <para><application>cgps</application> is a client resembling
  137. <application>xgps</application>, but without the pictorial
  138. satellite display and able to run on a serial terminal or
  139. terminal emulator.</para>
  140. <para> The <option>-s</option> option prevents
  141. <application>cgps</application> from displaying the data coming from
  142. the daemon. This display can also be toggled with the s
  143. command.</para>
  144. <para>The <option>-m</option> option will display your magnetic
  145. track (as opposed to your true track). This is a calculated
  146. value, not a measured value. Magnetic variation is always potentially
  147. subject to large errors, but is usually better than two degrees.</para>
  148. <para><application>cgps</application> terminates when you send it a
  149. SIGHUP or SIGINT; given default terminal settings this will happen
  150. when you type Ctrl-C at it. It will also terminate on 'q'</para>
  151. </refsect2>
  152. <refsect2><title>lcdgps</title>
  153. <para>A client that passes <application>gpsd</application> data to
  154. <application>lcdproc</application>, turning your car computer into a
  155. very expensive and nearly feature-free GPS receiver. Currently
  156. assumes a 4x40 LCD and writes data formatted to fit that size screen.
  157. Also displays 4- or 6-character Maidenhead grid square output.</para>
  158. </refsect2>
  159. <refsect2><title>gegps</title>
  160. <para>This program collects fixes from <application>gpsd</application>
  161. and feeds them to a running instance of Google Earth for live location
  162. tracking.</para>
  163. <para>The <option>-d</option> argument is the location of the Google
  164. Earth installation directory. If not specified, it defaults to the
  165. current directory.</para>
  166. <para>If you have the free (non-subscription) version, start by
  167. running with the <option>-i</option> option to drop a clue in the
  168. Google Earth installation directory, as
  169. 'Open_in_Google_Earth_RT_GPS.kml', then open that file in Places (File
  170. > Open...). Run <application>gegps</application> in the normal way
  171. after that.</para>
  172. </refsect2>
  173. </refsect1>
  174. <refsect1 id='environment'><title>ENVIRONMENT</title>
  175. <para>The environment variable <envar>GPSD_UNITS</envar> is checked if
  176. no unit system is specified on the command line. It may be set to 'i'.
  177. 'imperial', 'm', 'metric', or 'n', 'nautical'.</para>
  178. <para><envar>LC_MEASUREMENT</envar> and then <envar>LANG</envar> are
  179. checked if no unit system has been specified on the command line, or in
  180. <envar>GPSD_UNITS</envar>. If the value is 'C', 'POSIX', or begins with
  181. 'en_US' the unit system is set to imperial. The default if no system has
  182. been selected defaults to metric.</para> </refsect1>
  183. <refsect1 id='see_also'><title>SEE ALSO</title>
  184. <para>
  185. <citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
  186. <citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
  187. <citerefentry><refentrytitle>libgpsmm</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
  188. <citerefentry><refentrytitle>gpsfake</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  189. <citerefentry><refentrytitle>gpsctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  190. <citerefentry><refentrytitle>gpscat</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  191. <citerefentry><refentrytitle>gpsprof</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  192. <citerefentry><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  193. <citerefentry><refentrytitle>gpsmon</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  194. <citerefentry><refentrytitle>gpxlogger</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  195. <citerefentry><refentrytitle>xgps</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  196. <citerefentry><refentrytitle>xgpsspeed</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  197. </para>
  198. </refsect1>
  199. <refsect1 id='maintainer'><title>AUTHORS</title>
  200. <para>
  201. Remco Treffcorn, Derrick Brashear, Russ Nelson &amp; Eric S. Raymond,
  202. Jeff Francis (cgps), Chen Wei <email>weichen302@aol.com</email> (gegps &amp; xgpsspeed),
  203. Robin Wittler <email>real@the-real.org</email> (xgpsspeed).
  204. </para>
  205. <para>This manual page by Eric S. Raymond <email>esr@thyrsus.com</email></para>
  206. </refsect1>
  207. </refentry>