IMD SolutionComputing LibraryShop main store

Troubleshooting

SCADA-LTS MQTT data through RabbitMQ and the AMQP datasource

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

SCADA-LTS takes MQTT through RabbitMQ, not through a native MQTT datasource: enable the broker's MQTT plugin, point your sensors at it, and consume the messages with the AMQP datasource. That datasource has vanished from develop builds before when a merge dropped its code (pull request 968), so confirm it is present in your exact build before wiring anything, and verify the full round trip with a counted publish test.

On this page
  1. Why there is no MQTT datasource to install
  2. Confirm the AMQP datasource is in your build
  3. Wire sensors through RabbitMQ into SCADA-LTS
  4. Prove the round trip with a counted publish test
  5. Where the path breaks
  6. What RabbitMQ gives you between failures
  7. The decision for each case
  8. Questions asked

SCADA-LTS takes MQTT sensor data through RabbitMQ: you enable the MQTT plugin on the broker, point your sensors at it, and let the project's AMQP datasource consume what arrives. There is no native MQTT datasource to install, and the Mango MQTT client module does not drop into SCADA-LTS. The failure that wastes the most time is not broker configuration: the AMQP datasource has vanished from develop builds before, when a merge went in without its code. Confirm the datasource exists in your exact build, wire the two hops, then prove the path with a counted publish test. This article gives the check order, the wiring steps and the test numbers.

Why there is no MQTT datasource to install #

