From 9b8c28eb0331fa48a32c6a4ab638c34cb21a55b8 Mon Sep 17 00:00:00 2001 From: Jose Riha Date: Thu, 25 Aug 2022 15:20:36 +0200 Subject: [PATCH] Add detection for boards using CP210x/CH340 bridge. This means many ESP32/ESP8266-based dev. boards are now automatically recognized. --- rshell/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rshell/main.py b/rshell/main.py index 7a810d9..ea3477b 100755 --- a/rshell/main.py +++ b/rshell/main.py @@ -251,6 +251,15 @@ def is_micropython_usb_device(port): # Check for LEGO Technic Large Hub if usb_id.startswith('usb vid:pid=0694:0010'): return True + # Check for CH340-based devices (ESP8266 boards) + if usb_id.startswith('usb vid:pid=1a86:7523'): + return True + # Check for CH340-based devices (some ESP32 boards) + if usb_id.startswith('usb vid:pid=1a86:7522'): + return True + # Check for CP210x-based devices (ESP32 boards) + if usb_id.startswith('usb vid:pid=10c4:ea60'): + return True return False