> 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/water-insight/septic-tank-level-monitor/radio.md).

# Radio channels and addresses

Set the STLM radio channel switch, choose channels for nearby systems, and understand radio addresses and site IDs.

The Tank and Remote units must be operating on the same radio channel number in order for them to communicate. Each unit has a Radio Address. Radio Addresses of a Tank and Remote unit must be programmed with the destination address and this is usually done in the factory because the devices are sold as a pair.

{% hint style="info" %}
**Applies to:** STLM Rev B hardware. From the application note "STLM Radio Communications" (Rev 01), the STLM Reference Manual V06 and the STLM Workbench Configuration Guide V02. The application note provides guidelines for System Engineers and Installers.
{% endhint %}

## Set the channel switch

The Switch settings on the Tank and Remote units must be set exactly the same in order that the devices can communicate. The DIP switch is marked with the word ON for correct position of the switches. The switches are numbered 1 to 4.

| Switch setting | Code (Switch: 4-3-2-1) | Function                                   |
| -------------- | ---------------------- | ------------------------------------------ |
| 0 (ALL OFF)    | 0000                   | Disable radio (remote not in use)          |
| 1              | 0001                   | CHN #1                                     |
| 2              | 0010                   | CHN #3                                     |
| 3              | 0011                   | CHN #5                                     |
| 4              | 0100                   | CHN #7                                     |
| 5              | 0101                   | CHN #9                                     |
| 6              | 0110                   | CHN #16                                    |
| 7              | 0111                   | CHN #17                                    |
| 8              | 1000                   | CHN #18                                    |
| 9              | 1001                   | CHN #19                                    |
| 10             | 1010                   | CHN #20                                    |
| 11             | 1011                   | CHN #21                                    |
| 12             | 1100                   | CHN #22                                    |
| 13             | 1101                   | CHN #23                                    |
| 14             | 1110                   | CHN #24                                    |
| 15 (ALL ON)    | 1111                   | Reserved for Factory use - Radio Test Mode |

* DO NOT leave the radio configured in Test Mode, this will interfere with other devices.
* Installers should never use switch setting 15. This is reserved for factory testing to verify that the radio is operating correctly.
* Configure both ends in SW(0) (all off) if the radio is not needed.
* SW(1) – SW(5) use non adjacent channels for areas prone to radio interference.
* SW(6) – SW(14) use the upper band of channels which avoids pre-existing legacy radio systems which tend to use the lower band.

