Ticket #130 (accepted enhancement)

Opened 3 years ago

Last modified 3 years ago

Improve ogpsd logging and debugging output

Reported by: fso@… Owned by: daniel
Priority: minor Milestone:
Component: framework/ogpsd Version:
Keywords: HasPatch Cc:

Description (last modified by jluebbe) (diff)

The current logging setup for ogpsd logs lots of verbose ubx packet processing details at the DEBUG level and very little higher level information about the state of the SVs and the fix process.

I have attached a patch which attempts to make a start at fixing this with several changes: 1) All UBX packet parsing and processing is controlled by a separate logger under ogpsd.ubx to allow it to be controlled separately to the rest of ogpsd. 2) Add a message at INFO every time the "fix status" of the chip changes. 3) Add a message a DEBUG every time an SV changes state. 4) Add a message at INFO every X seconds with the state of every channel. X is configurable by the new svprint_interval parameter (defaults to 60 seconds). The state of every channel includes which SV is tracked, the state and other data from the NAV-SVINFO message, eg:

ogpsd    2008-09-07 21:54:04,909 INFO     ========
ogpsd    2008-09-07 21:54:29,874 INFO     SV State (3D Fix)
ogpsd    2008-09-07 21:54:29,881 INFO     ========
ogpsd    2008-09-07 21:54:29,889 INFO      SV11 *OE on Ch00 (Code lock) at 15 dbHz, Elev 40, Azim 138
ogpsd    2008-09-07 21:54:29,896 INFO      SV23 -OE on Ch01 (Searching) at 0 dbHz, Elev 43, Azim 169
ogpsd    2008-09-07 21:54:29,903 INFO      SV20 *OE on Ch02 (Receiving data) at 40 dbHz, Elev 77, Azim 80

The three characters after the SV name are the state (* if the SV is used for the current fix, - if not), orbital data present (O if almanac data is available for this SV, - otherwise), ephemeris data present (E if ephemeris data is available for this SV, - otherwise).

The patch also improves the use of UBX protocol values in several places by creating constants and lookup maps.

Attachments

gps-logging-improvements.diff Download (12.0 KB) - added by fso@… 3 years ago.
ogpsd logging improvements

Change History

Changed 3 years ago by fso@…

ogpsd logging improvements

comment:1 Changed 3 years ago by jluebbe

  • Description modified (diff)

comment:2 Changed 3 years ago by daniel

  • Status changed from new to assigned

comment:3 Changed 3 years ago by daniel

  • Milestone set to milestone4

comment:4 Changed 3 years ago by daniel

  • Milestone changed from milestone4 to milestone5

comment:5 Changed 3 years ago by daniel

  • Milestone milestone5 deleted

Some of this debugging information is now available via zhone. I'll try to pick some parts of the commit (variable names, extra ogpsd.ubx logger)

comment:6 Changed 3 years ago by daniel

  • Milestone set to milestone5.5

Will integrate that during my work on ogpsd hotstart issues

comment:7 Changed 3 years ago by daniel

  • Milestone milestone5.5 deleted

Some of the ideas would still be nice, but removing concrete milestone for now.

Note: See TracTickets for help on using tickets.