A unified library for controlling various radio devices (receivers and transceivers)
Project description
Radio Manager
A unified Python library for controlling various radio devices including receivers, scanners, and transceivers.
Supported Radios
Uniden
- SDS200 - Digital scanning receiver (serial and network) ✓ Tested
- BCD996P2 - Analog/digital scanner (serial) ✓ Tested
- SDS100 - Digital scanning receiver (coming soon)
- BCD536HP - Handheld scanner (coming soon)
Motorola
- XPR4350 - UHF transceiver with GPIO control (planned)
Installation
Recommended: pipx (for CLI usage)
pipx is the recommended way to install command-line tools on Ubuntu 24.04+ and other modern Linux systems:
# Install pipx if you don't have it
sudo apt install pipx
pipx ensurepath
# Install radio-manager
pipx install /home/tomn2tsr/dev/personal/radio-manager
# Or for development (editable install)
pipx install -e /home/tomn2tsr/dev/personal/radio-manager
# Use the rmgr command anywhere
rmgr list-radios
rmgr set-volume 8
Local Development Installation (library usage)
For development or if you need to use it as a Python library:
cd radio-manager
python3 -m venv venv
source venv/bin/activate
pip install -e .
From PyPI (when available)
pipx install radio-manager # For CLI usage
# or
pip install radio-manager # For library usage in your own projects
Quick Start
- Create a radios.yaml file (see below)
- Call the
rmgrcommand
Command Line Interface (rmgr)
The easiest way to control your radios is via the rmgr command:
# List configured radios
rmgr list-radios
# Control the default radio
rmgr set-volume 8
rmgr get-volume
rmgr status
rmgr reboot
rmgr stream-audio
# Or specify a specific radio
rmgr set-volume --radio bcd996p2 5
rmgr status --radio sds200_serial
Configuration File
Create a radios.yaml file in one of these locations (in priority order):
./radios.yaml(current directory)~/.config/radio-manager/radios.yaml- Or specify with
--config /path/to/radios.yaml
Example radios.yaml:
# Optional: Set a default radio
default_radio: sds200_desk
radios:
sds200_desk:
type: sds200
host: 192.168.1.23
port: 50536
bcd996p2:
type: bcd996p2
ser_port: /dev/ttyACM1
baudrate: 115200
See radios.yaml.example for more examples.
Python Library
Uniden SDS200
Serial Connection
from radio_manager.uniden import SDS200
# Connect via USB/serial
scanner = SDS200({
'ser_port': '/dev/ttyACM0',
'baudrate': 115200
})
with scanner:
# Get status
status = scanner.get_status()
print(f"Current channel: {status['channel']}")
# Control volume
scanner.volume = 15
print(f"Volume set to: {scanner.volume}")
Network Connection
from radio_manager.uniden import SDS200
# Connect via network
scanner = SDS200({
'host': '192.168.1.1',
'port': 50536
})
with scanner:
status = scanner.get_status()
print(f"Scanner status: {status}")
Uniden BCD996P2
from radio_manager.uniden import BCD996P2
# Connect via USB/serial
scanner = BCD996P2({
'ser_port': '/dev/ttyACM1',
'baudrate': 115200
})
with scanner:
# Get status
status = scanner.get_status()
print(f"Firmware: {status['firmware']}")
print(f"Mode: {status['scanner_mode']}")
# Control volume (0-15 for BCD996P2)
scanner.volume = 8
Development Status
This library is in early alpha development. APIs may change.
License
MIT License - see LICENSE file for details
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file radio_manager-0.2.2.tar.gz.
File metadata
- Download URL: radio_manager-0.2.2.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3984f9031b7c120af05ed7cb87aaedd7710cb193a963b22d6173712197d85086
|
|
| MD5 |
c3b9bba6efd08ee2f0a5b3a22b7fc69a
|
|
| BLAKE2b-256 |
bcb9f463f219832af07fd83d4634ee1befad451ae9546964ad8c6e9b92c06f9e
|
File details
Details for the file radio_manager-0.2.2-py3-none-any.whl.
File metadata
- Download URL: radio_manager-0.2.2-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a29deb67859b0e4819516c6b126b178079a57be936eb8b3e8318101878f6988d
|
|
| MD5 |
894c995a391ed570bdfbefabe9f47d89
|
|
| BLAKE2b-256 |
e6e71c658004a1522f140d86a9d4d4be435a1a1db22f785440829f8f4769f55d
|