GPSD(8) GPSD Documentation GPSD(8) (NAME) gpsd - GPS (SYNOPSIS) gpsd [] gpsd -h gpsd -V (QUICK START) GPS USB TCP/IP (root) : # gpsd /dev/ttyUSB0 : # gpsd /dev/ttyS0 gpsd sudo . . (SECURITY AND PERMISSIONS ISSUES) . . -b ( ). udev gpsd USB ( ) . . GPS NMEA gpsd . GPS (native) gpsd gpsd . gpsd xgps ( X) cgps ( curses) . GPSD . . (DESCRIPTION) gpsd GPS GPS ( DGPS) AIS . GPS DGPS AIS USB RS232C . gpsd ( USB) . GPS gpsd . gpsd GPS NMEA 0183 NMEA MTK-3301 iTrax Motorola OnCore Sony CXD2951 Ashtech/Thales . EverMore Garmin Javad Navcom Rockwell/Zodiac SiRF Trimble u-blox . NMEA2000 CAN . (heading and attitude) TNT Revolution . GPS gpsd . GPS gpsd -l . gpsd GPS . GPS . gpsd . gpsd GPS DGPS DGPSIP Ntrip RTCM-104 . gpsd RTCM-104 GPS RTCM ( GPS GPS RTCM ). TCP/IP ( ) gpsd . IPv4 IPv6 . (OPTIONS) : -?, -h, ---help . -b, --readonly . USB GPSD . gpsd . gpsd . . . -D LVL, --debug LVL . 0 . 2 gpsd (-N) (stderr) syslog . (LOGGING) . -F FILE, --sockfile FILE . None . . -f FRAME, --framing FRAME (framing) GNSS. : [78][ENO][012] . GNSS 8N1 . Trimble 8O1 . . -G, --listenany gpsd (INADDR_ANY) (INADDR_LOOPBACK) . gpsd . -l, --drivers gpsd . gpsd . . -n, --nowait GPS . GPS RS232 DTR ( ) GPS . . ( ). gpsd ntpd chronyd . . -N, --foreground . . -p, --passive (). . -P FILE, --pidfile FILE (PID) . -r, --badtime GPS (fix). GPS (RTC) . RTC . . --port PORT, -S PORT TCP/IP GPSD ( ). -s SPEED, --speed SPEED GNSS. : 4800 9600 19200 38400 57600 115200 230400 460800 921600. (autobaud) . USB . -V, --version . . GPS . : USB USB . : /dev/ttyS0 /dev/ttyUSB0. PPS PPS PPS . "/dev/pps" GPS USB . : /dev/pps0. TCP URI "://tcp" . . : tcp://data.aishub.net:4006. UDP URI "://udp" . UDP . : udp://127.0.0.1:5000. Ntrip URI "://ntrip" Ntrip ( Ntrip GPS ). Ntrip "@username:password" Ntrip . Ntrip (stream) "streamname/" . URI DGPSIP "dgpsip://dgpsip.example.com" URI Ntrip "ntrip://foo:bar@ntrip.example.com:80/example-stream" . GPS . DGPSIP URI "://dgpsip" ( ). DGPSIP RTCM2 . GPS . : dgpsip://dgps.wsrcc.com:2101. gpsd URI "://gpsd" ( gpsd ). . gpsd JSON gpsd . : gpsd://gpsd.io:2947:/dev/ttyAMA0. CAN NMEA2000 URI "://nmea2000" CAN. CAN . gpsd CAN . CAN GPS gpsd GPS . : nmea2000://can0. ( "://ais" "://tcp" ). MAGIC_HAT : /dev/ttyAMA0 UART . /dev/pps0 RFC2783 1PPS . /dev/gpsd0 GPS . /dev/pps0 RFC2783 1PPS . /dev/pps0 PPS "ktimer" /dev/pps1 . (device pool) . . . . ( ) gpsd (hook) /etc/gpsd/device-hook ACTIVATE . DEACTIVATE . gpsd : D-Bus. . (LOGGING) gpsd ( ) syslog(3) . "gpsd" "LOG_USER" . syslog-ng gpsd /var/log/gpsd . /etc/syslog-ng/syslog-ng.conf : destination gpsdf { file("/var/log/gpsd"); }; filter f_gpsd { program("gpsd"); }; log { source(src); filter(f_gpsd); destination(gpsdf); }; (THE SOCKET INTERFACE) . libgps . - gpsd_json(5) . (SHARED-MEMORY AND DBUS INTERFACES) gpsd ( ) . (shared memory segment) . C ++C GPSD . libgps(3) . gpsd . (fix) D-Bus . "path /org/gpsd" "org.gpsd" "fix" . (payload) : . (Satellite object) +-----------------+-----------------------------+ | | | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | ( | | | | | | ) | +-----------------+-----------------------------+ |DBUS_TYPE_INT32 | | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | (). | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | (MSL) . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_DOUBLE | | | | | | | | | | . | +-----------------+-----------------------------+ |DBUS_TYPE_STRING | | | | | +-----------------+-----------------------------+ GNSS . " " . GPS (GPS DEVICE MANAGEMENT) gpsd GPS (" "). . GPS (root) . -F . GPSD . (EOF) . gpsd (hotplug) gpsd . SIGHUP gpsd GPS . GPS . GPS DTR . gpsd ( ) . . gpsd GPS ('+') LF CR-LF . /dev/foo "+/dev/foo\n" . ('-') LF CR-LF . /dev/foo "-/dev/foo\n" . '!' '=' . '&' '=' . "OK" "ERROR" . ERROR 'add' GPS ERROR gpsd . ERROR '!' . . gpsd . (ACCURACY) (UERE) GPS . UERE . . (VDOP) VDOP HDOP . GPS . GPS . gpsd . DGPS UERE ( ) DGPS . gpsd . GPS . gpsd . ( ) . GPS PPS ( ) RS232 . GPS . GPS SiRF UTC . . gpsd . gpsd : GPS GPS ( ) (rollover). . . gpsd . GPS NMEA ( SiRF Garmin Zodiac) gpsd . GPS GPZDA ( GPS NMEA ) gpsd . . NTP (USE WITH NTP) gpsd ntpd chronyd GPS . gpsd PPS (carrier-detect) GPS NTP . -D 5 GPS . RFC 2783 kernel PPS API gpsd . gpsd (SHM) ntpd . SHM SHM(0) SHM(7) () NTP0 NTP7 . NTP0 NTP1 . NTP2 NTP3 . gpsd ntpd ntpshmmon . ptp4l SHM ntpd . GPSD GPSD . (USE WITH D-BUS) D-BUS gpsd GPS D-BUS . D-BUS . gpsd . (SECURITY AND PERMISSIONS ISSUES) gpsd -G . -G . gpsd NTPD (root) . gpsd sudo . GPS (UID) "nobody" ( ) (GID) GPS -- /dev/ttyS0 -- . GPS gpsd . (root) . gpsd tty GPS / . gpsd GPS ( ). (DoS) ( ) gpsd (timeout) . ( ) . (watcher) (raw) gpsd . (polling) ( ) . (CAPABILITIES) gpsd capabilities(7) . : . (caps object) +-----------+----------------------------+ | | | +-----------+----------------------------+ |CAP_FOWNER | ()chmod | +-----------+----------------------------+ |CAP_SETGID | ()setgid() | | | setgroups | +-----------+----------------------------+ |CAP_SETUID | ()setuid | +-----------+----------------------------+ : export CAPS='cap_fowner=ep cap_setgid=ep cap_setuid=ep' setcap "${CAPS}" [path-to-gpsd] : getcap [path-to-gpsd] (LIMITATIONS) NMEA RMC GLL GGA ( RS422 ) 'TPV' GGA / RMC/GLL . gpsd GPS ( ) . NMEA GPS . VDOP/TDOP/GDOP . gpsd . ( gpsd ) . (Autobauding) GPS Trimble GPS . -s . (eph, epv, epd, eps, epc) GPS . . AIDVM - - - . GPSD RTCM2 ( ). . - - - () - - () - . ISGPS RTCM2 ( GCC 3.x -O2) . PPS ( ) . PPS (line discipline) . POSIX . GPS USB USB 00h () FFh ( ) USB . gpsd USB GPS . GPS gpsd . GPS GPSD GPSD ( ). (FILES) /dev/ttyS0 TTY . GPS gpsd . /etc/gpsd/device-hook / . /etc/gpsd GPSD . device-hook . /@RUNDIR@/chrony.XXX.sock chronyd SOCK XXX ( ttyS0). gpsd . PPS chronyd . /@RUNDIR@/chrony.clk.XXX.sock chrony.XXX.sock chronyd PPS ( NMEA) . (ENVIRONMENT VARIABLES) GPSD_SHM_KEY . gpsd . (RETURN VALUES) 0 . 1 . (APPLICABLE STANDARDS) NMEA NMEA0183 NMEA2000 (NMEA) gpsd . GPSD . gpsd NMEA : RMC GGA GLL GSA GSV VTG ZDA GBS HDT DBT GST. GP talker-ID GN GLONASS II Seahawk Autohelm IN Garmin EC ECDIS SD () HC TI Airmar . : PGRME GPS PTNTHTM True North PMTK GPS San Jose Navigation PASHR GPS Ashtech. JSON gpsd / NMEA . GPS RTCM . RTCM-104 V2 RTCM GNSS ( ) RTCM Paper 136-2001/SC 104-STD . RTCM-104 V3 RTCM 10403.1 GNSS - RTCM Paper 177-2006-SC104-STD . RTCM "Publications" . AIS ITU M.1371 . AIVDM/AIVDO IEC-PAS 61162-100 . GPSD AIVDM/AIVDO Protocol Decoding . IS-GPS-200 GPS (IS-GPS-200) . ( II) . JSON RFC 7159 (JSON) . PPS RFC 2783 . gpsd POSIX 1e Capabilities . capabilities(7) . (AUTHORS) : Eric S. Raymond Chris Kuethe Gary Miller. : Remco Treffcorn Derrick Brashear Russ Nelson. Eric S. Raymond . (SEE ALSO) gpsctl(1), gps(1), gpsprof(1), gpsfake(1). gpscat(1), *ntpshmmon(1), libgps(3), libgpsmm(3) gpsd_json(5) capabilities(7) chronyd(8), gpsd(8), gpsdctl(8), ntpd(8) (RESOURCES) : (FAQ): (Time Service HOWTO): : (COPYING) GPSD SPDX-License-Identifier: BSD-2-clause GPSD, Version 3.27.5 2025-11-04 GPSD(8)