Chapters

23 Sending Readings Over the Link

fundamentals
sensor
pipeline
transmission

23.1 In 60 Seconds

Trace One Reading Until the Receiver Can Defend It

Picture a freezer sensor sending a warning through a wall to a staff screen. A radio burst is not the result; the result is a fresh, correctly labelled reading at the right receiver. The first design question is which evidence survives the whole trip.

An analog-to-digital converter is a circuit that turns a measured voltage into a number; ADC is its short name. A gateway means a device or service that joins two message paths. A payload means the useful reading or command carried inside a message.

Record source identity, time, unit, quality, payload version, link attempt, and receiver state. Block the path, delay a packet, repeat it, restart the gateway, and reject stale or duplicate data. Keep the local warning active when remote delivery cannot be proved.

This runway does not prove that one radio or retry rule fits every site. The deeper sections cover link choice, complete transaction cost, hand-offs, retries, freshness, and delivery evidence.

Transmission is the final stage where a prepared packet has to survive the real path: link behavior, gateway or peer handoff, retry policy, and receiver evidence. Choose the link from range, freshness, cadence, payload, power, ownership, and reliability needs, then measure the whole transaction rather than only the over-the-air burst.

23.2 Start With the Story

You will choose a link, estimate the whole transaction cost, and check whether readings actually reach the receiver. Start with delivery requirements, including delay, energy, and behavior during an outage.

Follow one assembled packet across four beats to see why the link decision includes the whole transaction and its delivery evidence.

  1. Packet Pete brings an assembled sensor packet to Radio Remi beside several link paths with different abstract gauges.

    Packet Pete: “The packet is ready; now the link must fit the real delivery need.”

  2. Packet Pete, Radio Remi, and Bex watch acknowledgements, retries, and wrapper blocks accumulate around a weak link.

    Bex: “The payload is only one part of the airtime, energy, and retry cost.”

  3. Packet Pete, Radio Remi, and Architect Bina compare a complete transaction against range, energy, timing, and resilience gauges.

    The team: “Choose the link from requirements and budget the complete exchange.”

  4. Packet Pete, Radio Remi, and Test Tessa watch the chosen path deliver a reading and return a verified receipt.

    Test Tessa: “The path is defensible when delivery and failure evidence are both visible.”

A link fits when the complete transaction meets range, energy, timing, and resilience requirements.

The mathematical gist. Radio-on energy is E=Pt=P×bits/RE=P\,t=P\times\mathrm{bits}/R. For this chapter’s extra byte at 5,470 bit/s and a 0.33 W radio, eight extra bits take 1.46 ms and cost 0.483 mJ per reading. At 96 readings per day, that is 46.3 mJ/day; over five years it is 0.0235 Wh, or 23.5 mWh, spent carrying one unnecessary precision byte.

Math Bridge · guided foundationsWhat does one extra byte cost over five years?Let Phoebe connect bits, data rate, radio power, cadence, and the chapter's 23.5 mWh result.

23.3 Transmission Is a Transaction, Not a Burst

The final pipeline stage moves a prepared packet across a real communication path. The useful question is not "which radio is fastest or longest range." It is whether the link can meet the application's range, update interval, latency, power source, reliability, coverage, and operations needs.

The important idea is that sending a message is a whole transaction, not a single over-the-air burst. A device may wake, set up a session, transmit, listen for an acknowledgement, retry, hand off through a gateway, and only then sleep. The best link is the one whose real transaction behavior matches the value of the data and the constraints of the deployment.

If you only need the intuition, this layer is enough: start from the assembled packet and its delivery requirement, match the link to range, cadence, payload, power, and reliability, then account for the full transaction rather than the transmit time alone.

Think of mailing a parcel. The postage on the box is only part of the cost; the trip to the depot, the wait in line, the handoffs, and the proof-of-delivery slip are the rest. A radio works the same way: airtime is one line item in a longer transaction.

For example, a greenhouse soil sensor may send a 24-byte reading every 15 minutes and a frost alarm within 30 seconds. A wall-powered Wi-Fi gateway can afford association and broker handoff differently from a battery probe using LoRaWAN or LTE-M. The packet is small in every case, but the transaction is not the same: one design pays for local infrastructure and keepalive behavior, another pays for long-range link budget, receive windows, backoff, and gateway or carrier dependence. The transmission stage asks which complete path can deliver the value while preserving battery, freshness, and recoverability.

Pause at the figure Figure 23.1 before applying Transmission Is a Transaction, Not a Burst. Its Packet and payload plus labels show why Stage seven: start from the assembled packet, match the link to range, cadence, payload, power, and reliability, then count the whole transaction through gateway or peer handoff to delivery evidence needs an evidence check for Transmission Is a Transaction, Not a Burst here.

Stage seven transmission transaction path showing a packet, link requirements, wake setup send listen and retry behavior, gateway or peer handoff, and delivery evidence.
Figure 23.1: Stage seven: start from the assembled packet, match the link to range, cadence, payload, power, and reliability, then count the whole transaction through gateway or peer handoff to delivery evidence.

Three labelled stops organise Figure 23.1. Packet uses Packet to show the next hand-off; moving to payload plus shows where it uses payload plus to show the next hand-off; ending at range, cadence, payload shows where it uses range, cadence, payload to show the next hand-off. Together they explain why Stage seven: start from the assembled packet, match the link to range, cadence, payload, power, and reliability, then count the whole transaction through gateway or peer handoff to delivery evidence matters to Transmission Is a Transaction, Not a Burst.

The One-Minute View

Start from the packet

The payload already has meaning and metadata. Transmission decides whether it can move and what proves it arrived.

Match link to requirements

