Analytics & ML · Study deck

Radio Gateway Aggregation

Picture twenty cold-room sensors sending values through one edge box.

Data Dora is your guide for this deck.

edgeradiogateway
Data Dora, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain why radio transmission usually dominates battery-powered edge acquisition.
  • Design adaptive sampling, batching, and in-network aggregation policies that reduce uplink traffic.
  • Preserve min, max, count, event flags, sequence metadata, and queue-health fields so summaries remain interpretable.
  • Evaluate the latency, detail loss, and aliasing risks introduced by low-power gateway policies.
iotclass.org

Major section

Start With the Story

The system owner must decide what may be combined and what must remain separate.

  • Reducing data must not hide the one event that drives a safe action.
  • A remote service may compare sites, but each hand-off must preserve source, time, unit, quality, and version.
  • This opening does not choose every summary or radio.
iotclass.org

Major section

Phoebe's Field Notes: Why the Freezer's 10-Second Sample Rate Can Alias

The mathematical gist.: A 10-second freezer schedule samples at 0.1 Hz, so it can represent only changes up to 0.05 Hz.

  • A three-second door transient is about 0.333 Hz and aliases to 0.033 Hz, a false slow wobble.

Numbers to remember

0.05 Hzso it can represent only changes up to 0.05 Hz.
0.333 HzA three-second door transient is about 0.333 Hz
0.667 HzResolving it needs at least 0.667 Hz (one sample every 1.5 seconds)
iotclass.org

Major section

Radio Dominates Battery Drain

On a battery-powered sensor node, the intuition that "computing costs energy" is misleading.

  • The real energy hog is the radio: transmitting data can cost as much energy as executing thousands of instructions.
  • This single fact reshapes the whole acquisition strategy -- the goal is to transmit less, even if that means computing more.
A gateway reduces endpoint burden by translating local device protocols, buffering during outages, applying security policy, and forwarding compact cloud messages instead of every raw sensor event.
A gateway reduces endpoint burden by translating local device protocols, buffering during outages, applying security policy, and forwarding compact cloud messages instead of every raw sensor event.
iotclass.org

Major section

Radio Dominates Battery Drain (continued)

The local network decides which radio path is cheap enough for the payload.

  • The sensor did not become magical; it simply stopped waking and talking so often.
  • Intuition: talking is expensive, thinking is cheap.
  • The power lesson is therefore architectural, not only electrical.
  • The gateway decides what must cross the costly backhaul.
iotclass.org

Major section

Adaptive Sampling and Aggregation

A practical design starts by writing the radio schedule before the analytics pipeline.

  • For each measurement family, decide the minimum rate needed to avoid missing the phenomenon, the event trigger that justifies an immediate send, and the heartbeat interval that proves the node is still alive.
  • The cloud still receives enough information to reconstruct equipment state, while the radio avoids hundreds of routine packets.
  • The gateway then becomes the place where repeated local readings are turned into evidence.

Key terms

If each raw reading
If each raw reading is a compact 20-byte payload, the naive hour is about 24 kB before radio overhead and acknowledgements.
iotclass.org

Major section

Adaptive Sampling and Aggregation (continued)

A freezer temperature sensor might sample every 10 seconds locally, but send only when temperature moves more than 0.5 C, when a door-open event occurs, or when the hourly heartbeat is due.

  • For maintenance dashboards, min/max and count often matter as much as the mean; for alarms, the event flag may matter more than the average.
  • If each raw reading is a compact 20-byte payload, the naive hour is about 24 kB before radio overhead and acknowledgements.
  • A summary message with mean, min, max, count, timestamps, and a health flag might be under 80 bytes.
iotclass.org

Major section

Energy-Saving Tradeoffs

Energy reduction is never free.

  • A radio wake-up has fixed overhead: the oscillator starts, the transceiver locks, the MAC may listen or join, the packet is sent, and acknowledgements or retries may follow.
  • Batching ten readings into one wake-up can save much of that fixed cost.
  • Aggregation has a different cost.
  • Adaptive sampling also needs a guardrail.

Key terms

More batching
More batching means more energy saved and more delay -- a direct trade-off.

Why it matters

