Aivar Annamaa
Aivar Annamaa
I'm closing this as Thonny 5 will get a new EditorNotebook and this error is not relevant anymore.
The upcoming Thonny 4.0.2 won't clear the shell anymore if Stop/Restart is used for stopping the process.
I was exited to try this code, but unfortunately I did not have success with it on Windows 11 for listing the properties of [BBC micro:bit v2](https://microbit.org/new-microbit/). With unmodified Pyserial...
I also tested it on Windows 10 and got the same result. I'm attaching my usbview report from Windows 11, in case you'd like to investigate, why I didn't get...
> By the way, are you using the latest commit (c090f45667c68b7a7259a38de7a59b49b016f851)? Yes, I was using https://github.com/pyserial/pyserial/blob/c090f45667c68b7a7259a38de7a59b49b016f851/serial/tools/list_ports_windows.py and https://github.com/pyserial/pyserial/blob/c090f45667c68b7a7259a38de7a59b49b016f851/serial/win32.py for patching my Pyserial. I'll see later, whether the patched version works...
I now tested your patch with more devices (SAMD-s from Adafruit, Rasperry Pi Pico, several ESP32-S2 and S3 devices, some plain ESP32 devices with CP and CH UART adapters, an...
Here come the reports from USB Device Tree Viewer: * [M5Stack Atom U.txt](https://github.com/pyserial/pyserial/files/14112481/M5Stack.Atom.U.txt) * [M5Stack AtomLite.txt](https://github.com/pyserial/pyserial/files/14112482/M5Stack.AtomLite.txt) * [Sparfun Thing 32.txt](https://github.com/pyserial/pyserial/files/14112483/Sparfun.Thing.32.txt) * [BBC MicroBit.txt](https://github.com/pyserial/pyserial/files/14112484/BBC.MicroBit.txt) * [Lilygo_TTGO T-Micro 32 ESP32.txt](https://github.com/pyserial/pyserial/files/14112485/Lilygo_TTGO.T-Micro.32.ESP32.txt) * [Lolin...
Thanks a lot! After your last commit, pyserial reports proper Product, Manufacturer and Serial number for my BBC micro:bit. I'll test with my other boards tomorrow. Great job!
With all my boards I now get proper values for Manufacurer, Product and Serial number. For getting proper Interface, I'm combining your solution with #571. Thank you!
> I've added the feature to read the interface That's great! Somehow I missed it. I tested it and it works beautifully. I don't need #571 anymore.