rawgnss2gpsprof
This is an old revision of the document!
Table of Contents
raw GNSS to `gpsprof`
gpsprof is the best tool I have found so far to create skymaps from GNSS data streams. u-center has a nice sky map but it tends to crash out or get buggy after about 12 hours of data, and it's not possible to export the skymap to an image. gpsprof is designed to work with a live gpsd connection, but it will happily ingest historical data in the gpsd json format. Converting a ubx file captured from u-center, or raw from the GNSS device, to gpsd json is a trivial task with gpsfake.
Resources
Steps for ubx
- Capture a ubx log file with the necessary SV information (e.g. UBX-NAV-SAT)
- Use
gpsfaketo stream the ubx log into agpsdinstance
gpsfake -1 -b -t -P 3000 /path/to/gnss_log.ubx- Note 1: if
gpsdisn't in the user'spath, you may need to rungpsfakeas root. This is the case on debian. - Note 2: the
-1flag is important to make sure it doesn't loop. A client will get a single shot of the data. - Note 3: -P 3000 to run on port 3000 is necessary to deconflict other gpsd instances
- Optional: run
cgpsto connect to thegpsdinstance to verify that the data is working as expected. Sincegpsfakewas started in single shot mode, it will have to be restarted aftercgpsexists. - Run
gpspipeto export it togpsdjson
gpspipe –json -o /path/to/gnss_log.json - Pipe the json file into
gpsprof
cat gnss_log.json | gpsprof -f polarused -T pngcairo -r > gnss_log_polarused.plot - Run
gnuplotto create an image from the plot data
gnuplot < gnss_log_polarused.plot > gnss_log_polarused.png
Steps for nmea
- Capture a log file of an ASCII NMEA stream
- Use
gpsfaketo stream it into agpsdinstance
gpsfake -1 -b -t -P 3000 /path/to/nmea_gnss.log
rawgnss2gpsprof.1741008636.txt.gz · Last modified: by millerjs
