gpssubframe.adoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. = gpssubframe(1)
  2. :author: Gary E. Miller
  3. :date: 25 February 2021
  4. :email: gem@rellim.com.
  5. :keywords: gpsd, gps, subframe
  6. :manmanual: GPSD Documentation
  7. :mansource: GPSD Version {gpsdver}
  8. :robots: index,follow
  9. :sectlinks:
  10. :toc: macro
  11. :type: manpage
  12. :webfonts!:
  13. include::../www/inc-menu.adoc[]
  14. == NAME
  15. gpssubframe - tool to dump subframe sentences from gpsd
  16. == SYNOPSIS
  17. *gpssubframe* [OPTIONS] [server[:port[:device]]]
  18. *gpssubframe* -h
  19. *gpssubframe* -V
  20. == DESCRIPTION
  21. *gpssubframe* is a tool to connect to *gpsd* and dump decoded subframe data
  22. to stdout. This is only useful if your GNSS receiver can output GPS
  23. subframe messages, and is configured to do so. A working knowledge of
  24. IS-GPS-200 is also required. Keep your copy close at hand.
  25. *gpssubframe* does not require root privileges, but will run fine as
  26. root. It can be run concurrently with other tools connecting to the
  27. local *gpsd* without causing problems.
  28. The program will accumulate subframe messages and output them by GPS
  29. satellite number on exit. By default the program never exits unless the
  30. user selects the number of seconds to run or number of messages to
  31. capture.
  32. By default *gpssubframe* connects to a *gpsd* running on the local host.
  33. Optionally a host, TCP/IP port number and remote device can be given.
  34. == OPTIONS
  35. *-?*, *-h*, *--help*::
  36. -Print a usage message and exit.
  37. *-c COUNT*, *--count COUNT*::
  38. Exit after COUNT subframe messages.
  39. *-D DEBUG*, *--debug DEBUG*::
  40. Set level of debug. Must be integer. Default 0.
  41. *--desc*::
  42. Print long descriptions.
  43. *--device DEVICE*::
  44. Connect to device DEVICE on *gpsd* host.
  45. *-D LVL*, *--debug LVL*::
  46. Set debug level to LVL.
  47. *--file FILE*::
  48. Read gpsd JSON from FILE instead of from gpsd..
  49. *--host HOST*::
  50. Connect to gpsd on host HOST.
  51. *--load LOADFILE*::
  52. Load saved JSON Subframe, TPV, and RAW data trom LOADFILE.
  53. *-n COUNT*, *--count COUNT*::
  54. Count of messages to parse. 0 to disable.
  55. *--port PORT*::
  56. Connect to *gpsd* on port PORT.
  57. *--progress*::
  58. Print progress reports as messages are received.
  59. *--satpos*::
  60. Compute GPS satellite positions before exit. If *--time* is given, the
  61. positions will be calculated at the time. Otherwise if a RAW message
  62. was received, the measurement time in that message will be used. The
  63. last resort is to use the time from the last TPV message is used.
  64. *--save SAVEFILE*::
  65. Save decoded Subframe data in SAVEFILE as JSON. If present, the last
  66. TPV and RAW JSON records will also be saved.
  67. *--test*::
  68. Run *--satpos* selftest code.
  69. *--time SEC*::
  70. Compute satellite position at time SEC in POSIX seconds.
  71. *-V*, *--version*::
  72. Print the program version, then exit.
  73. *-x SEC*, *--seconds SEC*::
  74. Seconds of messages to parse. 0 to disable.
  75. == ARGUMENTS
  76. By default, clients collect data from the local *gpsd* daemon running
  77. on localhost, using the default GPSD port 2947. The optional argument
  78. to any client may override this behavior: *[server[:port[:device]]]*
  79. For further explanation, and examples, see the *ARGUMENTS* section in
  80. the *gps*(1) man page
  81. == EXAMPLES
  82. First configure a u-blox 9-series to output subframe messages. Then have
  83. *gpssubframe* gather one complete set of subframes, then print the data
  84. organized by GPS satellite number. Be sure to replace *-P 22* with the
  85. correct protocol version for your receiver. Then calculate and print the
  86. known satellite positions as well as the azimuth, elevation, and range
  87. from the current position:
  88. ----
  89. ubxtool -P 22 -e SFRBX
  90. gpssubframe -x 750 --satpos
  91. ----
  92. If staring at a blank screen for 12.5 minutes is too stressful, then
  93. enable progress messages:
  94. ----
  95. gpssubframe -x 750 --satpos --progress
  96. ----
  97. == RETURN VALUES
  98. *0*:: on success.
  99. *1*:: on failure
  100. == SEE ALSO
  101. *gpsd*(8), *gps*(1), *gpsprof*(1), *gpsfake*(1).
  102. IS-GPS-200 "NAVSTAR GPS Space Segment/Navigation User Segment
  103. Interfaces"
  104. == RESOURCES
  105. *Project web site:* {gpsdweb}
  106. == COPYING
  107. This file is Copyright 2020 by the GPSD project +
  108. SPDX-License-Identifier: BSD-2-clause