> 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/gateway-repeaters-sensors.md).

# Gateway, repeater and sensor settings

For installers. Change IMS Gateway settings and send gateway commands, add and configure repeaters, and add sensors in IMS.

This page covers the devices on a farm other than IPCs: the IMS Gateway, IPC repeaters and sensors.

{% hint style="info" %}
**Applies to:** installers using cloud IMS. Consult Water-Insight before adjusting the **Network** setting.
{% endhint %}

## Gateway settings

1. Open the **Farm Settings** menu and select **Manage Assets** > **Gateways**.
2. Open the **Gateway Settings** menu and select **Edit**.
3. Edit desired settings. Type and Serial number should not be changed.
4. Select **Update**.
5. Any changes now need to be sent to the IMS gateway hardware. Open the **Gateway Settings** menu > **Update Settings**.

| Setting                  | What it does                                                                                                                                                                                                                                                                                                             |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Network**              | How the radio network behaves for each transaction. Number of communication attempts and how long to wait for a reply (TTL). **Simple** – 3 attempts, 4 TTL. **Compact** – 3 attempts, 8 TTL. **Extensive** – 5 attempts, 16 TTL. **Complex** – 3 attempts, 16 TTL. Consult Water-Insight before adjusting this setting. |
| **Charge Threshold (%)** | If an IPC battery charge falls below this setting it will show as **Low Battery**. The default is 50%.                                                                                                                                                                                                                   |
| **Clock Threshold (s)**  | IPC times more than this number of seconds different to the gateway time will show as a **Clock Error** (default 60s).                                                                                                                                                                                                   |
| **Status Period (h)**    | How often the status is queried from all IPCs on the site                                                                                                                                                                                                                                                                |
| **Timeset Period (h)**   | How often IPC time is synchronised with the gateway time                                                                                                                                                                                                                                                                 |
| **Location**             | Click on map to set                                                                                                                                                                                                                                                                                                      |

Units will update as a periodic status response is received, this can be adjusted to be more frequently if the site is busy (in summer say) or infrequently in winter when watering does not normally occur. Excessive radio communications cause the single biggest drain on the battery.

## Gateway commands

Open the gateway's **Gateway Settings** menu.

| Command                | What it does                                                                                                                           |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Start Comms**        | Starts gateway communication cycle. Any previous unsuccessful communication tasks to IPCs are reattempted                              |
| **Stop Comms**         | Stops gateway communication cycle and clears all stored communication tasks. Any communication task in progress will run to completion |
| **Timeset**            | Sends a command to synchronise IPC time with gateway time                                                                              |
| **Request All Status** | Sends a status request to all IPCs on site                                                                                             |
| **Send All Schedules** | Sends the currently active schedule to all IPCs on site                                                                                |
| **Update Settings**    | Send gateway settings to gateway                                                                                                       |
| **Update Device List** | Update gateway with current device list (podlist) from IMS and save to SD card                                                         |
| **Backup Device List** | Save backup of device list to SD card                                                                                                  |

## Repeaters

Repeaters provide an option when obstacles or long distances prevent line of sight from the IMS gateway to IPCs. The repeater(s) must be within local communication range of the IMS gateway and repeater to repeater communication is not supported.

**Add a repeater:**

1. Open the **Farm Settings** menu and select **Manage Assets** > **Repeaters**.
2. Select **Add New Repeater**.
3. Give the repeater a **Name**, e.g. RPTR1 (5 characters or less). Enter the **serial number** of the repeater. The MAC Address will be automatically populated.
4. Enter the **Farm ID** and **Channel** for the site. Select the location of the repeater on the map.
5. Select **Create** to add the device to IMS.

The repeater will need to be programmed with the correct channel and farm ID for the site.

**Choose which IPCs use it:**

1. Select **Manage Assets** > **Repeaters**. Open the Repeater Settings menu > **Edit**.
2. Select the **Device or Group** drop down menu. Select all groups or devices that will be communicating via this repeater. Select **Update**.
3. Select **Update Gateway**.

## Sensors

IMS offers several sensor options including tank level, water flow, soil moisture and temperature. The general process is described here, refer to [www.waterinsight.co.nz](http://www.waterinsight.co.nz) for individual manuals with specifics on installing and setting up sensor options in IMS.

**Add a sensor:**

1. Open the **Farm Settings** menu and select **Manage Assets** > **Sensors**.
2. Select **Add New Sensor**.
3. Give the sensor a **Name**, e.g. Top Tank (must be 15 characters or less). Enter the **serial number** of the sensor. Select the **Gateway** the sensor will communicate with (INC or LoRa). Select the **Sensor Type**, e.g. Level-MM. Enter any other required information, e.g. tank details for a level sensor. Select the location of the sensor on the map. Select **Create** to add the device to IMS.
4. If prompted, select **Update Gateway**.

**Check a sensor's readings:** select **Manage Assets** > **Sensors**. To edit sensor details, select the icon. To view the 3 most recent readings from a sensor, select the status heartbeat icon. Data displayed by IMS refreshes every 10s (actual values dependent on how often sensor is transmitting data).

## Related

* [IMS Gateway](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims-gateway.md)
* [Install the IMS Sensor Gateway](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims-gateway/install-sensor-gateway.md), for tank level monitors
* The IMS gateway has 6 x digital inputs and 6 x digital outputs – see [Lights, inputs, outputs and files](https://help.qtech.co.nz/water-insight/sprinkler-control/irrigation-network-controller/reference.md) on the INC pages for details. The displayed name for all I/O can be edited as desired in IMS. Input states are displayed and alerts can be configured for on, off or change of state conditions. Outputs can be manually turned on or off from IMS.
