---
name: "hackrf_sweep"
section: "1"
platform: "linux"
package: "hackrf"
version: "2024.02.1-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hackrf_sweep"
---

# hackrf\_sweep(1)

control frequency sweep of hackrf

## NAME

hackrf\_sweep - control frequency sweep of hackrf

## DESCRIPTION

hackrf\_sweep 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 \[-N num\_sweeps\] # Number of sweeps to perform \[-B\] # binary output \[-I\] # binary inverse FFT output **-r** filename # output file

### Output fields:

-

  date, time, hz\_low, hz\_high, hz\_bin\_width, num\_samples, dB, dB, . . .

### 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 \[-N num\_sweeps\] # Number of sweeps to perform \[-B\] # binary output \[-I\] # binary inverse FFT output **-r** filename # output file

### Output fields:

-

  date, time, hz\_low, hz\_high, hz\_bin\_width, num\_samples, dB, dB, . . .

## SEE ALSO

The primary source of documentation is the wiki on github:

https://github.com/mossmann/hackrf/wiki
