summaryrefslogtreecommitdiff
path: root/man/ubxtool.xml
blob: 47020e3ebdd73c564d304d15abcc89eec60539fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This file is Copyright (c) 2018 by the GPSD project
BSD terms apply: see the file COPYING in the distribution root for details.
-->
<!DOCTYPE refentry PUBLIC
   "-//OASIS//DTD DocBook XML V4.1.2//EN"
   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id='ubxtool.1'>
 <refentryinfo>
  <date>24 Sep 2018</date>
 </refentryinfo>
 <refmeta>
  <refentrytitle>ubxtool</refentrytitle>
  <manvolnum>1</manvolnum>
  <refmiscinfo class="source">The GPSD Project</refmiscinfo>
  <refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
 </refmeta>
 <refnamediv id='name'>
  <refname>ubxtool</refname>
  <refpurpose>u-blox tool</refpurpose>
 </refnamediv>
 <refsynopsisdiv id='synopsis'>
  <cmdsynopsis>
   <command>ubxtool</command>
   <arg choice='opt'>-? </arg>
   <arg choice='opt'>-c <replaceable>command</replaceable>
   </arg>
   <arg choice='opt'>-d <replaceable>disable</replaceable>
   </arg>
   <arg choice='opt'>-e <replaceable>enable</replaceable>
   </arg>
   <arg choice='opt'>-f <replaceable>file/device</replaceable>
   </arg>
   <arg choice='opt'>-h </arg>
   <arg choice='opt'>-i <replaceable>interface</replaceable></arg>
   <arg choice='opt'>-m <replaceable>mode</replaceable></arg>
   <arg choice='opt'>-P <replaceable>protver</replaceable></arg>
   <arg choice='opt'>-p <replaceable>preset</replaceable></arg>
   <arg choice='opt'>-R <replaceable>rawfile</replaceable></arg>
   <arg choice='opt'>-r </arg>
   <arg choice='opt'>-S <replaceable>setspeed</replaceable></arg>
   <arg choice='opt'>-s <replaceable>speed</replaceable></arg>
   <arg choice='opt'>-V </arg>
   <arg choice='opt'>-v <replaceable>verbosity</replaceable></arg>
   <arg choice='opt'>-w <replaceable>wait</replaceable></arg>
   <arg choice='opt'>[server[:port[:device]]]</arg>
  </cmdsynopsis>
 </refsynopsisdiv>
 <refsect1 id='description'>
  <title>DESCRIPTION</title>
  <para>
   <application>ubxtool</application> is a tool for u-blox GPS.
If you do not have a u-blox GPS then can stop reading now.</para>
  <para>This tool operates with your u-blox GPS at a very low level.
To understand <application>ubxtool</application> you must first be familiar
with your u-blox GPS and the documentation for the u-blox binary protocol.
The u-blox protocol varies greatly depending on GPS model and firmware
revision.
</para>
  <para>
   <application>ubxtool</application> can decode common u-blox binary
 messages, poll the GPS status, enable and disable GPS features, and send user
generated commands to the GPS.  It can read binary messages from a file.  It
can read and write directly through a serial device, or through a
running gpsd instance.</para>
 </refsect1>
 <refsect1 id='options'>
  <title>OPTIONS</title>
  <para>The program accepts the following options:</para>
  <variablelist remap='TP'>
   <varlistentry>
    <term>-c COMMAND</term>
    <listitem>
     <para>Send a command to the GPS.  Accepts one parameter, COMMAND,
a comma-separated list of hexadecimal bytes specifying the class, the ID,
and any needed payload.  The header, length, and checksum are added automatically.
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-d OPTION</term>
    <listitem>
     <para>Disable an option in the GPS.  Accepts one parameter, OPTION,
