EC200U OTA Download to ESP32 Losing Data

Hi,

I’m using an ESP32 with EC200U to download and flash firmware via OTA, while also saving a copy to SD. The download sometimes loses data in the middle, causing OTA failures.

Current approach:

  • 256-byte buffer with EC200U.readBytes().
  • Writing each chunk to OTA and SD immediately.
  • 15s inactivity timeout.

Issue: Some bytes in the firmware are missing despite checking available() and waiting for “CONNECT”. Suspect buffer overflow or blocking read.

Question: What’s the best practice to reliably read large firmware files from EC200U without missing data?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.