Why we need an IoT Gateway?

The typical architecture of IoT solutions is typically much more complex than the architecture of most enterprise systems. one among the most factors that increases the complexity of IoT systems is that backend services residing within the data center, which is that the heart of most enterprise systems, are literally just a bit of the larger IoT picture. With IoT solutions, we’ve to affect a myriad of devices working within the field. Because the character of those devices is extremely different from web, desktop, or maybe mobile clients, we’d like an intermediate architectural element which will act as a proxy between the planet of field devices and therefore the enterprise data center. What we’d like is an IoT gateway.

Why you would like an IoT Gateway?

You may be wondering now: what exactly are the key reasons behind introducing a gateway into your IoT architecture? Let me shed some light on this issue by discussing a number of the foremost important aspects of how gateway architecture functions.

First, sensors usually have very limited capabilities in terms of networking connectivity. Your sensors can likely utilize Bluetooth Low Energy (BLE), even as the bulk of beacons available on the market can; there’s also the likelihood that a number of your sensors offer connectivity using the ZigBee protocol. There also are a bunch of other protocols which will be found within the Local Area Network (LAN), Home Area Network (HAN), or Personal Area Network (PAN). All of those protocols have one thing in common—they can’t directly hook up with larger networks like Wide Area Network (WAN) or the web . you would like a gateway which will provide your sensors with one point of contact with external networks by using WiFi, GSM, or another sort of connectivity.

Keep in mind that a gateway isn’t just a dump proxy that forwards data from sensors to backend services. Sending all the knowledge collected by sensors to a knowledge center would be highly ineffective in terms of performance and network utilization. An IoT gateway is required to perform the pre-processing of data within the field, before they’re sent to the info center. Such pre-processing includes message filtering and aggregation.

The gateway should also act as one point of access for monitoring the chosen area of the operational field. You don’t want to attach to each sensor together with your monitoring software; it’s easier to watch only the gateway, which successively is liable for gathering all the required metrics from the sensors.

An IoT gateway bridges the communication gap between devices, sensors, equipment, systems and therefore the cloud. By systematically connecting the cloud, IoT gateway offer local processing and storage, also as a capability to autonomously control field devices supported data inputs by sensors. IoT gateways also enable customers to securely aggregate, process and filter data for analysis. It helps make sure that the federated data generated by devices and systems can travel securely and safely from the sting to the cloud. the most important challenge lies in enabling interoperability by supporting multiple connectivity sensor protocols, like Z-Wave, ZigBee, BLE, Wi-Fi, BACnet etc. The connected sensors and devices, in an IoT ecosystem, should be ready to seamlessly intercommunicate with other devices through the Gateway or send the specified data to the cloud.

How do Devices connect to IoT Gateway?

Whenever a  device tries to attach to the gateway, it should enable a tool verification and authorization process. Gateway should be ready to automatically detect devices, across multiple protocols, within the network.

IoT Gateway can hook up with both industrial (IIoT) and residential devices (IoT). Unlike residential devices, industrial devices predominantly represent mechanical systems, and gateways can hook up with such devices, having a wired or wireless communication protocol already installed. Industrial devices are often HVAC System, Energy Distribution System (Smart Grids), Biometric System, alarm , preparation , Sensors, and Actuators etc. within the residential category, devices are often air conditioning , Day Light system for energy saving, Security System, Smart Metering System, and the other Smart home accessories.  There should be no limit on device connectivity. The gateway should enable M2M communication, which allows devices to share data between them, leading to a far better optimization of resources.

How is data capture done through IoT gateway?

The primary requirement of an IoT Gateway is to get and connect devices and collect data from those devices. Data provided by devices are generally continuous and features a tendency to occupy large communication bandwidth. Gateway provides bandwidth flexibility and data management that’s necessary for evaluation of system performance and device control & management. Standards and protocols establish a bidirectional connection between devices and IoT gateway. Gateway provides an end to finish communication between edge and cloud.

Architectural Overview

The following gateway architecture diagram is that the commonest architectural design where the gateway itself isn’t equipped with sensors. The gateway software installed on the device is liable for collecting data from the sensor, pre-processing that data, and sending the results to the info center.

Keep in mind that it’s possible to possess variations on this sensor architecture where a number of the sensors are located at the gateway device, as illustrated within the following diagram.

