The -f,--formatter option sets the plot type. Currently the following plot types are defined:
space
Generate a scatterplot of fixes and plot probable error circles. This data is only meaningful if the
GPS is held stationary while gpsprof is running. Various statistics about the fixes are listed at the
bottom. This is the default plot type.
polar
Generate a heat map of reported satellite Signal to Noise Ratio (SNR) using polar coordinates. A
colored dot is plotted for each satellite seen by the GPS. The color of dot corresponds to the SNR of
the satellite. The dots are plotted by azimuth and elevation. North, azimuth 0 degrees, is at the top
of the plot. Directly overhead, elevation of 90 degrees, is plotted at the center. Useful for
analyzing the quality of the skyview as seen by the GPS.
polarunused
Similar to the polar plot, but only unused satellites are plotted. Useful for seeing which parts of
the antenna skyview are obstructed, degraded, below the GPS elevation mask, or otherwise rejected.
polarused
Similar to the polar plot, but only satellites used to compute fixes are plotted. Useful for seeing
which parts of the antenna skyview are being used in fixes.
time
Plot delta of system clock (NTP corrected time) against GPS time as reported in PPS messages. The X
axis is sample time in seconds from the start of the plot. The Y axis is the system clock delta from
GPS time.
instrumented
Plot instrumented profile. Plots various components of the total latency between the GPS’s fix time
and when the client receives the fix.
For purposes of the description, below, start-of-reporting-cycle (SORC) is when a device’s reporting
cycle begins. This time is detected by watching to see when data availability follows a long enough
amount of quiet time that we can be sure we’ve seen the gap at the end of the sensor’s previous
report-transmission cycle. Detecting this gap requires a device running at 9600bps or faster.
Similarly, EORC is end-of-reporting-cycle; when the daemon has seen the last sentence it needs in the
reporting cycle and ready to ship a fix to the client.
The components of the instrumented plot are as follows:
Fixlatency
Delta between GPS time and SORC.
RS232time
RS232 transmission time for data shipped during the cycle (computed from character volume and baud
rate).
Analysistime
EORC, minus SORC, minus RS232 time. The amount of real time the daemon spent on computation rather
than I/O.
Receptiontime
Shipping time from the daemon to when it was received by gpsprof.
Because of RS232 buffering effects, the profiler sometimes generates reports of ridiculously high
latencies right at the beginning of a session. The -m option lets you set a latency threshold, in
multiples of the cycle time, above which reports are discarded.
uninstrumented
Plot total latency without instrumentation. Useful mainly as a check that the instrumentation is not
producing significant distortion. The X axis is sample time in seconds from the start of the plot.
The Y axis is latency in seconds. It only plots times for reports that contain fixes; staircase-like
artifacts in the plot are created when elapsed time from reports without fixes is lumped in.
-?, -h, --help
Print a usage message and exit.
-dFILE, --dumpfileFILE
Dump the plot data, without attached gnuplot(1) code, to a specified file for post-analysis.
-dLVL, --debugLVL
Sets debug level.
-lFILE, --logfileFILE
Dump the raw JSON reports collected from the device to the specified FILE.
-nSEC, --waitSEC
Sets the number of seconds to sample. The default is 100. Most GPS are configured to emit one fix per
second, so 100 samples would then span 100 seconds.
-r, --redo
Replot from a JSON logfile (such as -l,logfile produces) on standard input. Both -n,--wait and -l,--logfile options are ignored when this one is selected.
-SSTR, --subtitleSTR
Sets a text string to be included in the plot as a subtitle. This will be below the title.
-tSTR, --titleSTR
Sets a text string to be the plot title. This will replace the default title.
-TTERM, --terminalTERM
Specify the terminal type setting in the gnuplot(1) code. Typical usage is "-Tpng", or "-Tpngcairo"
telling gnuplot(1) to write a PNG file. The default terminal is "x11".
Different installations of gnuplot(1) will support different terminal types. Different terminal types
may work better for you than other ones. "-Tpng" will generate PNG images. Use "-Tjpeg" to generate
JPEG images. "-Tpngcairo" often works best, but is not supported by some distributions. The same
terminal type may work very differently on different distributions.
To see which terminal types your copy of gnuplot(1) supports:
gnuplot -e "set terminal"