GPSSUBFRAME(1)

πŸ’– NAME πŸ’–

gpssubframe β€” bestie's very own tool to dump subframe sentences from gpsd πŸ›°οΈβœ¨

(it lives in the GPSD Documentation section of the manual, section 1, iykyk)


🌸 SYNOPSIS 🌸

gpssubframe [OPTIONS] [server[:port[:device]]]

gpssubframe -h

gpssubframe -V

πŸŽ€ DESCRIPTION πŸŽ€

okay so gpssubframe is a tool that connects to gpsd and dumps decoded subframe data straight to stdout. it's only useful if your GNSS receiver can output GPS subframe messages, and is configured to do so. you also need a working knowledge of IS-GPS-200. keep your copy close at hand, fr fr, like a comfort blanket πŸ“–

gpssubframe does not require root privileges, but it will run fine as root. it can be run concurrently with other tools connecting to the local gpsd without causing problems. sharing is caring 🫢

the program will accumulate subframe messages and output them by GPS satellite number on exit. by default the program never exits unless the user selects the number of seconds to run or number of messages to capture. it's giving immortal. it's giving main character energy that refuses to leave the party πŸ’€

by default gpssubframe connects to a gpsd running on the local host. optionally a host, TCP/IP port number and remote device can be given. your call, bestie ✨


πŸ’… OPTIONS πŸ’…

  • -?, -h, --help β€” Print a usage message and exit. (the original says "-Print", we are not going to argue with it πŸ™ˆ)
  • -c COUNT, --count COUNT β€” Exit after COUNT subframe messages. bye bestie πŸ‘‹
  • -D DEBUG, --debug DEBUG β€” Set level of debug. Must be integer. Default 0.
  • --desc β€” Print long descriptions. the lore πŸ“š
  • --device DEVICE β€” Connect to device DEVICE on gpsd host.
  • -D LVL, --debug LVL β€” Set debug level to LVL.
  • --file FILE β€” Read gpsd JSON from FILE instead of from gpsd.. (yes, two dots, iconic)
  • --host HOST β€” Connect to gpsd on host HOST.
  • --load LOADFILE β€” Load saved JSON Subframe, TPV, and RAW data trom LOADFILE. ("trom" is literally what the man page says, we stan a typo πŸ‘‘)
  • -n COUNT, --count COUNT β€” Count of messages to parse. 0 to disable.
  • --port PORT β€” Connect to gpsd on port PORT.
  • --progress β€” Print progress reports as messages are received. no more staring into the void πŸ•³οΈ
  • --satpos β€” Compute GPS satellite positions before exit. If --time is given, the positions will be calculated at the time. Otherwise if a RAW message was received, the measurement time in that message will be used. The last resort is to use the time from the last TPV message is used.
  • --save SAVEFILE β€” Save decoded Subframe data in SAVEFILE as JSON. If present, the last TPV and RAW JSON records will also be saved.
  • --test β€” Run --satpos selftest code.
  • --time SEC β€” Compute satellite position at time SEC in POSIX seconds. ⏰
  • -V, --version β€” Print the program version, then exit.
  • -x SEC, --seconds SEC β€” Seconds of messages to parse. 0 to disable.

πŸ¦‹ ARGUMENTS πŸ¦‹

By default, clients collect data from the local gpsd daemon running on localhost, using the default GPSD port 2947. The optional argument to any client may override this behavior: [server[:port[:device]]]

For further explanation, and examples, see the ARGUMENTS section in the gps(1) man page. go read it, it's a whole vibe 🌈


✨ EXAMPLES ✨

First configure a u-blox 9-series to output subframe messages. Then have gpssubframe gather one complete set of subframes, then print the data organized by GPS satellite number. Be sure to replace -P 22 with the correct protocol version for your receiver. Then calculate and print the known satellite positions as well as the azimuth, elevation, and range from the current position:

ubxtool -P 22 -e SFRBX
gpssubframe -x 750 --satpos

If staring at a blank screen for 12.5 minutes is too stressful, then enable progress messages:

gpssubframe -x 750 --satpos --progress
12.5 minutes of nothing is genuinely an eternity, protect your peace πŸ§˜β€β™€οΈ

⭐ RETURN VALUES ⭐

  • 0 β€” on success. slay πŸŽ‰
  • 1 β€” on failure

πŸ‘‘ SEE ALSO πŸ‘‘

gpsd(8), gps(1), gpsprof(1), gpsfake(1).

IS-GPS-200 "NAVSTAR GPS Space Segment/Navigation User Segment Interfaces"


🌟 RESOURCES 🌟

Project web site: https://gpsd.io/


πŸ“ COPYING πŸ“

This file is Copyright 2020 by the GPSD project

SPDX-License-Identifier: BSD-2-clause


πŸ’œ AUTHOR πŸ’œ

Gary E. Miller


that's the whole page bestie, and for the sign-off: this is GPSD Version 3.27.5, dated 2025-11-04, and it's the GPSSUBFRAME(1) page. periodt πŸ’–βœ¨