> 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/ep3-programmer/sd-card-files.md).

# SD card files and formats

The folders an EP3 or INC SD card must have, and the format of the podlist, schedule and repeater files.

Schedules (and configuration files) are stored on a memory card (SD card) and loaded into an EP3 or INC memory from the card. Schedule and configuration files can be created and modified using a text editor on a workstation running Microsoft Windows. Alternatively, scheduling software such as IPC Manager from QTech or Pod Scheduler from RX Plastics, can be used to generate the required files. This page is for checking them, or making a small change by hand.

{% hint style="info" %}
**Applies to:** the Water-Insight EP3 and INC. Sample entries are provided. Never copy another site's Farm-ID or MAC addresses.
{% endhint %}

## Folders

Configuration files and schedules are stored on the memory card in a specific file and folder format. The folder names pods and schedules are explicitly required in the root folder. The SD card must contain the following folders:

| Folder        | Holds                                                                                                                                                                                |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **pods**      | This contains the IPC list usually created by IPC Scheduler Software. IPC list filenames may vary. Filenames must terminate with the ".ini" suffix.                                  |
| **schedules** | This contains the schedule sets that were created by the IPC Scheduler application. The schedules are held in a named folder.                                                        |
| **repeaters** | The repeaters folder in the root directory is only required if a repeater is in use on the site. The file contained therein must be called inc-rptrs.ini.                            |
| **firmware**  | If you ever need to upgrade firmware in your IPC or EP3 then the firmware files must be stored in a folder called firmware. The firmware file for the EP3 must be named EP3-App.bin. |

```
pods\
    pod-config.ini
schedules\
    default\
        schedule-1.ini
        schedule-2.ini
    summer\
        schedule-1.ini
repeaters\
    inc-rptrs.ini
firmware\
```

The schedule folder name is arbitrary but must be consistent with the FAT32 file system conventions and must not be longer than 8 characters.

## SD card

The EP3 and INC use an SD card interface for file transfer. The memory card should be formatted as FAT32. Typical memory device specifications are:

| Item                 | Specification                                                 |
| -------------------- | ------------------------------------------------------------- |
| Capacity             | 8GB or 16GB                                                   |
| Standard             | SDA 2.0                                                       |
| Speed class          | Class 4                                                       |
| Read and write speed | Approximate Speed (read): 10\~14 (MB/s), (write): 4\~5 (MB/s) |

Other card specifications may work but the user should verify that the EP3 can read the memory card correctly. Warning. Performance of SD cards from some manufacturers may vary. If problems occur loading files then try using a class 10 SD card instead.

## Podlist entry

Each IPC is identified in the pod-config file (aka podlist) with a record entry as follows (note sample entries are provided):

```
[pod1]
name=BK01
address=00:1E:C0:00:00:00
schedule=1
channel=1
x-coordinate=0
y-coordinate=0
mode=Mesh
sublateral=1
farmid=NN:NN
```

