What is IoT – Internet of Things

In this article, we will learn about today's most trending word, IoT (Internet of Things). My motive is to explain IoT concepts in simple language so everyone can understand and clear up the confusion about what really IoT means. Let's start now.

What is IoT?

IoT stands for the Internet of Things, which is a network of internet-connected hardware devices that give some insightful information about things such as a car, bike, truck, factory, etc.

What is the Use of IoT?

You might have heard the words digital and smart multiple times, such as digital services or smart cities etc. This is the most real-time example of Indian prime minister Narendra Modi, who always talks about digital India and smart cities.

So, what means digital? Digital is nothing but the access of services to the individual over the internet in the form of a web application, mobile application, etc., which helps to minimise the presence of humans at a particular facility centre to avail the service and get work done from the location where the person resides with the help of a mobile app or web application. The example of digital payment platforms such as BHIM UPI by prime minister Narendra Modi's Indian government, Phone Pay, Google Pay, Amazon Pay, etc.

A smart city is also a part of a digital service in which citizens can see the temperature and humidity of their cities and it automatically generates alerts to their citizens regarding sudden changes in the environment and to take specific precautions. Citizens can even track the live location of specific bus routes so they can plan accordingly. Streetlight management is another example of smart city service in which streetlights are automatically managed by a digital service which is responsible for turning on or off lights based on surrounding visibility and generates alerts if any light bulb has a problem, so servicemen can fix it immediately.

The scenarios described above are just a few examples of how to facilitate and improve digital and smart services. IoT plays an important role in giving meaning to the services that collect the data and generate meaningful and actionable alerts.

Benefits of IoT

Consider just one of the scenarios which I have explained in the preceding paragraphs. Let’s assume we have implemented smart streetlight management using IoT. The benefits are

  • Monitor the network of streetlights at one place using the web application or mobile application
  • Turn on or off the lights automatically based on the surrounding visibility such as sunrise and sunset which help to save the huge amount of electricity consummation
  • Consider some lights are got off due to some problem then IoT generates the alert with detailed reasoning which help servicemen to fix it immediately without going in person at the site

By considering the preceding few examples, you can imagine how IoT helps to give meaning to these things, which saves time, cost, and effort. The IoT will play a very important role in shaping the future of the world. In the coming few years, we will see the IoT in everything, which will make human life much easier and faster. A typical raw IoT device will look like this:


How IoT works?

To understand how IoT works, understand the following basic terminology of IoT

  • Things
  • Device
  • Sensor
  • Network
  • IoT Gateway
  • Communication Protocol
  • Things

Things

Any surrounding objects around us which we use in our daily life, such as cars, trucks, or any vehicle, water taps, pumps, machines, houses, factories, or rooms, ac, fans, etc.

Device

The device is the hardware that is installed on the things to get the data.

Sensor

The sensor is situated on the device to monitor the intended information, such as temperature, speed, humidity, visibility, etc.

Examples

  • Temperature and humidity sensor
  • Pressure sensor
  • Visibility sensor
  • Magnetometer sensor
  • Accelerometer sensor
  • Network

Network 

The network is the means of communication through which device sensors and data collection platforms are connected to each other, such as via Bluetooth, LAN, Wi-Fi, WAN, Internet, etc.

IoT Gateway

The IoT gateway is the platform or mediator between devices and the cloud or cloud to device communication, which is responsible for collecting the messages from IoT devices and sending messages back to the devices.

The IoT gateway provides the features to collect and process the IoT device's data and upgrade the IoT devices. The following are some examples of commonly used IoT gateways.

Examples
  • Microsoft Azure IoT
  • AWS IoT
  • Google IoT Cloud
  • Amazon IoT
Communication Protocol

The communication protocols are the mediums which are responsible for establishing communication between IoT devices and IoT gateways to send and receive messages between them. Examples of the most used protocols are
  • AMQP
  • MQTT
  • Https
  • TCP
  • UDP
  • DDS
  • XMPP
  • LwM2M
  • ZigBee
