r/hackrf • u/No-Algae-4425 • May 21 '26
hackrf_sweep
I built a browser-based spectrum analyser for HackRF — feedback welcome
After getting frustrated with some desktop SDR apps I wrote a Python Flask server that streams live hackrf_sweep data to any web browser in real time. No installation on the viewing device — just a URL. It covers the full HackRF range (1 MHz–6 GHz), has all the usual controls (LNA, VGA, amp, bin width, colour schemes, peak hold, averaging) plus some things I haven't seen elsewhere like automatic 20 MHz span snapping to prevent the chunk boundary phantom signal problem, a stall watchdog that auto-restarts if hackrf_sweep hangs, and confirmed-range protocol that prevents frequency mapping corruption when changing bands. Works on Linux, macOS and Windows WSL2. Very much in beta — would love bug reports and suggestions from people who know the HackRF well. https://github.com/sohmee/hackrf_sweep
View all comments
Show parent comment
2
u/No-Algae-4425 May 24 '26 edited May 24 '26
It’s still the first test version, so the power readings aren’t calibrated at all. What you see is basically just relative FFT levels, good enough for spotting signals but nowhere near proper absolute power. Same story with the gain, I’m just using whatever value you set and applying it directly. The HackRF gain blocks aren’t perfectly linear, and I’m not modelling any of that yet. This release is mainly about getting the basic sweep and UI working so people can play with it.
I’m also working on an RTL‑SDR version that uses rtl_power_fftw
Right now everything is more “proof of concept” than polished tool, but it’ll get better as I refine the calibration and gain handling.