[PR #425] [MERGED] Coprocessor OTA changes #524

Closed
opened 2026-03-20 17:30:14 +01:00 by sascha_hemi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OpenEPaperLink/OpenEPaperLink/pull/425
Author: @skiphansen
Created: 1/5/2025
Status: Merged
Merged: 1/25/2025
Merged by: @skiphansen

Base: masterHead: oepl_pr_ota


📝 Commits (6)

📊 Changes

17 files changed (+564 additions, -295 deletions)

View changed files

📝 .github/workflows/release.yml (+37 -25)
📝 ESP32_AP-Flasher/data/www/index.html.gz (+0 -0)
📝 ESP32_AP-Flasher/data/www/main.css.gz (+0 -0)
📝 ESP32_AP-Flasher/data/www/main.js.gz (+0 -0)
📝 ESP32_AP-Flasher/data/www/ota.js.gz (+0 -0)
📝 ESP32_AP-Flasher/include/espflasher.h (+13 -1)
📝 ESP32_AP-Flasher/platformio.ini (+11 -4)
📝 ESP32_AP-Flasher/src/espflasher.cpp (+172 -117)
📝 ESP32_AP-Flasher/src/ota.cpp (+59 -18)
📝 ESP32_AP-Flasher/src/serialap.cpp (+61 -19)
📝 ESP32_AP-Flasher/src/web.cpp (+12 -4)
📝 ESP32_AP-Flasher/wwwroot/index.html (+4 -1)
📝 ESP32_AP-Flasher/wwwroot/main.css (+7 -7)
📝 ESP32_AP-Flasher/wwwroot/main.js (+1 -2)
📝 ESP32_AP-Flasher/wwwroot/ota.js (+183 -93)
📝 binaries/ESP32-C6/firmware_C6.json (+2 -2)
📝 binaries/ESP32-H2/firmware_H2.json (+2 -2)

📄 Description

This PR touches a LOT more files than I expected! Feedback is solicited and more than welcome!

Change summary:

  1. Coprocessor OTAU now downloads images from the configured repo.
  2. The coprocessor firmware version is now reported when updates screen is opened and after updating.
  3. Support for updating the Lilygo T-panel's H2 coprocessor was added.

This PR also lays a lot of ground work for eventual OTA for other coprocessors such as the TLSR.

A Beta release is available testing. The Beta's user orientated installation instructions include screen captures of the changed screens for easy review of the changes.

I have done extensive testing and have seen two issues I haven't been able to reproduce enough to debug. Perhaps some extra eyes and "extreme programming" will help find them.

  1. While flashing heap corruption is detected and the AP reboots.
  2. Downloads hang without reporting an error.

The first issue hasn't occurred recently and I have no idea for how to reproduce it. I've been monitoring the amount of unused stack space after an successful flash and I don't think that's the issue.

I can simulate download failures and will continue to try to debug the second issue when I get time.

These issues occur less than 10% of the time and they always resulted in a successful reboot and successful update after a retry.

I believe the benefits of the PR outweighs the risk, particularly if the Lilygo T-panel catches on.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OpenEPaperLink/OpenEPaperLink/pull/425 **Author:** [@skiphansen](https://github.com/skiphansen) **Created:** 1/5/2025 **Status:** ✅ Merged **Merged:** 1/25/2025 **Merged by:** [@skiphansen](https://github.com/skiphansen) **Base:** `master` ← **Head:** `oepl_pr_ota` --- ### 📝 Commits (6) - [`2224a75`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/2224a75d13642c79dc29becdee4b038cc5f2d268) OTA changes to support C6/H2 OTA updates from configured repo. - [`b6406b3`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/b6406b33c75727d211280a456135b57218323c59) Update gzip'ed versions of changed data/www/* files. - [`26adea9`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/26adea9eb12f9a14dacc0c520250879cb5ce9316) Use string compare for version to allow non numeric release names. - [`539eea4`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/539eea4bc3b430b1d39499248cb4fefc002377be) Merge branch 'OpenEPaperLink:master' into oepl_pr_ota - [`af83fb8`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/af83fb8340f36f24f68d87c1b30ce067d01df1f9) JasonFilename -> JsonFilename. - [`8b70233`](https://github.com/OpenEPaperLink/OpenEPaperLink/commit/8b7023394c1631281ab4859e1a649a96ccf3a447) Merge branch 'oepl_pr_ota' of https://github.com/skiphansen/OpenEPaperLink into oepl_pr_ota ### 📊 Changes **17 files changed** (+564 additions, -295 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yml` (+37 -25) 📝 `ESP32_AP-Flasher/data/www/index.html.gz` (+0 -0) 📝 `ESP32_AP-Flasher/data/www/main.css.gz` (+0 -0) 📝 `ESP32_AP-Flasher/data/www/main.js.gz` (+0 -0) 📝 `ESP32_AP-Flasher/data/www/ota.js.gz` (+0 -0) 📝 `ESP32_AP-Flasher/include/espflasher.h` (+13 -1) 📝 `ESP32_AP-Flasher/platformio.ini` (+11 -4) 📝 `ESP32_AP-Flasher/src/espflasher.cpp` (+172 -117) 📝 `ESP32_AP-Flasher/src/ota.cpp` (+59 -18) 📝 `ESP32_AP-Flasher/src/serialap.cpp` (+61 -19) 📝 `ESP32_AP-Flasher/src/web.cpp` (+12 -4) 📝 `ESP32_AP-Flasher/wwwroot/index.html` (+4 -1) 📝 `ESP32_AP-Flasher/wwwroot/main.css` (+7 -7) 📝 `ESP32_AP-Flasher/wwwroot/main.js` (+1 -2) 📝 `ESP32_AP-Flasher/wwwroot/ota.js` (+183 -93) 📝 `binaries/ESP32-C6/firmware_C6.json` (+2 -2) 📝 `binaries/ESP32-H2/firmware_H2.json` (+2 -2) </details> ### 📄 Description This PR touches a **LOT** more files than I expected! Feedback is solicited and more than welcome! Change summary: 1. Coprocessor OTAU now downloads images from the configured repo. 2. The coprocessor firmware version is now reported when updates screen is opened and after updating. 3. Support for updating the Lilygo T-panel's H2 coprocessor was added. This PR also lays a lot of ground work for eventual OTA for other coprocessors such as the TLSR. A [Beta release](https://github.com/skiphansen/OpenEPaperLink/releases/tag/c6_h2_ota_beta_1) is available testing. The Beta's user orientated [installation instructions](https://github.com/skiphansen/OpenEPaperLink/wiki/Installing-the-Coprocessor-OTA-Beta) include screen captures of the changed screens for easy review of the changes. I have done extensive testing and have seen two issues I haven't been able to reproduce enough to debug. Perhaps some extra eyes and **"extreme programming"** will help find them. 1. While flashing heap corruption is detected and the AP reboots. 2. Downloads hang without reporting an error. The first issue hasn't occurred recently and I have no idea for how to reproduce it. I've been monitoring the amount of unused stack space after an successful flash and I don't think that's the issue. I can simulate download failures and will continue to try to debug the second issue when I get time. These issues occur less than 10% of the time and they always resulted in a successful reboot and successful update after a retry. I believe the benefits of the PR outweighs the risk, particularly if the Lilygo T-panel catches on. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
sascha_hemi added the pull-request label 2026-03-20 17:30:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#524