The SCADA-LTS project documents MQTT support as a broker-mediated design: the MQTT plugin on RabbitMQ accepts sensor publishes, and a SCADA-LTS AMQP datasource receives them (issue #461 on the project tracker). That datasource was implemented on Spring AMQP, with RabbitMQ connectivity as the target (issue #697).

Two consequences follow. First, no SCADA-LTS build offers an MQTT datasource type, so a missing MQTT option is not a fault to fix. Second, the Mango MQTT client datasource module targets a different datasource API; a reported attempt to integrate it did not establish compatibility with ScadaBR or SCADA-LTS, so do not plan a deployment around installing it. What is on record is a reported end-to-end test: sensor data pushed through RabbitMQ's MQTT plugin reached a SCADA-LTS develop build and updated its points. Treat that as a working path, not as a stable-release guarantee.

If your goal is the opposite direction, publishing existing ScadaBR data out to an MQTT broker, that is a separate publish-side task covered in bridging ScadaBR data to MQTT through Node-RED.

Confirm the AMQP datasource is in your build #

The reported failure pattern: a SCADA-LTS develop build that worked with the AMQP datasource later no longer listed it in the same develop line. The cause is on record in the project tracker: a merge omitted the AMQP code. Re-adding the datasource is tracked as issue #966, and the merge that dropped the code is pull request 968.

So the build check comes before any configuration. Open the datasource list in your build and look for the AMQP entry. If it is there, proceed. If it is not, the fault is the build's content, not your MQTT plan: move to a build that carries the re-merged datasource, use the tracker history around issue #966 to pick one, and record the build identifier you settle on. Re-check the datasource list after every upgrade, because the same merge mistake can recur on any branch.

If the upgrade cannot happen yet, the queue can be drained by script in the meantime; the walkthrough on building a RabbitMQ AMQP scripting module for Ignition SCADA shows the consume-from-queue pattern such a script follows.

One caution while you evaluate: keep an unverified develop build off any host whose point values drive alarms or operator action until the round-trip test below has passed on it.

Wire sensors through RabbitMQ into SCADA-LTS #

  1. Enable the MQTT plugin on the RabbitMQ broker. RabbitMQ ships the plugin, and its documentation gives the plugin-enable command. Confirm the MQTT listener answers; MQTT normally sits on port 1883.
  2. Point the sensors at that listener and publish to the topic scheme you already use. The plugin hands sensor publishes to the broker's AMQP side.
  3. Watch the broker's management interface while sensors publish and confirm the message traffic arrives, before touching SCADA-LTS at all.
  4. In SCADA-LTS, add the AMQP datasource and give it the broker connection: host, AMQP port (the protocol default is 5672), credentials, and the queue binding that carries your sensor flow. The project documents no required exchange, queue or topic name, so use the routing you configured in the broker.
  5. Map the message fields to data points, publish one known sensor value, and watch the point update with that value and timestamp.
  6. Record the build identifier, the plugin state and the routing as your baseline; the datasource has been lost by a merge once already, and a recorded baseline makes the next upgrade failure obvious.

The AMQP side is ordinary broker-consumer configuration: connection, credentials, exchange and queue binding. The walkthrough on configuring Ignition 8.3 AMQP for RabbitMQ messaging lays those broker fields out one by one for a comparable SCADA host, which helps while you fill in the datasource.

Prove the round trip with a counted publish test #

One point update proves connectivity, not throughput. Count the messages. Publish from a single sensor at one message every 5 s for a 10-minute window: 600 s / 5 s = 120 messages. When the window closes, three numbers should agree: 120 published at the broker, 120 delivered with the queue back to zero, and 120 new values on the SCADA-LTS point with timestamps that fill the window. A queue that keeps a backlog or a point that shows fewer values means the AMQP hop is dropping or delaying; fix that before adding sensors.

Then restart both ends, broker first and SCADA-LTS second, and repeat the same test to the same 120-message agreement. Record the build, plugin state and routing that passed. Until the datasource ships in a stable release you have tested yourself, treat the route as experimental and repeat this test after every upgrade.

Where the path breaks #

  • AMQP datasource missing from the datasource list: a build-content fault. Check the history around issue #966 and pull request 968 before changing any broker setting.
  • MQTT messages reach RabbitMQ but points never update: the AMQP hop. Check the datasource connection state, the queue binding and the field-to-point mapping.
  • The broker receives nothing: the MQTT hop. Check that the plugin is enabled, that the sensors point at the broker's MQTT listener, and that the broker accepts the sensor credentials.
  • A failed Mango module installation proves nothing about either hop, because it is the wrong component for SCADA-LTS. Stop debugging from it.

What RabbitMQ gives you between failures #

While the SCADA-LTS side is down or restarting, undelivered sensor messages wait in the queue and are delivered on reconnect, provided the queue is configured to persist. The volume is modest at sensor rates: one message every 5 s through a 1 h broker outage is 3600 s / 5 s = 720 messages, and even with an example payload of 300 bytes that is 720 × 300 B = 216 kB, so queue size limits are not the constraint at low rates. Set queue durability deliberately rather than relying on defaults.

The broker is a buffer, not an archive: it holds what a consumer has not yet received, and the breakdown of whether an MQTT broker stores historic data you can query shows where that line falls. Keep long-term history in the historian. If the sensor path runs through Node-RED, you can also hold data at the edge during a broker outage; the guide to buffering MQTT data in Node-RED during an internet outage covers that store-and-forward layer.

The decision for each case #

  • Datasource present in your build: wire the two hops, run the counted test, and keep the passing build and routing recorded for the next upgrade.
  • Datasource missing: fix the build first. Move to one that carries the re-merged datasource per issue #966, and change nothing on the broker side until the entry is back in the list.
  • Production deployment requested: the route stays experimental until the datasource ships in a stable release you have tested. Keep the counted publish test in the upgrade procedure until then.

Questions asked

Does SCADA-LTS have a native MQTT datasource?

No. The project's own tracker documents MQTT support as RabbitMQ's MQTT plugin feeding the AMQP datasource, which was implemented with Spring AMQP against RabbitMQ connectivity. There is no MQTT datasource type to select, and the Mango MQTT client module is not a drop-in for ScadaBR or SCADA-LTS.

Why did the AMQP datasource disappear from the develop build?

A merge landed in the develop branch without the AMQP code; the project tracks re-adding it under issue #966, and the merge that dropped the code is pull request 968. The absence is a build-content mistake, not abandonment. Check the tracker for the re-merge and move to a build that carries it before touching MQTT settings.

Which MQTT broker works with this route?

RabbitMQ. The datasource was implemented with Spring AMQP with RabbitMQ connectivity specifically, and the working end-to-end setups reported for it all run RabbitMQ's MQTT plugin as the MQTT entry point. A generic AMQP broker is not validated for this datasource, so keep RabbitMQ as the front door even if other brokers exist elsewhere in the plant.

What happens to sensor data while SCADA-LTS is down?

Undelivered messages wait in the RabbitMQ queue while the consumer is offline and are handed over when the datasource reconnects, provided the queue persists and messages are acknowledged. That is buffering, not archiving: retention is queue policy, so size it to your longest expected outage and keep long-term history in a historian, not in the broker.

Keep reading

  • How-to

    Bridge ScadaBR data to MQTT through Node-RED

    In this ScadaBR 1.2 design nothing on the ScadaBR side speaks MQTT, so Node-RED bridges both directions: the HTTP Sender passes point values as GET parameters to a /nodered HTTP input, a switch on msg.parts.key publishes them to topics BIN, INT and FLOAT, and a join feeds them back as GET query parameters to the HTTP Receiver at /ScadaBR/httpds. Match the BIN, INT and FLOAT names everywhere.

    Edge computing and IIoT

  • Troubleshooting

    Fixing MQTT cloud broker data not reaching SCADA tags

    Get the gate right first: MQTT over TLS belongs on port 8883, with the TLS mode and client identity the broker actually requires. An independent client such as MQTT Explorer on the same PC proves only its own settings, not the driver's. If the driver cannot perform the service-specific handshake Azure IoT Hub needs, no tag mapping will ever fill.

    Edge computing and IIoT

  • How-to

    Push ClearSCADA values to MQTT through an edge gateway

    ClearSCADA and Geo SCADA do not publish straight to an MQTT broker: the value travels from the SCADA server through an edge gateway to the broker as two independent client connections. Prove the SCADA read on one known point and the MQTT publish on a fixed test payload separately, join them only after both pass, and chase a login failure in the server's own web logs, never in the broker settings.

    Edge computing and IIoT

Transferring old WinCC tag logging data to Process Historian