> 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/wireless-remote-control/wp2p-digital/star-configuration.md).

# Star configuration

Link one master WP2P to up to three slaves with a Star or Star-Blast system.

Wireless Point to Point (WP2P) modules can be specially configured by QTech to provide a WP2P star system. The [Multi Point Controller](https://help.qtech.co.nz/qtech/wireless-remote-control/multi-point-controller.md) (MPC) allows you to create a wireless network of up to eight slave modules over a range of several km. This powerful solution has a sophisticated I/O mapping grid that enables any of the inputs or outputs to be mapped to any module in the system.

{% hint style="info" %}
**Applies to:** WP2P Digital modules specially configured by QTech as a Star or Star-Blast system. Please contact QTech for ordering details. Single modules for star systems are product code PD8810E.
{% endhint %}

There are two kinds of star system, each with one **master** and three **slaves** numbered 1, 2 and 3:

* **Star:** each master input controls one slave.
* **Star-Blast:** each master input controls the same output on every slave. One application scenario is the use of WP2P star blast systems in traffic control lighting.

![Star system: a master module and slave modules 1, 2 and 3](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FAjCOtV878OpeLtxVKbpQ%2Fwp2p-star-system.jpg?alt=media)

## Input and output mapping

![Input and output mapping for Star and Star-Blast systems](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FvJ32Hxtk5HwH0f89ZPPS%2Fwp2p-star-io-mapping.jpg?alt=media)

| Input   |      | Star output   | Star-Blast output       |
| ------- | ---- | ------------- | ----------------------- |
| Master  | INP1 | Slave 1, RLY1 | Slaves 1, 2 and 3, RLY1 |
| Master  | INP2 | Slave 2, RLY1 | Slaves 1, 2 and 3, RLY2 |
| Master  | INP3 | Slave 3, RLY1 | Slaves 1, 2 and 3, RLY3 |
| Slave 1 | INP1 | Master, RLY1  | Master, RLY1            |
| Slave 2 | INP1 | Master, RLY2  | Master, RLY2            |
| Slave 3 | INP1 | Master, RLY3  | Master, RLY3            |

In a Star system, on the slave devices INP2, INP3, RLY2, and RLY3 are not used.

## How a Star system communicates

* If the master detects that any of its inputs have changed state, it will immediately send a message to the corresponding slave informing it of the change.
* In addition, the master will poll each slave periodically, with a 10 second gap between polling each slave.
* If any slaves detect that their input (INP1) has changed state, they will immediately send a message to the master informing it of the change. Slaves do not normally poll the master, but they will reattempt sending the message periodically if they don’t hear an answer back from the master.
* If the master attempts to send a message to a slave but never receives an answer back, it will class the link to that slave as being **down**. The link state is used to set how many attempts the master will use to try and communicate with each slave. If the link to a given slave is up then the master will use 5 attempts. But if the link to that slave is down then it will only try once. This is to prevent one down slave from adversely affecting the performance of comms to the other slaves.

## How a Star-Blast system communicates

* If the master detects that any of its inputs have changed state, it will immediately send a message to each of the slaves informing it of the change.
* If none of the inputs on the master have changed state then the master will poll each slave periodically, with a 10 second gap between polling each slave.
* If any slaves detect that their input (e.g. INP1) has changed state, they will immediately send a message to the master informing it of the change.
* Slaves also poll the master if there is no change of state on its inputs, every 30s.
* The master device address is always 0. Each slave is addressed 1, 2, or 3.
* Normally a master will try up to 5 times to retransmit a message to a given slave before it moves on to sending a message to the next slave.
* The master sends messages to slaves in numerical sequence order 1, 2, 3, even if there are less than three slaves connected. If fewer than three slaves are connected then there can be a slight delay as the master polls the “unconnected” slave address before resuming to poll the connected slaves.

## LINK light in a star system

| Where  | LINK light                                                       | Meaning                                                                                                                                                                                     |
| ------ | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Master | Predominantly ON but flickers briefly when a transmission occurs | Any one slave responds to a message                                                                                                                                                         |
| Master | Predominantly OFF (Star systems: blinking)                       | NONE of the slaves respond to a message from the master. In Star-Blast, it may flash on for a short time, periodically every 10s, to indicate that it is trying to poll one or more slaves. |
| Slave  | Predominantly ON but flickering when a transmission occurs       | The slave is communicating with the master                                                                                                                                                  |
| Slave  | Predominantly OFF                                                | The slave is not communicating with the master. In Star-Blast, it may flash on periodically every 30s if trying to contact the master.                                                      |

## Output hold and repeaters

WP2P star systems support the Output Hold functionality (see [Failsafe and output hold](https://help.qtech.co.nz/qtech/wireless-remote-control/planning-and-design/failsafe-and-output-hold.md)), but the behaviour is slightly different to regular WP2P systems:

* The master will only consider the communications link to be down (begin blinking its comms link status indicator LED) if the comms to **ALL** three slaves has failed.
* Slaves operate similarly to regular WP2P devices, in that if they do not hear an answer back from the master (after 5 attempts) they will go into link down state.
* In a Star system, slaves do not normally do background polling, so link status detection only occurs following an input change message. In a Star-Blast system, to provide link status detection, slaves poll the master every 30s even when there is no change of state on their inputs.
* WP2P star systems also support the WP2P Repeater functionality, but the master and all slaves must be configured to use it. All slaves must be able to see the repeater as all communications will be via the repeater, even if a slave is close to the master module. See [Using a repeater](https://help.qtech.co.nz/qtech/wireless-remote-control/wp2p-repeater/using-a-repeater.md).

![Star system with a master, a repeater and three slaves](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fa8887mUpupIRDW9fahkb%2Fwp2p-star-with-repeater.jpg?alt=media)

## Example: sports-field lighting

The WP2P Star system remotely controls up to three lighting towers. Control of the lighting towers is simply by closing a switch in the control room. Mount the master module at a lighting tower, then four towers can be controlled by visiting just one tower. If needed, signals can also come back to the control room from each lighting tower, this could be Status OK/Door Open/temperature alert etc. High gain antennas can be used to separate the Master by up to 2km, depending on terrain.

The Multi Point Controller system remotely controls up to eight lighting towers. Each module has 3 outputs, so each tower could have high/medium/low light control options etc.

![Multi Point Controller system controlling sports-field lighting towers](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fhz4ztYNcfz8Po5pwGP4e%2Fmpc-sports-field-lighting.jpg?alt=media)
