OTA Update - dalathegreat/Battery-Emulator GitHub Wiki
What is OTA?
Over-the-Air (OTA) update is a mechanism that allows firmware updates to be deployed to ESP32 devices wirelessly, eliminating the need for physical connections. The Battery-Emulator uses the library Elegant OTA to achieve this.
Prerequisites
Before being able to use OTA update, ensure you have the following prerequisites:
- A Wifi connection established to the board
- Either a direct connection to the board (192.168.4.1 IP after connecting to the BatteryEmulator network (default password 123456789)
- OR a connection via a router (see quickstart video for how to connect Battery-Emulator hardware directly to your home network)
[!TIP] Starting from version 7.0.0 , many settings are stored to persistent memory. This means that all the things you configure in Webserver (Wifi settings, max charge/discharge rate, SOC scaling settings, Battery capacity) don't have to be configured again. The system will use the previously set settings automatically!
Performing the OTA update
- Start by navigating to the web address (Note that IP will be different compared to direct / router connection)
- At the bottom of the page, click the "Perform OTA update"
- On the ElegantOTA page, select the "Select file" option
-
Select the
.binfile that you want to update to -
Flashing will commence, once completed you will see this message:
- Congratulations, you have now updated the firmware remotely over the air! 🥳