From a338d929ecfb088b36a813c58a38c01356708b79 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 22 Apr 2026 19:23:19 -0600 Subject: [PATCH] chore: release 1.0.1 --- CHANGELOG.md | 10 ++++++++++ donglora/discovery.py | 8 +++++++- pyproject.toml | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78264f6..a07a65e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.0.1 — 2026-04-22 + +### Fixed + +- `discovery.find_port` / `wait_for_device` now match the WCH CH340K + USB-UART bridge (`1a86:7522`) in `BRIDGE_VID_PIDS`. The Elecrow + ThinkNode-M2 board ships with a CH340K bridge; the previous set + covered CP2102, CH9102, standard CH340, and FTDI but missed this + specific revision, so `discovery` returned `None` on that board. + ## 1.0.0 — 2026-04-22 The 1.0 Python client, mirroring the Rust client 1.0 API and the diff --git a/donglora/discovery.py b/donglora/discovery.py index 80b5e0e..f7db1ba 100644 --- a/donglora/discovery.py +++ b/donglora/discovery.py @@ -18,7 +18,13 @@ USB_VID: int = 0x1209 USB_PID: int = 0x5741 USB_VID_PID: str = "1209:5741" -BRIDGE_VID_PIDS: set[str] = {"10c4:ea60", "1a86:55d4", "1a86:7523", "0403:6001"} +BRIDGE_VID_PIDS: set[str] = { + "10c4:ea60", # CP2102 (Silicon Labs) + "1a86:55d4", # CH9102 + "1a86:7522", # CH340K — Elecrow ThinkNode-M2 ships with this + "1a86:7523", # CH340 + "0403:6001", # FT232R (FTDI) +} """Known USB-UART bridge VID:PIDs found on some board revisions.""" diff --git a/pyproject.toml b/pyproject.toml index 8fca133..8a948c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "donglora" -version = "1.0.0" +version = "1.0.1" description = "DongLoRa host library — talk LoRa from Python over USB" license = "MIT" requires-python = ">=3.10"