Fiot QB
Fiot QB
UNIT-I
Long questions
1 . What do you mean by IOT and it’s features?
IOT can be defined as a global infrastructure that enables advanced services by interconnecting
physical and virtual things based on existing information and communication technology .
The Internet of Things (IoT) refers to a system of interrelated, internet-connected objects that are
able to collect and transfer data over a wireless network without human intervention.
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.
Active Engagement: IoT makes the connected technology, product, or services to active
engagement between each other.
Endpoint Management: It is important to be the endpoint management of all the IoT system
otherwise, it makes the complete failure of the system. For example, if a coffee machine itself
order the coffee beans when it goes to end but what happens when it orders the beans from a
retailer and we are not present at home for a few days, it leads to the failure of the IoT system.
So, there must be a need for endpoint management.
Dynamic and self-adapting:
The IoT devices can dynamically adapt with sensed environment, their operating conditions, and
user’s context and take actions accordingly. For ex: Surveillance System
Self-configuring:
I. IoT devices can be able to upgrade the software with minimal intervention of user, whenever
they are connected to the internet
II. They can also setup the network i.e a new device can be easily added to the existing network.
For ex: Whenever there will be free wifi access one device can be connected easily.
Characteristics of IoT:
I. The IoT devices are connected to the network to share some information with other
connected devices. The devices can be discovered dynamically in the network by other
devices. For ex. If a device has wifi connectivity then that will be shown to other nearby
devices having wifi connectivity
II. The devices ssid will be visible though out the network. Due to these things the
network is also called as information network.
III. The IoT devices become smarter due to the collective intelligence of the
individual devices in collaboration with the information network. For Ex: weather
monitoring system. Here the information collected from different monitoring nodes
(sensors, arduino devices) can be aggregated and analysed to predict the weather.
3. Explain the Logical Design of IoT.
In this article we discuss Logical design of Internet of things. Logical design of IoT system refers
to an abstract representation of the entities & processes without going into the low-level specifies
of the implementation. For understanding Logical Design of IoT, we describes given below
terms.
i. IoT Functional Blocks
ii. IoT Communication Models
iii. IoT Communication APIs
Request-Response Model
Request-response model is communication model in which the client sends requests to the server
and the server responds to the requests. When the server receives a request, it decides how to
respond, fetches the data, retrieves resource representation, prepares the response, and then sends
the response to the client. Request-response is a stateless communication model and each
request-response pair is independent of others.
HTTP works as a request-response protocol between a client and server. A web browser may be
the client, and an application on a computer that hosts a web site may be the server.
Example: A client (browser) submits an HTTP request to the server; then the server returns a
response to the client. The response contains status information about the request and may also
contain the requested content.
Publish-Subscribe Model
Push-Pull Model
Push-Pull is a communication model in which the data producers push the data to queues and the
consumers Pull the data from the Queues. Producers do not need to be aware of the consumers.
Queues help in decoupling the messaging between the Producers and Consumers. Queues also
act as a buffer which helps in situations when there is a mismatch between the rate at which the
producers push data and the rate at which the consumer pull data.
Exclusive Pair Model
Exclusive Pair is a bidirectional, fully duplex communication model that uses a persistent
connection between the client and server. Connection is setup it remains open until the client
sends a request to close the connection. Client and server can send messages to each other after
connection setup. Exclusive pair is stateful communication model and the server is aware of all
the open connections.
Generally, we used Two APIs For IoT Communication. These IoT Communication APIs are:
Representational state transfer (REST) is a set of architectural principles by which you can
design Web services the Web APIs that focus on system’s resources and how resource states are
addressed and transferred. REST APIs that follow the request response communication model,
the rest architectural constraint apply to the components, connector and data elements, within a
distributed hypermedia system. The rest architectural constraint are as follows:
Client-server – The principle behind the client-server constraint is the separation of concerns.
for example, clients should not be concerned with the storage of data which is concern of the
serve. Similarly, the server should not be concerned about the user interface, which is concern of
the client. Separation allows client and server to be independently developed and updated.
Stateless – Each request from client to server must contain all the information necessary to
understand the request, and cannot take advantage of any stored context on the server. The
session state is kept entirely on the client.
Cache-able – Cache constraints requires that the data within a response to a request be implicitly
or explicitly leveled as cache-able or non-cache-able. If a response is cache-able, then a client
cache is given the right to reuse that response data for later, equivalent requests. caching can
partially or completely eliminate some instructions and improve efficiency and scalability.
Layered system – layered system constraints, constrains the behavior of components such that
each component cannot see beyond the immediate layer with they are interacting. For example,
the client cannot tell whether it is connected directly to the end server or two an intermediary
along the way. System scalability can be improved by allowing intermediaries to respond to
requests instead of the end server, without the client having to do anything different.
Uniform interface – uniform interface constraints requires that the method of communication
between client and server must be uniform. Resources are identified in the requests (by URIs in
web-based systems) and are themselves is separate from the representations of the resources data
returned to the client. When a client holds a representation of resources it has all the information
required to update or delete the resource you (provided the client has required permissions). Each
message includes enough information to describe how to process the message.
Code on demand – Servers can provide executable code or scripts for clients to execute in their
context. this constraint is the only one that is optional.
A RESTful web service is a” Web API” implemented using HTTP and REST principles. REST
is most popular IoT Communication APIs.
WebSocket APIs allow bi-directional, full duplex communication between clients and servers.
WebSocket APIs follow the exclusive pair communication model. Unlike request-response
model such as REST, the WebSocket APIs allow full duplex communication and do not require
new connection to be setup for each message to be sent. WebSocket communication begins with
a connection setup request sent by the client to the server. The request (called WebSocket
handshake) is sent over HTTP and the server interprets it is an upgrade request. If the server
supports WebSocket protocol, the server responds to the WebSocket handshake response. After
the connection setup client and server can send data/messages to each other in full duplex mode.
WebSocket API reduce the network traffic and latency as there is no overhead for connection
setup and termination requests for each message. WebSocket suitable for IoT applications that
have low latency or high throughput requirements. So, Web socket is most suitable IoT
Communication APIs for IoT System.
Sensor Features
It is only sensitive to the measured property (e.g., A temperature sensor senses the ambient
temperature of a room.)
It is insensitive to any other property likely to be encountered in its application (e.g., A
temperature sensor does not bother about light or pressure while sensing the
temperature.)
It does not influence the measured property (e.g., measuring the temperature does not
reduce or increase the temperature).
Sensor Resolution
The resolution of a sensor is the smallest change it can detect in the quantity that it is
measuring.
The resolution of a sensor with a digital output is usually the smallest resolution the
digital output it is capable of processing.
The more is the resolution of a sensor, the more accurate is its precision.
A sensor's accuracy does not depend upon its resolution.
Sensor Classes
Analog Sensors
Analog Sensors produces a continuous output signal or voltage which is generally
proportional to the quantity being measured.
Physical quantities such as Temperature, speed, Pressure, Displacement, Strain etc. are all
analog quantities as they tend to be continuous in nature.
For example, the temperature of a liquid can be measured using a thermometer or
thermocouple (e.g. in geysers) which continuously responds to temperature changes as
the liquid is heated up or cooled down.
Digital Sensors
Digital Sensors produce discrete output voltages that are a digital representation of the
quantity being measured.
Digital sensors produce a binary output signal in the form of a logic "1" or a logic "0" ,
("ON" or "OFF).
Digital signal only produces discrete (non-continuous) values, which may be output as a
signal "bit" (serial transmission), or by combing the bits to produce a signal "byte" output
(parallel transmission).
Scalar Sensors
Scalar Sensors produce output signal or voltage which generally proportional to the
magnitude of the quantity being measured.
Physical quantities such as temperature, color, pressure, strain, etc. are all scalar
quantities as only their magnitude is sufficient to convey an information.
For example the temperature of a room can be measured using thermometer or
thermocouple, which responds to temperature changes irrespective of the orientation of
the sensor or its direction.
Vector Sensors
Vector Sensors produce output signal or voltage which generally proportional to the
magnitude, direction, as well as the orientation of the quantity being measured.
Physical quantities such as sound, image, velocity, acceleration, orientation, etc. are all
vector quantities, as only their magnitude is not sufficient to convey the complete
information.
For example, the acceleration of a body can be measured using an accelerometer, which
gives the components of acceleration of the body with respect to the x,y,z coordinate
axes.
Types of sensors :
Temperature sensors
Temperature sensors detect the temperature of the air or a physical object and concert that
temperature level into an electrical signal that can be calibrated accurately reflect the measured
temperature. These sensors could monitor the temperature of the soil to help with agricultural
output or the temperature of a bearing operating in a critical piece of equipment to sense when it
might be overheating or nearing the point of failure.
Pressure sensors
Pressure sensors measure the pressure or force per unit area applied to the sensor and can detect
things such as atmospheric pressure, the pressure of a stored gas or liquid in a sealed system such
as tank or pressure vessel, or the weight of an object.
Image sensors
Image sensors function to capture images to be digitally stored for processing. License plate
readers are an example, as well as facial recognition systems. Automated production lines can
use image sensors to detect issues with quality such as how well a surface is painted after leaving
the spray booth.
Proximity sensors
Proximity sensors can detect the presence or absence of objects that approach the sensor through
a variety of different technology designs. These approaches include:
Inductive technologies which are useful for the detection of metal objects Capacitive
technologies, which function on the basis of objects having a different dielectric constant
than that of air Photoelectric technologies, which rely on a beam of light to illuminate and
reflect back from an object, or
Ultrasonic technologies, which use a sound signal to detect an object nearing the sensor
Chemical sensors
Chemical sensors are designed to detect the presence of specific chemical substances which may
have inadvertently leaked from their containers into spaces that are occupied by personnel and
are useful in controlling industrial process conditions.
Smoke sensors
Smoke sensors or detectors pick up the presence of smoke conditions which could be an
indication of a fire typically using optical sensors (photoelectric detection) or ionization
detection.
Infrared sensor technologies detect infrared radiation that is emitted by objects. Non-contact
thermometers make use of these types of sensors as a way of measuring the temperature of an
object without having to directly place a probe or sensor on that object. They find use in
analyzing the heat signature of electronics and detecting blood flow or blood pressure in patients
Characteristics of Sensors
It is the minimum step size within the range of measurement of a sensor in a wire-wound
potentiometer, it will be equal to resistance of one turn of wire. In digital devices with ‗n‘bits,
resolution is ‗Full range/2n
Sensitivity:
It is defined as the change in output response divided by the change in input response.
Highly sensitive sensors show larger fluctuations in output as a result of fluctuations in input.
Linearity:
is poor - Also, a specific range is desirable for operational performance as the performance of
robots depends on sensors.
Repeatability is a random phenomenon and hence there is no compensation. 23
Range - It is the difference between the smallest and the largest outputs that a sensor can
provide, or the difference between the smallest and largest inputs with which it can operate
properly.
Response time - It is the time that certain sensor‘s percentage output of total change.
It is also defined as the time required to observe the change in output as a result of change in
input for example, ordinary mercury thermometer response time and digital thermometer
response time.
Frequency response - The frequency response is the range i to the input remains relatively high.
The larger the range of frequency response, the better the ability of the system to respond to
varying input.
Reliability - It is the ratio between the number of times a system operates properly and the
number of times it is tried.
For continuous satisfactory operation, it is necessary to choose reliable sensors that last long
while considering the cost as well as other requirements.
Accuracy - It shows how close the output of the sensor is to the expected value.
For a given input, certain expected output value is related to how close the sensor ‘s output value
is to this value.
Interfacing - Direct interfacing of the sensor to the microcontroller/microprocessor is desirable
while some add-on circuit may be necessary in certain special sensors.
The type of the sensor output is equally important. An ADC is required for analogue output
sensors for example, potentiometer output to microcontroller.
Size, weight and volume - Size is a critical consideration for joint displacement sensors.
When robots are used as dynamic machines, weight of the sensor is important.
Volume or spaces also critical to micro robots and mobile robots used for surveillance.
Cost is important especially when quantity involved is large in the end application.
ACTUATORS
Actuators
Another type of transducer that you will encounter in many IoT systems is an actuator. In simple
terms, an actuator operates in the reverse direction of a sensor. It takes an electrical input and
turns it into physical action. For instance, an electric motor, a hydraulic system, and a pneumatic
system are all different types of actuators.
Controller
In a typical IoT system, a sensor may collect information and route to a control center. There,
previously defined logic dictates the decision. As a result, a corresponding command controls an
actuator in response to that sensed input. Thus, sensors and actuators in IoT work together from
opposite ends. Later, we will discuss where the control center resides in the greater IoT system.
An IoT device is made up of a Physical object (“thing”) + Controller (“brain”) + Sensors +
Actuators + Networks (Internet). An actuator is a machine component or system that moves or
controls the mechanism or the system. Sensors in the device sense the environment, then control
signals are generated for the actuators according to the actions needed to perform.
A servo motor is an example of an actuator. They are linear or rotatory actuators, can move to a
given specified angular or linear position. We can use servo motors for IoT applications and
make the motor rotate to 90 degrees, 180 degrees, etc., as per our need.
The following diagram shows what actuators do, the controller directs the actuator based on the
sensor data to do the work.
The control system acts upon an environment through the actuator. It requires a source of energy
and a control signal. When it receives a control signal, it converts the source of energy to a
mechanical operation. On this basis, on which form of energy it uses, it has different types given
below.
Actuators, as the name itself suggests, can act on their immediate environment to enable correct
operation of the machines or devices they are embedded into.
Small as they are, they are rarely visible during operation, but the effects of their work can be felt
in vehicles, industrial machines or any other electronic equipment involving automation
technologies. They can be separated into four main categories based on their construction pattern
and the role they play in a specific IoT environment:
Linear actuators – these are used to enable motion of objects or elements in a straight
line.
Motors – they enable precise rotational movements of device components or whole
objects.
Relays – this category includes electromagnet-based actuators to operate power switches
in lamps, heaters or even smart vehicles.
Solenoids – most widely used in home appliances as part of locking or triggering
mechanisms, they also act as controllers in IoT-based gas and water leak monitoring
systems.
Types of Actuators :
Hydraulic Actuators –
A hydraulic actuator uses hydraulic power to perform a mechanical operation. They are actuated
by a cylinder or fluid motor. The mechanical motion is converted to rotary, linear, or oscillatory
motion, according to the need of the IoT device. Ex- construction equipment uses hydraulic
actuators because hydraulic actuators can generate a large amount of force.
Advantages :
Hydraulic actuators can produce a large magnitude of force and high speed.
Used in welding, clamping, etc.
Used for lowering or raising the vehicles in car transport carriers.
Disadvantages :
Hydraulic fluid leaks can cause efficiency loss and issues of cleaning.
It is expensive.
It requires noise reduction equipment, heat exchangers, and high maintenance systems.
2. Pneumatic Actuators –
A pneumatic actuator uses energy formed by vacuum or compressed air at high pressure to
convert into either linear or rotary motion. Example- Used in robotics, use sensors that work like
human fingers by using compressed air.
Advantages :
They are a low-cost option and are used at extreme temperatures where using air is a
safer option than chemicals.
They need low maintenance, are durable, and have a long operational life.
It is very quick in starting and stopping the motion.
Disadvantages :
Loss of pressure can make it less efficient.
The air compressor should be running continuously.
Air can be polluted, and it needs maintenance.
3. Electrical Actuators –
An electric actuator uses electrical energy, is usually actuated by a motor that converts electrical
energy into mechanical torque. An example of an electric actuator is a solenoid based electric
bell.
Advantages :
It has many applications in various industries as it can automate industrial valves.
It produces less noise and is safe to use since there are no fluid leakages.
It can be re-programmed and it provides the highest control precision positioning.
Disadvantages :
It is expensive.
It depends a lot on environmental conditions.
Temperature sensors detect the temperature of the air or a physical object and concert that
temperature level into an electrical signal that can be calibrated accurately reflect the measured
temperature. These sensors could monitor the temperature of the soil to help with agricultural
output or the temperature of a bearing operating in a critical piece of equipment to sense when it
might be overheating or nearing the point of failure.
Pressure sensors
Pressure sensors measure the pressure or force per unit area applied to the sensor and can detect
things such as atmospheric pressure, the pressure of a stored gas or liquid in a sealed system such
as tank or pressure vessel, or the weight of an object.
Image sensors
Image sensors function to capture images to be digitally stored for processing. License plate
readers are an example, as well as facial recognition systems. Automated production lines can
use image sensors to detect issues with quality such as how well a surface is painted after leaving
the spray booth.
Proximity sensors
Proximity sensors can detect the presence or absence of objects that approach the sensor through
a variety of different technology designs. These approaches include:
• Inductive technologies which are useful for the detection of metal objects Capacitive
technologies, which function on the basis of objects having a different dielectric constant than
that of air Photoelectric technologies, which rely on a beam of light to illuminate and reflect back
from an object, or
Ultrasonic technologies, which use a sound signal to detect an object nearing the sensor
Chemical sensors
Chemical sensors are designed to detect the presence of specific chemical substances which may
have inadvertently leaked from their containers into spaces that are occupied by personnel and
are useful in controlling industrial process conditions.
Smoke sensors
Smoke sensors or detectors pick up the presence of smoke conditions which could be an
indication of a fire typically using optical sensors (photoelectric detection) or ionization
detection.
Infrared sensor technologies detect infrared radiation that is emitted by objects. Non-contact
thermometers make use of these types of sensors as a way of measuring the temperature of an
object without having to directly place a probe or sensor on that object. They find use in
analyzing the heat signature of electronics and detecting blood flow or blood pressure in patients
2.Mesh network :
A mesh network allows transmitting data to one node to other node in the network that is within
its radio transmission range. This allows for what is known as multi-hop communications, that is,
if a node wants to send a message to another node that is out of radio communications range, it
can use an intermediate node to forward the message to the desired node. This network topology
has the advantage of redundancy and scalability. If an individual node fails, a remote node still
can communicate to any other node in its range, which in turn, can forward the message to the
desired location.
In addition, the range of the network is not necessarily limited by the range in between single
nodes; it can simply be extended by adding more nodes to the system. The disadvantage of this
type of network is in power consumption for the nodes that implement the multi-hop
communications are generally higher than for the nodes that don’t have this capability, often
limiting the battery life. Additionally, as the number of communication hops to a destination
increases, the time to deliver the message also increases, especially if low power operation of the
nodes is a requirement.
Short questions
1. What are communication protocols?
Communication Protocols Used in the IoT Space, HTTP (Hypertext Transfer Protocol),
LoRaWan (Long Range Wide Area Network), Bluetooth, ZigBee, Message Queue
Telemetry Transport (MQTT), Constrained Application Protocol (CoAP), Advanced
Message Queuing Protocol (AMQP)
2. How many levels of IOT Levels are there?
IoT system architecture is laid out across 4 layers i.e., the physical layer, the network
layer, the middleware layer, and the application layer.
3. Classify Computer Networks.
There are five main types of Computer Networks:
LAN (Local Area Network) – Systems connected in a small network like in a building or
a small office.
PAN (Personal Area Network) – The smallest computer network.
MAN (Metropolitan Area Network)
WAN (Wide Area Network)
VPN (Virtual Private Network)
4. Differentiate between Computer Networks V/s IOT.
Machine-to-Machine (M2M)
• An M2M area network comprises of machines (or M2M nodes) which have embedded
hardware modules for sensing, actuation and communication.
• Various communication protocols can be used for M2M local area networks such as ZigBee,
Bluetooh, ModBus, M-Bus, Wirless M-Bus, Power Line Communication (PLC), 6LoWPAN,
IEEE 802.15.4, etc.
• The communication network provides connectivity to remote M2M area networks.
• The communication network can use either wired or wireless networks (IPbased).
• M2M area networks use either proprietary or non-IP based communication protocols, the
communication network uses IP-based networks M2M gateway
• Since non-IP based protocols are used within M2M area networks, the M2M nodes within one
network cannot communicate with nodes in an external network.
• To enable the communication between remote M2M area networks, M2M gateways are used.
M2M Gateway
Virtual Node
Virtual Node
Communication Protocols
M2M and IoT can differ in how the communication between the machines or devices happens.
M2M uses either proprietary or non-IP based communication protocols for communication
within the M2M area networks. Commonly uses m2m protocols include Zigbee, bluetooth,
Modbus, M-Bus, wireless M-bus, Power line communication, 6lowpan, IEEE 802.15.4, Z-
wave etc. The focus of communication in M2M is usually on the protocols below the network
layer. The focus of communication in IoT is usually on the protocols above the network layer
such as HTTP, COAP, Websockets, MQTT, XMPP, DDS, AMQP etc.
Hardware vs Software Emphasis
While the emphasis of M2M is more on hardware with embedded modules, the emphasis of IoT
is more on software. IoT devices run specialized software for sensor data collection, data
analysis and interfacing with the cloud through IP based communication.
The things in IoT refers to physical objects that have unique identifiers and can sense and
communicate with their external environment (and user applications) or their internal physical
States. The unique identifier for the things in IoT are the IP addresses (or Mac addresses). Things
have software components for accessing, processing and storing sensor information, or
controlling actuators connected. IoT systems can have heterogeneous thing (e.g., home
automation IoT system can include IoT system can include IoT devices of various types such as
fire alarms, door alarms, lighting control devices etc.) M2M systems, in contrast to IoT, typically
have homogeneous machine type within a and M2M area network.
Data Collection and Analysis
M2M data is collected in point Solutions and often in on-premises storage infrastructure. In
context to M2M, the data in IoT is collected in the cloud (can be public, private or hybrid cloud).
The various IoT Levels, and IoT components deployed in the cloud. The analytics component
analyzes the data and stores the results in the cloud database. The IoT data and analysis results
are visualized with the cloud-based applications. The centralized controller is aware of the status
of all the end nodes and sends control commands to the nodes. Observer nodes can process
information and use it for various applications; however, observer nodes do not perform any
control functions.
Applications
M2M data is collected in point Solutions and can be accessed by on-premises application such as
diagnosis applications, service management applications and on-premises enterprise applications.
But We collect IoT Data in the cloud and can be accessed by cloud applications such as analytics
applications, enterprise applications, remote diagnosis and management applications etc. Since
the scale of data collected in IoT is so massive, cloud based real time and batch data analysis
frameworks are used for data analysis. Communication in IoT is IP based networks.
Communication within M2M area network is based on protocols below the network layer
whereas IoT is based on protocols above the network layer.
Device interoperability:
IoT is composed of a variety of devices which are called “smart objects/things”, which may
consist of high-end devices or low-end devices. The high-end IoT devices have enough resources
and computational capabilities such as Raspberry Pi and smartphones. On the other hand, the
low-end IoT devices are resource-constrained in terms of energy, processing power and
communication capabilities, tiny and low-cost sensors, and actuators, Arduino.
various communication protocols have emerged due to the different requirements of IoT markets.
For example, IoT devices such as Smart TV, printers, air conditioners support traditional Wi-Fi
technologies and 3G/4G cellular communications, IoT medical devices are based on ANT+
standard; other wearable devices mostly support Bluetooth SMART and NFC, while the
environmental sensors use ZigBee-based on IEEE 802.15.4 standard.
Device interoperability refers to enabling the integration and interoperability of such
heterogenous devices with various communication protocols and standards. Device
interoperability is concerned with (i) the exchange of information between heterogeneous
devices and heterogenous communication protocols and (ii) (ii) the ability to integrate new
devices into any IoT platform.
Network interoperability:
Network level interoperability deals with mechanisms to enable seamless message exchange
between systems through different networks (networks of networks) for end-to-end
communication. To make systems interoperable, i.e each system should be able to exchange
messages with other systems through various types of networks.
Due to the dynamic and heterogenous network environment in IoT, the network interoperability
level should handle issues such as addressing, routing, resource optimization, security, QoS, and
mobility support.
Syntactical interoperability:
Syntactic interoperability refers to interoperation of the format as well as the data structure used
in any exchanged information or service between heterogeneous IoT system entities.
The content of the messages need to be serialized to be sent over the channel and the format to
do so (such as XML or JSON). The message sender encodes data in a message using syntactic
rules, specified in some grammar. The message receiver decodes the received message using
syntactic rules defined in the same or some other grammar.
Syntactic interoperability problems arise when the sender’s encoding rules are incompatible with
the receiver’s decoding rules, which leads to mismatching message parse trees.
semantic interoperability:
semantic interoperability is defined as “enabling different agents, services, and applications to
exchange information, data and knowledge in a meaningful way, on and off the Web”.
The WoT addresses the current fragmentation by exposing things and systems data and metadata
through API. But, such efforts have been hampered because the corresponding parties need to
share knowledge of an API [27] and many devices do not speak the same language and cannot
exchange across different gateways and smart hub.
For ex: the data generated by things about the environment may have a defined data format (e.g.
JSON, XML or CSV), but the data models and schemas used by different sources are usually
dissimilar and not always compatible.
This semantic incompatibility between data models and information models results in IoT
systems not being able to dynamically and automatically inter-operate as they have different
descriptions or understandings of resources and operational procedures, even if IoT systems
expose their data and resources to others.
Platform interoperability:
Platform interoperability issues in IoT arises due to the availability of diverse operating systems
(OSs), programming languages, data structures, architectures and access mechanisms for things
and data. Developers need to obtain extensive knowledge of the platform specific APIs and
information models of each different platform to be able to adapt their applications from one
platform to another.
A cross-platform IoT application can access different IoT platforms and integrate data from
various platforms. The cross-platform interoperability between things and data in this scenario
enables interoperability across separate IoT platforms specific to one vertical domain such as
smart home, smart healthcare, smart garden, etc
After cross-platform interoperability is enabled, cross-domain interoperability can be achieved in
which different platforms within heterogenous domains are federated to build horizontal IoT
applications.
Fig.. shows the concept behind cross-domain interoperability where different IoT platforms from
different IoT domains (e.g. health, home, transport, etc.) can be integrated to build new
innovative applications.
For example, a smart home platform can provide domain-specific enablers such as air
temperature and the lighting conditions. Fig. 2.
4 Explain architecture of ARDIUNO Board.
Arduino is an open-source electronics platform based on easy-to-use hardware and software.
Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter
message - and turn it into an output - activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board.
To do so you use the Arduino programming language (based on Wiring), and the Arduino
Software (IDE), based on Processing. Arduino has been used in thousands of different projects
and applications. The Arduino software is easy-to-use for beginners, yet flexible enough for
advanced users. It runs on Mac, Windows, and Linux.
The Arduino employs an 8-bit ATmega series microcontroller whereas the Raspberry Pi is based
around a 32-bit ARM processor,
Arduino Board And Its Components
Arduino simplifies the process of working with microcontrollers, but it offers some advantage
Inexpensive - Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by hand, and
even the pre-assembled Arduino modules cost less than $50.
Cross-platform - The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
Simple, clear programming environment - The Arduino Software (IDE) is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. .
Open source and extensible software - The Arduino software is published as open source tools,
available for extension by experienced programmers. The language can be expanded through
C++ libraries, and people wanting to understand the technical details can make the leap from
Arduino to the AVR C programming language on which it's based. Similarly, you can add AVR-
C code directly into your Arduino programs if you want to.
Open source and extensible hardware - The plans of the Arduino boards are published under a
Creative Commons license, so experienced circuit designers can make their own version of the
module, extending it and improving it. Even relatively inexperienced users can build the
breadboard version of the module in order to understand how it works .
The Arduino employs an 8-bit ATmega series microcontroller whereas the Raspberry Pi is based
around a 32-bit ARM processor,
Using the above image as a reference, the labeled components of the board respectively are-
Power USB
Arduino board can be powered by using the USB cable from your computer. All you need to do
is connect the USB cable to the USB connection (1).
Power (Barrel Jack)
Arduino boards can be powered directly from the AC mains power supply by connecting it to the
Barrel Jack (2).
Voltage Regulator
The function of the voltage regulator is to control the voltage given to the Arduino board and
stabilize the DC voltages used by the processor and other elements.
Crystal Oscillator
The crystal oscillator helps Arduino in dealing with time issues. How does Arduino calculate
time? The answer is, by using the crystal oscillator. The number printed on top of the Arduino
crystal is 16.000H9H. It tells us that the frequency is 16,000,000 Hertz or 16 MHz.
Arduino Reset
You can reset your Arduino board, i.e., start your program from the beginning. You can reset the
UNO board in two ways. First, by using the reset button (17) on the board. Second, you can
connect an external reset button to the Arduino pin labelled RESET (5).
Pins (3.3, 5, GND, Vin)
3.3V (6) − Supply 3.3 output volt
5V (7) − Supply 5 output volt
Most of the components used with Arduino board works fine with 3.3 volt and 5 volt.
GND (8)(Ground) − There are several GND pins on the Arduino, any of which can be
used to ground your circuit.
Vin (9) − This pin also can be used to power the Arduino board from an external power
source, like AC mains power supply.
Analog pins
The Arduino UNO board has six analog input pins A0 through A5. These pins can read the
signal from an analog sensor like the humidity sensor or temperature sensor and convert it into a
digital value that can be read by the microprocessor.
Main microcontroller
Each Arduino board has its own microcontroller (11). You can assume it as the brain of your
board. The main IC (integrated circuit) on the Arduino is slightly different from board to board.
The microcontrollers are usually of the ATMEL Company. You must know what IC your board
has before loading up a new program from the Arduino IDE. This information is available on the
top of the IC. For more details about the IC construction and functions, you can refer to the data
sheet.
ICSP pin
Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino consisting of MOSI,
MISO, SCK, RESET, VCC, and GND. It is often referred to as an SPI (Serial Peripheral
Interface), which could be considered as an "expansion" of the output. Actually, you are slaving
the output device to the master of the SPI bus.
Power LED indicator
This LED should light up when you plug your Arduino into a power source to indicate that your
board is powered up correctly. If this light does not turn on, then there is something wrong with
the connection.
TX and RX LEDs
On your board, you will find two labels: TX (transmit) and RX (receive). They appear in two
places on the Arduino UNO board. First, at the digital pins 0 and 1, to indicate the pins
responsible for serial communication. Second, the TX and RX led (13). The TX led flashes with
different speed while sending the serial data. The speed of flashing depends on the baud rate used
by the board. RX flashes during the receiving process.
Digital I/O
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM (Pulse Width
Modulation) output. These pins can be configured to work as input digital pins to read logic
values (0 or 1) or as digital output pins to drive different modules like LEDs, relays, etc. The
pins labeled “~” can be used to generate PWM.
AREF
AREF stands for Analog Reference. It is sometimes, used to set an external reference voltage
(between 0 and 5 Volts) as the upper limit for the analog input pins.
SDN is used to allow different objects from different networks to communicate with each other
using IPv6 and at the same time simplify the management and control operations of various
objects types by adding an additional IoT controller over the SDN controller. Thus, even so the
devices have different protocols, the forwarding devices in the router convert it in a form
understandable by the receiver. This enables the communication of diverse devices in the
network.
Sensors
Basic electronic Device
Convert a physical quantity/ measurements into electrical signals
Can be analog or digital
Types of Sensors
Some commonly used sensors :
Temperature
Humidity
Compass
Light
Sound
Accelerometer
Sensor Interface with Arduino
There are many features in Python, some of which are discussed below –
2. Free and Open Source: Python language is freely available at the official website
and you can download it from the given download link below click on the Download
Python keyword. Since it is open-source, this means that source code is also available
to the public. So you can download it as, use it as well as share it.
4. GUI Programming Support: Graphical User interfaces can be made using a module
such as PyQt5, PyQt4, wxPython, or Tk in python. PyQt5 is the most popular option
for creating graphical apps with Python.
10. Large Standard Library Python has a large standard library which provides a rich
set of module and functions so you do not have to write your own code for every
single thing. There are many libraries present in python for such as regular
expressions, unit-testing, web browsers, etc.
The breadboard is a convenient way to connect electronic components to each other without
having to solder them together.
They are often used to test ("prototype") a circuit design before making a final version of a
project, whether that be soldering wires together or creating a Printed Circuit Board (PCB).
Now, connect your components to the ground (GND) GPIO pin: ...
1. import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library.
2. from time import sleep # Import the sleep function from the time module.
3.GPIO. setwarnings(False) # Ignore warning for now.
4. GPIO. setmode(GPIO.BOARD) # Use physical pin numbering.
5. GPIO.
3. Explain pin diagram of Raspberry Pi Board.
Explanation about board components
1. System on Chip The System on Chip (SoC) architecture that the Raspberry Pi 2 implements is
the Broadcom BCM2836, which we touched upon earlier in this chapter. This contains a CPU,
GPU, SDRAM, and single USB port. Each of these items is discussed in more detail under the
appropriate heading.
2. CPU A central processing unit is the brain of your Raspberry Pi. It is responsible for
processing machine instructions, which are the result of your compiled programs.
3. GPU The graphics processing unit (GPU) is a specialist chip designed to handle the complex
mathematics required to render graphics.
4. 4 USB 2.0 ports and 1 SoC on-board USB The previous version of the Raspberry Pi Model B
contained only a single microUSB port and a two standard USB ports. The Raspberry Pi 2 has
been expanded to include an onboard 5-port USB hub. This allows you to connect four standard
USB cables to the device and a single microUSB cable. The micro USB port can be used to
power your Raspberry Pi 2.
5. SD card Slot
Raspberry Pi does not have a builtin operating a system and storage. You can Plug-in SD card
loaded with a Linux image to the SD card slot.
6. DSI display connector – used to attach an LCD panel. On the other side of the board is a
microSD card slot that holds the operating system.
7. Camera Serial Interface(CSI) This interface can be used to connect a camera module to
Raspberry Pi.
Status LED
FUNCTIONS
ACT
SD card access
PWR
3.3 V power is present
FDX
Full Duplex Lan connected
LNK
Link/Network activity
100
100 Mbit Lan connected
9. Ethernet port If you plan to place your Raspberry Pi near a router or switch or have enough
Ethernet cable, then you can connect your Raspberry Pi directly with the Ethernet jack. The
Raspberry Pi 2 supports 10/100 Mbps Ethernet, and the USB adapter in the third/fourth port of
USB hub can also be used for Ethernet via a USB to Ethernet adapter.
10. GPIO pins The main method for interacting with electronic components and expansion
boards is through the general purpose input/output (GPIO) pins on the Raspberry Pi. The
Raspberry Pi 2 Model B contains 40 pins in total. GPIO pins can accept both input and output
commands and can be controlled by programs in a variety of languages running on the Raspberry
Pi. for example :The input could be readings from a temperature sensor, and the output a
command to another device to switch an LED on or off.
11. HDMI Output :
This port provides both video and audio output.You can connect the Raspberry Pi to a monitor
using HDMI cable .
12. Composite Video output : Raspberry Pi comes with composite video output with RCA jack
that supports both PAL and NTSC video output. RCA jack can be used to connect old televisions
that have an RCA input only.
13. Audio Output : Raspberrypi has 3.5mm audio output jack .This audio jacks use for providing
audio output to old Televisions along with RCA jack for video .The audio quality from this.
4 Discuss data types in Python with examples.
Numbers
String
List
Tuple
Dictionary
Python sets the variable type based on the value that is assigned to it. Unlike more riggers
languages, Python will change the variable type if the variable value is set to another value. For
example:
Numbers
Python numbers variables are created by the standard Python method: var = 382
Most of the time using the standard Python number type is fine. Python will automatically
convert a number from one type to another if it needs. But, under certain circumstances that a
specific number type is needed (ie. complex, hexidecimal), the format can be forced into a
format by using additional syntax in the table below:
List
Lists are a very useful variable type in Python. A list can contain a series of values. List variables
are declared by using brackets [ ] following the variable name.
All lists in Python are zero-based indexed. When referencing a member or the length of a list the
number of list elements is always the number shown plus one.
You can assign data to a specific element of the list using an index into the list. The list index
starts at zero. Data can be assigned to the elements of an array as follows:
mylist = [0, 1, 2, 3]
mylist[0] = 'Rhino'
mylist[1] = 'Grasshopper'
mylist[2] = 'Flamingo'
mylist[3] = 'Bongo'
print mylist[1]
Lists aren’t limited to a single dimension. Although most people can’t comprehend more than
three or four dimensions. You can declare multiple dimensions by separating an with commas. In
the following example, the MyTable variable is a two-dimensional array :
In a two-dimensional array, the first number is always the number of rows; the second number is
the number of columns.
Tuple
Tuples are a group of values like a list and are manipulated in similar ways. But, tuples are fixed
in size once they are assigned. In Python the fixed size is considered immutable as compared to a
list that is dynamic and mutable. Tuples are defined by parenthesis ().
It seems tuples are very restrictive, so why are they useful? There are many datastructures in
Rhino that require a fixed set of values. For instance a Rhino point is a list of 3 numbers [34.5,
45.7, 0]. If this is set as tuple, then you can be assured the original 3 number structure stays as a
point (34.5, 45.7, 0). There are other datastructures such as lines, vectors, domains and other data
in Rhino that also require a certain set of values that do not change. Tuples are great for this.
Dictionary
Dictionaries in Python are lists of Key:Value pairs. This is a very powerful datatype to hold a lot
of related information that can be associated through keys. The main operation of a dictionary is
to extract a value based on the key name. Unlike lists, where index numbers are used,
dictionaries allow the use of a key to access its members. Dictionaries can also be used to sort,
iterate and compare data.
Dictionaries are created by using braces ({}) with pairs separated by a comma (,) and the key
values associated with a colon(:). In Dictionaries the Key must be unique. Here is a quick
example on how dictionaries might be used:
Connection: Relay(Switch)
Connect the relay pins with the Raspberry Pi as mentioned in previous slides
Set the GPIO pin connected with the relay’s input pin as output in the sketch
GPIO.setup(13,GPIO.OUT)
Set the relay pin high when the temperature is greater than 30
#code for fan operating
GPIO.setup(13,GPIO.OUT) if temperature > 30: print ('Temp > 30') GPIO.output (FAN,0)
print('Fan on') sleep(5) print('Fan off ') GPIO.output(FAN,1) else: GPIO.output(FAN,1) print
('Temp below max value.FAN OFF')
Output : The fan is switched ON whenever the temperature value reaches above threshold value
set in the code.
7. Explain the program for interfacing of LED and switch with Raspberry Pi.
In this program LED is connected to GPIO pin 18 and switch is connected to pin 25. In the
infinite Whileloop the value of Pin25 is checked and the state of LED is toggled if switch is
pressed .
Code :
from time import sleep
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
#switch Pin
GPIO.setup(25,GPIO.IN)
#LED Pin
GPIO.setup(18,GPIO.OUT)
state=False
def LED(pin):
state=not state
GPIO.output(pin,state)
while True:
try :
If(GPIO.input(25)==True):
LED(pin)
Sleep(1)
except KeyboardInterrupt:
exit()
8. Enumerate the programming with Raspberry Pi.
Programming with Raspberry Pi Program for Blinking LED With the circuit created we need to
write the Python script to blink the LED. Before we start writing the software we first need to
install the Raspberry Pi GPIO Python module. This is a library that allows us to access the GPIO
port directly from Python.
Installing GPIO library:
Open terminal
Enter the command “sudo apt-get install python-dev” to install python development
Enter the command “sudo apt-get install python-rpi.gpio” to install GPIO library.
Connection : 1.connect the negative terminal of LED to ground pin of Pi 2.connect the positive
terminal of LED to output pin of Pi
Basic python coding:
Open terminal enter the command
sudo nano filename.py
This will open the nano editor where you can write your code
Ctrl+O : Writes the code to the file
Ctrl+X : Exits the editor
Code
Short questions
1 Who invented Python Language ?
Python was invented by Guido van Rossum, and first released on February 20, 1991.
While you may know the python as a large snake, the name of the Python programming
language comes from an old BBC television comedy sketch series called Monty Python's
Flying Circus.
The above fig shows how data flows from generation to analysis .
Data Sources /Data Generation
Enterprise data
Online trading and analysis data. /Production and inventory data and Sales and other financial
data.
IoT data
Data from industry, agriculture, traffic, transportation, Medical care data, Data from public
departments, and families.
Bio medical data
Masses of data generated by gene sequencing, Data from medical clinics and medical, R&Ds.
Other fields
Fields such as – computational biology, astronomy, nuclear research etc
Data Acquisition
Data collection
Log files or record files that are automatically generated by data sources to record activities for
further analysis, that has been collected from devices like Sensory data such as sound wave,
voice, vibration, automobile, chemical, current, weather, pressure, temperature etc , and even
Complex and variety of data collection through mobile devices. E.g. – geographical location, 2D
barcodes, pictures, videos etc.
Data transmission
1.After collecting data, it will be transferred to storage system for further processing and analysis
of the data.
2. Data transmission can be categorized as – Inter DCN transmission and Intra DCN
transmission
Data pre processing
1. Collected datasets suffer from noise, redundancy, inconsistency etc., thus, preprocessing of
data is necessary.
2.Pre processing of relational data mainly follows – integration, cleaning, and
redundancy mitigation
3.Integration is combining data from various sources and provides users with a uniform view of
data.
4. Cleaning is identifying inaccurate, incomplete, or unreasonable data, and then modifying or
deleting such data.
5.Redundancy mitigation is eliminating data repetition through detection, filtering and
compression of data to avoid unnecessary transmission.
Data Storage :
Data can be stored in Filesystems or Databases
File system
1.Distributed file systems that store massive data and ensure – consistency, availability,and fault
tolerance of data.
2. GFS is a notable example of distributed file system that supports large scale file system,
though it’s performance is limited in case of small files
3.Hadoop Distributed File System (HDFS) and Kosmosfs are other notable file systems, derived
from the open source codes of GFS.
Databases
1. Emergence of non traditional relational databases (NoSQL) in order to deal with the
characteristics that big data possess i.e unstructured data .
2. Nosql uses 3 different type of databases
1.keyvalue database
2.coloumn oriented database
3.Document oriented database
Nosql doesn’t uses the table module instead data is stored in single document file.
Hadoop is an open-source software framework for storing data and running applications on
clusters of commodity hardware. It provides massive storage for any kind of data, enormous
processing power and the ability to handle virtually limitless concurrent tasks or jobs.
Why is Hadoop important?
Ability to store and process huge amounts of any kind of data, quickly. With data volumes and
varieties constantly increasing, especially from social media and the Internet of Things (IoT),
that's a key consideration.
Computing power. Hadoop's distributed computing model processes big data fast. The more
computing nodes you use, the more processing power you have.
Fault tolerance. Data and application processing are protected against hardware failure. If a
node goes down, jobs are automatically redirected to other nodes to make sure the distributed
computing does not fail. Multiple copies of all data are stored automatically.
Flexibility. Unlike traditional relational databases, you don’t have to preprocess data before
storing it. You can store as much data as you want and decide how to use it later. That includes
unstructured data like text, images and videos.
Low cost. The open-source framework is free and uses commodity hardware to store large
quantities of data.
Scalability. You can easily grow your system to handle more data simply by adding nodes.
Little administration is required.
Hadoop History
Hive A data warehousing and SQL-like query language that presents data in the
form of tables. Hive programming is similar to database programming.
Oozie A Hadoop job scheduler.
Pig A platform for manipulating data stored in HDFS that includes a compiler for
MapReduce programs and a high-level language called Pig Latin. It provides a
way to perform data extractions, transformations and loading, and basic
analysis without having to write MapReduce programs.
Solr A scalable search tool that includes indexing, reliability, central configuration,
failover and recovery.
Spark An open-source cluster computing framework with in-memory analytics.
Sqoop A connection and transfer mechanism that moves data between Hadoop and
relational databases.
Zookeeper An application that coordinates distributed processing.
YARN:
Yet Another Resource Negotiator, as the name implies, YARN is the one who helps to manage
the resources across the clusters. In short, it performs scheduling and resource allocation for the
Hadoop System.
Consists of three major components i.e.
1. Resource Manager
2. Nodes Manager
3. Application Manager
Resource manager has the privilege of allocating resources for the applications in a system
whereas Node managers work on the allocation of resources such as CPU, memory, bandwidth
per machine and later on acknowledges the resource manager.
Application manager works as an interface between the resource manager and node manager and
performs negotiations as per the requirement of the two.
MapReduce:
By making the use of distributed and parallel algorithms, MapReduce makes it possible to
carry over the processing’s logic and helps to write applications which transform big data sets
into a manageable one.
MapReduce makes the use of two functions i.e. Map() and Reduce() whose task is:
1. Map() performs sorting and filtering of data and thereby organizing them in the form of group.
Map generates a key-value pair based result which is later on processed by the Reduce() method.
2. Reduce(), as the name suggests does the summarization by aggregating the mapped data. In
simple, Reduce() takes the output generated by Map() as input and combines those tuples into
smaller set of tuples.
6 Write the implementation of IoT using Raspberry Pi.
IMPLEMENTATION OF IOT USING RASPBERRY PI
Program1
IOT: Remote Data Logging
System Overview:
Requirements
DHT Sensor
4.7K ohm resistor
Jumper wires
Raspberry Pi
Program2
Data Processing Techniques
Data from the client needs to be processed before it can be used further
Data splitting/filtering
Data plotting
Plotting the data:
MATPLOTLIB is a python library used to plot in 2D
Plot(x,y): plots the values x and y
xlabel(‘X Axis'): Labels the x-axis
ylabel(‘Y Axis'): Labels the y-axis
title("Simple Plot"): Adds title to the plot
1. Volume
2. Velocity
3. Variety
4.Variability
5.Veracity
6. Visualization
7.Value
Volume
Quantity of data that is generated
Sources of data are added continuously
Example of volume
1. 30TB of images will be generated every night from the Large Synoptic Survey
Telescope (LSST)
2. 72 hours of video are uploaded to YouTube every minute
Velocity
*Refers to the speed of generation of data
*Data processing time decreasing day by day in order to provide real time services
*Older batch processing technology is unable to handle high velocity of data
Example of velocity –
1. 140 million tweets per day on average (according to a survey conducted in 2011)
2. New York Stock Exchange captures 1TB of trade information during each trading
Session
Variety
* Refers to the category to which the data belongs
*No restriction over the input data formats
*Data mostly unstructured or semi structured
Example of variety –
1. Pure text, images, audio, video, web, GPS data, sensor data, SMS, documents, PDFs,
flash etc.
Variability
*Refers to data whose meaning is constantly changing.
*Meaning of the data depends on the context.
*Data appear as an indecipherable mass without structure
Example:
Language processing, Hashtags, Geo spatial data, Multimedia, Sensor events
Veracity
*Veracity refers to the biases, noise and abnormality in data.
*It is important in programs that involve automated decision making, or feeding the data
into an unsupervised machine learning algorithm.
*Veracity isn’t just about data quality, it’s about data understandability
Visualization
*Presentation of data in a pictorial or graphical format Enables decision makers to see
analytics presented visually , Identify new patterns
Value
*It means extracting useful business information from scattered data.
*Includes a large volume and variety of data
*Easy to access and delivers quality analytics that enables informed decisions
Platform as a Service (PaaS)
Software as a Service (SaaS)
Short questions
1 List the advantages of big data analytics.
1. Allows for the identification of important (and often mission critical) trends
2. Helps businesses identify performance problems that require some sort of action
3.Can be viewed in a visual manner, which leads to faster and better decisions
4.Better awareness regarding the habits of potential customers
5.It can provide a company with an edge over their competitors
2 Explain features of Data Handling.
The process of collecting, Recording, and representing data in some form of graph or
chart to make it easy for people to understand.
3 Enumerate on importance of SDN.
Software defined networking (SDN) is a new networking paradigm to make the current
wireless and mobile networks more “intelligent”, efficient, secure, and scalable in order
to handle the large amount of data produced in the IoT.
Cloud computing works to improve the efficiency of daily tasks in conjunction with the Internet
of Things. Cloud computing is about providing a path for data to reach its destination while the
Internet of Things generates a huge amount of data.
According to Amazon Web Services, there are four benefits of cloud computing:
No need to pre-guess infrastructure capacity needs
Saves money, because you only need to pay for those resources that you use, the larger the scale,
the more savings
In a few minutes, platforms can be deployed around the world
Flexibility and speed in providing resources to developers
Thus, the role of cloud computing in IoT is to work together to store IoT data, providing easy
access when needed. It’s important to note that cloud computing is an easy way to move large
data packets across the Internet generated by the IoT.
2 Explain Sensor Cloud in details.
A sensor-cloud is the combination of WSNs and cloud computing and controls sensor
networks through a cloud for information collection, processing, and storage.
Dozens of sensors are available today, but the five most important sensors for the maintenance
professional are vibration, gas, temperature, humidity, and security sensors.
The technological advancement of wireless sensor networks (WSNs) empowers numerous real-
life applications such as target tracking, battlefield monitoring, telemonitoring, ubiquitous
monitoring, and several other applications. However, these WSNs are single-user centric. On the
other hand, for certain applications such as environment monitoring and telemonitoring, the data
from the single sensor networks can be shared among multiple applications. In these scenarios,
Sensor-Cloud can play a huge role to provision the Sensors-as-a-Service (Se-aaS) platform,
while satisfying the requirements of multiple applications by forming virtual sensors in a cloud
platform. The sensor-cloud architecture has been conceived as a potential solution for
multiorganization WSN deployment and data access.
Conceptualization of Sensor-Cloud
Mathematical Modelling
In this work, we present a mathematical formulation of sensor-cloud, which is very important for
studying the behavior of WSN-based applications in the sensor-cloud platform. We also
suggested a paradigm shift of technology from traditional WSNs to sensor-cloud architecture. A
detailed analysis is made based on the performance metrics – energy consumption, fault-
tolerance, and lifetime of a sensor node. A thorough evaluation of the cost-effectiveness of
sensor-cloud is also done by examining the cash inflow and outflow characteristics from the
perspective of every actor of sensor-cloud.
Big-Sensor-Cloud Infrastructure
This work relates to the development of Big-Sensor-Cloud Infrastructure (BSCI) that immensely
enhances the usability and management of the physical sensor devices. BSCI is a distributed framework
for “Big” sensor-data storage, processing, virtualization, leveraging, and efficient remote management.
The methods of the proposed BSCI are persuasive as they are equipped with the ability to handle “Big”
data with enormous heterogeneous data volumes (in zettabyte) generated with tremendous velocity. The
framework interfaces between the physical and cyber worlds, thereby acquiring real-time data from the
physical WSNs into the cloud platform.
Virtual Sensor Formation in Sensor-Cloud
Dynamic Mapping of Virtual Sensors
In this work, the problem of dynamic mapping of virtual sensors in sensor-cloud is divided into
two subproblems — optimal dispersed node selection and optimal data-rate distribution, and
analyze that these problems are NP-complete. Hence, we propose a game theory-based online
scheme, named QADMAP, to solve these two problems in polynomial time.
In this work, we propose algorithms for efficient virtualization of the physical sensor nodes and
optimal composition of VSs — within the same geographic region and spanning across multiple
regions.
Caching in Sensor-Cloud
Heterogeneous Caching Mechanism
In this work, we focus on designing an optimal, and adaptive data caching mechanism to be
implemented within sensor-cloud environment. This work models the data caching to be
followed with the External Cache (EC) and the Internal Cache (IC).
Adaptive Caching Mechanism
In this work, we propose a dynamic, and adaptive caching mechanism for efficient virtualization
in sensor-cloud. The proposed caching mechanism is flexible with the varied rate of change of
the physical environment.
Resource Management in Sensor-Cloud
Bridge Node Selection
In this work, we focus on obtaining an optimal decision rule to select a bridge node on behalf of
a VSN. The work achieves the reduce energy consumption of every node which, in turn,
improves the energy expenditure of the entire VSN.
Gateway Selection
In this work, we study the optimal gateway selection problem in sensor-cloud framework for
real-time patient monitoring system by using a zero-sum game model.
Also appliable in agriculture field, medical fields etc.,
3 How we can build Smart Home with IOT?
Another use case of IoT in smart homes extends to doors, providing added convenience and
security for homeowners.
1. Installing digital locks to control access to the homes remotely via a mobile app.
2. Integrating digital locks with smart home devices, cameras, and motion sensors to
achieve better security.
Define Goals and Requirements.
Determine The Unique Features.
Choose Tech Stack for IoT Smart Home App Development.
Design the User Interface (UI/UX)
Integration with IoT Devices.
Implement Automation and Control Features.
Finalize and Deploy.
IoT devices in smart homes allow for automation of various tasks. For example, lights,
thermostats, and appliances can be controlled remotely or set to operate on a schedule. Smart
speakers like Amazon Echo and Google Home enable voice commands to control devices,
making daily routines more efficient.
A domestic automation system can monitor and/or manage home attributes adore lighting,
climate, enjoyment systems, and appliances. It is very helpful to control your home devices.
It’s going to in addition incorporates domestic security such as access management and alarm
systems. Once it coupled with the internet, domestic gadgets are a very important constituent of
the Internet of Things.
A domestic automation system usually connects controlled devices to a central hub or gateway.
The program for control of the system makes use of both wall-mounted terminals, tablet or
desktop computers, a smartphone application, or an online interface that may even be
approachable off-site through the Internet.
Smart Home automation refers to the use of technology to control and automate various
functions in a home, such as lighting, heating, air conditioning, and security. In the context of
IoT (Internet
One of the key benefits of IoT-enabled home automation is the ability to control and monitor a
wide range of devices and systems from a single, centralized location, such as a smartphone or
tablet. This can include everything from lighting and temperature control to security cameras and
alarm systems.
Another advantage of IoT-enabled home automation is the ability to remotely monitor and
control devices, even when away from home. This can be useful for controlling energy
consumption and ensuring the safety and security of the home.
IoT-enabled home automation systems typically involve the use of smart devices, such as
thermostats, light bulbs, and security cameras, that can be controlled and monitored through a
centralized hub or app. These smart devices can communicate with each other and with the
centralized hub using wireless protocols such as Zigbee, Z-Wave, and Bluetooth.
In addition, IoT-enabled home automation systems can integrate with other smart home
technologies, such as voice assistants like Alexa and Google Home, to provide additional
functionality and convenience.
Overall, IoT-enabled home automation can provide many benefits to homeowners, including
increased convenience, energy efficiency, and security. However, it is important to ensure the
security of these systems, as they may be vulnerable to hacking and other cyber threats.
Component-1 :
Smart Lighting :
Smart lighting for home helps in saving energy by adapting the life to the ambient condition and
switching on/off or dimming the light when needed.
Smart lighting solutions for homes achieve energy saving by sensing the human movements and
their environments and controlling the lights accordingly.
Component-2 :
Smart Appliances :
Smart appliances with the management are here and also provide status information to the users
remotely.
Smart washer/dryer can be controlled remotely and notify when the washing and drying are
complete.
Smart refrigerators can keep track of the item store and send updates to the users when an item is
low on stock.
Component-3 :
Intrusion Detection :
Home intrusion detection systems use security cameras and sensors to detect intrusion and raise
alerts.
Alert can we inform of an SMS or an email sent to the user.
Advanced systems can even send detailed alerts such as an image shoot or short video clips.
Component-4 :
Smoke/gas detectors:
Smoke detectors are installed in homes and buildings to detect smoke that is typically an early
sign of Fire.
It uses optical detection, ionization for Air sampling techniques to detect smoke.
Gas detectors can detect the presence of harmful gases such as CO, LPG, etc.
It can raise alerts in the human voice describing where the problem is.
4 How we can build Smart City with IOT?
Smart Traffic Management. IoT sensors can be installed on traffic lights, roadways, and vehicles
to collect data on traffic patterns, congestion, and accidents.
Keys that define a Smart City
Use of information and communication technologies.
Building and control automation.
Efficient urban planning.
Urban mobility and sustainable public transport.
Smart waste management.
Improving environmental sustainability.
Concern for the social environment.
Technologies applied to education.