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

D4 · Lesson 10 · Capstone

A receiver built from the course's pieces, working on raw complex samples of a QPSK signal, a matched filter that adds up each symbol's samples, a known preamble that measures and removes the carrier's phase, Gray-coded decisions, bits back to text, and a measured error rate that lands on the theory

A software-defined radio hands you nothing but a stream of complex numbers: the in-phase and quadrature samples of whatever arrived at the antenna, buried in noise and rotated by an unknown carrier phase. Somewhere in it is a message. Getting it out takes every idea in this course: a filter matched to the pulse to collect each symbol's energy, a known preamble to find the phase, decisions against the constellation's boundaries, and bits turned back into characters. Then, as a check that the receiver is as good as it can be, its measured error rate should match the formula of lesson 5.

  • QPSK symbols as received: rotated by an unknown carrier phase and scattered by noise. The receiver's decision regions are the four quadrants.
  • Rotate by more than 45° and every symbol lands in the wrong quadrant, however strong the signal. That's why the receiver must estimate and remove the phase before deciding.
  • A preamble of symbols the receiver already knows makes the estimate easy: compare what arrived with what was sent.

Predict

The receiver adds up the 8 samples of each symbol before deciding. Compared with deciding from a single sample, by how much does that improve the SNR?

Name it

The receiver chain

  1. Matched filter: for rectangular pulses, sum each symbol's Ns samples (integrate and dump). The SNR improves by Ns.
  2. Phase estimate: with known preamble symbols pk and their received versions rk, the carrier phase is θ^=arg⁡∑krkpk*. Multiplying every symbol by e−jθ^ undoes the rotation. Real receivers track the phase continuously with a phase-locked loop (D5).
  3. Decisions: for Gray-coded QPSK, b0 is the sign of I and b1 the sign of Q.
  4. Framing: drop the preamble and turn each 8 bits into a character.

Scaling the noise

With symbols of unit energy per sample, Ns samples per symbol and complex Gaussian noise of standard deviation σ in each of I and Q, each QPSK bit has

EbN0=Ns4σ2

so a simulation at a chosen Eb/N0 uses σ=Ns/(4Eb/N0), and its measured error rate should approach Q(2Eb/N0).

Worked example

The message is 34 characters sent at Eb/N0 = 7 dB. How many bit errors should you expect?

Show the solution
  1. Bit error rate. 7 dB is a ratio of 5.01: Pb=Q(2×5.01)=Q(3.17)=7.7×10−4
  2. Bits sent. 34×8=272bits
  3. Expected errors. 272×7.7×10−4=0.21
  4. What you see. Most transmissions arrive perfectly. About one in five has an error, almost always a single flipped bit and so a single wrong character.

Answer expect about 0.21 bit errors per message.

Worked example

The Python step measures 40,000 bits at 4 dB. What should it find?

Show the solution
  1. Error rate at 4 dB. 4 dB is a ratio of 2.51: Q(2×2.51)=0.0125
  2. Expected errors. 40000×0.0125=500
  3. Compare with the measurement. The reference receiver counted 483, an error rate of 0.0121, within the statistical spread of 500≈22 errors.

Answer it should find about 500 errors.

Worked example

The 34-character message is sent at 1200 b/s with 8 bits per character. How long does it take on the air?

Show the solution
  1. Bits. 34×8=272bits
  2. Time on the air. At 1200 b/s: 272/1200=0.23s
  3. Overhead. A preamble for carrier phase and timing, and a CRC for checking, add a little more; packet radio protocols such as AX.25 send about this way.

Answer about 0.23 s.

Check

Build the receiver: integrate and dump, the phase estimate, the decisions and the text.

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

Check

A matched filter sums 16 samples per symbol, each with independent noise. How much does it improve the SNR?

Check

A simulation has 8 samples per QPSK symbol of unit energy per sample. What noise standard deviation per component gives Eb/N0 = 4 dB?

Check

A 34-character message is sent as QPSK at Eb/N0 = 6 dB. How many bit errors should you expect on average?

Check

A message of 34 8-bit characters is sent by BPSK at Eb/N0 = 5 dB.

(a)

How many bit errors are expected?

(b)

What is the chance the whole message arrives with no errors?

Check

A simulation counts errors in 10000 BPSK bits at Eb/N0 = 3 dB.

(a)

How many errors should it find on average?

(b)

About how much does that count scatter from run to run (one standard deviation)?

Explain why

Why does the receiver need a known preamble before it can decide QPSK symbols?

Practice

Keep practicing

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