Your Pow-device will regularly indicate when a new firmware version is available. We always recommend running the latest version.
There are four methods available to upgrade your firmware:
Most users can upgrade without issues using the “one-click” method. Simply click the link that appears on the top bar when an upgrade is available.
This could potentially fail due to network delays between the server and your device.
If it fails: Try again.
If it still fails: Revert to Manual upgrade
If your device for some reason is totally blocked, so that you do not have access to the user interface, you can use the USB upgrade method.
Note 1: Upgrade over USB is not possible with old Pow-devices using an ESP8266 microcontroller.
Note 2: This method works only from browsers that supports Web Serial API, which for the moment is: Chrome, Edge and Opera.
1. Backup Settings: Go to the Status/Info page and use the Download button.
2. Open Flasher Tool: Open this page in a Chrome, Edge or Opera browser window: https://www.amsleser.cloud/flasher
3. Connect Device:

4. Select Firmware: Choose the firmware version to install.

The two options behave differently:
Upgrade keeps all configuration and data, including the board type.
Erase flash and install deletes all configuration and data stored on the device, including the board type. When the device reboots, the LED will not be active until you have reconfigured it according to point 7 below.
5. Program device: Press Start installation

6. Restart Device: Press the RES button on your Pow device.
If the LED does a startup sequence, you're finished.
If not, continue:
7. Reconfigure device if needed:
If the LED shows no activity, the device has forgotten its factory configuration.
http://192.168.4.1/ and configure the device.If you chose "Erase flash and install", the first screen asks for Board type. On old ESP8266 devices you must choose between two entries for your board, for example "Pow-U (GPIO12)" and "Pow-U (UART0)" — read the silkscreen text on your board and pick the matching entry. See the warning under Reflashing using esptool for details.
Then continue with the connection credentials to your Wi-Fi network.
8. Restore Settings: If needed, restore your settings from the backup file you made in the start using the “Select file…” button on the Status/Info page.
Congratulations, you have now upgraded your device over USB cable!
This is the most cumbersome method, used if all other method fails.
You must first download and install esptool from its Github repository. Install the latest version and select from the list of assets the one that is right for your computer. Windows users shall select the file ending with <…>windows-amd64.zip.

Unzip the ZIP file to a suitable directory on your computer.
Next: Download the binary files for flashing the device. Use the latest release from our Github: https://github.com/UtilitechAS/amsreader-firmware/releases and download the appropriate ZIP file. For newer Pow-devices that use ESP32-S2, select the file ms2mqtt-esp32s2-x.x.x.zip. Unzip the content to the same directory as previously downloaded esptool.
cd <directory path>g: if the folder is located on an other disk than c:\esptool --port <port> erase_flashesptool --chip esp32s2 --port <port> --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.binOld ESP8266 devices need care at this step.
Because the flash was completely erased, the device no longer knows what hardware it is running on. This screen will reappear on every boot until a valid board type has been saved.
Old Pow-K (layout 1.4 or older) and Pow-U (layout 1.5 or older) have two entries each: "Pow-U (GPIO12)" and "Pow-U (UART0)". They are not interchangeable — they tell the firmware which pin the HAN data arrives on. Your board is marked with the silkscreen text
GPIO12orUART0. Read the board and pick the matching entry.If you pick the wrong one, the device will start and connect to Wi-Fi normally, but it will listen on the wrong pin and no meter data will ever appear.
Devices with the ESP32-S2 microcontroller have only one entry per board (Pow-U+, Pow-K+, Pow-P1) and need no such check.