HackRF Device Guide

This guide covers connecting Great Scott Gadgets HackRF One SDRs to a RemoteRF server or host. Support is included in the built-in hackrf schema.

The Great Scott Gadgets HackRF One (1 MHz to 6 GHz half-duplex transceiver).
The Great Scott Gadgets HackRF One (1 MHz to 6 GHz half-duplex transceiver).

Overview

RemoteRF supports the HackRF One through the built-in hackrf schema. The remoterf-server and remoterf-host packages already include the pyhackrf2 Python binding, so the Linux machine physically connected to the HackRF only needs:

  1. The native hackrf library and command-line tools (libhackrf and hackrf_info).
  2. Non-root USB access so hackrf_info detects the radio without sudo.
  3. A devices.yml entry with device_type: hackrf and the device’s serial number.

Install and Detect

1. Install Native HackRF Tools

On the Linux server or host machine physically connected to the HackRF, install the hackrf package:

sudo apt-get update
sudo apt-get install -y hackrf

Client machines do not need libhackrf or pyhackrf2 installed locally.

2. Verify USB Detection

Connect the HackRF over USB and run hackrf_info without sudo:

hackrf_info

hackrf_info should detect the board and print its Serial number string (for example, 0000000000000000719031ac235bb14a). Copy that serial number for devices.yml. If hackrf_info only works with sudo, reload udev rules (sudo udevadm control --reload-rules && sudo udevadm trigger), unplug and reconnect the USB cable, and ensure your user account is in the plugdev group.

Device Configuration

Add each HackRF to ~/.config/remoterf/devices.yml on the main server (or ~/.config/remoterf/host/devices.yml on a RemoteRF host):

devices:
  - device_id: 10
    device_type: hackrf
    name: HackRF One
    init:
      serial: "0000000000000000719031ac235bb14a"

You can also add the entry via the CLI on the server or host:

# Interactive guided wizard on the server:
serverrf devices add hackrf

# Or non-interactively on the main server:
serverrf devices add hackrf "HackRF One" --serial 0000000000000000719031ac235bb14a --id 10
serverrf devices list

# Or on a RemoteRF host:
hostrf --device --add --hackrf "10:HackRF One:serial=0000000000000000719031ac235bb14a"

While init also accepts device_index, binding by serial is recommended so USB re-enumeration cannot swap devices. Keep runtime RF settings (frequency, sample rate, LNA/VGA gains, amp enable, and bias tee) out of init; clients configure those during reservations.

Verification

Start the server with serverrf -s (or the host with hostrf -s, checking hostrf --device --show on the host) and run devices list in the server console to confirm the HackRF is online.

Next Steps