> 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/datran-xl4-rtu/firmware-upgrade.md).

# Firmware upgrade

Update the Q04 firmware on a DATRAN XL4 RTU with QTech Workbench and the ISP jumpers, and the firmware versions.

To update the firmware on an XL4, open the case, fit the two ISP jumpers, and program the new firmware file (.hex) with QTech Workbench over the USB cable. Then remove the ISP jumpers and restart the RTU with the factory default jumper fitted.

{% hint style="info" %}
**Applies to:** DATRAN XL4 RTU with Q04 firmware v6.x, from the XL4 RTU Firmware Upgrade Procedure. This updates the Q04 (v6) firmware. To change an XL4 into an XL4 Plus (Q04 Plus firmware, v7), see [Upgrade an XL4 to an XL4 Plus](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/upgrade-xl4-to-xl4-plus.md) instead.
{% endhint %}

## Update the firmware

1. Remove power from the XL4, unscrew the XL4 case and open it. Apply power and connect Workbench in the usual way.
2. Optionally save the XL4 configuration to file.
3. Locate and install the two ISP jumpers, labelled “ISP”, behind the USB connector.

   ![Q04 processor board: the ISP jumpers are at the lower right, and the factory default jumper (INIT) at the bottom](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fe5itk7TaG6cEHhhhiAUB%2Fxl4-q04-processor-layout.png?alt=media)
4. Navigate to "Firmware Upgrade" in Workbench.

   ![Firmware Upgrade in QTech Workbench, with Browse and Program](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FwE2EICdgFDWUgqAAbCfV%2Fxl4-workbench-firmware-upgrade.png?alt=media)
5. Click “Browse” and explore to the relevant .hex file, as provided by QTech Data Systems, and press the "Program" button. Do not disconnect the device during the programming operation as this may render it inoperable.
6. Once complete, remove the two ISP jumpers, and install the “Factory Default” jumper labelled “INIT”.
7. Repower and verify that the XL4 boots up and that Workbench can connect to it again.
8. Remove the “Factory Default” jumper labelled “INIT”.
9. Optionally load the previously saved config file.
10. Remove power and screw the XL4 case back together.

This procedure is also contained in the Help file of Workbench.

{% 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. See [The XL4 RTU restarts every time I connect](https://help.qtech.co.nz/qtech/qtech-workbench/troubleshooting/xl4-restarts-on-connect.md).
{% endhint %}

## Which firmware do I have?

Connect the device to QTech Workbench and verify the firmware version on the Overview page. XL4 RTUs run Q04 firmware version 6.x; an XL4 Plus runs Q04 Plus firmware version 7.x. You can also tell from the OK light: see [Which version do I have?](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/which-version.md)

## Firmware versions

| Version | Released  | Main changes                                                                                                                                                                                                                                                                                                                                                                     |
| ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 6.04    | June 2013 | Slave RTU polling improvements; correction of status flags, poll sequence and retries; implementation of Modbus TCP transaction identifier; correction of Modbus RTU and ASCII framing errors; correction of COS error when using dial up comms; analogue input differential calibration improvement; RTC improvements; correction of DLP value and occasional reverting to zero |
| 6.08    |           | As of XL4 firmware v6.08, a no parity and one stop bit option was introduced.                                                                                                                                                                                                                                                                                                    |

Firmware v6.04: no update to Workbench is required. We recommend that all available XL4 RTUs are upgraded to this version.

{% hint style="info" %}
The new CM910 modem is NOT backwards compatible with XL4 RTUs and other older models before then. See [CM910 Cellular Modem](https://help.qtech.co.nz/datran/datran-telemetry/cm910-cellular-modem.md).
{% endhint %}
