bmorcelli / M5Stick-Launcher

App launcher for M5StickC, M5StickC Plus, M5StickC Plus 2 and M5Cardputer
MIT License
207 stars 19 forks source link

CardPuter Reboots During File Transfer from SD Card via Web Interface (M5Launcher Versions Above 2.0.1) #63

Closed God-emperor-greatest closed 4 days ago

God-emperor-greatest commented 3 weeks ago

Description

I'm encountering a consistent issue with the M5Launcher on the CardPuter across all versions above 2.0.1. When attempting to download a file from the SD card on the CardPuter to my computer through the web interface, the device reboots a few seconds after the transfer begins. This problem occurs on multiple operating systems, including Windows, Linux, and Android.

Steps to Reproduce

  1. Insert a microSD card into the CardPuter.
  2. Open the M5Launcher web interface on your computer or mobile device.
  3. Attempt to download any file from the microSD card to the device.

Expected Behavior

The file should download successfully without causing the CardPuter to reboot.

Actual Behavior

The CardPuter reboots a few seconds after the file transfer begins, and the download is interrupted.

Device Information

Logs and Screenshots

Unfortunately, I cannot capture any specific logs before the reboot, but I'm available to provide further information if necessary.

Additional Information

The issue was not present in M5Launcher version 2.0.1 or earlier. It consistently occurs in all subsequent versions.

Thank you for looking into this matter!

bmorcelli commented 3 weeks ago

It is probably related to AsyncTCP triggering the Watchdog timer, similar to https://github.com/bmorcelli/M5Stick-Launcher/issues/61

I'm studying how to disable/increase timers for the watchdogs in the framework.. maybe it solves the problem

bmorcelli commented 2 weeks ago

Hey friend, can you test with this binary? Launcher_2.0_Cardputer.zip

Install it using This flasher

God-emperor-greatest commented 2 weeks ago

In this version, the reboot issue does not occur, but the file transfer is interrupted after 70 KB when tested with different files. Additionally, the web interface stops working afterward, and I have to restart the device.

bmorcelli commented 2 weeks ago

Well, the wifi tweak is not working for WebUI interface.. I am recompiling the framework and will recompile the project this night again.. I'll send a new binary in a few hours..

If it doesn't work, I will change from AsyncWebServer to the Webserver library.. it'll make the fw a little lighter, and will work the same way Bruce WebUI works

bmorcelli commented 2 weeks ago

Launcher_2.0_Cardputer.zip

Lets see if it works..

God-emperor-greatest commented 1 week ago

Same result

bmorcelli commented 1 week ago

Launcher_2.0_Cardputer_24-09-02.zip

Now the framework is basically the same as the 2.0.1... lets give it a try

God-emperor-greatest commented 1 week ago

Same result