This is where Sparkplug B comes into play, enhancing MQTT to meet the specific requirements of industrial communications.
The MQTT/Sparkplug B architecture defines clear roles and behaviors for MQTT clients and their data, adapting the underlying MQTT framework to better support typical SCADA/IIoT use cases.
The Sparkplug B specification addresses the potential for inconsistency in MQTT implementations by defining standard client roles and data interfaces designed around industrial applications.
Sparkplug defines a standard format for MQTT topic paths, creating a unified namespace for all SpB
clients on the network:
spBv1.0/<Group ID>/<MESSAGE TYPE>/<Edge Node ID>/<Device ID>
Element | Definition | Source |
---|---|---|
<Group ID> | A logical identifier for a group of MQTT nodes |
Defined by user |
<MESSAGE TYPE> | Indicates whether the message contains state information, data, or a command and whether it pertains to a node, device, or the primary application |
Predefined by SpB spec; cannot be changed by user |
<Edge Node ID> | Identifies a specific MQTT node | Defined by user. The Group ID/Edge Node ID combination must be unique |
<Device ID> | Identifies a device attached physically or logically to a node |
(Optional) Defined by user, if applicable |
Sparkplug B defines a standard, structured, data-rich but efficient payload format.
The full payload is then timestamped, sequenced, and encoded using Google protocol buffers (protobufs). When decoded, the payload is typically represented in JavaScript object notation (JSON) but is compatible with many formats.
{ "timestamp": 1486144502122, "metrics": [{"name": "Meter","alias": 1,"timestamp": 1479123452194,"dataType": "String","value": "Test"}],"seq": 2 }
Sparkplug introduces the concept of birth and death certificate messages to define and ensure the use of appropriate state monitoring mechanisms.
To address these general gaps in operations technology (OT), Elastel IoT Gateway fully supports the MQTT Sparkplug B protocol. As a high-performance and easy-to-deploy IoT gateway solution, Elastel IoT Gateway bridges various industrial devices and systems, ensuring efficient data collection, processing, and transmission.
Industrial Raspberry Pi
Arm based IoT Gateway
Industrial Cellular Router
Variant ARM computing hardware platform options to match your system requirements
In addition to MQTT Sparkplug B, Elastel IoT Gateway supports other common industrial communication protocols such as Modbus and OPC UA, enabling seamless connectivity across different types of devices.
With comprehensive security mechanisms such as data encryption and authentication, Elastel IoT Gateway ensures that data is not tampered with or leaked during transmission.
Supporting large-scale device connections, the gateway can handle data collection needs ranging from tens to thousands of devices.
Remote management features allow users to monitor device status in real-time, manage configurations, and troubleshoot when necessary.
As Industrial IoT applications continue to grow, businesses require more efficient and flexible communication solutions. MQTT Sparkplug B provides a reliable foundation for IIoT communications with its standardized data model and lightweight transmission. Meanwhile, Elastel IoT Gateway offers robust support to meet customers' industrial IoT communication needs efficiently.