OPC UA PubSub to Cloud via MQTT Demo at Hannover Messe 2022
For the Hannover Messe Demo, the team at Prosys OPC wanted to show off our relevant expertise and try something new. We quickly came up with a plan to use our software in the Raspberry Pi 4 platform to present an OPC UA PubSub model that could be used for cloud connections using the MQTT protocol.
For this project, we acquired a Raspberry Pi 4 with the touchscreen addon. Using Prosys OPC UA SDK for Java, our team created a lightweight sample publisher that would serve as the basis for our demo. The demo is divided into two parts: a built-in event visualizer and the actual MQTT PubSub cloud connection.
The event visualizer was configured into the demo to mimic a subscriber and show the JSON formatted data. Data contains sample values and simulated alarms and events generated by the publisher. This visualizer was also connected to a custom Web application that displayed the sample data using MQTT compatible JSON package form.
With the visualized PubSub connection ready, we configured an MQTT forwarder to publish the JSON sample data into the cloud. Using the MQTT protocol, we then connected the PubSub demo to the Hannover Messe cloud connectivity wall of OPC Foundation.
For the final wall demo, we configured all of this to run automatically on the Raspberry Pi upon startup. The process begins by starting the sample publisher and opening the chromium browser to autorun the visualizer application. Lastly, we connect the MQTT broker to the publisher to send the data to the cloud connectivity wall.
- JSON = Java Script Object Notation
- MQTT = Message Queuing Telemetry Transport
- OPC UA = OPC Unified Architecture
- PubSub = Publisher/Subscriber model
- SDK = Software Development Kit
- Prosys OPC UA SDK for Java: Development kit for OPC UA
- Mosquitto: Open-source MQTT broker
- Spring: Open-source backend for the Web Application
- Vaadin: Open-source frontend for the Web Application
About Prosys OPC Ltd
Prosys OPC is a leading provider of professional OPC software and services with over 20 years of experience in the field. OPC and OPC UA (Unified Architecture) are communications standards used especially by industrial and high-tech companies.
Newest blog posts
Prosys OPC UA SDK for Java allows publishing OPC UA data to Azure IoT Central using the MQTT protocol.
Three simple ways to secure your automation network
Exporting an existing infromation model from a Real-life Server with UaExpert and simulating it in Prosys OPC UA Simulation Server.