jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.83k stars 720 forks source link

[Question] AVR ISP from stand-alone ESP32 #373

Open stefaanv opened 6 years ago

stefaanv commented 6 years ago

Hi, I'm looking for esp-link-ish functionality in a somewhat different setup. The background : we have an esp32 based project but are hit hard by ULP limitations. To circumvent the problems, we consider adding an AVR 8-bit processor to the setup to take over the low-energy tasks from the ESP ULP. However, we'll be having thousands of units in the field and rely on OTA firmware upgrading to keep all of these up-to-date. A secondary AVR processor would not be automatically upgraded by the ESP32 OTA process and that is a problem. We are currently investigating the possibility to have the ESP32 upgrade a secondary AVR processor after it (the ESP32) has been OTA upgraded itself. However, there is one important limitation : the devices run on battery power, we need to limit the operational time of the ESP32 to max 30 seconds per day. This means the AVR upgrade process must be done by the ESP32 without human intervention

So, would it be possible to use/tweak the esp-link in such a setup ? We would't need the web server or MQTT functionality. Which core components of esp-link should we be looking at ? Would assistance from one of the esp-link developers be an option ?