IMD SolutionComputing LibraryShop main store

Troubleshooting

Why MQTT Engine shows online status after an edge node drops

Edge computing and IIoT Published 5 min read

Short answer

An Info/Online tag that stays true with Good quality is not proof the edge node is alive: Engine's online state comes from the node's Sparkplug death certificate, and earlier Engine versions marked tags stale only on Engine shutdown. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later, and compare against a node that reports correctly before escalating.

On this page
  1. What Info/Online and tag quality actually report
  2. The documented false positive, indicator by indicator
  3. Upgrade to 4.0.8, restart the gateway, retest
  4. Scoring the disconnect test: Windows 10 edge node, Engine 4.0.6 to 4.0.8
  5. Isolate the fault against a node that reports correctly
  6. Escalate with the evidence
  7. Questions asked

An edge node that still shows online after it loses its network is a status-path fault, not a timing quirk you can tune away. In the documented case — MQTT Distributor 4.0.6 (b2020111920), MQTT Engine 4.0.6 (b2020111920), Transmission 4.0.8 (b2021071520), and a Windows 10 edge node with Wi-Fi disabled at the OS — Engine kept Info/Online true and tag quality Good, while the node's stored-metrics count rose because Transmission had correctly detected interrupted delivery. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later after a gateway restart, and if the false positive survives, compare against a Sparkplug B node that reports correctly before escalating. No timeout or retry setting emerged from the documented case that corrects the status.

What Info/Online and tag quality actually report #

Sparkplug B online state is certificate-driven, not freshness-driven. Engine marks a node online when it processes the node's birth certificate, and offline only when it receives the death certificate the broker publishes from the node's configured will message once the connection drops. Info/Online sitting at true through a real outage means that death certificate never reached Engine or was never processed, so the fault lives somewhere on the path from the node's will configuration in Transmission, through the broker's topic handling and access-control rules, to Engine's subscription.

Tag quality is a weaker indicator. Earlier MQTT Engine versions marked tags stale when Engine itself shut down, to signal that the edge node's data was no longer current. Quality tracks Engine's lifecycle, not the edge node's network, so Good quality through an edge-side outage is expected behavior, not an anomaly. Never build dead-node detection or alarm suppression on quality: a node that is down while reporting online is invisible to operations.

The documented false positive, indicator by indicator #

Indicator Observed with Wi-Fi disabled What it proves
Info/Online Stayed true The death-certificate path failed — this is the false positive
Tag quality Stayed Good Expected: quality tracks Engine, not the node
Stored metrics Increased Transmission detected interrupted delivery and buffered it

Two indicators lied and one told the truth, which is exactly why the three cannot stand in for each other. The test also established a negative worth keeping: no timeout or retry setting was found that corrected the status, either before or after the module upgrade.

Upgrade to 4.0.8, restart the gateway, retest #

  1. Confirm Ignition is at 8.0.16 or later, then upgrade MQTT Engine — and Distributor with it — to 4.0.8. The module developer stated that release addressed Online tag status issues.
  2. Restart the gateway after the install. In the documented case the modules were loaded through the gateway without a restart and the false positive survived, leaving that variable untested. Do not repeat that gap.
  3. Disable the edge node's network at the OS — the documented test disabled Wi-Fi — and watch all three indicators at once under the MQTT Engine tag provider, in the device folder for that edge node.
  4. Re-enable the network and confirm the buffered records drain and are accepted; MQTT store and forward backfill after a connection outage is its own verification. Two adjacent failure modes belong in the same test window: why buffered Sparkplug B data is rejected after reconnect and what makes the historian store zero after a reconnect.

If Info/Online now drops when the network drops, the fix holds — document the passing test. If it still sits at true, score the test as shown below and move to the comparison node; do not keep upgrading in place of evidence.

Scoring the disconnect test: Windows 10 edge node, Engine 4.0.6 to 4.0.8 #

Inputs, all from the documented case:

  • Engine and broker: Distributor 4.0.6 (b2020111920) with Engine 4.0.6 (b2020111920) for the first trial; both upgraded to 4.0.8 for the second.
  • Edge node: Windows 10 running Transmission 4.0.8 (b2021071520), Wi-Fi disabled at the OS for each trial.
  • Indicators scored per trial: Info/Online, tag quality, stored-metrics count.

Rule in words: an indicator passes a trial only if it moves to its offline state while the network is down. The verification passes only when all three indicators pass in every trial.

