Firmware Guidance, Technical Benefits
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?
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|
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.
|List SMS messages|
|Get SMS raw message contents at index <id>|
|Send SMS message (use options below)|
|SMSC number (required)|
|Destination number (required)|
|Send as Flash SMS|
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
Note: Please ensure your SIM card supports the SMS function. Some of the data-plan SIM cards do not support the SMS function.
9 thoughts on “Send and Receive SMS on 4G Router SSH Shell”
I need to access the SMS on my outdoor Router, when entering above information on the terminal, I recieve the following response, can you advise please
error: couldn’t find the ModemManager process in the bus
Your email address does not work. Please get in touch with us and send the screenshot of the admin front page. I suppose you are using a legacy version of firmware that uses the QMI command set. In this case, please upgrade the firmware to the latest version, EV3133, and do not keep the previous settings to avoid conflicts.
It’s possible to send a USSD code?
Yes, you can operate on the SSH terminal as the phone SMS interface.
On the phone I just call the *#123# to know the data. I don’t know how to do it via the terminal. It’s not a SMS option, it should be a call.
mmcli -m 0 –call-start *#123#
but did not worked.
mmcli -m 0 –messaging-create-sms=”text=”,number=’*#123#'”
It seems your command format is incorrect. We send you instructions by email.
Thanks but you send me about SMS option, USSD code it’s not via SMS but via call.
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”
If you use a later firmware than EV3114, please use the MMCLI command set to send and receive the SMS messages. We have upgraded the tutorial to include the operation guidance.