> 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/sensor-technology/wireless-soil-moisture-logger/collect-logs.md).

# Collect logs with the EP3

Collect logs from an FSK WSML with an EP3, take quick readings, and chart the logs in SM Analyser.

Get logs will trigger the EP3 to read the saved measurements from the WSML and save them into a file. Once the data logs have been retrieved and stored on the SD Card the card can be removed and analysed using the Analyser software on a PC.

{% hint style="info" %}
**Applies to:** WSMLs on FSK firmware, with an EP3 on firmware V5.04 or later. From the QIMS WSML User Guide V2 (October 2021). LoRa WSMLs: the WSML connects to the IMS system by transmitting the soil moisture data to the IMS sensor gateway device on the site.
{% endhint %}

## Add the WSML to the podlist

To communicate with a WSML using the EP3, the EP3 must load an IPC configuration file (typically called a podlist) with a configuration definition for the logger. The podlist is stored on an SD Card and loaded (as one loads an IPC configuration) into the EP3. A typical pod entry looks like:

```
[pod12]
name = WSML2
serial = 1005
address = 00:00:00:00:00:05
channel = 10
type = moisture
```

The serial number must match the serial number on the WSML device and supplied with the product packaging. The MAC address (or radio address) is also supplied with the product packaging. The radio channel assigned by QTech is usually pre-programmed and will be noted on the packaging. The configuration file is typically given a filename such as “pod-config.ini” the file type must be “.ini” but other filenames may be used. It must be saved to an SD Card. A folder must be created on the card named “pods”. The file must be stored in this folder. Note. The SD Card must be formatted for the FAT32 file system.

1. Insert the SD card containing the pod configuration file (e.g. pod-config.ini) in a folder named pods into the EP3.
2. From the main menu on the EP3 tap **IPC Files**. The file should be listed.
3. Select the file using the up/down buttons. It will be underlined when selected.
4. Tap **load** to upload the configuration to the EP3.

## Connect to the WSML

The WSML is designed to assume a low power state when not actively measuring. However, to support radio communications it listens for communications from the EP3. In Low Power Duty Cycling Mode the WSML listens for 50 ms every 10 seconds. On receiving a message destined for itself it then goes into an active mode. When Active it will timeout after 30 seconds of inactivity.

1. From the Main menu on the EP3 tap **settings** then tap **data**.
2. If no devices are listed tap the **scan** button to search for loggers in range.
3. Once a device is listed, use the up/down buttons to scroll to the desired device then tap **select** to connect to it.

| Button         | What it does                                                                                                                                                                                                                                                                                                                  |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Get Status** | Returns the WSML device status and properties. It is recommended that Get Status be issued to the device first to establish a working connection. The results will show the device firmware version, the current date and time on the device and the number of records it has logged but have yet to be retrieved by the EP3. |
| **Get Logs**   | Retrieves log records and saves to the SD card. It is important to have an SD card inserted at this point. If a card is not present then the EP3 will not attempt to read the records.                                                                                                                                        |
| **Get Values** | Force the WSML to carry out a sensor measurement                                                                                                                                                                                                                                                                              |
| **Set Time**   | Synchronise the time on the WSML to the EP3 clock. Before setting the WSML clock, ensure that the EP3 time and date is correct.                                                                                                                                                                                               |

The file name is created as a combination of the EP3 date and time, along with the WSML name (taken from the IPC configuration file).

## Quick readings

The **Get values** command returns the current state of the sensors:

* Soil temperature is measured in Degree C. Soil temperature in New Zealand at about 1m is typically 12-15 Degrees.
* Soil moisture is measured in kPa in the range 0-200 kPa. Low pressure values indicate very wet conditions, high values very dry conditions. A rule of thumb is approximately 50 kPa represents about 25 mm of plant available water for shallow rooted crops in clay loam soils at about 200 mm probe depth. The value will increase to about 70 kPa if the probe is 400 mm deep.
* Rainfall is measured in mm. This shows the rain accumulated since the last measurement. Rainfall is measured every hour and the value reset before the next accumulation period starts. The rainfall counter is not reset as part of an “on-demand” measurement; the value displayed is simply the rainfall since the previous periodic sampling event.

## Chart the logs in SM Analyser

The Soil Moisture Analyser Client application can be installed onto a Microsoft Windows compatible pc running Windows 7 or later. Ensure that Microsoft .NET framework V4.0 or later is installed before installing the software. Contact QTech for a copy of the installer application.

1. After installation the user must create a site by entering a name in the Site dialogue and selecting a suitable soil type that most closely represents the soil type where the WSML probes are located.
2. Insert the SD card containing the log files into the card slot in the PC. If your PC does not provide an SD Card interface connector contact QTech for a SD Card – USB adaptor.
3. Click the **load files** button on the analyser software and navigate to the external drive folder for the SD Card. Select the log file which will be a timestamped comma separated variable (.CSV) file and click the open button on the window. This will import and save the logs.
4. The date range for the display of log information can be selected using the period control or by nominating the start and stop dates for display. For systems with multiple probes the display plots can be turned on or off by selecting the checkboxes in the **Conditions** dialogue.

An estimate of the water depletion based on the soil type is provided in the **Water Depletion** dialogue. A red triangle pointing up indicates the ground is getting drier and green triangle pointing down indicates getting wetter.

The coloured bands on the main graph are calibrated by the user over time, adjusted to the site conditions to indicate normal, stressed and saturated water thresholds. The green band indicates optimal water content. Once the normal variations of the soil probes are established over time (a month or two in different soil conditions), then the threshold levels can be adjusted to best describe the ground conditions. The user should also account for root levels in the ground and overall pasture performance when calibrating the site.

When reading the graph:

* Since the probes measure water tension, a high pressure indicates high tension or a lack of water in the ground, vice versa a low pressure.
* In clay the deeper probe is likely to track the shallower probe but with some lag as it takes time for the water to seep down.
* The soil moisture plot is also a function of soil temperature so variations in soil temperature are reflected as variations in soil moisture. Variations in temperature can be caused by day/night conditions sensed by the soil temperature thermocouple.
