| Home · All Classes · Grouped Classes · Annotated · Functions |
[Previous: Modem Emulator - GPRS] [Next: Modem Emulator - Ignored Commands]
The AT commands in this section are used for accessing the Short Message Service (SMS) subsystem.
AT+CMGF Message Format
The AT+CMGF command can be used to set the SMS message format to PDU (0) or text (1). The default is PDU.
| Command | Possible Responses |
|---|---|
| AT+CMGF=<mode> | OK, +CME ERROR: <err> |
| AT+CMGF? | +CMGF: <mode> |
| AT+CMGF=? | +CMGF: (0,1) |
AT+CMGS Send Message
The AT+CMGS command can be used to send SMS messages in either PDU (AT+CMGF=0) or text (AT+CMGF=1) mode.
| Command | Possible Responses |
|---|---|
| AT+CMGS=<da>[,<toda>]<CR>message<ctrl-Z/ESC> | +CMGS: <mr>, +CME ERROR: <err> - if in text mode. |
| AT+CMGS=<length><CR>pdu<ctrl-Z/ESC> | +CMGS: <mr>, +CME ERROR: <err> - if in pdu mode. |
| AT+CMGS=? | OK |
Execution command sends the message to the network. The message reference value <mr> is returned to the TE upon successful message delivery.
AT+CMMS More Messages to Send
The AT+CMMS command can be used to inform the modem that several SMS messages will be sent in quick succession, and the link should be held open for more efficient transmission.
| Command | Possible Responses |
|---|---|
| AT+CMMS? \c{+CMMS: 0} | |
| AT+CMGS=? | +CMMS: (0-2) |
This implementation does not do anything special for this command. The underlying modem will hold the link open when it judges that it would be advantageous to do so.
AT+CPMS Preferred Message Storage
The AT+CPMS command can be used to set the preferred message storage for reading and writing SMS messages. The only message storage that is supported by this implementation is SM.
| Command | Possible Responses |
|---|---|
| AT+CPMS=<mem1>[,<mem2>[,<mem3>]] | +CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3> or +CME ERROR: <err> |
| AT+CPMS? | +CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3> |
| AT+CPMS=? | +CPMS: ((list of supported <mem1>s),(list of supported <mem2>s),(list of supported <mem3>s)) |
AT+CRES Restore Settings
The AT+CRES command restores SMS settings from EEPROM. This is not supported in this implementation.
| Command | Possible Responses |
|---|---|
| AT+CRES[=<profile>] | OK |
| AT+CRES=? | OK |
AT+CSAS Save Settings
The AT+CSAS command saved SMS settings to EEPROM. This is not supported in this implementation.
| Command | Possible Responses |
|---|---|
| AT+CSAS[=<profile>] | OK |
| AT+CSAS=? | OK |
AT+CSCA Service Center Address
The AT+CSCA command reads or modifies the SMS service center address on the SIM.
| Command | Possible Responses |
|---|---|
| AT+CSCA=<sca>[,<tosca>] | OK |
| AT+CSCA? | +CSCA: <sca>,<tosca> |
| AT+CSCA=? | OK |
Set command updates the SMS service center address on the SIM. Read command reports the current SMS service center address on the SIM.
AT+CSDH Show Text Mode Parameters
The AT+CSDH command controls whether extended text mode parameters are shown in response to AT+CMGL and AT+CMGR commands in text mode.
| Command | Possible Responses |
|---|---|
| AT+CSDH=<show> | OK, +CME ERROR: <err> |
| AT+CSDH? | +CSDH: <show> |
| AT+CSDH=? | +CSDH: (0,1) |
AT+CSMP Set Text Mode Parameters
The AT+CSMP command sets the additional parameters that are passed in the header of an SMS message when sending messages in text mode (AT+CMGF=1).
| Command | Possible Responses |
|---|---|
| AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]] | OK |
| AT+CSMP? | +CSMP: 1,167,0,0 |
| AT+CSMP=? | OK |
This implementation always sends SMS messages with the default GSM values, irrespective of what is set with AT+CSMP. Applications should use PDU mode for sending messages with specific header values.
AT+CSMS Select Message Service
The AT+CSMS command selects the short message service to use.
| Command | Possible Responses |
|---|---|
| AT+CSMS=<service> | +CSMS: <mt>,<mo>,<bm> |
| AT+CSMS? | +CSMS: <service>,<mt>,<mo>,<bm> |
| AT+CSMS=? | +CSMS: (list of supported <service>s) |
This implementation says that it supports service 0 and 1, mobile-terminated messages, mobile-originated messages, and cell broadcast messages, irrespective of the underlying modem's message support. The underlying modem will select the correct service automatically.
[Previous: Modem Emulator - GPRS] [Next: Modem Emulator - Ignored Commands]
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |