Industry 4.0: Revolutionizing
Industry 4.0: Revolutionizing
Industry 4.0: Revolutionizing
0
Revolutionizing
Smart Automation
Chapter 4
■ Field Bus
■ MQTT Protocol
■ PROFIBUS
Typical 5C Architecture
Sensors
Field Controllers
Machine Human Machine
(PLCs, Embedded,
in the Interface
Drivers)
cell
Actuators
What are the ways to connecting between these Sensors, actuators, field controllers and HMI ?
How can we achieve the QoS (Quality of Services) – Performance Measure?
Variety of diverse technologies – Any standards way of connecting these?
Big Questions while architecting..
Instrumentation
FieldBus Development
Type 1 is the TR1158, the compromise standard pro-posal refused by a minority of members in 1999, which led to a publication of indignation by
Patricio Leviti [104].
■ Physical Layer
– Topologies supported: Bus, Star, Ring, Tree etc.,
■ Data Link Layer
– Message Access Controls
■ Application Layer
– Routing the messages if more sub-network connected and it requires bridge, router
etc.,
Fundamental architecture..
Ethernet Based Field Bus architecture
Physical Layer – H1
Network
•Two-wire (ungrounded) network cable
•100 ohm (typical) characteristic
impedance
•DC power is conveyed over the same two
wires as digital data
•31.25 kbps data rate
•Differential voltage signaling (0.75 volts
peak-to-peak transmit minimum ; 0.15
volts peak-to-peak receive threshold
minimum)
•Manchester encoding FOUNDATION Fieldbus H1 Protocol Physical Layer | Basics of FOUNDATION Fieldbus (FF)
Instrumentation | Textbook (control.com)
Field Bus H1 & H2
H1 Bus
31.25kbps
31 devices can be communicated
H2 Bus
1Mbps to 2.5Mbps
Ethernet based : 100Mpbs
Field Bus – Data Link
2024/3/21 22
MQTT Introduction
2024/3/21 23
MQTT Architecture
2024/3/21 24
MQTT Features – packet format
2024/3/21 25
MQTT – packet format
2024/3/21 26
MQTT – packet format
■ Variable Header (may differ from different
message type)
2024/3/21 27
MQTT – packet format
2024/3/21 28
MQTT – QoS (Quality of Services)
QoS 1 - At most one delivery (FIRE AND
FORGET)
2024/3/21 29
QoS 2 – At least one delivery
2024/3/21 30
QoS 3 – Exactly one delivery
2024/3/21 31
MQTT – some flags description
■ DUP flag (Duplicate flag)
– In Fixed header (1 bit)
– QoS level must >0
– Should be a hint of whether this message have been sent or not
■ Keep alive flag
– In Variable header(2 byte)
– Broker server will check client alive or not
– MAX_TIMEOUT would be 65536 seconds(approximately 18 hours)
■ Will flag
– In Variable header (1 bit)
– Compound with “Will topic”
– Triggered by abnormal disconnection
2024/3/21 33
MQTT Compare with HTTP
■ Advantage
– Lower packet size
– Lower battery consumption
■ Polling and long polling vs Event based
■ ASCII code parse
– Have a middleware integration (Broker server)
■ Disadvantage
– Much physical machine to deploy
– Not easy to implement
2024/3/21 34
HTTP Packet size
2024/3/21 35
MQTT Compare with CoAP
■ Advantages
– Secure message delivering (TCP VS UDP)
– Keep alive flag
■ Disadvantages
– Higher packet size
– Not supporting RESTful
“CoAP://machine.address:5683/sensors/temperature”
2024/3/21 36
THANK YOU
ssrikanth@unominda.com
+91 9500057970