> 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/farm-id.md).

# Farm-ID and IPC firmware Version 5

What a Farm-ID is, why Version 5 IPCs need one, how to get one, and how V3 and V5 devices work together on a mixed site.

The FarmID is a unique number assigned, issued and managed by QTech. It uniquely identifies sets of IPCs deployed in a specified area of land (block) and it is issued to the farmer when new IPCs are deployed to the block. IPCs will not communicate to each other or with an EP3 or INC unless the FarmID is correctly set. V5 introduced a new method of ensuring adjacent farms on the same radio channel could not interfere, by using FarmID.

{% hint style="info" %}
**Applies to:** Version 5.00 of the system (including INC V5.00, EP3 V5.00 and IPC V5.00), which introduces the concept of a Farm identifier (FarmID). Smaller sites are managed using solely an EP3, whereas larger sites can include an INC and the IMS software. Legacy IPCs are commonly identified by the firmware version they are running which is V3. Firmware version V3.14 was the last version issued in 2017. Legacy systems do not use a FarmID to uniquely identify the farm block.
{% endhint %}

### Do I need a Farm-ID?

If you purchase an IPC that is installed with version 5 (V5) IPC firmware or you upgrade a version 3 (V3) IPC to version 5 then YES you must configure the unit with a FarmID. This applies also for sites that will run a mixture of V3 and V5 firmware such as sites that are in a transitional state from V3 to V5.

In version 5 of the system, once upgraded, IPCs without a FarmID configured will not communicate to an EP3. You will not be able to schedule a V5 IPC without a FarmID being programmed first and foremost.

Version 5.01 or above firmware is a requirement for an IMS installation. All IPCs on the site must be upgraded (if required) prior to IMS installation/commissioning. See [Plan an IMS installation](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/plan.md).

### What a Farm-ID looks like

The FarmID is a hexadecimal number in the form NN:NN. Water-Insight will maintain a database of IDs and where they are used.

| Farm-ID an IPC reports | Meaning                                                                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------------------- |
| none                   | The value has not been programmed and normal communications is not facilitated.                          |
| 01:01                  | This FarmID is reserved for temporary use in configuring systems and must be replaced by a valid FarmID. |
| Your farm's NN:NN      | Set correctly                                                                                            |

You cannot mix FarmIDs (use more than 1) within a block because this will degrade the effectiveness of the mesh radio communications system that Water-Insight employ to route radio traffic over wide ranging terrain and IPC topography.

### How to get a Farm-ID

You need to apply to Water-Insight. You can do this via your agent or directly. In either case you must complete a form which your agent or Water-Insight can provide. If you need the form email us, it is opened using Excel but if you don't have Excel we can arrange to provide it in form that you can fill in. When you contact Water-Insight to obtain the number we will ask you to supply some information including:

* The Name of the Farm (if any)
* The Farm Owners Name (first, last)
* The Farm Managers name (or the person most likely to be contacted for day to day operational matters)
* A contact number (preferably cell phone) for the Farm Manager
* A contact email address for the farm manager.
* The nearest road which accesses the block, preferably with a street address (if any)
* the Fonterra number, if any. It often marks the same access point as the dairy shed.
* A GPS location for the block. Water-Insight can assist with this.

This will go into the Water-Insight database and the FarmID will be generated and sent to the Farm Manager contact. It will be handy to keep a record of this but if you lose it then Water-Insight can look it up against the details supplied above.

Water-Insight can programme the ID on behalf of the farmer for new production or issue the ID to farmers or installer, so that units on their site can be configured.

### The podlist and Farm-ID

Currently every IPC in a block is defined in a file called the pod list (often written as pod-config.ini) which is loaded into an EP3 or INC to communicate with the device. V5 units in the podlist MUST have a FarmID. V3 units in the podlist MUST NOT have a FarmID.

As you add V5 units to your system an additional line is required for each entry, which specifies the FarmID for a V5 unit. Your scheduling software can do this automatically but if you manually edit your podlist then you have to add the line entry for the specific IPC (e.g. `FarmID=NN:NN`). Consult your Agent or Water-Insight if in doubt. See [SD card files and formats](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/sd-card-files.md).

### The broadcast header

The broadcast header is used to communicate with IPCs which have not had their FarmID set or have a FarmID which is unknown. It enables an EP3 to communicate with an IPC in order to set the correct FarmID as prescribed in the config file entry in the podlist for the IPC. In IMS Connect, you must poll with the Broadcast header turned on until you have set the IPC with the new FarmID allocated for the Site.

In the table below YES means communications will occur:

| Podlist entry for the IPC    | Broadcast header off: V3 IPC | Broadcast header off: V5 IPC | Broadcast header on: V3 IPC | Broadcast header on: V5 IPC |
| ---------------------------- | ---------------------------- | ---------------------------- | --------------------------- | --------------------------- |
| No Farm-ID                   | Yes                          | No                           | No                          | Yes                         |
| Farm-ID matches the IPC      | No                           | Yes                          | No                          | Yes                         |
| Farm-ID differs from the IPC | No                           | No                           | No                          | Yes                         |

* The "use broadcast header" feature, if needed, must be set each time you turn on the EP3 before attempting communications to an unprogrammed IPC.
* The "use broadcast header" feature is not required once you have programmed the FarmID in a unit.
* You cannot communicate to units on older firmware with the setting selected (checked).

### Mixed V3 and V5 sites

Mixed sites are sites that will run a mixture of V3 and V5 firmware such as sites that are in a transitional state from V3 to V5.

* **Use V5 handhelds and INC.** Before you do anything else, if you have a V5 IPC on your site, then you must upgrade the firmware in your EP3 (and INC if you have one) to V5.
* **Send the time and schedules from a V5 EP3.** V3 and V5 systems use a slightly different way of managing the time and the calculation of a signature for each schedule. V5 systems automatically determine the day of a scheduling cycle whereas this had to be set manually in a V3 EP3. Sometimes an EP3 will say the schedule is wrong when in fact the schedule in the IPC has not changed or is known to be good. To avoid this inconsistency, make sure you use a V5 EP3 to send the time and the schedule to each IPC even on a mixed (V3+V5) site. If in doubt schedule your site with a V5 EP3.
* **Broadcast time sets.** The INC makes decisions as to which protocol to use based on the configuration entry of the first pod in the podlist (usually called `[pod1]`). If this pod has a FarmID then all timeset messages will go out with the FarmID and any units on old firmware will not receive them. To avoid this, leave the first pod entry without a farmID. If in doubt upgrade pod1 on a site last. The broadcast time can be set to units on older firmware by deselecting the **use FarmID** checkbox. Conversely the newer protocol for V5 units can use the broadcast timeset by selecting the **use FarmID** option.

### Large clock errors

On V3 systems, if adjacent farms use the same radio channel or are within 3 km of each other, there is the potential for a timeset to propagate from one site to the other. If one site is on daylight savings, for example and the other is on standard time this can result in abnormal operations as some IPCs will run at unexpected times (or an hour later say). To resolve this FarmID was introduced but large clock errors can still occur for the following reasons:

* The site also uses an INC and the EP3 time was not synchronised to the INC time before adjusting times on IPCs with an EP3. Always remember to set the time on the EP3 to the same as the INC before doing field work.
* the IPC has another issue such as very low battery or poor location and is not receiving timesets.
* The clock on the IPC can drift over time with temperature and if it doesn't receive a timeset it can drift by more than a minute and eventually become a problem. Regular timeset distribution is recommended (at least once per month).

### Next

* [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)
