Skip to main content

A python API to remotely access signal centric hardware. Client-side only!

Project description

Remote RF

A python API to remotely access signal centric hardware. Courtesy of Wireless Lab @ UCLA.

Prerequisites

  • Python 3.12 or later: This package requires Python 3.12+. 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 lab servers.

Installation

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

pip install remoteRF

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

Reservation

Usage of the platform requires you to register a account and reserve a device in order to run scripts remotely.

1. Start UCLA VPN

  • Start the CISCO Secure client, login and connect to any of the options.

2. Register a account:

remoterf-login  # Run in the terminal where the Python library is installed

# Typically, this will be the terminal where you’ve activated the virtual environment if you’re using one
  • Input r to register a account, or l to login to a existing one.
Welcome to Remote RF Account System.
Please login or register to continue. (l/r):
  • Once in, input help to see all avaliable commands.

3. Reserve Device:

getdev  # To view all avaliable devices

# Note the device ID. You will need this later to reserve said device
getres  # To view times not avaliable

# Optionally, you can also view all reservations, and determine a time slot you want a specific device reserved
perms   # To view your permissions

# Depending on your permission levels, you will be given different restrictions 
resdev # To reserve a device

Enter the device ID you would like to reserve: 0
Reserve Start Time (YYYY-MM-DD HH:MM): 2024-11-20 10:20
Reserve End Time (YYYY-MM-DD HH:MM): 2024-11-20 11:20

# Time is military time. You can also use arrow keys to cycle between previous commands.

Reservation successful. Thy Token -> example_token

# Take note of this token. You will need it to actually access the device.

Remote Access

With this token, you can now run scripts remotely. Please keep in mind that you MUST be connected to the UCLA VPN for this to work. Here is a explained sample script to get you going!

Python Script:

from remoteRF.drivers.adalm_pluto import *  # Imports device Pluto SDR remote drivers. Change depending on desired device.

sdr = adi.Pluto(    # Device initialization.
    token = 'sample_token'     # Place the prior token here.
)

# You can now use this 'sdr' as you normally would with the default Pluto drivers.

If converting a existing non-remoteRF compatible script:

- import existing_device_drivers 

+ from remoteRF.drivers.device_drivers import *

- device = device(init)

+ device = device(token = 'sample_token')

Nothing else needs changing!

Closing

This is fundamentally a experimental platform, and there will be many unknown bugs and issues. Some devices do not have universal support for all its functions at the moment, I am working on that aspect.

So please submit feedback!

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remoterf-0.0.6.1.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remoteRF-0.0.6.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file remoterf-0.0.6.1.tar.gz.

File metadata

  • Download URL: remoterf-0.0.6.1.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for remoterf-0.0.6.1.tar.gz
Algorithm Hash digest
SHA256 27d1ee7de6727275d047d36bdc6393a15b42643e016831190cdafdfc0cc1a9c5
MD5 6a387debb13e38c7726ebcaa7ac0d93b
BLAKE2b-256 eeaa5bc6555f3617a4dc5adc2fc275deb6c2079a96e8087d7bf2089247641566

See more details on using hashes here.

File details

Details for the file remoteRF-0.0.6.1-py3-none-any.whl.

File metadata

  • Download URL: remoteRF-0.0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for remoteRF-0.0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da30fd06de980b64f6a9bd35e6437c6d90698106ca5dd54b9caf4a82a8fbcfc4
MD5 e4f5c1b10f320ec5df6b74b101fa9e82
BLAKE2b-256 78fff6ae286dfea6778cce2c9f0a73c0b4287f88b615b9ee022df53ce2715de5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page