Skip to main content

tonewinner-rs232

PyPI Version GitHub Actions Workflow Status

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

Download files

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

Source Distribution

tonewinner_rs232-1.2.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

tonewinner_rs232-1.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file tonewinner_rs232-1.2.0.tar.gz.

File metadata

  • Download URL: tonewinner_rs232-1.2.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tonewinner_rs232-1.2.0.tar.gz
Algorithm Hash digest
SHA256 951c9b47db34d3b41d29d9bb96009f09b9faaf0a9df007c4f53ba3e5f115d6ca
MD5 739e3250e3270ea05fce4dad96b44f0a
BLAKE2b-256 34ffb9d120fdd45d4c666a081c74a8601026d2591bbc3d49cc3360ce502ba480

See more details on using hashes here.

Provenance

The following attestation bundles were made for tonewinner_rs232-1.2.0.tar.gz:

Publisher: publish.yaml on emma-sg/tonewinner-rs232

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

File details

Details for the file tonewinner_rs232-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tonewinner_rs232-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 687ccabb09817f0c5318b423c9871b41d37221fb41f4ba93bd0206903cc85d58
MD5 069b9e502f9bb17fa00088f331516fb5
BLAKE2b-256 bf13dca01b96568150886fa15c39da9a8a132dc77abfb01c89924eb51f28a8bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for tonewinner_rs232-1.2.0-py3-none-any.whl:

Publisher: publish.yaml on emma-sg/tonewinner-rs232

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

Release history Release notifications | RSS feed

1.2.2

2 files

1.2.1

2 files

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

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