SMS AT commands
The following commands list contains SMS-related AT commands.
SMS support #XSMS
#XSMS command supports functionalities for sending and receiving SMS messages.
The set command allows you to start or stop SMS, as well as send SMS text. Only GSM-7 encoding is supported, 8-bit and UCS2 encodings are not supported.
<op>parameter can accept one of the following values:
0- Stop SMS.
1- Start SMS, ready to receive.
2- Send SMS.
<number>parameter is a string. It represents the SMS recipient’s phone number, including the country code (for example
<text>parameter is a string. It is the SMS text to be sent.
This is the notification syntax when an SMS message is received:
<datetime>value is a string. It represents the time when the SMS is received. It has a format of “YY-MM-DD HH:MM:SS”.
<number>value is a string. It represents the SMS sender’s phone number.
<text>value is a string. It represents the SMS text that has been received.
When receiving concatenated SMS messages, there will be only one notification.
at#xsms=1 OK at#xsms=2,"+8190xxxxxxxx","SLM test" OK #XSMS: "21-05-24 11:58:22","090xxxxxxxx","Tested OK" at#xsms=2,"+8190xxxxxxxx","0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" OK #XSMS: "21-05-24 13:29:47","090xxxxxxxx","0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
The read command is not supported.
The test command tests the existence of the command and provides information about the type of its subparameters.
#XSMS: <list of op value>,<number>,<text>
at#xsms=? #XSMS: (0,1,2),<number>,<text> OK