Index Topic Coverage For UNIT 1,2
Index Topic Coverage For UNIT 1,2
IoT Tutorial
o IoT Tutorial
o Advantage & Disadvantage
o Embedded Devices and System
o IoT Ecosystem
o IoT Decision Framework
IoT Devices
o Smarts Objects
o IoT Devices
o Major IoT Boards in Market
IoT Platforms
o IoT Platform
o ThingWorx Platform
Communication Protocols
o Data Link
o Network Layer
o Session Layer
The term "Things" in the Internet of Things refers to anything and everything in day
to day life which is accessed or connected through the internet.
IoT is an advanced automation and analytics system which deals with artificial
intelligence, sensor, networking, electronic, cloud messaging etc. to deliver complete
systems for the product or services. The system created by IoT has greater
transparency, control, and performance.
As we have a platform such as a cloud that contains all the data through which we
connect all the things around us. For example, a house, where we can connect our
home appliances such as air conditioner, light, etc. through each other and all these
things are managed at the same platform. Since we have a platform, we can connect
our car, track its fuel meter, speed level, and also track the location of the car.
If there is a common platform where all these things can connect to each other
would be great because based on my preference, I can set the room temperature.
For example, if I love the room temperature to to be set at 25 or 26-degree Celsius
when I reach back home from my office, then according to my car location, my AC
would start before 10 minutes I arrive at home. This can be done through the
Internet of Things (IoT).
Features of IOT
The most important features of IoT on which it works are connectivity, analyzing,
integrating, active engagement, and many more. Some of them are listed below:
Connectivity: Connectivity refers to establish a proper connection between all the
things of IoT to IoT platform it may be server or cloud. After connecting the IoT
devices, it needs a high speed messaging between the devices and cloud to enable
reliable, secure and bi-directional communication.
Analyzing: After connecting all the relevant things, it comes to real-time analyzing
the data collected and use them to build effective business intelligence. If we have a
good insight into data gathered from all these things, then we call our system has a
smart system.
Integrating: IoT integrating the various models to improve the user experience as
well.
Artificial Intelligence: IoT makes things smart and enhances life through the use of
data. For example, if we have a coffee machine whose beans have going to end, then
the coffee machine itself order the coffee beans of your choice from the retailer.
Sensing: The sensor devices used in IoT technologies detect and measure any
change in the environment and report on their status. IoT technology brings passive
networks to active networks. Without sensors, there could not hold an effective or
true IoT environment.
Let's take a look over the major, advantages, and disadvantages of the Internet of
Things.
Advantages of IoT
Internet of things facilitates the several advantages in day-to-day life in the business
sector. Some of its benefits are given below:
o Efficient resource utilization: If we know the functionality and the way that
how each device work we definitely increase the efficient resource utilization
as well as monitor natural resources.
o Minimize human effort: As the devices of IoT interact and communicate with
each other and do lot of task for us, then they minimize the human effort.
o Save time: As it reduces the human effort then it definitely saves out time.
Time is the primary factor which can save through IoT platform.
o Enhance Data Collection:
o Improve security: Now, if we have a system that all these things are
interconnected then we can make the system more secure and efficient.
Disadvantages of IoT
As the Internet of things facilitates a set of benefits, it also creates a significant set of
challenges. Some of the IoT challenges are given below:
IoT Ecosystem
The IoT ecosystem is not easy to define. It is also difficult to capture its proper image
due to the vastness and emerging possibility and the rapidity with which it is
expanding in the entire sector. However, the IoT ecosystem is a connection of various
kind of devices that sense and analyze the data and communicates with each other
over the networks.
In the IoT ecosystem, the user uses smart devices such as smartphones, tablet,
sensors, etc. to send the command or request to devices for information over the
networks. The device response and performs the command to send information back
to the user through networks after analyzed.
The typical IoT ecosystem is shown in below image, where the smarter devices send
and receive data from the devices themselves in the environment that are integrate
over network and Cloud Computing.
The IoT is itself an ecosystem of network devices that transfer the data. It is also well
interconnected with Big Data and Cloud Computing.
The IoT decision framework is much more important as the product or services
communicates over networks goes through five different layers of complexity of
technology.
1. Device Hardware
2. Device Software
3. Communications
4. Cloud Platform
5. Cloud Application
Decision Area
The IoT decision framework pays attention to six key decision areas in any IoT
product. These decision areas are:
Each of these decision areas is evaluated at each of the IoT Technology Stack. The
User Experience will be evaluated at Device Hardware, Device Software and so to
provide the better user experience. Then at the next step Data Decision Area, we
have to explore data considerations for all the stages of IoT Technology Stack.
Decision Area of the IoT Decision Framework
Let's see each of the Decision Area of IoT Decision Framework in detail:
1. User Experience Decision Area: This is the area where we concentrate about
who are the users, what are their requirements and how to provide a great
experience at each step of IoT stack without worrying about the technical
details.
2. Data Decision Area: In this area, we make the overall data strategy such as
the data flow over the entire IoT stack to fulfill the user's requirements.
3. Business Decision Area: Based on the previous decisions area, we make the
decision how product or services will became financial potential. At each of
the IoT Stack level are monetized about the costs of providing services.
4. Technology Decision Area: In this area, we work with the technology for
each layer to facilitate the final solution.
5. Security Decision Area: After going through the implementation of
technology it is important to decide and provide the security at each stage of
the IoT Stack.
6. Standards & Regulations Decision Area: At the last stage of IoT Decision
Area, we identify the standards and regulations of product or services that will
affect your product at each layer of the IoT Stack.
IoT Architecture
There is not such a unique or standard consensus on the Internet of Things (IoT)
architecture which is universally defined. The IoT architecture differs from their
functional area and their solutions. However, the IoT architecture technology mainly
consists of four major components:
Following are the primary stages (layers) of IoT that provides the solution for IoT
architecture.
1. Sensors/Actuators: Sensors or Actuators are the devices that are able to emit,
accept and process data over the network. These sensors or actuators may be
connected either through wired or wireless. This contains GPS,
Electrochemical, Gyroscope, RFID, etc. Most of the sensors need connectivity
through sensors gateways. The connection of sensors or actuators can be
through a Local Area Network (LAN) or Personal Area Network.
2. Gateways and Data Acquisition: As the large numbers of data are produced
by this sensors and actuators need the high-speed Gateways and Networks to
transfer the data. This network can be of type Local Area Network (LAN such
as WiFi, Ethernet, etc.), Wide Area Network (WAN such as GSM, 5G, etc.).
3. Edge IT: Edge in the IoT Architecture is the hardware and software gateways
that analyze and pre-process the data before transferring it to the cloud. If the
data read from the sensors and gateways are not changed from its previous
reading value then it does not transfer over the cloud, this saves the data
used.
4. Data center/ Cloud: The Data Center or Cloud comes under the Management
Services which process the information through analytics, management of
device and security controls. Beside this security controls and device
management the cloud transfer the data to the end users application such as
Retail, Healthcare, Emergency, Environment, and Energy, etc.
A smart object is an object that enhances the interaction with other smart objects as
well as with people also. The world of IoT is the network of interconnected
heterogeneous objects (such as smart devices, smart objects, sensors, actuators,
RFID, embedded computers, etc.) uniquely addressable and based on standard
communication protocols.
In a day to day life, people have a lot of object with internet or wireless or wired
connection. Such as:
o Smartphone
o Tablets
o TV computer
These objects can be interconnected among them and facilitate our daily life (smart
home, smart cities) no matter the situation, localization, accessibility to a sensor, size,
scenario or the risk of danger.
Smart objects are utilized widely to transform the physical environment around us to
a digital world using the Internet of things (IoT) technologies.
A smart object carries blocks of application logic that make sense for their local
situation and interact with human users. A smart object sense, log, and interpret the
occurrence within themselves and the environment, and intercommunicate with each
other and exchange information with people.
The work of smart object has focused on technical aspects (such as software
infrastructure, hardware platforms, etc.) and application scenarios. Application areas
range from supply-chain management and enterprise applications (home and
hospital) to healthcare and industrial workplace support. As for human interface
aspects of smart-object technologies are just beginning to receive attention from the
environment.
IoT Devices
Internet of Things Devices is non-standard devices that connect wirelessly to a
network with each other and able to transfer the data. IoT devices are enlarging the
internet connectivity beyond standard devices such as smartphones, laptops, tablets,
and desktops. Embedding these devices with technology enable us to communicate
and interact over the networks and they can be remotely monitored and controlled.
There are large varieties of IoT devices available based on IEEE 802.15.4 standard.
These devices range from wireless motes, attachable sensor-boards to interface-
board which are useful for researchers and developers.
IoT devices include computer devices, software, wireless sensors, and actuators.
These IoT devices are connected over the internet and enabling the data transfer
among objects or people automatically without human intervention.
Some of the common and popular IoT devices are given below:
Arduino Device:
Arduino devices are the microcontrollers and microcontroller kit for building digital
devices that can be sense and control objects in the physical and digital world.
Arduino boards are furnished with a set of digital and analog input/output pins that
may be interfaced to various other circuits. Some Arduino boards include USB
(Universal Serial Bus) used for loading programs from the personal computer.
Intel Galileo:
The Intel Galileo Gen 2 Board includes the parts such as Intel Quark SoC processor,
256MB RAM, multiple ports and supports for Arduino device.
o Sense: The devices that sense its surrounding environment in the form of
temperature, movement, and appearance of things, etc.
o Send and receive data: IoT devices are able to send and receive the data over
the network connection.
o Analyze: The devices can able to analyze the data that received from the
other device over the internet networks.
o Controlled: IoT devices may control from some endpoint also. Otherwise, the
IoT devices are themselves communicate with each other endlessly leads to
the system failure.
Major IoT Boards in Market
There are several IoT boards available in the market to build the project. Some of the
major IoT Boards are described below:
Raspberry Pi:
Raspberry Pi is a much popular device used in building IoT project. The recently
launched Raspberry Pi 3 includes built-in WiFi and Bluetooth making the most
compact and standalone computer. It provides a powerful environment to install a
variety of programming packages such as Python, Node.js, LAMP stack, Java and
much more. Using 40 GPIO pins, and four USB ports you can connect many
peripherals and accessories to the Pi.
Arduino:
Arduino boards are the microcontrollers and microcontroller kit for building digital
devices that can be sense and control objects in the physical and digital world.
Arduino boards are furnished with a set of digital and analog input/output pins that
may be the interfaced to various other circuits. Some Arduino boards include USB
(Universal Serial Bus) to load programs from the personal computer.
ESP8266:
The ESP8266 is a low-cost Wi-Fi microchip with 32-bit microcontroller capability,
standard digital peripheral interfaces. There are different types of ESP8266 boards
are available for different needs. The primary goal of this board is to deal with the
built-in Wifi through AT commands if used as device module, but you can 'program'
using Arduino board however it also read and controls input/output, digital and
analog.
Sense HAT 8x8 RGB LED matrix:
Raspberry Pi Sense HAT is an integrated sensor that can measure humidity,
temperature, acceleration, and pressure. The 8x8 LED matrix display data read from
Raspberry Pi Sense HAT sensors. The Sense HAT has an 8×8 RGB LED matrix includes
the following sensors:
1. Gyroscope
2. Accelerometer
3. Magnetometer
4. Temperature
5. Barometric pressure
6. Humidity
Pin Description
o EN: It is the enable pin, when it is connected to 3.3V then model is enabled.
o +5V: This is the supply pin for connecting +5V.
o GND: It is the ground pin.
o TX: It is the transmitter pin of the UART communication.
o RX: It is the receiver pin of UART communication.
o STATE: It indicates whether the module is connected or not. It acts as a status
indicator.
IoT - Platform
As in IoT, all the IoT devices are connected to other IoT devices and application to
transmit and receive information using protocols. There is a gap between the IoT
device and IoT application. An IoT Platform fills the gap between the devices
(sensors) and application (network). Thus we can say that an IoT platform is an
integrated service that fulfills the gap between the IoT device and application
and offers you to bring physical object online.
There are several IoT Platforms available that provides facility to deploy IoT
application actively. Some of them are listed below:
Amazon Web Services (AWS) IoT platform: Amazon Web Service IoT platform
offers a set of services that connect to several devices and maintain the security as
well. This platform collects data from connected devices and performs real-time
actions.
Microsoft Azure IoT platform: Microsoft Azure IoT platform offers strong security
mechanism, scalability and easy integration with systems. It uses standard protocols
that support bi-directional communication between connected devices and platform.
Azure IoT platform has an Azure Stream Analytics that processes a large amount of
information in real-time generated by sensors. Some common features provided by
this platform are:
o Information monitoring
o A rules engine
o Device shadowing
o Identity registry
Google Cloud Platform IoT: Google Cloud Platform is a global cloud platform that
provides a solution for IoT devices and applications. It handles a large amount of
data using Cloud IoT Core by connecting various devices. It allows to apply BigQuery
analysis or to apply Machine learning on this data. Some of the features provided by
Google Cloud IoT Platform are:
IBM Watson IoT platform: The IBM Watson IoT platform enables the developer to
deploy the application and building IoT solutions quickly. This platform provides the
following services:
Artik Cloud IoT platform: Arthik cloud IoT platform is developed by Samsung to
enable devices to connect to cloud services. It has a set of services that continuously
connect devices to the cloud and start gathering data. It stores the incoming data
from connected devices and combines this information. This platform contains a set
of connectors that connect to third-party services.
The ThingWorx IoT platform is a collection of modules that deliver the flexibility,
capability, and agility establishment required to implement IoT applications.
ThingWorx empowers businesses to develop and deploy powerful applications
rapidly and augmented reality (AR) experiences.
ThingWorx is the first platform that connects the people, systems, things, connection
operations, connected products, connected applications, etc. ThingWorx reduces the
time, cost, and risk which are required to build the IoT applications. It deploys the
application 10-time faster with model-based development.
ThingWorx allows you to deploy how you like by providing the complete application
design, runtime, and intelligent environment. The ThingWorx IoT platform also has
flexibility and scalability to adapt that application in future.
Services of the ThingWorx platform in IoT
Following are the services and benefits provided by ThingWorx in IoT:
This platform specially designed to provide the functionality for the protection as
well as the scalability to develop as the commercial enterprise expands.
It includes a platform module that comes together with the ThingModel. The
ThinkModel is a truthful digital illustration of items that enables experience, studies,
and quick apps delivery without any difficulty.
Flexibility
The ThingWorx platform has the flexibility to be deployed on-premises, inside the
cloud or a hybrid or both of these platforms.
Component of ThingWorx
ThingWorx offers several key components for application building. This component
includes Composer, Mashup builder, storage, search engine, collaboration, and
connectivity. The Composer provides a modeling environment for designing , and
testing. The Mashup builder is used for dashboard building through common
components such as buttons, lists, wikis, gauges, etc. ThingWorx uses a search
engine known as SQUEAL, for search, query, and analysis.
IoT Data Link Communication Protocol
The IoT Data Link communication protocol provides service to the Network Layer.
There are various protocols and standard technologies specified by the different
organization for data link protocols.
Bluetooth
Bluetooth is a short-range wireless communication network over a radio frequency.
Bluetooth is mostly integrated into smartphones and mobile devices. The Bluetooth
communication network works within 2.4 ISM band frequencies with data rate up to
3Mbps.
1. Bluetooth Classic
2. Bluetooth Low Energy
3. Bluetooth SmartReady
The features of Bluetooth 5.0 version is introduced as Bluetooth 5 which have been
developed entirely for the Internet of Things.
Z-Wave
Z-Wave is a wireless communication protocol with the frequency of 900MHz. The
ranges of Z-Wave lies between 30 meters to 100 meters with the data transfer rate of
100kbps so that it is suitable for small messages in IoT applications for home
automation. This communication protocol operates on mesh network architecture
with one and several secondary controllers.
Properties of Z-Wave protocol
o Standard: Z-Wave Alliance ZAD12837 / ITU-T G.9959
o Frequency: 908.42GHz
o Range: 30-100m
o Data transfer rate: 100kbps
o Zigbee Coordinator
o Zigbee End Device
o Zigbee Router
LoRaWAN
LoRaWAN refers to Long Rage Wide Area Network which is a wide area network
protocol. It is an optimized low-power consumption protocol design to support
large-scale public networks with millions of low-power devices. A single operator
operates the LoRaWAN. The LoRaWAN network is a bi-directional communication for
IoT application with low cost, mobility, and security.
RPL Protocol
RPL stands for Routing Protocol for Low-Power and Lossy Network. It is a distance-
vector protocol that supports a varity of Data Link Protocols. RPL builds
a Destination Oriented Directed Acyclic Graph (DODAG) which has only one route
from each leaf node to the root. All the traffic in this DODAG is routed through the
root. Initially, each node sends a DODAG Information Object (DIO) announcing them
self as a root. This information travels in the network, and complete DODAG is
gradually built. When a new node wants to join the network, it sends a DODAG
Information Solicitation (DIS) request and root responds back with a DAO
Acknowledgment (DAO-ACK) confirming the join.
CORPL Protocol
CORPL protocol is the extension of the RPL protocol, which is termed as cognitive
RPL. This network protocol is designed for cognitive networks and uses DODAG
topology. CORPL protocol makes two new modifications in the RPL protocol. It uses
opportunistic forwarding to forward a packet between the nodes. Each node of
CORPL protocol keeps the information of forwarding set rather than parents only
maintaining it. Each node updates its changes to its neighbor using DIO messages.
On the basis of this updated message, each node frequently updates its neighbor for
constant forwarder set.
CARP Protocol
CARP (Channel-Aware Routing Protocol) is a distributed routing protocol. It is
designed for underwater communication. It has lightweight packets so that it can be
used for Internet of Things (IoT). It performs two different functionalities: network
initialization and data forwarding. CARP protocol does not support previously
collected data. Hence, it is not beneficial for those IoT or other application where
data is changed frequently. The upgradation of CARP is done in E-CARP which
overcomes the limitation of CARP. The E-CARP allows the sink node to save
previously received sensory data.
6LoWPAN
The 6LoWPAN protocol refers to IPv6 Low Power Personal Area Network which
uses a lightweight IP-based communication to travel over low data rate networks. It
has limited processing ability to transfer information wirelessly using an internet
protocol. So, it is mainly used for home and building automation. The 6LoWPAN
protocol operates only within the 2.4 GHz frequency range with 250 kbps transfer
rate. It has a maximum length of 128-bit header packets.
1. Setup: In this phase, the publishers and subscribers register themselves to the
broker and get a secret master key.
2. Encryption: When the data is published to broker, it is encrypted by broker.
3. Publish: The broker publishes the encrypted message to the subscribers.
4. Decryption: Finally the received message is decrypted by subscribers with the
same master key.
CoAP
CoAP (Constrained Application Protocol) is a session layer protocol that provides
the RESTful (HTTP) interface between HTTP client and server. It is designed by IETF
Constrained RESTful Environment (CoRE) working group. It is designed to use devices
on the same constrained network between devices and general nodes on the
Internet. CoAP enables low-power sensors to use RESTful services while meeting their
low power constraints. This protocol is specially built for IoT systems primarily based
on HTTP protocols.
This network is used within the limited network or in a constrained environment. The
whole architecture of CoAP consists of CoAP client, CoAP server, REST CoAP proxy,
and REST internet.
The data is sent from CoAP clients (such as smartphones, RFID sensors, etc.) to the
CoAP server and the same message is routed to REST CoAP proxy. The REST CoAP
proxy interacts outside the CoAP environment and uploads the data over REST
internet.
DDS
DDS (Data Distribution Service) is a middleware (sometimes called machine-to-
machine (M2M)) communication protocol. It is implemented by the Object
Management Group (OMG) standard for the real-time system with high speed and
high-performance, scalable, dependable, and interoperable data exchange. This
communication protocol is based on a publish-subscribe pattern for sending and
receiving data, events, and commands among the nodes.