Skip to main content

PicoUart

See what your UART bridge is doing, without taking over your serial ports.

The pico-uart package adds a Python API, command-line tools, and a local web dashboard to the PicoUart six-channel USB-to-UART bridge. For Windows, Linux, and macOS with Python 3.10+.

PyPI · Source · Firmware releases · Report an issue

Inspect channel health, traffic, and dropped-byte counts, or save diagnostics alongside your test results.

Diagnostics use USB HID, separate from the six USB CDC serial ports. Keep using your terminal or serial library for UART payloads, baud rates, and framing. The browser talks to Python, so it does not need WebHID support.

PicoUart dashboard showing board information, configuration, runtime status, and six UART channels

Illustrative Direct Dashboard with simulated telemetry, not a live hardware result. The Python dashboard uses the shared frontend; its layout and controls may differ.

Quick Start

Create and activate a virtual environment on Linux or macOS:

python3 -m venv .venv
. .venv/bin/activate

On Windows PowerShell:

py -m venv .venv
.\.venv\Scripts\Activate.ps1

Then install the package:

python -m pip install --pre pico-uart

--pre allows development releases; omit it to select stable releases when available. For an isolated CLI installation, use pipx install --pip-args="--pre" pico-uart instead.

Connect a Pico or Pico 2 running PicoUart firmware, then run:

pico-uart web

Open http://127.0.0.1:5000/ on the computer running Python. Use Board to select a device and Rescan to refresh. Stop the server with Ctrl+C. If the port is occupied, run pico-uart web --port 5001.

Before wiring UART devices: signals are 3.3 V only; never connect 5 V or RS-232 signals directly. Follow the hardware setup guide.

Command-Line Tools

Task Command
Read a channel status update pico-uart status
Save status as JSON pico-uart status --json
Watch traffic for 60 seconds pico-uart monitor --duration 60
Read cumulative RX dropped-byte counts pico-uart overruns
Inspect hardware or boot configuration pico-uart hardware / pico-uart config

Run pico-uart --help for all commands. To select a board, put --serial SERIAL or --device-path PATH before the command:

pico-uart --serial ABC123 status

Use one HID monitor/server per physical board; separate processes do not share input reports or traffic totals.

For automated tests, redirect status --json or monitor output to a file alongside your serial test results. A successful command does not prove continuous reporting or healthy channels; see result interpretation.

Python API

Read a status snapshot without changing board settings:

from pico_uart import PicoUartHid

with PicoUartHid() as board:
    status = board.read_status(timeout_ms=1000)
if status is None:
    raise RuntimeError("no PicoUart status report received")
print(status["channels"])

The context manager closes the connection. A snapshot may contain channels still waiting for data; it does not wait for fresh reports from all six. Python status --json and .NET status both print that six-entry channels object. The field rules are in the host tools guide. Use PicoUartHid(serial_number="ABC123") to select a board. See the Python client guide for methods, UART readiness checks, errors, and board controls.

Troubleshooting

  • Board not found: check firmware, the USB data cable, and the selected serial number or device path. The board must be connected to the computer running Python. With no board attached, a HID command failing is expected.
  • Access denied: follow the Linux HID permissions guide. Do not run the dashboard as root to bypass permissions.
  • Port already in use: start the dashboard with pico-uart web --port 5001.
  • PowerShell activation blocked: install with .\.venv\Scripts\python.exe -m pip install --pre pico-uart, then run .\.venv\Scripts\pico-uart.exe web.
  • No valid reports: check firmware compatibility and the USB connection. A timeout does not mean zero traffic.
  • Unconfirmed board action: reconnect and inspect state. Never automatically retry a save or reboot.

Saving configuration reboots the board. Close all CDC ports and stop UART traffic first; review the save safety contract before changing settings.

Documentation

License

Released under the BSD 3-Clause License. For bug reports, include the package and firmware versions, operating system, and exact error message.

Metadata

Release files for pico-uart 0.11.0

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

Built distribution (wheel)

Table of built distributions (wheels) for pico-uart 0.11.0
File Interpreter ABI Platform Actions
pico_uart-0.11.0-py3-none-any.whl Python 3 none any Details for pico_uart-0.11.0-py3-none-any.whl

Release files / pico_uart-0.11.0-py3-none-any.whl

Download URL pico_uart-0.11.0-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e9f0ad8cf19233509bbb040ff9c6872f1161412ff47fa92606a1005783e8a27
BLAKE2b-256 checksum
How to use checksums
0a8e9cb4a680006e26a7a471151ea87a06e12a400a77a981fcceb846bc9f2d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for pico-uart 0.11.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

1 file in this release has been uploaded with provenance metadata.

Attestation for pico_uart-0.11.0-py3-none-any.whl

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 Nov 9, 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