Iot Unit 1
Iot Unit 1
Iot Unit 1
}
2250544: Internet of
Things
Presentation by
BONAGIRI KOTESWARRAO
Asst. Professor
Department of ECE
MLRITM IoT - Unit-I
Syllabus
Course Objectives
Course Objectives:
To introduce the terminology, technology, and its applications
To introduce the concept of M2M (machine to machine) with necessary
protocols
To introduce the Python Scripting Language which is used in many IoT
devices
To introduce the Raspberry PI platform, which is widely used in IoT
applications
To introduce the implementation of web-based services on IoT devices
Course Outcomes
Course Outcomes: The students should be able to
Understand the characteristics, protocols, and communication models
required for the logical design of IoT.
Realize the hardware platforms for implementing and interfacing the IoT-
based board with different peripheral devices and serial communication
devices.
Develop stacks for IoT and M2M networks and configurations.
Integrate devices and develop an application that can communicate
through IoT Cloud.
Do case studies
Syllabus
UNIT - I
Introduction to Internet of Things –Definition and Characteristics of IoT. Physical Design of IoT
– IoT Protocols. Logical Design of IoT -IoT Communication Models, IoT Communication APIs.
IoT Enabling Technologies – Wireless Sensor Networks, Cloud Computing, Big data analytics,
Communication protocols, Embedded Systems. IoT Levels and Deployment Templates.
UNIT - II
Python packages - JSON, XML, HTTPLib, URLLib, SMTPLib, RPi.GPIO.
IoT Physical Devices and Endpoints - Introduction to Raspberry PI, Interfaces (serial, SPI, I2C).
Programming Raspberry PI with Python - Controlling LED, interfacing an LED and Switch, Interfacing
a Light Sensor with Raspberry Pi.
UNIT - III
Domain Specific IoTs – Home, City, Environment, Energy Systems, Retail, Logistics, Agriculture,
Industry, Health and Lifestyle.
IoT and M2M – Software Defined Networks, Network Function Virtualization, Difference between
SDN and NFV for IoT. IoT System Management with NETCONF-YANG: SNMP, NETCONF, YANG,
NETOPEER.
Syllabus
UNIT - IV
IoT Physical Servers and Cloud Offerings – Introduction to Cloud Storage models and
communication APIs, WAMP- Auto Bahn for IoT, Cloud for IoT, Python Web Application Framework,
Designing a RESTful Web API.
UNIT - V
Case Studies Illustrating IoT Design: Home Automation and Agriculture.
TEXT BOOKS:
1. Internet of Things - A Hands-on Approach, Arshdeep Bahga and Vijay Madisetti, Universities
Press, 2015.
2. Learning Internet of Things by Peter Waher, Packt publisher, 2015.
REFERENCE BOOKS:
3. Getting started with sensors: Measure the world with Electronics, Arduino, and Raspberry,
Kimmokarvinen and teroKarvenien, First Edition, Shroff/O’Reilly, 2014.
4. Getting started with Raspberry Pi, Richardson Matt, Shroff Publishers & Distributers Private
Limited.2015
5. Practical Internet of Things Security by Brian Russell, Drew Van Duren, Packt publisher, 2016.
Learning Outcome
Learning Outcome
• The main scope of unit 1 is
• The building blocks of Internet of Things (IoTs) and their
characteristics.
• A taxonomy of IoT systems is proposed comprising of various IoT levels
with increasing levels of complexity.
• Domain-specific Internet of Things and their real-world applications.
Knowledge Level
CO No Course Outcomes
(Bloom’s Taxonomy)
CO 3 Develop stacks for IoT and M2M networks and configurations. L6 (Create )
What is IoT?
What is IoT?
What is IoT?
Kevin Ashton, in a
presentation of Procter &
Gamble in 1999, coined the
term “Internet of Things“.
Almost every area, device,
sensor, software, etc
are connected to each
other. The ability to access
these devices through a
smartphone or through a
computer is called IoT. These
devices are accessed from a
distance. KSRAO @ Dept. of ECE 13
MLRITM IoT - Unit-I
What is IoT?
What is IoT?
What is IoT?
What is IoT?
Chapter – 1
Introduction to Internet of
1.1 Introduction Things
1.2 Physical Design of IoT
•Internet Of Things is Fully Networked and Connected Devices sending analytics data
back to cloud or data center.
•The definition of Internet of things is that it is the network in which every object or
thing is provided unique identifier and data is transferred through a network
without any verbal communication.
•Scope of IoT is not just limited to just connecting things to the internet, but
it allows these things to communicate and exchange data, process them as
well as control them while executing applications.
Applications of IoT
Definition of IoT
attributes, and use intelligent interfaces, and are seamlessly integrated into
Characteristics of IoT
• Dynamic & Self-Adapting
• Self-Configuring
• Unique Identity
Characteristics of IoT
Dynamic Global Network & Self-Adapting :
IoT devices and systems may have the capability to dynamically adapt with the
changing contexts and take actions based on their operating conditions, user‘s
context or sensed environment.
Eg: the surveillance system is adapting itself based on context and
changing conditions.
Self Configuring :
Allowing a large number of devices to work together to provide certain
functionality.
Characteristics of IoT
Interoperable Communication Protocols :
•Each IoT device has a unique identity and a unique identifier(IP address).
• Such as Unique IP Address or a URI
•This allows to communicate and exchange data with other devices to perform
certain analysis.
The "Things" in IoT usually refers to IoT devices which have unique identities
and can perform remote sensing and actuating and have monitoring
capabilities.
IoT devices can:
• Exchange data with other connected devices and applications (directly or
indirectly), or
• Collect data from other devices and process the data locally, or
• Send the data to centralized servers or cloud-based application back-ends
for processing the data, or
• Perform some tasks locally and other tasks within the IoT infrastructure,
based on temporal and space constraints
• Audio/video interfaces
•IoT protocols can be divided in terms of the role they play within the
network.
•Among many others, there are protocols used in
• Connectivity infrastructure (e.g. 6LowPAN),
• Communications (Wi-Fi, Bluetooth),
• Data transmission (MQTT, CoAP, XMPP),
• Security (DTLS), and
• Device management as well as telemetry (LwM2M).
4 802.3.ae Fiber…..10Gbits/s
• Standards provide data rates from 10 Mb/s to 40 gigabits per second and the
higher.
• The shared medium in Ethernet can be a coaxial cable , twisted pair wire or and
Optical fiber.
• Shared medium carries the communication for all the devices on the network.
•WiMax standard provides a data rates from from 1.5 Mb/s to 1Gb/s
•The recent update provides data rates of hundred megabits per second for
mobile station.
communication Zigbee.
power-constrained devices.
3 4G LTE
• IPV6
•It provides functions such as error control, segmentation, flow- control and congestion
control
• TCP
• UDP
•Connection Oriented
•It is the most widely used transport layer protocol that is used by web
browsers (HTTP application layer protocols), email programs (SMTP
application layer protocol) and file transfer protocol (FTP).
KSRAO @ Dept. of ECE 43
MLRITM IoT - Unit-I
IoT Protocols - Transport Layer - UDP
• Connectionless
• Use full for time-sensitive applications with tiny data units to exchange
and do not want the overhead of the connection setup.
•Application layer protocol define how the application interfaces with the lower layer
protocols to send the data over the network.
•Data are typically in files, is encoded by the application layer protocol and
encapsulated in the transport layer protocol .
•Application layer protocol enable process-to-process connection using ports.
• Based on TCP
•Broker here receives messages from publishers and route them over
connections to consumers through messaging queues.
entities and processes without going into the low-level specifics of the
implementation.
•An IoT system comprises a number of functional blocks that provide the
system the capabilities for identification, sensing, actuation, communication
and management.
•Applications: IoT application provides and interface that the user can used
to control and monitor various aspects of the IoT system. Application also
allow users to view the system status and view or analyze the processed to
data
KSRAO @ Dept. of ECE 54
MLRITM IoT - Unit-I
1.3.2 IoT Communication Models
• Request–Response
• Publish–Subscribe
• Push–Pull
• Exclusive Pair
• Queues help in decoupling the messaging between the producers and consumers.
• Queues also act as a buffer which helps in situations when there is a mismatch
between the rate at which the producers push data and the rate at which the
consumers pull data.
• Separation of concerns
• Stateless
• Each request must contain all the information necessary to understand the
request
• Cacheable
• Cache-able or Non-cache-able.
• Layered System
• Uniform Interface
• Code on demand
Req-Res/Full
Follow Request Response Model Exclusive Pair Model
Duplex
Header Each request carries HTTP Headers, Does not involve overhead
Overhead hence not suitable for real-time of headers.
• Cloud Computing
• Embedded Systems
Example
• Survelliance systems
Protocols
• Zigbee
Database: The database can be either local or in the cloud and stores the data
generated by the IoT device.
Web Service:
Web services serve as a link between the IoT device, application, database, and
analysis components.
It can be implemented using HTTP and REST principles (REST service) or using
the WebSocket protocol (WebSocket service).
Analysis Component: This is responsible for analyzing the IoT data and generating
results in a form that is easy for the user to understand.
Application:
IoT applications provide an interface that the users can use to control and
monitor various aspects of the IoT system.
Applications also allow users to view the system status and the processed data.
Let us now consider done example of a Level 1 IoT system for home
automation. This system consists of the single node that allows controlling
the lights and appliances in your home remotely . The device used in this
system interfaces with their lights and appliances using electronic relay
switches.
The status information of each light or appliance is maintained in a local
database. REST service deployed locally Allows retrieving and updating
the state of the each light or appliance in the status database.
The controller service continuously monitors the state of each light or
appliance and triggers the relay switches accordingly. The applications
which is deployed locally has a user interface for controlling the lights or
appliances. since the device is connected to the internet, the application
can be accessed remotely as well.
KSRAO @ Dept. of ECE 84
MLRITM IoT - Unit-I
1.5.2 IoT Level-2
The system consists of the single node that monitor the soil moisture level
and control segregation system.
The device used in this system collect soil moisture data from sensor the
controller service continuously monitor the moisture level.
If the monster level drops below a threshold ‘t’ , the irrigation system is
turned on.
For controlling the irrigation system actuators such as solenoid valve can
be used.
Rest Web Services is used for storing and retrieving data which is stored in
the cloud database.
A cloud based application is used for visualizing the moisture level over a
period of time, which can help in making decisions about irrigation
schedules.
KSRAO @ Dept. of ECE 87
MLRITM IoT - Unit-I
1.5.3 IoT Level-3
Sensors used
Accelerometer: sense movement or vibrations
Gyroscope: Gives orientation info
• Websocket service is used because sensor data can be sent in real time.