Embedded sensors which may be present at the gateway could include options sort of a GPS unit or a temperature sensor connected to the gateway using the GPIO interface.

The Gateway Software

The software application is that the heart of the gateway. The gateway software is liable for collecting messages from the sensors and storing them appropriately until they will be pre-processed and sent

to the info center. The gateway software decides if the info at a given stage of processing should be temporary, persistent, or kept in-memory.

The gateway software should be designed with failure and disaster recovery in mind. Since gateway devices are often operated within the field, you ought to steel oneself against working conditions that are faraway from ideal. for instance , the gateway software should be prepared for an influence outage or other actions which will end in a disruption of gateway processing. The gateway software should be bootstrapped and began automatically as soon as power returns to the device, and it should still work from the purpose where it had been interrupted.

Gateway software should even be smart enough to properly handle system logging. it’s to seek out the proper balance between the amount of log entries stored on the device and people sent to the info center.

Software Installation and Updates

How does the gateway software get into the device? There are three main approaches for this issue.

The first approach is pre-installing the software on the gateway disk (or memory card). This approach is named factory bootstrap. As you’ll guess, this system doesn’t scale well if your solution includes a bigger number of the gateways.

The second approach is that the server-initiated bootstrap. during this mode, the central software management server communicates with the gateway device and deploys the right version of the software thereto . This approach scales far better than the factory bootstrap, but still requires the initiation of deployment action on the server side.

The third approach is that the client-initiated bootstrap. This mode assumes that it’s the gateway’s responsibility to attach to the central repository server and download the right version of the software. during this scenario, the gateway is required to possess lightweight bootstrap software installed so it can communicate with the software management server. This approach is that the most scalable one, because it doesn’t require any centralized coordination of the deployment action. Every gateway device downloads the software as soon because it is powered on.

One extremely important feature of IoT gateways is that the ability to download updates over-the-air. confine mind that after you put in the gateway software onto a tool and deliver it into the sector , you’ve got very limited capabilities in terms of the gateway software maintenance. the power to download software updates over-the- air is especially important from a security perspective, because it can affect the delivery time of critical security fixes.

Sensor Consumers

If the software application is that the heart of the gateway, then the sensors are the eyes and ears of the gateway. Sensors are small hardware devices which will measure some aspects of the important world. Common sorts of data collected by the sensors are temperature, GPS coordinates, humidity, atmospheric pressure , and so on.

The messages collected by the gateway from the sensors are usually small in size. for instance , the present value of the temperature measured by the sensor is simply a decimal number. GPS coordinates are two decimal numbers, which represent longitude and latitude. this is often a crucial thing to remember: the gateway operates on an outsized number of small messages.

While the sensors themselves can generate messages frequently, it’s important to anticipate what percentage messages we actually got to gather from the sensors. for instance , we will read the temperature from a sensor every millisecond, but can we actually need this type of precision when measuring temperature changes? within the majority of cases, reading the sensor value a couple of times per second is quite enough, as we are more curious about the metric changing over a extended period of your time . Gateway software usually polls the sensor data periodically. Good gateway software allows you to simply configure the polling interval for each sensor. you actually don’t want to place unnecessary sensor data into the gateway, as obsolete messages consume the valuable processing power of your constrained gateway device.

Gateway Data Transfer

Usually gateways are connected to the web using GPS, WiFi, or ethernet. Some gateways also can add both GPS and WiFi modes (for example, gateways mounted in moving vehicles). generally , non-GPS connectivity is preferred to send data, because it doesn’t require a subscription to a paid mobile plan. Some gateways are going to be constantly connected to inexpensive local networks, but those using GPS connectivity should be very conservative in terms of what data they send to the info center. The gateway should apply business logic against the info it collects to know which messages should be sent over expensive GPS networks, and which data are often cached on the device for deferred offline processing.

Summary

The gateway may be a key component of each IoT solution. Before you opt what kind of hardware you’d wish to purchase as your gateway platform, spend a while analyzing your message flow and therefore the data formats of the payloads, and check out to filter or aggregate the maximum amount data as you’ll before sending it from the gateway to the info centre. Also, while the selection of proper hardware for your IoT solution is extremely important, you’ve got to stay in mind that learning the proper gateway software and management may be a factor which will highly impact the entire maintenance cost of your system.

Author Signature for Posts
IoT Blogs (1)

Leave a Reply

Your email address will not be published. Required fields are marked *