Introduction To IoT
Introduction To IoT
Introduction to IoT
2. Definition and characteristics of IoT, Design of IOT
3. Physical design of IOT
4. Logical Design of IOT- Functional Blocks
5. Communication models
6. Communication APIs
7. IOT enabling Technologies- Wireless Sensor Networks
8. Cloud computing
9. Big data analytics
10.Embedded systems
11.IOT Levels and deployment templates
12.IoT Hardware and Software
13.Sensor and actuator
14.Humidity sensors
15.Ultrasonic sensor
16.Temperature Sensor
17.Arduino,
18.Raspberry Pi
19.LiteOS
20.RIoTOS
21.Contiki OS
22.Tiny OS
23.Architecture and Reference Model: Introduction,
24.Reference Model and architecture
25.Representational State Transfer (REST) architectural style
26.Uniform Resource Identifiers (URIs)
27.Challenges in IoT- Design challenges
28.Development challenges
29.Security challenges
30.Other challenges
31.IOT and M2M
32.M2M
33.Difference and similarities between IOT and M2M
34.Software defined networks, network function virtualization
35.Difference between SDN and NFV for IoT
36. Case study of IoT Applications
37. Domain specific IOTs- Home automation
38. Cities, environment
39. Energy
40. Retail
41. Logistics
42. Agriculture
43. Industry
44. Health and Lifestyles
Introduction to IoT:
The Internet of Things (IoT) is a system of interrelated computing devices,
mechanical and digital machines, objects, animals or people that are
provided with unique identifiers and the ability to transfer data over a
network without requiring human-to-human or human-to-computer
interaction.”
If you just read that and thought, “ok, so what?”, you’re not alone. Most
people don’t want to nor need to dive into the nitty-gritty of IoT. In this
chapter, we’ll provide you with a simple explanation of the Internet of
Things and what it means for you.
Before we jump in, note that “The Internet of Things” and “IoT” can and will
be used interchangeably. And a quick tip to sound knowledgeable: avoid
saying “the IoT”.
A Simple, Non-Technical
Explanation of the Internet of
Things
How are you reading this ebook right now? It might be on desktop, on
mobile, maybe a tablet, but whatever device you’re using, it’s most likely
connected to the internet.
The point is that connecting things to the internet yields many amazing
benefits. We’ve all seen these benefits with our smartphones, laptops, and
tablets, but this is true for everything else too. And yes, we do
mean everything.
The Internet of Things is actually a pretty simple concept, it means taking
all the physical places and things in the world and connecting them to
the internet.
Confusion arises not because the concept is so narrow and tightly defined,
but rather because it’s so broad and loosely defined. It can be hard to nail
down the concept in your head when there are so many examples and
possibilities in IoT.
And all three of these have enormous benefits that compound on each
other.
Just as our sight, hearing, smell, touch, and taste allow us, humans, to
make sense of the world, sensors allow machines (and the humans
monitoring the machines) to make sense of the world.
You can take it a step further too. If the irrigation system receives
information about the weather from its internet connection, it can also know
when it’s going to rain and decide not to water the crops today because
they’ll be watered by the rain anyways.
And it doesn’t stop there! All this information about the soil moisture, how
much the irrigation system is watering the crops, and how well the crops
actually grow can be collected and sent to supercomputers that run
amazing algorithms that can make sense of all this information.
And that’s just one kind of sensor. Add in other sensors like light, air
quality, and temperature, and these algorithms can learn much, much
more. With dozens, hundreds, thousands of farms all collecting this
information, these algorithms can create incredible insights into how to
make crops grow the best, helping to feed the world.
But before we do, we should first make the distinction between consumer
IoT and enterprise IoT. Consumer IoT refers to things like wearables, smart
home devices, etc., all of which are marketed directly to consumers. In
contrast, enterprise IoT refers the use of IoT in improving an organization’s
existing systems and processes and enabling organizations to increase
operational efficiency or unlock entirely new value (e.g. by launching new
business lines or products).
It’s helpful to think of IoT as doing one (or more) of the following:
increasing efficiency, improving health/safety, or creating better
experiences.
Increasing Efficiency
“This years’ series of Internet of Things (IoT) and Industrial Internet of
Things (IIoT) forecasts reflect a growing focus on driving results using
sensor-based data and creating analytically rich data sets…solving
complex logistics, manufacturing, services, and supply chain problems.” —
Louis Columbus, Roundup Of Internet Of Things Forecasts And Market
Estimates, 2016
Increasing efficiency means more output with the same input or the same
output with less input. Inputs could include time, energy, money, or
resources. Output could be units produced or tasks accomplished.
Asset Tracking
Whether the assets are big or small, fixed or mobile, attaching sensors to
them allows organizations to track real-time location, monitor performance,
improve workflows, and optimize utilization.
Manufacturing Efficiency
Sensors embedded in manufacturing equipment and placed throughout a
factory can help identify bottlenecks in the manufacturing process. By
addressing bottlenecks, manufacturing time and waste is reduced.
Energy Efficiency
Agricultural Efficiency
For outdoor agriculture, an example could be sensing soil moisture and
taking weather into account so that smart irrigation systems only water
crops when needed, reducing the amount of water usage.
For indoor agriculture, IoT allows monitoring and management of micro-
climate conditions (humidity, temperature, light, etc.) to maximize
production.
Inventory Management
By placing tags on individual products, the exact location of single items in
a large warehouse can be shared, thus saving search time and lowering
labor costs.
Law Enforcement
Better surveillance and tracking tools will allow authorities to detect when
crime has occurred and respond much faster, keeping citizens safer. Also,
law enforcement will even be able to predict crime, stopping it from
happening in the first place.
Care giving
Patient surveillance can be life-saving; automatically detecting when
someone falls down or when they begin to experience a heart attack so
that emergency care can be sent immediately.
Environmental Quality
Sensors can also detect radiation, pathogens, and air quality so that
dangerous concentrations can be identified early, allowing people to
evacuate.
Better Experience
“We are stuck with technology when what we really want is just stuff that
works” — Douglas Adams, The Salmon of Doubt
The Internet of Things will allow our world to increasingly shape itself to our
needs and our wants, creating a better experience. Rather than just
passively providing information and reacting to our inputs, much of the
value of IoT will come from anticipating and addressing needs
automatically.
While you might group the above example under energy efficiency because
it would in fact be saving energy, this would undervalue the better
experience provided to all your employees to make sure everyone has the
optimal temperature for comfort and performance.
Hopefully you’re beginning to grasp the potential of IoT, and some ways
that you can apply it to or within your own organization. But how does an
IoT system work exactly?
We’ll outline what each one means in the sections below and how they
come together to form a complete IoT system. Each of these sections will
also serve as the organizational structure of the rest of this ebook, and we’ll
dive into these components more deeply in the chapters to follow.
1) Sensors/Devices
First, sensors or devices collect data from their environment. This data
could be as simple as a temperature reading or as complex as a full video
feed.
However, whether it’s a standalone sensor or a full device, in this first step
data is being collected from the environment by something.
2) Connectivity
Next, that data is sent to the cloud, but it needs a way to get there!
3) Data Processing
Once the data gets to the cloud (we’ll cover what the cloud means in our
data processing section)), software performs some kind of processing on it.
This could be very simple, such as checking that the temperature reading is
within an acceptable range. Or it could also be very complex, such as using
computer vision on video to identify objects (such as intruders on a
property).
But what happens when the temperature is too high or if there is an intruder
on property? That’s where the user comes in.
4) User Interface
Next, the information is made useful to the end-user in some way. This
could be via an alert to the user (email, text, notification, etc). For example,
a text alert when the temperature is too high in the company’s cold storage.
A user might have an interface that allows them to proactively check in on
the system. For example, a user might want to check the video feeds on
various properties via a phone app or a web browser.
And some actions are performed automatically. Rather than waiting for you
to adjust the temperature, the system could do it automatically via
predefined rules. Rather than just call you to alert you of an intruder, the
IoT system could also automatically notify security teams or relevant
authorities.
In Summary
An IoT system consists of sensors/devices which “talk” to the cloud through
some kind of connectivity. Once the data gets to the cloud, software
processes it and then might decide to perform an action, such as sending
an alert or automatically adjusting the sensors/devices without the need for
the user.
But if user input is needed or if the user simply wants to check in on the
system, a user interface allows them to do so. Any adjustments or actions
that the user makes are then sent in the opposite direction through the
system: from the user interface, to the cloud, and back to the
sensors/devices to make some kind of change.
That’s how an IoT system works at a high level. Now we’ll take a deeper
dive into each of these components to explain what they are, how they
work, and important considerations for your organization as you consider
building and/or implementing IoT solutions.
Hardware Capabilities
As we established in the previous chapter, sensors/devices are a critical
piece of the Internet of Things, serving as a system's "senses" by
interacting with the world. Although no complete IoT solution can be built
without some kind of hardware, the sensors/devices are often an
underappreciated aspect of the system. Choices about the hardware affect
everything downstream, from the connectivity you choose, to the analytics
you’re able to provide, and to the interactions and interfaces that you
enable for end-users.
There are too many sensors/devices to possibly provide an exhaustive list
here. Ultimately, the choices you make on hardware stem directly from the
needs the specific application your organization is interested in pursuing.
So instead of exploring all the possible sensors/devices there are out there
for you to use, we’ll be providing some important factors you need to
consider.
Battery Considerations
One of the first considerations is whether or not the sensors/devices that
you’ll be using will have power available. If you’re designing, say, a smart
agriculture application with hundreds of sensors spread across broad, rural
areas, you’re going to have to rely on battery. If your application takes
place in a building and only involves a few devices, power may not be an
issue.
The reason this is one of the first considerations is because this directly
translates into how much you can do with the sensor/device. If your
hardware is battery-powered, you want it to last on battery power for a long
time - hopefully years (as we’ll cover in the next section, replacing and
managing batteries at scale is a huge operational burden).
But to get to multi-month or multi-year battery life, the device can’t be
constantly active. Power hungry operations on the device, such as using
GPS or sending and receiving messages over the network, must be used
judiciously.
To get a GPS fix, a device must “listen” for signals from at least 4 GPS
satellites that are in orbit (here’s how GPS works). Depending on the
terrain (which can block line-of-site to satellites) and the position of the
satellite constellation, this can take 30 seconds, 60 seconds, or more. All of
that time is time that the GPS unit is draining precious battery.
The same goes for connectivity. To receive messages over the network,
the sensors/devices must be in “listening” mode, and that means battery
drain. So when does your device listen? Are there situations where you
need to push a critical message down to the device, such as triggering an
alarm? Well that’s going to significantly impact your battery life. And if not,
how often do you want the device to check in?
OTA firmware updates are a critical tool in addressing issues that may
come up as you learn and refine, but they can also cause major issues. If
you’re considering pushing a firmware update to all of your
sensors/devices, make sure that you’ve tested extensively on a small
subset that are actually out in the field. We’ve had experiences where
firmware updates caused unforeseen issues and drained the batteries of
hundreds of devices before new firmware update to fix it could be sent
OTA.
Key Takeaways
We’ve given a few examples of important hardware considerations above,
but IoT applications vary so widely in their requirements that a
comprehensive exploration of all considerations isn’t within the scope of
this ebook.
One of the key takeaways from our experience is that no matter how much
you think through your application, inevitably you’re going to run into things
you didn’t foresee. So if your application has been done before, you may
be able to find hardware that has been purpose-built directly for your
application, which you can and should leverage.
It’s one thing to deal with a prototype that only has a few pieces of
connected hardware, or a pilot with just a few hundred sensors/devices at
one location. It’s quite another when you scale up to a full production
system with potentially millions of sensors/devices, and there are critical
considerations purely on the operations side that you need to address.
Are they spread over miles of terrain? That means you’ll need to know
where they all are, because if they run out of battery power they won’t be
using GPS.
Or maybe they don’t even have GPS because they’re just soil moisture
sensors and don’t need it. Do you go get them one at a time as the
batteries die? Or do you wait and do it in batches?
How do you replace the batteries? If you’re replacing, don’t forget the cost
of all the additional batteries you’ll need!
Or are they rechargeable? This means you don’t need to replace batteries,
which is nice, but now you need to figure out how they’re recharging. If they
can charge wirelessly that’s great, you can just put them on a wireless
charging matt and decrease hassle. But if they need to be plugged in, that
means either dedicated charging stations for multiple sensors/devices at
once, or a ton of wires. Or maybe the devices are cheap enough that you
just replace them completely; in that case make sure to consider how
you’re going to dispose of them!
Sensor/Device Association
Say you’re doing an asset tracking application. Great. That means you
have some way of tracking the location of the asset (probably GPS if
outdoors and over large areas, probably bluetooth if indoors and within
relatively confined areas) by putting a device on it. But how do you know
that a specific device is associated with a specific asset?
Regardless, you need a process for how you handle when a sensor/device
has an error. How do you 1) identify the error in the first place and 2)
address the issue once you find out?
Key Takeaways
The above considerations may not matter for many applications, whether
that’s because you don’t need that many devices or because you’re not
relying on battery power. Again, we bring up these examples simply to get
you thinking and realizing that there are many purely operational factors,
beyond technology, to consider when you go from prototype to pilot to full
scale.
This is why many IoT deployments fail. Not because the underlying
technology isn’t good enough, but because the sheer operational burden
makes the return-on-investment not worth the effort. This is also why it’s so
critical that you have a clear, measurable impact you’re trying to achieve
with your solution.
With software, if there are bugs or areas of improvement, you can update
the system after it’s live. And with the connectivity layer, you might be using
proven standards and existing infrastructure that carry relatively low risk
(like WiFi or Cellular). Even if you’re using a relatively new standard,
making updates to the network can also be performed after-the-fact.
With hardware, you are not making changes to your sensors/devices once
they’ve been produced. This is why having a small scale pilot is absolutely
critical, it allows you to rigorously test your prototypes to identify any bugs
or weaknesses in the hardware so that the final units can as purpose-built
for the specific use case as possible. And manufacturing usually involves
building injection molds, which help reduce per-unit costs but have massive
upfront fixed-costs, meaning that it’s extremely costly and time-intensive to
make changes.
Another reason that the manufacturing process can take a while, is that you
need to source all the materials. For a given sensor/device, there may be
dozens or into the hundreds of individual components necessary to build
the full device.
The manufacturer will need to set up production lines too. This involves
setting up all the equipment and assembly lines to actually manufacture the
sensors/devices, as well as setting up the testing processes for each
important stage. You want your sensors/devices to be tested throughout
the entire process to ensure that you don’t produce an entire batch of units
with defects.
Also, it’s critical to consider device behavior (which ties into our earlier
chapter on hardware capabilities). Do your devices “know” they’re being
shipped? Do they stay in sleep mode? We once made the mistake of
shipping units that, because of movement, “woke up” and began trying to
find a network. Since they were in transit, they couldn’t find a network and
ended up completely draining their batteries trying to connect. Most were
dead when they arrived on location.
Key Takeaways
It’s no accident that hardware has “hard” in its name. Here at Leverege, we
develop software solutions and act as the overarching systems integrator
on end-to-end IoT solutions; we don’t manufacture hardware. However,
we’ve been fortunate to have hardware partners with extremely deep
experience and high aptitude and recommend that you listen closely to the
words of any hardware partners you work with.
Gateways
As mentioned previously, our goal in this section of the ebook isn’t to go
into detail about specific sensor/device types. However, nearly every IoT
system needs some way to connect its sensors/devices to the cloud so that
data can be sent back-and-forth between them. So in this chapter we’ll be
exploring a particular type of IoT hardware called the gateway, which
makes that connection to the cloud possible.
Gateways act as bridges between sensors/devices and the cloud. Many
sensors/devices will “talk” to a gateway and the gateway will then take all
that information and “talk” to the cloud.
But you may be wondering, what benefit is there to taking that extra step
between the sensors/devices and the cloud? There are several benefits:
Battery life
As you may be noticing, battery life tends to be a critical consideration for
many IoT systems. For example, take an IoT solution that operates in a
remote area. To get data from sensors/devices to the cloud, there will need
to be a long-range connection, usually provided by satellite. As will be
explained in greater depth in the connectivity section, longer range typically
means increased power consumption (and costs); this can be a problem for
small sensors/devices with limited battery life.
If you’re doing Smart Agriculture, you want your field sensors to last years,
not months or weeks. By using an elevated gateway installed near the top
of an outbuilding or grain silo, the sensors/devices only have to send data a
relatively short distance to the gateway and the gateway can then send the
data to the cloud through a single higher bandwidth connection like
satellite.
Gateways allow sensors/devices to communicate over shorter distances,
boosting battery life.
Varying Protocols
A complete IoT application might involve many different kinds of sensors
and devices. Using Smart Agriculture again, you might want sensors for
temperature, moisture, and sunlight and devices such as automated
irrigation and fertilizer systems.
All of the different sensors and devices can use varying transmission
protocols (basically, the rules and format for the information being
transmitted). Protocols include LPWAN, Wi-Fi, Bluetooth, and Zigbee,
among many others.
Unfiltered Data
Sometimes, sensors/devices can generate so much data that it’s
overwhelming to the system or extremely costly to transmit and store. Often
in such cases, only a small fraction of the data is actually valuable. For
example, a security camera doesn’t need to send video data of an empty
hallway.
High Latency
Time can be critical for certain IoT applications; the sensors/devices can’t
afford to transmit data to the cloud and wait to get a response before taking
action. This is true for life-or-death situations in the medical realm or for
fast-moving objects like cars.
Security
Every sensor/device that is connected to the internet becomes vulnerable
to being hacked. Hacked sensors/devices are bad. Not just for the owner,
but for everyone else too.
Key Takeaway
Not all IoT applications will need a gateway, but they’re an important class
of hardware that’s often a requirement for certain use cases because
they’re needed to provide the connectivity to the sensors/devices.
In the next section we’ll explore connectivity as a whole for IoT as well as
specific connectivity and network standards that you may need to consider.
Chapter 3: Connectivity
An Introduction to
Connectivity
When it comes to connecting the Internet of Things, there are a seemingly
overwhelming number of options. Cellular, satellite, WiFi, Bluetooth, RFID,
NFC, LPWAN, and Ethernet are just some of the possible ways to connect
a sensor/device. And within each of these options there can be different
providers (e.g. for cellular there’s T-Mobile, Verizon, AT&T, Sprint, etc.).
LPWANs send small amounts of data which allows them to operate at very
low power with ranges in miles rather than feet. For example, a moisture
sensor for agricultural purposes doesn’t need to send a lot of data, perhaps
just a single number (the moisture level) every few hours. You also don’t
want this sensor to consume a lot of power because it needs to run on
battery (plugging it into an outlet in the middle of a field just isn’t realistic).
And since agriculture covers a wide area, WiFi and Bluetooth lack the
range.
LPWANs are extremely useful for many IoT applications. They allow tons of
sensors/devices to collect and send data over broad areas while lasting
years on battery life. Although they can’t send much data, most sensors
don’t need to. However, these kinds of application often need IoT gateways
to work, which we explored in the previous chapter.
However, there are certain cases where the data processing or the
interaction with the sensor/device through the user interface can take place
without any data first being transferred over an external network.
Even if you’re the one driving the car, you want the user interface (i.e. the
steering wheel) directly hooked up to the device (i.e the car) rather than
waiting for your input to be transmitted externally, processed, and then sent
back.
Another reason is that sending lots of data can become really expensive.
Some IoT applications collect a ton of data but only a small fraction is
actually important. Local algorithms can restrict what gets sent thus
lowering costs.
For the security camera, it could use machine vision to “watch” for anything
abnormal and only then send that footage to the cloud.
For the self-driving car, the data processing all takes place in the onboard
computer which allows for faster decision-making.
Key Takeaway
Every IoT system combines the four components we’ve outlined and begun
to detail, Sensors/Devices, Connectivity, Data Processing, and User
Interface. However, an IoT system can combine these components in
different ways and can use very different forms of connectivity. It all comes
down your specific application and organizational need.
In the coming chapters we’ll take a deeper dive into some of the
connectivity options we’ve mentioned here.
LPWAN
As the name implies, Low-Power Wide-Area Networks (LPWANs) allow for
low power consumption over a wide area, aka long range. So how is this
accomplished?
Messages sent over LPWAN must be small and simple. Because of their
simplicity, these messages can be communicated over the distance without
a large power source. For machines, decreasing the amount of data sent
(the bandwidth) means lower energy at range.
This is what LPWANs do, they send and receive small packets of
information at infrequent intervals. Sensor/devices can send data over
miles of range instead of feet and can last for years on battery instead of
weeks or months.
Key Takeaways
IoT applications can vary greatly, but many applications need tons of
sensors spread over big areas.
There are many ways for these sensors/devices to communicate, each with
varying pros and cons. When you have thousands of sensors spread over
a big area, you need wireless communication with long range and low
power consumption. After all, and as we covered previously, it’s a
tremendous operational burden to replace the batteries in thousands of
sensors on a frequent basis.
It’s important to note that LPWAN is a general term, and there are many
different competing standards and technologies under that umbrella. The
competing LPWAN standards and technologies include but are not limited
to: LoRa, SIGFOX, Ingenu, Weightless, and SymphonyLink. For the
purposes of this ebook we won’t go into detail on these specific
technologies, but at Leverege we have hands-on experience with most of
them which we’re always happy to share if you’re weighing them for an
application.
Cellular
Cellular networks provide the backbone for much of what we know and
love, allowing us to access the internet, send messages, and connect with
friends. In addition to the personal benefits we're all familiar with, cellular
networks also serve a critical role in many Internet of Things applications.
This is fine for devices that are connected to an electricity source or that
can be recharged often (i.e. your phone), but a no-go when it comes to IoT
applications that require remote sensors/devices to last months or years on
battery.
Some of these cellular technologies are currently available, and others are
promised but yet to come. This also includes 5G, which will also
have significant implications for IoT applications and enable high-
bandwidth, high-speed applications like Ultra-HD (4K) streaming, self-
driving car connectivity, or VR/AR applications.
Key Takeaway
It’s important to understand that these different options do not have to be
mutually exclusive. This extends to other connectivity options as well, like
the LPWANs.
Satellite
As the name implies, this form of connectivity uses satellites to connect
sensors/devices to the cloud. The first artificial communications satellite
was launched in 1960, and served merely as a giant reflector for signals
beaming between different places on the earth’s surface. Today’s
communications satellites are much more robust and featured.
Direct
The first major type of configuration, direct, is broken down into the two
sub-categories: dual mode and satellite only.
Backhaul
The second major type of configuration, backhaul, uses a main tower that
connects directly to a satellite and then a different kind of connectivity (e.g.
an LPWAN) to connect with the sensors/devices in the area. This
connectivity option is typically used when you have many low bandwidth
sensors/devices in remote areas.
Satellite requires high power usage, and can require larger pieces of
equipment such as dishes for connectivity. This raises the cost for
individual sensors/devices, and can make direct connection infeasible for
groups of sensors/devices that don’t use much data.
One example of this is a farm that uses a set of moisture sensors to collect
soil data. All of those sensors may use an LPWAN to connect to a main
tower that then transmit the data over a satellite connection. This saves on
battery life and lowers the overall cost of the sensors.
Key Takeaways
Satellite has excellent coverage, but with it comes larger equipment and
higher battery usage than other connectivity options. Satellite also has
good bandwidth, but can be expensive at scale. As such it fills a niche
where a single tower can be used to service a group of sensors/devices,
sensors/devices are larger and higher costs are acceptable, or
sensors/devices are so remote that satellite is the only means of
transmitting data to the cloud.
WiFi
WiFi has a few notable differences from other wireless technologies. For
example, WiFi transmits at frequencies of 2.4 GHz or 5 GHz. These
frequencies are much higher than the frequencies used for cellular
transmission. Higher frequency means that signals can carry more data.
In fact, the longest range WiFi has ever transmitted data is 260 miles. The
Swedish Space Agency transmitted data to an overhead stratospheric
balloon 260 miles away, but they used non-standard WiFi equipment and 6
watt amplifiers to achieve this.
For your average WiFi router, ranges are much, much shorter and depend
on a number of factors. Range can depend on the antenna, reflection and
refraction, and radio power output. A range of about 100 ft is common, so if
you have thousand of sensors out in a field, WiFi isn’t a great option.
WiFi can be good for IoT applications that don’t have to worry about power
drain (e.g. devices that are plugged into an outlet), that need to send a lot
of data (e.g. video), and that don’t need high range. A good example would
be a home security system.
Types of WiFi
Like LPWANs and cellular connectivity, there are several versions of WiFi
including, 802.11a, 802.11b, 802.11g, 802.11n, and 802.11ac.
So, while WiFi currently isn’t great for many IoT applications, there are two
WiFi standards that have been developed, or are being developed,
specifically for IoT; WiFi HaLow (802.11ah) and HEW (802.11ax).
WiFi HaLow was ratified in 2016 and aimed at addressing range and power
concerns for IoT applications. HEW (High Efficiency Wireless) is an
upcoming standard that builds on HaLow to add additional IoT-friendly
features.
Key Takeaway
As always, it all comes down to your specific application. One of the
advantages of WiFi is that it’s a proven and standardized technology that’s
already present in many buildings and public areas. However, current
instantiations of WiFi lack the necessary range and consume too much
power for many IoT applications.
Bluetooth
Invented by Ericsson in 1994, Bluetooth was intended to enable wireless
headsets. Bluetooth has since expanded into a broad variety of
applications including Bluetooth headsets, speakers, printers, video game
controllers, and much more.
Not only can a device be a parent in one piconet and a child in a different
piconet at the same time, but the parent-child relationship can also switch.
When you put your Bluetooth device in pairing mode to connect it, it’s
temporarily becoming the parent so that it can establish a connection and
proceeds to connect as the child.
Bluetooth Version 5
The Bluetooth Special Interest Group officially adopted Bluetooth 5 as the
latest version of Bluetooth back in December 2016.
Key Takeaway
In addition to the capabilities explored above, Bluetooth can also provide
indoor asset tracking by using multiple Bluetooth beacons and using their
relative signal strengths to triangulate position. GPS is great for outdoor
applications but has inherent accuracy limitations and fails indoors when
sensors/devices can’t receive the signal from the GPS satellites.
Together with the advantages in noisy environments and the ease of setup,
Bluetooth is therefore a strong option for many indoor Internet of Things
applications.
Chapter 4: Data Processing
Back in the 1970s, it was popular for businesses to rent time using big,
mainframe computer systems. These systems were extremely large and
expensive, so it didn’t make sense financially for businesses to own the
computing power themselves. Instead, they were owned by large
corporations, government agencies, and universities.
The largest cloud providers are Amazon, Google, and Microsoft, who have
huge farms of servers that they rent to businesses as part of their cloud
services.
For businesses that have variable needs (most of the time they don’t need
much computing, but every now and then they need a lot), this is cost
effective because they can simply pay as-needed.
When it comes to people, we use these cloud services all of the time. You
might store your files in Google Drive instead of on your personal
computer. Google Drive, of course, uses Google’s cloud services.
Generally, something that happens “in the Cloud” is any activity that takes
place over an internet connection instead of on the device itself.
The Internet of Things and the
Cloud
Because activities like storage and data processing take place in the cloud
rather than on the device itself, this has had significant implications for IoT.
Many IoT systems make use of large numbers of sensors to collect data
and then make intelligent decisions.
Using the cloud is important for aggregating data and drawing insights from
that data. For instance, a smart agriculture company would be able to
compare soil moisture sensors from Kansas and Colorado after planting
the same seeds. Without the cloud, comparing data across wider areas is
much more difficult.
Using the cloud also allows for high scalability. When you have hundreds,
thousands, or even millions of sensors/devices, putting large amounts of
computational power on each sensor/device would be extremely expensive
and energy intensive. Instead, data can be passed to the cloud from all
these sensors and processed there in aggregate.
For much of IoT, the head (or rather, the brain) of the system is in the
cloud. Sensors/devices collect data and perform actions, but the
processing/commanding/analytics (aka the “smart” stuff), typically happens
in the cloud.
However, there are substantial benefits to be had using the cloud for many
IoT applications including:
Latency. It takes time for data to be sent to the cloud and commands
to return to the device. In certain IoT applications, these milliseconds
can be critical such as in health and safety. A good example is
autonomous vehicles. If a crash is imminent, you don’t want to have
to wait for the car to talk to the cloud before making a decision to
swerve out of the way.
Introduction to IoT Platforms
Whether you’re new to IoT or a seasoned veteran, you’ve probably heard
the term “IoT Platform” before. After all, there were over 300 IoT
platforms as of 2016 and this number continues to quickly grow (I’ve heard
there are now over 700). The IoT platform market is growing at a
compound annual growth rate (CAGR) of 33% and is expected to reach
a $1.6 billion market size in 2021.
Connect hardware.
However, there is a tradeoff. IoT platforms that save you time may cost
more in the long run depending on how they’re priced. This is because they
charge use-based and/or subscription fees that can add up over time. But
you still get the benefit of significantly lower up-front costs (no CapEx).
IoT platforms that are inexpensive up front will likely cost you time. This
comes back to the same point in bold above, the less you spend the more
work you’ll have to do on your own, which takes time.
Choosing an IoT Platform
How do you know which IoT platform is the best? As much as we’d like to
give you a simple answer, as with most things, it depends. O’Reilly Media
puts it nicely:
That being said, there’s a key distinction between enterprise IoT platforms
and consumer IoT platforms. Consider: is your application enterprise (such
as oil and gas, manufacturing, or asset management) or meant for
consumers (such as smart home applications or wearables)?
Enterprise IoT platforms and consumer IoT platforms can differ significantly
due to their different needs. For enterprise IoT platforms, a failure in the
system can be extremely high-stakes, perhaps costing millions of dollars or
even lives. For consumer IoT platforms, a failure might simply be an
inconvenience to the end-user.
Ask about current and past customers. If they don’t have any, that’s
probably not a good sign.
It’s also important that the platform is network agnostic. This means that it
can integrate and work with all major tech systems out there, rather than be
locked into one vendor.
However, note that it need not be an exact match. If you’re building a smart
agriculture application, for example, you might look for a use case with
similar characteristics. That would be an application that also involves
hundreds or thousands of sensors/devices generating data, a similar
connectivity (such as LPWAN), and applied data analytics to create useful
insights.
Also, how are you going to be selling? If you’re doing a subscription model,
then it makes sense to pay a subscription for the IoT platform service, since
you can wrap the costs into the pricing. However, if you’re selling hardware,
it might make more sense to pursue a platform option with an upfront
license so you can wrap that into the development costs of the hardware
product.
6. Time to Market
In the previous chapter, we saw that one of the biggest advantages of
using an IoT platform is that it speeds up the time to market. Ask for a
realistic estimate of how long it will take to get to market and how the
platform provider intends to support you during that journey.
APIs
If there’s one thing you’ve learned so far, it should be that a complete IoT
system requires many different components all working closely together.
We’ve explored the hardware that collects data, the connectivity that sends
that data, and now the cloud and IoT platforms that ingest that data to
make it useful.
However, even at just the cloud level there is a need for systems to
communicate and work together and that’s what Application Program
Interfaces (APIs) make possible. This is especially important for programs
because they can be written in different languages, so APIs provide a
means for different programs to overcome the “language barrier”.
In addition, APIs mean that users of your system don’t need to leave your
system to use another organization’s application. For example, by using
weather.com’s API, you can request current weather data and display it on
your site or app for users. That way users can get weather information
without having to leave your site or app and go to weather.com.
Also, APIs reduce complexity. When you use an API to request something
from an application, many complex processes occur behind the scenes that
you don’t have to worry about. You just get whatever it is that you
requested in return.
And this also means that you can build a business by creating an API that’s
extremely valuable for other organizations to use. If you’re a city, you may
have data on foot traffic or vehicle traffic that could help local businesses or
create new services to provide value to residents.
Later we’ll explore the value of machine learning in greater depth, but at a
high level, machine learning takes large amounts of data and generates
useful insights that help the organization. That could mean improving
processes, cutting costs, creating a better experience for the customer, or
opening up new business models.
Data analytics can help quantify and track goals, enable smarter decision
making, and then provide the means for measuring success over time.
So When Is Machine Learning
Valuable?
The data models that are typical of traditional data analytics are often static
and of limited use in addressing fast-changing and unstructured data.
When it comes to IoT, it’s often necessary to identify correlations between
dozens of sensor inputs and external factors that are rapidly producing
millions of data points.
While traditional data analysis would need a model built on past data and
expert opinion to establish a relationship between the variables, machine
learning starts with the outcome variables (e.g. saving energy) and then
automatically looks for predictor variables and their interactions.
With 120 variables affecting the cooling system (i.e. fans, pumps, speeds,
windows, etc.), building a model with classic approaches would be a huge
undertaking. Instead, Google applied machine learning and cut its overall
energy consumption by 15%. That represents hundreds of millions of
dollars in savings for Google in the coming years.
A company called Augury does exactly this with vibration and ultrasonic
sensors installed on equipment:
Key Takeaways
The use cases described above are just a few of the virtually infinite
possibilities, but they’re important because they’re useful applications of
machine learning in IoT that are happening right now.
However, to reiterate, traditional data analytics are usually good enough for
most IoT applications. Don’t be fooled by an IoT platform selling you on its
machine learning capabilities when you’re just trying to look at trends over
time to measure and improve your efficiency.
To make one final, critical point: with both traditional data analytics and
machine learning, you need data. Gaining and maintaining large sets of
clean, relevant data is an essential prerequisite to unlocking all the value
that both data analytics and machine learning have to offer.
Chapter 5: UI & UX
But for any given IoT system, there needs to be a way of interacting with it.
And just as we saw with sensors/devices, connectivity standards, and IoT
platforms, there are many options you can pursue depending on your
specific application and business needs.
User Interface
Users need a way to view and understand the data captured by IoT. That’s
where the user interface comes in. In the simplest terms, a user interface
(UI for short) is the means by which a user and a computer system interact.
Many think of UIs as just software or apps on phones and computers, but a
user interface could be anything from a smartwatch to voice-controlled
Amazon Echo to the buttons on a smart tractor dashboard.
Apple pioneered the first graphical user interface (GUI) in 1983 with the
introduction of Lisa. A graphical user interface is a visual way of interacting
with a computer using items like buttons, windows, and icons. This meant
that people didn’t have to learn complex command languages to interact
with computers and thus made the computer more accessible to everyday
users. When they made the leap to touch interfaces and smartphone
technology in 2009, Apple helped to further open up the door for new types
of interfaces.
Native Apps
Native apps are what most people think of when they think of mobile UIs.
Native apps are applications that you download directly onto your phone.
The advantage of native apps is that you have greater access to the
phone’s capabilities and can create a better overall user experience (we’ll
talk more about user experience below). The disadvantage is that they can
take more time and resources to build, particularly because you need to
build for both iOS and Android (iOS is the operating system created by
Apple for iPhones and Android is an open-source operating system from
Google) since they’re not compatible with each other.
Web Apps
Like a website, a web app is accessed by going to a certain url
(e.g. https://examplewebapp.com). However, while websites are largely
informational (like Wikipedia), web apps are built to have certain
functionalities (like controlling a device remotely). The advantage of web
apps is that they can work on both iOS and Android because you’re just
using a web browser instead of actually downloading something. Also,
because you don’t need to download anything, it can make it easier to get
into the hands of users (just send them the url link). The disadvantage is
that you have somewhat limited access to the phone’s full capabilities (like
the inability to send push notifications) and less control over the overall
user experience.
Hybrid Apps
As the name implies, hybrid apps are between native apps and web apps.
You still download something, like a web app, but when you open the app it
is essentially opening a web page meaning that it can act like a web app.
This can be a good option if you know you’ll be creating native apps
eventually, but you want to get a minimum viable product into the hands of
users early, and can therefore benefit from the speedier development
offered by web apps.
Beyond Mobile Apps
The above distinctions are for mobile apps, but as we mentioned above
there are many different types of user interfaces beyond just mobile.
You might also be left feeling like you now have more questions than when
you began, and that’s a good thing. It’s the pursuit of these questions that
will lead you to build something that’s never been built before and to create
a better future for you organization and for all of us.
The future isn’t set. The future is the culmination of all the choices we are
collectively making today. While it’s inevitable that we’ll continue to connect
our things, people, and environments to make them more intelligent,
efficient, and user friendly, it’s not inevitable which problems we focus on
solving and who benefits from those solutions.
At Leverege, we’re committed to amplifying human potential and we see
IoT and related technologies as essential tools to make that happen. We
strive to make those tools more accessible to everyone and to share the
knowledge we’ve gained through our decades of experience, so that all
businesses are empowered to unlock human value in and out of their
organization.
Thank you for reading! If you still have a burning question, if you think
there’s an opportunity to work together, or if want to just say hi, please
don’t hesitate to reach out.