×

Happy to Help!

This website doesn't store cookies. Enjoy the experience, without worrying about your data!

Great, thanks!

How an IoT Gateway Device Works: Understanding the Architecture

  • 0

How an IoT Gateway Device Works: Understanding the Architecture

[This is the 2nd blog of our ‘IoT Gateway’ series. You can check-out part 1 hereWhat is an IoT Gateway Device] .

In our quest to understand IoT Gateway devices better, we requested our IoT Software Developers to shed some light on the technology architecture of the IoT Gateway.

Following are the excerpts from this conversation. If you are an IoT software or hardware developer or an IoT enthusiast, this blog can serve as a good starting point for understanding the various software/hardware modules of the IoT Gateway

Understanding IoT Gateway Architecture – an overview

Design of an IoT Gateway is driven by the ‘Custom Application’ [e.g – fleet management, asset tracking, industrial automation, connected car, infotainment & more]

As an IoT developer, based on the requirement of the application one needs to calibrate the following:

  • IoT Sensors range
  • Power demands
  • Performance
  • Scalability and security


In reference to the below IoT gateway architecture diagram, let us try to understand the various modules or building blocks of the IoT Gateway Device.

 
IoT Gateway Architecture

IOT Gateway Architecture

IoT Gateway Device Hardware

IoT Gateway Hardware comprises of processor/microcontroller, IoT sensors, protection circuitry, connectivity modules (e.g Zigbee, Bluetooth, WiFi and more).

Type of hardware (processor/microcontroller), processing speed and memory space is decided based on the Operating System of the IoT Gateway device.

The end-user application also has a big say in the design of the IoT Hardware.

A small to a medium scale application can run on a microcontroller; however if the gateway is expected to do complex operations a processor is needed.

This will have a direct impact on the cost of the gateway device.

As an IoT Development partner or vendor, one should always design hardware components by considering performance, cost and efficiency.

Operating System

Selection of the Operating system is also largely dependent on the IoT application.

If the gateway is to be designed for a simple to medium scale  application then a RTOS (Real Time Operating System) is used; however if the gateway has to perform considerably complex operations then Linux is preferred

For the applications like Car HUD or Infotainment systems that require rich GUI then Android OS is the preferred choice.

HAL (Hardware Abstraction Layer)

Hardware Abstraction Layer supports reusability and portability of the IoT software.

This layer makes the software design independent of the underlying hardware platform. Hence it helps to reduce the time and cost required to port the developed software application into a different hardware platform (during migration from the existing platform or re-design of the product line).

IoT Sensors Stack

This layer basically consists of software stacks that serve as interfaces with IoT sensors modules.

Specific stack(s) is/are integrated depending on the sensor interface the IoT Gateway has to support. Some of the populary integrated stacks are ZigBee, 6LoWPAN, EnOcean, BLE, Modbus, PROFIBUS and more.

Device Management and Configuration

An IoT gateway needs to interface with different types of Sensor devices and each sensor node (used for capturing distinct data) has different set of properties.

IoT Gateway device is required to keep track of all the connected devices/sensors.

In addition to this, all the devices/sensors management and configuration tasks are performed at the IoT Gateway.

Thus it is important that the IoT Gateway Device is easily configurable to manage IoT Sensor settings, properties and access control.

The configuration and settings of all the IoT Sensor Devices is stored in the gateway device memory. This ensures that the last saved settings are available after every re-boot.

Security

Gateway security is one of the key considerations in IoT gateway architecture during the IoT Gateway design process.

The designed IoT gateway should ensure robust data security, device security and network security.

Device security and device identity is implemented in the gateway hardware using Crypto Authentication chips.  To add further security to the IoT gateway hardware tampering is implemented.

Secure boot is also implemented to ensure that the gateway doesn’t boot from an unauthorized firmware.

All messages between gateway and cloud, and messages between Gateway sensor node is encrypted to ensure data integrity, and confidentiality of sensor nodes. Data to and from every node in a IoT application is encrypted to ensure network security.

FOTA

Ensuring IoT Gateway security requires continuous and timely efforts; as an IoT Development Partner, one needs  to keep fixing the security loop holes fixed and maintain device integrity.

Firmware Over The Air (FOTA) updates makes this possible! FOTA updates ensure that the IoT Gateway software is updated with latest versions of security patches, OS, Firewalls and more.

Within the IoT network, the gateway device periodically checks for firmware updates in the cloud and fetches the update.

In case of failure IoT Gateway reverts to the last best known state. Before the update process begins, IoT Gateway checks if the available firmware version is from a trusted source.

Data Communication Protocols

The IoT Gateway connects with the Cloud over Ethernet, Wi-Fi or a 4G/3G modem. Two way communication channel is established with the Cloud for data exchange and command(s) transfer.

The underlying communication layer is UDP or TCP IP protocol.

For ease of development and to maintain standardization, protocols like MQTT, CoAP, XMPP, AMQP are utilised. This is because handling and maintaining communication with cloud over raw socket is more complex process.

Protocol(s) is/are selected considering the amount and frequency of the data that has to be shared with the Cloud.

Data Management

Data Management includes data streaming, data filtering and data storing (in case of loss of connectivity with the cloud).

IoT Gateway manages the data from sensor nodes to gateway and also the data from gateway to cloud.

The challenge here is to minimize the delay to ensure data fidelity.

Cloud Connectivity Manager

This layer is responsible for seamless connectivity with the cloud and also handles scenarios like reconnection, device state, heartbeat message, and gateway device authentication with the cloud.

Custom Application

IoT Gateway application is custom designed as per the business needs.

