Async Python library for Tonewinner AV processors over RS232 serial
Project description
tonewinner-rs232
Async Python library to control Tonewinner AV processors over RS232 serial, built on serialx.
Supports the AT-500 specifically, other models should work but haven't been tested. Please open an issue if you encounter problems with other models.
Installation
pip install tonewinner-rs232
Requires Python 3.12+.
Quick start
import asyncio
from tonewinner_rs232 import TonewinnerReceiver
async def main():
receiver = TonewinnerReceiver("/dev/ttyUSB0")
# Establish a connection
await receiver.connect()
# Query the receiver's current state
await receiver.query_state()
print(f"Power: {receiver.state.power}")
print(f"Volume: {receiver.state.volume}")
print(f"Source: {receiver.state.source_name}")
await receiver.power_off()
await receiver.disconnect()
asyncio.run(main())
Features
- Async API built on serialx
- Full state query and real-time state updates
- Event subscription for state changes
- Power, volume, mute, input source, and sound mode control
- Automatic framing of the
##...*Tonewinner RS232 protocol - Built-in CLI for testing
CLI
Just prints current state at the moment.
python -m tonewinner_rs232 /dev/ttyUSB0
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
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 tonewinner_rs232-1.0.3.tar.gz.
File metadata
- Download URL: tonewinner_rs232-1.0.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb027ecf8dcdd1c2755a3f9719df6db800db607d3b4ce70f0ad83bdd814185b
|
|
| MD5 |
41e43574bb952d2d1cbb7b6c440934ea
|
|
| BLAKE2b-256 |
c71cbb43bb62da88dac86528ab55eb458b2ec839a2dfae23eb4cbe183a49851a
|
Provenance
The following attestation bundles were made for tonewinner_rs232-1.0.3.tar.gz:
Publisher:
publish.yaml on emma-sg/tonewinner-rs232
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonewinner_rs232-1.0.3.tar.gz -
Subject digest:
8eb027ecf8dcdd1c2755a3f9719df6db800db607d3b4ce70f0ad83bdd814185b - Sigstore transparency entry: 1707263002
- Sigstore integration time:
-
Permalink:
emma-sg/tonewinner-rs232@5b6ad6ea4f0a1151fb74eaec3678be5517bae081 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/emma-sg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@5b6ad6ea4f0a1151fb74eaec3678be5517bae081 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tonewinner_rs232-1.0.3-py3-none-any.whl.
File metadata
- Download URL: tonewinner_rs232-1.0.3-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b175838a3a7be4490a350c19d26e33ec5b47f8ce4b3170c30db38409192067a0
|
|
| MD5 |
a05381c80dbede37db158f9e2b896765
|
|
| BLAKE2b-256 |
c4469d6b087a7d09564a9e18c5db8e66211a5e7a81ddaf1f317991ec6467b8ae
|
Provenance
The following attestation bundles were made for tonewinner_rs232-1.0.3-py3-none-any.whl:
Publisher:
publish.yaml on emma-sg/tonewinner-rs232
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonewinner_rs232-1.0.3-py3-none-any.whl -
Subject digest:
b175838a3a7be4490a350c19d26e33ec5b47f8ce4b3170c30db38409192067a0 - Sigstore transparency entry: 1707263025
- Sigstore integration time:
-
Permalink:
emma-sg/tonewinner-rs232@5b6ad6ea4f0a1151fb74eaec3678be5517bae081 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/emma-sg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@5b6ad6ea4f0a1151fb74eaec3678be5517bae081 -
Trigger Event:
release
-
Statement type: