Skip to main content

smart-serial

Asyncio Python library for controlling SMART Technologies AV hardware (starting with the SMART UX60 projector) over a serial (RS-232) connection. Devices are implemented as explicit subclasses of Device, so you import the model you want and use it directly.

CI PyPI Python versions License: MIT

The SMART UX60 driver implements the RS-232 command set from Appendix B, "Remotely managing your system through an RS-232 serial interface," of SMART's SMART Board 600ix configuration and user's guide -- serial settings, power state controls, source selection, display/audio/network settings, and system commands.

The transport follows the projector's operating notes closely:

  • send a command only after the device has emitted the next > prompt
  • keep roughly 10 ms between characters when writing to the port
  • type commands exactly as documented and press Enter after each one
  • wait for the device's response before sending the next command

Install

pip install smart-serial

Requires Python 3.11+.

Quickstart

import asyncio

from smart_serial.devices.ux60 import SmartUX60


async def main() -> None:
    projector = SmartUX60.create("/dev/ttyUSB0")  # or "COM3" on Windows
    async with projector:  # connects on enter, disconnects on exit
        await projector.power_on()
        await projector.select_input("HDMI")
        print(await projector.power_state.get())


asyncio.run(main())

You can also instantiate the transport manually and pass it in:

from smart_serial import SerialTransport
from smart_serial.devices.ux60 import SmartUX60

transport = SerialTransport("/dev/ttyUSB0")  # defaults to the UX60's 19200 baud
projector = SmartUX60(transport)

The library intentionally does not expose a dynamic registry lookup; you choose the concrete device class explicitly.

Every documented command is reachable, whether or not it has a dedicated method, via the generic accessors:

await projector.get_value("frequency")  # -> "0"
await projector.set_value("saturation", "80")  # -> "80"
await projector.adjust_value("brightness", -10)  # -> "45"
await projector.set_value("brightness", "65", source="vga1")  # target an inactive source

Command-line interface

A small CLI is included for quick manual checks (pip install also installs the smart-serial console script):

smart-serial --port /dev/ttyUSB0 power-state

Architecture

smart_serial/
├── transport.py   # SerialTransport: async, prompt-delimited read/write over the port
├── device.py      # Device: abstract base class every driver extends
├── devices/
│   └── smart/
│       └── ux60.py  # SmartUX60(Device): the actual command implementations
└── cli.py         # small CLI for manual testing against the built-in device
  • SerialTransport owns the physical connection (via pyserial-asyncio-fast) and knows nothing about any specific device. It speaks the command/prompt protocol common to this class of AV hardware: only send a command after the projector has issued the ready > prompt, write a line, then read until the device's next > prompt and return the reply. It paces writes with the ~10 ms inter-character delay the hardware guide calls for, and serializes access with a lock so concurrent callers don't interleave on the wire.
  • Device is the abstract contract (power_on, power_off, get_power_state, connect/disconnect, async context manager) every driver implements.
  • Built-in devices are normal Python classes that live under smart_serial.devices; callers import the concrete class they need rather than relying on a runtime registry lookup.

Development

Development is done in the Python 3.13 dev container. See CONTRIBUTING.md for setup and the development workflow.

License

MIT -- see LICENSE. Not affiliated with or endorsed by SMART Technologies ULC; "SMART" and "SMART Board" are trademarks of their respective owner, referenced here only to describe hardware compatibility.

Metadata

Release files for smart-serial 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smart-serial 0.3.1
File Size Uploaded Provenance Actions
smart_serial-0.3.1.tar.gz 89.2 kB With provenance Details for smart_serial-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smart-serial 0.3.1
File Interpreter ABI Platform Actions
smart_serial-0.3.1-py3-none-any.whl Python 3 none any Details for smart_serial-0.3.1-py3-none-any.whl

Total release size: 114.2 kB

Release files / smart_serial-0.3.1.tar.gz

Download URL smart_serial-0.3.1.tar.gz
Size 89.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9aae728423c5a609fdda8e82454fefbfb5ef978c674281440fe5cbbe08227366
BLAKE2b-256 checksum
How to use checksums
cd6aa8af6306c1962be4e504b6aff9c54852dd346bae603af3989f2788e1f537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / smart_serial-0.3.1-py3-none-any.whl

Download URL smart_serial-0.3.1-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
141f23bd92d12af88bdc7326b69b6086d4d0a1ba688b74b4ffa1fb980e917789
BLAKE2b-256 checksum
How to use checksums
1a5c4ab94674f9811aa11b011e857b9c7131a989e1873ca387b7fd3c97348494
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Security for smart-serial 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smart_serial-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page