> 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/ims-connect/update-firmware.md).

# Update firmware

Update the IMS Connect app, download firmware to your phone, update the EP4 SmartBridge, and upgrade IPC firmware by magnet or over the air.

Updating the firmware in an IPC involves a) getting a copy of the firmware from the IMS repository and storing it in your local files inventory on the phone, then b) transferring the firmware files via Bluetooth to the EP4 where they are then stored then c) initiating a process to update the firmware over short range radio to an IPC device. When you download files, IMS-Connect stores them on the phone so they are available when you are out of internet coverage.

{% hint style="info" %}
**Applies to:** IMS Connect with an EP4 SmartBridge. Over the air (OTA) updates need IPC bootloader V1.09 and application V5.01 or later. Older IPCs need a magnet.
{% endhint %}

## Update the IMS Connect app

The IMS Connect application is distributed on the Google Play store for Android smartphones and the IOS App Store for iPhones. Usually, when you install the app from these sources, your phone will automatically update your app. You can customise how you want IMS-Connect updated in your phone settings.

* **Android:** to check/update manually: Open the Google Play Store, tap your profile icon in the top right, and select **Manage apps & device**. Tap Update next to a specific app, or Update all. To manage auto-updates: Tap your profile icon, go to **Settings** > **Network Preferences** > **Auto-update apps**. Here, you can choose to auto-update over Wi-Fi only or any network.
* **iPhone:** to check/update manually: Open the App Store, tap your photo or account icon at the top, scroll to pending updates, and tap **Update** or **Update all**. To manage auto-updates: Go to your Settings app, tap **Apps**, and select **App Store**. Under Automatic Downloads, toggle App Updates on or off.

## Download firmware to your phone

1. Ensure that you have a good connection to the internet using Wi-Fi or cellular Mobile connection when downloading firmware from the repository.
2. From the Home screen tap the more icon then tap the **Local Files** button.
3. Tap the refresh button to retrieve the latest file listings from the IMS cloud.
4. The firmware files for updating IPCs, the EP4 Smartbridge and other devices will be listed. If a file has the storage inventory icon shown next to it then you already have a copy of the file on your phone.
5. If the Cloud Sync icon is shown next to the filename, then tap the icon to download the file to the phone.
6. If you want to retrieve all the latest files, then tap the **Download All** button.

In general, for the minimum required files you need to maintain IPC sprinklers and the EP4 Smartbridge, you will need a copy of:

| File            | For                                |
| --------------- | ---------------------------------- |
| IPC\_APP        | The IPC application                |
| IPC\_BOOTLOADER | The IPC bootloader                 |
| IPC\_METALOADER | Used to replace the IPC bootloader |
| EP4\_APP        | The EP4 itself                     |

The IPC\_CONFIGERASER is used for rectifying special faults in the IPC device configuration memory and should be used in consultation with Techsupport.

It pays to regularly refresh and check that you have all the latest firmware files stored on your phone so that you are not caught out in a place with no internet connection without the latest files.

## Update the EP4

1. Make sure your EP4 is on and connected to the phone. Check the EP4 Battery voltage and make sure that it is at least 70% charged. If it isn’t, charge the EP4 via USB before resuming this process.
2. Check that you have a copy of the EP4\_APP in your local files on the phone.
3. Tap the EP4 icon to go to the **EP4 Firmware Update** screen then tap the refresh button to check for the latest firmware update.
4. Tap the **Update** button. The currently installed and latest update versions will be compared, and if there is a newer version you can install it or you can re-install the current version by tapping the **Reinstall Latest** button. To choose an older version tap the **All versions** button and select the version you wish to install.
5. When have selected the latest (or the version you wish) then tap the **install** button. Keep the phone close to the EP4 when updating firmware.

The firmware will be transferred to the EP4 and programmed. If the process is successful, the device will restart and you will be returned to the Home Screen. If the process is unsuccessful, you can repeat the install and try again. Updating the EP4 firmware keeps most of your EP4 settings but you may need to transfer firmware files for endpoint devices again from your phone to the EP4.

## Copy IPC firmware to the EP4

You only need to do this occasionally to keep them up to date on the EP4.

1. Make sure the firmware files are in your local file storage within the IMS Connect app on your phone.
2. With your EP4 turned on and connected to the app, tap the EP4 icon on the Home screen then tap the **EP4 files** button to take you to the EP4 File Storage screen which will list the files.
3. To transfer all the necessary files in one go to the EP4 tap the green **Auto** button. Or you can transfer them one at a time by tapping the **Transfer file to EP4** button then selecting the file by tapping on its name then tapping the transfer button.

The EP4 can only hold up to 8 items in its storage so files that are surplus to needs can be removed by tapping on the file name in the list then tapping the **delete** button.

## Before you upgrade an IPC

* Do not attempt to update the firmware in devices with a low battery (less than 50% charged) or are in radio Hibernation (status led flashes briefly every 10s). Consider either changing the battery or waiting until the device has recharged naturally in sunlight. Consider inhibiting the schedule to minimise battery usage and ensure that the case solar panel is clean and facing north to best capture the sun.
* To minimise the effects of weather on radio communications, avoid updating firmware on rainy or foggy days when there is very high humidity.
* To update firmware, the IPC device must enter bootloader mode (programming) and this is signified by the IPC Status led flashing quickly. To enter bootloader mode manually you present a magnet to one end of the device up to a label that says **magnet** on the device. Inside, beneath the label is a sensor that detects the magnet and puts the device into bootloader mode. In later model IPC hardware versions the Status led is at the front (sloping side) of the case.

Programming the Application firmware requires one firmware programming step (application only) followed by validating the update. Programming the Bootloader and Application firmware requires three firmware programming steps (metaloader then bootloader then application) followed by validating the update. You will be asked to select from the list of firmware files stored on the EP4.

