Skip to main content

August 2026 · Integration & Connectivity · Updated October 2026

How to Get Energy Meter Data into Your Software (MQTT & Modbus)

Reviewed by Ramniwas Gautam, Validation Head, Tech OVN

You have chosen an energy meter. Now you need its measurements — voltage, current, kWh, kVAh, power factor, demand — flowing into your own analytics platform, SCADA, historian, or cloud application. This guide covers the integration paths that Titan supports: push (MQTT, HTTP/HTTPS or TCP/IP) and poll (Modbus TCP/RTU, BACnet), plus an on-device REST API for provisioning. No proprietary middleware. Your data, your broker, your stack.

Two paths, two use cases

Energy meter integration almost always reduces to one of two architectures: you want the meter to push data to your cloud or analytics platform as it happens, or you want your SCADA system, BMS or historian to poll the meter on demand. Titan supports both, and Modbus and MQTT run simultaneously — a BMS can poll registers while the meter independently publishes to a broker.

The right choice depends on where your application lives and how it consumes data:

  • Push (MQTT, HTTP/HTTPS, TCP/IP) — the meter publishes readings at a configurable interval to the broker or endpoint you nominate. Best for cloud pipelines, analytics platforms, time-series databases, and AI/ML workloads where you want data to arrive without polling.
  • Poll (Modbus TCP/RTU, BACnet) — your SCADA, PLC, BMS or historian queries the meter when it needs a reading. Best for on-premises systems with existing Modbus or BACnet infrastructure, or where the application controls the polling cycle.

Both paths use open, vendor-neutral standards. There is no proprietary SDK to install and no dependency on Tech OVN's cloud to access your own meter data. The full register map, MQTT topics, command reference and provisioning API are published in the open titan-integration repository on GitHub (MIT licence, with runnable Python examples) and in the Titan Communication & Integration Guide (PDF).

Path 1 — MQTT push to your own broker

MQTT is a lightweight publish-subscribe protocol designed for constrained devices and unreliable networks. Titan acts as an MQTT client: it connects to the broker you specify and publishes measurement frames at a configurable interval. You set the broker endpoint, port, credentials and topic prefix during provisioning — a single POST /setwifi call to the meter's on-device REST API sets the WiFi credentials, the outbound transport and every destination.

Broker options

Any MQTT broker works — Titan does not depend on a specific vendor. Common choices:

  • AWS IoT Core — Titan connects directly; route onward with IoT rules to your AWS storage and compute
  • Azure IoT Hub — Titan connects directly; use the hub's message routing into your Azure pipeline
  • HiveMQ / Mosquitto / EMQX — self-hosted or managed brokers for teams that want full control over the message bus

Topic structure and payload

Titan publishes under a topic prefix you set during provisioning — for example techovn/site/meter1. Four topic families hang off it:

<prefix>/instant            live measurement frame (binary, 511 bytes)
<prefix>/events             event records
<prefix>/cmd/<command>      command to the meter
<prefix>/cmd_ack/<command>  meter response (JSON)

Live data on /instant arrives as a compact binary frame; commands and their responses use JSON. Commands cover billing history (cmd/bill), load survey and daily load profile, nameplate, ToD configuration, real-time clock, event reads, relay control and parameter settings. Commands that change state or destroy data require a CONFIRM token. A daily energy record returned on cmd_ack/loadprofile looks like this:

{"idx":0,"SNo":102,"date":"05/07/2026","kWh_imp":5.10,"kVAh_imp":10.16,
 "kWh_exp":16.11,"kVAh_exp":17.64,"kWh_NET":-11.01,"kVAh_NET":-7.48,
 "DG KWH":0.00,"DG KVAH":0.00}

Your pipeline subscribes with a wildcard — for example techovn/+/+/instant if your prefixes follow a techovn/<site>/<meter> pattern — to receive frames from every meter on every site through one subscriber, then routes by site and meter into your time-series database or data lake. A subscriber example is in the titan-integration repository.

HTTP, HTTPS and TCP/IP push

If you would rather not run a broker, Titan can push a JSON instant frame to an HTTP/HTTPS endpoint you nominate, or over a raw TCP/IP socket to a host and port you set. The JSON keys are the same parameter names as the Modbus map — V_L1, P_total, kWh_import and so on — plus identity fields (serial number, RTC timestamp) and status fields such as tamper counters and maximum demand with timestamps.

