Unit II - Internet of Things
Unit II - Internet of Things
Introduction
devices without human intervention. It forms the backbone of IoT applications, allowing smart
industrial automation, healthcare, transportation, and smart cities to improve efficiency and
The key advantage of M2M protocols is their ability to provide real-time communication
between devices over different networks, such as the internet, mobile networks, or local area
networks (LANs). These protocols enable remote monitoring, automated decision-making, and
predictive analytics.
latency, or unreliable networks, making it ideal for Internet of Things (IoT) applications.
Key Features:
2. Publish-Subscribe Model: Devices (clients) can publish messages to a topic, and other
4. Low Bandwidth Usage: MQTT messages are small, making it suitable for networks
1. Smart Homes
• Scenario: A smart home system uses MQTT to control lights, thermostats, and security
cameras.
• Example:
o The smart thermostat subscribes to this topic and adjusts the heating or cooling
2. Industrial Automation
• Example:
o The central control system subscribes to this topic and logs the status.
to factory/conveyor/status with the value error, and the control system triggers
an alert.
3. Agriculture
• Scenario: A smart farming system uses MQTT to monitor soil moisture and control
irrigation.
• Example:
o The irrigation system subscribes to this topic and turns on the water pump if the
1. Broker: The central server that receives all messages and distributes them to the
appropriate subscribers.
message’s subject.
Example Communication:
2. The broker forwards this message to all devices (subscribers) that are subscribed
to home/livingroom/temperature.
3. A smart thermostat and a mobile app receive the message and take appropriate actions
CoAP is a specialized web transfer protocol designed for constrained devices and
networks, such as those used in IoT applications. It is similar to HTTP but is optimized
for low-power, low-memory devices and networks with limited bandwidth and high
latency. CoAP is built on UDP (User Datagram Protocol) instead of TCP, making it
Key Features:
1. Lightweight: Designed for devices with limited processing power, memory, and energy
6. Built-in Discovery: Devices can discover services and resources using CoAP's
reliable communication.
Example Use Cases:
• Scenario: A smart lighting system uses CoAP to control and monitor lights in a
building.
• Example:
o A light sensor (CoAP client) sends a GET request to a CoAP server (light
o A mobile app (CoAP client) sends a PUT request to the server to adjust the
brightness to 75%.
o The server updates the light's brightness and sends a response confirming the
change.
2. Environmental Monitoring
• Scenario: A weather station uses CoAP to collect and share environmental data.
• Example:
o A monitoring system (CoAP client) sends GET requests to the server to retrieve
3. Industrial Automation
• Example:
o A machine sensor (CoAP client) sends a GET request to a CoAP server to check
o If the sensor detects an issue, it sends a POST request to the server to trigger an
alert.
o The server logs the alert and sends a response confirming receipt.
1. Client-Server Model: Devices (clients) send requests to servers, which process the
3. Message Types:
Example Communication:
1. A temperature sensor (CoAP client) sends a GET request to a CoAP server to retrieve
3. A mobile app (CoAP client) sends a PUT request to the server to update the desired
• Interoperability: Can be easily translated to HTTP for integration with web services.
• Flexibility: Suitable for a wide range of IoT applications, from smart homes to
industrial automation.
Secure)
HTTP and HTTPS are widely used protocols for communication over the internet.
While HTTP is the standard protocol for transferring web pages and data, HTTPS adds
a layer of security through encryption (using SSL/TLS). These protocols are commonly
Key Features:
1. Request-Response Model: Clients send requests to servers, and servers respond with
2. Stateless: Each request is independent, and no client data is stored between requests.
3. Methods: Supports methods like GET, POST, PUT, DELETE, and PATCH for different
types of operations.
interoperable.
• Scenario: An IoT platform collects data from sensors and stores it in the cloud for
analysis.
• Example:
o A temperature sensor sends data to a cloud server using an HTTP POST request
o The server stores the data and responds with a confirmation (e.g., 200 OK).
o A dashboard application retrieves the data using an HTTP GET request to the
• Scenario: A smart home system uses HTTP/HTTPS to control devices via a web API.
• Example:
o The server processes the request, sends the command to the light, and responds
light.
3. Remote Monitoring and Diagnostics
equipment remotely.
• Example:
request to https://api.manufacturer.com/diagnostics.
o The server analyzes the data and sends back recommendations or alerts using
an HTTP response.
o A technician accesses the data via a web interface using HTTP GET requests.
1. Client-Server Communication:
o The client (e.g., a device or application) sends an HTTP request to the server.
o The server processes the request and sends back an HTTP response.
2. Methods:
o GET: Retrieve data from the server (e.g., fetch sensor data).
3. HTTPS Encryption:
Example Communication:
2. The server receives the data, stores it, and responds with 200 OK.
3. A mobile app sends an HTTP GET request to https://api.smarthome.com/temperature to
• Ease of Use: Simple and well-understood protocol with extensive tooling and libraries.
communication.
• CoAP: Optimized for constrained devices and networks, with lower overhead than
HTTP.
delivery, scalability, and interoperability are critical. It is widely used in industries such
Key Features:
1. Reliable Messaging: Ensures message delivery through acknowledgments and
transaction support.
6. Flexible Routing: Messages can be routed based on content, headers, or other criteria.
1. Financial Services
• Example:
o The app sends a message to the transaction processing system via AMQP.
o The system processes the transaction and sends a confirmation message back to
the app.
o Notifications about the transaction are sent to the customer’s email and SMS
using AMQP.
2. Telecommunications
• Scenario: A telecom operator uses AMQP to manage and route messages between
systems.
• Example:
o The message is routed through multiple systems (e.g., SMS gateway, billing
3. Industrial Automation
• Example:
o Sensors on a production line send data to a central control system via AMQP.
o The control system analyzes the data and sends commands to actuators to adjust
o Alerts and notifications about equipment status are sent to maintenance teams
using AMQP.
1. Broker: A central server (broker) manages the exchange of messages between clients.
6. Bindings: Links between exchanges and queues that define routing rules.
Example Communication:
1. A sensor (producer) sends a message to the AMQP broker with the routing
key sensor.temperature.
2. The broker routes the message to the temperature queue based on the routing key.
4. The monitoring system sends a command to an actuator via the broker, which routes
• AMQP: Best for reliable, secure, and scalable messaging in enterprise and industrial
applications.
Introduction
A Wireless Sensor Network (WSN) consists of multiple sensor nodes that collect and transmit
data wirelessly. These networks are widely used in environmental monitoring, healthcare,
WSNs operate on low power, allowing them to function for long periods without frequent
battery replacements. The choice of protocol depends on range, power consumption, and
network size.
1. Zigbee:
energy applications.
o Allows multiple devices to communicate efficiently over a short range.
3. 6LoWPAN:
4. Z-Wave:
• When a deer moves, the motion sensors detect activity and send data via LoRaWAN
to a central gateway.
• The gateway transmits the data to the cloud, where it is analyzed and displayed on a
dashboard.
This system provides real-time data while consuming minimal power, ensuring long-term
monitoring.
Introduction
SCADA (Supervisory Control and Data Acquisition) systems are used for real-time monitoring
and control of industrial processes. These systems collect, process, and visualize data, allowing
SCADA protocols ensure reliable communication between sensors, controllers, and central
control units.
A SCADA-based water treatment plant uses Modbus TCP/IP to monitor water quality.
• If the chlorine level is too high, the system automatically adjusts the chemical dosage.
• Operators can monitor and control the process remotely via a dashboard.
Conclusion
Introduction
RFID (Radio Frequency Identification) is a wireless technology that identifies and tracks
objects using radio waves. It is widely used in supply chain management, inventory tracking,
3. ISO/IEC 14443: