Patron / Axon LTE
Neuron GSM
====== Receiving/sending SMS ====== [[https://www.unipi.technology/cs/unipi-neuron-s103-g-p107|Some of our PLCs]] are equipped with a GSM module that is capable of sending and receiving SMS. In this tutorial, we will learn how to configure such PLC and how to use function blocks for sending SMS. ;;# Neuron S103-G ;;# ===== Modem configuration ===== First, you need to set up communication with the modem, for this the **Alarm channel** is used. Double-click on the **PLC** in the **Left panel**. Select the **Messaging** subpanel, right-click on the blank channel list and select **Add alarm channel** from the context menu: {{ :en:sw:01-mervis:sms-gsm1.png?direct |}} ---- A new alarm channel will appear. By default, it is set to send e-mail messages. Click on the **Type** (now prefilled with "Smtp") and change it to **Gsm**: {{ :en:sw:01-mervis:sms-gsm2.png?direct |}} ---- Move over to the channel's properties and change the **Port Number** to **COM1 (TTL)**: {{ :en:sw:01-mervis:sms-gsm3.png?direct |}} ---- If the SIM card is protected with a PIN code, enter it in the appropriate, otherwise leave it empty: {{ :en:sw:01-mervis:sms-gsm4.png?direct |}} ---- Most modems (UniPi's as well) need initialization commands. Click to three-dot icon {{:files:dialog-open_button_2.png?nolink|}} next to **AT Commands Definition**. A window will pop up: {{ :en:sw:01-mervis:sms-gsm5.png?direct |}} ---- Then select the correct modem from the drop-down menu. For Unipi Neuron controllers, this is the **Unipi Neuron GSM - G510**: {{ :en:sw:01-mervis:sms-gsm6.png?direct |}} ---- Don't forget to apply this selection by clicking on **Apply** and closing this dialog: {{ :en:sw:01-mervis:sms-gsm7.png?direct |}} ---- The channel is configured and now the changes need to be committed. Click on the **OK** in the red bar: {{ :en:sw:01-mervis:sms-gsm8.png?direct |}} ====== ====== /* Odeslání SMS */ {{page>en:sw:01-mervis:send-sms-hidden}} ====== ====== /* Příjem SMS */ {{page>en:sw:01-mervis:receive-sms-hidden}}