Main features

More

Download Open in browser

Sparkplug B · Industrial IoT

Sparkplug B, decoded.

Sparkplug B traffic is binary Protobuf with metrics sent by alias. MQTT Studio decodes it, names every metric from the birth certificates, shows each edge node and device with its live values, checks the session rules, and simulates edge nodes that follow the specification.

The Sparkplug view: two edge nodes with a pump device, its metrics with value, unit, type and number of changes, and a decoded DDATA message with the temperature as a chart.

Decoding

Decode Sparkplug B payloads.

Edge nodes announce their metrics in a birth, then send only changed values, by alias. MQTT Studio keeps the last birth and names every value.

  • All message types, all data types including arrays, DataSets and Templates, and compressed payloads (GZIP, DEFLATE).
  • Metric names, data types and units from the last birth. Without a birth, metrics show by alias with a warning.
  • A one-line summary per message, an interpreted detail view, and charts of numeric and boolean metrics by name.
  • Request rebirth for one edge node or a whole group, always after a confirmation. Never sent on its own.
Edge node
  • NBIRTH
  • NDEATH
  • NDATA
  • NCMD
Device
  • DBIRTH
  • DDEATH
  • DDATA
  • DCMD
Host
  • STATE

Sparkplug view and check

The Sparkplug view and protocol check.

For commissioning and support, on live traffic and on recordings.

Sparkplug view

Host applications, groups, edge nodes and devices with online state and since when, bdSeq, seq and sequence gaps.

Metric table

Every metric with value, unit, type, last update, number of changes and properties. Sort by changes to find stuck metrics, click one to chart it.

Protocol check

Missing or skipped seq, missing timestamps, bdSeq mismatches, data after death, device data without birth, duplicate aliases, unknown metrics, changed data types.

DOCUMENTATION

Simulated edge nodes

Simulate edge nodes.

The simulator can play the primary host too, so a full system runs with only a broker.

  • Up to 20 edge nodes per device, each with up to 20 devices and 200 metrics.
  • Sparkplug 3.0 behavior: one connection per edge node with the NDEATH as real last will, births, data by exception with a deadband, seq and bdSeq.
  • Rebirth on request, writable metrics that answer NCMD and DCMD, optional compression.
  • Metric values from the simulator's generators: wave, random walk, counter and more.
  • Fault injection per edge node: dropped connection (the broker sends the will), restart, devices offline.
  • Protocol faults: skipped seq, unknown metric, wrong data type, data after death, device data without birth, wrong bdSeq, missing timestamp.
  • The menu says which check rule each fault triggers.

Where it helps

  • Commission edge gateways and PLC connections.
  • Test host applications against a reference edge node and against known faults.
  • Track down missing or stale metrics.

Good to know

  • No writing of metrics from a command editor; you can publish by hand.
  • Discovery documents Sparkplug topics without their metrics.
  • Sparkplug 2.2 is read but not simulated; no store-and-forward in the simulator.

Sparkplug B: Eclipse Foundation, specification 3.0, also ISO/IEC 20237.