zerk.adoc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. = zerk(1)
  2. Gary E. Miller <gem@rellim.com.>
  3. :author: Gary E. Miller
  4. :date: 25 February 2021
  5. :email: gem@rellim.com
  6. :keywords: gps, gpsd, zerk, JavaD, GREIS
  7. :manmanual: GPSD Documentation
  8. :mansource: GPSD, Version {gpsdver}
  9. :robots: index,follow
  10. :sectlinks:
  11. :type: manpage
  12. :webfonts!:
  13. :toc: macro
  14. include::../www/inc-menu.adoc[]
  15. == NAME
  16. zerk - All purpose GREIS fitting
  17. == OPTIONS
  18. *zerk* [OPTIONS] [server[:port[:device]]]
  19. *zerk* -h
  20. *zerk* -V
  21. == DESCRIPTION
  22. *zerk* is an all purpose GREIS (GNSS Receiver External Interface
  23. Specification) fitting. If you do not have a Javad GPS that speaks
  24. the GREIS protocol then you can stop reading now.
  25. This tool operates with your Javad GPS at a very low level. To
  26. understand *zerk* you must first be familiar with your Javad GPS and the
  27. documentation for the GREIS protocol.
  28. https://www.javad.com/downloads/javadgnss/manuals/GREIS/GREIS_Reference_Guide.pdf[GREIS Guide].
  29. *zerk* can decode common GREIS messages, poll the GPS status, enable and
  30. disable GPS features, and send user-generated commands to the GPS. It
  31. can read GREIS messages from a file. It can read and write directly
  32. through a serial device, or through a running *gpsd* instance.
  33. *zerk* does not require root privileges, except maybe to access the
  34. serial port in direct mode. It will run fine as root. Running under
  35. sudo will cause loss of functionality.
  36. == OPTIONS
  37. The program accepts the following options:
  38. *-?*, *-h*::
  39. Makes *zerk* print a usage message and exit.
  40. *-c COMMAND*::
  41. Send a text string to the GPS. Accepts one parameter, COMMAND, the
  42. command string to send to the GPS. The string is sent verbatim, except
  43. a newline is appended.
  44. *-d OPTION*::
  45. Disable an option in the GPS. Accepts one parameter, OPTION, the
  46. option to disable. *zerk* will exit after the GPS acknowledges the
  47. command, unless the *-W* is given.
  48. 4HZ;;
  49. Disable basic GREIS messages at 4Hz. The messages
  50. are: [RT], [UO], [GT], [PV], [SG], [DP], [SI], [EL], [AZ], [EC], [SS], and [ET]
  51. COMPASS;;
  52. Disable use of the COMPASS (BeiDou) constellation.
  53. CONS;;
  54. Disable use of all constellations.
  55. DEFMSG;;
  56. Disable the default message set (/dev/msg) at 1Hz.
  57. GALILEO;;
  58. Disable use of the GALILEO constellation.
  59. GLONASS;;
  60. Disable use of the GLONASS constellation.
  61. GPS;;
  62. Disable use of the GPS constellation.
  63. IPR;;
  64. Disable all Integer Pseudo Range messages. These are [rx], [rc],
  65. [r1], [r2], [r3], [r5], [rl].
  66. IRNSS;;
  67. Disable use of the IRNSS constellation.
  68. NMEA;;
  69. Disable basic NMEA 4.1e messages at 4Hz. The messages are GBS, GGA,
  70. GSA, GST, GSV, RMC, VTG, and ZDA.
  71. QZSS;;
  72. Disable use of the QZSS constellation.
  73. SBAS;;
  74. Disable use of the SBAS constellation.
  75. SNR;;
  76. Disable all SNR messages, except [EC]. The messages disabled are:
  77. [E1], [E2], [E3], [E5], [El].
  78. *-e OPTION*::
  79. Enable an option in the GPS. Accepts one parameter, OPTION, the option
  80. to enable. *zerk* will exit after the GPS acknowledges the command,
  81. unless the *-W* is given. *-e* accepts the same OPTIONs as *-d*, except the
  82. action is to enable the option.
  83. *-f FILE*::
  84. Connect to a file or device. Accepts one parameter, FILE, the file or
  85. device to open. Files are opened read-only. Character devices are
  86. opened read/write, unless the -r parameter is given. Requires the
  87. pyserial module.
  88. *-O OAF*::
  89. Load an Option Authorization File (OAF) into the GPS. Accepts one
  90. parameter, OAF, command file to read. The OAF is just a special case
  91. of a '.jpo' (GREIS command file). -O will send any valid .jpo file to
  92. the GPS.
  93. *-p PRESET*::
  94. Send a preset command the GPS. Accepts one parameter, PRESET, the name
  95. of the command to send. *zerk* will exit after the GPS acknowledges the
  96. command, unless the *-W* is given.
  97. COLDBOOT;;
  98. Coldboot the GPS.
  99. CONS;;
  100. Poll the enabled constellations.
  101. DM;;
  102. Disable all periodic GREIS messages.
  103. ID;;
  104. Poll the receiver ID.
  105. IPR;;
  106. Poll all Integer Pseudo Range messages. These are [rx], [rc], [r1],
  107. [r2], [r3], [r5], [rl].
  108. OAF;;
  109. Poll all OAF options.
  110. RESET;;
  111. Reset (reboot) the GPS.
  112. SERIAL;;
  113. Poll receiver serial number.
  114. SNR;;
  115. Poll all Signal to Noise Ratio (SNR) messages. [EC], [E1], [E2],
  116. [E3], [E5], [El].
  117. VENDOR;;
  118. Poll GPS vendor.
  119. VER;;
  120. Poll GPS version.
  121. *-r*::
  122. Read only. Do not send anything to the GPS.
  123. *-R RAW*::
  124. Save all raw data from the GPS into the file RAW.
  125. *-S SPEED*::
  126. Configure the GPS serial speed to SPEED bps.
  127. *-s SPEED*::
  128. Set local serial port speed to SPEED bps. Default 115,200 bps.
  129. *-V*::
  130. Print *zerk* version and exit.
  131. *-v VERBOSITY*::
  132. Set verbosity level to VERBOSITY. Verbosity can be from 0 (very
  133. quiet), to 4 (very noisy). Default 2.
  134. *-W*::
  135. Force waiting the entire wait time. No early exit for completion of
  136. *-d*, *-e* or *-p* command.
  137. *-w WAIT*::
  138. Wait for WAIT seconds before exiting. Will exit early on command
  139. completion of *-d*, *-e* or *-p* command, unless *-W* is given. Default 2.0
  140. second.
  141. == ARGUMENTS
  142. By default, clients collect data from the local *gpsd* daemon running
  143. on localhost, using the default GPSD port 2947. The optional argument
  144. to any client may override this behavior: *[server[:port[:device]]]*
  145. For further explanation, and examples, see the *ARGUMENTS* section in
  146. the *gps*(1) man page
  147. == ENVIRONMENT
  148. Options can be placed in the ZERKOPTS environment variable. ZERKOPTS is
  149. processed before the CLI options.
  150. == EXAMPLES
  151. Print current Javad serial port of GPS connected to local running
  152. *gpsd*:
  153. ----
  154. zerk -c "print,/cur/term"
  155. ----
  156. Decode raw log file:
  157. ----
  158. zerk -r -f greis-binary.log -v 2
  159. ----
  160. Change GPS port speed of device on /dev/ttyAMA0 to 230,400 bps:
  161. ----
  162. zerk -S 230400 -f /dev/ttyAMA0
  163. ----
  164. Watch entire GPS reset cycle:
  165. ----
  166. zerk -p RESET -v 2 -w 20 -W
  167. ----
  168. Poll SVs Status:
  169. ----
  170. zerk -W -w 2 -v 2 -c "out,,jps/{CS,ES,GS,Is,WS,QS}"
  171. ----
  172. Dump *gpsd* data from remote server:
  173. ----
  174. zerk -v 2 -w 5 server
  175. ----
  176. == RETURN VALUES
  177. *0*:: on success.
  178. *1*:: on failure
  179. == SEE ALSO
  180. *zerk* is written to conform to the official Javad documentation for the
  181. GREIS protocol.
  182. https://www.javad.com/downloads/javadgnss/manuals/GREIS/GREIS_Reference_Guide.pdf[GREIS Guide].
  183. *gpsd*(8)
  184. == RESOURCES
  185. *Project web site:* {gpsdweb}
  186. == COPYING
  187. This file is Copyright 2013 by the GPSD project +
  188. SPDX-License-Identifier: BSD-2-clause