For the frequencies, see [900MHz ISM band channels](https://help.qtech.co.nz/datran/datran-telemetry/planning-and-design/900-mhz-ism-band-channels.md).

## Choose a channel for the site

| Site                                                                                                                                                                 | Recommended                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Single Site – Rural or Semi-Rural Location. For installations on sites that have one system and are more than 1 km from a neighbouring installation.                 | Select any Radio channel number in the switch setting range 1-14. Use the default (ex-factory) Radio Addresses of the units. Use the supplied Antennas. If interference from other radio equipment is affecting operation, try setting to alternative radio channels.                                                                                                                                                                                                                  |
| Multiple Sites – Rural Location. For installations on adjacent properties that each have systems and are less than 3 km from each other.                             | Select a Radio channel number in the switch setting range 1-14 that is not the same as the neighbours. Use the default (ex-factory) Radio Addresses of the units. Use the supplied Antennas.                                                                                                                                                                                                                                                                                           |
| Multiple Sites – Semi Rural or Urban Location. For installations on sites that each have one or more systems and are less than 3 km from neighbouring installations. | Select a Radio channel number in the switch setting range 1-14 that is not the same as the neighbours. Use the default (ex-factory) Radio Addresses of the units in the first instance until all radio channels have been allocated in the area. Use the supplied Antennas as it is expected that properties are close and therefore so is the distance between Tank and Remote, upgrade to higher performance antennas only if there are significant impediments. Modify the Site ID. |

For multiple sites the STLM can support up to 14 systems located nearby by using radio channel allocation alone.

However, radio systems even with low power short range antennas can sometimes have an effect over much longer distances due to the terrain. For example, one system up on a hill overlooking other systems in the valley over 3 km away. So, in this situation, with all radio channels allocated there is yet a risk of interference with other systems.

## Range and antennas

The radio system is designed for modest radio transmission range and the product is fitted to short monopole Antennas that can be fitted directly to the Device circuit boards. In good line of sight this will give approximately 300-400m of radio operation enough for most deployments, depending on terrain. The range is lessened by objects in the way or when the antenna is "hidden" behind walls or metal plates and the like or if they are mounted too low to the ground.

Radio Ranges of 1-3 km in plain line of sight can be achieved using better quality antennas, depending on terrain, but they must also be mounted high up and objects in between the devices like large hedges or trees should be avoided. At the extreme end high gain Yagi antennas can be used but these must be carefully "pointed" to one another for best reception (not unlike having to point a satellite receive dish).

* Using the supplied (Stubby) Antennas first then,
* Using high grade, 50 ohm impedance matched antennas tuned to the frequencies of interest (915-928 MHz). These monopole or whip style antennas that are supplied according to Antenna gain (3 dB, 6 dB or higher). The higher the number the better the likelihood of success but the higher the cost.
* Always orient the Antennas as vertically as possible (the tip pointing to the sky). Never mount one horizontally and the other vertically because the signal is polarised (consider the effect of orienting polarised sun glasses as an analogy).
* Use as much elevation as practicable when mounting antennas, and use low loss coaxial cabling (for 50 ohm systems).
* Ensure all equipment cases are correctly strapped or wired to earth (remove paint from the case if necessary).
* Use Yagi Antennas with high gain only where the most range is needed.
* Ensure that all cables are suitably tied to avoid fretting and degradation due to wind
* Ensure that trees and foliage in the line of sight are regularly maintained or trimmed.

For regulatory reasons the Radio Power level for QTech supplied equipment is controlled and set in the factory. It cannot be changed by the Installer or user.

## What weakens the link

* The weather can cause an increase in comms faults on a wet and windy or stormy day
* Badly matched antennas can attenuate the signal with only marginal ability to communicate with a Remote sporadically if at all.
* A Remote located too far away or with a hardware fault (including low RF power output) or turned off would likely result in no messages getting through.
* Interference by adjacent systems operating on the same radio frequency.
* Interference with other transmitters nearby could cause sporadic or bursts of comms faults.
* Tree or foliage growth in the line of sight of Tank unit and Remote could degrade communications over time (experience more communications faults).
* Poorly oriented antennas
* Antennas hidden behind walls, electrical object (TV) or in metal cabinets.

## Radio addresses and site IDs

The Radio Address is made up of three fields: `<VENDOR ID><SITE ID><DEVICE ID>`. Radio Addresses are represented in the form: vvv.vvv.sss.ddd e.g. 128.0.0.1.

The Tank Unit DEVICE ID is 1 and the Remote unit DEVICE ID is 2. Tank units always send messages to DEVICE ID 2 and Remote units always send messages to DEVICE ID 1. The radio address for a Tank unit ex-factory is 128.0.0.1. The radio address for a remote unit ex-factory is 128.0.0.2. The STLM Reference Manual V06 gives the Tank unit ID as 0 and the Remote Unit ID as 1.

The reason that all units are provided with same VENDOR and SITE IDs ex-factory is because the Vendor can resupply replacement units with minimal need for reconfiguration of the matching Tank or Remote unit in order to re-create a matching pair, thus avoiding especially the need to remove the lid of the Tank unit to re-program it, which exposes mains voltages.

The SITE ID can be used to create a locale for systems in a given area or radio catchment. Up to 255 different SITE IDs can be configured but the important point to note is that for any one system the Tank and matching Remote must be configured with the same SITE ID (and radio Channel). To support modification of the SITE ID the Vendor should use QTech Workbench configuration software. QTech Workbench (V2.13 or later) may be downloaded from the QTech Web Site [www.qtech.co.nz](http://www.qtech.co.nz). See [Configure and update with Workbench](https://help.qtech.co.nz/water-insight/septic-tank-level-monitor/workbench.md).

{% hint style="warning" %}
Setting the SITE ID should be used judiciously because this will create a requirement on the Vendor to maintain records of SITE IDs. This information could be required by service facilities when returning a Tank/Remote pair back to service. Moreover, it may hinder the Vendor's ability to quickly replace customer units from stock since both ends (Remote and Tank) must be configured with matching radio addresses, in all but the DEVICE ID. However, even with separate SITE IDs, simultaneous transmissions on the same radio channel will cause messages to interfere and be corrupted, so some messages may get through and others not.
{% endhint %}
