SMS Message
The mobile modem supports SMS service for sending messages online.
Short Message Service (SMS) is a technology that allows the sending and receiving of brief text messages between mobile devices. It uses cellular networks to transmit messages of up to 160 characters and is widely employed for personal communication, business promotions, and various application notifications.
Check the modem index number
Section titled “Check the modem index number”Check the modem index with the command below.
mmcli -LEditing SMS
Section titled “Editing SMS”The following commands are used to create short message content and send objects.
mmcli -m [modem-index] --messaging-create-sms="text='[message content]',number='[phone nubmer]'"
Example:
mmcli -m 4 –messaging-create-sms=“text=‘THIS IS A TEST’,number=‘13677777777’”
-———————————
Messaging | create sms: /org/freedesktop/ModemManager1/SMS/79
Sending SMS
Section titled “Sending SMS”Once the previous command is executed, an index number is generated. You can use this index number to execute the command and send SMS messages.
mmcli -s [sms-index-number] --sendExample:
mmcli -s 79 –send
successfully sent the SMS
Process of Sending SMS
Section titled “Process of Sending SMS”The process of sending a text message is as follows:
╔═╗╦ ╦╔╦╗╔╦╗╔═╗╔═╗╦═╗╦═╗╔═╗╦ ╦╔╦╗╔═╗╦═╗║ ║║ ║ ║ ║║║ ║║ ║╠╦╝╠╦╝║ ║║ ║ ║ ║╣ ╠╦╝╚═╝╚═╝ ╩ ═╩╝╚═╝╚═╝╩╚═╩╚═╚═╝╚═╝ ╩ ╚═╝╩╚═---------------------------------------☼ ☼ ☼ OUTDOOR ROUTER ❅ ❅ ❅---------------------------------------
root@OutdoorRouter:~# mmcli -L /org/freedesktop/ModemManager1/Modem/4 [Quectel] EM120K-GLroot@OutdoorRouter:~# mmcli -m 4 --messaging-create-sms="text='THIS IS A TEST',number='13677777777'" ------------------------ Messaging | created sms: /org/freedesktop/ModemManager1/SMS/0root@OutdoorRouter:~# mmcli -s 0 --sendsuccessfully sent the SMSroot@OutdoorRouter:~#