IOT - Sem 8 - MST - Study Material
IOT - Sem 8 - MST - Study Material
Introduction
Ask Google..
Where is my key?
Where are my kids?
What are the “Things” in the IoT?
• Could be anything
– Physical
– Virtual
According to Wikipedia,
IoT refers to the interconnection of uniquely identifiable
embedded computing-like devices within the existing
Internet infrastructure.
In simple words
Internet of Things: Anetwork of internet-connected objects able to
collect and exchange data using embedded sensors.
Physical Virtual
• Objects such as • Personal schedule/calendar
• Climate control • Social
• Security/Disaster alarm system • Email
• Energy/Resource metering (Electricity, Gas, • Twitter/FB
Water) • Online notification platforms
• Water boiler, Solar boiler • WWW resources
• Car (OBDII, vehiclepi) • Weather forecasting
• The Sun (sunrise/set times, azimuth) • Stocks
• Traffic
• Living things • DB Storage
• People (self quantification) • Visualization dashboards
• Presence
• Location
• Health metrics
• Weight
• Activity tracking
• Temperature
• Blood Glycose monitors
• Fitbit
• Pets
What is IoT?
• The Internet of Things (IoT) is the network of physical
objects or "things" embedded with electronics,
software, sensors, and network connectivity, which
enables these objects to collect and exchange data.
The new rule for the future is going to be, "Anything that can be connected,
will be connected."
There are many examples for what this might look like or what the
potential value might be.
Say for example
You are on your way to a meeting; your car could have access to your
calendar and already know the best route to take. If the traffic is heavy
your car might send a text to the other party notifying them that you will
be late.
What if your alarm clock wakes up you at 6 a.m. and then notifies your
coffee maker to start brewing coffee for you?
What if your office equipment knew when it was running low on
supplies and automatically re-ordered more?
Various Names, One Concept
For over a decade after the introduction of the term Internet-of-Things, different
organizations and working groups have been providing various definitions.
All these terms are very relevant (and in most cases overlapping) to IoT. Nevertheless, they
have also have differences from IoT.
In gerenal there are different viewpoints for IoT, and ΙοΤ experts approach IoT from
different angles.
For example:
The "Things-Oriented" viewpoint focuses on technologies for the representation and
use of the things e.g., RFID (Radion-Frequency Identification), NFC (Near Field
Communications), WSN (Wireless Sensor Networks), Things connectivity technologies etc.
The "Internet-Oriented" viewpoint focuses on the internet and web aspects of IoT, such
as the web-of-things layer for simplifying application development, IPv6 for internet
connectivity and identification etc.
Independently of one's viewpoint about IoT and IoT technologies,
any non-trivial IoT system is expected to comprise the following
elements:
“THINGS” vs “People”
OR
Information ???
Example 2
Processing
Information ???
Example 3
111192, 111234
Raw Data
Information ???
Knowledge
• Knowledge is the understanding of rules
needed to interpret information
Data
Raw and unprocessed data obtained from IOT devices
Information
Inferred/summarized from data by filtering, processing,
categorizing, condensing and contextualizing
data
Knowledge
Inferred from information by structuring/organizing
information and is put into action to achieve specific
objectives.
Example: Weather Monitoring System
This doesn’t have any meaning
Definition
A 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
personalities and use intelligent interface, and
are seamlessly intergrated into the information
network, often communicate data associated
with users and their environments.
Characteristic 1:
•Cameras could switch from lower resolution to higher resolution modes when any motion
is detected and alert nearby cameras to do the same.
Characteristic 2:
Self-Configuring
•loT devices may have self-configuring
capability, allowing a large number of devices
to work together to provide certain
functionality (such as weather monitoring).
Unique identity
SPI
Storage I2C
Memory Graphics
Interfaces Interface
SD
NAND/NOR CPU CAN
MMC
DDR1/DDR2/
SDIO
DDR3
Communication Protocols
• Communication between electronic devices is
like communication between humans.
• Both sides need to speak the same language.
• In electronics, these languages are called
communication protocols.
• Communication protocols are standards that
contains data exchange rules and format
between embedded systems
• UART • I2C • SPI • CAN
UART(Universal Asynchronous
Receiver/Transmitter)
• UART is not a communication protocol like SPI and I2C,but a
physical circuit in microcontroller, or a stand-alone IC.
• It is a computer hardware device for asynchronous serial
communication in which data format and transmission
speeds are configurable.
• A UART’s main purpose is to transmit and receive serial data.
• One of the best things about UART is that it only uses two
wires to transmit data between devices(There is one wire for
transmitting data, and one wire to receive data. )
• The transmitting UART converts parallel data from a
controlling device like a CPU into serial form, transmits it in
serial to the receiving UART, which then converts the serial
data back into parallel data for the receiving device.
Data Transmission
• A common parameter is the baud rate known as "bps"
which stands for bits per second.
• If a transmitter is configured with 9600bps, then the
receiver must be listening on the other end at the
same speed.
• UART is a serial communication, so bits must travel on
a single wire.
• If you wish to send a char (8-bits) over UART, the char is
enclosed within a start and a stop bit, so to send 8-bits
of char data, it would require 2-bit overhead;
• This 10-bit of information is called a UART frame.
Why UART?
6LoWPAN
• Low power Wireless Personal Area Network
which uses IPv6.
• Brings IP protocol to low power devices
Transport layer
• Provides end-to-end message transfer
capability independent of underlying N/W
• Transfer capability is set up using TCP or UDP
TCP UDP
•Transmission Control
Protocol Requires initial setup
•User Datagram Protocol
• Connection Oriented -connection is •Connectionlessstateless
•Most widely used by established and •Useful for time sensitive
-web browser maintained until app applications where small
program at each end
-Email programs
finishes exchange of
amount of data will be
-File Transfer(FTP) message exchanges
•Provides •Doesn’t provide
-Error detection guaranteed delivery
-Flow control capability
(ensures transmission rate)
-Congestion control capability
Application Layer
• App layer protocols defines how app interface with
lower layer protocols to send the data over network.
• App data(in files) encoded and encapsulated in
transport layer which provides connection or
transaction oriented communication over N/W.
• Port numbers are used for app addressing
-port 80 for HTTP
-port 22 for SSH ect
• App layer protocols enable process-to-process
(service) connections using ports
HTTP: Hypertext Transfer Protocol
GET List all resources in the collection
PUT Replace entire collection with another collection
• -Foundation for WWW POST Create a new resource
DELETE Delete entire resource
1. Request-Response
2. Publish-Subscribe
3. Push-Pull
4. Exclusive Pair
Request-Response
Publish-Subscribe
Push-Pull
Publishers
Consumer 1
Send
messages to
Queues
queues
Consumer 2
Responds accepting
the request
HTTP Packet
HTTP Server
HTTP Client HTTP Commands
Authorization
GET PUT
JSON XML
Code on Demand Servers can provide executable code for scripts for
clients to execute in their context.
WebSocket-based Communication
APIs
• Allows bidirectional full duplex
communication between Clients and Server
• Follows Exclusive Pair communication model
• Doesn’t require a new connection to be set up
for each message sent
-Connection request: websocket handshake
If server supports websocket protocol then server
responds to the handshake then server and client can
exchange messages in full duplex mode.
• Cloud Computing
• Communication Protocols
• Embedded Systems
1.4.1 1. Wireless Sensor Network
Protocols used
WSNs are enabled by wireless communication protocols such as
IEEE802.15.4
Zigbee is one of the most popular wireless technology used by WSNs.
Zigbee specifications are based on IEEE802.15.4 which is used for
low powered devices.
Data rate: up to 250KBps. Range: upto 100 Meters
1.4.2 2. Cloud Computing
Internet based
Vs
local storage computing
• Paas : Clients can install, build and modify • Saas : Clients can access and use
or control applications.
software at remote location using a
Ex: App cloud, Google App Engine web browser.
Ex: Google documents
Benefits of Cloud Computing
Resource:
• Software components on the IoT device for
-accessing, processing and storing sensor information,
-controlling actuators connected to the device.
- enabling network access for the device.
Controller Service:
• Controller service is a native service that runs on the device and interacts
with the web services.
•It sends data from the device to the web service and receives commands
from the application (via web services) for controlling the device.
Database:
•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:
• Analysis Component 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.
1.5.1 IoT Level-1
Sensors used
Accelrometer Gyroscope
sense movement or vibrations Gives orientation info
Websocket service is used because sensor data can be sent in real time.
1.5.4 IoT Level-4
A level-4 IoT system has
multiple nodes that perform
local analysis. Data is stored in
the cloud and the application is
cloud-based.
Sensors used
Wind speed and direction Precipitation
Solar radiation Snow depth
Temperature (air, water, soil) Barometric pressure
Relative humidity Soil moisture
IoT Issues and Challenges
Security
• Cyber Attacks, Data Theft
Privacy
• Controlling access and ownership of data.
InterOperability
• Integration Inflexibility