> 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/cellular-remote-control/sms-lite/set-up.md).

# Set up

Register the master phone, then test an input and an output.

We recommend you follow these quick functional tests before performing advanced configuration. This will help prove the SIM card, cellular network connection, device functionality and simplify potential troubleshooting.

## 1. Register the master phone (Ph1)

To operate the SMS Lite, the device must have a mobile number registered as 'Phone 1' referred to as Ph1. You must register this number before you can configure any of the inputs or outputs.

1. Locate the PIN (Personal Identification Number) printed inside the SMS Lite case. The PIN in these examples is `12345`.

   ![PIN label inside the SMS Lite case](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FQcuMzhWDgfuSzYdivpwK%2Fpin-label.png?alt=media)
2. Compose a text message to the SMS Lite mobile number in the following format:

   `#[PIN] Ph1:number=[your mobile number].`

   For example: `#12345 Ph1:number=027987654.`
3. A confirmation text will be sent to you acknowledging a configuration change.

   ![The confirmation text after registering Ph1](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FfHMWwc55MdRSq2Js4UgP%2Fconfirmation-text.png?alt=media)

{% hint style="info" %}
Each configuration command must be finished with a full stop character (dot) "." There must be a space character between the PIN number and Ph1. If the syntax is not correct you will receive an error message or the command message will be ignored. The PIN number is used every time a configuration change is made.
{% endhint %}

## 2. Connect the inputs and outputs

Wire them as described in [Install and wire](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/install-and-wire.md).

## 3. Turn on an input

Activate (switch on) one of the mechanical switch inputs. Phone 1 will be sent a text message each time the input turns on or off.

## 4. Acknowledge the alarm

You must acknowledge receipt of the alarm notification. To acknowledge an alarm: `OK [input name]` (e.g. Text: `OK INP1`)

## 5. Switch an output

| To                         | Text                    | Example            |
| -------------------------- | ----------------------- | ------------------ |
| Turn an output on          | `ON [output]`           | `ON RLY1`          |
| Turn an output off         | `OFF [output]`          | `OFF RLY1`         |
| Pulse it on for 1 second   | `PULSE [output]`        | `PULSE RLY1`       |
| Pulse it on for a set time | `PULSE [output] [time]` | `PULSE RLY1 10min` |

The units can be `ms`, `sec`, `min`, or `hr`, and the maximum duration is 1 day (24 hr).

{% hint style="warning" %}
The abbreviations for the units (sec, min etc.) must be written exactly as prescribed above. For example `10s` will be accepted but will not pulse the relay for 10 seconds.
{% endhint %}

If this basic configuration is successful, you can continue with additional configuration for extra phone numbers, naming of inputs and outputs and configure advanced settings. We recommend renaming the Site Name and the Input and Output names, as these names are used in the text messages and can avoid confusion. See [Configure](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/configure.md).

## Messages the SMS Lite sends by itself

**Restart.** When the unit is powered on it will send a message to the Master Phone (PH1) (if there is a phone number programmed) to indicate that the device has restarted. The message is provided to assist users with detecting a return to normal after an unexpected power outage. For example: `Site: PumpShed has restarted.`

**Supply voltage.** If the SMS Lite supply voltage drops below 10.5V DC, Ph1 will receive a notification message. The message will include the current supply voltage value, for example: `The supply voltage at [site] has dropped to 9.3V.` When the voltage increases above 11.5V DC a supply voltage message will be sent to Ph1: `The supply voltage at [site] has returned to 12.7V.` Supply voltage alarms do not escalate like input alarms. The Supply voltage can be queried at any time using the `STATUS` command.

{% hint style="info" %}
The supply voltage alarm is intended for battery backed low voltage DC supply systems to indicate poor input voltage. It is not intended for mains failure detection because the device requires a minimum of about 9V to operate. For mains fail detection the device should be independently powered from a battery backed supply. An input pair should be dedicated so that the input is closed (activated) (e.g. by a relay with NC outputs) when the mains failure occurs to send an alarm.
{% endhint %}

## Videos

{% embed url="<https://www.youtube.com/watch?v=AosSK52dOpA>" %}
SMS Lite initial set up
{% endembed %}
