HackRF SDR
/install hackrf-sdr
HackRF SDR Skill
Operate the HackRF One software-defined radio for scanning, capture, analysis, and demodulation.
Prerequisites
- HackRF One connected via USB
hackrf_sweepandhackrf_transferCLI tools installed- Python 3 with numpy, scipy, matplotlib
Verify: hackrf_info should show device info.
Workflow
1. Scan (Frequency Sweep)
Use hackrf_sweep to discover signals in a frequency range:
hackrf_sweep -f \x3Cstart_mhz>:\x3Cend_mhz> -l 40 -g 40 -w \x3Cbin_hz> -N \x3Csweeps>
-l 40: LNA gain 40 dB (max for weak signals)-g 40: VGA gain 40 dB-w 1000000: 1 MHz bins for wide scans, 50000 for detailed-N 10: Number of sweeps (more = better averaging)
Quick overview: -w 1000000 -N 5. Detailed: -w 50000 -N 20.
2. Waterfall Visualization
Run the waterfall script for a combined spectrum + waterfall plot:
python3 scripts/waterfall.py --start \x3Cstart_mhz> --end \x3Cend_mhz> --bin \x3Chz> --sweeps \x3Cn> --outdir \x3Cdir>
Or from saved sweep data: python3 scripts/waterfall.py --input \x3Cfile> --outdir \x3Cdir>
Outputs a PNG and prints detected signal groups with center/bandwidth/power.
3. IQ Capture
Record raw IQ samples for detailed analysis:
hackrf_transfer -f \x3Cfreq_hz> -s \x3Csps> -l 40 -g 40 -n \x3Csamples> -r /tmp/iq_capture.raw
- Sample rate (
-s): 10M for wide, 2M for narrow signals - Duration:
-n= sample_rate x seconds (e.g., 10M x 10s = 100000000) - Always capture with enough BW to include the signal + margin
Always delete IQ captures after analysis — they are large (~200 MB for 10s at 10 MSPS).
4. Signal Analysis
Analyze captured IQ data for modulation type, bandwidth, SNR:
python3 scripts/analyze.py /tmp/iq_capture.raw --freq \x3Ccenter_hz> --rate \x3Csps> --outdir \x3Cdir>
The script:
- Computes PSD and spectrogram
- Detects peak frequency and SNR
- Measures 3dB and 10dB bandwidth
- Classifies modulation (CW, AM, FM, PSK, QAM, etc.)
- Detects pulsed vs continuous signals
- Finds secondary peaks
- Generates a 6-panel analysis PNG
5. Demodulation
Demodulate audio from IQ captures:
python3 scripts/demod.py /tmp/iq_capture.raw --mode \x3Cfm|am|usb|lsb> --offset \x3Chz> --out \x3Cfile.wav>
--offset: signal frequency offset from center (from analyze.py output)- Output: WAV at 48 kHz
6. Cleanup
After analysis, delete IQ capture files:
rm -f /tmp/iq_capture.raw
Tips
- Start with a wide scan (100 MHz), then narrow down to signals of interest
- Use
-l 40 -g 40for maximum sensitivity; reduce if signals saturate - HackRF int8 format: 2 bytes per sample (I + Q), so 10 MSPS ~ 20 MB/s
- For signals near DC, offset tune by 1-2 MHz to avoid DC spike
- The peak frequency from
analyze.pyis the offset from center -- add to center freq for absolute freq - Reference:
references/frequency_bands.mdfor band allocations and modulation classification
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hackrf-sdr - 安装完成后,直接呼叫该 Skill 的名称或使用
/hackrf-sdr触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
HackRF SDR 是什么?
Use HackRF One SDR for frequency scanning, IQ capture, signal analysis, waterfall generation, and demodulation. Use when the user wants to scan radio frequen... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。
如何安装 HackRF SDR?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hackrf-sdr」即可一键安装,无需额外配置。
HackRF SDR 是免费的吗?
是的,HackRF SDR 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
HackRF SDR 支持哪些平台?
HackRF SDR 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 HackRF SDR?
由 Andrey Arsatyants(@arsatyants)开发并维护,当前版本 v1.0.0。