Course: SE(Computer Engineering) Subject: MDM-271-COM : Internet of Things (IOT)
Unit-1- Introduction to Internet of Things:
Introduction to Internet of Things (IoT):
Definition of IoT (Internet of Things): The Internet of Things (IoT) refers to a network of physical objects
—“things”—that are embedded with sensors, software, and other technologies to connect and exchange data
with other devices and systems over the Internet or other communication networks.
These “things” can include anything from smart home appliances, vehicles, wearable devices, to industrial
machines, and even city infrastructure.
Characteristics of IoT :
[Link]
o IoT devices are interconnected through networks like Wi-Fi, Bluetooth, Zigbee, or
cellular.
o Enables seamless data transfer and remote access.
2. Sensing
o Devices have sensors to collect data from their surroundings (e.g., temperature,
motion, humidity).
3. Data Processing
o Collected data is processed either locally (edge computing) or in the cloud to
extract meaningful information.
4. Automation and Control
o IoT systems can automatically trigger actions based on data inputs (e.g., turning on
lights when someone enters a room).
5. Scalability
o The system can scale from a few devices to millions, supporting massive
deployments.
6. Intelligence
o Integration of AI and machine learning allows IoT systems to make smart
decisions and improve over time.
7. Security
o Security is critical as devices handle personal and sensitive data; encryption,
authentication, and secure access are key.
8. Real-time Monitoring
o IoT enables real-time tracking and monitoring of environments, assets, or people.
9. Energy Efficiency
o Devices are optimized to use minimal power, especially in battery-operated or
remote locations.
[Link]
IoT devices must communicate and work across different platforms and standards.
Evolution of IoT (Internet of Things):
Early Stage (1960s–1990s)
o Basic machine-to-machine (M2M) communication
o Embedded systems and sensors introduced
2. Concept Formation (1999)
o Term “Internet of Things” coined by Kevin Ashton
o Focus on RFID and object identification
3. Growth Phase (2000–2010)
o Internet connectivity improved
o Wireless technologies (Wi-Fi, Bluetooth) enabled device networking
4. Expansion Phase (2010–2020)
o Cloud computing, big data, and smartphones boosted IoT
o Applications: smart homes, healthcare, industry, smart cities
5. Modern IoT (2020–Present)
6.
o Integration with AI, ML, 5G, edge computing
o Focus on automation, real-time analytics, and security
In short: IoT evolved from simple connected machines to intelligent, autonomous, and data-
driven systems.
Convergence of IoT (Internet of Things):
The convergence of IoT refers to the integration of IoT with multiple emerging
technologies to form intelligent, automated, and interconnected systems. IoT alone collects
data using sensors and devices, but through convergence, this data is processed, analyzed, and
used for smart decision-making.
1. IoT and Sensor Technologies
Sensors collect data such as temperature, humidity, motion, pressure, and light
Actuators perform actions based on sensor data
Forms the foundation of IoT systems
Example: Temperature sensors controlling HVAC systems
2. IoT and Communication Technologies
Enables data transfer between devices and servers
Includes Wi-Fi, Bluetooth, Zigbee, LoRaWAN, 4G/5G
Supports real-time and long-distance communication
Example: Smart meters sending data wirelessly
3. IoT and Cloud Computing
Cloud provides storage, computing power, and scalability
Enables remote access and centralized management
Supports IoT platforms and dashboards
Example: Cloud-based monitoring of industrial machines
4. IoT and Edge/Fog Computing
Processes data near the source (devices)
Reduces latency and network load
Essential for time-critical applications
Example: Traffic signal control systems
5. IoT and Big Data Analytics
IoT generates massive amounts of data
Big data tools analyze patterns, trends, and anomalies
Enables predictive and prescriptive insights
Example: Predictive maintenance in manufacturing
6. IoT and Artificial Intelligence / Machine Learning
Adds intelligence to IoT systems
Enables learning, prediction, and automation
Improves system accuracy over time
Example: Smart energy management systems
7. IoT and Cybersecurity
Protects devices, networks, and data
Uses encryption, authentication, and access control
AI-based security detects threats
Example: Securing healthcare IoT devices
8. IoT and Blockchain
Provides decentralized and tamper-proof data storage
Improves trust, transparency, and data integrity
Useful in multi-party IoT environments
Example: Supply chain tracking systems
9. IoT and Digital Twins
Virtual models of physical IoT systems
Enables simulation, testing, and optimization
Improves system design and maintenance
Example: Smart factories
10. IoT and Automation / Robotics
IoT data guides automated machines and robots
Enables smart control and coordination
Improves productivity and safety
Example: Automated warehouses
IoT Challenges:
The Internet of Things (IoT) faces several challenges due to the large number of connected
devices, data volume, and system complexity.
1. Security Challenges
IoT devices are vulnerable to cyber-attacks
Weak authentication and poor encryption
Risk of data breaches and device hijacking
Example: Hacking of smart cameras
2. Privacy Issues
Continuous data collection from users
Risk of misuse of personal and sensitive data
Lack of user control over data
Example: Location tracking in smart devices
3. Interoperability
Devices from different vendors use different standards
Difficulty in seamless communication
Lack of universal protocols
4. Scalability
Managing and monitoring millions of devices is complex
Network congestion and performance issues
Cloud and data handling challenges
5. Data Management
Huge volume of data generated
Storage, processing, and analysis become difficult
Need for real-time analytics
6. Power and Energy Constraints
Most IoT devices run on batteries
Frequent charging or replacement is difficult
Need for energy-efficient designs
7. Network Connectivity
Dependence on reliable internet connectivity
Issues in remote and rural areas
Latency and bandwidth limitations
8. Device Management
Firmware updates and maintenance are challenging
Fault detection and monitoring at scale
Device lifecycle management issues
9. Standardization Issues
No single global IoT standard
Leads to compatibility and integration problems
10. Cost and Deployment
High initial setup cost
Maintenance and infrastructure expenses
ROI concerns for organizations
M2M (Machine-to-Machine) : M2M architecture in IoT enables devices to
communicate and exchange data with each other autonomously, without human
intervention. It forms the foundation for automated communication and data processing in
various applications, from smart homes to industrial monitoring. The core of M2M architecture
consists of devices equipped with sensors and actuators, connected through communication
networks, and managed by software applications.
Here's a breakdown of the key components:
1. Device Layer:
Sensors:
These devices detect physical parameters like temperature, motion, or light and convert
them into data signals.
Actuators:
These devices respond to commands from other devices or applications, performing actions
like opening a valve or adjusting a thermostat.
Communication Modules:
These are embedded within the devices, enabling them to connect to various networks
(cellular, Wi-Fi, etc.).
2. Communication Layer:
Gateways:
These act as intermediaries, aggregating and converting data from devices before
transmitting it over networks.
Networks:
M2M systems can utilize various networks, including cellular, Wi-Fi, Bluetooth, or satellite,
depending on the application's needs.
3. Application Layer:
Software Applications:
These manage the entire M2M system, including device configuration, data processing, and
automated actions.
Data Processing Units:
These units analyze the data received from devices, using algorithms to extract meaningful
insights and trigger actions.
4. Common Services Layer:
This layer provides essential services for secure and reliable data transmission across
different networks and devices, acting as a bridge between the devices and the network
layer.
Things in IoT :
Things in IoT (Internet of Things) –
1. Sensors
Sensors are used to collect data from the physical environment.
They convert real-world parameters into electrical signals.
Examples:
Temperature sensor
Humidity sensor
Pressure sensor
Motion sensor
Gas sensor
Role: Data sensing/input
2. Actuators
Actuators are devices that perform actions based on commands received from the system.
Examples:
Motors
Relays
Valves
Buzzers
LEDs
Role: Output/action
3. IoT Devices (Things)
These are smart objects embedded with sensors, actuators, processor, and communication modules.
Examples:
Smart meters
Smart bulbs
Wearable devices
Smart home appliances
Role: Data collection and control
4. Processing Unit
The processing unit controls the operation of the IoT device and processes sensor data.
Examples:
Microcontrollers (Arduino, ESP32)
Microprocessors (Raspberry Pi)
Role: Decision making & device control
5. Connectivity / Communication
Connectivity enables data transfer between devices, gateways, and cloud.
Technologies:
Wi-Fi
Bluetooth
Zigbee
LoRaWAN
Cellular (4G/5G)
Role: Data transmission
6. Gateway
A gateway acts as a bridge between IoT devices and the internet/cloud.
Functions: # Protocol conversion # Data aggregation #Local processing
Role: Network management
7. Cloud / IoT Platform
The cloud provides storage, processing, and management of IoT data.
Functions:
Data storage
Device management
Remote monitoring
Automation
Examples:
AWS IoT
Azure IoT
Google Cloud IoT
8. Data Analytics
Analytics converts raw data into meaningful insights.
Functions:
Pattern detection
Prediction
Decision support
Role: Intelligent analysis
9. User Interface (UI)
User interface allows users to monitor and control IoT systems.
Forms:
Mobile apps
Web dashboards
Control panels
Role: Human interaction
10. Security
Security ensures safe and trusted communication in IoT systems.
Security measures:
Authentication
Encryption
Access control
Secure firmware updates
Role: Data protection
11. Power Supply
Power source is required to operate IoT devices efficiently.
Types:
Battery
Solar power
Energy harvesting
Functional blocks of IoT Ecosystem:
Functional Blocks of an IoT Ecosystem :
1. Devices / Things
These are the physical components of the IoT system.
Include sensors (temperature, humidity, pressure, motion, gas, etc.) and actuators (motors,
relays, valves).
Sensors collect real-world data, while actuators perform actions based on commands.
Devices often have microcontrollers (Arduino, ESP32, STM32) and limited power, memory,
and processing capability.
2. Connectivity
Provides communication between devices and the network.
Uses wired or wireless technologies such as Wi-Fi, Bluetooth Low Energy, Zigbee,
LoRaWAN, NB-IoT, Ethernet.
Responsible for data transmission, addressing, and routing.
Selection depends on range, data rate, power consumption, and cost.
3. Gateway / Data Ingestion
Acts as a bridge between devices and cloud.
Collects data from multiple devices.
Performs protocol translation (e.g., Zigbee to IP).
Filters, aggregates, and preprocesses data to reduce bandwidth.
Ensures secure data transfer to cloud servers.
4. Data Processing
Handles real-time and batch processing of IoT data.
Performs data validation, transformation, and rule-based processing.
Can be done at edge, fog, or cloud level.
Enables quick responses for time-critical applications.
5. Data Storage
Stores large volumes of IoT data for future use.
Uses databases, data lakes, and cloud storage.
Supports structured and unstructured data.
Enables historical analysis and reporting.
6. Analytics & Intelligence
Extracts useful insights from collected data.
Uses statistical analysis, AI, and machine learning.
Detects patterns, trends, and anomalies.
Supports predictive maintenance and intelligent decision-making.
7. Application Layer
Provides user interaction with the IoT system.
Includes web dashboards, mobile apps, and control panels.
Displays real-time data, alerts, and reports.
Allows users to monitor, control, and configure devices.
8. Device Management
Ensures smooth operation of IoT devices.
Device registration and provisioning.
Remote configuration and firmware updates (OTA).
Monitoring device health and lifecycle management.
9. Security
Protects the entire IoT ecosystem.
Device authentication and authorization.
Data encryption (in transit and at rest).
Secure boot, access control, and privacy protection.
Prevents cyber attacks and data breaches.
10. Integration & APIs
Enables interoperability with external systems.
Integrates IoT data with ERP, CRM, SCADA, and cloud services.
Uses REST APIs, web services, and message brokers.
IOT Communication Models :I oT devices are found everywhere and will enable
circulatory intelligence in the future. For operational perception, it is important and useful
to understand how various IoT devices communicate with each other. Communication
models used in IoT have great value. The IoTs allow people and things to be connected
any time, any space, with anything and anyone, using any network and any service.
Types of Communication Model :
1. Request & Response Model -
This model follows a client-server architecture.
The client, when required, requests the information from the server. This request is
usually in the encoded format.
This model is stateless since the data between the requests is not retained and each
request is independently handled.
The server Categories the request, and fetches the data from the database and its
resource representation. This data is converted to response and is transferred in an
encoded format to the client. The client, in turn, receives the response.
On the other hand — In Request-Response communication model client sends a
request to the server and the server responds to the request. When the server
receives the request it decides how to respond, fetches the data retrieves resources,
and prepares the response, and sends it to the client.
2. Publisher-Subscriber Model -
This model comprises three entities: Publishers, Brokers, and Consumers.
Publishers are the source of data. It sends the data to the topic which are managed
by the broker. They are not aware of consumers.
Consumers subscribe to the topics which are managed by the broker.
Hence, Brokers responsibility is to accept data from publishers and send it to the
appropriate consumers. The broker only has the information regarding the consumer
to which a particular topic belongs to which the publisher is unaware of.
3. Push-Pull Model -
The push-pull model constitutes data publishers, data consumers, and data queues.
Publishers and Consumers are not aware of each other.
Publishers publish the message/data and push it into the queue. The consumers,
present on the other side, pull the data out of the queue. Thus, the queue acts as the
buffer for the message when the difference occurs in the rate of push or pull of data
on the side of a publisher and consumer.
Queues help in decoupling the messaging between the producer and consumer.
Queues also act as a buffer which helps in situations where there is a mismatch
between the rate at which the producers push the data and consumers pull the data.
4. Exclusive Pair -
Exclusive Pair is the bi-directional model, including full-duplex communication
among client and server. The connection is constant and remains open till the client
sends a request to close the connection.
The Server has the record of all the connections which has been opened.
This is a state-full connection model and the server is aware of all open connections.
WebSocket based communication API is fully based on this model.
IOT Communication APIs : API stands for Application Programming Interface
IoT Communication APIs are software interfaces that allow IoT devices, gateways, and
applications to exchange data and control commands over a network.
IoT Communication APIs (Detailed & Easy to Remember)
IoT Communication APIs enable applications, devices, and cloud platforms to exchange data and
control commands.
1. RESTful APIs (HTTP/HTTPS)
Description:
Uses standard web methods to communicate with IoT devices and platforms.
Methods Used:
GET – Read data
POST – Send data
PUT – Update data
DELETE – Remove data
Features:
Stateless
Easy to implement
Platform independent
Advantages:
Widely supported
Simple integration
Secure using HTTPS
Limitations:
Higher overhead
Not ideal for low-power devices
Applications:
Web dashboards
Smart home apps
Cloud integration
2. WebSocket APIs
Description:
Provides full-duplex, real-time communication between client and server.
Features:
Persistent connection
Low latency
Bi-directional data flow
Advantages:
Real-time updates
Efficient for frequent data exchange
Limitations:
Requires continuous connection
Higher power usage
Applications:
Live monitoring systems
Smart control panels
3. MQTT APIs
Description:
Uses publish/subscribe messaging model.
Components:
Publisher
Broker
Subscriber
Features:
Lightweight
Asynchronous
Low bandwidth usage
Advantages:
Ideal for constrained devices
Reliable delivery (QoS levels)
Limitations:
Requires MQTT broker
Applications:
Sensor data transmission
Industrial IoT
Smart agriculture
4. CoAP APIs
Description:
Lightweight REST-like API for constrained IoT devices.
Features:
Runs over UDP
Supports GET, POST, PUT, DELETE
Low overhead
Advantages:
Energy efficient
Suitable for low-power networks
Limitations:
Less secure without DTLS
Limited browser support
Applications:
Smart lighting
Environmental monitoring
5. AMQP APIs
Description:
Advanced message queuing protocol for reliable messaging.
Features:
Message acknowledgment
Queue-based communication
Advantages:
High reliability
Enterprise-level integration
Limitations:
Heavy protocol
Higher resource usage
Applications:
Industrial automation
Enterprise IoT systems