Arithmetic:

  • Trial 1 (Engine 4.0.6): Info/Online unchanged (fail) plus quality unchanged (fail) plus stored count rose (pass) gives 1 pass out of 3 required; 3 - 1 = 2 failures.
  • Trial 2 (Engine 4.0.8, Distributor 4.0.8): identical readings give 1 pass out of 3; 3 - 1 = 2 failures.
  • Combined: 1 + 1 = 2 passes across 2 trials with 3 indicators each, that is 2 x 3 = 6 observations, so 2 of 6 indicator checks behaved.

Result: the verification fails at both module versions. The delivery path worked in both trials — the node reconnected and drained its buffer — while the status path never moved.

Decision: a pass requires 3 of 3 indicators changing in every trial. Anything less fails the verification no matter how cleanly the node reconnects, so move to the comparison test and escalate rather than adjusting Store & Forward parameters, which were never the failing part.

Isolate the fault against a node that reports correctly #

The same Distributor and Engine flipped online status correctly when a Raspberry Pi 4 running a Node-RED Sparkplug B implementation lost Wi-Fi. That result narrows the fault to the Windows node's Transmission configuration — its will and death-certificate setup, its topic hierarchy, or the broker access-control rules applied to it — rather than to the broker or to Engine's subscription. It does not prove which of the three. Run both nodes against the same broker in one test window so the edge node is the only variable, and capture the birth and death certificates the broker actually published for each.

Escalate with the evidence #

When the false positive survives 4.0.8 and the comparison test, open a ticket with the module developer's support center and include:

  • Module versions with build numbers for Distributor, Engine and Transmission, plus the Ignition version.
  • Edge OS (Windows 10 in the documented case) and connection type — Wi-Fi is worth stating explicitly.
  • Topic hierarchy and broker access-control configuration for both the failing and the known-good node.
  • The trial log: which indicators changed, which did not, and whether the gateway was restarted after the upgrade.
  • The broker-side certificate capture from the comparison test.

Expect the handoff: in the documented case, licensing bought through the automation platform vendor was redirected to the module developer, so open the ticket with the module developer directly instead of losing days in between.

Questions asked

Is there a timeout setting that forces MQTT Engine to mark the node offline?

None corrected the documented case, before or after the 4.0.8 upgrade, and the status is certificate-driven rather than timer-driven, so a timeout could only mask the real fault. Until the verification passes, alarm on a freshness heartbeat you control in the SCADA host instead of trusting Info/Online.

Why does tag quality stay Good while the edge node is offline?

Because quality tracks Engine's own lifecycle, not the node's network: earlier MQTT Engine versions marked tags stale only when Engine itself shut down. The documented test showed Good quality with the network disabled, and it was still Good after the upgrade to Engine 4.0.8, so the Online tag status work in that release did not change quality behavior.

Do rising Store & Forward stored metrics prove the node was flagged offline?

No. They prove Transmission on the node detected interrupted delivery and buffered it, which is a different mechanism from the death-certificate path that drives Info/Online. Keep watching the stored count anyway: it is your evidence that buffering did its job during the outage, which is a separate question from status.

Does a clean reconnect with backfilled data close the issue?

No. Reconnection and store-and-forward success exercise the delivery path, not the status path. Score all three indicators during the outage window, because once the node is back a false-true Info/Online is indistinguishable from a healthy one.

Keep reading

  • Troubleshooting

    Sparkplug B sends data but receives no SCADA commands

    Sparkplug B telemetry that reaches SCADA while SCADA writes never arrive is usually a direction-of-function fault: the open-source IEC SparkplugB library V1.0.0.0 implements only sending controller data to SCADA. Verify the broker path, session and authorization, watch the 30-minute demo window of the MQTT Client SL dependency, and choose a documented receive-capable implementation when writes are required.

    Edge computing and IIoT

  • Troubleshooting

    Trace Ignition Edge MQTT values that only update on refresh

    Values that appear only after a refresh mean the Edge transmitter publishes nothing on its own: the forced republish masks a stalled change-driven path. Set a 10,000 ms scan rate with a 0.00000001 deadband and a moving signal publishes at the scan rate, then verify by counting 6 updates per minute with no refresh anywhere. Trace tag value and timestamp at each hop to find where it stops.

    Edge computing and IIoT

  • Explainer

    When to use the Sparkplug rebirth tag on an edge node

    The Node Control/Rebirth tag is a manual recovery command with three legitimate uses: metrics added at the edge that the host has not discovered, a host restart with no primary host ID in play, and metric properties that changed at the edge. Configure the primary host ID on every edge node and resynchronization after host restarts happens by itself, so a rebirth you fire by hand marks a configuration gap.

    Edge computing and IIoT

Why a Sparkplug edge node stays stuck in a rebirth loop