4G Router send and receive SMS gateway on SSH Shell

Send and Receive SMS on 4G Router SSH Shell

The EZRx3 series 4G routers use QMI protocol by default to establish a 4G connection to the mobile networks. We can use UQMI commands to send and receive an SMS text message on the SSH shell.

Please log in to the SSH command-line interface. How to access SSH?

Firmware Version

For the firmware version later than EV3114, the mobile modem protocol of MobileData, please use the MMCLI command set to access and control the SMS gateway.

MMCLI Command & Example Function  


mmcli -L

Return Value


Check the sequence number of the mobile modem. The last decimal number on the return value is the sequence number.

For example, the modem sequence number of the instance on the left side is 0.

mmcli -m 0 --messaging-list-sms
List SMS messages
Use the latest modem sequence number behind -m.
mmcli -s 12
Show the specific SMS message.  
mmcli - m 0 

Create a SMS message and specific the number should send to. It will return a value with SMS serial number.

For example, if return value is


The created SMS serial number is 24.

mmcli -s 24 --send
Execute this command to send out the latest created SMS message.  


For the legacy version firmware using QMI protocol, use the below UQMI commands to access and control the SMS gateway.

UQMI Command Function
List SMS messages
--get-message <id>:
Get SMS raw message contents at index <id>
--send-message <data>:
Send SMS message (use options below)
--send-message-smsc <nr>:
SMSC number (required)
--send-message-target <nr>:
Destination number (required)
Send as Flash SMS



3) Examples
The virtual modem interface is /cdc-wdm0. So the command always starts with uqmi -d /dev/cdc-wdm0.

i. If need to list the received SMS message, on SSH terminal use the command:

uqmi -d /dev/cdc-wdm0 --list-messages 

ii. Use the below command to read one of the messages. For example, read the No.2 message.

uqmi -d /dev/cdc-wdm0 --get-message 2

iii. When sending an SMS message, we need to attach the target phone number. Below is an example of sending a message of “Testing” to target mobile phone number “2001111“. Make sure without country code, space, and symbols on the phone number.

uqmi -d /dev/cdc-wdm0 --send-message Testing --send-message-target 2001111

Please ensure your SIM card supports the SMS function. Some of the data-plan SIM cards do not support the SMS function.

7 thoughts on “Send and Receive SMS on 4G Router SSH Shell

  1. mike-2862 says:

    I need to regularly send and receive SMS messages to activate more data. I have an EZR33 if i log into the shell and type uqmi -d /dev/cdc-wdm0 — list-messages the command does not return, if i then cancel with ctrl c it will respond “Failed to connect to service”

Leave a Reply