the option to disable.
</para>
     <variablelist>
      <varlistentry>
       <term>BEIDOU</term>
       <listitem>
        <para>Disable use of the BeiDou (COMPASS) constellation.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>BINARY</term>
       <listitem>
        <para>Disable sending of the basic binary messages.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>ECEF</term>
       <listitem>
        <para>Disable sending of ECEF binary messages.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>GALILEO</term>
       <listitem>
        <para>Disable use of the GALILEO constellation.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>GLONASS</term>
       <listitem>
        <para>Disable use of the GLONASS constellation.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>GPS</term>
       <listitem>
        <para>Disable use of the GPS and QZSS constellations.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>NMEA</term>
       <listitem>
        <para>Disable sending basic NMEA messages.  The messages are
GBS, GGA, GSA, GGL, GST, GSV, RMC, VTG, and ZDA.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>RAWX</term>
       <listitem>
        <para>Disable sending of the UBX-RXM-RAWX messages.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>SBAS</term>
       <listitem>
        <para>Disable use of the SBAS constellation.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>TMODE2</term>
       <listitem>
        <para>Disable sending TMODE2.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>TP</term>
       <listitem>
        <para>Disable sending UBX-TIM-TP.</para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-e OPTION</term>
    <listitem>
     <para>Enable an option in the GPS.  Accepts one parameter, OPTION,
the option to enable.  -e accepts the same OPTIONs as -d, except the action
is to enable the option.
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-f FILE</term>
    <listitem>
     <para>Connect to a file or device.  Accepts one parameter, FILE,
the file or device to open.   Files are opened read-only.  Character
devices are opened read/write, unless the -r parameter is given.
Requires the pyserial module.
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-h</term>
    <listitem>
     <para>Makes <application>ubxtool</application> print
a usage message and exit.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-i interface</term>
    <listitem>
     <para>Specifies interface (port) for port-related commands.
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-m mode</term>
    <listitem>
     <para>Sets optional mode parameter to a -p PRESET command.
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-P protver</term>
    <listitem>
     <para>Sets the protocol version to use for sending commands.  Minimum
10 (ublox 5).  Maximum 27 (u-blox 9)
</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-p PRESET</term>
    <listitem>
     <para>Send a preset command the GPS.  Accepts one parameter, PRESET,
the name of the command to send.  <application>ubxtool</application> will exit
after the GPS acknowledges the command, unless the -W is given.
</para>
     <variablelist>
      <varlistentry>
       <term>ANT</term>
       <listitem>
        <para>Poll the antenna configuration (UBX-CFG-ANT).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>COLDBOOT</term>
       <listitem>
        <para>Coldboot the GPS (UBX-CFG-RST).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>GNSS</term>
       <listitem>
        <para>Poll the enabled constellations (UBX-CFG-GNSS).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>HOTBOOT</term>
       <listitem>
        <para>Hotboot the GPS (UBX-CFG-RST).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>MODEL</term>
       <listitem>
        <para>Configure the Dynamic Platform Model. (UBX-CFG-NAV5).
