AT Command

Description

AT+CGSMS command is used to set the service preference for Mobile originated SMS messages.


Support

Module Tutorial

Examples

KeywordsAT+CGSMS syntax, examples, parameters, error, input, response.

Try the below script in the AT Command Tester tool

//Script: at_cgsms.at
//Use this script to AT+CGSMS AT command

//Get the command support
AT+CGSMS=?

WAIT=2

// Get the supported services
//0 = GPRS
//1 - Circuit switched
//2 - GPRS Preferred
//3 - Circuit switch preferred
AT+CGSMS?

WAIT=1

// Set MO SMS service preference to GPRS preferred
AT+CGSMS=2

// Set MO SMS service preference to circuit switch preferred
//the network. Accepted only in PDU mode.
AT+CGSMS=3

Output of the above script in the AT Command Tester tool
tool.

AT+CGSMS=?

+CGSMS: (0-3)

OK
AT+CGSMS?

+CGSMS: 3

OK
AT+CGSMS=2

OK
AT+CGSMS=3

OK