Skip to content

Overview

The Diagnostics system allows users of Spoke Zone to gather detailed diagnostics information from devices in the field.

The device diagnostics page includes tools for inspecting diagnostics information and configuring diagnostics behavior for a specific device.

The Status section shows diagnostics data from each of the modules for the selected device’s model. It also includes an Echo feature to measure round-trip time to the device.

For more information, see:

The following data file types are considered to be Diagnostics Data Files

  • debug
  • dmesg
  • journal

The device diagnostics page includes a Configuration section for setting a device’s diagnostics behavior.

There are three diagnostics settings that are sent to the device, plus a duration that controls how long the settings stay active.

Changes are configured specific to each device. The duration presets in the UI are 1 hour, 1 day, 1 week, and 2 weeks. After the changes have expired, the diagnostics level will revert to normal, the broadcast interval will revert to being disabled, and the debug level will revert to info.

The type of diagnostics information that should be uploaded by a device can be configured using the level setting.

Devices with support for the diagnostics system will periodically broadcast diagnostics information. By default, this broadcast is disabled to save data.

The broadcast interval setting is used to configure the interval of time between these broadcasts. For example, a value of 5 indicates that the device should broadcast every five seconds, and a value of 3600 indicates that the device should broadcast once an hour.

The amount of debug information included in debug data files can be configured using the Debug Level setting.

The default debug level is info.

The following values are supported:

  • debug
  • info
  • warn
  • error
  • fatal

The debug level acts as a filter of debug information. For example, if the debug level is set to warn, only warn, error, and fatal debug messages should be included in the debug data file.

Here are the equivalent debug levels in other systems:

Spoke Zone LevelQt EquivalentJS Equivalent
debugqDebugconsole.debug (and console.log)
infoqInfoconsole.info
warnqWarningconsole.warn
errorqCriticalconsole.error
fatalqFatalN/A

The duration setting controls how long the diagnostics configuration remains active before it reverts to the default behavior.