Professional Documents
Culture Documents
Adobe Scan 23-Aug-2023
Adobe Scan 23-Aug-2023
CHAPTER of Things
LEARNING OBJECTIVES
The chapter will help you acquire an in-depth understanding of
" Definition of IoT.
"History and growth of Internet and IoT.
." Application areas and focus of IoT.
" Characteristics of IoT.
. Things in IoT (What makes it IoT?).
"IoT stack.
"Enabling technologies.
"Levels of IoT.
devices embedded
IoT refers to the interconnection via the Internet of computing
receive data.
ineveryday objects, enabling them to send and
NOTE
2 Introduction to Internet of Things
everything and everywhere. Hence, loT can also be defined as the analysis of data
Today, data is subsequently after the interchange of data. One can
to generate a meaningful action, triggered
why loT is the buzzword.
refer to Fig. 1.1to get a preliminary idea about
INTERNETof
THG
Figure 1.1 Internet of (every) thing.
The scope of IoT is not just limited to getting the devices connected or networked, but rather it
is more about the exchange of meaningful information from one device to another to acquire
purposeful result.
Data is everything. However, to draw accurate results, raw data has to be interpreted accurately
which requires other technological parameters to collaborate. If someone just gets the data from
the sensors without understanding how to use or where to use, it is futile. Hence, interpretation
holds value.
It is important to note that loT is not asingle technology, but rather acombination of technolo
gies and domain knowledge. Hence, amechanical engineer has to work with an electricalengi
neer and a computer science engineer for building a complete loT product.
IoT is not owned by any one engineering branch. IoT is a reality when multiple
domains come together.
REMEMBER
1.1 Introduction and Definition of Internet of Things 3
Let us see how Internet has accelerated the pace of technological developmentin recent history.
Aquick summary 1S presented below:
1990 World Wide Web was born. 3,00,000 desktop computers were connected to the Internet by
then. The count is very insignificant compared to the numbers now.
2000 300+ million desktop computers (laptops too) connected to the Internet. The growth was
phenomenal and faster than expected.
2016 Majority of the people own smart phones: thev are connected to the Internet 24 x 7
about 2.5 billion mobile phones connected to the Internet.
2020 Refrigerators, kettles, water heaters, cameras, lights, home equipment and other elec
tronic devices will be connected to the Internet and there would be 15 billion device
connections. About 4 billion navigation systems would be embedded within the Inter
net. Connected cars have already become a reality. About 500 million wearables,
watches, shoes, etc. and 100s of millions of implants in human/animals would talk to
Internet.
2016
2000s
1990s 2020
Figure 1.2 indicates the growth of Internet in brief.Considering the advancement, soon one's life
Would be governed entirely by Internet and IoT in the near future. The following scenario is an
Idea how you would lead your life when everything in it is connected to the Internet:
1. When you wake up, the water heater would have hot water ready.
2. During your bath,the microwave would have cooked your food.
3. When you lock the door of your house, the car doors would open for you.
4. Your AC would adjust based on your body temperature/room temperature.
5. Parking slots would be informed while your car is nearing your office.
6. The pillbox would you at the time of your tablet intake.
4
Introduction to Internet of Things
7. While nearing your house, the house lights would turn on with appropriate brightness
8. Your workout room lights/ambience would be automatically set. Heart beat/km al..
would be updated.
9. Your refrigerator would order milk/egg on need.
10. The bedroom ACwould automatically switch on for you to sleep.
This is just aglimpse of what allcan change. Nothing is impossible with the Internet and JoT i
place. The onlychallenge is that we need to be up to date with the requirements and know how
to use it.
IoT enables objects (which eventually are "the things") to be sensed while controlling them
remotely, which facilitates better interaction between the physical world and computers. This
improves the efficiency and accuracy with minimal human intervention.
Figure 1.3 shows IoT design goals the designer should consider while building an application, It
should fulfill all the requirements shown in the figure.
IeT
Any Network (Non
Anywhere/Any location
homogenous)
50
~6 things online per person 50
40 Billion
20
Inflection point
10
6.307 World population
6.721 6.894 7.347 7.83
0
2003 2008 2010 2015 2020
2. Intelligence and identity: The extraction of knowledge (i.e., what is to be inferred) from
the generated data is very important. For example, sensors generate data, but that data
will only be useful if it is interpreted properly. Each IoT device has a unique identity
(e.g., an IP address). This identification is helpful in tracking the equipment and at times
for querying its status.
3. Scalability: The number of elements (devices) connected to IoT zone is increas
ing day by day. Hence, an IoT setup should be capable of handling the massive
expansion. The data generated as outcome is enormous and it should be handled
appropriately.
4. Dynamic and self-adapting (complexity): IoT devices should dynamically adapt them
selves to the changing contexts or scenarios. Consider a camera meant for surveillance. It
should be adaptable to work in different conditions and different light situations (morn
ing, afternoon, or night).
5. Architecture: IoT architecture cannot be homogeneous in nature. It should be hybrid,
supporting different manufacturer's products to function in the IoT network.
6. Safety: There is the danger of sensitive personal details ofa user getting compromised
when all his/her devices are connected to the Internet. This could cause a loss to the user.
Hence, data security is a major challenge. Besides, the equipment involved in the huge
IoT network may also be at risk. Therefore, equipment safety is also critical.
The next section discusses the "things" in Internet of Things.
1, Industrial motors.
2 Wearables (e.g., watch).
3. Vehicles.
4. Shoes.
5. Heart monitoring implants (e.g., pacemaker, ECG real-time tracking).
6. Biochip transponders (for animals in farms).
7. Automobiles with built-in sensors (automobile feature real-time monitoring).
8. Food/perishables quality measuring.
Now, let us consider the example of IoT-based home automation. In this case, the things" could
be the following (Fig. 1.7):
Introduction to Intermet of Things
the physical layer and layer 7 is the application layer. Each layer has the protocols defined
clearly with appropriate hardware/software workino from it. We have identified the following
seven layers in loT stack.
1. Layer 1(Physical or sensor layer): This layer is concerned about the physical com
ponents, which mainly includes sensors. In this layer, the sensors are the core com
ponent. lemperature sensor, pressure sensor. humidity sensor,etc. can all be referred
to as phySical layer components (Fig. 1.8), While considering industrial automation,
PLC, actuator, etc. are regarded as physical layer components.This layer is responsible
for data collection (i.e., sensing happens here). Choosing an appropriate sensor
is the challenge in this layer since there are many sensors available in the market that
capable of performing the same tasks but at different costs. Hence, the selection of
sensors is important.
Sensors
(Temperature, Hurnidity, Accelerator, Presssure etc.)
Industrial Automation
(PLC/Actuator/Pneumatic Control)
Figure 1.8 Layer 1: Sensor layer (physical layer);data collection happens here.
2. Layer 2 (Processing and control action layer): This layer is very significant; it com
prises of the core components for IoT. The micrOcontrollers or processors are found
in this layer (Fig. 1.9); the data is received by the microcontrollers from the sensors.
A variety of development kits are available in the market; one can easily spot Arduino,
NodeMCU, PIC, ARM development boards. Operating systems play a major role too
and Android, IOS, Linux can very well execute the task. The data collected from the
sensors is processed in this layer. To determine if the data is meaningful a microcontroller
should be present.
10 Introduction to Internet of Things
Microcontrollers:
PIC/ARM/INTEL boards
DEV Kits:
Arduino/Rasberry
OS:
RTOS, Linux, Android, loS
Classification:
Short Range (Low Bandwidth, High Bandwidth)
Long Range (Low Bandwidth, High Bandwidth)
Examples:
NFC, RFID, Wi-Fi, Bluetooth, BLE, Li-Fi, LTE
SWASMINARAYA
BLE
N))
NFC
(LIBRARY)
Figure 1.11 Layer 4: RF layer.
5. Layer 5 (Session/Message layer): Session management is as important in IoT as it is in
general networking, which is guided by OSI layer. There are protocols which oversee
how messages (data) are broadcasted to the cloud. Layer 5 (session layer) has the mes
saging protocols as MQTT, COAP, etc. and also other protocols such as SSH and FTP
(Fig. 1.12). The protocols for messaging with software coding have been demonstrated in
Chapter 3.
Session/Message layer
(Messaging is the content)
Some Protocols:
MQTT,COAP, HTTP,FTP, SFTP,SSH
6. Layer 6 (User experience layer): This layer is fully concerned with the end user expe-
rience (Fig. 1.13). When a product is designed, it should showcase rich UI features
designs which provide a pleasing experience while using the service/system or nr
uct. Object-oriented programming languages, scripting languages, analytics tools, etc. all
should be included in this layer.
Technologies:
Object Oriented, Procedure Oriented
DBMS, SQL
Analytics Tools/Software from vendors
Analog-to-Digital IFTTT
Converter USON
NodeMCU Adafruit cloud Google sheets JSON
Connected to Wi-Fi
Connected to Internet
Figure 1.15 Architecture of a smart vegetable quality tracking system using loT.
using IoT. This scenario is presented as a case study in Chapter 2In this application, you will be
able to identify all the above-mentioned layers. To set the tempo, the architecture diagram of
the smart vegetable quality tracking application for transport is presented in Fig. 1.15. One can
understand that it starts with the sensor layer, where temperature, humidity, etc. are measured.
Then the data goes tothe microcontroller; from there it goes to the cloud (Adafruit) and here
the messaging protocols take effect. Adafruit is the cloud storage platform used in this appli
cation. The procedure for setting up the same is covered in detail in Chapter 5. RF protocols
such as Wi-Fi are used for transport and communication. User experience is taken care with the
Android application designed. The complete architecture, functioning and results are presented
in Chapter 7.
The consolidated view of all the seven layers in the IoT stack is presented in Fig. 1.16.
Application layer
User experience
Session layer
RF layer
Hardware
interface layer
Processing and
control layer
Sensor layer
BNE280
Pressure, Temp
Humidity- BME280
All the case studies which are cited in Chapter 7 use Adafruit as it was very
much affordable and
easier to learn and handle. Cloud services are categorized as follows:
machines
1. laaS (Infrastructure-as-a-Service): In this cloud service, one can choose virtual
provides vir
over physical machines. In other words, it is a form of cloud computing that
machines, select
tualized computing resources over the Internet. The users manage the
the OS and underlying applications, and pay per their use.
2 PaaS (Platform-as-a-Service): This is a cloud computing model in which the cloud ser
software tools needed for
vice provider (a third-party provider) delivers hardware andprovider hosts the hardware
application development to users over the Internet. A PaaS and maintain the
and software on its own infrastructure. Users have to build, manage
applications as per their requirement.
software application is
3. SaaS (Software-as-a-Service): In this model, a completea service. This service can
provided to the user. It can also be called application as
be availed by paying a monthly, yearly, etc., subscription.
services, Azure and
Some well-known service providers in the market are Amazon web
Adafruit.
16 Introduction to Internet of Things
Most of the computing boards available in the market are driven by microcontrollers or proces
sors. Some of the boards are as follows:
1. Raspberry Pi.
2. Arduino (many variants).
3. NodeMCU.
4, Intel Edison.
5. Intel UP Squared* Grove* IoT Development Kit.
All these boards are small, yet smart. Also, the cost involved is very minimal and one can get
these boards for less than a hundred dollars. Figure 1.18 shows some of these boards.
NodeMOCU
Arduino Uno Intel UP Squared loT Dev Kit
(one of the variants)
Raspberry Pi3
4. Connectivity: This is a serious challenge that the loT world must acknowledge. Since
the Internet is itself agiant collection of networks and devices and IoT is a part of it,
requirement of wired and wireless connectivity is anecessity. The usage of frequency/
spectrum is also to be noted (2.4 GHz band is the optimal band everywhere). There are
spectrum regulations to be followed based on the country for which the application is
being developed. Hence, understanding the connectivity requirements is important.
5. Power requirements: All the loT devices require power and most of them are battery
operated. Even though we now have long-lasting batteries that are economical, demand
for power is on the rise. Hence, usage of green power sources such as solar and wind
should be motivated. If the power requirements are met appropriately, IoT can be even
more powerful.
6. Complexity involved: IoT is not easy. It needs a lot of different domains to integrate
into a cohesive system. There is very limited expertise available in the market, but the
growth is very rapid. The toolkits, software and hardware are not abundant and real skill
is required to build an application. Over the next few years, IoT would get more and
more technology experts to work.
7. Storage: Cloud is becoming mandatory for the data to be stored and analysed. The chal
lenge with respect to this aspect is connected to the following points:
a. Which cloud do we use (private, public, or hybrid)?
b. How do we identify the service provider?
c. How much does it cost?
d. Do we really need cloud?
More on cloud computing challenges and the selection of cloud service provider is discussed in
Chapter 5.
The application has one sensor a device to sense. lt could be a temperature sensor, pressure
sensor, etc. The data sensed is stored locally and the data analysis is done locally. Monitoring/
control is done through an application (.apk or webapp). This is used for simple applications
involving limited or no complexity. Data generated in this level application is not huge (i.e., not a
big data). Al the control happens through the Internet. ASimple example scenario is presented
in Fig. 1.19, where the temperature sensor senses the room temperature and the data is stored
and analysedlocally. Basedon the analysis, the control action can be triggered through mobile
application or it can help in monitoring the status.
20 Introduction to Internet of Things
Temperature
Air conditioner sensor Data collection and
analysis
Control and monitoring
action (On/Off
Control)
Figure 1.19 Level 1-loT application.
1.9.2 Level 2
The second level is slightly more complex than the previous level. Here, the data isS
minous and hence, cloud storage is preferred. The frequency of sensing done by themore volu-
sensor is
faster. This means that the sensing happens faster and the number of times
sensing is done would
be much more than Level 1. The analysis is carried out locally, while cloud is meant for
storaea
only. Based on the data analysis, the control action can be triggered through the
or mobile application. Some examples are agriculture web application
based on odour, etc. Figure 1.20 shows the Level 2 IoTapplications,
application
room freshening solutions
of an air conditioner. The
sensor reads the room temperature at a better pace and rate than
to the cloud for storage. Analysis is done locally and the Level1; the data then goes on
application.
action is triggered through the mobile
Air conditioner
Temperature
sensor
Big data (Bigger than Cloud Control and monitoring
Level 1) action (On/Off
Data analysis done control)
locally
Based on the data analysis, thecloud.The difference is that the analysis is carried out on the
or mobile application. Some control action can be triggered through the web application
examples are agriculture applications, room freshening solutions
based on odour, etc., where analysis of data occurs in the cloud.
Level 3 IoT application. Figure 1.21 shows an example
1.9 loT Levels 21
Temperature
sensor
Moisture sensor
Data collection and Control and monitoring
analysis action (0n/Off
control)
Pressure, temp,
humidity - BME280
Temperature
sensor Data
Data
Pressure, temp,
humidity - BME280
IEEE has identified about 140 existing standards and projects which can well be
connected to loT and which stay very relevant. One can get complete informatian
FACT
about these standards from: http:/standards.ieee.org/innovate/iot/
Sense
Transport
Store
Analyse
Control
Share
As the name suggests, wireless sensor networks (WSNs) is a network. The network is built with
multiple autonomous sensors; the sensors could be pressure, moisture, temperature, humidity,
sound, and so on. All the sensed data are passed to acentrally located server. The data passing
24
Introduction to Internet of Things
happens in acoOrdinated pattern. WSN is basically composed of nodes (rom a
thousand). Each node has one or more sensors. In short, we can say that WSN ic allfew to a
dinated data collection. about coorfew-
On the other hand, IoT is much more than just data collection and the
intelligent. systems are more
Summary
1. IoT refers to the interconnection of computing devices embedded in
the Internet, enabling them to send and receive data. everyday objects via
2. IoT is not owned by any one engineering branch. It is a reality when
forces and combine efforts. multiple domains jon
3. IoT is all about providing service to any device, anywhere, anybody, and any network
4. IoT has certain characteristics which are important:
a. Connectivity.
b. Intelligence and identity.
C.
Scalability.
d. Dynamic and self-adapting (complexity).
e. Architecture.
Safety.
5. "Things" refer to variety of devices. At times, even humans in the loop becomes a thing. For
anything to qualify as athingit requires identity. The thing" can monitor, measure, etc; for
example, a temperature sensor could be a thing"
6. One should understand that
7. IoT stack has seven layers, starting with sensor layer and ending with application layer just
as OSI.
8. Security/personnel safety, privacy, data extraction with consistency from complex envron
ments, connectivity, power requirements, complexity involved and storage are the maj
challenges we face while building an IoT application.
and architec-
9. IoT application can be classified as Level 1, 2, 3, 4 or 5 based on the complexity
ture involved.
10. IoT is all about sense, transport, store, analyse, control and sharing.
Review Questions
1. Define Internet of Things.
2. What are the things" in IoT?
3. Discuss the characteristics of IoT.
4. What are the challenges in building an application with loT?
Further Reading 25
5. With neat diagrammatic representation,explain IoT stack with appropriate examples for
each layer.
6. How does the classification of loT as Level 1to 5 happen? Explain.
7. Enumerate the role of cloud in loT.
8. Explain the importance of communication protocols when it comes to IoT.
Further Reading
1. Al-Fuqaha, A., Guizani, M., Mohammadi, M., Aledhari, M. and Ayyash, M. 2015. Internet of
things: A survey on enabling technologies, protocols, and applications. IEEE Communica
tions Surveys & Tutorials, 17(4), 2347-2376.
2. Balakrishna, C. 2012. Enabling technologies for smart city services and applications. In Next
Generation Mobile Applications, Services and Technologies (NGMAST), 2012 6th Interna
tional Conference, 223-227, IEEE.
3. Biswas, A. R. and Giaffreda, R. 2014. IoT and cloud convergence: Opportunities
and challenges. In Proceedings of he 2014 IEEE World Forum on Internet of Things
(WF-loT) (WE-I0T), 375-376.
4. Gazis,V., Goertz, M., Huber, M., Leonardi, A., Mathioudakis, K., Wiesmaier, A. and Zeiger, F.
2015. Short paper: IoT: Challenges, projects, architectures. In Intelligence in Next Generation Net
works (1CIlN), 2015 18th International Conference 145-147 EEE.
5. Gubbi, J, Buyya, R., Marusic, S. and Palaniswami, M. 2013. Internet of Things (loT):
Avision, architectural elements, and future directions. Future Generation Computer Systems,
29(7), 1645-1660.
6. Konstantinidis, E.I, Bamparopoulos, G., Billis, A. and Bamidis, PD. 2015. Internet of things
for an age-friendly healthcare. In MIE, 587-591.
7. Lea, R. and Blackstock, M. 2014. City hub: A cloud-based IoT platform for smart cities. In
Cloud Computing Technology and Science (CloudCom), 2014 IEEE óth International Con
ference, 799-804, IEEE.
8. Lee, I. and Lee, K. 2015. The Internet of Things (IoT): Applications, investments, and chal
lenges for enterprises, Business Horizons, 58(4), 431-440.
9. Liu,Y. and Zhou,G. 2012. Key technologies and applications of internet of things. In Intelli
gent Computation Technology and Automation (1CICTA), 2012 Fifth International Confer
ence, 197-200, IEEE.
10. Van Kranenburg, R. and Bassi, A. 2012. IoT challenges. Communicationsin Mobile
Computing, 1(1), 9.
11. Zhou, J,Cao, Z., Dong, X. and Vasilakos, A.V. 2017 Security and privacy for cloud-based IoT:
Challenges. IEEE Communications Magazine, 55(1), 26-33.