Overview
A single-radio spectrum inspector for RTL-SDR and SDRplay hardware. A Rust server owns the radio, the DSP and every decoder; usdr-desktop is the native console for it, an egui window drawn through wgpu with its own panafall, a second receiver, sound-card audio and captures to disk, while the same receiver is still served to any browser over WebSocket.
Case study
The problem
Hobby software-defined radios are cheap, but the software around them tends to be either a desktop app tied to one machine or a web view too slow to inspect a signal properly. Decoders are also hard to test, because the signal they need is rarely on the air when you want it.
The approach
A Rust server owns the radio, the DSP and every decoder, and serves the receiver to any browser over WebSocket. usdr-desktop is a native console for the same server, an egui window drawn through wgpu, with its own panafall, a second receiver, sound-card audio and captures to disk.
Decoders cover RDS, SELCAL, time stations, FT8, P25, DMR, POCSAG, AX.25 and more. A saved I/Q capture replays deterministically, producing identical decode events with no radio attached, so every decoder change can be tested against recorded signals.
The result
uSDR is open source and in daily use as a lab receiver for RTL-SDR and SDRplay hardware. A whole frame of the desktop console costs about 1 ms of CPU.
Highlights
- Native desktop console in Rust (egui on wgpu, cpal audio) for Linux, written to build for Windows 11; a whole frame costs about 1 ms of CPU
- Panafall with five styles, decode spots that stack instead of overlapping, and a waterfall kept in dB so a palette change recolors its history
- A second receiver anywhere in the span, with its own passband, meter and left/right audio split
- Decoders for RDS, SELCAL, time stations, FT8, P25, DMR, POCSAG, AX.25 and more, with a packet list, a live map of who was heard and a 20-second recorder
- Deterministic replay: a saved I/Q capture reproduces identical decode events with no radio attached

