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 ----------------------------------------------------------------------------------------------------------23
Select bearer service type +CBST-----------------------------------------------------------------------------------------23
Radio link protocol +CRLP---------------------------------------------------------------------------------------------------25
Service reporting control +CR-----------------------------------------------------------------------------------------------26
Extended error report +CEER-----------------------------------------------------------------------------------------------27
Cellular result codes +CRC--------------------------------------------------------------------------------------------------28
Single numbering scheme +CSNS ----------------------------------------------------------------------------------------30
Dial command D----------------------------------------------------------------------------------------------------------------31
2.1.3 Network service related commands------------------------------------------------------------------- 32
Facility Lock AT+CLCK --------------------------------------------------------- ------- ------- ------- -------------------------38
Change password +CPWD ------------------------------------------------------------------ ------- ------- ------- ------- ---- 40
Calling line identification presentation +CLIP --------------------------------------------------------------------------- 41
Call line identification restriction +CLIR----------------------------------------------------------------------------------- 42
Connected line identification presentation +COLP---------------------------------------------------------------------44
Closed user group +CCUG --------------------------------------------------------------------------------------------------45
Call forwarding service +CCFC---------------------------------------------------------------------------------------------47
Call waiting service +CCWA------------------------------------------------------------------------------------------------- 49
Short string procedure AT+CHLD------------------------------------------------------------------------------------------51
Unstructured supplementary service data +CUSD---------------------------------------------------------------------53
Advice of Charge +CAOC---------------------------------------------------------------------------------------------------- 55
Supplementary service notifications +CSSN---------------------------------------------------------------------------- 56
Preferred PLMN list +CPOL -------------------------------------------------------------------------------------------------59
List current calls +CLCC---------------------- ------- ------ ------------------------------------------------------------------- 61
Read operator names +COPN---------------------------------------------------------------------------------------------- 62
Get neighbor cells +GNC----------------------------------------------------------------------------------------------------- 63
Automatic Time Zone Update +CTZU ------------------------------------------------------------------------------------64
2.1.4 Mobile control and status commands----------------------------------------------------------------- 65
Phone activity status +CPAS------------------------------------------------------------------------------------------------ 65
Set phone functionality +CFUN---------------------------------------------------------------------------------------------66
Enter PIN +CPIN ---------------------------------------------------------------------------------------------------------------67
Battery charge +CBC------------------- ------- -------------------------------------------------------------------------------- 69
Signal quality +CSQ ----------------------------------------------------------------------------------------------------------- 69
Restricted SIM access +CRSM ------ ------ ------- ------- ------------------------------------------------------------------- 71
Ringer sound level and ringer type select +CRSL ---------------------------------------------------------------------73
Loudspeaker volume level +CLVL -----------------------------------------------------------------------------------------73
Mute +CMUT -------------------------------------------------------------------------------------------------------------------- 74
Accumulated call meter +CACM -------------------------------------------------------------------------------------------75
Accumulated call meter maximum +CAMM----------------------------------------------------------------------------- 76
Price per unit and currency table +CPUC--------------------------------------------------------------------------------77
Call Meter maximum event +CCWE--------------------------------------------------------------------------------------- 78
Set Voice Mail Number +CSVM --------------------------------------------------------------------------------------------79
List all available AT commands +CLAC ----------------------------------------------------------------------------------80
2.1.5 Commands related with phonebook service-------------------------------------------------------- 81
2.1.6 Commands from TIA IS-101---------------------------------------------------------------------------- 88
Select mode +FCLASS -------------------------------------------------------------------------------------------------------88
DTMF and tone generation +VTS------------------------------------------------------------------------------------------89
Play DTMF tone +WDTMF---------------------------------------------------------------------------------------------------90
Receive gain selection +VGR----------------------------------------------------------------------------------------------- 91
Transmit gain selection +VGT-----------------------------------------------------------------------------------------------91
2.2 Commands related to short message service--------------------------------------------93
2.2.1 General Configuration Commands-------------------------------------------------------------------- 97
Select Message Service +CSMS------------------------------------------------------------------------------------------- 97
Preferred Message Storage +CPMS---------------------------------- ------- ------- ------- ------ -------------------------98
Message Format +CMGF ---------------------------------------------------------------------------------------------------- 99
Service Centre Address +CSCA------------------------------------------------------------------------------------------ 100
Set Text Mode Parameters +CSMP------------------------------------------------------------------------------------- 101
Show Text Mode Parameters +CSDH ---------------------------------------------------------------------------------- 103
Select Cell Broadcast Message Types +CSCB----------------------------------------------------------------------- 104
Save Settings +CSAS------------------------------------------------------------------------------------------------------- 105
Restore Settings +CRES--------------------------------------------------------------------------------------------------- 106
2.2.3 Message Receiving and Reading Commands----------------------------------------------------107
New Message Indications to TE +CNMI-------------------------------------------------------------------------------- 107
List Messages +CMGL------------------------------------------------------------------------------------------------------ 111
Read Message +CMGR ---------------------------------------------------------------------------------------------------- 112
NEW Message Acknowledgement to ME/TA +CNMA ---- ------- ------- ------- ------------------------------------- 114
2.2.4 Message Sending and Writing Commands--------------------------------------------------------115
2.4.3 Service Commands --------------------------------------------------------------------------------------183
Service Class +FCLASS---------------------------------------------------------------------------------------------------- 183
DCE Capabilities Parameter +FCC-------------------------------------------------------------------------------------- 184
Current Session Parameter +FIS----------------------------------------------------------------------------------------- 185
Current Session Result +FCS--------------------------------------------------------------------------------------------- 186
Local Facsimile Station ID String +FLI---------------------------------------------------------------------------------- 186
Local polling ID String +FPI------------------------------------------------------------------------------------------------ 187
Non-Standard Frame FIF Octet String +FNS ------------------------------------------------------------------------- 188
Indicate Document to Poll +FLP ----- ------- ------------------------------------------------------------------------------ 189
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 mess ages “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
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
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
07916407058099F9040B916407950303F10000892122216000000841E190583411E91
+CMGL: 3,1,27
07916407058099F9040B916407950303F10000892122217064000941E19058341E9149
OK
Deleting SMS messages
To delete an SMS message from the selected <mem1>, use the AT+CMGD command.
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:
z The validity period of the message expires. The validity period is set by TP-VP.
z 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.
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>
t>[,<port_speed>[,<N1>[,
<T1>[,<N2>[,<T2>[,<T3>[,
<k>]]]]]]]]
+CMUX? OK
+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
baud 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 on l y.
1 UI frames used only.
2 I frames used only.
Default value:0
<N2> (maximum number of re-transmissions):
0-100, where 3 is default
<T2> (response timer for the multiplexer control channel in units of ten milliseconds):
2-255, where 30 is default (300ms)
NOTE: T2 must be longer than T1.
<T3> (wake up response timer in seconds):
1-255, where 10 is default
<k> (window size, for advanced operation with Error Recovery options):
1-7, where 2 is default
Informative examples
-Initial the HyperTerminal
-Initial the M S
-AT Command
AT+CMUX=?
+CMUX: (1),(0),(1-5),(10-100),(1-255),(0-100),(2-255),(1-255),(1-7)
OK
7E 05 EF 41 54 2D 43 6F 6D 6D 61 6E 64 20 49 6E 74 6572 70 72 65 74 65 72 20 72 65
61 64 79 0D 0A DF 7E
UIH information frame to DLC 1 , it’s a normal information.
Note that the information field
“41 54 2D 43 6F 6D 6D 61 6E 64 20 49 6E 74 6572 70 72 65 74 65 72 20 72 65 61 64 79
0D 0A” is the string “AT-Command Interpreter ready..” to note the TE.
This field is quiet different from UIH control frame, users should take care about this.
7E 01 FF E3 05 07 0D B6 7E
UIH control frame to DLC 1 with modem status message
(retransmit)
7E 01 FF E3 05 07 0D B6 7E
UIH control frame to DLC 1 with modem status message
(retransmit)
As you can see, the TE does not response the UIH control frame at all. The module just
retransmits the frame until for N2 times. After retrying N2 times, the module gives 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 follow ed by da ta (bea re r s e rvice 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.
Command Possible response(s)
+CRLP=[<iws>[,<mws>[,<
T1>[,<N2>]]]
+CRLP=? +CRLP: <iws>,<mws>,<T1>,<N2>
[<CR><LF>+CRLP:<iws>,<mws>,<T1>,<N2>
[…]]
+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
Command Possible response(s)
+CR=[<mode>]
+CR? +CR: <mode>
+CR=? +CR: (list of supported <mode>s)
Description
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. See
Section 2.11.4 for more information of <report>. Or see 3GPP TS 24.008.
ATD0920123456;
OK
NO CARRIER (disconnect by remote side)
AT+CEER
+CEER: normal call clearing
OK
Cellular result codes +CRC
Table: +CRC parameter command syntax
Command Possible response(s)
+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)
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).
-Initial the alpha id of first physical record in AND is “A”
-AT Command
(1) Dial number 188
ATD188;
OK
(2) Dial number in phonebook index 6.
AT+CPBS?
+CPBS: "SM",37,100
OK
ATD>SM6;
OK
2.1.3 Network service related commands
Subscriber number +CNUM
Table: +CNUM parameter command syntax
Command Possible response(s)
+CNUM [+CNUM: [<alpha1>],<number1>, <type1>
[…<CR><LF>+CNUM: [alphaX>],<numberX>, <typeX>]]
OK
+CME ERROR:<err>
Description
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.
Command Possible response(s)
+CREG=[<n>] +CME ERROR:<err>
+CREG? +CREG: <n>,<stat>
+CME ERROR:<err>
+CREG=? +CREG: (list of supported <n>s)
Description
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
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
<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)
<state>: integer value
0 Unknown
1 Available
2 Current
3 Forbidden
Informative examples
-Initial the HyperTerminal
-Initial the M S
-AT Command
1.Automatic selection of network
AT+COPS=0
OK
AT+COPS?
+COPS: 0,0,"Chunghwa Telecom LDM"
OK
2. List all available network and manual selection of network
AT+COPS=?
+COPS: (2,"Chunghwa Telecom LDM","CHTLDM","46692"),(3,"TWN GSM
1800","TCC","46697"),(3,"KGT-Online","KGT","46688"),(3,"Far EasTone","FET","46601")
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”
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)
“AI”
“IR”
BAIC (Barr All Incoming Calls)
BIC-Roam (Barr Incoming Calls when Roaming outside the home
country)
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>
“PS”
“PN”
“PU”
“PP”
“PC”
“PF”
SIM personalisation
Network personalisation of the ME
Network subset personalisation of the ME
Service provider personalisation of the ME
Corporate personalisation of the ME
Personalisation on first inserted SIM
<mode>:
0 Unlock
1 Lock
2 Query status
<status>:
0 Not active
1 Active
<password>: string type, indicate PIN or network password
<class>: integer type, sum of integers each representing a class(default 7)
1 Voice
2 Data
4 Fax
8 Short message
16 Data circuit sync
32 Data circuit async
64 Dedicated packet access
128 Dedicated PAD access
<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 M S
-AT Command
AT+CPWD=?
+CPWD:("SC",4),("AO",4),("OI",4),("OX",4),("AI",4),("IR",4),("AB",4),("AG",4),("AC",4),("
P2",4)
OK
Calling line identification presentation +CLIP
Table: +CLIP parameter command syntax
Command Possible response(s)
+CLIP=[<n>]
+CLIP? +CLIP: <n>, <m>
+CLIP=? +CLIP:(list of supported <n>)
Description
This command enables a called subscriber to get the calling line identity (CLI) of the
calling party when receiving a mobile terminated call.
Defined values
<n>: integer type, sets /shows the result code presentation status in TA
0 Disable
1 Enable
<m>: integer type, shows the subscriber CLIP service status in the network
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
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”.
Connected line identification presentation +COLP
Table: +COLP parameter command syntax
Command Possible response(s)
+COLP=[<n>]
+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 respons e. It is manufacturer specific if
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
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 M S
-AT Command
1. Query status
AT+CCFC=0,2
Query the status of unconditional forwarding
+CCFC: 0,1
Interrogated result: not active, voice
OK
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
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>:
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 M S
-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
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.
6. AT+CHLD=3
Adds held calls to the conversation.
7. AT+CHLD=4
Connects the two calls and disconnects the subscriber from both calls.
(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.
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
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 th e unsolicited reporti n g 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.
Informative examples
-Initial the HyperTerminal
-Initial the M S
-AT Command
AT+CAOC
+CAOC: "000000"
OK
AT+CAOC?
+CAOC: 1
OK
AT+CAOC=?
+CAOC: (0-2)
OK
Supplementary service notifications +CSSN
Table: +CSSN parameter command syntax
Command Possible response(s)
+CSSN=[<n>[, <m>]]
+CSSN? +CSSN: <n>, <m>
+CSSN=? +CSSN: (list of supported <n>s), (list of supported
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 fo rw ard e d
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 ret r i e v e d
4 Multiparty call entered
5 Call on hold has be e n re leased
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
0 C all is not one of multiparty (conference) call parties
1 C all 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 command
+CSCS
Informative example
-Initial the HyperTerminal
-Initial the M S
-AT Command
ATD0952123456;
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"0952123456",129,"aa"
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)
Set command enables and disables automatic time zone update via NITZ. If setting fails in
an MT error, +CME ERROR: <err> is returned. Refer subclause 2.11.1 for <err> values.
Read command returns the current settings in the MT.
Test command returns supported on- and off-values.
Defined values
<onoff>: integer type value indicating:
0 - Disable automatic time zone update via NITZ (default).
1 - Enable automatic time zone update via NITZ.
Informative example
-Initial the HyperTerminal
-Initial the M S
-AT Command
When AT+CFUN=0
AT+CTZU=1
OK
AT+CFUN=1
OK
AT+COPS=0
OK
+CTZU: 4/11/19 10:10:9 TimeZone: 35
Note 1:4/11/19 means date is 2004/11/19
Note 2:TimeZone: 35 means timezone is GMT+8
35 = 0x23; tmp1=0x02; tmp2=0x03; then the value of shift is tmp2*10 + tmp1 = 32
In 3GPP TS 03.40:
The Time Zone indicates the difference, expressed in quarters of an hour, between the
local time and GMT.
So, 32/4 = 8 ==>GMT+8
2.1.4 Mobile control and status commands
Phone activity status +CPAS
Table: +CPAS parameter command syntax
Command Possible response(s)
+CPAS +CPAS: <pas>
+CME ERROR: <err>
+CPAS=? +CPAS: (list of supported <pas>s)
+CME ERROR: <err>
Description
Execution command returns the activity status <pas> of the ME. It can be used to
interrogate the ME before requesting action from the phone.
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 with <rst> parameter may
be utilized.
Defined values
<fun>
0 Minimum functionality
1 Full functionality
4 Disable phone both transmit and receive RF circuits
<rst>
0: do not reset the ME before setting it to <fun> power level.
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
recommended that ME does not block it operation)
Informative examples
-Initial the HyperTerminal
-Initial the M S
-AT Command
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?
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 R ecognized 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 information can
PUCT.
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
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 M S
-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”
“FD”
“DC”
“LD”
SIM/USIM (or ME) emergency number(+CPBW is not be
applicable for this storage)
SIM fix dialing-phonebook
MTdialled calls list (+CPBW may not be applicable for
this storage)
SIM/UICC last dialing phonebook
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
<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 M S
-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
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.
<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
<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 M S
-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
r>[,<type>[,<text>]]]
+CME ERROR:<err>
+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.
Defined values
<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
<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 M S
-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)
Command Possible response(s)
+CMEE=[<n>]
+CMEE? +CMEE: <n>
+CMEE=? +CMEE: (list of supported <n>s)
Description
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. See Section 2.11.1 for more information.
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
0 data
2.0 fax class 2 (ITU-T T.32 [12] and TIA-592)
8 voice
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.