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 pico-uart

This installs the latest stable release with the API, CLI, and dashboard. To opt in to prerelease builds for testing, add --pre.

Using PyPI 0.11.0? That release includes Flask with this same install, but starts the dashboard with pico-uart web; use pico-uart dashboard with a release that provides that command. For an isolated installation, use pipx install pico-uart instead.

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

pico-uart dashboard

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 dashboard --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, board controls, and waiting for deferred HID cleanup after a timed-out transfer.

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 dashboard --port 5001.

  • Installation fails building hidapi: if pip cannot find a compatible wheel and tries to build hidapi from source, follow the host setup guide for native prerequisites, or use a Python/platform combination with a compatible wheel.

  • PowerShell activation blocked: run these commands directly:

    .\.venv\Scripts\python.exe -m pip install pico-uart
    .\.venv\Scripts\pico-uart.exe dashboard
    
  • 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.12.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.12.0
File Interpreter ABI Platform Actions
pico_uart-0.12.0-py3-none-any.whl Python 3 none any Details for pico_uart-0.12.0-py3-none-any.whl

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

Download URL pico_uart-0.12.0-py3-none-any.whl
Size 60.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e671a6e6505b02559c5463b379c935675c866b63e7d0b818b25b93f2bdf5b141
BLAKE2b-256 checksum
How to use checksums
84a3039d2872c3c741198f9d38d5b911da99bfce60df1e65660ecfa9ead75b7c
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 13, 2026.

Transparency log

Security for pico-uart 0.12.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.12.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 13, 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