> 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/septic-tank-level-monitor/workbench.md).

# Configure and update with Workbench

Power an STLM unit safely for configuration, connect QTech Workbench, change its settings and update its firmware.

Procedures for the configuration of the QTech Septic Tank Level Monitor (STLM), and the STLM firmware upgrade process.

{% hint style="info" %}
**Applies to:** STLM Rev B hardware. From the STLM Workbench Configuration Guide V02 (April 2024). Configuration values for Manufacture, changes are only made by QTech. Personalising the STLM for a Customer, changes can be made by Installers or QTech.
{% endhint %}

{% hint style="danger" %}
Removing the lid of the Tank unit will expose lethal voltages to the installer. Always isolate the mains power from the unit before undertaking and programming and configuration changes. See [Safety and handling](https://help.qtech.co.nz/water-insight/septic-tank-level-monitor/safety.md).
{% endhint %}

## What you need

* QTech Workbench Software V2.13 or later installed on your PC or laptop (running Microsoft Windows). QTech Workbench runs on Microsoft Windows 10 or later on a PC or Laptop. The software uses Microsoft .NET V4.0 Framework. See [QTech Workbench](https://help.qtech.co.nz/qtech/qtech-workbench.md).
* Type (A) – (Mini B) USB cable (max 2m).
* 12V dc Power supply (The plug pack from the Remote unit can be used).
* STLM Power Supply Adaptor Cable. This is required to bypass the onboard mains supplied power regulator. Contact QTech for supply.

When connecting to the Tank or Remote unit for the first time using Workbench, the Microsoft Windows operating system will attempt to install the correct USB driver. Ensure that the device driver is completely installed before attempting to configure the STLM.

## Power the remote unit

1. Remove the case lid.
2. Insert the adaptor plug into the jack socket on the circuit board.
3. Plug the mains adaptor to a switched mains wall socket and turn it on.
4. The heartbeat led will flash when the device is powered up.
5. Proceed with connecting the STLM unit to Workbench and configuration.
6. On completion:
   * Turn off the power.
   * Remove the USB cable.
   * Replace the case lid and turn on the mains power.
   * Verify that the indicators on the display board are working.

## Power the tank unit

1. Isolate the mains supply to the unit!
2. Remove the case lid. Check that the heartbeat led is not flashing. Do not proceed if it is.
3. Proceed only if the unit is correctly jumper configured for a motor ball valve drive then: disconnect the motor ball drive from the device by removing all PIDG crimp connectors from spades "A" through "D", taking note of where each were connected.
4. Connect the STLM Power Supply Adaptor Cable as follows:
   * Connect the Red Wire (+12 V dc) to Spade "C" on the valve drive outputs. This connects to the internal 12V supply rail.
   * Connect the Black Wire (0V dc) to Spade "D" on the valve drive outputs. This connects to the internal GND 0V rail.
   * Warning. Do not get these connections the wrong way around permanent damage to the unit may occur.
5. Remove the 12 V mains adaptor from the Remote Unit and plug it into the corresponding jack socket in the STLM Power Supply Adaptor Cable.
6. Plug in the 12V mains adaptor to a mains outlet socket and turn it on. The heartbeat led will flash when the device is powered up.
7. Proceed with connecting the STLM unit to Workbench and configuration.
8. On completion:
   * Turn off the power.
   * Remove the STLM Power Supply Adaptor Cable and USB cable.
   * Reconnect the valve drive PIDG crimp connectors per step 3, to reenable the valve drive.
   * Replace the case lid and turn on the mains power.
   * Verify that the indicators on the display board are working.

{% hint style="warning" %}

* DO NOT FIT THE ADAPTOR CABLE CONNECTIONS THE WRONG WAY AROUND OR PERMANENT DAMAGE TO THE UNIT MAY OCCUR.
* IF THE HEARTBEAT LED DOES NOT FLASH, IMMEDIATELY TURN OFF ALL POWER AND CHECK ALL CONNECTIONS. IF THIS OCCURS, RECORD THE EVENT FOR FUTURE SERVICE NEEDS.
* IF THE UNIT HAS THE VALVE DRIVE OUTPUTS CONFIGURED FOR USE WITH AN EXTERNAL SOLENOID OR FOR DRY CONTACT OUTPUTS, THEN IT MUST BE RECONFIGURED FOR A MOTOR BALL VALVE BEFORE ATTEMPTING TO ATTACH THE STLM POWER SUPPLY ADAPTOR CABLE. DO NOT FORGET TO REVERT TO THE REQUIRED VALVE CONFIGURATION AFTER COMPLETING THE WORK.
  {% endhint %}

## Connect

1. Launch Workbench.
2. Turn on the STLM device (see above).
3. Connect the USB cable from the PC (or Laptop) to the STLM Device (Tank or Remote).
4. Press the programming PB switch on the board (PB1) for about 0.5s, the processor heartbeat led will change to a continuous flashing indication (instead of the usual pulse heartbeat).
5. Choose the device type (Septic Tank Level Monitor) from the top menu and click the CONNECT button in Workbench, the online indicator will change to green when connected.

If communications cannot be established check that the com port that Workbench is trying to open, matches the com port displayed in the Windows device manager. Also try uninstalling the USB driver and com port, unplug the device and then re-insert the plug and allow the operating system to fully install a new driver.

| Button               | What it does                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Read from Device** | Retrieves the current settings from the device                                                                                                                                                                                                                                                                                                                                                  |
| **Write to device**  | Writes new configuration settings to the device.                                                                                                                                                                                                                                                                                                                                                |
| **Reboot Device**    | Restarts the Processor on the Device, the same as repowering it.                                                                                                                                                                                                                                                                                                                                |
| **Factory Defaults** | Restores the device to factory default settings. Clicking the factory defaults button will erase the entire device configuration memory and revert the device to the standard configuration. Other settings are affected by setting Factory defaults including radio settings, therefore this button should not be used by installers and may even be disabled in public versions of Workbench. |

## Settings

Category – Wireless: This Category provides application specific Settings for the STLM editable by the public unless specified otherwise. Installers should edit this information to customise the product.

| Item                             | Description                                                                  | Editable | Value                     |
| -------------------------------- | ---------------------------------------------------------------------------- | -------- | ------------------------- |
| **Application Mode**             | Designates the function of the Device (Tank unit or Remote Unit)             | N        | Tank/Remote               |
| **Serial Number**                | Product Electronic Serial Number                                             | N        |                           |
| **QTech Radio Channel**          | Reports DIP Switch setting on the circuit Board                              | N        | 0-15                      |
| **Input Debouncing**             | Input Debounce Time for switch debounce                                      | Y        | 0-60 s (def. 100 ms)      |
| **Water Sensor default State**   | Input Contact Default State (normally closed or open)                        | Y        | Open/closed def. NC       |
| **Air Sensor Default State**     | Input Contact Default State (normally closed or open)                        | Y        | Open/closed def NC.       |
| **Valve Operation Interval**     | Periodic Valve operating Interval                                            | Y        | 1 to 48 Hr (def. 24 Hr)   |
| **Valve Operation Duration**     | Valve operating on time                                                      | Y        | 2 to 30 min (def. 20 min) |
| **High water Alarm Level Delay** | Delay after signal asserted before Indicated at Remote                       | Y        | 0 to 60 min (def. 30 min) |
| **Low Air Pressure Alarm Delay** | Delay after signal asserted before Indicated at Remote                       | Y        | 0 to 60 min (def. 0 min)  |
| **Link Loss Alarm Delay**        | Delay after signal asserted before Indicated at Remote                       | Y        | 0 to 60 min (def. 0 min)  |
| **Alarm Mute Time**              | Audible Alarm mute active time                                               | Y        | 1 to 48 Hr (def. 24 Hr)   |
| **Radio Address**                | Combined Customer Number (Vendor ID) Site ID and Device ID (vvv.vvv.sss.ddd) | N        | 0.0.0.0 (def 128.0.0.x)   |
| **Device Address**               | This Device ID (Tank = 1, Remote = 2)                                        | N        | 1-2                       |
| **Site ID**                      | Site locale Identifier                                                       | Y        | 0-255 (def. 0)            |

Input Debouncing - is designed to remove any switch contact chatter on inputs. However, this setting can be increased if for example an input must be active for a given period (e.g. 10s) in order to be considered asserted.

Alarm delays – Alarm indications are apparent immediately on the Tank unit but indication can be deferred on the Remote unit by a delay time in order to temporarily mask short term problems from users, in case the issue resolves quickly and the alarm returns to normal. Whilst only the High-water level alarm has a configured delay by default, the feature can be extended to the other indicators if desired.

Category – Overview: This Section provides information on the Product system information. Installers can refer to this information when reporting a fault to QTech. Firmware version: Configured using firmware upgrade process, read reference purposes only. Runtime Hours: Cumulative operating time powered up (can be reset). Have the firmware version and serial number ready if you report a fault.

Category – Input/Output: This Section provides information on the state of the Tank Inputs when the Tank unit is connected to workbench while it is operating. Installers can use this information when testing the product. For the High Water Level, Low Air Pressure and Aux inputs, the value is 1 = Alarm asserted (on) or 0 = alarm negated (off). The Aux input is currently reserved for QTech Factory Test purposes.

## Update the firmware

The STLM device emulates a mass storage device (just like a memory stick which is enumerated with a drive letter) so that firmware upgrades are essentially copying the firmware file (e.g. new\_firmware.bin) from your PC to the STLM device, then eject the device then restart repower the unit to run the new firmware.

1. Turn off the Power to the STLM unit, do not click the Connect button in workbench. If the USB cable is inserted then remove it.
2. Press and hold the programming PB switch (PB1)
3. Insert the USB cable to the STLM Device, release the PB1 button when the Heartbeat Led lights up
4. Wait for the PC to install any drivers it needs to use the USB interface, make sure your PC is connected to the internet the first time you do this
5. Tick the Eject tickbox to disconnect the device when finished programming
6. Click the start button
7. Choose the file folder location of the new firmware on your PC
8. Click on the new firmware filename to Select the file.
9. Click open to start programming
10. Once completed, remove the USB cable and repower the STLM unit.
