> 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-vi-scada/datran-vi/troubleshooting/alarm-texts-not-arriving.md).

# Alarm texts aren't arriving

Operators aren't getting alarm texts from DATRAN VI. Check the services, the Datashed connection, SMS Direct, the operator's details and the alarm class.

Follow these steps to run through a sequence of tests if there is a concern that the SMS messaging system is not working properly.

{% hint style="info" %}
**Applies to:** DATRAN VI with Datashed, SMS Direct, or both. For how the settings fit together, see [Send alarms by text](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/alarms/sms.md).
{% endhint %}

## Quick checks

1. **Is the XML Data Interface running and active?** The XDI application MUST be active in order for any messages to be sent from DATRAN. Check the active state in the State tab and make sure it is set to True.
2. **Is Datashed connected?** The status of the connection to Datashed can be checked using the **Datashed Connected** indicator under the XDI's SMS Service. It normally equals 1 if the connection to DataShed is healthy (0 if the connection is down).
3. **Send a test** message to a designated operator via Datashed, and via SMSDirect. See [Test alarm texts from Supervisor](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/alarms/test-sms.md).
4. **Check the alarm class.** In the escalation properties window the annunciator and enabled state are set. Make sure to press the appropriate "apply" button (e.g. "Apply Escalation") to make the changes active.
5. **Check the operator:** the SMS Number must begin with the country code (`6427…`, not `027…`). The operator name and SMS number must also match the configuration in Datashed. The password is case sensitive. The SMS group containing the password needs to be activated for this user: the SMS group is set to 1 (active).

## If Datashed texts fail

| Cause                                                  | Fix                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Datashed looks connected but texts aren't delivered    | DataShed may be down and backup SMSDirect not failed over, try manual override ([Force DATRAN to use SMS Direct](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/alarms/force-sms-direct.md)), report DataShed issue to QTech.                                                                                                                   |
| Arrives on some mobile networks but not others         | If messages are being received on some networks but not others the problem is with DataShed and the issue should be reported.                                                                                                                                                                                                                              |
| Supervisor's Sent SMS Messages screen shows **Failed** | Datashed has rejected the SMS and it has not been sent to the mobile phone. This is probably due to invalid operator credentials (Invalid Sender Credentials): the supplied Datran Operator information does not match that specified in Datashed. Check that the SMS Number starts with 64 and not 0, and that the password is case sensitive and exists. |
| The XML Data Interface has no internet access          | An example of diagnostics if XDI does not have internet access is: XML TCP Module Error: Received WinInet exception: 12030. See [Text replies don't reach DATRAN](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/troubleshooting/text-replies-not-received.md#xdi-has-no-internet-access).                                                      |

## If SMS Direct texts fail

| Cause                              | Fix                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The modem doesn't respond          | Activate the SMS Direct diagnostic categories in the DATRAN Diagnostics window by pressing F2, scrolling down to the SMS Direct categories and turning them on. You will be able to see if your modem is responding to the initial ATE0 command. If it is not then there is a baud rate or configuration issue. Check the modem settings on [Set up and check it is working](https://help.qtech.co.nz/datran/datran-telemetry/cm910-cellular-modem/set-up-and-check.md). |
| The modem won't initialise         | See [SMS Direct can't initialise the CM910](https://help.qtech.co.nz/datran/datran-telemetry/cm910-cellular-modem/troubleshooting/sms-direct-cannot-initialise.md). The driver initialisation sequence has been improved for the 4G CM910 modem, used for SMS Direct (DATRAN V6.77). Both modems are compatible with SMS Direct, but hardware flow control must be configured for the 4G CM910 and genuine QTech connection cables are to be used.                       |
| The named pipe is off              | If the XDI Named Pipe is set to false, the XDI cannot connect to SMS Direct at all. Go to the Network Info tab and change the value in the **Named Pipe** combo box to True.                                                                                                                                                                                                                                                                                             |
| SMS Direct isn't the backup        | **SMS Direct Backup** informs the XDI whether you want to send messages through SMS Direct if DATRAN cannot connect to Datashed (SMS Direct must be in Backup mode). The General Settings tab is where SMS Direct can be configured to run as a standalone service (Full), or as a backup for Datashed (Backup).                                                                                                                                                         |
| The SIM has no credit or coverage  | No internet required: the service will operate reliably as long as there is cellular network coverage.                                                                                                                                                                                                                                                                                                                                                                   |
| Settings changed but not picked up | Any changes made to the SMS Direct or XDI applications will require the altered application to be restarted in Windows Services.                                                                                                                                                                                                                                                                                                                                         |

Any error message during this process is clearly shown, for example if the Operator does not have an associated phone number or if the phone number is invalid.

## If texts arrive but replies don't acknowledge alarms

See [Text replies don't reach DATRAN](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/troubleshooting/text-replies-not-received.md). SMS Direct doesn't poll for responses, including ACKs, in backup mode.

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with your results from the test sequence and what the diagnostics show.
