Skip to main content

Remote RF

A python API to remotely access signal centric hardware.

Courtesy of Wireless Lab @ UCLA. - Ethan Ge

Prerequisites

  • Python 3.10: This package works in Python 3.10+. If you don’t have Python installed, you can download it from the official Python website.

To check your current Python version, open a terminal and run:

python --version
  • UCLA VPN: Please ensure that you are connected to the UCLA VPN. You can download and configure the VPN client from the following link: UCLA VPN Client Download. If you’re not connected to the VPN, you will not have access to the deployment servers.

Installation

Use the package manager pip to install remoterf. It is recommended that you install this package within a virtual environment.

python3 -m venv venv        # Create virtual environment
source venv/bin/activate    # Activate virtual environment

pip install remoterf        # Install remoterf

The package was named remoteRF before 2.2.0. Old code that does import remoteRF or from remoteRF.drivers... import ... still runs, with a one-time warning; change it to remoterf.

Devices

These drivers ship with remoterf; no ensure_driver call is needed. Pass the reservation token or a Name@lab handle:

from remoterf.drivers.adalm_pluto import adi;       sdr = adi.Pluto(token)
from remoterf.drivers.adalm_pluto_mimo import adi;  sdr = adi.PlutoMIMO(token)
from remoterf.drivers.usrp import uhd;              usrp = uhd.usrp.MultiUSRP(token=token)
from remoterf.drivers.rtlsdr import RtlSdr;         sdr = RtlSdr(token)
from remoterf.drivers.hackrf import HackRF;         sdr = HackRF(token)
from remoterf.drivers.krakensdr import KrakenSDR;   sdr = KrakenSDR(token)
from remoterf.drivers.ti_awr6843 import TiMmWave;   radar = TiMmWave(token)
from remoterf.drivers.rfbeam_kmd7 import RFBeamKMD7; radar = RFBeamKMD7(token)
from remoterf.drivers.wifi import WifiDongle;       radio = WifiDongle(token)
from remoterf.drivers.bluetooth import BluetoothModule; bt = BluetoothModule(token)
from remoterf.drivers.gps import GpsModule;         gps = GpsModule(token)

