> 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/xl4-connect/troubleshooting.md).

# Troubleshooting

Fix XL4-Connect connection and download problems, check bad blocks, and use the NAND flash tools.

Find the problem you're seeing with XL4-Connect.

{% hint style="info" %}
**Applies to:** XL4-Connect V1.00, with a DATRAN XL4 Plus RTU. From the XL4-Connect User Guide v01.
{% endhint %}

## I can't connect to the RTU

1. **Check the cable.** The RTU does not currently support Auto MDI-X (Automatic Medium-Dependent Interface Crossover) to detect cable type so Ethernet patch cables cannot be plugged directly from your laptop to the Ethernet (LAN) connector on the RTU. However, crossover patch cables can be used. See [Install and connect](https://help.qtech.co.nz/datran/datran-telemetry/xl4-connect/install-and-connect.md#connect-your-pc-to-the-rtu).
2. **Ping the RTU**, if the ping fails then you cannot use XL4-Connect remotely but you can still connect locally.
3. **Working remotely?** RTU must be “pingable” over the DATRAN comms channel.

## The archive log isn't there

To use the Archive log, your RTU must be upgraded to V7.19 firmware or later, have both the chip fitted and have the Archiving logging feature enabled, provided by a license key for the feature on your RTU. See [Set up the archive log](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/data-logging/archive-log.md).

## An archive download fails or stops

* Clicking the **Resume** button will attempt to pick up the download where it last left off. Alternatively, you can click **Clear** then start again.
* The request block size is also modified to suit the relative reliability communications channel. Adjust the Archive Download Auto Retries according to the reliability of the comms channel. See [Download the archive log](https://help.qtech.co.nz/datran/datran-telemetry/xl4-connect/download-the-archive-log.md#settings).
* The RTU log download can be cancelled by clicking the cancel button but it cannot be resumed and the whole log must be re-downloaded.

## The archive capacity is lower than it should be, or the backup has stopped

Bad Block Count is a measure of the number of damaged memory blocks that can no longer safely store and is a naturally occurring effect in flash memory devices. It increases slowly with age over years. The device will age naturally according to how often each memory cell is overwritten but typically lifetimes of cells are more than a decade.

* An unusually high number of bad blocks e.g. 24 will prevent the backup from running or if it is simply more than a few, this may indicate either a problem with the chip or the formatting of the chip or that the memory chip is aging unexpectedly if it is only a few years old.
* Max Bad Block Count is the maximum number of bad blocks before the firmware will automatically disable logging.

If you are having trouble accessing or downloading the log, make a note of the bad block count and ECC mode, then contact QTech techsupport at <techsupport@qtech.co.nz> for assistance.

## NAND flash tools

Low Level Memory Chip Tools and statistics are available. This page is mostly used by QTech technicians to diagnose memory problems. These are not recommended for use unless you are familiar with memory management and should be used under advice by QTech.

{% hint style="danger" %}
WARNING: Using the NAND Flash tools will cause the loss of all log data if the device is (re)formatted.
{% endhint %}

| Item                    | What it shows                                                                                                                                                                                                      |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| NAND Flash Status       | If the RTU firmware can detect the chip it will be shown as available, if it shows as unavailable it may be a hardware fault or an unrecognised device.                                                            |
| Manufacturer            | Chip manufacturer. This can vary.                                                                                                                                                                                  |
| Device Model            | Manufacturers part number. This can vary.                                                                                                                                                                          |
| Chip Capacity           | Chip memory size. Min 128 MB                                                                                                                                                                                       |
| Current Bad Block Count | The current bad block count is the combined total of the Factory bad blocks (unavoidable flaws that occur during the manufacturing) and the Grown bad blocks (blocks that fail later during the drive's lifespan). |
| Max Bad Block Count     | Maximum number of bad blocks before the firmware will automatically disable logging                                                                                                                                |
| OOB Size                | Chip overhead for managing the memory. This can vary.                                                                                                                                                              |
| ECC Mode                | Error Correction Algorithm in use. This can vary.                                                                                                                                                                  |

Full details may be displayed if the forward arrow icon is clicked.

| Button             | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Recycle Bad Blocks | The device bad block count can be reset by clicking the Recycle Bad Blocks button. But note that this will force previously declared unsuitable blocks to be reused potentially corrupting data however they will become reusable if the block had been calculated as bad when it ought not to have. This function may be recommended by QTech to technicians if the bad block count is unusually high and if it is safe to do so once all data has been retrieved. |
| Format             | Clicking the Format button will erase the device of all log data but leave the bad block count unaffected.                                                                                                                                                                                                                                                                                                                                                          |
| Hard Format        | Clicking the Hard Format button will erase the device of all log data AND reset the bad block count.                                                                                                                                                                                                                                                                                                                                                                |

You do not normally need to clear (format) the log. It operates in a cyclic manner and clearing it has no functional improvement.

## Still not working?

For more information contact QTech <techsupport@qtech.co.nz>
