How To Preserve Water Meter Readings Through A Telemetry Interruption
By Ercan Özdemir

At 08:30, the screen in a utility control room still shows the meter reading from 08:00. Half an hour later, communication returns and the total advances. How much water passed through the meter during the gap? The two totals may answer that question. They cannot tell an operator whether most of the flow occurred in the first five minutes or the last five. That distinction matters when investigating a suspected leak or reconciling an overnight demand peak.
A utility can test what its telemetry system preserves before it needs those records. The test takes one meter or a simulator, access to a gateway, and an export of the observations from the receiving system. The most revealing part is what happens after the network comes back.
Give Each Reading A Durable Identity
Start with what the meter actually measures. A cumulative register reports the volume recorded since its starting point. To calculate consumption over an interval, subtract the earlier register value from the later one, provided the units, scale, and register identity agree. Check for a meter replacement, reset, or rollover before interpreting a decrease. Keep the original readings alongside any consumption calculated from them. An operator investigating a discrepancy can then repeat the calculation.
Each observation needs a meter identifier, a register or channel identifier, a value, and its unit. Record when the value was sampled and how that time was obtained. If a gateway polls a meter that supplies no timestamp, the gateway can record the poll time and identify it as such. Keep the time the central system received the reading in a separate field. Backfilled readings can arrive seconds apart even though the samples were taken 15 minutes apart.
Assign an observation identifier before putting the reading in the gateway's persistent queue. One option is a source identifier paired with a sequence number that survives restarts. If the counter must restart at zero, include a new, unique stream identifier and keep the old identifier on every queued record. Otherwise a perfectly good sample taken after a reboot can look identical to one taken yesterday.
Follow Four Readings Through An Outage
Consider the illustrative bench trace below. A simulator advances a cumulative register every 15 minutes. All times are UTC and all four observations refer to the same meter and register. The gateway keeps polling while its upstream connection is down. It restarts between the second and third samples and finishes restarting before the next poll.

The register advances by 1.2, 0.8, and 0.4 cubic meters in successive intervals, for a total of 2.4 cubic meters over 45 minutes. Plotting the middle two values against arrival time squeezes half an hour of meter history into three seconds. Grouping those same values by sample time restores the interval history. Both timestamps remain useful. Their difference shows how late the control room learned what the meter had recorded.
Now make the receiving system save observation 411 and interrupt the acknowledgement before it reaches the gateway. The gateway has no way to know the save succeeded. On its next attempt, it sends 411 again with the original observation identifier and sample time. The receiver should recognize the repeated identifier, retain a single observation, and acknowledge the retry. If the repeated identifier carries a different value, preserve evidence of the conflict for investigation. Silently overwriting the first value makes the discrepancy harder to trace.
Write Acceptance Criteria An Operator Can Check
Before the test, agree where a successful acknowledgement is issued. If the gateway deletes a record as soon as a communications broker accepts it, a database failure farther downstream can still leave a hole. Either retain the record until the agreed destination confirms durable storage, or give the intermediate service explicit responsibility for preserving it and completing delivery. Ask who can retrieve a specific record from that handoff point after a restart.
Run the trace and export the central history. It should contain four distinct observations for this register, including sequence 411 exactly once. Their original sample times should survive both the restart and the retry. The three calculated intervals should sum to 2.4 cubic meters. Retain the simulator's expected values with the export so that the test can be repeated after a gateway or software change.
Then repeat the exercise with a different failure. Disconnect the meter from the gateway for one scheduled poll while leaving the gateway online. A communications queue can preserve a sample the gateway acquired. It cannot supply a sample the gateway never saw. If the meter keeps its own timestamped history, try reading that history after reconnection. If there is no recoverable observation, mark the affected interval as missing. Where a utility permits estimates, label the estimate and keep its method visible.
Finally, size the queue for the outage the utility intends to tolerate. At one reading every 15 minutes, 100 meters with one register each produce 9,600 observations in 24 hours. Measure the bytes per stored observation on the intended hardware, including indexing overhead, and allow room for recovery while new readings continue to arrive. During commissioning, record the oldest queued sample, the queue depth and the time needed to empty it. Those figures tell an operator how much history is still waiting when the dashboard first shows the link is healthy again.
Ercan Özdemir is founder and CEO of ALVEXIS Teknoloji A.Ş., an electronics and embedded systems design company based in Ankara, Türkiye. His team works on industrial data acquisition and integration between field devices and embedded gateways.