Skip to main content

Dev Station Technology

Telemetry delta calculation guide

Telemetry Delta Calculation To Reduce IoT Data Costs

Telemetry delta calculation is a compression technique where an IoT device sends only the change between the current reading and the last reported value. With a deadband threshold, the device transmits only on meaningful changes, which cuts data, storage and battery cost.

Key takeaways

  • Definition: Delta calculation sends only the change in a reading, in 6 simple steps.
  • 6 steps: Store, read, calculate, apply a deadband, transmit and send a heartbeat.
  • Where: Device-side logic saves most connectivity cost, and a server-side filter saves storage.
  • Tuning: The deadband threshold is the key parameter, because too low saves little and too high loses resolution.
  • Dev Station: Dev Station builds firmware and telemetry pipelines for US and UK device teams.

What is telemetry delta calculation?

Telemetry delta calculation is a data compression technique where an IoT device transmits only the difference between the current sensor reading and the last reported value, and not the full absolute value every cycle. With a deadband threshold, the device transmits only when a meaningful change occurs.

In a standard telemetry loop a device reads a sensor and sends the absolute value on a fixed interval, so a temperature sensor in a stable room sends nearly identical readings again and again. Delta encoding changes the model: the device computes the difference from the last value it successfully transmitted. It is lossless compression tailored to time-series data, and it works best for parameters that stay stable for long periods, such as tank fill levels, room temperature, machine status flags, and battery levels.

Absolute reporting

The device sends the full sensor value every cycle, whether or not it changed. It is simple and wastes bandwidth on redundant data.

Delta reporting

The device sends only the change from the last value, so payloads shrink and only meaningful state transitions are communicated.

Threshold gating

A configurable deadband filters insignificant fluctuations so the radio wakes only for genuine state changes.

How does telemetry delta calculation work?

Delta calculation works as a six-step loop on the device or at the ingestion layer of the platform: store the last sent value, read the current value, calculate the delta, apply the deadband, transmit, and emit a periodic heartbeat.

  1. Store the last sent value. The device keeps the most recent value it successfully transmitted, in volatile memory or flash, for example last_sent_temperature = 25.5.
  2. Read the current sensor value. Sample the sensor on the configured interval, for example current_temperature = 25.6.
  3. Calculate the delta. Compute the absolute difference, for example delta = abs(25.6 minus 25.5) = 0.1.
  4. Apply the deadband threshold. Compare the delta with a threshold such as 0.5 and skip transmission if the delta is smaller. A jump to 26.1 gives a delta of 0.6, which exceeds the threshold and triggers a send.
  5. Transmit the value. Send the delta alone or the full new value. Sending the full value simplifies backend reconstruction, and after a successful send the stored reference updates.
  6. Emit a periodic heartbeat. Even when values are stable, send a full data point at a fixed interval so the backend can confirm the device is online and detect sensor staleness.

The threshold is the most important tunable parameter. Set it too low and the device transmits nearly as often as before, with minimal savings. Set it too high and resolution is lost, and important intermediate changes are missed.

How do you implement telemetry delta calculation?

Implement it on the device for the largest savings and on the server when firmware is locked. The two layers target different costs and complement each other.

Device-side implementation: maximum connectivity savings

Embedding delta logic in the device firmware gives the largest savings, because the radio, the most expensive and power-hungry component, stays dormant between meaningful changes. It is the recommended approach for cellular and battery-powered devices.

Server-side implementation: storage savings with fixed firmware

When firmware cannot be modified, delta filtering can run in the cloud through the rule engine of the IoT platform. It does not reduce cellular data use, because the device still transmits every reading, and it sharply reduces database writes. In ThingsBoard, a rule chain has four nodes:

  • Input node. Receives all telemetry from connected devices.
  • Originator telemetry node (enrichment). Fetches the latest saved value for the target keys, such as temperature and humidity, and adds them to message metadata.
  • Script filter node. JavaScript computes the delta and returns true only if the change exceeds the threshold.
  • Save timeseries node. On the true path, only messages that pass the filter are written to the database, and the false path discards redundant data.

For maximum savings, filter on the device to cut connectivity cost and add a server-side filter as a second layer for devices whose firmware you cannot update.

How do you estimate the savings from telemetry delta calculation?

Estimate savings by comparing monthly messages and data volume with and without the filter on your own sensors. For a fleet of environmental sensors in greenhouses, the saving depends on how stable the readings are, the reporting interval, the deadband, and the data plan, so use measured traces from a pilot and not a generic percentage. Beyond direct cost, fewer database writes extend storage retention, reduced radio activity extends battery life for off-grid devices, and lower message throughput simplifies the backend.

Which advanced delta strategies exist?

Four advanced strategies are adaptive thresholds, delta-of-delta encoding, data batching, and binary payload formats. They stack on top of basic delta reporting.

Adaptive thresholds

A fixed deadband is not always optimal. A chemical reactor sensor might need a tight threshold during an active reaction and a loose one when idle, so the device adjusts the threshold from operating context.

Delta-of-delta (second-order differencing)

For values that change at a steady rate, such as a rising tank level, transmit the change in the rate of change. This compresses further and adds complexity to reconstruction.

Data batching

Collect several changed values in a buffer and send them in one batch, which removes per-message connection overhead on constrained networks.

Binary payload formats

Pair delta calculation with a compact binary format such as Protocol Buffers or CBOR instead of JSON, which shrinks each payload further and stacks with delta savings.

Frequently asked questions

Five questions come up most often when teams reduce IoT data costs.

What is a deadband in telemetry?

A deadband is a threshold below which a change is ignored, so the device transmits only when the change is meaningful.

Why send a heartbeat when values are stable?

A periodic full data point lets the backend confirm the device is online and detect sensor staleness.

Should the device send the delta or the full value?

Sending the full value simplifies backend reconstruction, and sending the delta alone saves more bytes.

Does server-side filtering reduce cellular data?

No. The device still transmits every reading, and server-side filtering reduces database writes only.

Which data suits delta encoding?

Parameters that stay stable for long periods, such as tank levels, room temperature, status flags, and battery levels.

Dev Station Technology builds IoT firmware and platforms for teams in the United States and the United Kingdom, including telemetry pipelines that cut data cost. Contact dev-station.tech or sale@dev-station.tech.

Device and telemetry data stays in your own cloud tenant, in the region your policy requires. Where a client needs SOC 2, HIPAA or UK GDPR evidence, we build the technical controls those frameworks ask for and work alongside the assessor who issues the certificate. Our engineers work from Vietnam with overlap into US Eastern, US Pacific and UK GMT hours, and we invoice in USD or GBP.

Ask an AI about this

Want an AI assistant to summarize or cite this guide?

Click any link below to open the AI with a pre-filled prompt referencing this article:

Talk To Us

Tell us what you are building and what it has to connect to. An engineer answers, and you get a straight view of what the work would take.

Get In Touch →

Related articles

Let's Talk