Nothing Special   »   [go: up one dir, main page]

Unit 3 Notes

Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

18CS61 – Internet of Things

Dr. Ambedkar Institute of Technology

Department of CSE

UNIT 3: IoT PLATFORM DESIGN METHODOLOGY:


Introduction, IoT Design Methodology, Case Study: Weather Monitoring.
TB1: Chapter – 5
SMART OBJECTS: THE THINGS IN IoT
Sensors, Actuators and Smart objects, Sensor Networks, Wireless Sensor
Networks, Communication Protocols for Wireless Sensor Networks
TB2: Chapter – 3

Introduction:

Designing IoT systems can be a complex and challenging task as these systems involve
interactions between various components such as IoT devices and network resources,
web Services, analytics component, application and database server. Due to wide range
of choices available for each of these components, IoT system designers may find it
difficult to evaluate the available alternatives. IoT system designers often tend to design
IoT systems keeping specific products/ services in mind. Therefore, these designs are tied
to specific product/ service choices made. This leads to product, service, or vendor lock-
in, which while satisfactory to the dominant vendor, is unacceptable to the customer. For
such systems, updating the system design to add new features or replacing a particular
product/ service toys for a component becomes very complex, and in many cases may
require a complete redesign of the system.

Here we propose a generic design methodology for IoT system design which is
independent of specific product, service or programming language.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

IOT Design Methodology


Below Figure shows the steps involved in the IoT system design methodology. To explain
these steps we use the example of smart IoT based Home-Automation system.

Figure: Steps involved in IoT system design methodology

STEP 1: Purpose and Requirements specification

The first step in IoT system design methodology is to define the purpose and
requirements of the system. In this step, the system purpose, behavior and requirements
(such as data collection requirements, data analysis requirements, system management
requirements, data privacy and security requirements, user interface requirements,) are
captured.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Applying this to our example of a smart home automation system, the purpose and
requirements for the system may be described as follows:
• Purpose: A home automation system that allows controlling of the lights in a home
remotely using a web application.
• Behaviour: The home automation system should have auto and manual modes. In auto
mode, the system measures the light level in the room and switches on the light when it
gets dark. In manual mode, the system provides the option of manually and remotely
switching on/off the light.
• System Management Requirement: The system should provide remote monitoring
and control functions.
• Data Analysis Requirement: The system should perform local analysis of the data.
• Application Deployment Requirement: The application should be deployed locally
on the device, but should be accessible remotely.
• Security Requirement: The system should have basic user authentication capability.

STEP 2: Process Specification

The second step in the IoT design methodology is to define the process specification. In
this step, the use cases of the IoT system are formally described based on and derived
from the purpose and requirement specifications.

Below figure shows the process diagram for the home automation system. The process
diagram shows the two modes of the system - auto and manual. In a process diagram, the
circle denotes the start of a process, diamond denotes decision box and rectangle denotes
a state or attribute. When the auto mode is chosen, the system monitors the light level. If
the light level is low, the system changes the state of the light to "on". Whereas, if the light
level is high, the system changes the state of the light to "off". When the manual mode is
chosen, the system checks the light state set by the user. If the light state set by the user is
"on", the system changes the state of light to "on". Whereas if the light state set by the user
is "off", the system changes the state of light to "off".

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Process Specification for Home Automation IoT system

STEP 3: Domain Model Specification

The third step in the IoT design methodology is to define the Domain Model. The domain
model describes the main concepts, entities and objects in the domain of IoT system to be
designed. Domain model defines the attributes of the objects and relationships between
Objects. Domain model provides an abstract representation of the concepts, objects and
entities in the IoT domain, independent of any specific technology or platform. With the
domain model, the IoT system designers can get an understanding of the IoT domain for
which the system is to be designed. Below figure shows the domain model for the home
automation system example. The entities, objects and concepts defined in the domain
model include:

Physical Entity: Physical entity is a discrete and identifiable entity in the physical
environment (e.g. a room, a light, a car, an appliance etc.). The IoT system provide
information about physical entity (e.g. switching on a light). In the Home automation
example, there are two entities involved one is the room in the home (of which the lighting
conditions are to be monitored) and the other is the light appliance to be controlled.

Virtual Entity: VE is a representation of the physical entity in the digital world. For each
physical entity there is a virtual entity. In the domain model in the home automation
example, there is one virtual entity for the room to be monitored, another for the appliance
to be controlled.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Domain Model of the Home Automation system