</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>NAV5</term>
       <listitem>
        <para>Poll the Nav Engines Settings (UBX-CFG-NAV5).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>NAVX5</term>
       <listitem>
        <para>Poll the Nav Engines Expert Settings (UBX-CFG-NAVX5).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>PMS</term>
       <listitem>
        <para>Poll power management settings (UBX-CFG-PMS).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>PRT</term>
       <listitem>
        <para>Poll I/O port settings (UBX-CFG-PRT).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>RESET</term>
       <listitem>
        <para>Reset config to defaults (UBX-CFG-CFG).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>RXM-RAWX</term>
       <listitem>
        <para>Poll UBX-RXM-RAWX message.</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>RESET</term>
       <listitem>
        <para>Reset configuration to defaults (UBX-CFG-CFG).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>SAVE</term>
       <listitem>
        <para>Save current configuration (UBX-CFG-CFG).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>SBAS</term>
       <listitem>
        <para>Poll SBAS settings (UBX-CFG-SBAS).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>SVIN</term>
       <listitem>
        <para>Poll survey in data (UBX-CFG-SVIN).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>TMODE2</term>
       <listitem>
        <para>Poll Time Mode 2 configuration (UBX-CFG-TMODE2).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>TP</term>
       <listitem>
        <para>Poll time pulse timedata (UBX-TIM-TP).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>TP5</term>
       <listitem>
        <para>Get Time Pulse decodes (UBX-TIM-TP5).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>USB</term>
       <listitem>
        <para>Poll USB config (UBX-CFG-USB).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>VER</term>
       <listitem>
        <para>Poll GPS version (UBX-MON-VER).</para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term>WARMBOOT</term>
       <listitem>
        <para>Warmboot the GPS (UBX-CFG-RST).</para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-R RAW</term>
    <listitem>
     <para>Save all raw data from the GPS into the file RAW.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-r</term>
    <listitem>
     <para>Read only.  Do not send anything to the GPS.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-S SPEED</term>
    <listitem>
     <para>Set the GPS serial port speed to SPEED bps.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-s SPEED</term>
    <listitem>
     <para>Set local serial port speed to SPEED bps. Default 115,200 bps.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-V</term>
    <listitem>
     <para>Print <application>ubxtool</application> version and exit.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-v VERBOSITY</term>
    <listitem>
     <para>Set verbosity level to VERBOSITY.  Verbosity can be from 0
     (very quiet), 2 (decode messages), to 4 (very noisy).  Default 1.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-w WAIT</term>
    <listitem>
     <para>Wait for WAIT seconds before exiting.  Will exit early on command
completion of -d, -e or -p command, unless -W is given.  Default 2.0 second.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>-?</term>
    <listitem>
     <para>Makes <application>ubxtool</application> print
a usage message and exit.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>[server[:port[:device]]]</term>
    <listitem>
     <para>
       By default, <application>ubxtool</application> collects data
       from all compatible devices on localhost, using the default GPSD
       port 2947. An optional argument may specify a server to get data
       from. A colon-separated suffix is taken as a port number. If
       there is a second colon-separated suffix, that is taken as a
       specific device name to be watched. Further details on the
<citerefentry>
       <refentrytitle>gps</refentrytitle>
       <manvolnum>1</manvolnum>
      </citerefentry> man page.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
 <refsect1 id='environment'>
  <title>ENVIRONMENT</title>
  <para>Options can be placed in the UBXOPTS environment variable.
UBXOPTS is processed before the CLI options.</para>
 </refsect1>
 <refsect1 id='examples'>
  <title>EXAMPLES</title>
  <para>
Decode raw log file:
<programlisting>
ubxtool -r -f ublox-neo-m8n.log
</programlisting>
  </para>
  <para>
Change GPS port speed of device on /dev/ttyAMA0 to 230,400 bps:
<programlisting>
ubxtool -S 230400 -f /dev/ttyAMA0
</programlisting>
  </para>
  <para>
Watch entire GPS reset cycle, include $GPTXT messages:
<programlisting>
ubxtool -p COLDBOOT -w 20 -v 2
</programlisting>
  </para>
  <para>
Poll Enabled Constellations:
<programlisting>
ubxtool -p GNSS
</programlisting>
Dump gpsd data from remote server:
<programlisting>
ubxtool -w 5 server
</programlisting>
  </para>
 </refsect1>
 <refsect1 id='see_also'>
  <title>SEE ALSO</title>
  <para>
   <application>ubxtool</application> is written to conform to the official
u-blox documentation for the u-blox binary protocol.
<ulink url="https://www.u-blox.com/en/product-resources"></ulink></para>
  <para>
   <citerefentry>
    <refentrytitle>gpsd</refentrytitle>
    <manvolnum>8</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>gps</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>cgps</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>xgps</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>gpsfake</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>gpsctl</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>gpscat</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>,
<citerefentry>
    <refentrytitle>gnuplot</refentrytitle>
    <manvolnum>1</manvolnum>
   </citerefentry>.
</para>
 </refsect1>
 <refsect1 id='maintainer'>
  <title>AUTHOR</title>
  <para>Gary E. Miller<email>gem@rellim.com</email>
  </para>
 </refsect1>
</refentry>