Path 2 — Modbus TCP/RTU to SCADA and historians

Modbus is the lingua franca of industrial automation. If your SCADA system, PLC, or historian already speaks Modbus, you can add Titan meters to your existing polling infrastructure without any change to your data acquisition layer — just add the meter as a new Modbus device. Modbus RTU and Modbus TCP are local and need no internet connection at all.

Modbus TCP vs Modbus RTU

Titan supports both variants. Modbus TCP (port 502) runs over Ethernet or WiFi — the same network the meter uses for MQTT — with DHCP or static addressing. Modbus RTU runs over RS485, a two-wire bus that supports multi-drop wiring where multiple meters share a single cable run to a Modbus master. RTU is common in panel-level deployments where meters are physically close to a local panel PC or PLC with an RS485 port.

Register map overview

Titan exposes its measurements as holding registers (function code 03) at 40001–40200. Every parameter is a 32-bit IEEE-754 float across two consecutive registers, word-swapped — the low word comes first. If your Modbus client has a word-order setting, choose low word first (CDAB). The first block:

40001/40002  V_L1         V    R-phase voltage
40003-40006  V_L2, V_L3   V
40007-40012  I_L1..I_L3   A
40013/40014  I_Ln         A    neutral current
40015-40020  PF_L1..PF_L3
40021/40022  freq         Hz
40023-40028  Ph_angle_RY / YB / BR   deg
40029-40034  THD_V1..THD_V3          %
40035-40042  P_L1..P_L3, P_total     kW
40043-40050  KVAr_L1..L3, KVAr_total kvar
40051-40058  KVA_L1..L3, KVA_total   kVA
40059-40112  Grid kWh / kvarh / kVAh blocks (import, export, net)
40113-40166  DG kWh / kvarh / kVAh blocks (import, export, net)
40167-40172  THD_I1..THD_I3          %
40173-40178  InRush_L1..InRush_L3    A
40179-40200  reserved

Energy accumulators sit in nine-parameter blocks — per-phase import, total import, per-phase export, total export and net — repeated for grid supply and DG supply, so generator-run consumption is metered separately without post-processing. Worked example: register 40001 = 0xB601, 40002 = 0x437D; reassembled as 0x437DB601 this decodes to 253.71 V.

The complete map, Modbus RTU/TCP request frames, exception codes and a dependency-free Python client are in the titan-integration repository and the integration guide PDF. An extended configuration and status block is available from Tech OVN on request.

BACnet for building management systems

Titan also speaks BACnet natively — BACnet/IP over Ethernet or WiFi, and BACnet MS/TP over RS485. The RS485 port runs either Modbus RTU or BACnet MS/TP, selected during set-up, not both at once. If the RS485 port is already serving a Modbus master, give the BMS its data over BACnet/IP or Modbus TCP on the network side instead.

No gateway required for WiFi and Ethernet meters

A common pain point with older meter designs is the requirement for a separate data concentrator or gateway — a dedicated piece of hardware that sits between the meters and the network, collects readings over RS485, and forwards them upstream. Titan eliminates this layer for WiFi and Ethernet deployments.

Each Titan meter connects directly to your LAN as a first-class network device. For MQTT, it opens a TCP connection to your broker and pushes data. For Modbus TCP, your SCADA opens a connection to the meter's IP address and polls it directly. No gateway firmware to maintain, no gateway hardware to power and mount, no single point of failure that takes down all the meters behind it.

This matters as the meter count grows. Twenty sub-meters can share a single RS485 bus — a standard TIA-485 segment supports up to 32 unit loads — but that bus still needs a gateway or a host with an RS485 port, and the gateway becomes one more device to power, maintain and diagnose. A direct-connect design is the meters, your network switch, and your broker or SCADA host.

For deployments where RS485 bus wiring is already in place, Titan's RS485 port (Modbus RTU or BACnet MS/TP) lets you use the existing cable infrastructure. The Titan Audit portable logger also has WiFi, Ethernet and RS485, so short-term audit data can feed the same pipeline as permanent installation meters.

Multi-meter and multi-site aggregation