If the lab serves another version of a device's driver, the object you get is the lab's own (its methods are the lab's), and its package is updated on disk. remoterf api Name@lab lists a device's methods.

NI USRP-2901, Ettus B205-mini, B200-family, and USRP N210

The packaged client natively includes the shared USRP schema for the qualified NI USRP-2901, Ettus Research USRP B205-mini, the broader USB/B200 family, and the Ethernet-connected N210. No custom client driver is required. The B205-mini uses the same native-style API and reports its live 1 RX/1 TX channel topology through remoterf_capabilities.

After reserving a server-local usrp inventory entry, fetch or refresh its Dynamic v2 package with the reservation token:

from remoterf.drivers import ensure_driver

ensure_driver(token="reservation-token")

Both supported initialization forms then use the same generated runtime:

from remoterf.drivers.usrp import uhd

with uhd.usrp.MultiUSRP(token="reservation-token") as usrp:
    print(usrp.remoterf_capabilities)
    usrp.set_rx_rate(1e6)
from remoterf.drivers.usrp import MultiUSRP

usrp = MultiUSRP("reservation-token")
try:
    print(usrp.get_pp_string())
finally:
    usrp.close()

Streaming uses NumPy buffers and native-like UHD value objects. Only the leading region reported by native UHD is changed on a partial receive:

import numpy as np
from remoterf.drivers.usrp import uhd

with uhd.usrp.MultiUSRP(token="reservation-token") as usrp:
    stream_args = uhd.usrp.StreamArgs("fc32", "sc16")
    stream_args.channels = [0]
    with usrp.get_rx_stream(stream_args) as rx:
        samples = np.empty(4096, dtype=np.complex64)
        metadata = uhd.types.RXMetadata()
        count = rx.recv(samples, metadata, 0.25)
        valid_samples = samples[:count]

The generated package includes native-like namespaces, aliases, overload stubs, deterministic close(), context managers, opaque session-bound handles, and typed errors in remoterf.core.v2_errors. Streamers are never silently recreated after a disconnect; reopen a new device session and configure a new stream explicitly.

Methods marked deferred in the fetched schema remain available through generic native dispatch, but are not release-qualified as exact UHD overload parity until the server's UHD 4.10 target-introspection and hardware differential gates pass.

Wi-Fi

USB Wi-Fi clients are generated from the server's wifi schema and installed under the matching package name:

from remoterf.drivers import ensure_driver

token = "reservation-token"
ensure_driver(token=token)

from remoterf.drivers.wifi import WifiDongle

radio = WifiDongle(token)
print(radio.scan())

Existing server inventories that use device_type: wifi_dongle are accepted as wifi during upgrade. New inventory entries should use device_type: wifi.

RTL-SDR

RTL-SDR clients are generated from the server's rtl_sdr schema. The machine running client code does not need librtlsdr or PyRtlSdr:

from remoterf.drivers import ensure_driver

token = "reservation-token"
ensure_driver(token=token)

from remoterf.drivers.rtl_sdr import RtlSdr

sdr = RtlSdr(token)
sdr.sample_rate = 2_048_000
sdr.center_freq = 100_000_000
sdr.gain = "auto"
sdr.agc_mode = True

samples = sdr.read_samples(16_384)  # NumPy complex64
raw_iq = sdr.read_bytes(4096)       # packed uint8 I/Q bytes

The server owns the USB handle for its lifetime, so the generated client does not close the physical radio. read_samples and read_bytes are bounded to a 4 MiB response. Call them repeatedly for longer captures. Native asynchronous callbacks are not transported remotely.

Through the RemoteRF Global relay, requests are capped at 192 KiB (unpaged) and a single unpaged reply is capped at 768 KiB. A deployment on a current Server holds a larger reply (up to 4 MiB + 64 KiB) for 30 s and the client fetches it in 764 KiB pages; an older deployment or a lab-as-HOME server-to-server relay does not page and refuses replies above 768 KiB with response_too_large, so keep reads there under ~98k complex64 samples (read_samples(65536) is safe). LAN gRPC and direct QUIC paths to a lab Server are capped at 100 MiB per message or frame (16 MiB for incoming requests directly to a Host), with per-ndarray caps of 64 MiB (legacy GenericRPC) / 16 MiB (Dynamic v2 control) and 4 MiB sample caps on RTL-SDR, HackRF, KrakenSDR, and Dynamic v2 USRP (128 KiB on federated Dynamic v2 sessions). See Payload Size Limits for the complete per-path breakdown.

When a Tailscale address differs from the IP or DNS identity in the server certificate, keep TLS verification enabled and set the expected identity:

export REMOTERF_ADDR=rrf2.example.ts.net:61005
export REMOTERF_TLS_SERVER_NAME=certificate-name.example

TI mmWave radar

TI radar clients are generated from the server's ti_mmwave schema. Only the machine physically connected to the radar needs pyserial or a CP210x driver. The initial parser profile supports xWR68xx mmWave SDK 3 out-of-box TLV output.

from remoterf.drivers import ensure_driver

token = "reservation-token"
ensure_driver(token=token)

from remoterf.drivers.ti_mmwave import TiMmWave, decode_frame

radar = TiMmWave(token)
print(radar.device_info)
print(radar.query_version())

radar.apply_config(open("profile.cfg").read(), start=True)
try:
    packet = radar.read_frame(timeout=1.0)
    frame = decode_frame(packet)
    print(frame.header.frame_number, frame.points, frame.side_info)
finally:
    radar.stop()

read_frame() returns one complete binary UART packet. Decoding is client-local and retains unknown TLVs as raw bytes, allowing custom firmware to be captured before a dedicated parser profile is added. stream_stats reports dropped frames, queued frames, resynchronization bytes, invalid headers, and reader health. Remote firmware flashing is deliberately unsupported.

If pip install doesn't work, you can clone the source directly from github.

RemoteRF Global v0 / Remote Internet Access

By default, RemoteRF assumes you're on the same network as the RemoteRF Server, and you configure the client with that server's address:

remoterf --config --addr 192.168.1.20:12321

For deployments exposed through the initial RemoteRF Global gateway, the same workflow works with a DNS hostname instead of a LAN IP:

remoterf --config --addr ucla.global.remoterf.net:12321

The client does not know or care whether ucla.global.remoterf.net is a directly reachable RemoteRF Server, a LAN server, or a RemoteRF Global v0 transparent TCP gateway forwarding to a RemoteRF Server elsewhere. From the client's perspective, it's simply a RemoteRF Server endpoint identified by host:port — an IPv4 address, an IPv6 address (bracketed, e.g. [2001:db8::1]:12321), or a normal DNS hostname all work the same way. Certificate bootstrap (host:cert_port) and the gRPC connection (host:port) are both made against whatever hostname you configure — the client stores and uses that hostname as-is and never resolves it to an IP before saving your configuration, so DNS/IP changes on the server side don't require reconfiguration.

TLS note: RemoteRF Global v0 does not weaken certificate verification. The RemoteRF Server's certificate must include the hostname you connect with (e.g. ucla.global.remoterf.net) in its Subject Alternative Name (SAN) for standard TLS hostname validation to succeed — this is a server-side certificate requirement, not a client setting. If you're instead connecting through something like Tailscale, where the address you dial differs from the identity in the certificate, use the existing REMOTERF_TLS_SERVER_NAME override described above; it still requires that name to be present in the certificate.

v0 is intentionally minimal — it does not include RemoteRF Global accounts, deployment discovery/selection, federation, NAT traversal, direct P2P, automatic routing, or global resource IDs. Those are future versions. The client-side software behaves identically whether you point it at a LAN server or at a RemoteRF Global v0 endpoint.

RemoteRF Global Phase-1 development boundary

The disposable Global v1 account-selection and deployment-session client was removed at Gate C. The normal CLI supports direct/native gRPC accounts and clean HTTPS deployment-home accounts; neither path treats a broker identity, username, email, or home token as destination credentials.

Gate G adds permission visibility to the ordinary perms command. It renders HOME-local groups plus current destination-signed federated groups with their contract state and retrieval time. An unreachable destination is explicitly labeled as unsigned transport status, never as an authoritative empty group result. This works when the HOME has zero devices.

Phase 1 still grants no federated device discovery, reservation, lease, session, streaming, RX, TX, or radio access. Production remains unchanged. See deployment accounts and identity boundary.

Metadata

Release files for remoterf 2.13.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for remoterf 2.13.29
File Size Uploaded Provenance Actions
remoterf-2.13.29.tar.gz 363.5 kB With provenance Details for remoterf-2.13.29.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for remoterf 2.13.29
File Interpreter ABI Platform Actions
remoterf-2.13.29-py3-none-any.whl Python 3 none any Details for remoterf-2.13.29-py3-none-any.whl

Total release size: 665.6 kB

Release files / remoterf-2.13.29.tar.gz

Download URL remoterf-2.13.29.tar.gz
Size 363.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4f45aaec5685ccbdac5ddab0d4c3878d47f2aad7308ccc2c84d61ba64b48833e
BLAKE2b-256 checksum
How to use checksums
7ccaa8f20746c504adb87b9fd47859768c0905a4c8788bb0fde2353e58fbbb80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / remoterf-2.13.29-py3-none-any.whl

Download URL remoterf-2.13.29-py3-none-any.whl
Size 302.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ee8c1325338ef175e1b782f59ee9a854f25f54b7989d5e4903490e3a73e7a24
BLAKE2b-256 checksum
How to use checksums
cda1624a7980801f206d441a8861c05addabfa1dd5c2bb89031ed08542dd29d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for remoterf 2.13.29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for remoterf-2.13.29.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.13.29 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page