> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/upgrade-ipc-firmware.md).

# Upgrade IPC firmware

Upgrade IPC firmware from the EP3, one IPC at a time with a magnet, several over the air, or the bootloader with the metaloader.

The IPC firmware can be upgraded from the EP3 via the on-board radios. The magnet process is followed if you are physically present at the IPC. The over the air (OTA) process may be followed if you are not physically present at the IPC but are within radio range via the EP3. If the IPC has firmware older than V3.13, both the firmware (application) and the bootloader (which upgrades the application) are required to be updated in order to make the IPC device ready for OTA updates.

{% hint style="info" %}
**Applies to:** the Water-Insight EP3. If upgrading from v3.xx to v5.xx firmware, you must also programme the Farm ID parameter before you can communicate with the IPC. See [Upgrade a site to Version 5 and Farm-ID](https://help.qtech.co.nz/water-insight/sprinkler-control/irrigation-point-controller/farm-id/upgrade-to-v5.md).
{% endhint %}

## Before you start

* Ensure that the latest version of firmware is running on the EP3, consult the EP3 user guide for procedures to upgrade the firmware in the EP3. See [Upgrade the EP3 firmware](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/upgrade-ep3-firmware.md).
* Latest IPC firmware can be supplied by Water-Insight on application if required. The new firmware must be loaded into a folder on the SD card called "firmware" in order for it to be listed in the available upgrades on the EP3 user interface screen.
* Always have a small magnet on hand to interact with the IPC (to put it into bootloader mode or power it on and off if required). Always carry spare batteries for the EP3. It is recommended that a stylus be used when interacting with the touch screen user interface of the EP3.
* The bootloader communications method is relatively simple compared to the other communications methods used by the IPC. It is therefore very important to ensure that only one IPC (within radio range) is operating in the Bootload ACTIVE mode at a time, or communications problems may occur.

## One IPC, magnet method

This process is to be followed if you are physically present at the IPC and wish to undertake a firmware upgrade.

1. Tap **Upgrade**. The list of available firmware files will be displayed. Tap the up or down buttons to move the cursor to the filename of the new firmware. The selected file is underlined. Tap **Load**. Information about the firmware will be displayed including its name and version number.
2. Place a magnet on the IPC housing at the position indicated by the "magnet" label for a few seconds then remove the magnet. The LED inside the IPC will start blinking, indicating that it is in firmware upgrade mode (Bootload ACTIVE).
3. Tap **Poll**. This performs a handshake with the IPC to confirm that it can communicate with the IPC. The EP3 will now display the name of the bootloader application and the message "Handshake OK".
4. Tap **Flash**. The screen will now display a count of records being transferred to the IPC. This process will take about 20 seconds to complete. First the memory will be erased. Then the memory will be programmed. Once the IPC is successfully programmed you will receive the message "Programmed OK".
5. Tap **Check**. This will make the IPC verify that the new application image is correct. If the verification process passes you will receive the message "Firmware OK".
6. Tap **Reset**. The IPC will then restart, and the LED should turn off indicating that IPC is now using the new IPC firmware.

## Several IPCs, over the air

Instead of you having to use a magnet, the EP3 will send the IPC a message telling it to go into Bootload ACTIVE mode. The EP3 will automatically step through the IPC list and perform the upgrade process on each IPC that has been selected for upgrade.

The prerequisite firmware versions for the OTA upgrade process are IPC application V3.13 or later, IPC bootloader V1.09 or later, and EP3 application V5.01 or later (note older versions of EP3 should be upgraded to this version to support the FarmID function; AN09 gives EP3 application v4.06 or later).

1. Tap **Upgrade**. The list of available firmware files will be displayed. Tap the up or down buttons to move the cursor to the filename of the new firmware. The selected file is underlined.
2. Tap **Option**. The relevant options are:
   * **OTA** – Enables the OTA feature.
   * **Filter List** – The IPC list will only show the IPCs that have their "upgrade" box ticked.
   * **Skip** – The EP3 will skip over upgrading the IPC if the IPC already has been upgraded to the desired firmware version.
   * **No Farm ID** – Check this box to upgrade IPCs on V3.xx firmware to V5.xx firmware. Note you must be running V5.xx EP3 firmware to see this option.
3. Leave the channel option in the OTA option screen as channel 9 unless there is a specific problem with using radio channel 9 on the site.
4. Enable the OTA feature, and select which IPCs you want to upgrade. The **All** and **None** buttons can be used to tick or untick the "upgrade" box of all the IPCs. So if you want to upgrade all the IPCs using the OTA feature you should just tap the **All** button, which will automatically enable the OTA option. Alternatively, you can tap **None**, and then select specific IPCs individually via the IPC list > **View** > **upgrade** (select the checkbox to include the IPC in the list of devices to be upgraded).
5. Tap **Load**. Information about the firmware will be displayed including its name and version number. Select the firmware version that is to be programmed using the scroll buttons.
6. Tap **Poll**. This will trigger the EP3 to begin the automatic process, and you shouldn't need to do anything more until the EP3 has worked its way through the list of IPCs selected for upgrade. The EP3 will step through a process of rebooting the IPC, checking the firmware version (skipping to the next IPC if the firmware version is the same and the "skip" option is enabled), erasing, programming, checking, and resetting, until all IPCs have been attempted.

![The EP3 OTA options, with OTA, Filter List, Skip and No Farm ID](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FxFIzeB9lruzg8QpKYGJv%2Fep3-ota-options.png?alt=media)

Once the EP3 has finished the OTA process you may need to reattempt the upgrade on some IPCs. Each time that the EP3 successfully upgrades the IPC it will untick the IPCs "upgrade" checkbox. IPCs that weren't successfully upgraded will be left with the "upgrade" box ticked, and you can use the "filter" option to show those ones. If the upgrade failed because the EP3 wasn't able to communicate with the IPC (to put it in Bootload ACTIVE mode), then you can re-trigger the OTA process once you have moved to a position which has better comms coverage to that IPC or group of IPCs. It's OK to turn off and on the EP3 as you move around because the "upgrade" checkbox states will be remembered.

Important: only use the **All** option if you are sure you have good comms to all IPCs. A better strategy involves selecting only a few IPCs at a time from the IPC list. Try to establish a high point overlooking the IPCs when programming as it maximises the opportunity to upgrade many IPCs at a time. A third strategy involves editing the pod list and creating a number of pod config files each with a subset of the full list. These files would normally have groupings of IPCs that are physically close to one another so that the opportunity to upgrade them from an EP3 within radio range is maximised. This approach is best if you plan on upgrading a site according to its layout an area at a time.

Once all IPCs have been upgraded you should confirm that the upgrade was correctly applied to each IPC by sending it a status request and receiving a status message in response. This can be done with the EP3 or with an INC.

**Important:** If the unit failed during the erase, programme, verify phase then the IPC will be left without a valid application firmware to run and will display an error message on the LED. In this case you must use the magnet process to re-attempt the upgrade. If the upgrade failed due to a comms fault part way through the upgrade, then the IPC will be sitting in Bootload IDLE mode, and you will have to visit those IPCs with a magnet and perform the traditional upgrade process.

## Bootloader upgrade (metaloader method)

This process is to be followed if the IPC has firmware older than V3.13 and both the firmware (application) and the bootloader (which upgrades the application) are required to be updated in order to make the IPC device ready for OTA updates. To upgrade the bootloader in the field each IPC must be visited and a magnet is required.

1. The EP3 must be loaded with three files all stored in the firmware folder of the SD card: the metaloader (IPC-meta-xxxx.bin), the bootloader (IPC-boot-xxxx.bin) and the application (IPC-App-xxxx.bin).
2. Tap **Upgrade**. Select the metaloader (using up down buttons) to scroll to the correct file which will be underlined. Tap **Load**.
3. Briefly place the magnet on the IPC to enter bootloader mode.
4. Follow the poll>flash>check>reset process described above.
5. At this stage, there is no need to place the magnet again. Tap **Back** to show the list of firmware files and scroll to select the (new) bootloader program. Tap **Load**.
6. Follow the poll>flash>check>reset process described above.
7. Having loaded the new bootloader now program the application. Tap **Back** to list the firmware files and scroll to select the application (V5), then tap **Load**.
8. Having loaded the new bootloader now briefly place the magnet on the IPC to enter the new bootloader mode.
9. Follow the poll>flash>check>reset process described above.
10. When the IPC is reset at the end of the last step in programming the application, after a few seconds you should hear a click (if the sprinkler valve solenoid is wired up). This indicates that the IPC has been reset and is now in its normal operating mode. If the valve solenoid is not wired up then wait about 20 seconds to be sure.
11. Now verify that the unit is operational. Tap **Back** until you return to the main screen. Tap **IPC List** and either scroll to select the IPC you have just upgraded or tap **Jump**, enter the serial number and tap **Enter**, then tap **View**. Tap **Comms**, ensure the **Status** and **Local** checkboxes are selected (marked) and tap **Send**. The IPC will be polled and return its status including the firmware version that it is now running.

If you have upgraded to V5.xx firmware you must load a new podlist with FarmIDs for each unit and also programme the FarmID before you can communicate to the IPC. See [Set a new or replacement IPC to work](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/new-ipc.md).

If something goes wrong, see [An IPC firmware upgrade fails](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/troubleshooting/firmware-upgrade-fails.md).
