lab-micropython-editor icon indicating copy to clipboard operation
lab-micropython-editor copied to clipboard

Connected device disconnect frequently while uploading files

Open AppsByDavideV opened this issue 1 year ago • 4 comments

Hello, as per title, micropython device suddenly disconnect while uploading files at whatsoever upload percenage . No matter the file size, it can be few bytes to kbyte, The worst thing is that, even if the banner says 'uploaded', the file in most cases is corrupted.

Device Esp32 Wrover with SPI ram, mpy 1.19 and 1.20 . Onboard serial chip is CH340. PC win10 and win 11, no matter. Arduino lab 0.8.0

I must add that with some other IDE (i.e. ESP32 MPY jama) it happens rarely and upload of files is way faster (almost 10x). But i prefer this one and fixing the problem would be great.

Thanks. \Davide

AppsByDavideV avatar Sep 09 '23 12:09 AppsByDavideV

@AppsByDavideV version 0.9 has much faster upload speeds and this kind of disconnections should not be happening. Please also make sure you have more recent versions of ESP32 MicroPython because around version 1.20 there was a bug on the S3 and C3 which caused some file-system issues when saving data

ubidefeo avatar Apr 19 '24 07:04 ubidefeo

Hi @ubidefeo : I tried it, but uploading of files still hangs during upload. Processor ESP32 WROOM (no S3 or C3) MPY 1.22. Anyway this is a nice update! Keep up the good work!

AppsByDavideV avatar Apr 26 '24 17:04 AppsByDavideV

@AppsByDavideV thank you :)

have you tried with other devices? the disconnection might even be due to the board browning out under load, might be an electrical issue. if you have another board exactly like that and give it a test, it might confirm or deny the issue and we'd investigate more deeply. could you, by any chance, make a zip of the files you're trying to copy and provide it to me?

ubidefeo avatar Apr 29 '24 07:04 ubidefeo

Hi @ubidefeo , my application requires a lot of ram, that's why I'm using ESP32 with SPI ram. Anyway, I gave it a try with different files and different esp32 module + usb cable (maybe):

  • PC OS Win11
  • Lab-micropython-editor 0.10.0
  • Processor ESP32WROVER 4M flash + 4M SPI ram from TTGO - USB type C connection
  • Mpy 1.22 clean install
  • Files: Drive, password protected , please send an email to support <@>appsbydavidev.it for password.
  • 1st test using this IDE: All files selected for upload in one pass. Slow upload , blocked at 59%, got disconnection, see left top icon in screenshot- disconnected and reconnected the chip, got the file list on it, tried to open an uploaded folder: hang. Must close the IDE.
  • 2nd test with Thonny on same, cleaned chip: succesfully uploaded all files.
  • I must add that uploading with Thonny is still a lot faster .

Attached some screenshots: 1: files list on both sides 2: upload blocked at 59% 3: can't access folders on chip

Hope it helps ! Bye file list upload blocked blocked folder

AppsByDavideV avatar May 01 '24 13:05 AppsByDavideV