## Upgrade one IPC with the wizard

If you are beside the IPC unit and have a magnet handy and you have configured the app settings to add the **Update IPC** shortcut function to your home screen shortcuts then:

1. Tap the **Update IPC** button on the Home screen. On the Firmware Update screen tap the **Wizard Mode** button.
2. Follow the instruction on screen to put the device in Bootloader (programming) mode. You will need a magnet for this. When the device is in programming (bootloader) mode then its status LED will be flashing.
3. The app will request the device current bootloader and application firmware versions (device version info). Tap the **Update Application** button or tap the **Update Bootloader + App** button depending on what needs to be updated.
4. Follow the on-screen instructions to select the firmware then programme it. During this process you may be asked to make sure the IPC status led is flashing and you should apply the magnet to the device to do this. When prompted tap the blue button to select the firmware version for the current programming step.
5. When prompted tap the green **Start Flashing** button.
6. When programming is complete tap the **validate** button. The device version info will be retrieved and should match the firmware you programmed the app will indicate if the process was successful.

## Upgrade one IPC step by step

This method is similar to the Quick, Wizard mode method but the user selects each piece of firmware from the EP4 firmware file list, one at a time in the correct order in order to perform the update. This method is intended for experts who need greater control over the selection of firmware and for recovery from a previous update attempt that has failed and needs to be undertaken again. The selection of firmware and bootloader operations may vary depending on which step the process previously failed. If instructed to put the device into bootloader mode (apply magnet) then follow the on-screen instruction.

**Application only:**

1. Tap the **Update IPC** button on the Home screen.
2. On the Firmware Update screen tap the **Manual Mode** button.
3. Tap the **Get version** button (then enter bootloader mode when instructed).
4. From the Select Firmware list chose the firmware (application e.g. IPC-App ver 5.01).
5. Tap the **Update** button (then enter bootloader mode when instructed).

**Bootloader and application:**

1. Tap the **Update IPC** button on the Home screen.
2. On the Firmware Update screen tap the **Manual Mode** button.
3. Tap the **Get version** button (then enter bootloader mode when instructed).
4. From the Select Firmware list chose the firmware (metaloader).
5. Tap the **Update** button (then enter bootloader mode when instructed).
6. From the Select Firmware list chose the firmware (bootloader).
7. Tap the **Update** button (do NOT enter bootloader mode).
8. From the Select Firmware list chose the firmware (application).
9. Tap the **Update** button (then enter bootloader mode when instructed).
10. Tap the **Get version** button to verify new versions (then enter bootloader mode when instructed).

## Upgrade several IPCs on a site (over the air)

This method is used for V5 devices as opposed to legacy V3 devices. It utilises the “over the air” OTA feature to enable devices to be put in bootloader mode remotely. To use this method your posts must already be geolocated with GPS in IMS or this information must be also available in your Local Site.

1. Tap the name of the Site in the My Sites group or tap the **Sites** icon on the Home screen then select the site.
2. It is recommended that you sort the posts on the site by distance (tap the sort icon and chose sort by distance) which will place devices closest to you at the top of the list. This will help to avoid trying to update IPCs that are out of radio range.
3. You should not attempt to update firmware on devices further than 150m away unless you have clear line of sight.
4. From the Site screen scroll or filter to find and tap the name of the IPC to update.
5. Tap the **Poll Status** button and check that the device has at least 50% battery level otherwise you should update firmware when close by the device or wait until the device is fully charged. Verify that the device is running V5 firmware otherwise use a legacy method.
6. Tap the **Advanced** button then, tap the **Firmware update** button.
7. Tap the **Wizard Mode** button then tap **Update application** button (or tap the update bootloader button if there is also a new version of the bootloader to be updated). You will be prompted to select firmware files stored on the EP4.
8. The app will place the device in bootloader mode, perform the update.
9. Tap the **validate** update button to retrieve the device version info and confirm the new firmware is operational.
10. Tap the back arrow twice to return to the Site screen and select the next IPC on the site to update, then poll the device as above and repeat the process from there.

## Upgrade legacy (V3) IPCs

1. Ensure that you have all the required firmware files stored on the EP4. Ensure that the EP4 is on and connected to the app, tap the EP4 icon on the Home Screen then tap the **EP4 files** button to confirm you have all the firmware loaded.
2. You must be beside the IPC device and have a magnet.
3. You should update to at least the following firmware versions: Bootloader V1.09, Application V5.01 and use Metaloader V1.00. If later versions are available, please seek advice from Water-Insight (or techsupport) as to the best option for you.
4. Tap the **Poll IPC** shortcut button on the Home screen or select the IPC from the Site and tap the **Poll Status** button and ensure that its battery is at least 50% charged.
5. Proceed to update the firmware (bootloader and application) using one of the methods described (Quick-Wizard, Quick-Manual or Site Method above).
6. If your site is not in IMS then the Quick Wizard method may be easiest, so ensure that the **Update IPC** shortcut has been added to your home screen.
7. Verify the update per the update method you are using.
8. You are now on V5 firmware so a new radio protocol applies.
9. Poll the device. You must poll with the Broadcast header turned on until you have set the IPC with the new FarmID allocated for the Site.
10. If you have been allocated a new radio channel set the radio channel.
11. Apply the new FarmID.
12. If necessary, poll the device again to ensure that it has the new channel and FarmID.
13. Proceed to the next IPC device.

IMS-Connect will detect that the radio protocol has changed from V3 to V5 and will attempt to use the correct settings but you may be warned that the configuration for the IPC is different than for the site, until such time as change the site settings (once you have updated all the IPCs on the site to V5). 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).
