Patron / Axon LTE
Neuron GSM
====== Receiving/sending SMS ====== /*[[https://www.unipi.technology/unipi-patron-s167-lte-p383|*/ Some of our PLCs /*]]*/ are equipped with LTE modem capable of sending SMS. In this tutorial we will learn how to configure such PLC and how to use function block for sending SMS. ;;# Patron S/Mx67 \\ Axon Mx65 ;;# ===== Modem configuration ===== For receiving/sending SMS via an LTE modem, it is not necessary to configure the modem as described in [[lte-configuration-hidden|]]. Instead, you need to configure **Alarm channel**. Double click on the **PLC** in the **Left panel**. Select a **Messaging** subpanel, right click on the blank list of channels and select **Add alarm channel** from the context menu: {{:en:sw:01-mervis:sending-sms-01-add-alarm-channel.png?direct|}} ---- A new alarm channel will appear. By default it is filled with preconfiguration for sending emails. Click on the **Type** (now prefilled with "Smtp") and change it to **Gsm**: {{:en:sw:01-mervis:sending-sms-01-type-gsm.png?direct|}} ---- Move over to the channel's properties and change the **Port Number** to **LTE**: {{:en:sw:01-mervis:sending-sms-03-port.png?direct|}} ---- If the SIM card is protected with a PIN code, enter it, otherwise leave empty: {{:en:sw:01-mervis:sending-sms-04-pin.png?direct|}} ---- Most modems (UniPi's as well) need initialization commands. Click to three-dot icon next to **AT Commands Definition**. A window will pop up: {{:en:sw:01-mervis:sending-sms-05-at-commands.png?direct|}} ---- In the drop down menu select the correct modem. For UniPi Axon product line it is **UniPi Axon LTE**: {{:en:sw:01-mervis:sending-sms-06-lte.png?direct|}} ---- Don't forget to apply this selection by clicking on **Apply** and closing this dialog: {{:en:sw:01-mervis:sending-sms-07-apply-confirm.png?direct|}} ---- The channel is configured and now the changes need to be commited. Click on the **OK** in the red bar: {{:en:sw:01-mervis:sending-sms-08-commit.png?direct|}} ====== ====== /* Odeslání SMS */ {{page>en:sw:01-mervis:send-sms-hidden}} ====== ====== /* Příjem SMS */ {{page>en:sw:01-mervis:receive-sms-hidden}}