Device: Device provides a medium for interactions between physical entities and virtual
entities. Devices are either attached or near physical entities or placed near physical
entities. Devices are used to gather information about physical entities (e.g., from
sensors), perform actuation upon physical entities (e.g., using tags). In the home
automation example, the device is a single-board Minicomputer which has light sensor
and actuator (relay switch) attached to it.
Resource: Resources are software components which can be either 'on-device ' or '
network- resources'. On- device resources are hosted on the device and include software
components that either provide information on or enable actuation upon the physical
entity to which device is attached. Network resources include the software components
that are available in network (such as a database). In the home automation example, the
on-device resource is the operating system that runs on the single-board minicomputer.
Services: Services provide an interface for interacting with the physical entity. Services
access the sources hosted on the device or the network resources to obtain information
about the physics entity or perform actuation upon the physical entity.
In the home automation example, there are 3 services:

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

1. A service that sets mode to auto or manual, or retrieves the current mode.
2. A service that sets the light appliance state to on/ off, or retrieves the current light
state.
3. A controller service that runs as a native service on the device. When in auto mode,
the controller service monitors the light level switches the light on/ off, and updates
the status in the state database. When in manual mode, the controller service
retrieves the current state from the database and switches the light on\off.

STEP 4: Information Model Specification


The fourth step in the IoT design methodology is to define the information model. The
information model defines the structure of all the information in the IoT system, for
example, attributes of virtual entities, relations, etc. Information model does not describe
the specifics of how the information is represented or stored. To define the information
model, we first list the virtual entities defined in the Domain model. Information model
adds more details to the virtual entities by defining their attributes and relations. In the
home automation, example, there are two virtual entities - a virtual entity for the light
appliance (with attribute- light state) and a virtual entity for the room (with attribute -
light level). Below figure shows the information model of the home automation system
example.

Figure : Information model of the home automation system

STEP 5: Service Specification

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

The fifth step in the IoT design methodology is to define the service specifications. Service
specifications define the services in the IoT system like service types, service inputs/
output, service endpoints, service schedules, service preconditions, and service effects.

Figure: Deriving services from process specification and information model for home
automation IoT system
The above figure shows an example of deriving the services from the process specification
and information model for the home automation IoT system. From the process
specification and information model, we identify the states and attributes. For each state
and attribute, we define a service. These services either change the state or attributes. for
each state and attribute, we define a service. These services either change the state or
attribute values or retrieve the current values. For example, the mode service sets the
mode to auto or manual or retrieves the current mode. The state service sets the light
appliance state on/off or retrieves the current light state. The controller service monitors
the light level in auto mode and switches the light on/off and updates the status in the

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

status database. In manual mode, the controller service retrieves the current state from
the database and switches the light on/off.
Below figure shows the specification of the controller, mode, and state services of the home
automation system. The mode service is a RESTful web service that sets mode to auto or
manual (PUT request) or retrieves the current light state (GET request). The state is
updated to/ retrieved from the status database. The controller service runs as a native
service on the device. When in auto mode, the controller service monitors the light level
and switches the light on/off, and updates the status in the status database. when in
manual mode, the controller service, retrieves the current state from the database and
switches the light on/off.

Figure: Controller service of the home automation IoT system, Mode service and State
service

STEP 6: IoT Level Specification

The sixth step in the IoT design methodology is to define the IoT level for the system. The
below figure shows the deployment level of the home automation IoT system, which is
level-1.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: The deployment level of the home automation IoT system

Here the system consists of a single node that allows controlling the lights and appliances
in a home remotely. The device used in the system interfaces with the lights and
appliances using electronic relay switches. The status information of each light or
appliance is maintained in a local database. REST services deployed locally allow
retrieving and updating the state of 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 application 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.

STEP 7: Functional View Specification

