CHAPTER
TWO
HACKRF_SWEEP
2.1 Usage
[-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
[-n num_samples] # Number of samples per frequency, 8192-4294967296
[-w bin_width] # FFT bin width (frequency resolution) in Hz
[-1] # one shot mode
[-B] # binary output
[-I] # binary inverse FFT output
-r filename # output file
2.2 Output fields
date, time, hz_low, hz_high, hz_bin_width, num_samples, dB, dB, ...
Running hackrf_sweep -f 2400:2490 gives the following example results:
Date Time Hz
Low
Hz
High
Hz bin
width
Num
Sam-
ples
dB dB dB dB dB
2019-
01-03
11:57:34.967805240000000024050000001000000.0020 -64.72 -63.36 -60.91 -61.74 -58.58
2019-
01-03
11:57:34.967805241000000024150000001000000.0020 -69.22 -60.67 -59.50 -61.81 -58.16
2019-
01-03
11:57:34.967805240500000024100000001000000.0020 -61.19 -70.14 -60.10 -57.91 -61.97
2019-
01-03
11:57:34.967805241500000024200000001000000.0020 -72.93 -79.14 -68.79 -70.71 -82.78
2019-
01-03
11:57:34.967805242000000024250000001000000.0020 -67.57 -61.61 -57.29 -61.90 -70.19
2019-
01-03
11:57:34.967805243000000024350000001000000.0020 -56.04 -59.58 -66.24 -66.02 -62.12
3