> 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/sprinkler-control/irrigation-point-controller/firmware.md).

# IPC firmware versions and upgrades

IPC firmware V3 and V5, how to find an IPC's version, and how to upgrade, downgrade or update the bootloader with an EP3.

Water-Insight highly recommends that all installed IPCs have the latest V5 IPC firmware. There are many significant improvements to this version, including comms protocol improvements, battery management, and it uses the Farm ID and Channel security features. IPC V3 firmware is no longer being developed and it is not compatible with the IMS web platform or sensor gateway developments.

{% hint style="info" %}
**Applies to:** IPCs on firmware V3 or V5, with an EP3 on firmware V5.x. From application notes AN07 (Rev 02), AN13, AN18 (Rev 01) and AN33, the QIMS IPC and EP3 User Guide V4.1 and the IPC Service and Repair document (November 2023). The step-by-step upgrade with the EP3 (AN09) is on the EP3 page [Upgrade IPC firmware](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/upgrade-ipc-firmware.md).
{% endhint %}

The IPC contains two separate software images: the bootloader and the application. While the IPC bootloader is ACTIVE the EP3 can send it a new application image over the radio.

## V3 and V5 on the same site

There is a fundamental difference between V3 and V5 that affects the communication protocol used to message each IPC. In addition, V5 firmware requires that for each entry in the podlist a corresponding line is included which says for example FarmID=12:34. V3 IPC units must not have this line in the podlist entry for an IPC.

|                              | V3 IPC            | V5 IPC                                       |
| ---------------------------- | ----------------- | -------------------------------------------- |
| Podlist entry                | No `farmid=` line | A `farmid=` line, in the form `farmid=NN:NN` |
| EP3 **Use broadcast header** | Off               | On                                           |
| Program a Farm ID            | No                | Yes                                          |

Podlists can have a mix of pod entries (with and without a FarmID line per pod) this enables one podlist to be used for mixed V3 and V5 sites.

## Find an IPC's firmware version

**From the status.** In this method you don’t have to walk to each post but you do need two copies of the podlist: one that has the FarmID added for each IPC (a V5 list) and one without any FarmID entries (a V3 list). If it responds it will display its status and a line will indicate the firmware version number:

1. First try assuming that the unit is on V3. Load the V3 podlist, untick **Use broadcast header**, tick **Scan channels**, and request the IPC's status.
2. If it does not respond then load the V5 podlist, tick **Use broadcast header**, and try again.
3. If it responds note the firmware version, radio channel and the FarmID that the unit appears to have. If it does not respond this is a problem because the unit's firmware is not programmed correctly. Revert to using the magnet method to see what is programmed.

**With the magnet.** In this method you will need to walk to the post with an EP3 and a magnet. You will also need a folder on your SD card that is named `firmware` and in that you will have both the V3 and V5 firmware.

1. On the EP3 tap **Upgrade**, the firmware versions will list. Select either version and tap **Load**.
2. Place the magnet on the end of the IPC labelled magnet, the LED on the rear will start flashing.
3. Tap **Poll** (don’t tap anything else). Don’t tap **Flash**. The IPC will return a message displayed on the screen which is its bootloader version (ignore this) and its firmware version (note this down, it will be either 3.14 (V3) or 5.01 (V5)).
4. Tap the **Reset** button and the LED will stop flashing.

## Upgrade one or many IPCs

The IPC firmware can be upgraded with the magnet at each IPC, or remotely “Over The Air” (OTA) if you are not physically present at the IPC but are within radio range via the EP3. The prerequisite firmware versions for the OTA upgrade process must all be:

* IPC Application V3.13 or later
* IPC Bootloader V1.09 or later
* EP3 Application V5.01 or later

For the steps, see the EP3 pages [Upgrade IPC firmware](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/upgrade-ipc-firmware.md) (AN09) and [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) (the V5 cheat sheet, AN33).

