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.smart.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.get_power_state())


asyncio.run(main())

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

from smart_serial import SerialTransport
from smart_serial.devices.smart.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.2.0

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.2.0
File Size Uploaded Provenance Actions
smart_serial-0.2.0.tar.gz 75.3 kB With provenance Details for smart_serial-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 93.2 kB

Release files / smart_serial-0.2.0.tar.gz

Download URL smart_serial-0.2.0.tar.gz
Size 75.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a21fe48788c5ce7c5d448182178caf85f3f480c3784b11a1d5f2f446d3ba4517
BLAKE2b-256 checksum
How to use checksums
34b0b89aebf172fb5dfe17a153a539124ade1c8320a717e60091728a445e802f
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 Sep 18, 2026.

Transparency log

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

Download URL smart_serial-0.2.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2bf7f582d249acaf3adb648465708254eb5de97803f5109a89e1c31032cd7c4
BLAKE2b-256 checksum
How to use checksums
872d3d9d491dbe6f58c2d60eeadcd3644f93c6c5c669c7e8c0c4692a053ad227
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 Sep 18, 2026.

Transparency log

Security for smart-serial 0.2.0

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.2.0.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 Sep 18, 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