How to send SMS Messages with an AirLink Device using AT commands

Jan 13, 2016 - Author: Sierra Wireless - 11476 Views
Requirements:
  • Be sure the SIM/account supports SMS or text messages. Many accounts do not come with SMS, so you may need to contact your Mobile Network Operator to add SMS service to your account.
  • Computer with a serial port and/or Telnet application to send ALEOS AT commands

This article applies to GX400, GX/ES440, GX/ES450, LS300, LX60 and RV50 Series devices running the latest ALEOS software version, as posted on our web site.

 

Sending an SMS from the Serial Port

Connect a computer to the serial port of the AirLink device. On the PC, open a terminal application such as HyperTerminal or putty.exe. Remember to set up the serial port interface in the application to match the AirLink device’s default parameters: Bits per second=115200, Data bits=8, Parity=None, Stop bits=1, Flow control=Hardware.

Once connected to the device, you can enter ALEOS commands. To send an SMS, use the AT*SMSM2M command with the following syntax:

AT*SMSM2M=”<phone> <message>”

 

This allows an SMS message to be sent to another device as a single line item.

AT*SMSM2M ="16042555555 This is a test"
OK

Sending an SMS using Telnet Port 2332

It's possible to Telnet into the AirLink device using a DOS command prompt, putty.exe, or any other Telnet application to use the AT*SMSM2M command. This is only supported by LS and GX Series devices. For example:

Telnet 192.168.13.31 2332
Welcome to the Sierra Wireless Inc. ALEOS Environment
LS300 login: user
Password:
OK
ate1
OK
at*smsm2m="16042555555 this is a test"
OK

This example uses the leading “1” in front of the ten-digit phone number which is commonly used for GSM operators. Also, the sending of the SMS in this example establishes a local Telnet session using its default local IP address of 192.168.13.31. The same can be accomplished by establishing a remote Telnet session to the device using the carrier-assigned WAN IP address.

Note: ATE1 enables echo terminal, which is an optional command that enables the display of what is being typed on screen. Refer to the ALEOS Software Configuration User Guide for the full set of AT commands.

 

Displaying Incoming SMS Messages on ACEmanager

ACEmanager shows incoming messages on the screen when you are using an SMS mode other than “Password Only”. We suggest to set the device in ACEmanager > Services > SMS to “Control Only”. In the screen shot below, the device shows the last incoming message and the sender’s phone number. This is useful to determine whether or not your mobile network operator sends messages with the leading “1” in front of the phone number.

By default, trusted phone numbers have access and non-trusted phone numbers do not.

 

Troubleshooting

Tips:

1) For GSM SIM cards, you can test the SIM card in a cellphone to determine if it can send and receive SMS messages.

 

2) Send an SMS to a cell phone or the device itself using the following command:

at*smsm2m=16042555555 this is a test”

If it doesn’t work, check with your mobile network operator to confirm that the account supports SMS messages. Some mobile network operators do not enable SMS on data-only accounts.

 

Common Issues


A SIM account has been tested and it allows SMS messages to be sent and received on a phone. However, although ACEmanager receives SMS messages, it still cannot send SMS messages with the command at*smsm2m.

 

This is common scenario for European and Canadian Mobile Network Operators. Go to ACEmanager > Services > SMS > Advanced and try a different setting in the AT+CGSMS field. By default, it is set to “Do nothing”. We suggest to start with the command AT+CGSMS=1. Remember to click the “Apply” button in ACEmanager. Reboot the device and test again.

 


Also, the “Quick Test” button allows you to quickly test sending SMS messages to a phone or the device itself to test SMS functionality. In the Quick Test Destination field, type the phone number to send a text message to.

Note: The ALEOS Software Configuration User Guide lists all of the possible options for the AT+CGSMS command which allows you to choose the technology used to send SMS messages.

• Do nothing (default)
• Set AT+CGSMS=0—GPRS
• Set AT+CGSMS=1—Circuit switched
• Set AT+CGSMS=2—GPRS Preferred (Uses circuit switched if GPRS is not available)
• Set AT+CGSMS=3—Circuit Switched Preferred (Uses GPRS if circuit switched is not available)

©2024 Sierra Wireless. All rights reserved.
×
You have been successfully unsubscribed to this product. To access your subscription click here.