Published Updated

What is an IoT gateway? From machine to app

An IoT gateway connects machines to the systems that use their data. It translates protocols, filters data and controls what leaves the machine network.

A machine connected through a small gateway box to an app with live values

An IoT gateway is the device or software that sits between machines and the systems that use their data. It speaks the machines’ protocols on one side and standard IT protocols on the other. It collects and filters the data and controls what leaves the machine network. In manufacturing, the gateway is less and less a separate box. Often it is software on an industrial PC, a router or a server that is already there.

This article is based on episode 56 of our German podcast Einfach Komplex, in which Dr. Burkhard Heisen and Gerrit Meyer talk about IoT gateways: their jobs, their parts, device management, and how Heisenware does the same job in software.

What an IoT gateway does

Whatever the hardware, a gateway has four jobs:

  1. Translate. Machines speak OPC UA, Siemens S7, Modbus or serial protocols. Business systems and the cloud speak standards on top of TCP/IP, such as MQTT and HTTP. The gateway converts between them.
  2. Collect and reduce. It gathers data from many devices, filters it and forwards what matters, often in batches. A temperature that changes once a minute does not need to be sent ten times a second.
  3. Separate networks. It is the controlled point between the machine network and everything else. Only data that is meant to leave, leaves.
  4. Keep working offline. When the connection drops, it keeps working locally and holds the data until the line is back.

Edge connectors are the software parts that do the local work: one talks to the OPC UA servers, another to the S7 controllers, a third reads a serial port. They run on the gateway or on another device at the edge of the network. “Edge” simply means close to the machines, as opposed to a central server or the cloud.

A typical factory, step by step

Picture a factory with 20 machines from three generations. The newer ones have an OPC UA server. Some older ones run Siemens S7-300 controllers. A few only offer a digital signal for running or stopped. The machine network is separated from the office network, and IT does not want to open inbound ports.

The data then takes this path:

  1. On the machine side, the gateway reads every machine in its own protocol.
  2. It brings the values into one shape, for example machine, signal, value and time.
  3. It sends them outbound, over an encrypted connection, to a broker, a database or an application platform.
  4. Apps use the data: an Andon board at the line, a report on downtime, an email to the shift lead when a machine stops.

The gateway decides what reaches step 4. That is why choosing it matters more than it seems.

Hardware gateway or software

Hardware gateway Software at the edge
What it is A dedicated box with interfaces A program on hardware you already have
Protocols Fixed by the device Added as software
Updates Firmware, device by device Rolled out like any software
Fits when Special interfaces or no computer on site An industrial PC, router or server is already there

The line is blurring. Many industrial PCs and routers now run containers, so the box stays and the gateway becomes software on it.

What to look for

  • Outbound only. The gateway should open the connection from the inside. Then the firewall needs no inbound rule, and nobody needs a VPN into the machine network.
  • The protocols you actually have. List your controllers first, then check the datasheet.
  • Fleet management. One gateway is easy. Thirty, across several factories, need central configuration and updates.
  • Buffering. Ask what happens to the data when the connection drops for an hour.
  • Who maintains it. A gateway full of scripts someone wrote years ago becomes a black box. Prefer configuration that others can read and change.

How Heisenware does it

Heisenware is an industrial application platform. Manufacturers use it to build real industrial software by prompt, with machine data from the edge. It needs no separate gateway box. An agent in your own network takes over the gateway’s jobs:

  • It runs where the machines are: as a native program on Windows, macOS or Linux, as a Docker container, or inside INSYS icom routers. The Docker version suits edge hardware that runs containers. A lightweight version runs on small edge devices.
  • Its connection is outbound-initiated, encrypted over MQTTS on port 8883. No inbound firewall rules, no VPN.
  • It carries the connectors you choose, for example OPC UA, Siemens S7, Allen-Bradley, Modbus, serial ports or a local SQL database, and runs them next to the machines.
  • It keeps running. It starts by itself after a reboot and buffers data locally when the connection drops.
  • It is part of the app. In the App Builder, the agent’s functions work like any other step of the logic. In the app’s logic you see which value comes from which machine.

When Heisenware runs on your own server inside the factory, it reaches local machines directly and needs agents only for separate subnets.

The difference to a classic gateway: the agent is not a project of its own. It belongs to the same platform as the app that uses the data, so connecting, building and running happen in one place. Read more about how Heisenware works and machine data collection with an agent in your network.

Questions

Is an IoT gateway the same as an edge device?

Not quite. An edge device is any device at the edge of the network, such as an industrial PC or a router. It acts as a gateway when it connects that network to other systems, which usually means it runs gateway software.

Do I need a hardware gateway?

Only for special interfaces or conditions. If an industrial PC, a router or a server already sits in the machine network, gateway software on it is usually enough.

Is an IoT gateway a security risk?

Set up well, it is a security measure: one controlled point, outbound connections only, encryption, and no direct access from outside into the machine network.

What is the difference between an IoT gateway and an edge connector?

The gateway is the role: the link between the machine network and other systems. An edge connector is the software part that talks to one kind of machine or system. A gateway usually runs several of them.

Build your own manufacturing software today.

Get the complete platform to take industrial software development into your own hands.