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?
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 | ||
Command mmcli -L Return Value /org/freedesktop/ModemManager1/Modem/0 |
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 /org/freedesktop/ModemManager1/SMS/24. 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-messages: |
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-message-flash: |
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
Note: Please ensure your SIM card supports the SMS function. Some of the data-plan SIM cards do not support the SMS function.
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
The Real Person!
Author Outdoor Router acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.
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?
The Real Person!
Author Outdoor Router acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.
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.
I tried
mmcli -m 0 –call-start *#123#
but did not worked.
Neither
mmcli -m 0 –messaging-create-sms=”text=”,number=’*#123#'”
The Real Person!
Author Outdoor Router acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.
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”
The Real Person!
Author Outdoor Router acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.
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.