How Router Works
HomeShop
  • 👋Welcome to {How To}
  • Mobile Modem
    • Switch SIM Card
    • Mobile Watchdog
    • Mobile Protocol
    • APN Setting
    • Mode & Band Locking
    • Modem Diagnosis
      • Change TTL Value
      • Detach Reattach
      • Fix PLMN Error
  • Networking
    • Firewall
      • Port Forward
    • WiFi Hotspot
      • WiFi Relay
      • Guest WiFi
      • Parent Control
    • Traffic Control
      • IP and DNS
      • SQM QoS
      • Load Balancing
      • Intranet Routes
  • Remote Access
    • Traversal Cloud
    • Ezen Cloud
    • Dynamic DNS
  • Development
    • SSH Terminal
      • VI Editor
      • Crontab Syntax
    • Command Sets
      • MMCLI Commands
        • SMS Message
        • Location 3GPP GPS
      • AT Commands
        • AT+QAGPIO
        • AT+QTEMP
        • AT+COPS
        • AT+QENG
        • AT+QCAINFO
    • Bootloader
    • Custom-Build Firmware
Powered by GitBook
On this page
  • Check the modem index number
  • Editing SMS
  • Sending SMS
  • Process of Sending SMS
  1. Development
  2. Command Sets
  3. MMCLI Commands

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

Check the modem index with the command below.

mmcli -L

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

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] --send

Example:

mmcli -s 79 --send

successfully sent the SMS

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-GL
root@OutdoorRouter:~# mmcli -m 4 --messaging-create-sms="text='THIS IS A TEST',number='13677777777'"
  ------------------------
  Messaging | created sms: /org/freedesktop/ModemManager1/SMS/0
root@OutdoorRouter:~# mmcli -s 0 --send
successfully sent the SMS
root@OutdoorRouter:~#

Last updated 3 months ago