Download the binary file (*.bin) for your microcontroller version from the Release section on GitHub. It could also be a file from a test release you either find on your Github or receive from us by email. Our devices use the ESP32-S2 microcontroller. Make sure you select the correct file, the file name shall contain “-esp32s2-”.
Go to the status/info page, click “Select firmware file for upgrade,” and follow the instructions.
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.
Connect a USB cable between your computer and the Pow device
Click the green “Connect” button. An empty window should open.
On your Pow device: Press and hold AP, press/release RES, release AP.
The port of the ESP should now show up like this:
Select it and press the blue “Connect” button.
4. Select Firmware: Choose the firmware version to install.
You can now select which firmware version you want to install:
Select the firmware version you want to use.
5. Program device: Press Start installation
You should now see the upload process running in the output window:
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.
The device will in this case create the access point AMS2MQTT. Search for it amongst your Wi-Fi networks, and connect your PC, phone or pad to it.
Open http://192.168.4.1/ and configure the device, including 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 <…>win64.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.
Open a command window (Windows computer: <Win>+R, write “cmd”, press Enter).
Navigate to the directory where binaries and esptool are located: cd <directory path>
You might need to change to the right disk name, for instance using the command g: if the folder is located on an other disk than c:\
Power your device by connecting a USB cable. (Not needed for Pow-K, it can stay in and be powered from the meter).
Set the device into programming mode by: - Press and hold AP button - Press and release Reset button - Release AP button
Open Device Manager to find out which COM port was activated: Right-click Start button (or press Windows key + X), then select "Device Manager" from the menu. Then expand “Ports (COM & LPT)” and note the COM port.
Start by erasing the device, running this command in the command window. Replace “<port>” by the opened COM port, for instance “COM3”: esptool --port <port> erase_flash
Wait for it to finish, then…
Run this command in the command window. Replace “<port>” by the opened COM port, for instance “COM3”: esptool --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.bin
You should now see the flashing being done in the command window.
When it is finished, press the RESET button on the device. It will automatically be set to Accesspoint-mode. The LED will not work (on Pow-U and Pow-P1 the LED will be blue)
Find the Wi-Fi network AMS2MQTT and connect to it.