RFID, NFC & UWB · Study deck

UWB Ranging Techniques

Picture a cart moving between two marked points while four systems report different distances.

Radio Remi is your guide for this deck.

angle-of-arrivaltime-difference-of-arrivaltime-of-flight
Radio Remi, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: In SS-TWR, device A sends a poll, device B replies after a known processing delay, and A computes distance from the round-trip time minus B's reply delay.
  • Explain: Subtracting leaves 20 ns for the round trip; halving gives 10 ns of one-way flight time, or about 3.0 m at 0.3 m per ns.
  • Explain: Single-sided TWR assumes the responder delay measured on one device's clock is directly comparable with the elapsed time measured on the other device's clock.
  • Explain why DS-TWR reduces sensitivity to clock-rate mismatch.
iotclass.org

Major section

In 60 Seconds · Eddie's Math Bridge: Bandwidth And Ranging Resolution

Two-way ranging (TWR) measures a round trip between two devices and subtracts responder delay.

  • Double-sided TWR adds a reverse exchange so clock-rate error has less influence.
  • Angle of arrival (AoA) uses antenna arrays to estimate direction and is usually combined with range or TDoA evidence.
iotclass.org

Major section

Ranging Is Evidence · Method Choice Is a Clock and Airtime Budget

UWB does not directly output truth.

  • It produces timestamp, channel, and geometry evidence that a positioning engine or application policy may use.
  • TWR uses a poll and response for pairwise range without synchronizing all anchors, but each pair consumes airtime.
  • TDoA: A tag blink is timestamped by synchronized anchors.

Why it matters

DS-TWR: A second direction or final message lets the pair reduce clock-rate error.

UWB ranging techniques compared by message pattern, clock dependency, geometry, and evidence output.
UWB ranging techniques compared by message pattern, clock dependency, geometry, and evidence output.
iotclass.org

Major section

Two-Way Ranging

The responder delay is T3:T2T_3: T_2T3​:T2​.

  • The initiator's elapsed time is T4:T1T_4: T_1T4​:T1​.
  • where ccc is the speed of light in air for the required engineering precision.
  • The initiator sends a poll at T1 and receives the response at T4.
Two-way ranging times a poll-and-response exchange (T1 to T4) to compute time-of-flight and convert it to a centimeter-level distance.
Two-way ranging times a poll-and-response exchange (T1 to T4) to compute time-of-flight and convert it to a centimeter-level distance.
iotclass.org

Major section

Two-Way Ranging (continued)

The responder records receipt at T2 and reply at T3, so the calculation removes its processing delay from the round trip before estimating time of flight.

  • A mathematically consistent exchange can still be biased by antenna delay or an obstructed path, so the application should use the range with a quality check.
  • Subtracting leaves 20 ns for the round trip; halving gives 10 ns of one-way flight time, or about 3.0 m at 0.3 m per ns.
  • Antenna delay, clock behavior, calibration, and channel quality must be checked before an application trusts the distance for access or safety.
iotclass.org

Major section

Double-Sided TWR

Single-sided TWR assumes the responder delay measured on one device's clock is directly comparable with the elapsed time measured on the other device's clock.

  • Small clock-rate differences can matter when reply delays are long or timing quality is weak.
  • DS-TWR adds a reverse exchange or a final message so the ranging engine has timing measurements from both sides.
  • DS-TWR does not make measurements perfect.
iotclass.org

Major section

Time Difference of Arrival

TDoA changes the architecture.

  • The tag transmits a blink, and multiple anchors timestamp the arrival.
  • The positioning engine compares arrival-time differences, so it can estimate a location from hyperbolic constraints.
  • The tag does not need to range separately with every anchor, but the anchor network must maintain time alignment and good geometry.

Why it matters

Poor geometry can amplify otherwise small timing errors.

UWB positioning architectures: two-way ranging versus TDoA
UWB positioning architectures: two-way ranging versus TDoA
iotclass.org

Major section

Time Difference of Arrival (continued)

Poor geometry can amplify otherwise small timing errors.

  • Poor synchronization directly becomes bad range-difference evidence.
  • In TWR, the tag exchanges messages with anchors and can calculate ranges without a shared anchor clock, but many tags create contention and power cost.
  • That changes the main risk from pairwise airtime to anchor timing and calibration.
iotclass.org

Major section

Angle of Arrival · Measurement Quality

It also creates new failure modes: array calibration, device orientation, polarization, body blockage, and reflections can bias the angle estimate.

  • Every ranging technique needs a quality gate before an application acts.
  • Good systems do not only store a distance or coordinate; they store enough evidence to explain why the measurement was accepted, down-weighted, retried, or rejected.

Why it matters

Direction evidence can reduce ambiguity or improve geometry, especially when combined with TWR or TDoA.

UWB measurement quality path from raw timestamps and channel impulse response through calibration, geometry, confidence, and application action.
UWB measurement quality path from raw timestamps and channel impulse response through calibration, geometry, confidence, and application action.
iotclass.org

Major section

Technique Selection · Example Selection Reasoning

A tool cabinet only needs to know whether one authorized device is near the correct side of the cabinet at checkout time.

  • A factory-wide asset map with many tags may fit TDoA if the site can maintain synchronized anchors and confidence monitoring.
  • A robot docking system might combine range with AoA if direction helps resolve approach angle.
  • None of these choices is complete until the installed environment proves the evidence quality.

Why it matters

DS-TWR can fit because the interaction is local, bidirectional, and low population.

iotclass.org

Major section

Capacity and Failure-Mode Review