The seventh step in the IoT design methodology is to define the functional view. The
functional view (FV) defines the functions of the IoT system grouped onto various
functional groups (FG's). Each functional group either provides functionalities for

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

interacting with instances of concepts defined in the domain model or provides


information related to these concepts.
The functional groups (FG) included in a functional view include:
Device: The device FG contains devices for monitoring and control. In the home
automation example, the device FG includes a single board mini-computer, a light sensor
and a relay switch (actuator).
Communication: The communication FG handles the communication for the IoT
system. The communication FG includes the communication protocols that form the
backbone of IoT systems and enable network connectivity. The communication FG also
includes the communication API’s (such as REST and Web Socket) that are used by the
services and applications to exchange data over the network. In the home automation
example the communication protocols include - 802.11 (link layer), IPv4/IPv6 (network
layer), TCP (Transport Layer), and HTTP (Application Layer). The communication API
used in the home automation example is a REST-based API.
Services: The service FG includes various services involved in the IoT system such as
services for device monitoring, device control services, Data publishing services and
services for device discovery. In the home automation example, there are two REST
services (mode and state service) and one native service (Controller service).
Management: the management FG includes all functionalities that are needed to
configure and manage the IoT system.
Security: the security FG includes security mechanisms for the IoT system such as
authentication, authorization, data security, etc.
Application: The application FG includes application that provide an interface to the
users to control and monitor various aspects of the IoT system. Applications also allow
users to view the system status and the processed data.
The below figure shows the mapping deployment level to FG’s for the Home Automation
IoT system.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Mapping deployment level to FG’s for Home Automation IoT system.
IoT device maps to the device FG (sensors, actuators, computing devices) and the
management FG (device management). Resources map to the device FG (on-device
resource) and communication FG (communication APIs and protocols). Controller service
maps to the services FG (native service). Web Services map to services FG. The database
maps to the management FG (DB Management) and security FG (DB security).
Application maps to the application FG (web application and DB servers), Management
FG (app management), and security FG (app security).

STEP 8: Operational View Specification


The eighth step in the IoT system design methodology is to define the operational view
specifications. In this steps, various options pertaining to the IoT system deployment and
operation are defined, such as, service hosting options, storage options, device options,
application hosting options, etc.
The below figure shows an example of mapping functional groups to operation view
specifications for home automation IoT system.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Mapping FG to operational view for home automation IoT system

Operational view specifications for the home automation examples are as follows:
 Devices: Computing device (raspberry Pi), light dependent resistor (sensor).
Relay switch (actuator).
 Communication API’s : REST API’s
 Communication protocols: Link layer - 802.11, Network Layer - IPv4/IPv6,
Transport-TCP, Application - HTTP.
 Services:
1. Controller service- Hosted on device, implemented in python and runs as a
native service.
2. Mode service - REST-ful web service, hosted on device implemented with
Django-REST Framework.
 Application :
Web application- Django web application,
Application server- Django app server,
Database server- MySQL.
 Security:
Authentication: Web app, Database
Authorization: Web app database
 Management:
Application management - Django app management
Database management - MySQL DB Management
Device management - Raspberry Pi device Management

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

STEP 9: Device and Component Integration

The ninth step in the IoT design methodology is the integration of the devices and
components.

Figure shows a schematic diagram of the home automation IoT system. The devices and
components used in this example are raspberry Pi minicomputer, LDR sensor and relay switch
actuator.

Figure: Schematic diagram of the home automation IoT system showing the device,
sensor and Actuator integrated.

STEP 10: Application Development

The final step in the IoT design methodology is to develop the IoT application. Figure
shows a screenshot of the home automation web application. The application has controls
for the mode (auto on or auto off) and the light (on or off). In the auto mode, the IoT
system controls the light appliance automatically based on the lighting conditions in the
room. When auto mode is enabled the light control in the application is disabled and it

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

reflects the current state of the light. When the auto mode is disabled, the light control is
enabled and it is used for manually controlling the light.

Figure: Home Automation web application screenshot

CASE STUDY on IOT System for Weather Monitoring

The purpose of the weather monitoring system is to collect data on environment


conditions such as temperature, pressure, humidity and light in an area using multiple
end nodes. The end nodes send the data to the cloud where the data is aggregated and
analysed. Below Figure shows the process specification for the weather monitoring
system. The process specification shows that the sensors are read after fixed interval and
the sensor measurements are stored.

Figure: Process Specification for Weather Monitoring System

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Below figure shows the domain model for the weather monitoring system. In this domain
model the physical entity is the environment which is being monitored. There is a virtual
entity for the environment. Devices include temperature sensor, pressure sensor,
humidity sensor, light sensor and single-board minicomputer.

Resources are software components which can be either on-device or network-resources.


Services include the controller service that monitors the temperature, pressure, humidity
and light and sends the reading to the cloud.

Figure: Domain Model for the WMS

The below figure shows the information model for the weather monitoring system. In this
example, there is one virtual entity for the environment being sensed. The virtual entity
has attributes - temperature, pressure, humidity and light.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Information Model for WM IoT system

The below figure shows an example of deriving the services from the process
specification and information model for the weather monitoring system.
PROCESS SPECIFICATION

Figure: Deriving services from process specification and information model for WM IoT system

The below figure shows the specification of the controller service for the weather
monitoring system. The controller service runs as a native service on the device and

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

monitors temperature, pressure, humidity and light on every 15 seconds. The controller
service calls the REST service to store these measurements in the cloud.

Figure: Controller Service of the WM IoT system

The below figure shows the deployment design for the system consists of multiple nodes
placed in different locations for monitoring temperature, humidity and pressure in an
area. The end nodes are equipped with various sensors (such as temperature, pressure,
humidity and light). The end nodes send the data to the cloud and the data is stored in a
cloud database. The analysis of data is done in the cloud to aggregate the data and make
predictions. A cloud-based application is used for visualizing the data.

Figure: Deployment Design of the WM IoT system


The centralized controller can send control commands to the end nodes, for example, to
configure the monitoring interval on the end nodes.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

The below figure shows an example of mapping deployment level to functional groups
for the weather monitoring system.

The below figure shows a schematic diagram of the weather monitoring system. The
devices and components used in this example are raspberry Pi minicomputer,
temperature sensor, humidity sensor, pressure sensor and LDR sensor.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Figure: Mapping functional Groups to operational view specifications for the WMS.

Smart objects: The “Things” in IoT

Smart objects are any physical objects that contain embedded technology to sense and/or
interact with their environment in a meaningful way by being interconnected and
enabling communication among themselves or an external agent.

Sensors: A sensor does exactly as its name indicates: It senses. A sensor measures some
physical quantity and converts that measurement reading into a digital representation.
That digital representation is typically passed to another device for transformation into
useful data that can be consumed by intelligent devices or humans.

Sensors are not limited to human-like sensory data. They can measure anything worth
measuring. In fact, they are able to provide an extremely wide spectrum of rich and
diverse measurement data with far greater precision than human senses; sensors provide
Superhuman sensory capabilities. Sensors can be readily embedded in any physical
objects that are easily connected to the Internet by wired or wireless networks.
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 Analyse: The devices can able to analyse 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.

There are number of ways to group and cluster sensors into different categories

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

 Active or passive: Sensors can be categorized based on whether they produce an


energy output and typically require an external power supply (active) or whether
they simply receive energy and typically require no external power supply (passive)
 Invasive or non-invasive: Sensors can be categorized based on whether a sensor 1s
part of the environment it is measuring (invasive) or external to it (non-invasive)

 Contact or no-contact: Sensors can be categorized based on whether they require


physical contact with what they are measuring (contact) or not (no-contact).
 Absolute or relative: Sensors can be categorized based on whether they measure an
absolute scale (absolute) or based on a difference with a fixed or variable reference
value (relative).
 Area of application: Sensors can be categorized based on the specific industry or
vertical where they are being used.
 How sensors measure: Sensors can be categorized based on the physical mechanism
used to measure sensory input (for example, thermoelectric, electrochemical,
piezoresistive, optic, electric, fluid mechanic, photoelastic).
 What sensors measure: Sensors can be categorized based on their applications or
what physical variables they measure.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Sensors come in all shapes and sizes. A fascinating use case to highlight the power of
sensors and loT is in the area of precision agriculture (sometimes referred to as smart
farming). Which uses a variety of technical advances to improve the efficiency,
sustainability, and profitability of traditional farming practices.

This includes the use of GPS and satellite aerial imagery for determining field viability:
robots for high-precision planting, harvesting, irrigation, and so on: and real-time
analytics and artificial intelligence to predict optimal crop yield, weather impacts, and
soil quality.

Among the most significant impacts of precision agriculture are those dealing with
of a variety of soil characteristics. These include real-time measurement of soil quality,
pH levels, salinity, toxicity levels, moisture levels for measure irrigation planning,
nutrient levels tor fertilization planning, and so on. All this detailed sensor data can be
analysed to provide highly valuable and actionable insight to boost productivity and crop
yield. Below figure shows biodegradable, passive micro sensors to measure soil and crop
and conditions. These sensors, developed at North Dakota State University (NDS0), can
be planted directly in the soil and left in the ground to biodegrade without any harm to
soil quality.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Below figure shows the explosive year-over-year increase over the past several years and
some bold predictions for sensor numbers in the upcoming years. There is a strong belief
in the sensor industry that this number will eclipse a trillion in the next few years. In fact,
many large players in the sensor industry have come together to form industry consortia,
such as the TSensors Summits (www.tsensorssummit.org), to create a strategy and
roadmap for a trillion-sensor economy. The trillion-sensor economy will be of such an
unprecedented and unimaginable scale that it will change the world forever. This is the power of
loT.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Actuators:
Actuators are natural complements to sensors. Below figure demonstrates the symmetry
and complementary nature of these two types of devices. Sensors are designed to sense
and measure practically any measurable variable in the physical world. They convert
their measurements (typically analog) into electric signals or digital representations that
can be consumed by an intelligent agent (a device or a human). Actuators, on the others
hand, receive some type of control signal (commonly an electric signal or digital
command) that triggers a physical effect, usually some type of motion, force, and so on.

Humans use their five senses to sense and measure their environment. The sensory
organs convert this sensory information into electrical impulses that the nervous system
sends to the brain for processing. Likewise, IoT sensors are devices that sense and
measure the physical World and (typically) signal their measurements as electric signals
sent to some type of microprocessor or microcontroller for additional processing. The
human brain signals motor function and movement, and the nervous system carries that
information to the appropriate part of the muscular system. Correspondingly, a processor
can send an electric signal to an actuator that translates the signal into some type of
movement (linear, rotational, and so on) or useful work that changes or has a measurable
impact on the physical world. This interaction between sensors, actuators, and
processors and the similar functionality in biological systems is the basis for various
technical fields, including robotics and biometrics.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Much like sensors, actuators also vary greatly in function, size, design, and so on. Some
common ways that they can be classified in
 Type of motion: Actuators can be classified based on the type of motion they
produce (for example, linear, rotary, one/two/three-axes).
 Power: Actuators can be classified based on their power, output (for example, high
power, low power, micro power)
 Binary or continuous: Actuators can be classified based on the number of stable-
state outputs.
 Area of application: Actuators can be classified based on the specific industry or
vertical where they are used.
 Type of energy: Actuators can be classified based on their energy type.

Micro-Electro-Mechanical Systems (MEMS)


 One of the most interesting advances in sensor and actuator technologies is in how
they are packaged and deployed.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

 Micro-electro-mechanical systems (MEMS), sometimes simply referred to as micro-


machines, can integrate and combine electric and mechanical elements, such as
sensors and actuators, on a very small (millimetre or less) scale.
 One of the keys to this technology is a micro fabrication technique that is similar to
what is used for microelectronic integrated circuits.
 This approach allows mass production at very low costs.
 The combination of tiny size, low cost, and the ability to mass produce makes MEMS
an attractive option for a huge number of IoT applications.
 MEMS devices have already been widely used in a variety of different applications and
can be found in very familiar everyday devices.
 For example, inkjet printers use micro pump MEMS.
 Smart phones also use MEMS technologies for things like accelerometers and
gyroscopes.
 Automobiles were among the first to commercially introduce MEMS into the mass
market, with airbag accelerometers.

 Torsional ratcheting actuator (TRA) MEMS that was developed by Sandia National
Laboratory as a low voltage alternative to a micro-engine.
 This MEMS is only a few hundred micrometres across; a scanning electron microscope
is needed to show the level of detail visible in the above figure.
 Micro-scale sensors and actuators are immensely embeddable in everyday objects,
which is a defining characteristic of IoT.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

MEMS can be so small, they’re not visible to the human eye. A MEMS, or micro-
electromechanical system, can range in size from microscopic to the size of a fingernail.
It’s comprised of both electrical and mechanical components, and though small, plays a
huge role in almost everything. MEMS are what deploy airbags, ensure insulin pump
accuracy, control thermostats, adjust screen orientation on smartphones, control ink flow
in printers, and so much more. As MEMS become smaller, require less power, and less
expensive, they’re expected to play an important part in the wireless internet of things
and home automation.

Smart Objects

 Smart objects are the building blocks of IoT.


 They transform everyday objects into a network of intelligent objects that are able to
learn from and interact with their environment in a meaningful way.
 If soil sensor is connected as part of an intelligent network that is able to coordinate
intelligently with actuators to trigger irrigation systems as needed based on those
sensor readings, we have something far more powerful.
 The coordinated sensor/actuator set is intelligently interconnected with other
sensor/actuator sets to further coordinate fertilization, pest control, and so on—and
even communicate with an intelligent backend to calculate crop yield potential.
 The term smart object is often used interchangeably with terms such as smart sensor,
smart device, IoT device, intelligent device, thing, smart thing, intelligent node,
intelligent thing, ubiquitous thing, and intelligent product.
 Definition: A smart object is a device that has, at a minimum, the following four
defining characteristics(As shown in the below figure)

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

 Processing unit: A smart object has some type of processing unit for acquiring
data, processing and analysing sensing information received by the sensor(s),
coordinating control signals to any actuators, and controlling a variety of
functions on the smart object, including the communication and power
systems. The most common is a microcontroller because of its small form
factor, flexibility, programming simplicity, ubiquity, low power consumption,
and low cost.
 Sensor(s) and/or actuator(s): A smart object is capable of interacting with
the physical world through sensors and actuators. Ø A sensor learns and
measures its environment, whereas an actuator is able to produce some
change in the physical world. A smart object does not need to contain both
sensors and actuators. In fact, a smart object can contain one or multiple
sensors and/or actuators, depending upon the application.

 Communication device: The communication unit is responsible for


connecting a smart object with other smart objects and the outside world (via
the network). Communication devices for smart objects can be either wired or
wireless. In IoT networks smart objects are wirelessly interconnected for a
number of reasons, including cost, limited infrastructure availability, and ease

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

of deployment. There are myriad different communication protocols for smart


objects.
 Power source: In Smart objects have components that need to be powered.
Most significant power consumption comes from the communication unit of a
smart object. The power requirements vary greatly from application to
application. Smart objects are limited in power, are deployed for a very long
time, and are not easily accessible. This combination, when the smart object
relies on battery power, implies that power efficiency, judicious power
management, sleep modes, ultra-low power consumption hardware, and so on
are critical design elements.

Trends in Smart Objects

Broad generalizations and trends impacting IoT:

 Size is decreasing: As discussed earlier, in reference to MEMS, there is a clear trend


of ever-decreasing size. Some smart objects are so small they are not even visible to
the naked eye. This reduced size makes smart objects easier to embed in everyday
objects.
 Power consumption is decreasing: The different hardware components of a smart
object continually consume less power. This is especially true for sensors, many of
which are completely passive. Some battery-powered sensors last 10 or more years
without battery replacement.
 Processing power is increasing: Processors are continually getting more powerful
and smaller. This is a key advancement for smart objects, as they become increasingly
complex and connected.
 Communication capabilities are improving: It's no big surprise that wireless
speeds are continually increasing, but they are also increasing in range. IoT is driving
the development of more and more specialized communication protocols covering a
greater diversity of use cases and environments.
 Communication is being increasingly standardized: There is a strong push in the
industry to develop open standards for IoT communication protocols. In addition,
There are more and more open source efforts to advance loT.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Sensor Networks

 A sensor/actuator network (SANET), is a network of sensors that sense and measure


their environment and/or actuators that act on their environment.
 The sensors and/or actuators in a SANET are capable of communicating and
cooperating in a productive manner.
 Effective and well-coordinated communication and cooperation is a prominent
challenge, primarily because the sensors and actuators in SANETs are diverse,
heterogeneous, and resource-constrained.
 SANETs offer highly coordinated sensing and actuation capabilities.
 Smart homes are a type of SANET that display this coordination between distributed
sensors and actuators.
 For example, smart homes can have temperature sensors that are strategically
networked with heating, ventilation, and air-conditioning (HVAC) actuators.
 When a sensor detects a specified temperature, this can trigger an actuator to take
action and heat or cool the home as needed.

Advantages of Sensor network

 Greater deployment flexibility (especially in extreme environments or hard-to-reach


places)
 Simpler scaling to a large number of nodes
 Lower implementation costs
 Easier long-term maintenance
 Effortless introduction of new sensor/actuator nodes
 Better equipped to handle dynamic/rapid topology changes

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Disadvantages of Sensor network

 Potentially less secure (for example, hijacked access points)


 Typically lower transmission speeds
 Greater level of impact/influence by environment

Wireless Sensor Networks

Wireless sensor networks are made up of wirelessly connected smart objects, which
sometimes referred to as motes. The fact that there is no infrastructure to consider with
WSNs is surely powerful advantage for flexible deployments, but there are a variety of
design constraint to consider these wirelessly connected smart objects. The below figure
illustrates some of these assumptions and constraints usually involved in WSN.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

The following are some of the most significant limitations of the smart objects in WSNs:
 Limited processing power
 Limited memory
 Lossy communication
 Limited transmission speeds
 Limited power

These limitations greatly influence how WSNS are designed, deployed, and utilized. The
fact that individual sensor nodes are typically so limited is a reason that they are often
deployed in very large numbers. As the cost of sensor nodes continues to decline, the
ability to deploy highly redundant sensors becomes increasingly feasible, because many
sensors are very inexpensive and correspondingly inaccurate, the ability to deploy smart
objects redundantly allows for increased accuracy.

Such large numbers of sensors permit the introduction of hierarchies of smart objects.
Such a hierarchy provides, among other organizational advantages, the ability to each
aggregate similar sensor readings from sensor nodes that are in close proximity to each.
Other. The below figure shows an example of such a data aggregation function in a WSN
where temperature readings from a logical grouping of temperature sensors are
aggregated as an average temperature reading. These data aggregation techniques are
helpful in reducing the amount of overall traffic (and energy) in WSNs with very large
numbers of deployed smart objects.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Wirelessly connected smart objects generally have one of the following two
communication patterns
 Event-driven: Transmission of sensory information is triggered only when a smart
object detects a particular event or predetermined threshold.
 Periodic: Transmission of sensory information occurs only at periodic intervals.

The decision of which of these communication schemes is used depends greatly on the
specific application. For example, in some medical use cases, sensors periodically send
postoperative vitals, such as temperature or blood pressure readings. In other medical
use cases, the same blood pressure or temperature readings are triggered to be when
certain critically sent only low or high readings are measured.

 Additional advantages of being able to deploy large numbers of wireless low-cost


smart objects are the inherent ability to provide fault tolerance, reliability, and the
capability to extend the life of a WSN, especially in scenarios where the smart objects
have limited battery life. Autonomous techniques, such as self-healing, self-
protection, and self-optimization, are often employed to perform these functions on
behalf of an overall WSN system. IoT applications are often mission critical, and in
large-scale WSNs, the Overall system can't fail if the environment suddenly changes,
wireless communication is temporarily lost, or a limited number of nodes run out of
battery power or function improperly.

Lavanya Santhosh, Assistant Professor, Dr.AIT


18CS61 – Internet of Things

Communication protocols for WSN

WSNS are becoming increasingly heterogeneous with more sophisticated interactions.


This heterogeneity is manifested in a variety of ways. For instance, WSNs are seeing
transitions from homogenous wireless networks made up of mostly a single type of
sensor to networks made up of multiple types of sensors that up can even be a hybridized
mix of many cheap sensors with a few expensive one used for very specific high-precision
functions. WSNs are also evolving from single purpose networks to more flexible
multipurpose networks that can use specific sensor type of sensor. Multiple different
applications at any given time. Imagine a WSN that has multiple of sensors, and one of
those types is a temperature sensor that can be flexibly used concurrently for
environmental applications, weather applications, and smart farming applications.

Coordinated communication with sophisticated interactions by constrained devices


within such a heterogeneous environment is quite a challenge. The protocols governing
the communication for WSNs must deal with the inherent defining characteristics of
WSNs and the constrained devices within them. For instance, any communication
protocol must be able to scale to a large number of nodes.

Likewise, when selecting a communication protocol, you must carefully take into account
the requirements of the specific application and consider any trade-offs the
communication protocol offers between power consumption, maximum transmission
speed, range, tolerance for packet loss, topology optimization, security, and so on. The
fact that WSNs are often deployed outdoors in harsh and unpredictable environments
adds yet another variable to consider because obviously not all communication protocols
are designed to be equally rugged. In addition to the aforementioned technical
capabilities, they must also enable, as needed, the overlay of autonomous techniques (for
example, self-organization, self-healing, self-configuration)

Lavanya Santhosh, Assistant Professor, Dr.AIT

You might also like