gps.adoc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. = gps(1)
  2. :date: 25 February 2021
  3. :keywords: gps, gpsd
  4. :manmanual: GPSD Documentation
  5. :mansource: GPSD Version {gpsdver}
  6. :robots: index,follow
  7. :sectlinks:
  8. :toc: macro
  9. :type: manpage
  10. :webfonts!:
  11. include::../www/inc-menu.adoc[]
  12. == NAME
  13. gps - Overview of gpsd clients and helpers
  14. == SYNOPSIS
  15. Clients:
  16. *cgps* [OPTIONS] [server[:port[:device]]]
  17. *gegps* [OPTIONS] [server[:port[:device]]]
  18. *gps2udp* [OPTIONS] [server[:port[:device]]]
  19. *gpscsv* [OPTIONS] [server[:port[:device]]]
  20. *gpsmon* [OPTIONS] [server[:port[:device]]]
  21. *gpspipe* [OPTIONS] [server[:port[:device]]]
  22. *gpsplot* [OPTIONS] [server[:port[:device]]]
  23. *gpsprof* [OPTIONS] [server[:port[:device]]]
  24. *gpsrinex* [OPTIONS] [server[:port[:device]]]
  25. *gpssubframe* [OPTIONS] [server[:port[:device]]]
  26. *gpxlogger* [OPTIONS] [server[:port[:device]]]
  27. *lcdgps* [OPTIONS] [server[:port[:device]]]
  28. *ubxtool* [OPTIONS] [server[:port[:device]]]
  29. *xgps* [OPTIONS] [server[:port[:device]]]
  30. *xgpsspeed* [OPTIONS] [server[:port[:device]]]
  31. *zerk* [OPTIONS] [server[:port[:device]]]
  32. Helpers:
  33. *gpscat* [OPTIONS] file-or-serial-port
  34. *gpsctl* [OPTIONS]
  35. *gpsdctl* action device
  36. *gpsdecode* [OPTIONS]
  37. *gpsdebuginfo*
  38. *gpsfake* [OPTIONS]
  39. *gpsinit* [OPTIONS]
  40. *ntpshmmon* [OPTIONS]
  41. *ppscheck* [OPTIONS] device
  42. == DESCRIPTION
  43. *gpsd* is a daemon for managing GPS receivers, GNSS receivers, AIS
  44. receivers, and more. Over time it has agglomerated a number of
  45. diverse clients that communicate with *gpsd* for various tasks.
  46. === CLIENTS
  47. Each of the *gpsd* clients connects to a *gpsd* daemon to use the
  48. data in various ways. See the sections ARGUMENTS and OPTIONS for
  49. more information on the clients.
  50. *cgps*:: curses terminal client for gpsd
  51. *gegps*:: Google Earth client for gpsd
  52. *gps*:: Overview of gpsd clients and helpers
  53. *gpscsv*:: dump the JSON output from gpsd as CSV
  54. *gpsdecode*:: decode GPS, RTCM or AIS streams into a readable format
  55. *gpsmon*:: real-time GPS packet monitor and control utility
  56. *gpspipe*:: tool to connect to gpsd and retrieve sentences
  57. *gpsplot*:: tool to dynamically dump plot data from gpsd
  58. *gpsprof*:: profile a GPS and gpsd, plotting latency information
  59. *gpsrinex*:: Read data from gpsd convert to RINEX3 and save to a file.
  60. *gpssubframe*:: tool to dump subframe sentences from gpsd
  61. *gpxlogger*:: Tool to connect to gpsd and generate a GPX file
  62. *lcdgps*:: LCD client for gpsd
  63. *xgps*:: X client for gpsd
  64. *xgpsspeed*:: X speedometer for gpsd
  65. === HELPERS
  66. The *gpsd* helpers can be used for administration of *gpsd* systems.
  67. *gps2udp*:: feed the take from gpsd to one or more aggregation sites
  68. *gpscat*:: dump the output from a GPS
  69. *gpsctl*:: control the modes of a GNSS receiver
  70. *gpsdctl*:: tool for sending commands to gpsd over its control socket
  71. *gpsdebuginfo*:: Generate a gpsd debug dump of your host.
  72. *gpsfake*:: test harness for gpsd, simulating a GNSS receiver
  73. *gpsinit*:: initialize CAN kernel modules for GPSD
  74. *ntploggps*:: log gpsd data
  75. *ntpshmmon*:: capture samples from gpsd or other ntpd refclock sources
  76. === LIBRARIES
  77. Programmers can find additional information on the *gpsd* here:
  78. *gpsd_json*:: gpsd request/response protocol
  79. *libgps*:: C service library for communicating with the GPS daemon
  80. *libgpsmm*:: C++ and QT class wrappers for the GPS daemon
  81. *libQgpsmm*:: C++ and QT class wrappers for the GPS daemon
  82. == OPTIONS
  83. The *gpsd* clients share a few common options:
  84. *-?*, *-h*, *--help*::
  85. Print a summary of options and then exit.
  86. *-V*, *--version*::
  87. Print the package version and exit.
  88. == ARGUMENTS
  89. By default, clients collect data from the local *gpsd* daemon running
  90. on localhost, using the default GPSD port 2947. The optional argument
  91. to any client may override this behavior:
  92. *[server[:port[:device]]]*
  93. *server*:: The optional host name, IPv4 address, or IPv6 address of
  94. the *gpsd* daemon to connect to. If the server specification contains
  95. square brackets, the part inside them is taken as an IPv6 address and
  96. port/device suffixes are only parsed after the trailing bracket. The
  97. default is localhost.
  98. *port*:: The optional TCP port of the daemon to connect to. The default
  99. is 2947.
  100. *device*:: The optional device name to be watched.
  101. Some possible cases look like this:
  102. example.com;;
  103. Connect to the default port 2497 on example.com, trying both IPv4 and IPv6.
  104. example.com:2317;;
  105. Look at port 2317 on example.com, trying both IPv4 and IPv6.
  106. localhost::/dev/ttyS1;;
  107. Look at the default port, 2947, of localhost, trying both IPv4 and IPv6 and
  108. watching output from serial device 1.
  109. 71.162.241.5:2317:/dev/ttyS3;;
  110. Look at port 2317 at the specified IPv4 address, collecting data from
  111. attached serial device 3.
  112. [FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:2317:/dev/ttyS5;;
  113. Look at port 2317 at the specified IPv6 address, collecting data from
  114. attached serial device 5.
  115. == ENVIRONMENT
  116. Most of the *gpsd* clients check for the environment variables
  117. *GPSD_UNITS*, *LC_MEASUREMENT*, and *LANG*. Maybe more.
  118. *GPSD_UNITS* is checked if no unit system is specified on the command
  119. line. It may be set to 'i'. 'imperial', 'm', 'metric', or 'n',
  120. 'nautical'.
  121. *LC_MEASUREMENT* and then *LANG* are checked if no unit system has been
  122. specified on the command line, or in *GPSD_UNITS*. If the value is 'C',
  123. 'POSIX', or begins with 'en_US' the unit system is set to imperial. The
  124. default if no system has been selected is metric.
  125. == RETURN VALUES
  126. The *gpsd* clients return simple success or failure codes:
  127. *0*:: on success.
  128. *1*:: on failure
  129. == SEE ALSO
  130. *gegps*(1), *gpsctl*(1), *gpsdebuginfo*(1), gpsprof*(1), *gpsfake*(1),
  131. *gpscat*(1), *gpspipe*(1), *gpsmon*(1), xgps*(1). *xgpsspeed*(1)
  132. *libgps*(3), *libgpsmm*(3)
  133. *gpsd*(8)
  134. == RESOURCES
  135. *Project web site:* {gpsdweb}
  136. == COPYING
  137. This file is Copyright 2013 by the GPSD project +
  138. SPDX-License-Identifier: BSD-2-clause