COPYRIGHT BENQ Corporation
This document contains proprietary technical information which is the property of BenQ
Corporation and is issued in strict confidential and shall not be disclosed to others parties in
whole or in parts without written permission of BenQ Corporation
The documents contain information on a product, which is under development and is issued
for customer evaluation purposes only.
BENQ may make changes to product specifications at any time, without notice.
1.1 Introduction to Interface between TE and MS---------------------------------------------2
1.2 Initial the Test Environment --------------------------------------------------------------------- 5
1.3 How to Handle SMS messages----------------------------------------------------------------- 5
2. IMPLEMENTED AT COMMANDS FOR MS--------------------------------11
2.1 Commands specified by GSM REC.27.07--------------------------------------------------11
2.1.1 General Commands----------------------------------------------------------------------------------------11
Request manufacturer identification +CGMI-----------------------------------------------------------------------------11
Request model identification +CGMM ------------------------------------------------------------------------------------11
Request revision identification +CGMR-----------------------------------------------------------------------------------12
Request product serial number identification +CGSN ----------------------------------------------------------------12
Select TE character set +CSCS --------------------------------------------------------------------------------------------13
Request international mobile subscriber identity +CIMI--------------------------------------------------------------15
Multiplexing mode +CMUX---------------------------------------------------------------------------------------------------16
PCCA STD-101[17] select wireless network +WS46------------------------------------------------------------------20
2.1.2 Call control commands------------------------------------------------------------------------------------21
Select Type of Address +CSTA---------------------------------------------------------------------------------------------21
Call mode +CMOD -------------------------------------------------------------------------------------------------------------22
Hang up call +CHUP-----------------------------------------------------------------------------------------------------------22
Select bearer service type +CBST-----------------------------------------------------------------------------------------23
Radio link protocol +CRLP ---------------------------------------------------------------------------------------------------24
Service reporting control +CR-----------------------------------------------------------------------------------------------25
Extended error report +CEER-----------------------------------------------------------------------------------------------27
Cellular result codes +CRC--------------------------------------------------------------------------------------------------27
Single numbering scheme +CSNS-----------------------------------------------------------------------------------------29
Dial command D ----------------------------------------------------------------------------------------------------------------30
2.1.3 Network service related commands--------------------------------------------------------------------31
Calling line identification presentation +CLIP ---------------------------------------------------------------------------39
Call line identification restriction +CLIR-----------------------------------------------------------------------------------41
Connected line identification presentation +COLP --------------------------------------------------------------------42
Closed user group +CCUG --------------------------------------------------------------------------------------------------44
Call forwarding service +CCFC ---------------------------------------------------------------------------------------------45
Call waiting service +CCWA-------------------------------------------------------------------------------------------------47
Short string procedure AT+CHLD------------------------------------------------------------------------------------------50
Unstructured supplementary service data +CUSD --------------------------------------------------------------------52
Advice of Charge +CAOC ----------------------------------------------------------------------------------------------------53
Supplementary service notifications +CSSN----------------------------------------------------------------------------54
Preferred PLMN list +CPOL -------------------------------------------------------------------------------------------------57
List current calls +CLCC------------------------------------------------------------------------------------------------------58
Read operator names +COPN----------------------------------------------------------------------------------------------60
Get neighbor cells +GNC-----------------------------------------------------------------------------------------------------61
2.1.4 Mobile control and status commands------------------------------------------------------------------61
Phone activity status +CPAS------------------------------------------------------------------------------------------------61
Set phone functionality +CFUN---------------------------------------------------------------------------------------------62
Enter PIN +CPIN----------------------------------------------------------------------------------------------------------------64
Battery charge +CBC----------------------------------------------------------------------------------------------------------65
Signal quality +CSQ------------------------------------------------------------------------------------------------------------66
Restricted SIM access +CRSM ---------------------------------------------------------------------------------------------67
Ringer sound level and ringer type select +CRSL ---------------------------------------------------------------------69
Loudspeaker volume level +CLVL -----------------------------------------------------------------------------------------70
Mute +CMUT---------------------------------------------------------------------------------------------------------------------70
Accumulated call meter +CACM--------------------------------------------------------------------------------------------72
Accumulated call meter maximum +CAMM -----------------------------------------------------------------------------72
Price per unit and currency table +CPUC--------------------------------------------------------------------------------73
Call Meter maximum event +CCWE---------------------------------------------------------------------------------------74
Set Voice Mail Number +CSVM --------------------------------------------------------------------------------------------75
List all available AT commands +CLAC ----------------------------------------------------------------------------------76
2.1.5 Commands related with phonebook service---------------------------------------------------------77
DTMF and tone generation +VTS------------------------------------------------------------------------------------------85
Play DTMF tone +WDTMF---------------------------------------------------------------------------------------------------86
Receive gain selection +VGR -----------------------------------------------------------------------------------------------87
Transmit gain selection +VGT-----------------------------------------------------------------------------------------------87
2.2 Commands related to short message service--------------------------------------------89
2.2.1 General Configuration Commands ---------------------------------------------------------------------93
Select Message Service +CSMS-------------------------------------------------------------------------------------------93
Preferred Message Storage +CPMS --------------------------------------------------------------------------------------94
Message Format +CMGF-----------------------------------------------------------------------------------------------------95
Service Centre Address +CSCA--------------------------------------------------------------------------------------------96
Set Text Mode Parameters +CSMP ---------------------------------------------------------------------------------------97
Show Text Mode Parameters +CSDH ------------------------------------------------------------------------------------98
Select Cell Broadcast Message Types +CSCB-------------------------------------------------------------------------99
Save Settings +CSAS -------------------------------------------------------------------------------------------------------101
Restore Settings +CRES ---------------------------------------------------------------------------------------------------102
2.2.3 Message Receiving and Reading Commands-----------------------------------------------------103
New Message Indications to TE +CNMI--------------------------------------------------------------------------------103
List Messages +CMGL------------------------------------------------------------------------------------------------------106
Read Message +CMGR-----------------------------------------------------------------------------------------------------108
NEW Message Acknowledgement to ME/TA +CNMA--------------------------------------------------------------109
2.2.4 Message Sending and Writing Commands --------------------------------------------------------110
Send Message +CMGS-----------------------------------------------------------------------------------------------------110
Send Message from Storage +CMSS-----------------------------------------------------------------------------------112
Write Message to Memory +CMGW-------------------------------------------------------------------------------------113
Delete Message +CMGD---------------------------------------------------------------------------------------------------114
Send Command +CMGC---------------------------------------------------------------------------------------------------114
List Message +CMGL--------------------------------------------------------------------------------------------------------115
Read Message +CMGR-----------------------------------------------------------------------------------------------------117
Send Message +CMGS-----------------------------------------------------------------------------------------------------118
Send Message from Storage +CMSS-----------------------------------------------------------------------------------119
Write Message to Memory +CMGW-------------------------------------------------------------------------------------120
2.3 Commands specified by ITU-T Rec. V25ter as by GSM Rec. 07.07--------------120
2.3.1 Generic TA control commands------------------------------------------------------------------------120
Repeating a command line (A/)-------------------------------------------------------------------------------------------120
Reset to default configuration (Z)-----------------------------------------------------------------------------------------121
Set to factory-defined configuration (&F)-------------------------------------------------------------------------------122
Request identification information (I) ------------------------------------------------------------------------------------123
Request manufacturer identification (+GMI)---------------------------------------------------------------------------124
Request model identification (+GMM)-----------------------------------------------------------------------------------125
Request revision identification (+GMR)---------------------------------------------------------------------------------125
Request product serial number identification (+GSN) --------------------------------------------------------------126
Request complete capabilities list (+GCAP)---------------------------------------------------------------------------127
Command line termination character (S3) -----------------------------------------------------------------------------128
Response formatting character (S4)-------------------------------------------------------------------------------------129
Command line editing character (S5) -----------------------------------------------------------------------------------130
Command echo (E) ----------------------------------------------------------------------------------------------------------131
Result code suppression (Q) ----------------------------------------------------------------------------------------------132
DCE response format (V)---------------------------------------------------------------------------------------------------133
Result code selection and call progress monitoring control (X) --------------------------------------------------134
Circuit 109 (Received line signal detector) behavior (&C) ---------------------------------------------------------136
Circuit 108 (Data terminal ready) behavior (&D)----------------------------------------------------------------------136
Fixed DTE rate (+IPR)-------------------------------------------------------------------------------------------------------138
DTE-DCE character framing (+ICF) -------------------------------------------------------------------------------------139
DTE-DCE local flow control (+IFC)---------------------------------------------------------------------------------------141
DTE-DCE local rate reporting (+ILRR)----------------------------------------------------------------------------------142
2.3.2 Call Control commands and response --------------------------------------------------------------144
Dial (D) --------------------------------------------------------------------------------------------------------------------------144
Wait for dial tone (W) --------------------------------------------------------------------------------------------------------146
Select tone dialling (dial modifier) (T) -----------------------------------------------------------------------------------147
Select pulse dialing (dial modifier) (P)-----------------------------------------------------------------------------------147
Answer (A)----------------------------------------------------------------------------------------------------------------------148
Hook control (H)---------------------------------------------------------------------------------------------------------------149
Automatic answer (S0)------------------------------------------------------------------------------------------------------150
Monitor speaker loudness (L)----------------------------------------------------------------------------------------------151
2.3.3 Data Compression commands ------------------------------------------------------------------------152
Data compression (DS) -----------------------------------------------------------------------------------------------------152
Data compression reporting (DR) ----------------------------------------------------------------------------------------153
2.4 Command specified by ITU-T Rec. T.32 --------------------------------------------------156
Facsimile Connection +FCO-----------------------------------------------------------------------------------------------159
Report DCS Frame Information +FCS ----------------------------------------------------------------------------------160
Report DTS Frame Information +FTC-----------------------------------------------------------------------------------162
Report DIS Frame Information +FIS-------------------------------------------------------------------------------------163
Remote Polling Indication +FPO------------------------------------------------------------------------------------------163
Report Remote ID +FTI -----------------------------------------------------------------------------------------------------164
Report Remote ID +FPI-----------------------------------------------------------------------------------------------------165
Report Remote ID +FCI-----------------------------------------------------------------------------------------------------165
Report NSC Frames +FNC-------------------------------------------------------------------------------------------------166
Report NSF Frames +FNF -------------------------------------------------------------------------------------------------166
Report NSS Frames +FNS-------------------------------------------------------------------------------------------------167
Report Password +FPW ----------------------------------------------------------------------------------------------------168
Report Destination Subaddress +FSA ----------------------------------------------------------------------------------168
Report Polling Address +FPA ---------------------------------------------------------------------------------------------169
Report T.30 Phase C Page Reception +FPS -------------------------------------------------------------------------169
Post Page Messages Response +FET ---------------------------------------------------------------------------------171
Transition to Voice +FVO---------------------------------------------------------------------------------------------------171
Call Termination Status +FHS---------------------------------------------------------------------------------------------172
Report Transmit HDLC Frames +FHT ----------------------------------------------------------------------------------175
Report Received HDLC Frames +FHR ---------------------------------------------------------------------------------176
2.4.3 Service Commands --------------------------------------------------------------------------------------177
Service Class +FCLASS----------------------------------------------------------------------------------------------------177
DCE Capabilities Parameter +FCC--------------------------------------------------------------------------------------178
Current Session Parameter +FIS-----------------------------------------------------------------------------------------179
Current Session Result +FCS---------------------------------------------------------------------------------------------180
Local Facsimile Station ID String +FLI----------------------------------------------------------------------------------180
Local polling ID String +FPI------------------------------------------------------------------------------------------------181
Non-Standard Frame FIF Octet String +FNS -------------------------------------------------------------------------182
Indicate Document to Poll +FLP------------------------------------------------------------------------------------------183
Request to Poll +FSP--------------------------------------------------------------------------------------------------------183
Capability to Receive +FCR -----------------------------------------------------------------------------------------------184
HDLC Frame Reporting +FBU --------------------------------------------------------------------------------------------185
Negotiation Reporting +FNR-----------------------------------------------------------------------------------------------185
Address and Polling Capabilities +FAP---------------------------------------------------------------------------------186
Address and Polling Frames/Subaddress +FSA ---------------------------------------------------------------------187
Address and Polling Frames/Polling Address +FPA ----------------------------------------------------------------188
Address and Polling Frames/Password +FPW -----------------------------------------------------------------------188
Procedure Interrupt Enable +FIE-----------------------------------------------------------------------------------------189
Page Status +FPS------------------------------------------------------------------------------------------------------------190
Copy Quality Checking +FCQ---------------------------------------------------------------------------------------------191
Receive quality Thresholds +FRQ ---------------------------------------------------------------------------------------192
Adaptive Answer +FAA------------------------------------------------------------------------------------------------------193
DTE Phase C Response Timeout +FCT -------------------------------------------------------------------------------193
Call Termination Status +FHS---------------------------------------------------------------------------------------------194
ECM Retry Count +FRY ----------------------------------------------------------------------------------------------------195
Minimum Phase C Speed +FMS -----------------------------------------------------------------------------------------196
Inactivity Timeout +FIT------------------------------------------------------------------------------------------------------196
Minimum Phase C Speed +FMS -----------------------------------------------------------------------------------------197
Report Buffer Size +FBS ---------------------------------------------------------------------------------------------------198
Packet Protocol Control +FPP --------------------------------------------------------------------------------------------198
Data Bit Order +FBO---------------------------------------------------------------------------------------------------------199
Phase C Received EOL Alignment +FEA------------------------------------------------------------------------------200
Image Data Format Conversion +FFC----------------------------------------------------------------------------------200
Modem ID +FMI---------------------------------------------------------------------------------------------------------------201
Model ID +FMM---------------------------------------------------------------------------------------------------------------202
Revision ID +FMR------------------------------------------------------------------------------------------------------------202
Flow Control +FLO -----------------------------------------------------------------------------------------------------------203
DCE Initialization--------------------------------------------------------------------------------------------------------------203
Send One Page ---------------------------------------------------------------------------------------------------------------204
Receive One Page -----------------------------------------------------------------------------------------------------------205
2.5 GPRS related commands----------------------------------------------------------------------205
In order to communicate each other between TE and MS, we must use AT
commands. Figure 1.1 illustrates the interface. In section 2, we will divide the
content into ten subsections. They are about SIM, list management, mobility
management, call control, supplementary service, short message, cell broadcast,
base-band and the other service.
AT COMMAND
TEMS
Figure 1.1
Explanation
ME Mobile equipment
MS Mobile station. Basically, a mobile station is mobile
equipment with a SIM card.
TE Terminal Equipment that is the same as the controller in
this case.
Getting started
For testing AT commands, the MS can be connected to any computer
environment, as long as it has a V.24/V.28 serial interface. The commands can be
issued with, for example, HyperTerminal in Microsoft Windows or other emulator
programs.
Syntax description
The section gives a brief description of the syntax used for the command set.
The MS may echo characters received, depending on the setting of the command
E. As a default, echo is enabled, and characters are echoed at the same rate,
parity, and format as received.
The character defined by parameter S5 (default, BS, IRA 8) is interpreted as
request from the TE to delete the previous character.
<CR> Carriage return character, whose value is specified by
command S3, default IRA 13.
<LF> Line feed character, whose value is specified by
command S4, default IRA 10.
<…>
The name enclosed in angle brackets is a syntactical
element. The brackets do not appear in the command
line.
[…]
Strings enclosed in square brackets are optional items
(sub-parameters). The brackets do not appear in the
command line.
Other characters, including ‘?’,’=’, parentheses, etc, appear in commands and
response as written.
AT command syntax
A command line is made up of three elements: the prefix, the body and the
termination character. The command line prefix consists of the characters ‘AT’.
MS supports a set of commands referred to as basic syntax commands, and a
set of extended syntax commands, the latter prefixed with a plus sign (+).
Basic syntax command
The format of basic syntax commands, except for the command D, is as
follows:
<name>[<value>]
Example: ATV1<CR> (set text form result codes)
<CR><LF>OK<CR><LF>(response)
Extended syntax command
+<name>[=<value>]
Example: AT+CMUT=0<CR>( the representation of signal strength)
<CR><LF>OK<CR><LF>(response)
Test command syntax
Example: AT+CACM?<CR>(show current accumulated call meter value)
<CR><LF>+CACM: ”0”<CR><LF>(response)
<CR><LF>OK<CR><LF>
If the indicated name is not recognized, an Error code is issued.
AT response syntax
The default response is text mode that is shown below. See the command V
for further details. The format of a response is as follows:
<CR><LF>[<response>]<CR><LF>
The <response> can be:
•Basic format result code, such as OK.
•Extended syntax result code, prefixed with a plus sign (+) :
+<name>: <value>
The result codes are separate by commas if it’s included several values. The
<value> followed by the colon is separated by a space. It is also possible that
result codes have no value. Unlike basic format result codes, extended syntax
result codes have no numeric equivalent, and are always issued in alphabetic
form.
There are two types of result code responses:
Final result code
A final result code indicates to the TE that execution of the command is
completed and another command may be issued.
If you typed an implemented AT command, you should get the result code OK.
If you typed an AT command that was not implemented, or which had the
wrong parameter or syntax, you will get the result code ERROR or else, for
example, +CME ERROR followed by an error code.
Unsolicited result code
Unsolicited result codes, such as RING, indicate the occurrence of an event
not directly associated with a command being issued from TE.
-Initial the connection port with 115200 bps and none flow control
Initial the MS.
-Put the SIM card into ME and power on the ME.
-Start all of AT Commands with “AT+CFUN=1”
-Camp on the cell with “AT+COPS=0”
1.3 How to Handle SMS messages
This section gives examples of the AT commands for sending and receiving SMS
(Short Messages Service) messages.
Whatever the destination of the SMS message, the message is always sent via a
Service Center (SC). One of the SC’s jobs, among others, is to forward SMS
messages to the destination, or save the SMS until the receiving MS becomes
available in the GSM network. The message can be stored at the SC up to a
maximum time period decided by the sender. Also the message is “time stamped”
at the SC and its contents are interpreted according to choices made by the
sender.
The conclusion of this is that an SMS message, along with other information
decided upon by the sender, always contains 2 addresses. First the Service Center
Address (SCA), and then the destination address. Also, other useful information is
added at the SC.
Setting Service Center Address (SCA)
The service center address is usually stored on the SIM card, but it can be set
manually by using the AT command AT+CSCA. Note that the SCA must be given
in the international phone number format.
Format of an SMS message
It is important to realize that SMS messages could be sent in two modes: text
mode and PDU mode, which is described in detail in the GSM specifications 3GPP
27.005, 3GPP 23.040 and 3GPP 23.038.
Because text mode is followed the format of input parameters, it is clear to execute
the commands. We now focus on the introduction of PDU mode.
What is PDU mode? First a PDU is a Service Center Address (SCA) followed by a
Transport Protocol Data Unit (TPDU). There are several formats of TPDU, but we
now only use two forms here:
SMS-SUBMIT TPDU Outgoing SMS messages “submitted” to the SM from
the originating MS.
SMS-DELIVER TPDU Incoming SMS messages “delivered” by the SC to final
destination MS.
Therefore we have the following general format of an SMS message:
PDU=SCA+TPDU
The TPDU format is a hexadecimal encoded binary format, which means that 2
hexadecimal digits represent a byte or an octet. In general there is a header part of
the TPDU, containing the control information, and the follows user data, which can
be any type of information (default 7-bit GSM alphabet, 8-bit ISO 8859-1 alphabet
or even 8-bit data).
Let’s start with some examples of PDU SMS messages using an SMS-SUBMIT
type TPDU. For simplicity’s sake we will send a text message that reads “TEST”,
using the default GSM 7-bit alphabet.
Here is the message written out in full:
0011000B916407861582F50000A704D4E2940A
Equivalently, we could write this as:
07916407058099F911000B916407861582F50000A704D4E2940A
These two have one difference, and that is how we have chosen to describe the
SCA. In the first SMS we use:
00 This is a valid SCA with a length equal to zero.
Therefore we are using the default SCA given by the
SIM card, or as given by the AT command AT+CSCA.
07916407058099F9 Here is the SCA hex encoded binary. The first octet
(07) is a length indicator, in this case there are 7 octets
to follow. The second octet (91) tells us about the
numbering plan and type of number of the coming
address. In this case the 91 says that the address is in
international phone number format. Then follows the
actual service center address (6407058099F9). Every
pair of digits is swap, that there is an odd number of
digits in the phone number and therefore, a half byte of
fill digits is required at the end (hence the hexadecimal
F9). The exact meaning of all the octets and fields in
the SCA address is described in detail in 3GPP
23.040.
Let’s analyze the message by breaking it down into its component parts:
11 This octet contains many 1-bit and 2-bit fields that are
described in detail in GSM 03.40. These include:
- TP-MTI : message type indicator
- TP-RD : more messages waiting indicator
- TP-VPF : validity period format
- TP-SRR : status report request flag
- TP-UDHI : user data header indicator flag
- TP-RP : reply path setting flag
00 This octet is only associated with the 8-bit field TP-MR
and is basically a message reference number, which
can be chosen by the user. Here we set the message
reference number to zero (00HEX).
0B916407861582F5 This is the destination address (TP-DA). The format of
the address field is given in detail in 3GPP 23.040. It is
similar to the format of the SCA, but now it refers to the
phone number of the receiving MS. The first octet (0B)
is a phone number length indicator. In this case the
phone number of the destination MS consists of 11
digits. The second octet (91) is the numbering plan and
type of number of the coming address. The address is
in international phone number format. Then follows the
mobile number with every pair of digits in reverse
order, and because we have an odd number of digits a
half octet of fill bits are required (hence the F5HEX).
00 This is the protocol ID (TP-PID) which refers to a
possible higher level protocol being used or indicates
inter-working with certain types of telematic devices.
This can usually be left set to zero.
00 This is the data coding scheme field (TP-DCS) that is
described in detail in 3GPP 23.038. Basically this octet
tells us what kind of user data is being sent. For
instance, if we are using a 7-bit or 8-bit alphabet, or we
are sending 8-bit data. It also informs the receiving MS
about the class of the SMS message, which tells it how
to handle and store the incoming SMS message.
A7 This is the validity period (TP-VP). The validity period
is how long the SC will store the SMS, waiting for the
receiving MS to come in contact with the GSM
network. If the SMS is not received by the destination
MS within this time, then the message will be
discarded. 3GPP 23.040 describes this field in detail.
04 TP-UDL. This is the length of the user data. It is given
in septets, if TP-DCS describes the message as using
the default 7-bit GSM alphabet, or octets otherwise.
D4E2940A Finally we come to the user data (TP-UD). This is
4-septets long, defined above in TP-DCS and TP-UDL.
The message reads “TEST”. Note the one character is
not represented by one octet, but by a septet (7-bits),
and therefore it can be quite complicated to decipher a
GSM text SMS by looking at the PDU. 3GPP
specification 23.038 describes in detail how the 7-bit
GSM alphabet works and how to convert from the
hexadecimal to the characters. You may know that one
can send 160 characters in an SMS message. This is
only possible in 140 bytes using a 7-bit alphabet
Before we finish we should also take a look at the TPDU of SMS-DELIVER type.
This is the PDU one would see when reading an SMS that has been sent to the
module.
07916407058099F9040B916407861582F500009910702123040004D4E2940A
The TPDU breaks down as follows:
04 TP-MTI, TP-MMS, TP_SRI, TP-UDHI, TP-RP
0B916407861582f5 This is the originating address (TP-OA)
00 TP-PID
00 TP-DCS
99107021230400 This is the service center time stamp. Every pair of
digits are reversed. This time stamp reads, in octets
from left to right: the date 990107 (year, month, day),
the time 123240 (hours, minutes, seconds). Finally the
last octet is a reference for the difference in time
between local time and GMT.
04 TP-UDL
D4E2940A TP-UD
Sending SMS messages
The AT command to use is AT+CMGS. Notice that this is the length of the TPDU
and not the PDU, so it does not include the SCA. The length of the message is 4
octets and the message reads “TEST”.
Example1:
A user would like to send a GSM 7 bit alphabet text “TEST” to number
“0910123456”, he may use
AT+CMGS=17<CR>
>0011000A8190012143650000A704D4E2940A<CTRL-Z>
+CMGS:122 ( depends on the MS)
OK
Reading SMS message from storage
To read SMS messages from storage, the AT commands AT+CMGL and
AT+CMGR should be used.
Example1:
AT+CMGR=1
+CMGR: 1,,23
07916407058099F9040B916407950303F100008921222140140004D4E2940A
OK
Example2:
AT+CMGL=4 The 4 here means “all messages”.
+CMGL: 1,1,23
07916407058099F9040B916407950303F100008921222140140004D4E2940A
+CMGL: 2,1,26
07916407058099F9040B916407950303F10000892122216000000841E19058341
1E91
+CMGL: 3,1,27
07916407058099F9040B916407950303F10000892122217064000941E19058341
E9149
OK
To delete an SMS message from the selected <mem1>, use the AT+CMGD
command.
Example1:
AT+CMGD=1
OK
Memory management
Once both SM are full, then the module will receive no new messages and SMS
messages will be buffered in the Service Center until the following happens:
The validity period of the message expires. The validity period is set by
TP-VP.
A message is deleted by using AT+CMGD. An empty memory position
becomes available and the module can receive a new message.
There are other ways to control the storage of SMS messages. In the TPDU field,
TP-DCS, one can set the class of the SMS message. Basically the different SMS
classes are as follows:
Classless SMS (TP-DCS=00hex). This is usually the type sent by a mobile
telephone. They are stored in the available memory.
Class 0 SMS (TP-DCS=F0hex). These are not stored anywhere, but are
sent directly to the telephone display. Since there is no
display one can forward the messages to the TE by
means of the AT command setting AT+CNMI=3,2
Class 1 SMS (TP-DCS=F1hex). These are directed specifically to ME if
there is a memory storage available, otherwise it will be
stored in SM.
Class 2 SMS (TP-DCS=F2hex). These are directed specifically to SM.
Class 3 SMS (TP-DCS=F3hex). These messages shall normally be
transferred to the terminal equipment or application, if
requested to do so, This is controlled by the AT command
AT+CNMI
For a deeper explanation and more information regarding the different SMS
classed and their use see the 3GPP specification 23.038.
Read serial number identification which determined by ME manufacturer.
Defined values
<sn >: total number of characters shall not exceed 2048 characters.
Informative examples
-Initial the HyperTerminal
-Initial the MS without SIM card
-AT Command
AT+CGSN<CR>
IMEI: 44601919750759-5
IMEISV: 44601919750759-00
OK
Select TE character set +CSCS
Table: +CSCS parameter command syntax
Command Possible response(s)
+CSCS=[<chset>]
+CSCS? +CSCS: <chset>
+CSCS=? +CSCS: (list of supported <chset>s)
Description
Set command informs TA of which character set “<chset>” is used by the TE. TA
is then able to convert character strings correctly between TE and ME character
sets.
When TA-TE interface is set to 8-bit operation and used TE alphabet is 7 bit, the
highest bit shall be set to zero.
Read command returns the current setting and test command displays conversion
schemes implemented in the TA.
Note Appendix D will explain the correspondence between TE and ME at
phonebook commands, such as +CPBR,+CNUM,+CPBW,+CPBF.
GSM default alphabet
Character strings consist only of hexadecimal numbers
from 00 to FF;e.g. “032FE6” equals three 8-bit
characters with decimal values 3,47 and 230;no
conversions to the original ME character set shall be
done.
“IRA”
“UCS2”
International reference alphabet
16-bit universal multiple-octet coded character set;
UCS2 character strings are converted to hexadecimal
numbers from 0000 to FFFF. ; e.g. “004100620063”
equals three 16-bit characters with decimal values 65,98
and 99.
“8859-1”
“PCCP437”
“PCDN”
ISO 8859 Latin 1 character set
PC character set Code Page 437
PC Danish/Norwegian character set
Informative examples
-Initial the HyperTerminal
-Initial the MS without SIM card
-AT Command
1.
AT+CSCS=? <CR>
+CSCS: "GSM","IRA","PCCP437","PCDN","8859-1","HEX","UCS2"
OK
2.
AT+CSCS= “GSM”
+CSCS: “GSM”
OK
AT+CSCS? <CR>
+CSCS: “GSM”
OK
+CME ERROR:<err>
+CMUX=? +CMUX: (list of supported <mode>s), (list of
supported <subset>s), (list of supported
<port_speed>s), (list of supported <N1>s), (list
of supported <T1>s), (list of supported
<N2>s), (list of supported <T2>s), (list of
supported <T3>s), (list of supported <k>s)
Description
This command is used to enable/disable the GSM 07.10 multiplexing protocol
control channel. Refer to subclause 9.2 for possible <err> values. The AT
commands sets parameters for the Control Channel. If the parameters are left out,
the default value is used.
Read command returns the current mode and the settings.
Test command returns the supported modes and parameters.
It is recommended that the ME/TA/TE should autobaud to the +CMUX command
up to and including an interface speed of 9600 bits/s.
The OK or +CME ERROR: <err> response is returned at the speed of the +CMUX
command prior to entering <mode>.
It is recommended that whenever the multiplexer control channel is released the
ME/TA/TE should assume an interface rate of up to and including 9600 bits/s for
auto bauding purposes irrespective of any previous higher speed having been
selected.
If a +CMUX command is issued whilst in any multiplexer mode then that +CMUX
command shall be ignored and the ME/TA shall return an +CME ERROR: <err>
response.
Defined values
<operation> ( multiplexer Transparency Mechanism)
0 Basic option (not support in current version)
1 Advanced option
<subset>:
This parameter defines the way in which the multiplexer control channel is set up.
A virtual channel may subsequently be set up differently but in the absence of any
negotiation for the setting of a virtual channel, the virtual channel shall be set up
according to the control channel <subset> setting.
0 UIH frames used only.
1 UI frames used only.
2 I frames used only.
Default value:0
UIH control frame to DLC 1 with modem status message
(retarnsmit)
As you can see the TE do not response the UIH control frame at all. The
module just retransmit the frame until for N2 times. After retrying N2 times, the
module give up.
PCCA STD-101[17] select wireless network +WS46
Table: +WS46 parameter command syntax
Command Possible response(s)
+WS46=[<n>]
+WS46 <n>
+WS46=? (list of supported <n>s)
Description
Set command selects to WDS side stack <n> to be used by the TA. Read
command shows current setting and test command displays side stacks
implemented in the TA.
Command Possible response(s)
+CSTA=<type> OK
+CSTA? +CSTA: <type>
+CSTA=? +CSTA: (list of supported <type>s)
Description
Set command selects the type of number for further dialing command (D)
according to GSM/UMTS specifications. Test command returns values
supported by the TA as a compound value.
Defined values
<type>: type of address octet in integer; default 145 when dialing string
includes international access code character “+”, otherwise 129.
Command Possible response(s)
+CMOD=[<mode>]
+CMOD? +CMOD: <mode>
+CMOD=? +CMOD: (list of supported <mode>s)
Description
Set command selects the call mode of further dialing commands (D) or for
next answering command (A). Mode can be either single or alternating. Test
command returns values supported by the TA as a compound value.
Defined values
<mode> : 0 single mode
1 alternating voice/fax (teleservice 61)
2 alternating voice/data (bearer service 61)
3 voice followed by data (bearer service 81)
Execution command causes the TA to hang up the current GSM/UMTS call of
the ME.
Select bearer service type +CBST
Table: +CBST parameter command syntax
Command Possible response(s)
+CBST=[speed>[,<name>
[,<ce>]]]
+CBST? +CBST: <speed>,<name>,<ce>
+CBST=? +CBST: (list of supported <speed>s),(list of
supported <name>s), (list of supported <ce>s)
Description
Set command selects the bearer service <name> with data rate <speed>, and
the connection element <ce> to be used when data calls are originated.
Values may also be used during mobile terminated data call setup, especially
in case of single numbering scheme calls.
Test command returns values supported by the TA as compound values.
+CRLP=? +CRLP: (list of supported <iws>s), (list of
supported <mws>s), (list of supported <T1>s),
Description
Radio link protocol (RLP) parameters used when non-transparent data calls
are originated may be altered with set command. Available command
subparameters depend on the RLP versions implemented by the device (currently
only version 1 is supported).
Read command returns current setting for supported RLP version. Test
command returns values supported by the TA as a compound value.
Defined values
<iws>,<mws>,<T1>,<N2>: IWF to MS window size, MS to IWF window size,
acknowledgement timer T1, retransmission attempts N2: T1 is in units of 10
ms.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CRLP=?
+CRLP: (0-61), (0-61), (39-255),(1-255)
OK
AT+CRLP?
+CRLP: 61,61,48,6
OK
Service reporting control +CR
Table: +CR parameter command syntax
Command Possible response(s)
+CR=[<mode>]
+CR? +CR: <mode>
+CR=? +CR: (list of supported <mode>s)
Set command controls whether or not intermediate result code +CR: <serv> is
returned from the TA to the TE. If enabled, the intermediate result code is
transmitted at the point during connect negotiation at which the TA has
determined which speed and quality of service will be used, before any error
control or data compression reports are transmitted, and before the
intermediate result code CONNECT is transmitted.
Command Possible response(s)
+CEER +CEER: <report>
Description
Execution command causes the TA to return one or more lines of information
text <report>, determined by the ME manufacturer, which should offer the user
of the TA an extended report of the reason for
- the failure in the last unsuccessful call setup or in-call modification;
- the last call releases;
Typically, the text will consist of a single line containing the cause Information
given by GSM/UMTS network in textual format.
Defined values
<report>: the total number of characters shall not exceed 2041 characters.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CEER
+CEER: no error
OK
ATD0920123456;
OK
NO CARRIER (disconnect by remote side)
+CRC=[<mode>]
+CRC? +CRC: <mode>
+CRC=? +CRC: (list of supported <mode>s)
Description
Set command controls whether or not the extended format of incoming call
indication is used. When enabled, an incoming call is indicated to the TE with
unsolicited result code +CRING: <type> instead of the normal RING.
Test command returns values supported by the TA as a compound value.
VOICE/XXX voice followed by data (BS81) (XXX is ASYNC, SYNC, REL
ASYNC or REL SYNC)
ALT VOICE/XXX alternating voice/data, voice first (BS 61)
ALT XXX/VOICE alternating voice/data, data first (BS 61)
ALT VOICE/FAX alternating voice/fax, voice first (TS 61)
ALT FAX/VOICE alternating voice/fax, fax first (TS 61)
GPRS <PDP_type>, <PDP_addr>[,[<L2P>][,<APN>]] GPRS network
request for PDP context activation
<PDP_type>, <PDP_addr> and <APN> are as defined in the Define PDP Context
(+CGDCONT) command. The optional <L2P> proposes a layer 2 protocol to use
between the MT and the TE. It is defined in the Enter GPRS Data Mode
(+CGDATA) command.
Command Possible response(s)
+CSNS=[<mode>]
+CSNS? +CSNS: <mode>
+CSNS=? +CSNS: (list of supported <mode>s)
Description
Set command selects the bearer or teleservice to be used when mobile
terminated single numbering scheme call is established. Parameter values set
with +CBST command shall be used when <mode> equals to a data service.
Test command returns values supported by the TA as a compound value.
Defined values
<mode> :
0 voice
1 alternating voice/fax, voice first (TS 61)
2 fax (TS 62)
3 alternating voice/data, voice first (BS 61)
4 data
5 alternating voice/fax, fax first (TS 61)
6 alternating voice/data, data first (BS 61)
7 voice followed by data (BS 81)
Informative example
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CSNS=?
+CSNS: (0-7)
OK
AT+CSNS?
+CSNS: 0
OK
AT+CSNS=8
ERROR
Dial command D
ATD<dial string>[I/I] [G/g] [;]
When semicolon character is given after dialing digits (or modifiers), a voice call
originated to the given address.
I or I (override the CLIR supplementary service subscription default value for this
call; I=invocation (restrict CLI presentation) and i = suppression (allow CLI
presentation).
G or g (control the CUG supplementary service information for this call; uses index
and info values set with command +CCUG.
Direct dialing from phonebooks
1. ATD><str>[I] [G] [;]
Originate call to phone number which corresponding alphanumeric field is <str> (if
possible, all available memories should be searched for the correct entry).
2. ATD>mem<n> [I] [G] [;]
Originate call to phone number in memory “mem” entry location <n> (mem is “SM”, “LD”, “MC”, “ME”, “RC”, “MT” or “SN”. Available memories may be queried with
Select Phonebook Storage test command +CPBS=? )
3. ATD><n> [I] [G] [;]
Originate call to phone number in entry location <n> (it is manufacturer specific
which memory storage of ME, SIM/UICC and TA is used; command Select
Phonebook Memory Storage +CPBS setting is recommended to be used).
Informative examples
-Initial the HyperTerminal
-Initial the MS
-Initial the alpha id of first physical record in AND is “A”
Set command returns the MSISDN related to the subscriber (this information can
be stored in the SIM or in the ME.) If subscriber has different MSISDN for different
services, each MSISDN is returned in a separate line (<CR><LF>).
Defined values
<number>: string type; phone number
<alpha>:string type; optional alphanumeric string associated with
<number>;used character set should be the one selected with command
Select TE Character Set +CSCS.
<type>: integer value
129 National
145 International
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1.Power on MS but SIM is not ok
AT+CPIN?
+CME ERROR: 10
AT+CNUM
+CME ERROR: 10
2.Power on MS and SIM is ok
AT+CPIN?
+CPIN: READY
OK
AT+CNUM
+CNUM: “ABC”,”0920123456”,129
OK
Network registration +CREG
Table: +CREG parameter command syntax
Command Possible response(s)
+CREG=[<n>] +CME ERROR:<err>
+CREG? +CREG: <n>,<stat>
Set command controls the presentation of an unsolicited result code code +CREG:
<stat>when <n>=1 or 2.
Read command returns the status of result code presentation and an integer
<state> which shows whether the network has currently indicated the registration
of the ME.
Test command returns a list of supported <n>.
Defined values
<n>:integer value
0 <default> Disable network registration unsolicited result code.
1 Enable network registration unsolicited result code
+CREG: <stat>.
2 Enable network registration and location information
unsolicited result code +CREG: <stat>[,<lac>,<ci>]
<state>:integer value
0 Not registered, ME is not currently searching a new
operator to register to (NO SERVICE)
1 Registered, home network
2 Limiting Service: not registered but ME is currently
searching a new operator to register to
3 Limiting Service: registration denied
4 Unknown
5 Registered, roaming
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. Disable network registration unsolicited result code
AT+CREG=0
+CME ERROR: <err>
+COPS=? +COPS: [list of supported(<state>,[long
alphanumeric<oper>], [short
alphanumeric<oper>], numerica <oper>)s]
[,,(list of supported <mode>s), (list of
supported <format>s)]
+CME ERROR: <err>
Description
1. Set command forces an attempt to select and register the GSM network
operator. <mode> is used to select whether the selection is done automatically by
the ME or is forced by this command to operator <oper>
2. Read command returns the current mode and the currently selected operator. If
no operator is selected, <format> and <oper> are omitted.
3. Test command returns a list of quadruplets, each representing an operator
present in the network. Quadruplet consists of an integer indicating the availability
of the operator <state>,long and short alphanumeric format of the name of the
operator, and numeric format representation of the operator. Any of the formats
may be unavailable and should then be an empty field. The list of operators shall
be in order: home network, networks referenced in SIM, and other networks.
In addition, after the operator list, TA returns lists of supported <mode>s and
<format>s delimited from the operator list by two commas.
Defined values
<mode>: integer value
0 Auto selection
1 Manual selection
3
Set only <format>,don’t attempt registratio.<oper> shall
be omitted.
4 Manual/automatic (<oper> fields shall be present);if
0 Long format alphanumeric <oper>
1 Short format alphanumeric <oper>
2 Numeric <oper>
<oper>:string type; numeric format is the GSM Location Area Identification number
which consists of a three BCD digit country code coded as in ITU-T E.212 Annex
A[10], plus a two BCD digit network code, which is administration specific; returned
<oper> shall not be in BCD format, but in IRA characters converted from BCD;
hence the number has structure: (country code digit3)(country code digit2)(country
code digit1)(network code digit2)(network code digit1)
2. List all available network and manual selection of network
AT+COPS=?
+COPS: (2,"ROC LDTA GSM","LDGSM","46692"), (3,"TWN GSM
1800","PCC","46697"),(1,"FarEasTone","FET","46601"),(3,"KGT-Online","KGT","46
688")
OK
AT+COPS=1,2,”46601”
OK
Facility Lock AT+CLCK
Table: +CLCK parameter command syntax
Command Possible response(s)
+CLCK=<fac>,<mode>[,<
passwd>]
Execution command is used to lock, unlock or interrogate a ME or a network
facility <fac>. Password is normally needed to do such actions. When querying the
status of a network service (<mode>=2) the response line for ‘not active’ case
(<status>=0) should be returned only if service is not active for any <class>. This
command should be abortable when network facilities are set or interrogated.
Call barring facilities are based on GSM supplementary services. The interaction of
these with other commands based on other GSM supplementary services is
described in the GSM standard.
Test command returns facility values supported by the TA as compound value.
Defined Values
<fac>:
“SC”
“AO”
“OI”
“OX”
“AI”
“IR”
“AB”
“AG”
“AC”
“FD”
“PS”
“PN”
“PU”
PIN enabled (<mode>=1) / disabled (<mode> = 0)
BAOC (Barr All Outgoing Calls)
BOIC (Barr Outgoing International Calls)
BOIC-exHC (Barr Outgoing International Calls except to Home
Country)
BAIC (Barr All Incoming Calls)
BIC-Roam (Barr Incoming Calls when Roaming outside the home
country)
All Barring services
All outgoing barring services
All incoming barring services
SIM fixed dialling Numbers (FDN) memory feature (if PIN2
authentication has not been done during the current session, PIN2 is
required as <passwd>
SIM personalisation
Network personalisation of the ME
Network subset personalisation of the ME
“PP”
“PC”
“PF”
Service provider personalisation of the ME
Corporate personalisation of the ME
Personalisation on first inserted SIM
Command Possible response(s)
+CPWD=<fac>, <oldpwd>, <newpwd> +CME ERROR: <err>
+CPWD=? +CPWD: list of supported
(<fac>, <pwdlength>)s
+CME ERROR: <err>
Description
Action command sets a new password for the facility lock function defined by
command Facility Lock +CLCK.
Defined values
<fac>: “P2” SIM PIN2, refer Facility Lock +CLCK for other values
<oldpwd>, <newpwd>: string type; <oldpwd> shall be the same as password
specified for the facility from the ME user interface or with command Change
Password +CPWD and <newpwd> is the new password; maximum length of
password can be determined with <pwdlength>
<pwdlength>: integer type maximum length of the password for the facility
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CPWD=?
+CPWD:("SC",4),("AO",4),("OI",4),("OX",4),("AI",4),("IR",4),("AB",4),("AG",4),("A
C",4),("P2",4)
OK
Command Possible response(s)
+CLIR=[<n>]
+CLIR? +CLIR: <n>, <m>
+CLIR=? +CLIR:(list of supported <n>)
Description
This command allows a calling subscriber to enable or disable the presentation of
the CLI to the called party when originating a call. Set command overrides the
CLIR subscription (default is restricted or allowed) when temporary mode is
provisioned as a default adjustment for all following outgoing calls. This adjustment
can be revoked by using the opposite command. Read command gives the default
adjustment for all outgoing calls (given in <n>), and also triggers an interrogation of
the provision status of the CLIR service (given in <m>). Test command returns
values supported by the TA as a compound value.
Defined values
<n>: integer type, sets the adjustment for outgoing call
0 Presentation indicator is used according to CLIR service
1 CLIR invocation
2 CLIR suppression
<m>: integer type, shows the subscriber CLIR service status in the network
Note:
Temporary mode in make call request
ATD*31#<phone num>
CLIR suppression, the called party will receive the calling number.
ATD#31#<phone num>
CLIR invocation, the called party will not receive the calling number.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. DEACTIVATE
AT+CLIR=2
OK
After the suppression of CLIR, the called party will receive the calling
subscriber’s phone number.
2. ACTIVATE
AT+CLIR=1
OK
After invocation of the CLIR, the called party will not receive the calling
subscriber’s phone number.
3. INTERROGATION
AT+CLIR?
+CLIR: 0,4
OK
It means the current setting is according to the subscription of the CLIR
service. And the service status in the network is “Temporary mode
presentation allowed”.
+COLP? +COLP: <n>, <m>
+COLP=? +COLP:(list of supported <n>s)
Description
This command enables a calling subscriber to get the connected line identity (COL)
of the called party after setting up a mobile originated call. The command enables
or disables the presentation of the COL at the TE. It has no effect on the execution
of the supplementary service COLR in the network. This command is useful for call
forwarding of the connected line.
When enabled (and called subscriber allows),
+COLP: <number>, <type>[, <subaddr>, <satype>[, <alpha>]] intermediate result
code is returned from TA to TE before any +CR or V.25ter response. It is
manufacturer specific if this response is used when normal voice call is
established.
Read command gives the status of <n>, and also triggers an interrogation of the
provision status of the COLP service (given in <m>).
Define values
<n>(parameter sets/shows the result code presentation status in the TA)
0 Disable
1 Enable
<m>(parameter shows the subscriber COLP service status in the network)
0 COLP not provisioned
1 COLP provisioned
2 Unknown (e.g. no network, etc.)
AT+COLP=1
OK
ATD0920123456;
+COLP: ,255,,,"LIN"
OK
Closed user group +CCUG
Table: +CCUG parameter command syntax
Command Possible response(s)
+CCUG=[<n>[, <index>[, <info>]]]
+CCUG? +CCUG: <n>,<index>, <info>
Description
This command allows control of the Closed User Group supplementary service.
Set command enables the served subscriber to select a CUG index to suppress
the Outgoing Access (OA), and to suppress the preferential CUG.
This command allows control of the call forwarding supplementary service.
Registration, erasure, activation, deactivation, and status query are supported.
Defined values
<Reason>:
0 Unconditional
1 Mobil busy
2 No Reply
3 Not reachable
4 All call forwarding
5 All conditional call forwarding
<Class x>: integer type, sum of bearer service code.
1 Voice (telephony)
2 Data (refers to all bearer services; with <mode>=2 this
may refer only to some bearer service if TA does not
support values 16,32,64 and 128)
4 Fax (facsimile services)
8 Short message service
16 Data circuit sync
32 Data circuit async
64 Dedicated packet access
128 Dedicated PAD access
<number>: string type, forwarding phone number.
<type>: type of address octet in integer format; default 145 when dialing string
includes international access code character “+”, otherwise 129
<subaddr>: string type subaddress of format specified by <satype>
<satype>: type of subaddress octet in integer format; default 128
<Time>: 1…30 when “no reply” is enabled or queried, this gives the time in
seconds to wait before call is forwarded, default value 20
<Status>:
0 Not active
1 Active
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. Query status
AT+CCFC=0,2
Query the status of unconditional forwarding
+CCFC: 0,1
2. Registration
Before enable, disable, and erasure, you should register the SS service.
AT+CCFC=0,3,”0123456789”
Register unconditional forwarding to “0123456789” and activated the service.
OK
It doesn’t means that the SS service is registered successfully. You should
query the status to confirm the result.
3. Deactivate
AT+CCFC=0,0
Disable unconditional forwarding.
OK
This command allows control of the Call Waiting supplementary service. Activation,
deactivation and status query are supported. When querying the status of a
network service (<mode>=2) the response line for ‘not active’ case (<status>=0)
should be returned only if services not active for any <class>. Parameter <n> is
used to disable/enable the presentation of an unsolicited result code +CCWA:
<number>, <type>, <class>,[<alpha>][,<CLI validity>] to the TE when call waiting
service is enabled. Command should be abortable when network is interrogated.
Defined values
<N>: integer type (sets/shows the unsolicited result code presentation status in the
TA),
.
0 Disable
1 Enable
<Mode>: integer type, operation mode of
0 Disable
1 Enable
2 Query status
<Status>: integer type, CCWA status.
0 Not active
1 Active
<Class>: is a sum of integers each representing a class of information
1 Voice
2 Data (refers to all bearer services; with <mode>=2 this
may refer only to some bearer service if TA does not
support values 16,32,64 and 128)
4 Fax (facsimile services)
8 Short message service
16 Data circuit sync
32 Data circuit async
64 Dedicated packet access
128 Dedicated PAD access
<Number>: string type phone number of calling address in format specified by
<type>
<Type>: type of address octet in integer format
<Alpha>:optional string type alphanumeric representation of <number>
corresponding to the entry found in phonebook.
<CLI validity>:
0 CLI valid
1 CLI has been withheld by the originator.
2 CLI is not available due to interworking problems or
limitations of originating network.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. ACTIVATION
AT+CCWA=0,1
OK
2. DEAACTIVATION
AT+CCWA=0,0
OK
AT+CCWA=1
ATD0952123456;
OK
(Another call is coming)
+CCWA: , 161,1,,1
3. INTERROGATION
AT+CCWA=0,2
Case 1: if the call waiting is active, echo
+CCWA: 1,1
Case 2: if operation success and call waiting is not active, echo
+CCWA: 0,1
Case 3: if operation success and network not support, echo
ERROR
Command Possible response(s)
+CHLD =[<n>] +CME ERROR <err>
+CHLD=? [+CHLD: (list of supported <n>s)
Description
This command allows the control of the following call related services:
- a call can be temporarily disconnected from the ME but the connection is
retained by the network;
- Multiparty conversation (conference calls);
- The served subscriber who has two calls (one held and the other either active
or alerting) can connect the other parties and release the served subscriber’s
own connection.
Calls can be put on hold, recovered, released, added to conversation, and
transferred similarly.
It is recommended (although optional) that test command returns a list of
operations which are supported. The call number required by some operations
shall be denoted by "x" (e.g. +CHLD: (0,1,1x,2,2x,3)).
Defined values
1. AT+CHLD=0
Release all held calls or send UDUB for a waiting call.
2. AT+CHLD=1
Release all active calls and accept the other held or waiting calls.
3. AT+CHLD=1x
Release a specified active call x.
4. AT+CHLD=2
Place all active calls on hold and accept the other waiting or held calls.
5. AT+CHLD=2x
Place all active calls on hold except call x with which communication shall be
supported.
Connects the two calls and disconnects the subscriber from both calls.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
(1)
;;;;;;MO1<Test Module> makes a call to MT1
ATD0921214863;
OK
;;;;;;MT1 accepts the call from MO1
AT+CHLD=2
OK
;;;;;;MO2 makes a call to MO1
;;;;;;MO1 accepts the call from MO2
Ring
ATA
AT+CHLD=1
OK
;;;;;;MO1-MO2 breaks.
(2)
;;;;;;MO1<Test Module> makes a call to MT1
ATD0921214863;
OK
;;;;;;MT1 accepts the call from MO1
AT+CHLD=2
OK
;;;;;;MO2 makes a call to MO1
;;;;;;MO1 accepts the call from MO2
Ring
ATA
AT+CHLD=4
OK
;;;;;;Both calls break.
Command Possible response(s)
+CUSD=[<n>[, <str>[, <dcs>]]] +CME ERROR: <err>
+CUSD? +CUSD: <n>
+CUSD=? +CUSD: (list of supported <n>s)
Description
This command allows control of the Unstructured Supplementary Service Data
(USSD). Both network and mobile initiated operations are supported. Parameter
<n> is used to disable/enable the presentation of an unsolicited result code (USSD
response from the network, or network initiated operation) +CUSD: <m>[, <str>,
<dcs>] to the TE. In addition, value <n>=2 is used to cancel an ongoing USSD
session.
When <str> is given, a mobile initiated USSD-string or a response USSD-string to
a network initiated operation is sent to the network. The response USSD-string
from the network is returned in a subsequent unsolicited +CUSD result code.
Test command returns values supported by the TA as a compound value.
Defined values
<N>
0 Disable the result code presentation in the TA
1 Enable the result code presentation in the TA
2 Cancel session (not applicable to read command
response)
<str>: string type USSD-string(when <str> parameter is not given, network is not
interrogated).
<dcs>: Cell Broadcast Data Coding Scheme in integer format.
<M>
0 no further user action required
1 further user action required.
2 USSD terminated by network
3 Other local client has responded
4 Operation not supported
5 Network time out
This refers to Advice of Charge supplementary service that enables subscriber to
get information about the cost of calls. With <mode>=0, the execute command
returns the current call meter value from the ME.
The command also includes the possibility to enable an unsolicited event reporting
of the CCM information. The unsolicited result code +CCCM: <ccm> is sent when
the CCM value changes, but not more that every 10 seconds. Deactivation of the
unsolicited event reporting is made with the same command.
The Read command indicates whether the unsolicited reporting is activated or not.
Read command is available when the unsolicited result code is supported.
Defined values
<Mode>
0 Query CCM value
1 Deactivate the unsolicited reporting of CCM value
2 Activate the unsolicited reporting of CCM value
<ccm>: string type; three bytes of the current call meter value in hexadecimal
format.
This command refers to supplementary service related network initiated
notifications. The set command enables/disables the presentation of notification
result codes from TA to TE.
When <n>=1 and a supplementary service notification is received after a mobile
originated call setup, intermediate result code +CSSI: <code1>[,<index>] is
sent to TE before any other MO call setup result codes presented in the present
document or in V.25ter. When several different <code1>s are received from the
network, each of them shall have its own +CSSI result code.
When <m>=1 and a supplementary service notification is received during a mobile
terminated call setup or during a call, or when a forward check supplementary
service notification is received, unsolicited result code +CSSU: <code2>[,<index>[,<number>,<type>]]] is sent to TE. In case of MT call
setup, result code is sent after every +CLIP result code (refer command "Calling
line identification presentation +CLIP") and when several different <code2>s are
received from the network, each of them shall have its own +CSSU result code.
Test command returns values supported by the TA as a compound value.
Defined values
<N>(parameter sets/shows the +CSSI result code presentation status)
0 Disable
1 Enable
<M>(parameter sets/shows the +CSSU result code presentation status)
0 Disable
1 Enable
<Code1>
0 Unconditional call forwarding is active
1 Some of the conditional call forwardings are active
2 Call has been forwarded
3 Call is waiting
4 This is a CUG call
5 Outgoing calls are barred
6 Incoming calls are barred
7 CLIR suppression rejected
8 Call has been deflected
<Index>: refer “Closed user group+CCUG”
<Code2>
0 This is a forwarded call
1 This is a CUG call
2 Call has been put on hold
3 Call has been retrieved
4 Multiparty call entered
5 Call on hold has been released
6 Forward check SS message received
7 Call is being connected with the remote party in alerting
state in explicit call transfer operation
8 Call has been connected with the other remote party I
explicit call transfer operation
9 This is a deflected call
10 Additional incoming call forwarded
<Number>: string type phone number
<Type>: type of address octet in integer format
<subaddr>: string type subaddress
<satype>: type of subaddress octet in integer format
+CME ERROR: <err>
+CPOL=? +CPOL: (list of supported <index>s), (list of
supported <format>s)
+CME ERROR: <err>
Description
This command is used to edit the PLMN selector with Access Technology lists in
the SIM card or active application in the UICC(GSM or USIM).
Execute command writes an entry in the SIM/USIM list of preferred PLMNs,
previously selected by the command +CPLS. If no list has been previously
selected, the User controlled PLMN selector with Access Technology, EF
OPLMNWACT
,
is the one accessed by default. If <index> is given but <oper> is left out, entry is
deleted. If <oper> is given but <index> is left out, <oper> is put in the next free
location. If only <format> is given, the format of the <oper> in the read command is
changed. The Access Technology selection parameters, Read command returns
all used entries from the SIM/USIM list of preferred PLMNs, previously selected by
the command +CPLS, with the Access Technologies for each PLMN in the list.
Note: It is recommend to add a preferred PLMN with numeric format. There is an
internal list which store all PLMN’s long name, short name and numeric name in
the module. AT+COPN shows the list. The numeric information is the MCC and
MNC of the PLMN. When using long/short format to add a preferred PLMN that
does not exist in the internal list, the module will reject the command because the
module is fail to get the MCC and MNC of the PLMN.
Test command returns the whole index range supported by the SIM.
Defined values
<indexn>: integer type; the order number of operator in the SIM/USIM preferred
operator list
<format>
0 Long format alphanumeric<oper>
1 Short format alphanumeric<oper>
2 Numeric<oper>
<opern>: string type; <format> indicates if the format is alphanumeric or numeric
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CPOL=?
+CPOL: (1-8), (0-2)
OK
AT+CPOL?
+CPOL:1,2,”46697”
OK
List current calls +CLCC
Table: +CLCC parameter command syntax
Command Possible response(s)
+CLCC +CLCC: <id1>, <dir>, <state>, <mode>,
Returns list of current calls of ME. If command succeeds but no calls are available,
no information response is sent to TE.
Defined values
<Id>: call id which is a digit from 1 to 7
<Dir>: integer type
0 Mobile originated (MO) call
1 Mobile terminated (MT) call
<State>:(state of the call)
0 Active
1 Held
2 Dialing (MO call)
3 Alerting (MO call)
4 Incoming (Mt call)
5 Waiting (MT call)
<Mode>:(bearer/teleservice)
0 Voice
1 Data
2 Fax
3 Voice followed by data, voice mode
4 Alternating voice/data, voice mode
5 Alternating voice/fax, voice mode
6 Voice followed by data, data mode
7 Alternating voice/data, data mode
8 Alternating voice/fax, fax mode
9 Unknown
<mpty>: integer type
0 Call is not one of multiparty (conference) call parties
1 Call is one of multiparty (conference) call parties
<Number>: string type phone number
<Type>: type of address octet in integer format
<Alpha>: string type alphanumeric representation of <number> corresponding to
the entry found in phonebook; used character set should be the one selected with
Execute command returns the list of operator names from the ME. Each operator
code<numericn> that has an alphanumeric equivalent <alphan> in the ME memory
shall be returned.
Defined values
<numericn>: string type; operator in numeric format(see +COPS)
<alphan>: string type; operator in long alphanumeric format(see +COPS)
Informative example
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+COPN
+COPN: "00131","Test Network"
+COPN: "546559","Test Net 222"
Command Possible response(s)
+CFUN=[<fun>[,<rst>]] +CME ERROR: <err>
+CFUN? +CFUN: <fun>
CME ERROR: <err>
+CFUN=? +CFUN: (list of supported <fun>s),(list of
supported <rst>s)
+CME ERROR: <err>
Description
Set command selects the level of functionality <fun> in the ME. Level “full
functionality” is where the highest level of power is drawn. “Minimum functionality”
is where minimum power is drawn. Level of functionality between these may also
be specified by manufacturers. When supported by manufactured, ME resetting
Set command sends to the MS a password that is necessary before it can be
operated only SIM PIN. If no PIN request is pending, no action is taken. If SIM is
useless or SIM is not inserted, an error message +CME ERROR, is returned to the
TE.
Read command returns an alphanumeric string indicating whether some password
is required or not.
Defined values
<pin>, <newpin>:string type values
<code>: values reserved by the present document
READY ME is not pending for any password
SIM PIN ME is waiting SIM PIN to be given
SIM PIN2 ME is waiting SIM PIN2 to be given (this <code> is
recommended to be returned only when the last
executed command resulted in PIN2 authentication
failure (i.e. +CME ERROR: 17); if PIN2 is not entered
right after the failure, it is recommended that ME does
not block it operation)
SIM PUK ME is waiting SIM PUK to be given
SIM PUK2 ME is waiting SIM PUK2 to be given (this <code> is
recommended to be returned only when the last
executed command resulted in PUK2 authentication
failure (i.e. +CME ERROR: 18); if PUK2 and new
PIN2are not entered right after the failure, it is
1. Power on (1) (CHV1 is disabled, SIM is ready)
AT+CPIN?
+CPIN: READY
2. Power on (1) (SIM not inserted)
AT+CMEE=2
OK
AT+CPIN?
+CME ERROR: SIM not inserted
Battery charge +CBC
Table: +CBC parameter command syntax
Command Possible response(s)
+CBC +CBC: <bcs>, <bcl>
+CME ERROR: <err>
+CBC=? +CBC: (list of supported <bcs>s), (list of
supported <bcl>s)
Description
Execution command returns battery connection status <bcs> and battery charge
level <bcl> of the ME.
Defined values
<bcs>
0 ME is powered by the battery
1 ME has a battery connected, but is not powered by it
2 ME does not have a battery connected
3 Recognized power fault, calls inhibited
<bcl>
0 Battery is exhausted, or ME does not have a battery
By using this command instead of Generic SIM Access +CSIM TE application has
easier but more limited access to the SIM database. Set command transmits to the
ME the SIM <command> and its required parameters. ME handles internally all
SIM-ME interface locking and file selection routines. As response to the command,
ME sends the actual SIM information parameters and response data. ME error
result code +CME ERROR may be returned when the command cannot be passed
to the SIM, but failure in the execution of the command in the SIM is reported in
<sw1> and <sw2> parameters.
Coordination of command requests to SIM and the ones issued by GSM/UMTS
application inside the ME is implementation dependent. However the TE should be
aware of the precedence of the GSM/UMTS application commands to the TE
commands.
Defined values
<command> (command passed on by the ME to the SIM):
176 READ BINARY
178 READ RECORD
192 GET RESPONSE
214 UPDATE BINARY
220 UPDATE RECORD
242 STATUS
all other values are reserved
NOTE 1: The ME internally executes all commands necessary for selecting the
desired file, before performing the actual command.
<fileid>: integer type; this is the identifier of a elementary datafile on SIM.
Mandatory for every command except STATUS
NOTE 2: The range of valid file identifiers depends on the actual SIM and is
defined in GSM 51.011 [28]. Optional files may not be present at all.
<P1>, <P2>, <P3>: integer type; parameters passed on by the ME to the SIM.
These parameters are mandatory for every command, except GET RESPONSE
and STATUS. The values are described in GSM 51.011 [28]
<data>: information which shall be written to the SIM (hexadecimal character
format; refer +CSCS)
<sw1>, <sw2>: integer type; information from the SIM about the execution of the
actual command. These parameters are delivered to the TE in both cases, on
successful or failed execution of the command
<response>: response of a successful completion of the command previously
issued (hexadecimal character format; refer +CSCS). STATUS and GET
RESPONSE return data, which gives information about the current elementary
datafield. This information includes the type of file and its size (refer
GSM 51.011 [28]). After READ BINARY or READ RECORD command the
requested data will be returned. <response> is not returned after a successful
UPDATE BINARY or UPDATE RECORD command
Set command sets the parameters of Advice of Charge related price per unit and
currency table in SIM card or in the active application in the UICC file EF
PUCT.
PUCT
information can be used to convert the home units into currency units. SIM PIN2 is
usually required to set the parameters.
Defined values
<currency>: string type; three character currency code; character set as specified
by command select TE Character Set
<ppu>: string type: price per unit; dot is used as a decimal separator.
+CPUC: "",""
OK
AT+CPUC="NT","5.00"
+CME ERROR: SIM PIN2 required
Call Meter maximum event +CCWE
Table: +CCWE parameter command syntax
Command Possible response(s)
+CCWE=<mode> +CME ERROR: <err>
+CCWE? +CCWE: <mode>
+CME ERROR: <err>
+CCWE=? +CCWE: (list of supported <mode>s)
+CME ERROR: <err>
Description
Shortly before the ACM (Accumulated Call Meter) maximum value is reached, an
unsolicited result code +CCWV will be sent, if enabled by this command. The
warning is issued approximately when 30 seconds call time remains. It is also
issued when starting a call if less than 30 s call time remains. If setting fails in an
ME error, +CME ERROR: <err> is returned. Read command returns the current
setting.
Test command returns supported settings.
Defined values
<mode>:
0 Disable the call meter warning event
1 Enable the call meter warning event
+CSVM=? +CSVM: (list of supported <mode>s), (list of
supported <type>s)
+CME ERROR: <err>
Description
The number to the voice mail server is set with this command. The parameters <number>
and <type> can be left out if the parameter <mode> is set to 0. If setting fails, an ME
error, +CME ERROR: <err> is returned.
Read command returns the currently selected voice mail number and the status
(i.e. enabled/disabled).
Test command returns supported <mode>s and <type>s.
Defined values
<mode>:
0 Disable the voice mail number.
1 Enable the voice mail number.
<number>: string type; Character string <0..9,+>, the maximum length of phone
number is 40 digits (include prefix ‘+’ if exists)
<type>: integer type; Type of address octet.
129 ISDN / telephony numbering plan, national / international unknown
145 ISDN / telephony numbering plan, international number
161 ISDN / telephony numbering plan, national number
128 - 255 Other values refer TS 24.008 section 10.5.4.7
<type>: type of address octet in integer format (refer TS 24.008 [8] sub clause
10.5.4.7); default 145 when dialing string includes international access code
character "+", otherwise 129.
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CSVM=?
+CSVM: (0,1),(129,145,161)
OK
AT+CSVM?
+CSVM: 1,"188",129
OK
List all available AT commands +CLAC
Table: +CLAC parameter command syntax
Command Possible response(s)
+CLAC <AT Command1>[<CR><LF><AT
Command2>[…]]
+CME ERROR: <err>
+CLAC? +CME ERROR: <err>
Description
Execution command causes the ME to return one or more lines of AT Commands.
Note: This command only returns the AT commands that are available for the user.
Defined values
<AT Command>: Defines the AT command including the prefix AT. Test shall not
contain the sequence 0<CR> or OK<CR>
Command Possible response(s)
+CPBS=<storage> +CME ERROR: <err>
+CPBS? +CPBS: <storage>[,<used>,<total>]
+CME ERROR: <err>
+CPBS=? +CPBS: (list of supported <storage>s)
Description
1. Set command selects phonebook memory storage <storage> which is used by
other phonebook commands. If settings fails in an MS error, +CME ERROR: <err>
is returned.
2. Read command returns currently selected memory, this used entry numbers and
the entire entry numbers in the selected storage.
3. Test command returns supported storages as compound value.
Defined values
<storage>:string type
“EN”
SIM/USIM (or ME) emergency number(+CPBW is not be
applicable for this storage)
“FD”
“DC”
SIM fix dialing-phonebook
MTdialled calls list (+CPBW may not be applicable for
this storage)
1. Execution command returns phonebook entries in location number range
<index1>..<index2> from the current phonebook memory storage selected with
+CPBS. If <index2> is left out, only location <index1> is returned. Entry fields
returned are location number <indexn>, phone number stored there <number>(of
format <type>) and text <text> associated with the number. If all queried locations
are empty (but available), no information text lines may be returned and +CME
ERROR: <err> can be returned. If list setting fails in an ME error, +CME ERROR:
<err> is returned.
2. If it is possible to show Chinese name in phone book, character set (+CSCS)
has better to set “UCS2” first.
Defined values
<index1>,<index2>: integer type value in the range of location numbers of
phonebook memory.
<number>: string type indicating the phone number of format <type>
<type>: integer value indicating type of address octet in integer format.
<text>: string type ;character set specified by command select TE character Set
+CSCS(details pls refer to Appendix)
<nlength>: integer value indicating the maximum length of field <number>
<tlength>: integer value indicating the maximum length of field <text>
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. Read the phonebook from index1 to index2 and neglect the blank record.
AT+CPBS=”SM”
OK
AT+CPBR=1,5
+CPBR:1,”27998800”,129,”David”
+CPBR:3,”27998800”,129,”JENNY”
+CPBR:5,”27998800”,129,”Davis”
OK
2. Chinese name may appear in phone book (SM).
AT+CSCS=”UCS2”
OK
AT+CPBR=61,70
+CPBR: 61,"0920960846",129,"004D00410047"
+CPBR: 62,"0928844716",129,"54335FB7660E"
+CPBR: 63,"0928836001",129,"92809234"
1. Execution command returns the phonebook entries (from the current phonebook
memory storage selected with +CPBS which alphanumeric fields starting with the
giving string <findtext>. Entry fields returned are location number <indexn>, phone
number stored there <number> (of format <type>) and text <text> associated with
the number. If listing fails in an ME error, +CME ERROR: <err> is returned.
2. Test command returns the maximum lengths of <number> and <text> fields. In
case of SIM storage, the lengths may not be available.
3. The AT+CPBF=”” command can be used to display all phonebook entries
sorted in alphabetical order.
4. This command is only available for the “SM” and “ME” phonebook.
5. It is possible to use this command with UCS2 strings. If a wrong UCS2 format is
entered, the string is considered as an ASCII string.
Defined values
<index1>: integer type value in the range of location numbers of phonebook
memory.
<number>: string type indicating the phone number of format <type>
<type>: integer value indicating type of address octet in integer format.
<text>,<findtext>: string type ;character set specified by command select TE
character Set +CSCS(details pls refer to Appendix )
<nlength>: integer value indicating the maximum length of field <number>
<tlength>: integer value indicating the maximum length of field <text>
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
AT+CPBS=”SM”
OK
;;; List all phonebook entries start with “DA”
AT+CPBF=”DA”
+CPBF: 1,”27998800”,129,”DAVID”
+CPBF: 5,”123456”,129,”dad”
+CPBF: 8,”222222”,129,”Davis”
+CPBF: 10,”99999”,129,”dAllen”
OK
Write phonebook entry +CPBW
Table: +CPBW parameter command syntax
Command Possible response(s)
+CPBW=[<index>][,<numbe
+CME ERROR:<err>
r>[,<type>[,<text>]]]
+CPBW=? +CPBW: (list of supported
<index>s),[<nlength>],(list of supported
<type>s),[<tlength>]
+CME ERROR: <err>
Description
1. Set command writes phonebook entry in location number <index>of phonebook
memory <storage> excluding “DC”, “LD”, “MC” and “RC”. Entry fields written are
phone number <number>(in the format <type>) and text <text> associated with the
number. If <index> is left out, but <number> is given, entry is written to the first
free location in the phonebook (the implementation of this feature is manufacturer
specific.) If the fields except for <index> are omitted, phonebook storage entry will
be deleted. If writing fails in an ME error, +CME ERROR:<err> is returned.
<index>:integer type values in the range of location numbers of phonebook
memory
<number>:string type; phone number
<type>: type of address octet in integer format
<text>,<findtext>: string type ;character set specified by command select TE
character Set +CSCS(details pls refer to Appendix )
<nlength>: integer value indicating the maximum length of field <number>
<tlength>: integer value indicating the maximum length of field <text>
Informative examples
-Initial the HyperTerminal
-Initial the MS
-AT Command
1. AND, given <index>
(*PC will check if FDN is disabled in advance)
AT+CSCS?
+CSCS: “IRA”
AT+CPBW=1,”27998800”, 129,”DAVID”
OK
2. AND but <index> is left out
(*PC will check if FDN is disabled in advance)
AT+CPBW=,”27998800”, 129,”DAVID”
OK
3. Deleting entry
AT+CPBW=1
OK
Report Mobile Equipment error +CMEE
Table: +CMEE parameter command syntax
Command Possible response(s)
+CPEE=[<n>]
+CMEE? +CMEE: <n>
+CMEE=? +CMEE: (list of supported <n>s)
Set command disables or enables the use of result code +CME ERROR: <err> as
an indication of an error relating to the functionality of the ME. When enable, ME
related errors cause +CME ERROR: <err> final result code instead of the regular
ERROR final result code. ERROR is returned normally when error is related to
syntax, invalid parameters, or TA functionality.
Defined values
<n>
0 Disable +CME ERROR: <err> result code and use ERROR instead
1 Enable +CME ERROR: <err> result code and use numeric <err>
values.
2 Enable +CME ERROR: <err> result code and use verbose <err>
+FCLASS=<n>
+FCLASS? <n>
+FCLASS=? (list of supported <n>s)
Description
This command puts the TA into a particular mode of operation (data, fax, voice
etc.). This causes the TA to process information in a manner suitable for that type
of information (rather than for other types of information).
Defined values
The values and meanings of parameter <n> are specified in the following table.
<n> Mode
Voice mode is of particular interest here, and has an additional result code +VCON.
Specifically, +VCON indicates that the TA is entering the voice command mode
and there is a voice connection to at least one audio input or output. This
presupposes that some mechanism has previously initiated a connection to that
audio I/O.
+VTS=? (list of supported <tone1>s),(list of supported
<tone2>s) ,(list of supported <duration>s)
NOTE: In GSM this operates only in voice mode.
Description
This command allows the transmission of DTMF tones and arbitrary
tones (see note). These tones may be used (for example) when announcing the
start of a recording period. The command is write only. In this profile of commands,
this command does not operate in data or fax modes of operation
(+FCLASS=0,1,2-7).
NOTE: D is used only for dialling.
The string parameter of the command consists of combinations of the following
separated by commas:
1. <DTMF>. A single ASCII character in the set 0-9, #,*,A-D. This is interpreted as
a single ACSII character whose duration is set by the +VTD command.
NOTE: In GSM this operates only in voice mode.
2. [<tone1>,<tone2>,<duration>]. This is interpreted as a dual tone of frequencies
<tone1> and <tone2>, lasting for a time <duration> (in 10 ms multiples).
NOTE: This does not operate in GSM.
3. {<DTMF>,<duration>}. This is interpreted as a DTMF tone of different duration
from that mandated by the +VTD command.
The following parameters are used in the subsequent clauses which describe all
commands.
Message Storage Parameters
<index> integer type (1-256); value in the range of location numbers
supported by the associated memory
<mem1> string type; memory from which messages are read, and deleted;
defined value:
“BM” broadcast message storage
“ME” ME message storage
“MT” any of the storages associated with ME
“SM” (U)SIM message storage
“SR” status report storage
<mem2> string type; memory to which writing and sending operations are
made; refer <mem1> for defined values
<mem3> string type; memory to which received SMs are preferred to be
stored (unless forwarded directly to TE; refer command New
Message Indications +CNMI); refer <mem1> for defined values
<stat> integer type in PDU mode (default 0), or string type in text mode
(default "REC UNREAD"); indicates the status of message in
memory; defined values:
0 "REC UNREAD" received unread message (i.e. new
message)
1 "REC READ" received read message
2 "STO UNSENT" stored unsent message (only applicable to
SMS)
3 "STO SENT" stored sent message (only applicable toSMS)
4 "ALL" all messages (only applicable to +CMGL command)
<alpha> string type alphanumeric representation of <da> or <oa>
corresponding to the entry found in MT phonebook; used
character set should be the one selected with command Select
TE Character Set +CSCS
<da> 3GPP TS 23.40 TP-Destination-Address Address-Value field in
string format; BCD numbers (or GSM default alphabet
characters) are converted to characters of the currently selected
TE character set (refer command +CSCS in 3GPP TS 27.07);
type of address given by <toda>
<data> In the case of SMS: 3GPP TS 23.040 TP-User-Data in text mode
responses; format:
- if <dcs> indicates that 3GPP TS 23.038 default alphabet is
used and <fo> indicates that 3GPP TS 23.040 TP-UserData-Header-Indication is not set:
- if TE character set other than "HEX" (refer
+CSCS) : ME/TA converts GSM alphabet into current TE
character set according to rules of Annex A
- if TE character set is "HEX": ME/TA converts each
7-bit character of GSM alphabet into two IRA character long
hexadecimal number (e.g. character Π (GSM 23) is
presented as 17 (IRA 49 and 55))
- if <dcs> indicates that 8-bit or UCS2 data coding scheme is
used, or <fo> indicates that GSM 03.40
TP-User-Data-Header-Indication is set: ME/TA converts each
8-bit octet into two IRA character long hexadecimal number
(e.g. octet with integer value 42 is presented to TE as two
characters 2A (IRA 50 and 65))
<dcs> depending on the command or result code: 3GPP TS 23.038
SMS Data Coding Scheme (default 0)
<dt> GSM 03.40 TP-Discharge-Time in time-string format:
“yy/MM/dd,hh:mm:ss±zz”, where characters indicate year (two
last digits), month, day, hour, minutes, seconds and time zone.
E.g. 6th of May 1994, 22:10:00 GMT+2 hours equals to
“94/05/06,22:10:00+08”
<fo> depending on the command or result code: first octet of 3GPP
<length> Integer type value indicating in the text mode (+CMGF=1) the
length of the message body <data> in characters; or in PDU
mode (+CMGF=0), the length of the actual TP data unit in octets
(i.e. the RP layer SMSC address octets are not counted in the
length)
<mr> 3GPP TS 23.040 TP-Message-Reference in integer format
<oa> 3GPP TS 23.040 TP-Originating-Address Address-Value field in