> 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/ims-and-gateways/ims/add-ipcs.md).

# Add IPCs and set them to work

For installers. Add new IPCs to a farm in IMS, deploy them to the farm's channel and Farm-ID, put them on their posts and test them.

Use this page when you set up a new site or expand an existing one. It takes IPCs from serial numbers to watering sprinklers.

{% hint style="info" %}
**Applies to:** installers using cloud IMS with an IMS Gateway, INC firmware V5.06 or later, and IPC firmware V5. To move an existing site with an IPC Manager or RXP Scheduler project file into IMS, see [Import, export and backups](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/import-export.md) instead.
{% endhint %}

A good approach is to add new IPCs as **spares**, which can then be assigned to sprinkler locations as required. New IPCs can also be added as sprinklers (leave **Is a Spare unit** slider off) with locations defined individually or imported from a KML file. Care would then be needed to ensure the correct IPC was installed at the assigned sprinkler.

## What you need

* The farm already created in IMS. See [Get started with IMS](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/get-started.md).
* The serial number of each IPC. The serial number is found on the label inside the IPC and can be seen through the clear plastic case.
* The IPCs placed in the sun, near to the IMS gateway.

## Add IPCs one at a time

1. Open the **Farm Settings** menu and select **Manage Assets** > **Irrigation Devices**.
2. Select the **Add New Sprinkler** button.
3. Give the IPC a **Name** like SP01 (must be 5 characters or less).
4. Enter the **serial number** of the IPC. If you enter a valid serial number, IMS will look up the radio (MAC) address of the radio device in the IPC and automatically enter it in the MAC Address field. The **Farm ID** and **Channel** will already be populated with your site configuration.
5. Turn on the slider control **Is a Spare unit**.
6. Select **Create** to add the device to IMS. Repeat from step 2 if there are more IPCs to add as spares.
7. When all spares have been added, select **Update Gateway**.

If one does not already exist, create a Spares group and add your new IPCs to it. See [Create and use groups](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/groups.md).

## Import a list of IPCs

