How it works
In Modbus RTU, one device (usually the gateway) acts as the master and polls each meter in turn by its address. Each meter keeps its values in registers, for example total kWh or voltage. The gateway reads those registers on a schedule and forwards the results to the platform.
What to prepare
- A register map from the meter's manual: register address, data type, scaling and byte order.
- A different Modbus address for every meter on one bus.
- The same communication settings across the whole bus: baud rate, parity and stop bits.
- Twisted-pair cable daisy-chained from one meter to the next, not branched, with termination resistors at both ends of the bus.
Common mistakes
- Swapped word order on 32-bit values, so the numbers look random.
- Wrong address offset: the manual says 40001 while the device expects 0.
- Two meters with the same address on one bus, so their replies collide.
- A polling interval too fast for the number of meters on one bus.
On NusaSense
- Register maps are stored as data in the device profile. A new meter brand only needs a new profile, with no platform code change.
- The gateway forwards readings through a versioned edge contract, and the meters behind it remain registered as devices of their own.
- Relays behind the gateway can be commanded through the same contract, confirmed by the device report.