Linux command
rtl_power 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan the FM broadcast band
rtl_power -f [88M:108M:125k] -g [50] -i [10] [fm_band.csv]
Single sweep
rtl_power -f [118M:137M:25k] -1 [airband.csv]
Continuously integrate
rtl_power -f [144M:148M:10k] -i [60] [ham2m.csv]
Run for one hour then exit
rtl_power -f [88M:108M:125k] -e [1h] [fm.csv]
Pick a specific device
rtl_power -d [1] -f [400M:410M:10k] [out.csv]
Apply a PPM frequency correction
rtl_power -p [58] -f [400M:410M:10k] [out.csv]
说明
rtl_power turns an RTL-SDR USB dongle into a wideband spectrum analyzer by repeatedly retuning across the requested range, taking short FFT captures per tuning, and logging averaged power per frequency bin. It is the standard tool for long-running band surveys, RFI hunting, and unattended spectrum recording. Ranges wider than the dongle's instantaneous bandwidth (~2–3 MHz usable) are stitched together by fast retuning; expect small seams where tunings meet.
参数
- -f _lower:upper:bin-size_
- Frequency range and bin size (e.g. `88M:108M:125k`). Bin size sets FFT resolution.
- -i _seconds_
- Integration interval per row. Longer values reduce noise but increase row period. Default: 10.
- -g _gain_
- Tuner gain in dB (usable range depends on tuner). `0` selects automatic gain.
- -p _ppm_
- Frequency correction in parts-per-million.
- -c _crop_
- Crop percentage (0–1) to discard from each tuning's edges (to avoid filter roll-off).
- -s _sample-rate_
- Hardware sample rate (default 2048000).
- -w _window_
- FFT window function: `rectangle`, `hamming`, `blackman`, `blackman-harris`, `hann-poisson`, `youssef` (default).
- -F _n_
- Enable extra integration by averaging _n_ FFT buffers (`-F 9` is typical for very wide scans).
- -O
- Enable offset tuning (useful with some tuners to push away DC spike).
- -d _index_
- Device index for systems with multiple dongles.
- -e _duration_
- Exit after the given time (e.g. `30s`, `15m`, `1h`, `1d`).
- -1
- Perform a single measurement pass and exit.
- -h
- Hold the currently tuned frequency (debug).
- -
- Write CSV to stdout instead of a file.
FAQ
What is the rtl_power command used for?
rtl_power turns an RTL-SDR USB dongle into a wideband spectrum analyzer by repeatedly retuning across the requested range, taking short FFT captures per tuning, and logging averaged power per frequency bin. It is the standard tool for long-running band surveys, RFI hunting, and unattended spectrum recording. Ranges wider than the dongle's instantaneous bandwidth (~2–3 MHz usable) are stitched together by fast retuning; expect small seams where tunings meet.
How do I run a basic rtl_power example?
Run `rtl_power -f [88M:108M:125k] -g [50] -i [10] [fm_band.csv]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _lower:upper:bin-size_ do in rtl_power?
Frequency range and bin size (e.g. `88M:108M:125k`). Bin size sets FFT resolution.