> 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/q48-point-to-point/how-it-communicates.md).

# How it communicates

Change-of-state messages, link checks, comms-fail timing and failsafe outputs.

The Q48-P2P System operates by copying the state of the input terminals from one device to the output terminals on the other device. By default, the communication link between the Q48-P2P modules is checked every 5 minutes by either unit sending a message which is acknowledged by the other end. Using the default configuration, the Q48-P2P outputs remain in their last known state during a comms fail.

{% hint style="info" %}
**Applies to:** Q48 Point to Point (PD8630-P2P), user guide v1.9. Poll interval, retries and failsafe mode are set by QTech.
{% endhint %}

## Normal operation

* The Q48-P2P modules operate in a peer-to-peer manner meaning they communicate in the same way.
* The time delay between when an input changes state and the corresponding output changes is normally less than 500ms. The high-speed digital radio technology allows up to 5 changes per second.
* When any of the Digital Inputs change state or any of the Analogue Input values change by more than 5% of full scale (0.8mA), the Q48-P2P will send a ‘change of state’ message to the other module. Each time a Q48 hears one of these messages it will update its outputs to be the same as the inputs on the other module.
* The Q48-P2P also sends a ‘background poll’ message every 5 minutes (configurable), which is used to check that the communications link is OK without needing to wait for an input value to change. The background poll also improves the resolution of the Analogue Outputs by ensuring that the values are up to date, even if they haven’t changed by more than 5%.
* Each time the Q48-P2P sends a message it expects to hear an acknowledgement (ACK) back from the other module. If it hears an ACK from the other module that means the communications link is OK. While the link is OK the Coms Status LED will be on.

## When the link fails

Failure to acknowledge the message after the configured retries (attempts) causes the modules to enter comms fail mode. The Coms Status LED is turned off showing the link is down. While the link is down each module will try to re-establish the link by sending a message every 30 seconds. To avoid radio data message collisions each module attempts to re-establish communications using a pseudo random retry interval. If each end successfully receives a message acknowledgment from the other, communication is re-established and normal operation resumed. The device does not enter a halted state but may condition the outputs into a safe mode when the link is down.

### How long it takes to declare a comms fail

The number of retries and the poll rate affects the total time to determine if there is a communication link failure. The more retries that are defined the longer it takes to determine the link is down. However, for some applications 5 minutes is too long to determine a comms fail state, therefore both the polling interval and the number of attempted retries to establish communications is configurable by QTech.

For example, a device is configured to poll every 15s with 4 retry attempts. This will take 15s plus between about 5,000ms and 10,000ms (5-10 seconds) of retries (total time of 25s) before comms failure mode is declared.

![Link timeout against the number of attempts: the expected range lies between the black lines](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FGZsbyyq5xkfhoA3w2VDQ%2Fq48-link-timeout-graph.png?alt=media)

## Failsafe outputs

Using the default configuration, the Q48-P2P outputs remain in their last known state during a comms fail. For example, if a Digital Output was on before the comms fail occurred, it will remain on during the comms fail.

QTech can be requested to set the outputs to **“Failsafe mode”**, which will:

* turn the Digital Outputs off (open)
* set the Analogue Outputs to the minimum allowable value for the duration of the communication failure

If required, please discuss this with us prior to purchase of the Q48-P2P system. The failsafe behaviour of the Q48-P2P is different to the QTech WP2P system. See [Failsafe and output hold](https://help.qtech.co.nz/qtech/wireless-remote-control/planning-and-design/failsafe-and-output-hold.md).
