Gas and Oil Wellheads Monitoring
December 5, 2022Industrial-strength MQTT/Sparkplug B
Building your OT to IT data networks with Elastel edge computing gateways
From MQTT to Sparkplug B
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.
What is MQTT Sparkplug B
What are the advantages of MQTT sparkplug
-
Interoperability
The Sparkplug B specification addresses the potential for inconsistency in MQTT implementations by defining standard client roles and data interfaces designed around industrial applications.
-
Unified Topic namespace
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 |
-
Payload definition
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 }
-
State Management
Sparkplug introduces the concept of birth and death certificate messages to define and ensure the use of appropriate state monitoring mechanisms.
Elastel Empowering Industrial Communication with MQTT Sparkplug B
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.
Featured Products
Industrial Raspberry Pi
- Powered by RPi CM4 Raspbian
- Industrial-grade stability
- GbE/DI/DO/AI/RS232/RS485 ports
Arm based IoT Gateway
- Arm-based embedded computer
- Open-Source Operating System
- 4G LTE/ Wi-Fi Wireless ready
Industrial Cellular Router
- 5G Cellular, Dual-band Wi-Fi Wireless networks available
- OpenWRT easy system
- 5xGbE, RS232/RS485, USB
Key Features of Elastel Edge Computing Gateway
1. Powerful and Elastic Hardware Options
Variant ARM computing hardware platform options to match your system requirements
- Raspberry Pi CM4 / ARM9 / A9 / A35 options for different needs from entry-level to high-performance
- Ethernet ports for IP-based communication
- DI/DO/ADC/RS232/RS485 ports for connecting field devices
-
4G LTE / 3G / 2G / NB-IoT cellular, and Wi-Fi wireless-ready
2. Multi-Protocol Support
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.
- Modbus RTU/TCP
- OPC UA
- BACnet MSTP/IP
- EtherNet/IP
- ...
3. Industrial, Security and Scalability
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.
4. Remote Management and Monitoring
Remote management features allow users to monitor device status in real-time, manage configurations, and troubleshoot when necessary.
- Easy to Remote Access and Management
- Granular Access Policy control at the application level
- Zero Trust Networking (ZTN ) model Security
- Reliable, Scalable and fast network connection
Conclusion
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.