Acceptance testing should mirror the decision.

  • The practical split is two-way versus one-way timing.
  • TWR needs a back-and-forth with each anchor, which costs airtime per tag but needs no synchronized infrastructure.
  • A design review that names those checks is stronger than one that only cites an accuracy headline.

Key terms

5 m
5 m is about 5 x tan(10 degrees) = 0.88 m sideways uncertainty.
iotclass.org

Major section

Clock Drift Error Budget · Common Pitfalls

In SS-TWR, device A sends a poll, device B replies after a known processing delay, and A computes distance from the round-trip time minus B's reply delay.

  • The catch is that the reply delay is measured on B's clock while the round trip is measured on A's clock.
  • Those crystals never run at exactly the same frequency.
  • The cost is one more message and more energy per range.

Why it matters

DS-TWR reduces this by adding a third message so each device measures a round trip.

iotclass.org

Major section

Summary

TWR estimates distance from a bidirectional exchange and does not require synchronized anchors.

  • TDoA can support managed multi-tag systems when synchronized anchors and backend quality monitoring are available.
  • AoA adds direction evidence, usually as a complement to range or time-difference measurements.
  • UWB ranging results should be handled as evidence with confidence, freshness, geometry, and fallback rules.

Why it matters

DS-TWR reduces sensitivity to clock-rate mismatch but still needs channel, calibration, and confidence review.

iotclass.org

Major section

Key Takeaway · Concept Relationships

UWB ranging quality depends on timing method, anchor geometry, line of sight, multipath, calibration, and validation against the required accuracy.

  • Wide bandwidth supports precise timestamp evidence.
  • AoA adds direction evidence through antenna geometry.
  • CIR review helps distinguish first-path evidence from reflections.
  • Application policy decides whether evidence is strong enough to accept, retry, down-weight, or fall back.
iotclass.org

Deck summary

Key takeaways

Two-way ranging (TWR) measures a round trip between two devices and subtracts responder delay.

  • UWB does not directly output truth.
  • The responder delay is T3:T2T_3: T_2T3​:T2​.
  • The responder records receipt at T2 and reply at T3, so the calculation removes its processing delay from the round trip before estimating time of flight.
  • Single-sided TWR assumes the responder delay measured on one device's clock is directly comparable with the elapsed time measured on the other device's clock.
iotclass.org

Retrieval practice

Recall check 1 of 4

Radio Remi says: answer from memory, then check your reasoning.

Q1Many tags must send brief location signals. Which ranging approach needs synchronized anchors?

ABasic two-way ranging
BAngle of arrival alone
CAny method with no clock evidence
DTime difference of arrival
Show answer

Answer: D Its anchors compare timestamps from each tag signal.

Q2What does double-sided two-way ranging (DS-TWR) add over basic two-way ranging?

AA satellite uplink that extends ranging to outdoor coverage
BA way to skip subtracting the responder's processing delay
CReverse exchange reduces clock-rate error.
DAn antenna array that directly measures the angle of arrival
Show answer

Answer: C DS-TWR adds a reverse exchange so clock-rate error has much less influence on the distance estimate.

iotclass.org

Retrieval practice

Recall check 2 of 4

Radio Remi says: answer from memory, then check your reasoning.

Q3A ranging trace has a strong late echo but a weak early path. What should the reviewer do?

AUse the strongest peak as the true arrival by default
BAssume the clock method removes all site errors
CCheck first path, obstruction, antenna delay and clock calibration.
DApprove the result because the displayed range is stable
Show answer

Answer: C A strong reflection may be later than the direct path.

iotclass.org

Retrieval practice

Recall check 3 of 4

Radio Remi says: answer from memory, then check your reasoning.

Q4In a UWB TWR exchange, the initiator records T1 = 0 ns and T4 = 220 ns. The responder records T2 = 10 ns and T3 = 210 ns. Using c = 0.3 m/ns, what distance should the initiator calculate?

A3.0 m, because the 200 ns responder delay is subtracted and the remaining 20 ns is a round trip
B33 m, because the initiator waited 220 ns and the one-way distance is half that time
C6.0 m, because the remaining 20 ns is the one-way flight time
D30 m, because the responder delay is the time the signal spent traveling
Show answer

Answer: A TWR subtracts responder delay, then divides the remaining round-trip flight time by two before converting to distance.

iotclass.org

Retrieval practice

Recall check 4 of 4

Radio Remi says: answer from memory, then check your reasoning.

Q5An SS-TWR system shows a ranging error that grows with the responder's reply delay. What is the cause, and which method reduces it?

AClock frequency offset scales the responder's reply delay into error; DS-TWR cancels it with a third message.
BThe radio pulses are simply too wide; narrowing the signal bandwidth fixes the clock error.
CThe anchors are out of time sync with each other; synchronising them fixes SS-TWR.
DRSSI drift causes it; switching to signal-strength-based ranging removes the error.
Show answer

Answer: A SS-TWR error comes from inter-device clock frequency offset scaling the responder's reply delay; DS-TWR times a round trip on each side and cancels the first-order offset, while TDoA instead needs synchronised anchors.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. D · Its anchors compare timestamps from each tag signal.
  2. C · DS-TWR adds a reverse exchange so clock-rate error has much less influence on the distance estimate.
  3. C · A strong reflection may be later than the direct path.
  4. A · TWR subtracts responder delay, then divides the remaining round-trip flight time by two before converting to distance.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. A · SS-TWR error comes from inter-device clock frequency offset scaling the responder's reply delay; DS-TWR times a round trip on each side and cancels the first-order offset, while TDoA instead needs synchronised anchors.
iotclass.org