## Downgrade from V5 to V3

This is best done when irrigation is not happening. It is assumed you have a new podlist from Water-Insight with FarmID information included. You will also need a podlist without the FarmID. Make sure you are in close radio range. Don't do this in the rain. If in doubt select 10-20 units at a time.

1. Load a V5 podlist (FarmID) and schedules into your EP3 that has the FarmID set for each IPC in the file.
2. Tap **Upgrade** > **option**. Select **OTA**, **Filter List**, **Ch 9** checkboxes. Untick **No FarmID**. Untick **Filter List** if you don’t care about the IPC list view (you can turn it on or off at will to view the units selected for upgrade or not).
3. Tap **all** to select all units in the podlist. If you do not want to downgrade all units then from the main menu tap **IPC list** then select the IPC you wish to downgrade then tap **view** and select its **upgrade** checkbox.
4. Tap **settings** > **comms** and tick the **Use broadcast header** checkbox (leave the scan channels one ticked).
5. Tap **upgrade**, select the V3 application file, for example `IPC-App-v3.14.bin`, and tap **load**.
6. Tap **poll** to start the OTA sequence. The units will be downgraded one at a time until the EP3 says finished.
7. Once done turn off the broadcast header option.
8. Load a V3 podlist (noFarmID). Now you should be able to check the status of individual IPCs.

If you load a new (V5) podlist you will not get comms after the downgrade because the EP3 will be trying to use new (V5) message formats. If you have broadcast header checked you will not be able to communicate to V3 units because the EP3 will be trying to use new (V5) message formats. If a unit fails to programme you will need to repeat the process or visit the post/pod and use the magnet method. It is assumed that an INC can distribute the time and schedules at a later date if necessary.

## Update the bootloader over the radio

The bootloader is normally programmed into the IPC via the ISP port from the test rig, but the ISP port isn’t accessible after the IPC has been potted. In order to reprogram the bootloader, the application image is replaced with a ‘Meta-loader’, which the EP3 can communicate with to upgrade the bootloader.

1. Find the IPC in the IPC list and get its status. Check that the charge is >= 70%.
2. Put the IPC into bootload ACTIVE mode using the magnet. The LED will be blinking continuously.
3. In the EP3 Firmware Upgrade section, select and ‘Load’ the meta-loader file (`IPC-Meta-vx.xx.bin`).
4. Tap **Poll**. You should get "Response OK" and the bootloader name and revision will be shown in the last status line. You are communicating with the old bootloader that we want to upgrade.
5. Press **Flash**. Check that it erases and completes the programming process.
6. Tap **Check**. Bootloader version < 1.06 will respond with "Unsupported", but newer ones should say "Firmware OK".
7. Press **Reset**. The IPC should now be running the Meta-loader.
8. Now go back to the Firmware Files list and select and ‘Load’ the new bootloader file (`IPC-Boot-vx.xx.bin`).
9. Tap **Poll**. The EP3 should now show "metaloader" and its revision on the last status line.
10. Now **Flash** and **Check**. It should be a bit quicker as the bootloader is small.
11. Now **Reset**. This stage actually copies the bootloader image into the boot region so it’s important that the IPC doesn’t lose power here! The IPC should have now rebooted into the new bootloader, which should then have jumped back to running the Meta-loader.
12. Now we need to flash the IPC application back into the IPC instead of the Meta-loader. So put the IPC back into Bootloader ACTIVE mode using the magnet and **Load** the IPC application firmware file (`IPC-App-vx.xx.bin`).
13. Now if you press **Poll** you should see that the bootloader revision has changed.
14. Program the application firmware as normal.
15. Once that is complete, go to the pod list, and get the status of this IPC. You should see that the revision has changed.

Firmware can be supplied by Water-Insight on application if required. See [Downloads](https://help.qtech.co.nz/water-insight/sprinkler-control/irrigation-point-controller/downloads.md).
