Skip to main content

A collection of utilities and control software for the ePixUHR Rigol Power Supply and other accessories.

Project description

A set of utilities related to running the ePixUHR3x2

This was hacked together from a series of very old projects I had...

Provides

  • A GUI for controlling a DP700 Rigol Power Supply
  • A command-line interface for the DP700 Rigol Power Supply
  • A small command-line utility for a DHCP server
    • This can be used to IP a multi-mode fiber converter box

Installation

You can install with pip, either from PyPI, or building from source.

From Source

# Create a venv
python3 -m venv <path to venv>
source <path to venv>/bin/activate
pip install hatch build
pip install .

From PyPI

# Create a venv
python3 -m venv <path to venv>
source <path to venv>/bin/activate
pip install epixuhr-accessories

Usage

Rigol Power Supply

You may need to be added to the dialout group. E.g.:

> sudo gpasswd --add <username> dialout

You can then test by opening multiple terminals. In the first, run:

# Determine which device is the Rigol (maybe /dev/ttyUSB0)
> cat /dev/ttyUSB0
# ... output should come as you run echo commands

In the second terminal:

> echo "*IDN?" > /dev/ttyUSB0

You can then launch the GUI with:

> rigolps-gui

Or use the command-line tool:

> rigolps --help
usage: rigolps [-h] [--port PORT] {status,on,off}

CLI for Rigol Power Supply control

positional arguments:
  {status,on,off}  Command to execute

optional arguments:
  -h, --help       show this help message and exit
  --port PORT      Serial port for the Rigol supply. E.g. `/dev/ttyUSB0`.

DHCP Server

You can use this to IP a specific device, like the mulitmode fiber converter box.

> dhcp-server
usage: dhcp-server [-h] target_mac assigned_ip gateway_ip interface subnet_mask lease_time

positional arguments:
  target_mac   The MAC address to assign an IP to.
  assigned_ip  The IP address to assign to the target.
  gateway_ip   The gateway IP. For point-to-point this should be the IP on the interface. Even without point-to-point, it can be the IP of the server anyway.
  interface    The interface being used.
  subnet_mask  The subnet mask.
  lease_time   The DHCP lease time in seconds.

optional arguments:
  -h, --help   show this help message and exit

Project details


Download files

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

Source Distribution

epixuhr_accessories-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

epixuhr_accessories-0.1.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file epixuhr_accessories-0.1.0.tar.gz.

File metadata

  • Download URL: epixuhr_accessories-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epixuhr_accessories-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3621e928cd98c00b2a96682e565f5d163118ae7aa1a28d36943f64e30c521322
MD5 ca91e00470f408883205ccaa4aa132a2
BLAKE2b-256 baf969e7019d62133be92b264fef6750b93abd33450222563309c19d36a169a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for epixuhr_accessories-0.1.0.tar.gz:

Publisher: release.yml on gadorlhiac/rigol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epixuhr_accessories-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for epixuhr_accessories-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d7ff664a1ca56d51ccbde20a77db8e260fc7b0adc8b6c5d69d8931b679c972
MD5 d9bfe9b30a5cf3f32640a1e48d527295
BLAKE2b-256 4cd780380625b18f9bb55f78749c9e97e11cca95da0a75711e2523d8c1096024

See more details on using hashes here.

Provenance

The following attestation bundles were made for epixuhr_accessories-0.1.0-py3-none-any.whl:

Publisher: release.yml on gadorlhiac/rigol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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