The following diagram explains the IoT and it's working with a clear picture
In the preceding diagram in the first frame, there are the things which are connected to the IoT devices and sensors. They generate the data and send it to the IoT gateway with the help of a secure communication protocol. The data is then sent for processing to get the insights and show the data on the front end applications in the form of web or mobile applications.

Summary

From the above explanation, you came to know about the IoT and you have a clear picture in your mind of what exactly the Internet of Things means. If you have any suggestions or feedback then please contact me.

Consider reading the following article

Azure IoT Hub Device Allocation Policy

The Azure device provisioning service provides the option to link multiple IoT hubs with one device provisioning service instance, which helps to allocate the device automatically to the specific IoT hub based on set policy during the device enrollment. There are the following policies:
 

  • Static configuration
  • Evenly weighted distribution
  • Lowest latency

Static Configuration

The static allocation policy assigns the device to the pre-defined IoT hub , which is specified at the time of the device's enrollment. The following flow will give you an idea of how it will work.


Evenly Weighted Distribution

An even distribution policy assigens the device on the IoT hub, which has less utilisation and load. Let’s say we have ten IoT devices and two linked IoT hubs. Then five devices will be assigned to one IoT hub instance and the other five devices will be assigned to another IoT hub instance based on how much the available IoT hub is utilized.

The following process diagram will give you a clear idea of the evenly distributed policy.


Lowest latency

The lowest latency policy allows allocating the device to an IoT hub that is near the device's location. It means devices are automatically allocated to the closest IoT hub (datacenter) to their location, which will enable faster communication between devices and the IoT hub.

The following diagram shows how the lowest latency policy works.


Summary

I hope this article helped you to understand the Azure IoT Hub device allocation policies. If you have any questions, let me know in the comment box.

Azure Device Provisioning Service

Implementing the IoT devices for business solution might be easy but managing the millions of devices including their data and entire device life cycle including deployment, upgradation and securing the IoT devices is much difficult to overcomes these limitations Microsoft introduces the services azure IoT hub device provisioning service which formally known as azure DPS, Let's learn about the IoT hub device provisioning service.

What is Azure IoT Hub DPS?
Azure IoT hub device provisioning service is responsible to enroll the IoT devices before devices get registered into the Azure IoT hub.

Devices can be directly registered with IoT hub but azure device provisioning service make easier to manage the entire life cycle of millions of IoT devices. Enrollments of devices can be done from portal as well programmatically with the help of azure DPS REST services or SDK which supports various types of programming languages. The devices enrolled into the Azure DPS can be registered into the Azure IoT hub with the help of REST Services as well as SDK.
Advantages of Azure IoT Hub Device Provisioning Service
  • Helps to manage and connect thousands of IoT devices without worrying about setup configuration
  • Device provisioning service helps of automatically balance the load of device across the multiple IoT Hubs
  • Device provisioning service provides the feature to automatically connect the device to the IoT hub with nearest location of device
  • Whenever required change in the configuration of existing connected device, Device provisioning service provides the feature how the device will be re-provision without or changing the existing configuration
  • Easily secure the devices with X509 certificate and TPM which allow verify the identity of device when device need to be connected from deployed location
  • Device provisioning service allows to connect individual or group of devices to the IoT hub with the help of devices enrolled using the feature group and individual enrollment
  • Helps to manage the configuration of single as well as group of devices
Creating Azure IoT Hub Device Provisioning Service
Now let’s start creating the azure device provisioning step by step via Azure portal
Prerequisites
To create any service in Azure portal we required valid azure subscription whether it’s paid or trial subscription, hope you have valid azure subscription

Step 1: Go to Azure Portal

Navigate to the portal.azure.com using browser and login into portal with valid credentials, as shown in following image


After successful login page will be redirected to the azure portal default dashboard page as shown in the following image


