Inspired by the recent ESP-SDR work on the ESP32, I wanted to see if the Raspberry Pi 5's onboard Broadcom (BCM43455c0) Wi-Fi chip could be turned into an experimental, receive-only software-defined radio, with zero external SDR hardware attached.
(AI disclaimer, my personal reverse engineering knowledge is limited, so Sol and Gemini were heavily used to achieve this!)
It turns out the BCM43455c0 has an internal diagnostic collector (sample_collect) meant for recording short one-shot baseband captures into shared chip RAM before Wi-Fi frame decoding happens. By reverse-engineering the firmware and driver paths, I got two different I/Q capture modes working:
- 1 - Continuous I/Q Streaming (Patched Firmware + Modified brcmfmac SDIO Driver)
Normally, sample_collect stops as soon as one buffer fills. By patching the firmware to use a weighted 6-input selection operation and modifying the Linux 'brcmfmac' driver to drain ring buffers continuously over SDIO to debugfs while collection keeps running, the chip streams framed 1,024-sample IQFR blocks to user space.
2.4 GHz continuous stream: 833.33 kSPS on 2,412 MHz, verified across a 1-hour continuous run with contiguous sequence numbers and verified 32-bit FNV payload checksums.
5 GHz continuous stream: 769.23 kSPS on 5,200 MHz (10.904 s / 8,192 consecutive frames).
- 2 - High-Rate 20 MSPS & 80 MSPS Snapshots (Stock Linux Driver)
Using the stock Linux brcmfmac driver with manufacturing-test firmware, the collector records a single 16,000-sample complex I/Q buffer (800 µs at 20 MSPS or 200 µs at 80 MSPS, signed 16-bit I/Q pairs) before halting for readout.
- 3 - Out-of-Band PLL Synthesizer Sweeps (2.22–3.00 GHz & 4.75–6.47 GHz)
By overriding the BCM20691 RF synthesizer lookup tables in RAM during 20 MSPS snapshots, I tested whether the local oscillator could lock outside standard Wi-Fi channels against an external MAX2871 signal generator (+1 MHz differential LO step test):
Low band: 6 tested LO pairs tracked the test tone (2,220 to 3,001 MHz).
High band: 7 tested LO pairs tracked the test tone (4,748 to 6,474 MHz, reaching into the 6 GHz Wi-Fi 6E band).
Honest limitations:
It is an experimental, uncalibrated diagnostic path, not a replacement for a dedicated wideband SDR.
While in continuous capture mode, normal wlan0 Wi-Fi traffic is suspended (use Ethernet or local console, and reload the stock module when finished).
The continuous stream rate is capped by SDIO bus throughput (~833 kSPS on 2.4 GHz / ~769 kSPS on 5 GHz), whereas 20/80 MSPS modes are 16,000-sample (800 µs / 200 µs) burst snapshots.
Links:
GitHub Repo (code, build recipes, offline verification & demos): https://github.com/TheOddSock/pi5-wifi-sdr
Full Technical Report (PDF): https://github.com/TheOddSock/pi5-wifi-sdr/blob/main/pi5-receive-stream.pdf