> 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/datran/datran-telemetry/wrtu-wireless-rtu/configure-with-workbench.md).

# Configure with Workbench

Connect Workbench, and set up the WRTU, the WDR Data Radio and a repeater, with example set-ups.

The WRTU is configured using QTech Workbench software via the USB interface. WDR Data Radios are configured by QTech but Workbench is used to configure additional parameters. The application mode is configured by QTech when the product is supplied.

{% hint style="info" %}
**Applies to:** WRTU-D, WRTU-DA and WDR Data Radio, firmware V1.04. QTech Workbench runs on Microsoft Windows 7 or later. To install it, see [Install Workbench](https://help.qtech.co.nz/qtech/qtech-workbench/install.md).
{% endhint %}

## Connect Workbench

1. Connect the USB (Type A-Mini B) cable. When connecting to the WRTU 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 WRTU. The USB driver will also create a virtual com port assignment for serial communications to the WRTU.
2. Launch Workbench. When workbench is launched it will search for enumerated com ports to automatically connect to the device.
3. Choose the device type (**Wireless RTU digital** or **Wireless RTU digital & analogue**) from the top menu.
4. Press the **Connect** button. Once connected the **Online** indicator will change from red to green, then you may proceed to configure the device. The com port is displayed next to the **Online** indicator.

If workbench does not appear to connect to the WRTU and an error message is displayed, the device may be in Data Radio Mode instead of WRTU mode, wherein it is expecting communications over USB from a host device and it is not expecting communications from Workbench. Press the Mode pushbutton switch for approximately 5s until the STAT LED flashes more quickly. This indicates that the device is now looking for workbench messages. Click connect to reattempt the connection. This mode times out after 2 mins of inactivity back to normal operating mode. If Workbench still won't connect, see [Workbench won't connect to the WRTU or WDR](https://help.qtech.co.nz/datran/datran-telemetry/wrtu-wireless-rtu/troubleshooting/workbench-will-not-connect.md).

![Workbench configuring a Wireless RTU Digital Analogue: the categories on the left, and the Wireless settings with the application mode list open](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FIKNrjB2DpOpRDkIw1mBK%2Fwrtu-workbench.png?alt=media)

## Overview

| Item             | What it is                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Firmware version | Configured using firmware upgrade process, read only for reference purposes                                              |
| MAC address      | Module Identifier unique to the device radio module, not configurable by user, for reference and servicing purposes only |
| Product ID       | QTech assigned, not configurable, identifies the hardware variant connected to Workbench                                 |
| Runtime hours    | Cumulative in-service operating time, read only                                                                          |

| Button               | What it does                                                                                                                                              |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Factory Defaults     | This feature is currently disabled to prevent inadvertently placing the device into a non-operational state. Consult QTech if necessary.                  |
| Reboot Device        | Force the device to reset. This can be done after updating a configuration and writing it to the device to cause new configuration values to take effect. |
| Read from Device     | Returns the current device settings                                                                                                                       |
| Write to Device      | Saves new configuration settings to the device.                                                                                                           |
| Connect / Disconnect | Controls Workbench communications to the device.                                                                                                          |

## WRTU settings

Wireless settings are grouped in four subcategories: application mode and general wireless settings; DATRAN™ communication settings (QCOMMS settings) for the device to act as an RTU slave device in a DATRAN™ application; general I/O settings that may be used to optimise communications and power consumption over radio; and message routing and message forwarding communications settings.

### Wireless: general

| Setting             | What it does                                                                                                                                                                                                               |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Application Mode    | To operate as a WRTU the device will be supplied by QTech with the wireless category configured with Wireless Remote Terminal Unit (QComms Slave) as the application mode.                                                 |
| Radio Mode          | Selects radio modulation technique. FSK: select FSK for compatibility with QTech radio products. LoRa: not currently supported, reserved for future use. This field is currently configured by QTech.                      |
| Serial Number       | QTech assigned, not configurable. Identifies the device to Workbench for service and repairs. Unaffected when restoring Factory defaults.                                                                                  |
| Full MAC Address    | IEEE Std-1588 EUI-48 format radio address used to identify the radio communications module (read only)                                                                                                                     |
| QTech Radio Channel | Configurable channel in the range of 1-25. Radio channels are 500 kHz wide and equally divided in the range 915 MHz – 928 MHz. In general, the WRTU radio channel must match its corresponding Data Radio channel setting. |

Care should be taken when selecting channels that might interfere with third party radios or other QTech radio products such as the Q48, WRTU or QDR. Increased radio traffic caused by multiple devices on a single channel may result in unreliable communications.

Note - the radio channel spacing for the WRTU product differs from the QDR products. If the DATRAN™ system is operating both WRTU and QDR products consult QTech for advice on which channels to select for WRTU operation.

### Wireless: WRTU (QComms) settings

| Setting            | What it does                                                                                                                                                         | Default |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Address            | DATRAN comms object address for the site (range 1-239)                                                                                                               | –       |
| Max Attempts       | Number of attempts at sending a message before entering comms failure if there is no response.                                                                       | 5       |
| Short Retry Delay  | Time between retries when sending COS to DATRAN                                                                                                                      | 5 s     |
| Long Retry Delay   | Interval when reattempting COS message after short retries fail                                                                                                      | 1 min   |
| Lead in Bytes      | Preamble prefixed to start of packet frame. Useful for transmission via repeaters that need to lock onto signal.                                                     | 8 bytes |
| Lead Out Bytes     | Bytes added at end of packet frame to signify end of message                                                                                                         | 1 byte  |
| COS Threshold      | Dead-band threshold for analogue inputs expressed as an A-D converter count. The count must change by more than this value to trigger a COS message from the device. | 1024    |
| Pulse Count Enable | Defines a digital input for use as a pulse counter. Has the effect of disabling the COS for this input. Set to true when used as a pulse counter, for each input.    | False   |

### Wireless: I/O configuration

| Setting                 | What it does                                                                                                                                                                                                            | Default |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Power Saving Mode       | The device will turn off the power supply to the I/O section when the digital inputs and the analogue I/O are not being updated. The analogue output is not used in this mode. Set to true to enable power saving mode. | False   |
| Digital Sampling Period | The rate at which digital inputs and analogue I/O are sampled/updated.                                                                                                                                                  | 100 ms  |

### Wireless: routing (COMMS) settings

QComms does not support packet forwarding over repeater devices. This functionality is provided by a network layer in the message protocol to route QComms payload messages to the desired destination. QComms does provide the address of the destination RTU address. This value is combined with a QTech allocated and programmed Customer number to provide a unique radio address for WRTU endpoints.

| Setting             | What it does                                                                                                                                                                                                                                                                 |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Radio Address       | Unique radio identifier of the Data Radio in the form nnn.nnn.mmm.mmm, where nnn.nnn is derived automatically from the Customer number and mmm.mmm is the device address of the Data Radio. This field is automatically calculated.                                          |
| Customer Number     | Unique number programmed by QTech into the WRTU to identify the customer and thereby provide a unique message protocol address for the system. Read only.                                                                                                                    |
| Device Address      | In WRTU mode this is endpoint address of the device as defined by the QComms address in the WRTU-QComms settings group. Ensure that the device address is set to the same value. Avoid using 0 as a device address.                                                          |
| Destination Address | This is the address to which the WRTU will send messages. Typically, it will be the device address of the corresponding Data Radio connected to the DATRAN base station, although for direct point to point communications the broadcast address (65535) could also be used. |
| Repeater Address    | If a repeater is used in the system this is the device address of the repeater to which messages will be forwarded. If a repeater is not used the value can be left as zero. Avoid using 0 as a device address for other devices in the system.                              |

### Input/Output

Digital I/O and Analogue I/O values are displayed and controlled in this category depending on the device type (Digital or Digital-Analogue selected).

* If a device is connected to Workbench, changing the input state will show "1" for On (asserted) or "0" for Off (negated).
* Digital output states can be toggled by clicking the toggle button adjacent to the output.
* Analogue input values are converted to a 16 bit number (0-65535) and can be displayed either in RAW form (the number) or as a percentage of full scale. Note - The jumper settings (voltage or current) on the hardware are not available to Workbench so units of measurement (volts, amps) are not provided.
* Analogue outputs can be driven to a set point either as a raw value (0-65535) or as a percentage. Workbench will read back the current analogue level.

## WDR Data Radio settings

The WDR passes data transparently via USB interface to the radio interface. The Input/Output category is not used when the device is configured for Data Radio mode.

1. Select a radio channel that matches the WRTU endpoint.
2. Leave the protocol addressing field set to **QComms**, other protocols are not currently supported.
3. Set the routing settings:

| Setting             | What it does                                                                                                                                                                                                                                    |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Radio Address       | Unique radio identifier of the WDR Data Radio in the form nnn.nnn.mmm.mmm, where nnn.nnn is derived automatically from the Customer number and mmm.mmm is the device address of the Data Radio. This field is automatically calculated.         |
| Customer Number     | Unique number programmed by QTech into the WRTU to identify the customer and thereby provide a unique radio address for the system. Read only.                                                                                                  |
| Device Address      | In Data Radio mode this will be address of the Data Radio. Avoid using 0 as a device address.                                                                                                                                                   |
| Broadcast           | If set to true, the device will broadcast messages to all WRTUs in direct radio range. Only the WRTU with a matching address in the QComms message will respond                                                                                 |
| Destination Address | If Broadcast is set to false, this field will be shown and holds the device address of the destination WRTU.                                                                                                                                    |
| Repeater Address    | If a repeater is used in the system this is the device address of the repeater to which messages will be forwarded. If a repeater is not used the value can be left as zero. Avoid using 0 as a device address for other devices in the system. |

The default over the air data rate is configured as 9600 bps. Other data rates are programmable by QTech on request. Higher data rates may result in shorter range or unreliable communications and are not recommended.

## Repeater settings

Messages received by the repeater with a matching link source address will be forwarded to the destination address of the message. The Input/Output category is not used when the device is configured for repeater mode. In repeater mode the **Device Address** will be the address of the repeater. Other devices wishing to forward messages via the repeater must use this address as their designated repeater address. For a repeater, REPT – remains OFF.

![Message forwarding through a repeater: the message source and destination stay the same, while the link addresses change for each hop](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FvXyBVUe4pga1FlbvssLb%2Fwrtu-repeater-forwarding.png?alt=media)

## Example set-ups

For the simplest set-up, one WDR talking directly to its WRTUs, see [Set up and check it is working](https://help.qtech.co.nz/datran/datran-telemetry/wrtu-wireless-rtu/set-up-and-check.md).

### WRTUs through a repeater

In this scenario the Data Radio forwards all messages to the repeater which broadcasts them. The WRTU with a matching QComms (device) address will respond. All WRTUs in this configuration communicate to the repeater.

| Setting          | WDR Data Radio | Repeater | WRTUs |
| ---------------- | -------------- | -------- | ----- |
| Application mode | Data radio     | Repeater | WRTU  |
| REPT switch      |                | Off      | On    |

### A WRTU that also relays for another WRTU

In this scenario the repeater site has I/O requirements, for example measuring tank float levels. The WRTU configured as below provides the I/O as well as relaying communications to remote WRTUs. Note - This configuration is subtly different to using a WRTU configured as a repeater. The destination WRTU is configured for no destination address.

| Setting             | WDR Data Radio | Middle WRTU (relay with I/O) | Far WRTU |
| ------------------- | -------------- | ---------------------------- | -------- |
| Application mode    | Data radio     | WRTU                         | WRTU     |
| Destination address |                |                              | None     |