Gateway application interacts with services and functions from all the other layers or modules to manage data between sensor node and gateway and from gateway to cloud in an efficient, secure and responsive manner.

Gateway Data Transfer

IoT gateway can be connected to the internet for data transfer using Ethernet, 4G/3G/GPRS modem or Wifi. Non-GPRS network is the most preferred mode of internet connectivity. This is due to the cost effectiveness of the data transfer through Wifi or Ethernet.

The gateway should have in-built intelligence to analyze and decide which data should be transferred over the network for processing and which data can be cached for offline processing to save the data transfer cost and processing power of the main application.

After understanding the architecture, one realizes that the Design and development of an IoT Gateway device is a work of art!

As an IoT software and hardware developer, it is very important to understand the business needs (and logic) of the IoT Application.

This understanding of the IoT Application is an important factor that contributes to the development of a win-win IoT Gateway design

Though some very popular off-the shelf IoT Gateway solutions are available, but certain customization becomes a necessity to transform a product concept into business reality!


  • 0

What is an IoT Gateway Device and Why is it so Important for the Success of IoT Projects?

IHS forecast suggests that the growth in number of IoT devices will be exponential, with an installed base of 15.4 billion devices in 2015 to 30.7 billion devices in 2020 and 75.4 billion in 2025.

Now to support such network(s) of IoT devices that are expected to become more complex, IoT Gateway is one of the most critical components of the entire Internet of Things (IoT) network.

In this blog post, we will discuss why IoT Gateway device is that important, but first-up let’s understand what is an IoT Gateway!
 
What is IoT Gatway
Image Source: Intel

What is an IoT Gateway Device?

IoT Gateway, as a hardware device or a virtual software code, acts as a communication bridge between IoT Sensor Network and Cloud Server.

IoT gateway device has a layered architecture. Following are some of the important software and hardware layers to help you get better understanding regarding the IoT Gateway Development process:

1.) Hardware Platform: This defines the processing power & memory specifications of the IoT Gateway. This is the gateway powerhouse and a hardware platform is selected based on the complexity of IoT application(s) that need to be deployed

2) Operating System: The decision of opting for a particular OS depends on the legacy systems. It is a best practice to continue to use the OS compatible with the existing systems in order to save costs and hassle-free integration

3.) Analytics Engine: This layer ensures raw data is converted to actionable insights

4.) Integrated Application development platform and Device Drivers: This layer supports development and/or  addition of new devices, applications or systems to the IoT network

Why IoT Gateway is important?

The importance of an IoT Gateway device can be gauged by the number of critical tasks/actions that are performed by this device.

Here is just a glimpse of some of the important tasks:

  • Facilitate compatibility across the IoT network. IoT Gateway ensures this by supporting a number of communication protocols like Zigbee, 6lowpan, Bluetooth, WiFi, LoRA, Zwave
  • All the devices that need to be monitored or controlled have relevant sensors installed on them (temperature, humidity, proximity or other sensors).


    These sensors are IP based; IoT Gateway manages the connectivity of these sensors (and in turn real world physical devices) to the cloud server.

  • To be precise, IoT Gateway makes the devices available online through sensors and cloud

  • In additional to bringing the IoT network to life, IoT Gateway also performs many operational tasks – manage device configuration, perform device authentication for secure network access and support edge-analytics

Evolution of IoT Gateway and Edge Analytics

1st Generation IoT Gateway:
These IoT Gateway devices were designed to facilitate communication protocol compatibility and device management functions. However, they did not support data analytics at the ‘edge’. With 1st generation IoT Gateway, all the analytics is performed at the cloud server.

2nd Generation IoT Gateway:
This product line of “smart” IoT gateways support ‘edge analytics’ , hence ensuring reduction in data transfer costs and extension of  the benefits of data analytics at local networks

3rd Generation (Current):
This new generation of IoT gateway devices improves the overall system responsiveness and also supports new operating models. Since IoT gateway devices continuously receive huge amount of data from the sensors, at times it may overload the main system. To avoid this the new generation IoT gateway analyzes the data received from various sensors and prioritizes and passes critical information to the main system and send alerts if required.

The new generation IoT gateways are intelligent and capable of filtering out the high priority information from the data received. They are also capable of taking action on the data received. For example, if the gateway senses that the temperature is too high, the gateway can send instructions to turn on the air conditioner.

In our next blog post we will discuss about “How an IoT gateway works”. Subscribe to our blog to get alerts about happenings around IoT.

Learn more about our IoT development Services for home automation and Industrial Automation.


  • 0

EFY interviews Zach: Designing an IoT solution and latest IoT technology trends

Eletronicsofthings[dot]com, the e-magazine of the renowned EFY group, recently interviewed Zach Ninan, Head of the Competency Lab (Cloud, Mobility and IoT Solutions), Embitel Technologies, Bangalore.

This conversation started with the latest trends and advancements that are propelling the IoT revolution forward. Zach also shared details of the entire solution design process where he discussed IoT gateway device development, sensor networks, cloud back-end and mobile apps.

When asked about the relevance of automation, Zach cited the example of predictive maintenance that has helped improve operational efficiency and reduced downtime of critical business processes.

“The ability to monitor and optimize workflows constantly as per the needs of the business is an area where IoT is adding value,” he said.

Read the complete conversation here – Designing an IoT Solution is Akin to Creating Music

What is Internet of Things(IoT) ?

    IoT is the network of physical objects – devices, vehicles, buildings and other items embedded with electronics, software, sensors, and network connectivity-that enables these objects to collect and exchange data.

    Source:Wikipedia