Step 2: Create IoT Hub Device Provisioning Service on Portal

Find the create resource option which can be found left top side of the portal as shown into the following image or follow any other option which you may know to create the resource (service) in azure portal




Click on left side option to create a resource & type IoT hub device provisioning service into the populated search box, it will pop up the following screen which is shown in the following image


As shown in preceding image click on create button, it will show the following screen


Provide required details as shown in preceding image as
  • Name: Name of the IoT hub device provisioning service which must be contain only alphanumeric characters or hyphen
Example
Valid Name

Invalid Name
Compilemode-dps-001
compilemode@-01_

Compilemode-dps

Compilemode dps
  • Subscription: Choose the available azure subscription which you want to use for creating service from drop down list
  • Resource Group: Choose existing resource group or create a new resource group which you may want to use.
  • Location: Choose the deployment location for IoT hub device provisioning from given list, however the device provisioning service is global and associated with any specific location but you must specify a location for the resource group where the metadata associated with the service profile will reside.
After providing all required details, click on create button, it will take some time to create service, once service created status can be notified  on notification icon as shown in following image



Now click on Go to resource button it will redirected to the newly created IoT hub device provisioning service as shown in the following image


Let’s know about preceding IoT hub device provisioning service settings and overview section
  • Resource Group: The name of the resource group in which IoT hub device provisioning resides.
  • Service Endpoint: Unique URI to connect to the IoT hub device provisioning for device enrollment related operations
  • Status: IoT hub device provisioning working status
  • Global Device Endpoint:  Global endpoint of IoT hub device provisioning service to perform the device provisioning related operation.
  • ID Scope: Unique Id for identifying your specific IoT hub device provisioning service for device related operation since device operation related endpoint is global to all device provisioning services
  • Subscription ID: Name of the subscription id in which your IoT hub device provisioning service resides
  • Pricing & Scale Tier: Each IoT hub device provisioning service has pricing tier which can be decided to use based on the what scalability and performance required for an application. Currently IoT hub DPS support S1 tier which cost $ 0.10 that is INR 6.610 for 1000 operations
  •  Shared Access Policies: Shared access policies section reside the different keys & connection string to connect with IoT hub device provisioning service programmatically using SDK’s & REST services
  • Linked IoT Hub: This property allows to link upto ten IoT hub to the device provisioning service as well to see the list of linked IoT hubs. All the enrolled devices after provisioning registered into respective IoT hubs
  • Certificates: This Section allows to add the device certificates which can be assigned to the devices during enrollment.
  • Manage Enrollments: This section allows to enroll the various types of security feature devices such as TPM (Trusted Platform Module) and X.509. Device enrollment can be enrolled using the following two concepts
            Individual Enrollment: This allows to enroll the one device at a time which allows unique                  configuration per device.
           Group Enrollment: Group Enrollment allows to enroll the group of devices at a time which                  allows common configuration for group of devices.
  • Manage Allocation Policy: Device provisioning service allows to link the multiple IoT hub & using manage allocation policy we can set the IoT hub allocation policy for enrolled devices which automatically decides on which IoT hub device should belong when the device is connected or registered.
Following are the allocation policies can be set
  • Lowest latency: This policy automatically assigns device to the closest IoT hub ((Datacenter) of device location which will make faster communication between devices and IoT hub.
  • Evenly weighted distribution: This is the default policy and recommended by Microsoft which will equally distributes devices to the linked IoT hubs, Let’s say we have ten IoT devices and two linked IoT hubs then five devices will be assigned to one IoT hub and five devices to another IoT hub
  • Static configuration: This policy assigns the devices to the specific IoT which is selected during the device enrollment. 
Summary
Hope this article helped you to understand about the azure device provisioning service, in next article we will learn about the Azure IoT Hub.

Don't Forget To 

www.CodeNirvana.in

Protected by Copyscape
Copyright © Compilemode