DAESUNG G4 Gas Meter Data Gateway with MQTT Uplink

Data acquisition and MQTT publishing layer for DAESUNG G4 gas meters. Normalises meter readings into structured JSON payloads and delivers them to a dedicated EMQX cluster with reconnect handling.

Technical specifications

Meter interfaceDAESUNG G4
TransportMQTT over TLS
BrokerDedicated EMQX cluster
Topicesp32/gasmeter/DAESUNG_G4/data
PayloadStructured JSON
Connection lossAutomatic reconnect and retry

Protocols & interfaces

MQTTJSON over TLSUART

Overview

This integration reads DAESUNG G4 gas meters and publishes normalised readings to an MQTT broker, so downstream billing or analytics systems do not need to understand the meter's native frame format. It is a data-acquisition layer, not a replacement meter.

DAESUNG G4 gas meter data gateway terminal with lens, status light and keyring mount

The gateway terminal reads the meter locally, converts the raw values into named fields and pushes them to a dedicated EMQX cluster — a single, clean data path from the meter to the cloud.

Vision module of the DAESUNG G4 gateway terminal

DAESUNG G4 gateway terminal installed on a mechanical gas meter dial, reading shown as 11238

System architecture

Four building blocks carry a reading from the meter all the way to the billing dashboard.

System architecture: gas meter, gateway, EMQX broker and billing dashboard connected end to end

Data flow

StageDetail
AcquisitionMeter frame read over the local interface
NormalisationRaw values converted into named JSON fields with units and timestamp
PublishingMQTT topic esp32/gasmeter/DAESUNG_G4/data on a dedicated EMQX cluster
ReliabilityReconnect and retry handling for intermittent network links
ConsumptionDownstream billing / dashboard subscribes to the topic

Five-stage data flow from meter frame to downstream consumption

Structured payload

Readings are published as structured JSON with named fields, physical units and a timestamp, so the downstream system can consume them directly.

Structured JSON payload example with device_id, reading, unit, timestamp and schema fields

Integration checklist

  1. Confirm the meter's register layout and scaling factors for the target firmware revision.
  2. Agree a payload schema with the downstream system before field rollout, and version the topic or the payload schema field.
  3. Verify TLS credentials and per-device client IDs on the broker.
  4. Test a 24-hour disconnect/reconnect cycle and check for duplicate readings.

Four-step integration checklist before field rollout

Documentation status

Topic names and payload structure are project-specific. Confirm the final schema and broker credentials against the integration specification before deployment.

Back to catalog