Skip to content
IoT Crest

IoT data collector explained

By Hamza Rivera, published , 3 min read

Short answer: An IoT data collector is a gateway or edge device that polls field equipment, such as Modbus devices, and publishes the values to a broker over MQTT. The raw values need tag names, units and timestamps before the cloud can use them.

What an IoT data collector does, how it polls Modbus equipment and publishes to MQTT, what context cloud data needs, and what to check before you deploy one.

This article covers how a collector polls Modbus RTU and TCP devices, how it publishes to MQTT, what context cloud data needs, and what to decide before deployment It does not cover a ranking of gateway products, the price of a deployment, PLC programming, or the design of a cloud dashboard

An IoT data collector sits between equipment and the network. It reads values from field devices and publishes them to a broker or service. This guide covers how that works with Modbus equipment, what the cloud needs beyond the raw number, and what to decide before you deploy one.

What a data collector does

HiveMQ describes the collector as the device that polls Modbus RTU slaves on the serial side and publishes the data upstream over Ethernet or cellular. Wikipedia defines a data logger as an electronic device that records data over time or about location, with onboard memory that stores the acquired data. The sources read here do not say whether a collector keeps readings of its own.

Where it sits between field and cloud

  1. Polling. The collector reads registers from equipment. The Modbus serial line protocol is master-slave: Wikipedia says it supports one master and multiple slaves on the bus. A collector that polls the devices takes the master side.
  2. Translation. HiveMQ says the gateway handles protocol translation transparently. Robustel says a mapping step is one of the main reasons an edge workflow is useful.
  3. Publishing. The collector publishes selected values to an MQTT broker or cloud-connected application, according to Robustel. HiveMQ describes the same flow: the gateway pulls data from Modbus RTU devices and publishes it as MQTT messages to a broker.

Modbus runs on two physical links that matter for wiring. Wikipedia says Modbus RTU is the most common implementation, and that its serial communication uses RS-485 or RS-232, with two-wire RS-485 the most popular. RS-232 is limited to point-to-point, short-range communication. Modbus TCP runs over TCP/IP networks and connects over port 502.

What the cloud needs beyond the value

Raw machine-side values often need mapping, scaling, filtering or formatting before they become useful. Robustel says a cloud system does not automatically know what a Modbus register means. The context it lists is equipment, tag name, unit, timestamp and status meaning.

HiveMQ gives one way to organise that context: a topic hierarchy that reflects the physical site, such as site, area, line, device and measurement. It advises designing that hierarchy before the first message is published.

Buffering and timestamps

HiveMQ enables a persistent session for gateways with intermittent connectivity. The page does not say whether readings are stored locally during an outage. The IoT data logging guide covers how a store-and-forward buffer works, and why the acknowledgement matters.

Robustel lists a timestamp or update time among the context a cloud system needs, but the sources do not say whether the collector or the device should add it. Decide that before deployment, and record it in the topic or payload design.

What to check before you deploy one

  • Field protocol and wiring. Is the equipment on Modbus RTU over RS-485, or on Modbus TCP over Ethernet? That decides the wiring the gateway needs.
  • Polling plan. On a serial bus, one master polls every slave. Check that the collector’s polling rate and the number of devices fit the bus.
  • Topic and tag map. Write the hierarchy and the tag names, units and scaling before publishing. Changing them later can change downstream records.
  • Outage behaviour. Check what the device keeps when the broker is unreachable, and against which outage length. The IoT data acquisition guide covers the sensor-side chain that can feed a collector.
  • Network link. The IoT sensor network guide covers gateways, battery and range.

Common questions

What is an IoT data collector?

A gateway or edge device that reads values from field equipment and sends them to a cloud or broker. HiveMQ describes a gateway that polls Modbus RTU slaves on the serial side and publishes the data upstream over Ethernet or cellular.

What protocol does a data collector usually read?

Modbus is one protocol a collector may read. Wikipedia describes Modbus as a fieldbus, an industrial computer networking protocol. Modbus RTU runs on serial lines, and Modbus TCP runs over TCP/IP networks on port 502.

What does the cloud need besides the raw value?

Context. Robustel says cloud and industrial IoT systems usually need data organised by equipment, tag name, unit, timestamp and status meaning. A cloud system does not automatically know what a Modbus register means.

Does a data collector store readings if the link drops?

The sources read here do not say. HiveMQ enables a persistent session for gateways with intermittent connectivity, which is a session setting. Check the buffer on the device you choose.

Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.

More from Sensors and hardware

All sensors and hardware articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.