Individual meter integration is straightforward. Aggregating dozens of meters across multiple sites into a coherent data pipeline takes a little more architecture, but the building blocks are the same.

Single-site, multiple meters

On a single site, all Titan meters publish to the same broker (MQTT) or respond to the same Modbus master (TCP/RTU). Differentiate meters in MQTT by device ID in the topic; in Modbus by unit address. Your backend maps device IDs or unit addresses to physical locations — incomer, production floor feeder A, utilities panel — in a configuration table or device registry.

Multi-site into one pipeline

For multiple sites, include the site identifier in each meter's MQTT topic prefix. Each site's meters publish under their own site prefix; your central broker aggregates everything. A subscriber at HQ receives readings from all sites, tagged by site and device, and routes them to the appropriate tenant, building, or reporting entity in your database.

For sites with unreliable WAN links, run a local MQTT broker at the site that buffers readings during outages and bridges to the central broker when connectivity resumes. This pattern keeps local data continuity without losing readings to network gaps.

You own the raw data

The guiding principle of Titan's integration design is that the data belongs to you. Titan is the accurate hardware layer — Class 0.5S per IEC 62053-22 — that puts clean electrical measurements into your broker, endpoint, BMS or SCADA system. What you build on top of it — dashboards, anomaly detection, ESG reports, tenant billing, AI load forecasting — is entirely your stack. You are not locked to Tech OVN's cloud, and you can change your analytics platform or historian without changing the meters. Contact Tech OVN to discuss your integration architecture before you deploy.

Frequently Asked Questions

Common questions about integrating Titan energy meter data with external software via MQTT, HTTP push, Modbus and BACnet.

Yes. Titan serves an on-device REST (HTTP) API for provisioning, commissioning and operations — device status and identity, network and transport set-up, sending commands, reading stored events, and triggering OTA firmware updates. It is not an interval-data API: bulk measurement data is read over Modbus TCP/RTU or BACnet, or pushed by the meter over MQTT, HTTP/HTTPS or TCP/IP to an endpoint you nominate. The endpoints are listed in the public titan-integration repository on GitHub.
No. Titan connects directly to your network via WiFi or Ethernet and pushes data to your MQTT broker or HTTP endpoint, or answers Modbus TCP and BACnet/IP queries, without any intermediate gateway. For RS485 deployments (Modbus RTU or BACnet MS/TP — the port runs one protocol at a time, selected during set-up) you need direct RS485 wiring to a host or PLC with an RS485 port, or a serial-to-Ethernet gateway. For WiFi/Ethernet-connected meters, no gateway is required.
Yes. Titan can connect directly to AWS IoT Core or Azure IoT Hub, as well as to any standard MQTT broker such as HiveMQ, Mosquitto, EMQX or a self-hosted broker. Configure the broker endpoint, port and credentials during provisioning and your pipeline receives the data directly, with no Tech OVN server in the path. You own the data in your own cloud account.
Modbus TCP polling speed depends on network latency and how many registers you request per query — reading a contiguous block in one request (for example, the 22 registers from V_L1 to freq) is far quicker than many single-parameter reads. For a fleet, schedule each meter at the interval your application actually needs; energy-management applications commonly work at 1–15 minute resolution. On RS485, the serial baud rate limits throughput more than TCP does, and a standard TIA-485 segment supports up to 32 unit loads, so plan bus length, termination and the number of devices per segment accordingly.
Each site's Titan meters publish to the same MQTT broker (or respond to the same Modbus TCP host) using a site identifier in the topic or as a tag. Your backend pipeline reads all sites from one broker endpoint and routes data by site/meter identity. Alternatively, each site can push to a local broker that forwards to a central broker — a common pattern for sites with unreliable WAN links, as the local broker buffers data during outages.
Yes. Titan Audit is the portable energy logger for short-term audits and temporary sub-metering. It has WiFi, Ethernet and RS485, so it can be read alongside fixed Titan meters in the same pipeline. Confirm the Titan Audit register map with Tech OVN before adding it to an existing polling loop.

Bring accurate meter data into your own software

Titan pushes measurement data to your MQTT broker or HTTP endpoint, or answers your Modbus and BACnet queries — no gateway, no proprietary cloud. Talk to an engineer about your integration.

Book a platform demo