HACKRF_SWEEP(1)
π HACKRF_SWEEP π
okay bestie, so this is a page from the User Commands manual, and it's all about hackrf_sweep β the little icon that controls the frequency sweep of your HackRF. yes, the sweeping. the girlies love a good sweep. let's get into it π§Ήβ¨
πΈ DESCRIPTION πΈ
so hackrf_sweep is used like this, and I'm putting it in a code block so nothing gets lost, because every single one of these matters:
[-h] # this help
[-d serial_number] # Serial number of desired HackRF
[-a amp_enable] # RX RF amplifier 1=Enable, 0=Disable
[-f freq_min:freq_max] # minimum and maximum frequencies in MHz
[-p antenna_enable] # Antenna port power, 1=Enable, 0=Disable
[-l gain_db] # RX LNA (IF) gain, 0-40dB, 8dB steps
[-g gain_db] # RX VGA (baseband) gain, 0-62dB, 2dB steps
[-w bin_width] # FFT bin width (frequency resolution) in Hz
[-P estimate|measure|patient|exhaustive] # FFTW plan type,
default is 'measure'
[-1] # one shot mode
[-N num_sweeps] # Number of sweeps to perform
[-B] # binary output
[-I] # binary inverse FFT output
[-n] # keep the same timestamp within a sweep
-r filename # output file
let me break those down one by one, because a girl does not gatekeep π«Ά
-hβ this help. it's giving "help me help you". ask and you shall receive π-dserial_numberβ Serial number of desired HackRF. got multiple HackRFs? pick your fave by serial, no cap π-aamp_enableβ RX RF amplifier,1=Enable,0=Disable. on or off, binary queen π-ffreq_min:freq_maxβ minimum and maximum frequencies in MHz. the range, the whole vibe, your sweep's lil window π-pantenna_enableβ Antenna port power,1=Enable,0=Disable. feeding power to the antenna port, periodt β‘-lgain_dbβ RX LNA (IF) gain,0-40dB,8dB steps. gain goes up in chunky lil eight-dB steps π₯-ggain_dbβ RX VGA (baseband) gain,0-62dB,2dB steps. this one's finer, two-dB steps, so precise bestie π-wbin_widthβ FFT bin width (frequency resolution) in Hz. how finely you're slicing the spectrum, literally the resolution of the whole thing π¦-Pestimate|measure|patient|exhaustiveβ FFTW plan type, and the default ismeasure. four flavours, one plan, choose your fighter β¨-1β one shot mode. one and done, main character energy, no repeats π-Nnum_sweepsβ Number of sweeps to perform. tell it how many laps to run πββοΈ-Bβ binary output. not for the faint of heart, it's giving raw bytes π€-Iβ binary inverse FFT output. same energy, but inverse, iykyk π-nβ keep the same timestamp within a sweep. one sweep, one timestamp, consistency slay β°-rfilenameβ output file. write it down, save it, secure the bag πΎ
π Output fields:
when it spits out data, the fields go like this, in this exact order:
date, time, hz_low, hz_high, hz_bin_width, num_samples, dB, dB, . . .
so: date, then time, then hz_low, hz_high, hz_bin_width, num_samples, and then a whole parade of dB values trailing off into the sunset like dB, dB, . . . β yes, as many as it takes πΈ
π¦ SEE ALSO π¦
The primary source of documentation is the wiki on github:
https://github.com/mossmann/hackrf/wiki
bestie, that's the real one β go read the wiki, it's the primary source, I'm just here for the vibes π
and that's the whole page, mwah π
signing off: hackrf_sweep, July 2021, and yeah it's HACKRF_SWEEP(1) all the way down. go sweep something iconic, you got this πβ¨π«Ά
π¦ where this page comes from
- ubuntu resolute: hackrf 2026.01.3-1 Β· GPL-2.0-or-later
- ubuntu stonking: hackrf 2026.01.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms