gpssubframe.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!--
  3. This file is Copyright 2020 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='gpssubframe.1'>
  10. <refentryinfo>
  11. <date>28 September 2020</date>
  12. </refentryinfo>
  13. <refmeta>
  14. <refentrytitle>gpssubframe</refentrytitle>
  15. <manvolnum>1</manvolnum>
  16. <refmiscinfo class="source">The GPSD Project</refmiscinfo>
  17. <refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
  18. </refmeta>
  19. <refnamediv id='name'>
  20. <refname>gpssubframe</refname>
  21. <refpurpose>tool to dump subframe sentences from gpsd</refpurpose>
  22. </refnamediv>
  23. <refsynopsisdiv id='synopsis'>
  24. <cmdsynopsis>
  25. <command>gpssubframe</command>
  26. <arg choice='opt'>-?</arg>
  27. <arg choice='opt'>--count <replaceable>COUNT</replaceable></arg>
  28. <arg choice='opt'>-D <replaceable>DEBUG-LEVEL</replaceable></arg>
  29. <arg choice='opt'>--desc</arg>
  30. <arg choice='opt'>--device <replaceable>DEVICE</replaceable></arg>
  31. <arg choice='opt'>-h</arg>
  32. <arg choice='opt'>--help</arg>
  33. <arg choice='opt'>--host <replaceable>HOST</replaceable></arg>
  34. <arg choice='opt'>-n <replaceable>COUNT</replaceable></arg>
  35. <arg choice='opt'>--port <replaceable>PORT</replaceable></arg>
  36. <arg choice='opt'>--progress</arg>
  37. <arg choice='opt'>--satpos</arg>
  38. <arg choice='opt'>--seconds <replaceable>SECONDS</replaceable></arg>
  39. <arg choice='opt'>--test</arg>
  40. <arg choice='opt'>-V</arg>
  41. <arg choice='opt'>-x <replaceable>SECONDS</replaceable></arg>
  42. <group>
  43. <replaceable>server</replaceable>
  44. <group>
  45. <replaceable>:port</replaceable>
  46. <group>
  47. <replaceable>:device</replaceable>
  48. </group>
  49. </group>
  50. </group>
  51. </cmdsynopsis>
  52. </refsynopsisdiv>
  53. <refsect1 id='description'>
  54. <title>DESCRIPTION</title>
  55. <para>
  56. <application>gpssubframe</application> is a tool to connect
  57. to <application>gpsd</application> and dump decoded subframe data
  58. to stdout. This is only useful if your GNSS receiver can output
  59. GPS subframe messages, and is configured to do so. A working
  60. knowledge of IS-GPS-200 is also required. Keep your copy close at
  61. hand.</para>
  62. <para>
  63. <application>gpssubframe</application> does not require root
  64. privileges, and can be run concurrently with other tools connecting
  65. to the local <application>gpsd</application> without causing problems.</para>
  66. <para>The program will accumulate subframe message and output them
  67. by GPS satellite number on exit. By default the program never exits
  68. unless the user selects the number of seconds to run or number of
  69. messages to capture. </para>
  70. <para>By default <application>gpssubframe</application> connects to
  71. a <application>gpsd</application> running on the local host. Optionally
  72. a host, TCP/IP port number and remote device can be given. </para>
  73. </refsect1>
  74. <refsect1 id='options'>
  75. <title>OPTIONS</title>
  76. <para>-? print a usage message and exit.</para>
  77. <para>--count [COUNT] Exit after [COUNT] subframe messages.</para>
  78. <para>--device [DEVICE] connect to device [DEVICE].</para>
  79. <para>-D [debug-level] set debug level..</para>
  80. <para>-h print a usage message and exit.</para>
  81. <para>--help print a usage message and exit.</para>
  82. <para>-n [COUNT] Exit after [COUNT] subframe messages.</para>
  83. <para>-p [PORT] connect on port [PORT].</para>
  84. <para>--progress print progress reports as messages are received.</para>
  85. <para>--satpos Compute GPS satellite positions before exit.</para>
  86. <para>--seconds [seconds] Exit after delay of [seconds].</para>
  87. <para>--test Run selftest code.</para>
  88. <para>-V prints the program version, then exits.</para>
  89. <para>-x [seconds] Exit after delay of [seconds].</para>
  90. </refsect1>
  91. <refsect1 id='examples'>
  92. <title>EXAMPLES</title>
  93. <para>
  94. First connfigure a u-blox 9-series to output subframe messages.
  95. Then have <application>gpssubframe</application> gather one complete
  96. set of subframes, then print the data organized by GPS satellite number.
  97. Then calculate and print the known satellite positions as well as the
  98. azimuth, elevation, and range from the current position:
  99. <programlisting>
  100. ubxtool -P 22 -e SFRBX
  101. gpssubframe -x 750 --satpos
  102. </programlisting>
  103. </para>
  104. <para>If staring at a blank screen for 12.5 minutes is too stressful,
  105. then enable progress messages:
  106. <programlisting>
  107. gpssubframe -x 750 --satpos --progress
  108. </programlisting>
  109. </para>
  110. </refsect1>
  111. <refsect1 id='see_also'>
  112. <title>SEE ALSO</title>
  113. <para>
  114. <citerefentry>
  115. <refentrytitle>gpsd</refentrytitle>
  116. <manvolnum>8</manvolnum>
  117. </citerefentry>,
  118. <citerefentry>
  119. <refentrytitle>gps</refentrytitle>
  120. <manvolnum>1</manvolnum>
  121. </citerefentry>,
  122. <citerefentry>
  123. <refentrytitle>gpsprof</refentrytitle>
  124. <manvolnum>1</manvolnum>
  125. </citerefentry>,
  126. <citerefentry>
  127. <refentrytitle>gpsfake</refentrytitle>
  128. <manvolnum>1</manvolnum>
  129. </citerefentry>,
  130. <citerefentry>
  131. <refentrytitle>gpsctl</refentrytitle>
  132. <manvolnum>1</manvolnum>
  133. </citerefentry>,
  134. <citerefentry>
  135. <refentrytitle>gpscat</refentrytitle>
  136. <manvolnum>1</manvolnum>
  137. </citerefentry>.
  138. </para>
  139. <para>
  140. IS-GPS-200 "NAVSTAR GPS Space Segment/Navigation User Segment Interfaces"
  141. </para>
  142. </refsect1>
  143. <refsect1 id='maintainer'>
  144. <title>AUTHOR</title>
  145. <para>Gary E. Miller <email>gem@rellim.com</email>.</para>
  146. </refsect1>
  147. </refentry>