← 返回 Skills 市场
arsatyants

HackRF SDR

作者 Andrey Arsatyants · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
36
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

HackRF SDR Skill

Operate the HackRF One software-defined radio for scanning, capture, analysis, and demodulation.

Prerequisites

  • HackRF One connected via USB
  • hackrf_sweep and hackrf_transfer CLI 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 40 for 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.py is the offset from center -- add to center freq for absolute freq
  • Reference: references/frequency_bands.md for band allocations and modulation classification
安全使用建议
Install only if you understand SDR legal limits in your jurisdiction. Use it for authorized lab work, licensed amateur-radio experimentation, or signals you are permitted to receive and analyze; do not use it to intercept, record, decode, or share private or protected communications without authorization.
能力评估
Purpose & Capability
The files coherently support HackRF frequency sweeps, IQ capture, waterfall plotting, signal analysis, and FM/AM/SSB demodulation, which matches the stated purpose.
Instruction Scope
The description explicitly includes radio monitoring, signal intelligence, and any SDR-related task, while the runtime instructions do not narrow use to authorized, licensed, or user-owned signals.
Install Mechanism
The artifact is a plain skill with local scripts and no package install hook, hidden installer, dependency bootstrap, or automatic execution path.
Credentials
Using HackRF to scan, record IQ data, and demodulate audio is proportionate for SDR analysis, but it can capture third-party transmissions and the skill gives no compliance, consent, or privacy boundaries.
Persistence & Privilege
There is no persistence mechanism or privilege escalation; the scripts write user-directed local output files such as raw IQ captures, PNG plots, and WAV audio, with a cleanup note for IQ captures.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hackrf-sdr
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hackrf-sdr 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: frequency scanning, IQ capture, signal analysis, waterfall visualization, and FM/AM/SSB demodulation for HackRF One
元数据
Slug hackrf-sdr
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论