Skip to main content

A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.

Project description

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 lab 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

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

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

# Input the number of days you want to view, and it will display available reservations in that time span.

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 = 'example_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.1.0.1.tar.gz (28.1 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.1.0.1-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for remoterf-0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 03992216f00afa7f60868359d51bca6bd7035f82a74fa9ffc48568badfbc5457
MD5 9922d1281cbf9232444cb1767dfe0db2
BLAKE2b-256 a49f7dd32fd5db0c0b62a7958c76167cfbea7ca258ec15ad5b0799418c6f7fa0

See more details on using hashes here.

File details

Details for the file remoterf-0.1.0.1-py3-none-any.whl.

File metadata

  • Download URL: remoterf-0.1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.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.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9f45468eae8ed8ea64c7f99b96ad23702a57a5034bf1877163433cee0cc9bc
MD5 e5b75b0fa01b2eee21f6f5adb9a6432b
BLAKE2b-256 72eff0720c0237c38a75287f0627bad959e95a341dd29ffcc5eb7cd3abfd5440

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