> 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/configuration-files.md).

# Save, open and update configuration files

Work offline, save and open configuration files, and update old files to the latest format.

The Workbench configuration tool allows you to edit and manage your device configuration without the device connected. Under the **File** menu, **Open** will allow you to browse for and load an existing configuration file, and **Save** allows the configuration to be saved to a file.

{% hint style="info" %}
**Applies to:** QTech Workbench v2.x. Updating the file format applies to devices that use JSON configuration files, such as the DATRAN XL4 Plus RTU.
{% endhint %}

## Prepare a configuration offline

1. Choose the device from the **Device Type** menu.
2. Open an existing configuration file (optional).
3. Select each category and edit the parameters.
4. Save the file with **File** > **Save**.

Next time you're online with the device, open the file and click **Write to Device**.

## Change a connected device's configuration

1. Power on the Device and click **Connect** on Workbench to connect to the device.
2. Read the configuration from the device, or open an existing configuration file.
3. Select each category and edit the parameters.
4. Write the configuration file to the device and/or save the configuration file.

Name your file with a unique and meaningful name. The configuration file extension is appended automatically.

## Configuration file types

| Type                 | Used by                                                                                                                                                        | What to know                                                                                                                                                                                                               |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Device-specific file | A configuration file specific to the device type, e.g. a `*.CDL` file will contain Cellular Data Logger device configuration, and `*.Q22` for a DATRAN XL4 RTU | To open a configuration file for a device you must first select the device type.                                                                                                                                           |
| JSON file            | Devices that use JSON formatted files, for example the DATRAN XL4 Plus RTU. JSON files are designed to support changing functionality in the device over time  | Configuration of these devices is based on a template (schema) that prescribes the features of the device, default parameters and values as well as basic data validation and range limits for values entered by the user. |

![Opening and saving a device-specific configuration file](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FveUgtoVKrGravorQXitt%2Fworkbench-file-workflow-device.png?alt=media)

![Opening and saving a JSON configuration file, which is based on its schema](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FyC4NtUeuPizsvwOsbjYs%2Fworkbench-file-workflow-json.png?alt=media)

## Update an old configuration file to the latest format

If an old configuration file (previously developed using an older version of Workbench) is opened with a newer version of Workbench, the file can be saved in either the old file format for compatibility purposes or it can be updated to the latest format (supporting new functions). This is especially useful if the firmware in, for example, an XL4 Plus RTU is upgraded and thus a new configuration file (in the latest format) is needed to enable new firmware functions in the RTU.

1. Open the file.
2. Click the **Firmware Upgrade** category in Workbench.
3. Click the **Update** button to convert the configuration to the latest format.
4. Save the file, or write it to the device.

![The Update button, when the file can be updated](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FqHNu5imObyz8JhEKp9Bc%2Fworkbench-update-file-format.png?alt=media)

After conversion (or if the configuration file already happens to be at the latest version level) the configuration **Update** button will be disabled to indicate that no further conversion of the file is possible.

![The Update button greyed out, because the file is already the latest version](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FMMRoZt6xu5Ap2PdbZNoY%2Fworkbench-file-format-latest.png?alt=media)

If Workbench says the device firmware must be updated, see [Workbench says the device firmware must be updated](https://help.qtech.co.nz/qtech/qtech-workbench/troubleshooting/firmware-must-be-updated.md).
