MQTT in Industry 4.0: parsed or unparsed?
Guide to selecting right MQTT publisher
Reading Time: minutes
In Industrial Automation, MQTT is becoming the the standard for moving data. But not all MQTT is created equal. The choice between Unparsed and Parsed data structures can be the difference between a messy, manual integration and a scalable, automated factory.
Unparsed MQTT
Unparsed MQTT is raw transport. It sends data in any format (JSON, String, or Binary) without a predefined rulebook. The broker moves the message, but it has no idea what is inside.
• The String: Topic: factory/pump1 | Payload: {"t": 85.2, "s": 1}
• The Problem: The receiver must be manually programmed to know that t means "Temperature" and 85.2 is in Fahrenheit.
Advantages
• Total Flexibility: Send any data you want.
• Low Complexity: Easy to set up for simple "point-to-point" tasks.
Disadvantages
• Manual Mapping: Every new sensor requires custom code at the destination.
• No State Awareness: You don't know if a device is offline or just silent.
Example Use Case: Small-scale prototypes or connecting simple IoT devices to the cloud (e.g., AWS/Azure) where you control both ends of the code.
Parsed MQTT
Parsed MQTT (typically Sparkplug B) adds a standard layer on top of the protocol. It uses a specific topic namespace and a binary payload (Protobuf) that is "self-describing."
• The String: Topic: spBv1.0/Plant1/DDATA/Area/Pump1
• The Result: When this hits a SCADA system, it is automatically parsed. The system instantly sees: Name: Temp, Value: 85.2, Unit: °F, Type: Float.
Advantages
• Plug-and-Play: New devices are "discovered" by the network automatically.
• Bandwidth Efficient: Binary payloads are much smaller than repetitive JSON text.
• State Management: Includes "Birth" and "Death" certificates to track device health in real-time.
Disadvantages
• Rigid Structure: You must follow the Sparkplug specification exactly.
• Higher Entry Barrier: Requires more initial configuration on the device side.
Example Use Case
Large-scale manufacturing and the Unified Namespace (UNS). This is essential for factories with hundreds of PLCs and robots from different vendors that need to talk to one central system.
Word of Caution
In today’s automation, IO-Link masters and devices are high in use to provide the data to the higher level systems such as SCADA or even digital twin systems. The IO-Link Gateways (masters) could become the bottleneck in selecting the right MQTT solution. It is important to ensure the system components allow you to scale your automation now and in the future.
Keywords
- Industrial network technology
- IO-Link
- Efficient production
- Industry 4.0
- Sensor technology
- Robotics
- Basics of automation
- Industrial automation
- Technology trends
- Smart sensor technology
- Connectivity
- Message Queue Telemetry Transport (MQTT)
- Edge gateway
- Predictive maintenance
- Object detection
- Internet of Things
- Condition monitoring
Author
Shishir Rege
Shishir Rege is a strategic leader with over 25 years of experience in industrial automation. He specializes in aligning technology with business goals to drive productivity and operational excellence. Shishir has a proven track record of implementing Smart Manufacturing and automation solutions across the automotive, aerospace, medical, and consumer goods sectors. He holds an MS in Electrical Engineering and an MBA, and frequently contributes to industry publications and conferences.
14 Contributions
Comment
Popular posts
Industrial sensing fundamentals – NPN vs PNP
What is a capacitive sensor?
How do I wire my 3-wire sensors?
The basic operating principle of an inductive proximity sensor
Contact form
Do you have any questions or suggestions? We are at your disposal.
Balluff Inc.
-
8125 Holton Dr.
Florence, KY 41042