D1210 of 14
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

D12 · Lesson 10 · The channel

What happens to a signal between transmitter and receiver, additive noise and SNR, echoes from multipath and the notches they cut in the spectrum, delay spread against symbol time, frequency offset and Doppler, and measuring each of them from a known preamble

Between the speaker and the microphone, the modem's sound picks up room noise, bounces off walls, desk and ceiling so that delayed copies pile onto the direct sound, and shifts slightly in frequency if either device moves. Radio channels do the same things at much higher frequencies. A receiver can only undo what it can measure, so practical links start every packet with a known preamble and use it to estimate the noise level, when the signal arrived, how it echoes and how far its frequency has moved.

  • The frequency response of a channel with a direct path and one echo of relative gain a, arriving τ milliseconds later: |1+ae−j2πfτ| in dB.
  • The echo adds in phase at some frequencies and cancels at others, cutting notches spaced 1/τ apart. A 1 ms echo puts notches every 1000 Hz, right across the modem's band.
  • As a approaches 1 the notches become deep holes where a tone simply vanishes. That's frequency-selective fading.

Predict

A wall behind the microphone sends back an echo that travels 3.4 m farther than the direct sound. How many 1200 baud symbols later does it arrive?

Name it

Noise

Additive noise from the room, the microphone and its preamplifier sets the SNR, the ratio of mean signal power to mean noise power. For a known signal, subtract it and measure what's left.

Multipath

Each path k adds a copy with gain ak and delay τk:

y(t)=∑kakx(t−τk),H(f)=∑kake−j2πfτk

A two-path channel 1+ae−j2πfτ has power gain 1+2acos⁡(2πfτ)+a2: peaks of (1+a)2, notches of (1−a)2, spaced 1/τ. The delay spread is how long the echoes last. If it's much shorter than a symbol, the channel just scales the signal (flat fading); if it's longer, as in rooms, symbols smear into each other and need an equalizer (lesson 11) or OFDM's cyclic prefix (lesson 13). A known preamble's arrival time is found by cross-correlation, which peaks where the received copy lines up with it.

Frequency offset and Doppler

Mismatched clocks shift the carrier by (ppm × fc). Motion shifts it by the Doppler factor vf/c for a speed v along the path. With sound, c is only 343 m/s, so walking at 1 m/s moves an 1800 Hz tone by 5.2 Hz, far more than a radio sees at the same speed relative to its wavelength. The offset shows as a steady rotation of a known complex tone, so averaging the phase step between samples measures it. Comparing samples L apart turns the same rotation into an L times bigger angle, so noise matters L times less, but the angle wraps once the offset passes fs/2L: a fine estimate over a small range.

Worked example

A 1200 baud acoustic modem's echo arrives with half the direct path's amplitude, 1 ms late. Where are the notches in its band, and how deep?

Show the solution
  1. Where the notches fall. The echo cancels the direct path where 2πfτ=π,3π,… which puts the notches at 500, 1500, 2500 Hz and so on, 1000 Hz apart.
  2. Notch depth. 20log10⁡(1−0.5)=−6.0dB
  3. Peaks between. 20log10⁡1.5=+3.5dB
  4. The mark tone at 1200 Hz. It sits between a notch and a peak: G=10log10⁡(1+0.25+2×0.5×cos⁡0.4π)=+1.9dB

Answer notches 6.0 dB deep at 500, 1500, 2500 Hz and so on, with peaks of +3.5 dB between; the mark tone gets +1.9 dB.

Worked example

A phone carried at 1 m/s receives the 1200 and 2200 Hz tones. How far do they shift?

Show the solution
  1. Doppler shift. A tone shifts by vf/c.
  2. The 1200 Hz tone. Δf=1×1200343=3.5Hz
  3. The 2200 Hz tone. Δf=1×2200343=6.4Hz
  4. Who notices. A noncoherent FSK receiver doesn't care, since its correlators' main lobes are 1200 Hz wide (lesson 4), but a coherent receiver's PLL has to follow it.

Answer 3.5 Hz for the 1200 Hz tone and 6.4 Hz for the 2200 Hz tone.

Worked example

What path difference makes an echo arrive 1 ms late in air, and how does a room's half-second reverberation compare with a 1200 baud symbol?

Show the solution
  1. Path difference. The distance sound covers in 1 ms: d=343×0.001m=34.3cm
  2. Symbol length. A symbol lasts 0.83 ms.
  3. Compare with the reverberation. A reverberation of 0.5 s smears each symbol over hundreds of later ones, so acoustic modems must either equalize or use slow symbols with long guard times.

Answer 34.3 cm of extra path, and the reverberation spans hundreds of 0.83 ms symbols.

Check

Model a channel and measure it: noise, echoes, arrival time and frequency offset.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

An echo travels 3.4 m farther than the direct sound. How many samples later does it arrive at 8000 samples per second?

Check

An echo of relative amplitude 0.5 arrives with the direct signal. How deep are the notches it cuts?

Check

A microphone moves toward a speaker at 1 m/s. How far does a 1200 Hz tone shift?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

Check

A receiver estimates frequency offset by comparing samples 10 apart at 9600 samples per second. What's the largest offset it can measure without the phase wrapping?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

Check

An echo of amplitude 0.5 arrives 0.5 ms after the direct sound.

(a)

How far apart are the notches?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

(b)

How deep are they?

(c)

What extra path length causes it?

Check

A phone moves at 1 m/s while receiving a 1200 Hz tone.

(a)

How far does the tone shift?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

(b)

What fractional shift is that?

Explain why

Why do echoes that are much shorter than a symbol cause less trouble than echoes that are longer?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.