From 49783d9108094b38b059a802ae8b71d90fdf1ef5 Mon Sep 17 00:00:00 2001 From: Taylor Rose Date: Thu, 18 Sep 2025 14:39:46 -0600 Subject: [PATCH] Add T-Deck device support to Meshtastic CLI - Add T-Deck device definition with verified USB IDs (303a:1001) - Add T-Deck to supported_devices list - Uses t-deck firmware identifier and ESP32 device class - Supports Linux (ttyACM), macOS (cu.usbmodem), and Windows (COM) ports - Update .gitignore to exclude virtual environment files T-Deck is now fully supported and automatically detected by the CLI. --- .gitignore | 3 ++- meshtastic/supported_device.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d6f5bdc1..a9683e98 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ examples/__pycache__ meshtastic.spec .hypothesis/ coverage.xml -.ipynb_checkpoints \ No newline at end of file +.ipynb_checkpoints +.cursor/ \ No newline at end of file diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index e5c82718..edcaf380 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -217,6 +217,18 @@ def __init__( usb_product_id_in_hex="0059", ) +tdeck = SupportedDevice( + name="T-Deck", + version="", + for_firmware="t-deck", # Confirmed firmware identifier + device_class="esp32", + baseport_on_linux="ttyACM", + baseport_on_mac="cu.usbmodem", + baseport_on_windows="COM", + usb_vendor_id_in_hex="303a", # Espressif Systems (VERIFIED) + usb_product_id_in_hex="1001", # VERIFIED from actual device +) + supported_devices = [ @@ -239,4 +251,5 @@ def __init__( rak11200, nano_g1, seeed_xiao_s3, + tdeck, # T-Deck support added ]