A bulk IPC list import is possible using a spreadsheet (e.g. Microsoft Excel). The [Device Import template](https://www.waterinsight.co.nz/wp-content/uploads/IMS-Device_Import_Template.csv) can be found here, or you can create your own.

| Column     | Required | What to enter                                                                  |
| ---------- | -------- | ------------------------------------------------------------------------------ |
| **Serial** | Yes      | Serial number of IPC                                                           |
| **Name**   | No       | e.g. SP01 (5 character limit). If left blank, names are assigned automatically |
| **Groups** | No       | Group name the IPC belongs to. Group is created if not already existing.       |

1. Save as CSV file type in a convenient location. File > Save As > choose location > choose file type **CSV (Comma delimited) (\*.csv)** from drop down menu.
2. Open the **Farm Settings** menu and select **Advanced** > **Import**.
3. Choose **List of Devices**.
4. Turn ON the **Import as Spares** slider.
5. For a site with existing devices the existing farm ID and channel are assigned to the imported devices. For new sites channel and farm ID can be specified by using the sliders in the import dialogue.
6. Select **Choose File** > navigate to your import file > select **Open**.
7. A success message will be displayed. If any serial numbers in the import list were already existing in IMS, they are skipped.
8. Select **Update Gateway** to update the IMS gateway with the changes, then **Close**.

The imported IPCs are defined as Spare Units and are allocated to a group named **Spares**. This group is created if it does not already exist. The IPCs are automatically given names with **SP\_** prefixes. If you decide what has been imported is not correct the previous state can be restored using the Backup & Restore feature. See [Import, export and backups](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/import-export.md).

## Deploy the IPCs

The Deploy feature will attempt to configure your IPCs with the correct channel and farm ID for use on your site, using the IMS gateway. IPCs can be deployed as a group or selected individually. The IPC should be within a few meters of the IMS gateway to ensure good communication & ease of troubleshooting. The deployment feature does not operate over mesh communication.

Before running the deployment process for IPCs:

* Place them in the sun, near to the IMS gateway.
* Remove the storage magnets.
* On Rev E IPCs, hold a magnet beside the magnet label for 2s to turn the IPC on. You should see 3 long flashes of the LED to confirm it has turned on.
* If the IPCs have been in storage for some time, they may need a day or two of sun to charge before they will communicate and be able to be deployed.

**Clear any Queued Tasks.** It is normally a good idea to clear any queued tasks from the gateway, so that the deployment tasks are processed as quickly as possible.

1. Open the **Farm Settings** menu and select **Manage Assets** > **Gateways**.
2. Open the **Gateway Settings** menu and select **Stop Comms**. Any comms task currently in progress will continue to completion. Any tasks which have not completed (e.g. scheduling) will need to be resent later.

**Deploy the whole Spares group:**

1. Select **Groups** at the top of the screen.
2. Open the **Communications** menu for the **Spares** group and select **Deploy whole Group**.
3. The INC will scan each selected IPC and attempt to reconfigure it to the desired channel and Farm ID. This process can take up to a minute per IPC, so depending on how many IPCs have been added may take quite a while. Allow 1min per IPC being added before moving to the next step.

![The communications menu for the Spares group, with Deploy whole Group](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FkZdS9LwsJJyzKIfiOz2s%2Fims-spares-group-menu.png?alt=media)

**Or deploy some IPCs:**

1. Open the **Farm Settings** menu and select **Manage Assets** > **Irrigation Devices**.
2. Scroll or use the filter option to display newly added IPCs and select each of them (e.g. filter on SP, then select SP1 & SP2).
3. Select the more menu at the top of the page and select **Deploy**.
4. The INC will scan each selected IPC and attempt to reconfigure it to the desired channel and Farm ID. This process can take up to a minute per IPC, so depending on how many IPCs have been added may take quite a while. Allow 1min per IPC being added before moving to the next step.

If the "stop comms" option was not applied first and the site is in the middle of a poll cycle it might take some time for this command to be processed.

## Check the IPCs are ready

1. Request the status from each of the new spares. By Group: from the Home screen select **Groups**, open the **Communications** menu for the Spares group, then select **Poll Whole Group**. Or individually, from the Sprinklers page: select each sprinkler in turn from the map or list or using the search function, open the sprinkler card, then select the refresh icon to send a status request.
2. Wait for the polling completed message (approx. 2min). It may take longer than 2min to communicate with all IPCs being polled.
3. Repeat step 1. Again, wait for the polling completed message.
4. Go back to the Farms view and select **Sprinklers** on the farm card. Select the list icon to view the list of IPCs.
5. Scroll or filter the list as needed and check the newly added IPCs. Icons beside the serial number indicate the status of the IPC:
   * **Green tick** – Ready to be installed
   * **Red cross** – Not ready – has not communicated or battery charge is below 70%

The indication will update as communication is achieved with the IPCs (you may need to refresh the page). For any IPCs that do not move to a green tick, see [A new IPC won't deploy or shows a red cross](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/troubleshooting/deploy-fails.md) or contact Water-Insight or your irrigation provider.

If they are not to be used immediately the storage magnets can be reinstalled or they can be stored in a position that allows sun to the solar panel to keep the battery charged.

## Put each IPC on its post

Now that the IPCs are ready for installation and there are sprinkler locations assigned in IMS, it is time to allocate specific IPCs to each location.

* If there is **cellular network coverage** on the site, each IPC can be allocated and tested as it is installed.
* If there is **no cellular network coverage** on site, IPCs can be allocated before installing (where you have internet access available), then (once installed) tested with an [EP3](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer.md) or [IMS Connect](https://help.qtech.co.nz/water-insight/handheld-tools/ims-connect.md) if desired.

To allocate IPCs to locations you've already mapped, see **Convert a point of interest to a sprinkler** in [Sprinkler locations and points of interest](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/locations.md).

## Set the sprinkler to work

These steps should be performed from IMS when possible. An EP3 or IMS Connect can be used if there is no cell coverage on site.

1. From the farm card select **Sprinklers**.
2. Select the IPC of interest on the map. Select **Open Card**.
3. A status request can be sent by selecting the refresh icon. Any clock errors will be automatically corrected next time IMS synchronises the time on the site.
4. Select the options menu. If a schedule is available in IMS for this IPC, it can be sent to the device using the **Send Schedule** option.
5. To test the solenoid operation, select **On/Off** (Valve Operation). Confirm sprinkler starts/stops (if water available) or solenoid clicks (no water available).

A schedule error will usually occur when the IPC is first installed because it will not have a watering schedule.

## Edit, remove or delete an IPC

1. Open the **Farm Settings** menu and select **Manage Assets** > **Irrigation Devices**.
2. Scroll or use the filter option to display the desired sprinkler(s). Open the **Device Settings** menu > **Edit**.
3. Edit desired details:
   * **Name** – sprinkler name (5 characters or less)
   * **Comms Mode** – Local or Mesh (how the gateway attempts to communicate with this sprinkler). Use local comms mode if the unit is within clear radio range of the IMS gateway and mesh otherwise. If you are unsure choose mesh.
   * **Location** – choose location or **Get Current Location** if using mobile device
   * **Group(s)** – Group(s) sprinkler belongs to
4. Then **Update**. **Update Gateway** if prompted.

You can change any of the details except the serial number. You should not use this method to replace one IPC with another. See [Spares and replacing an IPC](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/spares.md).

**Taking an IPC out of Service.** It may be necessary to remove the device for servicing and it is likely to be out of action until it is put back on the post. Do this if you intend to put an IPC back on the post or if you want the post to remain on the map. Select the IPC, open the more menu and select **Remove from Service**. This will change the colour of the device on the main map to pink indicating that there is no device present and therefore no watering will occur at that position. The status values are not included in the overall dashboard status report. Click **Update Gateway** to synchronise your change in IMS with the site after all changes in IMS have been made.

**Removing an IPC.** To remove a device completely from the site, select the device and from the more menu click **Delete**. This will remove it from the IMS database. Click **Update Gateway** to synchronise your change in IMS with the site. This process cannot be undone. It should only be done if that post/pod is no longer needed. At present removing a device does not automatically reschedule the site to fill any gap left in watering times.

## Related

* Water-Insight videos: [Adding IPCs individually](https://youtu.be/4-YSurWUh1k) (**help.qtech.co.nz/v/ims-add-ipc**), [Importing and deploying multiple IPCs](https://youtu.be/cP2asvF_mjs) (**help.qtech.co.nz/v/ims-import-ipcs**), [Editing and removing IPCs](https://youtu.be/cAm7NrUnCWM) (**help.qtech.co.nz/v/ims-edit-ipcs**)
