Chapter 5
Chapter 5
When we create an IoT system — like a smart home, healthcare monitor, or agriculture sensor —
we have to work within real-world limits that affect how the system performs. These are called
design constraints — practical boundaries you must respect to build a reliable, efficient, and
affordable solution.
What It Means:
Most IoT devices are small, often battery-operated, and deployed in places where charging or
replacing batteries is difficult (e.g., a remote farm, inside machines, or in wearable devices). So,
saving energy is a priority.
Key Considerations:
Select communication protocols that use less energy like LoRa, Zigbee, or BLE (Bluetooth
Low Energy).
Apply sleep modes (devices sleep most of the time and wake up only when needed).
Example:
A soil moisture sensor in a field transmits data once every hour. It uses a small solar panel and only
wakes up for 10 seconds each hour to save power.
What It Means:
IoT devices often work in areas with limited, unstable, or expensive internet connectivity. This
creates issues with data transfer, speed, and reliability.
Key Considerations:
Choose communication methods based on range and data needs (e.g., NB-IoT, Sigfox, Wi-Fi,
or cellular).
Use lightweight protocols like MQTT (for publish-subscribe systems) or CoAP (Constrained
Application Protocol).
Implement edge computing — where processing happens near the device to reduce data
transmission.
Example:
A remote health-monitoring device in a rural village collects patient data and only sends critical
alerts (like a heart rate spike) due to low bandwidth.
3. Processing Constraints
What It Means:
IoT devices often have limited computational power due to cost, size, and power constraints. You
cannot run heavy software or complex machine learning on them.
Key Considerations:
Example:
A fitness tracker counts steps and stores heart rate but offloads data to the smartphone for deeper
analysis.
What It Means:
Many IoT devices have very limited RAM (e.g., 512 KB) and flash storage (e.g., 2 MB), making it hard
to store large software or historical data.
Key Considerations:
Example:
A vehicle GPS tracker stores only the last few minutes of location data and uploads it to a cloud
server every 5 minutes.
5. Cost Constraints
What It Means:
IoT devices often need to be low-cost to be practical, especially when deploying hundreds or
thousands of devices (e.g., smart agriculture, city sensors).
Key Considerations:
Example:
A smart light sensor for home automation needs to be cheap enough for mass use — the target
price may be below ₹500 per unit.
What It Means:
IoT devices may face extreme environments: temperature fluctuations, dust, water, pressure, and
even vibrations.
Key Considerations:
Example:
Sensors on a smart bridge must survive rain, heat, and dust for years without maintenance.
7. Security Constraints
What It Means:
IoT devices are often connected to the internet and are vulnerable to cyberattacks, like hacking or
data theft. But these devices may not have enough resources to run strong security measures.
Key Considerations:
Example:
A smart lock on your door must resist hackers trying to gain remote access.
8. Scalability Constraints
What It Means:
An IoT system should allow easy addition of devices, services, or users in the future. Poor planning
leads to performance drops as the system grows.
Key Considerations:
Example:
A smart city lighting system may start with 100 streetlights and grow to 10,000. It should handle
that scale smoothly.
What It Means:
Some applications need instant reactions (real-time behavior), where even a few seconds of delay
could be dangerous.
Key Considerations:
Example:
A fire detection system in a factory must alert the fire control system in milliseconds.
What It Means:
IoT systems are used by non-technical people, so they must be easy to install, use, and maintain.
Key Considerations:
Example:
A smart thermostat in a home must be intuitive enough for elderly users to set the temperature
easily.
Asset Management
What is Asset Management in IoT?
In the context of IoT, Asset Management refers to the process of tracking, monitoring, and
managing physical assets (such as machines, sensors, vehicles, and other equipment) using IoT
technologies. The goal is to gain visibility into asset usage, improve performance, ensure
maintenance, and reduce operational costs.
IoT asset management combines real-time data collection, remote monitoring, and data analytics
to enhance the lifecycle of assets and make better, data-driven decisions.
2. Sensors: Devices attached to assets that measure parameters like location, temperature,
vibration, pressure, humidity, and more. Sensors collect and send data in real-time.
3. Communication Network: The network used to send data from assets to a centralized
system. This could be Wi-Fi, cellular networks (5G, 4G), Bluetooth, LoRaWAN, or Zigbee,
depending on the asset's location and required data transmission range.
4. IoT Platform: Software tools/platforms that collect, process, and display the data received
from IoT devices. Examples include AWS IoT, Google Cloud IoT, Microsoft Azure IoT, and
specialized platforms like ThingSpeak.
5. Data Analytics: Analyzing the gathered data to extract useful insights. This can include
predictive maintenance, performance optimization, and identifying inefficiencies.
6. User Interface (Dashboard): A web or mobile-based interface where users can view real-
time and historical data of assets, receive alerts, and generate reports.
1. Asset Tagging:
o Every asset is tagged or equipped with IoT sensors. For example, a GPS tag on a
vehicle, temperature sensor on a machine, or RFID tag on a product.
o These tags help in identifying and tracking the assets in real-time.
o The IoT sensors attached to the assets collect real-time data such as:
3. Data Transmission:
o The data from sensors is sent through a wireless network to a cloud platform or
local server where it is stored and analyzed. This can be done through protocols like
MQTT, CoAP, HTTP, or Bluetooth.
o Once the data reaches the cloud or server, it is stored in a database (e.g., AWS S3,
Google BigQuery).
o The system can send alerts to users based on certain thresholds or conditions. For
instance:
o Users can view the data on a dashboard, which provides visualizations of asset data
over time.
o The system can generate reports based on the data, such as asset utilization reports,
maintenance logs, and efficiency analytics.
Key Benefits of IoT-based Asset Management
o Real-time monitoring of assets gives full visibility over their status, location, and
health. This helps in tracking assets in large, distributed environments (like
warehouses, factories, or fleets).
2. Predictive Maintenance:
o By analyzing sensor data, you can predict when an asset is likely to fail (e.g., a
motor overheating), which allows for proactive maintenance.
o Optimizing asset usage reduces the need for additional equipment or inventory.
o Efficient asset tracking helps identify unused or underused assets, leading to better
resource allocation and cost savings.
4. Enhanced Productivity:
o Maintenance can be scheduled more efficiently, and employees can focus on high-
priority tasks.
o Geofencing ensures assets stay within designated areas (e.g., fleet vehicles are
restricted to certain zones).
o With GPS and RFID tracking, assets can be monitored in real-time, preventing theft
and loss, especially in large storage areas or during transportation.
In industries like manufacturing, mining, or construction, machines, tools, and vehicles are
monitored using IoT.
Condition-based monitoring of industrial machines helps predict failures before they occur
and schedule maintenance during non-peak hours.
2. Fleet Management
Vehicles (e.g., trucks, delivery vans) are equipped with GPS trackers and telemetry sensors
to monitor fuel consumption, location, and speed.
Route optimization and real-time tracking help companies improve delivery times and
reduce fuel costs.
RFID tags and GPS trackers are used to track inventory and products across the supply chain.
Assets are monitored in warehouses, ensuring optimal stock levels and reducing inventory
loss or theft.
Tracking the location of medical devices (e.g., wheelchairs, infusion pumps) ensures they
are available when needed and minimizes search time.
Sensors on farm equipment track machine performance and monitor soil conditions.
Farm vehicles like tractors are tracked in real-time, helping optimize fuel consumption and
prevent overuse.
1. Asset Tagging: Attach GPS and temperature sensors to a fleet of delivery trucks.
2. Data Collection: Sensors send real-time data about location and temperature to the cloud.
3. Monitoring: A fleet management dashboard displays truck data, showing if any trucks are
deviating from routes or are at risk of overheating.
4. Alerting: An alert is triggered if a truck is running low on fuel or if the temperature inside
exceeds a set threshold.
5. Analytics & Reporting: The system generates reports on fuel efficiency, maintenance
schedules, and route optimization.
When we add IoT (Internet of Things) to this, it becomes Industrial IoT (IIoT) — where devices,
machines, and sensors are all connected to the internet to enable real-time monitoring, intelligent
decision-making, and remote control.
Traditional automation uses rigid systems like PLCs (Programmable Logic Controllers) and SCADA
systems. But they:
a) Smart Sensors
Current/voltage
b) Actuators
Opening/closing valves
c) IoT Gateways
They connect sensors to the cloud or central server and often do local processing.
Function:
d) Edge Devices
These are mini-computers (e.g., Raspberry Pi, NVIDIA Jetson, or industrial PCs) that:
Example: An edge device detects overheating and triggers an emergency stop instantly.
e) Cloud Platforms
Machine health
Production stats
Example: A factory manager sees machine performance for all plants on a dashboard.
4. How Industrial Automation with IoT Works (Step-by-Step)
The sensor sends data using protocols like MQTT, OPC-UA, or Modbus.
A. Predictive Maintenance
IoT Solution:
Example: A CNC machine shows abnormal vibration. An alert is sent, and a technician checks the
spindle before it breaks.
B. Energy Optimization
IoT Solution:
Example: A motor uses power even when idle. IoT detects this and powers it down
automatically.
IoT Solution:
Example: In a bottling plant, a vision sensor detects misaligned caps and triggers a robotic arm to
remove them.
IoT Solution:
Example: A steel rod enters the warehouse → RFID updates the stock instantly on the cloud.
Protocol Use
IoT Management Tools are software platforms and systems that help organizations:
These tools form the backbone of any real-world IoT solution, especially in sectors like smart cities,
healthcare, agriculture, and industrial automation.
Imagine managing:
You can’t control or update each manually. You need centralized tools to:
Track status
Push updates
Receive alerts
Monitor performance
Analyze data
These tools allow you to provision, organize, monitor, and update thousands of IoT devices
remotely.
Tool Features
AWS IoT Device Register, organize, and remotely update IoT devices; push OTA
Management updates.
Key Functions:
These tools ensure your IoT devices stay connected, responsive, and secure over Wi-Fi, cellular,
LPWAN, etc.
Tool Features
Cisco IoT Control Center Real-time SIM management, cellular connectivity tracking.
Thales IoT Platform eSIM and connectivity management for global IoT deployments.
Key Functions:
These tools collect, store, clean, and process data from IoT devices in real time.
Tool Features
AWS IoT Analytics Cleans, transforms, and analyzes large streams of IoT data.
Key Functions:
These protect your devices, network, and data from unauthorized access or cyberattacks.
Tool Features
AWS IoT Device Defender Monitors security policies and identifies abnormal behavior.
Azure Security Center for IoT Endpoint protection, threat detection, and vulnerability scanning.
Zededa Edge Security Secure edge app deployment with identity and encryption.
Key Functions:
These tools let developers design, manage, and automate IoT workflows and applications.
Tool Features
IFTTT (If This Then That) Connects devices and triggers simple automation.
Blynk IoT Platform Build mobile apps for IoT control without heavy coding.
Key Functions:
These tools transform raw sensor data into meaningful insights and dashboards.
Tool Features
Google Data Studio Free and cloud-friendly; integrates with Google Sheets & BigQuery.
Key Functions:
1. Devices (CNC machines, sensors) are registered using AWS IoT Device Management.
2. Devices send data to the cloud through MQTT using Balena Edge OS.
3. Connectivity is managed using Cisco IoT Control Center to track SIMs.
4. Real-time temperature, vibration, and speed are analyzed using AWS IoT Analytics.
6. If a machine overheats, Node-RED sends a signal to shut it down and notify engineers.
Benefit Description
Remote Device Control Update and monitor devices globally from a web dashboard.
Actionable Insights See trends, patterns, and generate reports from sensor data.
Introduction
Amazon Web Services (AWS) is a comprehensive and widely adopted cloud computing platform
offered by Amazon. Launched in 2006, AWS provides on-demand access to computing resources
such as servers, storage, databases, and networking, on a pay-as-you-go basis. It enables individuals,
businesses, and governments to build and scale applications globally without owning physical
hardware.
AWS plays a crucial role in modern IT, IoT, artificial intelligence, big data, and application
development, offering high availability, scalability, cost efficiency, and global reach.
AWS offers over 200+ services, grouped into the following key categories:
1. Compute Services
Service Description
2. Storage Services
Service Description
EBS (Elastic Block Store) Storage for EC2 instances (like a hard disk).
EFS (Elastic File System) Shared file storage for Linux servers.
Example: IoT logs and analytics data are stored in S3 or Glacier for future analysis.
3. Database Services
Service Description
RDS (Relational Database Service) Manages SQL databases like MySQL, PostgreSQL.
Example: A smart city project uses DynamoDB to store live traffic and environmental data.
Service Description
API Gateway Creates RESTful APIs for apps and IoT devices.
Example: A mobile app interacts with IoT sensors using APIs managed by API Gateway.
Service Description
Service Description
Example: A healthcare IoT app uses IAM and encryption to protect patient data.
6. IoT Services
Service Description
Example: In a smart factory, devices send telemetry to AWS IoT Core, which triggers AWS
Lambda for analytics and alerts.
Service Description
Example: CloudWatch monitors EC2 CPU usage; CloudTrail logs admin access to databases.
Service Description
Example: A smart security system uses Rekognition for face recognition and alerts.
1. Smart Cities – IoT Core, Lambda, and DynamoDB used for environmental sensors and traffic
control.
2. Healthcare – Secure patient data storage with S3, encrypted access using IAM.
3. E-commerce – Use EC2, RDS, S3, and CloudFront for hosting websites.
Benefits of AWS
Benefit Description
Conclusion
AWS is a powerful, flexible, and scalable cloud platform that supports a wide range of applications
— from web hosting and data storage to AI, IoT, and enterprise infrastructure. Its global presence,
security features, and vast service offerings make it a top choice for organizations and developers
across the world.
In the IoT domain, AWS enables real-time data processing, device control, edge computing, and
analytics, making it a backbone for smart systems in industries, agriculture, cities, and healthcare.
Cloud storage is a model where data is stored on remote servers accessed via the internet, instead
of local storage devices. Depending on the type of data and how you want to access it, cloud
providers offer three main storage models:
What it is:
It doesn't follow the traditional file/folder system. Instead, it uses a flat address space, like a huge
bucket of objects.
Key Features:
Advantages:
Cloud Examples:
What it is:
Data is stored in fixed-size blocks, like traditional hard drives. The operating system manages files on
top of these blocks.
Think of block storage as raw storage volumes that can be formatted with a file system like NTFS or
ext4.
Key Features:
Advantages:
Cloud Examples:
Use Case:
Application servers.
What it is:
Data is organized in a hierarchical file and folder system. It’s similar to traditional file storage in your
computer.
Accessed over network protocols like:
NFS (Linux)
SMB/CIFS (Windows)
Key Features:
Advantages:
Cloud Examples:
Azure Files
Google Filestore
Use Case:
Ideal For Media, backups DBs, VMs, apps Shared file systems
COMMUNICATION APIs IN CLOUD (Detailed Explanation)
Communication APIs let cloud-based systems send and receive data between services, devices, and
users. These APIs ensure secure, structured, and real-time communication.
What it is:
A web-based architectural style using HTTP methods (GET, POST, PUT, DELETE) for communication
between client and server.
Example:
http
CopyEdit
GET [Link]
Features:
Resource-oriented.
Use Case:
Web apps.
What it is:
A protocol using XML over HTTP or SMTP. It's stricter than REST and supports advanced features like
security and transaction handling.
Features:
Built-in WS-Security.
Use Case:
What it is:
Features:
Bi-directional streaming.
Use Case:
4. WebSockets
What it is:
Allows full-duplex communication over a single, long-lived TCP connection. Unlike REST, which is
request/response, WebSocket allows the server to push updates.
Features:
Persistent connection.
Use Case:
What it is:
A lightweight messaging protocol based on the publish-subscribe model, designed for low-
bandwidth or unreliable networks.
Features:
Asynchronous messaging.
Use Case:
Telemetry applications.
Cloud for IoT refers to the use of cloud computing platforms (like AWS, Azure, or Google Cloud) to
store, process, analyze, and manage data generated by IoT devices.
IoT devices (e.g., sensors, smart appliances) collect data and send it to the cloud for further actions
such as:
Real-time monitoring
Data analytics
Machine learning
Device management
CopyEdit
+----------------------+
+----------------------+
+----------------------+
+----------------------+
+----------------------+
+----------------------+
1. Device Layer
2. Gateway Layer
3. Cloud Layer
Handles:
o Device registration
5. Application Layer
1. Smart Homes
Devices like smart lights, thermostats, and cameras are connected to the cloud.
You can monitor and control your home from your phone using the cloud dashboard.
2. Industrial Automation
3. Healthcare
4. Smart Agriculture
5. Smart Cities
Parking sensors, traffic signals, air quality monitors send data to cloud servers.