> 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/qtech/qtech-workbench/firmware-and-diagnostics.md).

# Update firmware and view diagnostics

Check the firmware version, update a device's firmware, and watch diagnostics.

This configuration tool provides a means of upgrading the firmware of your connected device. The exact steps differ by device, so also follow your product's own page.

{% hint style="info" %}
**Applies to:** QTech Workbench v2.x. Device-specific steps: [SMS Lite](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/workbench.md), [WP2P Digital](https://help.qtech.co.nz/qtech/wireless-remote-control/wp2p-digital/workbench.md) and [Multi Point Controller](https://help.qtech.co.nz/qtech/wireless-remote-control/multi-point-controller/update-the-firmware.md). XL4 Plus RTU steps are on the XL4 Plus RTU pages.
{% endhint %}

## Check the firmware version

Pressing the **Connect** button on the user interface will display the Overview information. Firmware Details: the current version numbers and build dates of the operating system and Bootloader, along with the MAC address of the Ethernet port.

## Update the firmware

Updated firmware will be released by QTech Data Systems from time to time and contain bug fixes and new features. Ensure the new firmware version is stored in a folder on your PC first.

{% hint style="danger" %}
**Warning:** Do not disconnect the device during the programming operation as this may render it inoperable.
{% endhint %}

1. Before updating application or bootloader firmware in the XL4 Plus it is recommended that users update the configuration file format to the latest version beforehand. If the file format requires updating then the update button will be enabled. See [Save, open and update configuration files](https://help.qtech.co.nz/qtech/qtech-workbench/configuration-files.md).
2. Firmware programming can be carried out in either online or offline mode. For devices with an old version of firmware that cannot be auto detected when pressing the **Connect** button (e.g. QDR v1.x) you must first select the device type from the **Device Type** menu.
3. Select the **Firmware Upgrade** category.
4. Press the **Browse** button to select the firmware as provided by QTech Data Systems.
5. Press the **Program** button to upgrade the firmware. The progress of the update will be shown during the reprogramming process.

![The Firmware Upgrade category, with the Browse and Program buttons](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FLtrQAKhN69wDtrQpGxxQ%2Fworkbench-firmware-upgrade.png?alt=media)

Some devices need extra steps, such as holding a button while you plug in the USB cable, or a **Start** button instead of **Program**. Check your product's page.

### XL4 Plus and XL4 RTUs

* **DATRAN XL4 Plus RTU:** The XL4 Plus only uses Workbench to update the bootloader firmware on the RTU. Application Software can be updated by using a USB memory device. See the XL4 Plus RTU pages.
* **DATRAN XL4 RTU (Q04 firmware):** Before a firmware upgrade can be carried out on a DATRAN XL4 RTU you must ensure that the I.S.P. jumpers are installed as follows.

To fit the I.S.P. jumpers on a DATRAN XL4 RTU:

1. Remove the power from the XL4 by unplugging the power connector.
2. Remove the cover of the XL4 by unscrewing the 4 retaining screws on the bottom of the case and carefully levering the case apart.
3. Locate the two Jumpers labelled I.S.P. behind the USB connector.
4. Ensure that both of these jumpers are installed.
5. Reapply the power to the XL4 by re-inserting the power plug.
6. Follow the standard firmware upgrading procedure.

{% hint style="warning" %}
**Important:** Once the firmware has been updated you must remove the ISP jumpers. Failure to do so will result in QTech Workbench not being able to reliably connect to the RTU as the RTU will reset each time you attempt to connect.
{% endhint %}

## Diagnostics

Diagnostics are used to monitor RTU activity whilst connected to Workbench, including I/O and communications activity.

* **Overview:** the RTU Status shows the minimum and maximum recorded and the current temperature as read by the on-board processor. Additionally, there is information on the supply voltage, system up-time, number of times the RTU has reset and last time of reboot. The time as reported by the RTU can be synchronised with the time on the connected PC by pressing the **Sync Clock** button. The RTU application is restarted by pressing the **Reboot** button.
* **Diagnostics** (RTUs): The Diagnostics window presents a log of system debug messages. The diagnostic configuration presents the categories of debug parameters that will be sent by the RTU and consequently shown in the diagnostics panel:
  * **Enabled:** Selecting a category as Enabled will tell the RTU to send diagnostics messages of that category until the next reboot. Enable categories if you are debugging and want them to be disabled on next reboot.
  * **Persistent:** Selecting a category as Persistent will tell the RTU that the enabling should persist across reboots. Persist them if they need to be permanently enabled through reboots.

The **Clear** button will clear the diagnostics window. The **Export** button will write the contents of the diagnostics window to \*.CSV file. The **Pause** button temporarily stops update of the diagnostics window, whilst still collecting data in the background. Pausing the screen for too long will cause diagnostic messages to be lost from the buffer, the user is warned if this occurs.

For the XL4 Plus RTU's diagnostics and data logging, see the XL4 Plus RTU pages.

## Factory defaults

{% hint style="danger" %}
**Warning:** This will clear any custom configuration that you have made to your RTU. On a WP2P, never click the **Factory Default** button unless instructed to by QTech support otherwise all settings will be removed and the address pairing with other devices will be lost.
{% endhint %}
