FIOT UNITS 1-2
FIOT UNITS 1-2
SYLLABUS
UNIT – I
UNIT – II
UNIT – III
UNIT – IV
UNIT – V
*****
Page 1 of 77
Fundamentals of Internet of Things
UNIT – I
(IOT)
―Internet of Things (IoT)‖ was coined by Kevin Ashton in 1999, and it has
recently become more relevant to the practical world largely because of
the growth of mobile devices, embedded and appearing communication,
cloud computing and data analytics.
The ―Thing‖ in IoT can be any device with any kind of built-in-sensors with
the ability to collect and transfer data over a network without manual
intervention.
The embedded technology in the object helps them to interact with internal
states and the external environment, which in turn helps in decisions making
process.
However, all complete IoT systems are the same in that they represent the
integration of four distinct components: sensors/devices, connectivity, data
processing, and a user interface.
IoT comprises things that have unique identities and are connected to internet.
By 2020 there will be a total of 50 billion devices/things connected to internet.
Internet of Things would be a $8.9 trillion market in 2020.
IoT is not limited to just connecting things to the internet but also allow
things to communicate and exchange data.
Imagine a world where billions of objects can sense, communicate and share
information, all interconnected over public or private Internet Protocol (IP)
networks. These interconnected objects have data regularly collected,
analyzed and used to initiate action, providing a wealth of intelligence for
planning, management and decision making. This is the world of the Internet
of Things.
Page 2 of 77
Fundamentals of Internet of Things
The Internet of Things (IoT) describes the network of physical objects — ―things‖—
that are embedded with sensors, software, and other technologies for the purpose
of connecting and exchanging data with other devices and systems over the internet.
Internet of Things can create information about the connected objects, analyze it,
and make decisions; in other words, one can tell that the Internet of Things is
smarter than the Internet. Security cameras, sensors, vehicles, buildings, and
software are examples of things that can exchange data among each other.
(Or)
Page 3 of 77
personalities and use intelligent interfaces, and are seamlessly integrated into the
information network, often communicate data associated with users and their
environments.
(Or)
The internet of things (IoT) is a computing concept that describes the idea of
everyday physical objects being connected to the internet and being able to
identify themselves to other devices. It has dynamic global network infrastructure
with self-configuring capabilities based on standard and interoperable
communication protocols where physical and virtual ―things‖ have identities,
physical attributes and virtual network and use intelligent interfaces.
Benefits of IoT: Since IoT allows devices to be controlled remotely across the
internet, thus it created opportunities to directly connect & integrate the physical
world to the computer-based systems using sensors and internet. The
interconnection of these multiple embedded devices will be resulting in automation
in nearly all fields and also enabling advanced applications. This is resulting in
improved accuracy, efficiency and economic benefit with reduced human
intervention. It encompasses technologies such as smart grids, smart homes,
intelligent transportation and smart cities.
CHARACTERISTICS OF IOT
1) Dynamic & 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.
Page 4 of 77
Fundamentals of Internet of Things
4) Unique Identity: Each IoT device has a unique identity and a unique identifier
(IP address).
The Applications on IoT networks extract and create information from lower- level
data by filtering, processing, categorizing, condensing and contextualizing the
data.
1) Home.
2) Cities.
3) Environment.
4) Energy.
5) Retail.
6) Logistics.
7) Agriculture.
8) Industry.
9) Health & Lifestyle.
Page 5 of 77
Fundamentals of Internet of Things
1) Home Automation:
Page 6 of 77
Fundamentals of Internet of Things
2) Cities:
i. Smart Parking: make the search for parking space easier and convenient for
drivers. Smart parking is powered by IoT systems that detect the no. of empty
parking slots and send information over internet to smart application
backends.
ii. Smart Lighting: for roads, parks and buildings can help in saving energy.
iii. Smart Roads: Equipped with sensors can provide information on driving
condition, travel time estimating and alert in case of poor driving conditions,
traffic condition and accidents.
iv. Structural Health Monitoring: uses a network of sensors to monitor the
vibration levels in the structures such as bridges and buildings.
v. Surveillance: The video feeds from surveillance cameras can be
aggregated in cloud based scalable storage solution.
vi. Emergency Response: IoT systems for fire detection, gas and water
leakage detection can help in generating alerts and minimizing their effects
on the critical infrastructures.
3) Environment:
Page 7 of 77
Fundamentals of Internet of Things
iv. Forest Fire Detection: Forest fire can cause damage to natural resources,
property and human life. Early detection of forest fire can help in
minimizing damage.
v. River Flood Detection: River floods can cause damage to natural and human
resources and human life. Early warnings of floods can be given by
monitoring the water level and flow rate. IoT based river flood monitoring
system uses a no. of sensor nodes that monitor the water level and flow rate
sensors.
4) Energy:
5) Retail:
Page 8 of 77
Fundamentals of Internet of Things
6) Logistics:
i. Route generation & scheduling: IoT based system backed by cloud can
provide first response to the route generation queries and can be scaled up to
serve a large transportation network.
ii. Fleet Tracking: Use GPS to track locations of vehicles in real-time.
iii. Shipment Monitoring: IoT based shipment monitoring systems use sensors
such as temp, humidity, to monitor the conditions and send data to cloud,
where it can be analyzed to detect food spoilage.
iv. Remote Vehicle Diagnostics: Systems use on-board IoT devices for
collecting data on Vehicle operations (speed, RPM etc.,) and status of
various vehicle subsystems.
7) Agriculture:
8) Industry:
The "Things" in IoT usually refers to IoT devices which have unique
identities and can perform remote sensing, actuating and monitoring
capabilities.
IoT devices can:
⮡ Exchange data with other connected devices and applications (directly
or indirectly), or
Page 9 of 77
Fundamentals of Internet of Things
⮡ 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.
The things in IoT refers to IoT devices which have unique identities and
perform remote sensing, actuating and monitoring capabilities. IoT devices
can exchange data with other connected devices applications. It collects
data from other devices and process data either locally or remotely.
An IoT device may consist of several interfaces for connections/
communication to other devices, both wired and wireless. These includes:
i. I/O interfaces for sensors.
ii. Interfaces for Internet connectivity.
iii. Memory and storage interfaces.
iv. Audio/video interfaces.
Page 10 of 77
Fundamentals of Internet of Things
2) IoT Protocols:
i. Link Layer:
802.3 – Ethernet
802.11 – WiFi
802.16 – WiMax
802.15.4 – LR-WPAN
2G/3G/4G
ii. Network/Internet Layer:
IPv4
IPv6
6LoWPAN
iii. Transport Layer:
TCP
UDP
iv. Application Layer:
HTTP
CoAP
WebSocket
MQTT
XMPP
DDS
AMQP
Page 11 of 77
Fundamentals of Internet of Things
i) Link Layer: Protocols determine how data is physically sent over the network‘s
physical layer or medium. Local network connect to which host is attached. Hosts on
the same link exchange data packets over the link layer using link layer protocols.
Link layer determines how packets are coded and signaled by the h/w device over
the medium to which the host is attached.
Protocols:
Page 12 of 77
Fundamentals of Internet of Things
Protocols:
Protocols:
Page 13 of 77
Fundamentals of Internet of Things
iv) Application Layer: Defines how the applications interface with lower layer
protocols to send data over the n/w. Enables process-to-process communication
using ports.
Protocols:
HTTP: Hyper Text Transfer Protocol that forms foundation of WWW. Follow
request- response model Stateless protocol.
CoAP: Constrained Application Protocol for machine-to-machine (M2M)
applications with constrained devices, constrained environment and
constrained n/w. Uses client- server architecture.
WebSocket: allows full duplex communication over a single socket
connection.
MQTT: Message Queue Telemetry Transport is light weight messaging
protocol based on publish-subscribe model. Uses client server architecture.
Well suited for constrained environment.
XMPP: Extensible Message and Presence Protocol for real time
communication and streaming XML data between network entities.
Support client-server and server-server communication.
DDS: Data Distribution Service is data centric middleware standards for
device-to-device or machine-to-machine communication. Uses publish-
subscribe model.
AMQP: Advanced Message Queuing Protocol is open application layer
protocol for business messaging. Supports both point-to-point and publish-
subscribe model.
1) Device.
2) Communication.
3) Services.
4) Management.
5) Security.
Page 14 of 77
Fundamentals of Internet of Things
6) Applications.
SENSING
Page 15 of 77
Fundamentals of Internet of Things
3) Motion sensors.
4) Gas sensors.
5) Smoke sensors.
6) Pressure sensors.
7) Image sensors.
8) IR sensors.
ACTUATION
Another type of transducer that you will encounter in many IoT systems is an
actuator. In simple terms, an actuator operates in the reverse direction of a sensor.
It takes an electrical input and turns it into physical action.
SENSING VS ACTUATION
BASICS OF NETWORKING
Switches, routers, and wireless access points are the essential networking basics.
Through them, devices connected to your network can communicate with one
another and with other networks, like the Internet. Switches, routers, and wireless
access points perform very different functions in a network.
COMMUNICATION PROTOCOLS
1) Request-Response Model.
2) Publish-Subscribe Model.
3) Push-Pull Model.
4) Exclusive Pair Model.
1) Request-Response Model: In which the client sends request to the server and
the server replies to requests. Is a stateless communication model and each
request-response pair is independent of others.
Page 16 of 77
Fundamentals of Internet of Things
3) Push-Pull Model: in which data producers push data to queues and consumers
pull data from the queues. Producers do not need to aware of the consumers. Queues
help in decoupling the message between the producers and consumers.
Page 17 of 77
Fundamentals of Internet of Things
Page 18 of 77
Fundamentals of Internet of Things
and web APIs that focus on a system ‗s resources and have resource states
are addressed and transferred.
Stateless: Each request from client to server must contain all the info. Necessary
to understand the request, and cannot take advantage of any stored context on the
server.
Page 19 of 77
Fundamentals of Internet of Things
Code on Demand: Servers can provide executable code or scripts for clients to
execute in their context. This constraint is the only one that is optional.
Page 20 of 77
Fundamentals of Internet of Things
*****
Page 21 of 77
Fundamentals of Internet of Things
UNIT – II
MACHINE-TO-MACHINE (M2M)
COMMUNICATIONS
Page 22 of 77
Fundamentals of Internet of Things
Page 23 of 77
Fundamentals of Internet of Things
INTEROPERABILITY IN IOT
Dimensions for Interoperability: The main objective of this report is not to produce
a new definition on interoperability but to explore the different roles and
functionality that interoperability plays in IoT. There are many definitions of
interoperability; we try to provide a common definition that can be extracted from
many of those definitions (bringing from the 3 rd Generation Partnership Project,
3GPP). Interoperability is:
Page 24 of 77
Fundamentals of Internet of Things
―the ability of two or more systems or components to exchange data and use
information‖
Page 25 of 77
Fundamentals of Internet of Things
Following the definitions and the trends on ICT sector about sensors and sensor
data we can add two other dimensions: Static and dynamic interoperability.
Page 26 of 77
Fundamentals of Internet of Things
Page 27 of 77
Fundamentals of Internet of Things
Arduino Programs:
Page 28 of 77
Fundamentals of Internet of Things
Page 29 of 77
Fundamentals of Internet of Things
Page 30 of 77
Fundamentals of Internet of Things
Page 31 of 77
Fundamentals of Internet of Things
Page 32 of 77
Fundamentals of Internet of Things
Page 33 of 77
Fundamentals of Internet of Things
Examples:
1) Electrical Circuit.
2) Blinking LED.
3) Switch.
4) Potentiometer.
5) Temperature.
6) Light Sensor.
7) Thermistor.
Page 34 of 77
Fundamentals of Internet of Things
Page 35 of 77
Fundamentals of Internet of Things
*****
Page 36 of 77