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.
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:
- The native
hackrflibrary and command-line tools (libhackrfandhackrf_info). - Non-root USB access so
hackrf_infodetects the radio withoutsudo. - A
devices.ymlentry withdevice_type: hackrfand 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 hackrfClient 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_infohackrf_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.