Choose from range, cadence, payload size, power source, coverage, ownership, and reliability, not from a single headline spec.

Count the whole transaction

Wake, session setup, listen, acknowledge, and retry can cost more time and energy than the transmit burst itself.

Beginner Examples

  • A slow status update does not need the same link behavior as a low-latency control message; the choice starts from value and timing.
  • A packet can fit a link's payload limit yet still drain the battery if retries keep the radio awake.
  • A deployment in difficult terrain needs coverage evidence and a fallback rather than a data-sheet range number.

Transmission Fit Knowledge Check

If this gives you the model, you can stop here. Continue to Practitioner to choose a link and account for its transaction cost.

23.5 Under the Hood: Resilience and Delivery Evidence

Field connectivity is imperfect. A complete transmission design states what the system does when links are weak, receivers are down, packets arrive twice, or stale data returns after a gap. Resilience is part of the design, not an afterthought.

Consider a parking-lot flood sensor that normally reports every ten minutes but may lose gateway coverage during heavy rain. The device should not retry continuously until the battery is exhausted. A better design stores a bounded queue with sequence numbers and timestamps, backs off after failed acknowledgements, expires routine readings that are no longer useful, and keeps the most recent alarm state until it is delivered or replaced by a newer state. When the gateway returns, the receiver can detect gaps, ignore duplicates, and distinguish a current alarm from stale backlog. That behavior matters more than shaving a few bytes from a packet, because the field failure is a delivery semantics problem.

The evidence should come from both sides of the path. Device logs show wake time, retry count, buffer depth, sequence number, and battery state. Gateway or server logs show first-seen time, duplicate suppression, acknowledgement timing, and whether the application accepted, expired, or escalated the reading. Comparing those two views prevents a misleading conclusion such as "the device sent it" when the receiver never accepted a fresh value.

That paired evidence also defines the recovery contract: how many values may queue, how old an alarm may be, when a retry stops, and which component reports the gap to the operator. It turns link outages into visible system behavior.

Use the figure Figure 23.5 to test Under the Hood: Resilience and Delivery Evidence against the depicted system. Transmission resilience evidence loop and New reading expose the two named boundaries behind A resilience evidence loop: bound the buffer, send with acknowledgement, back off after failed delivery, expire stale data, and compare device logs with receiver logs.

Transmission resilience evidence loop for a flood sensor, showing bounded buffer, send attempt, acknowledgement, backoff, stale-data expiry, and paired device and receiver logs.
Figure 23.5: A resilience evidence loop: bound the buffer, send with acknowledgement, back off after failed delivery, expire stale data, and compare device logs with receiver logs.

Follow a new reading through the buffer and send attempt in Figure 23.5. Acceptance ends the attempt; missing acknowledgement leads to backoff, while stale readings expire. Compare the paired logs below to distinguish attempted delivery from a fresh value recorded by the receiver.

Buffer

Keep unsent values only while they remain useful. A stale value must not masquerade as a current measurement.

Back off

Retry policy should protect both the battery and the network. Continuous retries can be worse than a controlled data gap.

Prove delivery

Use sequence numbers, timestamps, acknowledgements, or receiver-side audits when the application needs proof of arrival.

Transmission Review Workflow

Step
Question
Evidence
Review Output
Bound the link
Which device, gateway, peer, network, and application boundary is under review?
Site sketch, ownership, coverage notes, and the data path.
Transmission boundary and assumptions.
Define useful delivery
How old can the value be, and how much loss or duplication is acceptable?
Latency, freshness, alarm, and audit requirements.
Delivery semantics and stale-data rule.
Measure transaction cost
What does one useful message actually do on the device and network?
Trace, log, current profile, retry count, and server timing.
Energy and latency budget categories.
Validate failure behavior
What happens during weak coverage, outage, duplicate delivery, or backlog?
Forced-outage test, retry log, buffer depth, and recovery trace.
Buffer, backoff, expiry, and recovery policy.

Common Pitfalls

  1. Treating coverage as yes-or-no. Real sites have dead zones, moving obstructions, antenna-orientation issues, and gateways under maintenance. Record coverage evidence and repeat coverage checks when the site changes.
  2. Counting only transmit airtime. Wake time, session setup, listen windows, acknowledgements, retries, and backhaul delays can dominate the result.
  3. Letting retries erase the power budget. Unbounded retries drain a device and congest the network. Retry policy needs backoff, expiry, and a rule for when data is no longer worth sending.

Resilience Evidence Knowledge Check

At this depth, transmission is reviewed from the field backward: what must arrive, how fresh it must be, what happens when the link fails, and what evidence proves the system behaved correctly. The best optimization is usually fewer useful packets, then clear contracts, then the right link.

23.6 Summary

  • Transmission is a transaction, not only an over-the-air burst.
  • Link choice starts from requirements: range, freshness, cadence, payload volume, power source, ownership, and reliability.
  • Energy and latency budgets need categories so device behavior and infrastructure delay are not confused.
  • Resilience is part of the design: buffering, retry, backoff, expiry, duplicate detection, and delivery evidence should be deliberate.
  • The best optimization is often fewer useful packets, followed by clear payload contracts and an appropriate link.
Key Takeaway

Review stage seven from the field transaction backward: what must arrive, how fresh it must be, what happens when the link fails, and what evidence proves the system behaved correctly.

23.7 See Also

Pipeline Processing and Formatting

Review stages four to six, where the packet becomes meaningful before it enters the link.

Protocol Selection Framework

Choose a link family from deployment evidence using a systematic selection method.

Packet and Protocol Overhead

Connect packet bytes, wrappers, and the transaction cost that dominates energy and latency.