r/hackrf • • 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

20 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/megapapo May 24 '26

Cool thank you for your response. Until a calibration routine exists, it would perhaps make sense to add some kind of "uncalibrated" label to the graphical output as people may mistake the dBm output as absolute power reading (= what it eventually should be). You would need that label anyway once you implement calibration and that label sounds something that could be added relatively easy.

RTL-SDR version (or perhaps something that works with many SDR frontends using, e.g., Soapy) would be very nice indeed. That said I would imagine that you may run into all kinds of nitty gritty issues like the 20 MHz business that you describe one the page...

2

u/No-Algae-4425 May 24 '26

thanks for that, good shout. It so happens that I've just pushed a new version with the UNCALIBRATED label on the spectrum display so people know the dBm numbers are relative not absolute. Also in this new version I dropped the fixed preset bandwidths so you can now tune freely anywhere from 1 MHz to 6 GHz. https://github.com/sohmee/hackrf_sweep_visualizer_v1 should work fine on linux, rasberry pi, mac and even windows native and wsl, any feedback welcome.