> 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-plus-rtu/troubleshooting/expansion-modules-not-responding.md).

# Expansion modules aren't responding

The ER light flashes 4 times, or Q23 and Q26 inputs don't update.

If the red ER light flashes **4** times, this is an IPB (Intelligent Peripheral Bus) communications failure with the Q23 or Q26 expansion modules.

{% hint style="info" %}
**Applies to:** XL4 Plus with Q23 or Q26 expansion modules on RS485, including modules linked by QDR radios.
{% endhint %}

## Check these in order

1. **The connector.** The XL4 Plus RS485 port is an RJ12 connector, identified by having 6 contacts. The previous Q03 RS485 connectors were an RJ10 connector with 4 contacts. Do not attempt to insert the 4 contact RJ10 into the RTU, this must be inserted in the expansion module (Q23/Q26 etc). Forcing a plug intended for a Q03 into a Q04 Plus can damage the socket.
2. **The addresses.** Make sure the expansion device addresses are correctly set on the DIP switches.
3. **The termination.** Termination impedance is built-in and can be set by jumper "485TERM" on the Processor board. Close jumper A to provide a 120Ω termination to the RS485 lines. In a multi-drop network only the end RS485 transceivers should be terminated.
4. **Workbench settings.** Check the enabled checkbox on the expansion modules form to enable IPB communications and choose rs485 as the communication port. Comms: 9600,8,n,1.
5. **The cable.** Line length 1000 m. It is recommended to install surge protection devices on any exposed RS485 cable runs, or runs exceeding 200 meters. The RS485 cable must comply with the Q23/Q26 pinout and connector requirements.
6. **Power and earthing.** The power supplies to the QDR and Q23/Q26 devices are clean and solid (to avoid EMI in the radios). The cases for the devices are well grounded to a common point and signal earth loops are avoided.

## Watch the polling

To observe communications to the expansion devices click the diagnostics category in Workbench and select the IPB master diagnostic (enabled and persistent) then click view diagnostics. Each poll attempt and response will be shown in the log. To look at the state of the digital inputs (for example) on the expansion devices click the digital inputs category in the sidebar under the input/output category. Toggle some digital inputs on the expansion devices to see the change of state.

On each module, the IP light flashes when it gets a valid packet for its address.

## Modules linked by QDR radios

Q23 and Q26 Expansion modules can be linked back to back separated by (QTech Data Radio, QDR) radio links. The round-trip delays when polling devices over radio can be long, and the gap times may need to be adjusted.

* **Gaps and timeout:** set the module gap, and polling gap to 1000ms, set the timeout to 500ms. Leave all other settings as is. Address = 0 comms: 9600,8,n,1. Write these settings to the RTU and reboot it. Typically these values are around 100-200ms for wired RS485 links but for radios they may need to be of the order of 1000 or more ms. With some trial and error, the polling times and module gaps can be reduced to optimise performance and throughput.
* **Sporadic or no communications from the last module** in the chain is one symptom to look out for. This can also be affected by I/O activity on intermediate devices. One check is to turn all inputs and outputs off on the intermediate module and look for the IP LED flashing on the last module to see that it is getting comms. If not try increasing the gap times.
* **QDR settings** (in Workbench, device type QTech Digital Radio):
  * For each link use a different hopping sequence (channel). Make sure the two QDRs in that pair have the same value.
  * Each QDR should have a unique radio number (between 1 and 255)
  * Each link should have the same Site number (1-255) and both QDRs in the pair must have the same site number
  * The radio type (cable interface) is 2 wire RS485 (mode 1)
  * The mute thresholds should be -96 dBm or less (more if the site is noisy)
  * For Yagi antennas power level 6 or 7 is best
* **Termination:** for back to back QDRs the RS485 termination resistor jumpers are fitted. For the expansion device between them (in this example a Q26) the termination resistor jumper (J2) is not fitted.

The module gap setting is the delay between attempting to poll each expansion unit. The polling gap is the delay once all units have been polled before attempting the next set of poll requests. The timeout value is how long the RTU will wait for a response before giving up and proceeding to the next unit to poll.

## Still not working?

Contact QTech. Have the module addresses, what the ER and IP lights show, a Workbench diagnostics log and what you've tried ready.