| Line                           | Meaning                                                                                                                                                                                                                                                                          |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `[pod1]`                       | Record identifier, one for every IPC in the file                                                                                                                                                                                                                                 |
| `name`                         | IPC friendly name, listed in the IPC list in an EP3 or INC, limited to 5 alphanumeric characters                                                                                                                                                                                 |
| `serial`                       | Unique manufacturing serial number for the IPC printed on a label inside the IPC and visible, listed in the EP3 IPC list next to the IPC name                                                                                                                                    |
| `address`                      | Radio MAC address, extracted from the QTech database for each IPC.                                                                                                                                                                                                               |
| `schedule`                     | Identity of the schedule file in the schedules folder for the schedule associated with this IPC                                                                                                                                                                                  |
| `channel`                      | Radio channel the IPC operates on. Generally, the same for each IPC on the farm.                                                                                                                                                                                                 |
| `x-coordinate`, `y-coordinate` | Post location coordinates created by IPC manager from the GPS location of the post. Used by QIMS software for map views of the system                                                                                                                                            |
| `mode`                         | Operating mode of the radio, one of three options: **mesh** for non-line of site operation over a farm, **local** for short range direct line of site operation, or **hybrid** for use with a repeater system on the site                                                        |
| `Repeater`                     | This entry is only present when Hybrid (repeater) operation is used. It signifies the identity of the repeater (indicated by a number) through which the EP3 or INC will route all radio communications.                                                                         |
| `sublateral`                   | This identifies the zone or group to which the IPC belongs. Multiple IPCs can belong to a sublateral but typically only one IPC is scheduled to water at a time in that zone, as part of the system hydraulic design                                                             |
| `farmid`                       | New feature added for IPC firmware revisions V5.00 and above. If this entry is present then the EP3 or INC (also running version 5.00 firmware or later) will transmit this value with all radio communications. V3.xx IPC firmware must not have a FarmID entry in the podlist. |
| `Type`                         | For devices other than the IPC the Type field is added. Supported device types include: Moisture: QTech WSML; Level: Water level meter (QTech ITU); Flow: Water flow meter (QTech ITU)                                                                                           |

To maintain some compatibility with V3 and V5 sites when mixed the EP3 looks at the first entry in the podlist. If that entry does not have a farmID then the broadcast timeset will be sent in the old format, thus ensuring all the V3 units get the time as before. But V5 units won't accept the old format. See [Farm-ID and IPC firmware Version 5](https://help.qtech.co.nz/water-insight/sprinkler-control/irrigation-point-controller/farm-id.md).

## Schedule file

Each IPC maintains a schedule of up to 16 operations. IPC manager creates a single file for each IPC identified by its schedule number, this is then associated with an IPC entry in the pod configuration file. The format for a schedule file is as follows:

```
[header]
id=1
cycle_length=2
n_times=2
CRC=NNNN
[time1]
day=1
start=22:36
duration=28
[time2]
day=2
start=10:39
duration=27
```

| Line                | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                | Schedule identifier used to associate a schedule with an IPC (see above)                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `cycle_length`      | Schedules are cyclic, this number represents the modulo number of days in each cycle. For version 5.00 firmware and above for the EP3, INC and IPC the cycle\_length value must be present because the date/time/cycle calculation of the system requires it.                                                                                                                                                                                                                                                                                     |
| `n_times`           | Defines the count of schedule operations in this schedule. Up to 16 operations can be defined.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `CRC`               | The file uses a calculated CRC which can be checked against the CRC of the schedule currently programmed in an IPC. Used to detect if an IPC has its correct schedule programmed. This parameter is not manually calculated. It is inserted by application scheduling software. It is not mandatory for correct IPC operation. If the CRC values do not match then the schedule times programmed in the IPC is not the same as the expected schedule loaded in the INC or EP3. Usually the schedules are re-sent to the IPC in this circumstance. |
| `[time1]` and so on | Header identifier for each of the n\_times operations the IPC will perform: the `day` of the modulo cycle\_length that the IPC turns on its valve, the `start` time of the day that the IPC turns on its valve, and the `duration` the valve stays on, when the duration is complete the valve turns off.                                                                                                                                                                                                                                         |

Each event can last a maximum of 4 hrs (240 minutes), in 1-minute increments. A cycle can have a maximum period of 16 days in 1-day increments. To schedule an IPC to be "always on" for a day would require 6 contiguous schedule events to be defined, each of 4 hours duration.

IPC operation can straddle two days as long as the schedule is defined inside the Day Cycle boundaries. However, an IPC cannot be scheduled to operate before midnight on the first day of a cycle or after midnight on the last day of a cycle because of the way a cycle repeats itself.

## Repeater file

The file format is almost identical to the IPC file format, but each entry starts `[rptr1]`, `[rptr2]` and so on, with the exception that repeaters always use mesh communications from the repeater to the destination IPC. Repeaters in V5.x systems must use a farmID.
