table of contents
GPSDECODE(1) | GPSD Documentation | GPSDECODE(1) |
NAME¶
gpsdecode - decode GPS, RTCM or AIS streams into a readable format
SYNOPSIS¶
gpsdecode [OPTIONS]
gpsdecode -h
gpsdecode -V
NOTE¶
Eurolinux support for this package is limited. %{note2}
DESCRIPTION¶
gpsdecode tool is a batch-mode decoder for NMEA and various binary packet formats associated with GPS, AIS, and differential-correction services. It produces a JSON dump on standard output from binary on standard input. The JSON is the same format documented by gpsd; this tool uses the same decoding logic as gpsd, but with a simpler interface intended for batch processing of data files.
All sensor-input formats known to the GPSD project can be decoded by this tool. These include: NMEA, AIVDM (the NMEA-derived sentence format used by AIS, the marine Automatic Identification System), RTCM2, and all supported GPS binary formats (notably including SiRF). See gpsd(8) for applicable standards and known limitations of the decoding logic.
You can use this tool with nc(1) to examine AIS feeds from AIS pooling services, RTCM feeds from RTCM receivers or NTRIP broadcasters.
OPTIONS¶
-?, -h, --help
-c, --json
-d, --decode
-D LVL, --debug LVL
-e, --encode
-j, --json
-m, --minlength
-n, --nmea
-s, --split24
-t TYPES, --types TYPES
-u, --unsscaled
-v, --verbose
-V, --version
AIS DSV FORMAT¶
With the -c or --ais option, dump lines are values of AIS payload fields, pipe-separated, in the order that they occur in the payload. Spans of fields expressing a date are emitted as an ISO8601 timestamp (look for colons and the trailing Z indicating Zulu/UTC time), and the 19-bit group of TDMA status fields found at the end of message types 1-4 are are dumped as a single unsigned integer (in hex preceded by "0x"). Unused regional-authority fields are also dumped (in hex preceded by "0x"). Variable-length binary fields are dumped as an integer bit length, followed by a colon, followed by a hex dump.
RETURN VALUES¶
0
1
SEE ALSO¶
RESOURCES¶
Project web site: <https://gpsd.io/>
COPYING¶
This file is Copyright 2013 by the GPSD project
SPDX-License-Identifier: BSD-2-clause
AUTHOR¶
Eric S. Raymond
2023-01-10 | GPSD, Version 3.25 |