It works because the system chooses which information can be delayed, summarized, or ignored.

iotclass.org

Major section

Energy-Saving Tradeoffs (continued)

The gateway can reduce data, but it should also report what it reduced and which assumptions were active.

  • A mean is compact and useful for trends, but it is lossy.
  • If a motor bearing temperature is 40 C for 59 minutes and 95 C for one minute, the hourly mean may look harmless while the peak was the maintenance signal.
  • More batching means more energy saved and more delay -- a direct trade-off.
iotclass.org

Major section

Energy-Saving Tradeoffs (continued)

A node that samples slowly during stable periods can miss a short transient if the signal changes faster than the reduced sampling rate can observe.

  • Each summary should carry the number of raw readings represented, the time range covered, and whether any local queue overflow, retry limit, or sensor error occurred.
  • Without those fields, the cloud cannot distinguish "stable temperature" from "gateway dropped half the batch." Energy savings are only useful when the downstream interpretation remains honest.
  • Adaptive sampling can alias Slowing the sample rate during a fast transient can miss or alias it (the Nyquist rule still applies).
iotclass.org

Major section

Energy-Saving Tradeoffs (continued)

It works because the system chooses which information can be delayed, summarized, or ignored.

  • Batching costs latency Sending many readings in one radio wake-up amortises the fixed cost of powering the radio on, but holds data back until the batch is sent.
  • Adapt on the signal's real dynamics and keep a minimum floor rate so fast events are not lost.
  • The gateway's job is to decide what is worth the energy to send.
iotclass.org

Deck summary

Key takeaways

The system owner must decide what may be combined and what must remain separate.

  • The mathematical gist.: A 10-second freezer schedule samples at 0.1 Hz, so it can represent only changes up to 0.05 Hz.
  • On a battery-powered sensor node, the intuition that "computing costs energy" is misleading.
  • The local network decides which radio path is cheap enough for the payload.
  • A practical design starts by writing the radio schedule before the analytics pipeline.
iotclass.org

Retrieval practice

Recall check 1 of 3

Data Dora says: answer from memory, then check your reasoning.

Q1On a battery sensor node, which activity typically dominates the energy budget, and what strategy follows?

ALocal computation dominates, so the strategy is to stream raw readings and avoid filtering on the node.
BRadio transmission dominates, so the strategy is to filter and batch locally before sending.
CSensor conversion dominates, so the strategy is to sample faster and upload every reading.
DStorage dominates, so the strategy is to delete timestamps and keep the same radio schedule.
Show answer

Answer: B Local filtering, batching, and aggregation reduce the expensive radio work.

iotclass.org

Retrieval practice

Recall check 2 of 3

Data Dora says: answer from memory, then check your reasoning.

Q2Why does in-network aggregation at a gateway reduce energy across the system?

AIt speeds up each sensor processor, so raw readings can be transmitted more often at no extra radio cost.
BIt expands every raw sample with cloud metadata, so analytics receives more bytes per sensor reading.
CIt combines many readings into compact summaries, so fewer upstream packets use the expensive radio link.
DIt turns sensors off permanently after one summary, so later measurements no longer need reporting.
Show answer

Answer: C Gateway aggregation cuts the number and size of costly upstream transmissions.

iotclass.org

Retrieval practice

Recall check 3 of 3

Data Dora says: answer from memory, then check your reasoning.

Q3A node saves energy by only transmitting the hourly mean temperature. What important risk does this create?

AA short spike can disappear inside the mean unless min, max, or event flags are also sent.
BThe gateway must upload the raw samples first so the cloud can compute the hourly summary consistently.
CThe summary's metadata can outweigh its payload savings, increasing the node's total radio energy.
DThe average becomes invalid whenever the node sleeps between measurement batches.
Show answer

Answer: A A mean alone can discard peaks, so summaries should preserve extremes or events when those decisions matter.

iotclass.org

Print reference

Answers

Answer key.

  1. B · Local filtering, batching, and aggregation reduce the expensive radio work.
  2. C · Gateway aggregation cuts the number and size of costly upstream transmissions.
  3. A · A mean alone can discard peaks, so summaries should preserve extremes or events when those decisions matter.
iotclass.org