T1010 English

Commenti

Transcript

T1010 English
GsmTerminal
AT Command Set
& Tutorial
T1010 English
The information contained in this document are subject to change without notice. Product names, corporate names, or titles
used within this document may be trademarks or registered trademarks of other companies, and are mentioned only in an
explanatory manner to the readers’ benefit, and without intention to infringe.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying, recording, or any information storage and retrieval system, without permission in writing from the
copyright owner.
While every effort has been made to make sure the information in this document is correct, the author can not be liable for
any damages whatsoever for loss relating to this document. Use this information at your own risk.
© Copyright 2002 - CONTRIVE S.r.l. BERGAMO. All Rights Reserved.
© Portions Copyright 2001 - TELIT MOBILE TERMINALS S.p.A.
All trademarks in this document are of respective owners.
Issue: 04 / May 2002 - PRELIMINARY
© 2002 CONTRIVE – T1010.eng
Page 1 / 133
www.gsm-control.biz
Contents
1
DEFINITIONS................................
DEFINITIONS ............................................................
............................................................ 7
2
AT COMMAND SYNTAX................................
SYNTAX ......................................................
...................................................... 7
2.1
COMMAND LINES ................................................................
....................................................................
.................................... 7
2.2
INFORMATION RESPONSES AND RESULT CODES ...........................................
........................................... 8
2.3
COMMAND RESPONSE TIMEOUT .........................................................
......................................................... 8
3
HAYES COMPLIANT AT COMMANDS................................
COMMANDS ...........................................
........................................... 10
3.1
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
3.1.7
3.1.8
3.1.9
3.1.10
3.1.11
3.1.12
3.1.13
3.1.14
3.1.15
3.1.16
3.1.17
3.1.18
3.1.19
GENERIC
&F
Z
+FCLASS
&Y
&W
&Z
&N
+GMI
+GMM
+GMR
+GCAP
+GSN
&V
&V0
&V1
&V2
\V
%L
%Q
MODEM CONTROL ...........................................................
........................................................... 10
- restore factory configuration ......................................... 10
- soft reset to user defined profile .................................... 10
- select active service class ........................................... 10
- designate a default reset profile ..................................... 11
- store current configuration ........................................... 11
- store telephone number in the GsmTerminal internal phonebook .......... 11
- display internal phonebook stored numbers ............................. 12
- request manufacturer identification ................................... 12
- request model identification .......................................... 12
- request revision identification ....................................... 13
- request capabilities list ............................................. 13
- request serial number ................................................. 13
- display current configuration profile ................................. 14
- display current configuration & profile ............................... 14
- display S registers values ............................................ 15
- display last connection statistics .................................... 15
- single line connect message ........................................... 15
- report line signal level .............................................. 16
- report line quality ................................................... 16
3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.2.9
3.2.10
3.2.11
3.2.12
3.2.13
3.2.14
3.2.15
DTE/MODEM
E
Q
V
X
I
&C
&D
&K
&B
&S
\R
+IPR
+IFC
+ILRR
+ICF
-
3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
3.3.6
3.3.7
3.3.8
3.3.9
CALL CONTROL ................................................................
....................................................................
.................................... 24
D
- dial .................................................................. 24
T
- set tone dial ......................................................... 25
P
- set pulse dial ........................................................ 25
A
- answer ................................................................ 25
A/
- Last command automatic repetition ..................................... 25
H
- disconnect ............................................................ 26
O
- return to On Line (data) Mode ......................................... 26
&G
- guard tone ............................................................ 26
&P
- pulse dial make/break ratio ........................................... 27
INTERFACE CONTROL .....................................................
..................................................... 17
command echo .......................................................... 17
quiet result code presentation ........................................ 17
result code form ...................................................... 17
extended result codes ................................................. 18
request identifier and software checksum .............................. 18
data carrier detect (DCD) control mode ................................ 18
data terminal ready (DTR) control mode ................................ 19
flow control .......................................................... 19
clear to send (CTS) control mode ...................................... 20
data set ready (DSR) control mode ..................................... 20
ring (RI) control mode ................................................ 21
fixed DTE interface rate .............................................. 21
DTE / DTA flow control ................................................ 22
DTE modem local rate reporting ........................................ 22
DTE modem character format ............................................ 23
© 2002 CONTRIVE – T1010.eng
Page 2 / 133
www.gsm-control.biz
3.4
3.4.1
3.4.2
MODULATION CONTROL ..............................................................
.............................................................. 27
+MS
- modulation control .................................................... 27
%E
- enable/disable line quality & auto retrain or fallback/fallforward .... 27
3.5
3.5.1
3.5.2
COMPRESSION CONTROL .............................................................
............................................................. 28
+DS
- set data compression .................................................. 28
+DR
- data compression reporting ............................................ 28
3.6
3.6.1
3.6.2
BREAK CONTROL ................................................................
...................................................................
................................... 28
\B
- transmit break to remote .............................................. 28
\K
- break handling ........................................................ 29
3.7
3.7.1
3.7.2
3.7.3
3.7.4
3.7.5
3.7.6
3.7.7
3.7.8
3.7.9
3.7.10
3.7.11
3.7.12
S PARAMETERS ................................................................
....................................................................
.................................... 29
S0
- set number of rings to auto answer .................................... 29
S1
- set ring counter ...................................................... 29
S2
- set escape character .................................................. 30
S3
- set command line termination character ................................ 30
S4
- set response formatting character ..................................... 30
S5
- set command line editing character .................................... 31
S7
- set wait time for connection completion ............................... 31
S10
- set lost carrier to hang up delay ..................................... 31
S12
- set escape prompt delay ............................................... 32
S25
- set delay to DTR off .................................................. 32
S30
- set disconnect inactivity timer ....................................... 32
S38
- set delay before forced hang up ....................................... 33
4
ETSI GSM 07.07 AT Commands................................
Commands ............................................
............................................ 33
4.1
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5
4.1.6
GENERAL ................................................................
.........................................................................
......................................... 33
+CGMI
- request manufacturer identification ................................... 33
+CGMM
- request model identification .......................................... 33
+CGMR
- request revision identification ....................................... 34
+CGSN
- request product serial number identification .......................... 34
+CGCS
- select TE character set ............................................... 34
+CIMI
- request international mobile subscriber identity (IMSI) ............... 35
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
CALL CONTROL ................................................................
....................................................................
.................................... 36
+CBST
- select bearer service type ............................................ 36
+CRLP
- radio link protocol ................................................... 37
+CR
- service reporting protocol ............................................ 37
+CEER
- extended error report ................................................. 38
+CRC
- cellular result codes ................................................. 38
4.3
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
4.3.6
4.3.7
4.3.8
4.3.9
4.3.10
4.3.11
4.3.12
4.3.13
4.3.14
4.3.15
NETWORK
+CNUM
+CREG
+COPS
+CLCK
+CPWD
+CLIP
+CLIR
+CCFC
+CCWA
+CHLD
+CUSD
+CAOC
+CLCC
+CSSN
+CCUG
4.4
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5.
4.4.6
4.4.7
4.4.8
MOBILE EQUIPMENT CONTROL ........................................................
........................................................ 53
+CPAS
- phone activity status ................................................. 53
+CFUN
- Set phone functionality (power saving management) ..................... 54
+CPIN
- enter PIN ............................................................. 55
+CSQ
- signal quality ........................................................ 56
+CPBS
- select phonebook memory storage ....................................... 56
+CPBR
- read phonebook entries ................................................ 57
+CPBF
- find phonebook entries ................................................ 57
+CPBW
- write phonebook entries ............................................... 58
SERVICE HANDLING ........................................................
........................................................ 39
- subscriber number ..................................................... 39
- network registration report ........................................... 40
- operator selection .................................................... 41
- facility lock/unlock .................................................. 42
- change facility password .............................................. 43
- calling line identification presentation .............................. 44
- calling line identification restriction ............................... 45
- call forwarding number and condition .................................. 46
- call waiting .......................................................... 47
- call holding services ................................................. 48
- unstructured supplementary service data ............................... 49
- advice of charge ...................................................... 50
- list current calls .................................................... 51
- SS Notification ....................................................... 52
- Closed User Group supplementary service control ....................... 52
© 2002 CONTRIVE – T1010.eng
Page 3 / 133
www.gsm-control.biz
4.4.9
4.4.10
4.4.11
4.4.12
4.4.13
4.4.14
4.4.15
+CALM
+CRSL
+CLVL
+CMUT
+CACM
+CAMM
+CPUC
4.5
4.5.1
4.5.2
MOBILE EQUIPMENT ERRORS .........................................................
......................................................... 61
+CMEE
- report mobile equipment error ......................................... 61
+CME ERROR ME error result code ................................................. 62
4.6
4.6.1
VOICE CONTROL (TIA IS-101) ......................................................
...................................................... 63
+VTS
- DTMF tones transmission ............................................... 63
5
-
alert sound mode ...................................................... 58
ringer sound level .................................................... 59
loudspeaker volume level .............................................. 59
microphone mute control ............................................... 59
accumulated call meter ................................................ 60
accumulated call meter maximum ........................................ 60
price per unit and currency table ..................................... 61
ETSI GSM 07.05 AT COMMANDS FOR SMS AND CB SERVICES....................
SERVICES .................... 63
5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6
5.1.7
5.1.8
5.1.9
GENERAL CONFIGURATION ...........................................................
........................................................... 63
+CSMS
- Select message service ................................................ 63
+CPMS
- preferred message storage ............................................. 64
+CMGF
- message format ........................................................ 64
+CSMP
- set parameters in text mode ........................................... 65
+CSDH
- show parameters in text mode .......................................... 65
+CSAS
- save setting text mode ................................................ 66
+CRES
- Restore text mode settings ............................................ 66
+CSCB
- Select Cell Broadcast Message types ................................... 67
+CMS ERROR message service failure result code .................................. 68
5.2
5.2.1
MESSAGE CONFIGURATION ...........................................................
........................................................... 69
+CSCA
- Service center address ................................................ 69
5.3
5.3.1
5.3.2
5.3.3
MESSAGE
+CNMI
+CMGL
+CMGR
RECEIVING AND READING ...................................................
................................................... 70
- New message indications to Terminal Equipment ......................... 70
- List messages ......................................................... 71
- Read messages ......................................................... 72
5.4
5.4.1
5.4.2
5.4.3
5.4.4
MESSAGE
+CMGS
+CMSS
+CMGW
+CMGD
SENDING AND WRITING .....................................................
..................................................... 74
- Send message .......................................................... 74
- Send message from storage ............................................. 75
- Write message to memory ............................................... 75
- Delete message ........................................................ 76
6
CUSTOM AT COMMANDS................................
COMMANDS ....................................................
.................................................... 77
6.1
6.1.1
6.1.2
6.1.3
6.1.4
6.1.5
6.1.6
6.1.7
7
GENERAL
#PCT
#SHDN
#QTEMP
#MONI
#QSS
#ACAL
#SMOV
CONFIGURATION ...........................................................
........................................................... 77
- Display PIN counter ................................................... 77
- Software Shutdown ..................................................... 77
- Query Temperature Overflow ............................................ 78
- Monitor Cells ......................................................... 79
- Query SIM Status ...................................................... 80
- Set Automatic Call .................................................... 80
- SMS Overflow .......................................................... 81
FAX CLASS 1 COMMANDS................................
COMMANDS ..................................................
.................................................. 82
7.1
7.1.1
7.1.2
7.1.3
7.1.4
GENERAL
+FCLASS
+FMI
+FMM
+FMR
CONFIGURATION ...........................................................
........................................................... 82
- Select active service class ........................................... 82
- Report RF module manufacturer ID ...................................... 82
- Report RF module model ID ............................................. 82
- Report RF module revision ID .......................................... 83
7.2
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6
TRANSMISSION/RECEPTION CONTROL ..................................................
.................................................. 83
+FTS
- Stop transmission and pause ........................................... 83
+FRS
- Wait for receive silence .............................................. 83
+FTM
- Transmit data modulation .............................................. 84
+FRM
- Receive data modulation ............................................... 84
+FTH
- Transmit data with HLDC framing ....................................... 84
+FRH
- Receive data with HLDC framing ........................................ 85
© 2002 CONTRIVE – T1010.eng
Page 4 / 133
www.gsm-control.biz
7.3
7.3.1
7.3.2
7.3.3
8
SERIAL PORT CONTROL .............................................................
............................................................. 85
+FLO
- Select flow control specified by type ................................. 85
+FPR
- Select serial port rate ............................................... 86
+FDD
- Double escape character replacement control ........................... 86
BASIC OPERATIONS................................
OPERATIONS .....................................................
..................................................... 87
8.1
COMMAND SYNTAX ................................................................
..................................................................
.................................. 87
8.2
COMMAND RESPONSE TIMEOUT ........................................................
........................................................ 87
8.3
8.3.1
TURNING ON THE GSMTERMINAL ......................................................
...................................................... 87
Led indicator ................................................................... 88
8.4
8.4.1
8.4.2
8.4.2.1
8.4.2.2
8.4.2.3
8.4.2.4
8.4.3
8.4.3.1
8.4.3.2
8.4.3.3
8.4.3.4
CHECKING DEVICE FUNCTIONALITY ...................................................
................................................... 88
Autobauding ..................................................................... 88
SIM presence checking ........................................................... 88
Enable the extended error result codes ....................................... 88
Query SIM presence and status ................................................ 89
Provide SIM PIN if required .................................................. 89
Provide SIM PUK if required .................................................. 89
Network checking ................................................................ 90
Query network status ......................................................... 90
Network operator identification .............................................. 90
Check for received signal strength & quality ................................. 91
Quick Network Status Checking ................................................ 92
8.5
8.5.1
8.5.1.1
8.5.2
8.5.2.1
8.5.3
8.5.3.1
8.5.3.2
8.6
PLACING A DATA CALL .............................................................
............................................................. 93
Data call device set up ......................................................... 93
Set the device in Data mode .................................................. 93
Phone number dialling (data call) ............................................... 94
Dial a given phone number .................................................... 94
Closing the Data call ........................................................... 95
Exit the data mode and enter the command mode ................................ 95
Hang up the data call ........................................................ 95
ANSWERING AN INCOMING CALL ......................................................
...................................................... 95
9
ADVANCED OPERATIONS................................
OPERATIONS ..................................................
.................................................. 96
9.1
9.1.1
9.1.1.1
9.1.1.2
9.1.2
9.1.3
9.1.4
9.1.5
9.1.6
ACCESSING THE PHONEBOOK .........................................................
......................................................... 96
Preliminary Phonebook setup ..................................................... 96
Selecting PB storage active .................................................. 96
Enable Fixed Dialling Phonebook facility (only for FD phonebook) ............. 97
Phonebook entry search by NAME .................................................. 98
Phonebook entry search by INDEX ................................................. 99
Phonebook entry Write ........................................................... 99
Phonebook entry Delete ......................................................... 100
Phonebook entry Dial ........................................................... 101
9.2
9.2.1
9.2.1.1
9.2.2
9.2.2.1
9.2.3
9.2.3.1
9.2.3.2
9.2.3.3
DISTINGUISH CALLS ..............................................................
.............................................................. 102
Identify the Call type ......................................................... 102
Set the extended incoming call indication ................................... 102
Identify the Caller ............................................................ 102
Set Caller line ID indication presentation .................................. 102
Restricting Calling Line Indication ............................................ 103
CLIR Service status query ................................................... 103
Restrict/Allow Caller line ID indication .................................... 103
Temporary Restrict/Allow Caller line ID indication .......................... 104
9.3
9.3.1
9.3.1.1
9.3.1.2
9.3.2
9.3.2.1
9.3.2.2
9.3.3
9.3.3 1
SERVICES AND FACILITIES HANDLING ...............................................
............................................... 105
Pin Startup Request Control .................................................... 105
Pin Request Service status query ............................................ 105
Enable/Disable PIN request at Startup ....................................... 105
Call Waiting Indication Control ................................................ 106
Enabling the Call Waiting Indication ........................................ 106
Disabling the Call Waiting Indication ....................................... 107
Call Divert Control ............................................................ 107
Call Diverting Service status query ......................................... 108
© 2002 CONTRIVE – T1010.eng
Page 5 / 133
www.gsm-control.biz
9.3.3.2
9.3.3.3
9.3.3.4
9.3.3.5
9.3.3.6
9.3.4
9.3.4.1
9.3.4.2
9.3.4.3
9.3.4.4
9.3.4.5
9.3.4.6
9.3.4.7
Divert unconditionally the calls ............................................ 109
Divert Missed Calls when GsmTerminal is Busy ................................ 110
Divert Missed Calls when GsmTerminal does not reply ......................... 110
Divert Missed Calls when GsmTerminal is not Reachable ....................... 111
Divert All Missed Calls ..................................................... 112
Call Barring Control ........................................................... 112
Call Barring Service status query ........................................... 113
Barring/Unbarring All Incoming Calls ........................................ 113
Barring/Unbarring Incoming Calls when in International Roaming .............. 114
Barring/Unbarring All Outgoing Calls ........................................ 114
Barring/Unbarring All Outgoing International Calls .......................... 115
Barring/Unbarring All Outgoing International Calls except Home Country ...... 115
Unbarring All the Calls ..................................................... 116
9.4
9.4.1
POWER SAVING FUNCTIONS .........................................................
......................................................... 117
Enabling/Disabling the power saving function ................................... 117
9.5
9.5.1
9.5.1.1
9.5.1.2
9.5.1.3
9.5.1.4
9.5.1.5
9.5.1.6
9.5.2
9.5.3
9.5.4
9.5.5
9.5.6
9.5.7
9.5.8
SMS HANDLING ................................................................
...................................................................
................................... 118
SMS device setup ............................................................... 118
Select SMS format type ...................................................... 118
Check SMS Service Centre number ............................................. 118
Add SMS Service Centre number (only if required) ............................ 119
Select New Messages indication behaviour .................................... 119
Set Text Mode Parameters (only in text mode) ................................ 121
Select SMS memory and check for memory space ................................ 124
IRA character set .............................................................. 124
Writing a New SMS to storage ................................................... 125
Sending an SMS previously stored ............................................... 126
Sending a new SMS without storing .............................................. 127
Deleting an SMS ................................................................ 127
Reading an SMS ................................................................. 128
Listing a group of SMSs ........................................................ 129
10
LIST OF ACRONYMS ..................................................
.................................................. 131
© 2002 CONTRIVE – T1010.eng
Page 6 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
The GsmTerminal can be driven via the serial interface using the standard AT commands 1 .
The GsmTerminal is compliant with:
1. Hayes standard AT command set, in order to maintain the compatibility with existing SW programs.
2. ETSI GSM 07.07 specific AT command
3. ETSI GSM 07.05 specific AT commands for SMS (Short Message Service) and CBS
(Cell Broadcast Service)
4. FAX Class 1 compatible commands
Moreover, the GsmTerminal supports also Telit proprietary AT commands for special purposes.
In the following the dedicated description of how to use the AT commands with the GsmTerminal..
1 DEFINITIONS
The following syntactical definitions apply:
<CR> Carriage return character, is the command line and result code terminator character, which value, in
decimal ASCII between 0 and 255,is specified within parameter S3.
The default value is 13.
<LF> Linefeed character is the character recognised as line feed character. Its value, in decimal ASCII
between 0 and 255, is specified within parameter S4. The default value is 10.
The line feed character is output after carriage return character if verbose result codes are used (V1
option used) otherwise, if numeric format result codes are used (V0 option used) it will not appear in the
result codes.
<...> Name enclosed in angle brackets is a syntactical element. They do not appear in the command
line.
[...] Optional subparameter of a command or an optional part of TA information response is enclosed in
square brackets. Brackets themselves do not appear in the command line. When subparameter is not
given in AT commands which have a read command, new value equals to its previous value. In AT
commands which do not store the values of any of their subparameters, and so have not a read
command, which are called action type commands, action should be done on the basis of the
recommended default setting of the subparameter.
2 AT COMMAND SYNTAX
GSM commands use syntax rules of extended commands.
Every extended command has a test command (trailing =?) to test the existence of the command and to
give information about the type of its subparameters. There are two types of extended command:
ƒ Parameter type commands which also have a read command (trailing?) to check the current values of
subparameters.
ƒ Action type commands do not store the values of any of their possible subparameters, and therefore do
not have a read command.
2.1 Command lines
The basic structure of the command lines are:
ƒ ATCMD1<CR> where AT is the command line prefix, CMD1 is a basic command (i.e. it have not + prefix)
and CR is the command line terminator character
ƒ ATCMD2=10<CR> where 10 is a subparameter
ƒ AT+CMD1;+CMD2=, ,10<CR> These are two examples of extended commands (which have a + prefix).
They are delimited with semicolon. In the second command the subparameter is omitted
ƒ +CMD1?<CR> This is a read command for checking current subparameter values
ƒ +CMD1=?<CR> This is a test command for checking possible subparameter values
The AT is an ATTENTION command and is used as a prefix to other parameters in a string. The AT
command combined with other parameters can be set up in the communications package or typed in
manually as a command line instruction.
1
© 2002 CONTRIVE – T1010.eng
Page 7 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
These commands could be performed in a single command line as shown below:
ATCMD1 CMD2=10;+CMD1;+CMD2=, ,10;+CMD1?;+CMD1=?<CR>
If command V1 is enabled (verbose responses codes) and all commands in a command line has been
performed successfully, result code <CR><LF>OK<CR><LF> is sent from the TA to the TE, if subparameter
values of a command are not accepted by the TA or command itself is invalid, or command cannot be
performed for some reason, result code <CR><LF>ERROR<CR><LF> is sent and no subsequent commands
in the command line are processed. If command V0 is enabled (numeric responses codes), and all
commands in a command line has been performed successfully, result code 0<CR> is sent from the TA to
the TE, if sub-parameter values of a command are not accepted by the TA or command itself is invalid, or
command cannot be performed for some reason, result code 4<CR> and no subsequent commands in the
command line are processed.
In case of errors depending on ME operation, ERROR (or 4) response may be replaced by
+CME ERROR: <err> (refer clause 9) or +CMS ERROR: <err>.
Note: On a single line can be placed a maximum of 8 standard Hayes commands as defined in V.25ter.
On a single line can be placed a maximum of 4 extended commands (AT+) separated by semicolon (;).
2.2 Information responses and result codes
The TA response, in case of verbose response format enabled, for the previous examples command line
could be as shown below:
information response to +CMD1? <CR><LF>
+CMD1:2,1,10<CR><LF>
information response to +CMD1=? <CR><LF>
+CMD1(0-2),(0,1),(0-15)<CR><LF>
final result code <CR><LF>OK<CR><LF>
Moreover there are other two types of result codes:
ƒ result codes that inform about progress of TA operation (e.g. connection establishment CONNECT)
ƒ result codes that indicate occurrence of an event not directly associated with issuance of a command
from TE (e.g. ring indication RING).
Here the basic result codes according to ITU-T V25Ter recommendation:
Result Codes
Numeric Form
Verbose Form
0
OK
1
CONNECT
2
RING
3
NO CARRIER
4
ERROR
6
NO DIALTONE
7
BUSY
8
NO ANSWER
2.3 Command Response Timeout
Every command issued to the GsmTerminal returns a result response if response codes are enabled
(default). The time needed to process the given command and return the response varies from command to
command and may depend also from the network on which the command may interact.
As a result, every command is provided with a proper timeout time, if this time elapses without any result
from the operation, then an ERROR response is reported as if the operation was not successful and the
operation is terminated.
The timeout time is quite short for commands that imply only internal set up commands, but may be very
long for command that interact with the network (or even Networks).
The default timeout is 100 ms for all the commands that have no interaction with the network or upper
software layers.
© 2002 CONTRIVE – T1010.eng
Page 8 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
In the table below are listed all the commands whose timeout differs from the default 100 ms and their
effective timeout is reported:
Command
AT+CBST
AT+CR
AT+CRC
AT+CRLP
AT+CSCS
AT+CEER
AT+CGMI
AT+CGMM
AT+CGMR
AT+CGSN
AT+CIMI
AT+CNUM
AT+CREG
AT+COPS
AT+CLCK
AT+CPWD
AT+CLIP
AT+CLIR
AT+CCWA
AT+CHLD
AT+CUSD
AT+CAOC
AT+CSSN
AT+CLCC
AT+CPAS
AT+CPIN
AT+CSQ
AT+CPBS
AT+CPBR
AT+CPBF
AT+CPBW
AT+CALM
AT+CRSL
© 2002 CONTRIVE – T1010.eng
Timeout (s)
0.2
0.2
0.2
0.2
0.2
5
5
5
5
20
20
20
5
180
180
180
180
180
20
20
180
20
20
20
5
20
5
5
20
20
20
5
5
Command
AT+CLVL
AT+CMUT
AT+CACM
AT+CAMM
AT+CPUC
AT+CMEE
AT+VTS
AT+GMI
AT+GMM
AT+GMR
AT+GSN
ATI3
ATI4
ATI5
AT+CSMS
AT+CPMS
AT+CMGF
AT+CSCA
AT+CSMP
AT+CSDH
AT+CSAS
AT+CRES
AT+CNMI
AT#CAP
AT#SRS
AT#SRP
AT#STM
AT#PCT
AT#SHDN
AT#QTEMP
AT#SGPO
AT#GGPI
AT#MONI
Page 9 / 133
Timeout (s)
5
5
20
20
20
5
20
5
5
5
20
5
5
5
5
5
5
20
5
5
5
5
5
10
10
10
10
10
10
10
10
10
10
www.gsm-control.biz
GsmTerminal - AT Command Set
3 HAYES COMPLIANT AT COMMANDS
3.1 Generic Modem Control
3.1.1 &F - restore factory configuration
EXECUTE COMMAND :
AT&F
Calls the factory configuration, resetting the default profile.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.1.2 Z - soft reset to user defined profile
EXECUTE COMMAND :
ATZ
Send a software reset to device, loading the specified configuration
default profile.
Parameter: <n>=0…1 - profile
Note: Must be the last command on the line.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.1.3 +FCLASS - select active service class
EXECUTE COMMAND :
READ COMMAND :
Returns the current configuration value of the parameter <n>.
WRITE COMMAND :
Set the GsmTerminal in specified connection mode (data, fax, voice),
hence all the calls done after will be data, fax or voice.
Parameter:
<n> : 0 = data
<n> : 1 = fax class 1 (EIA/TIA 578-A, Service Class 1)
<n> : 8 = voice
TEST COMMAND :
Returns all supported values of the parameter <n>.
AT+FCLASS?
AT+FCLASS=<n>
AT+FCLASS=?
EXAMPLE :
REFERENCE :
GSM 07.07.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 10 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.4 &Y - designate a default reset profile
EXECUTE COMMAND :
AT&Y<n>
GsmTerminal is able to store 2 complete configurations (see command &W).
The command &Y defines which one of the 2 profiles will be the default profile
to be loaded on start-up.
Parameter: <n> = 0…1 - profile
Note: Differently from ATZ<n> command which simply loads the desired
profile, with the command AT&Y the chosen profile becomes the one which
will be loaded on every start-up.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.5 &W - store current configuration
EXECUTE COMMAND :
AT&W<n>
Stores on profile n the complete configuration of the device.
Parameter: <n> = 0…1 - profile
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.6 &Z - store telephone number in the GsmTerminal internal phonebook
EXECUTE COMMAND :
AT&Z<n>=<nr>
GsmTerminal has a built in non volatile memory in which telephone numbers
of a maximum 24 digits can be stored.
The command AT&Z <n> = <nr> stores in the record n the telephone number
nr. The records cannot be overwritten, they must be cleared before rewriting.
Parameter: <n>: phonebook record <nr>: telephone number
Note1: To delete the record <n> the command AT&Z<n>= must be issued.
Note2: The records in GsmTerminal memory can be viewed with the command
AT&N, while the telephone number stored in the record n can be dialled by
giving the command ATDS=<n>.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 11 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.7 &N - display internal phonebook stored numbers
EXECUTE COMMAND :
AT&N<n>
Returns the telephone number stored in the internal memory at the record
number <n>.
Parameter: <n> phonebook record (0÷9)
Note: if parameter <n> is omitted then all the internal records are shown.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.8 +GMI - request manufacturer identification
EXECUTE COMMAND :
AT+GMI
Returns the manufacturer identification.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V.25 ter.
SW RELEASE :
Version A
3.1.9 +GMM - request model identification
EXECUTE COMMAND :
AT+GMM
Returns the model identification.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V.25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 12 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.10 +GMR - request revision identification
EXECUTE COMMAND :
AT+GMR
Returns the software revision identification.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V.25 ter.
SW RELEASE :
Version A
3.1.11 +GCAP - request capabilities list
EXECUTE COMMAND :
AT+GCAP
Returns the equipment supported command list.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V.25 ter.
SW RELEASE :
Version A
3.1.12 +GSN - request serial number
EXECUTE COMMAND :
AT+GSN
Returns the device board serial number.
Note: The number returned is not the IMSI, it's only the board number.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 13 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.13 &V - display current configuration profile
EXECUTE COMMAND :
AT&V
Returns the current configuration parameters setting.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
AT&V
DTE SPEED
DTE FORMAT
CELLULAR PHONE
GSM DATA MODE
AUTOBAUD
COMMAND ECHO
RESULT MESSAGES
VERBOSE MESSAGES
EXTENDED MESSAGES
ECM TYPE MESSAGES
LINE SPEED
CONSTANT DTE SPEED
FLOW CONTROL OPTIONS
ERROR CORRECTION MODE
CTS (C106) OPTIONS
DSR (C107) OPTIONS
DTR (C108) OPTIONS
DCD (C109) OPTIONS
RI (C125) OPTIONS
C108/1 OPERATION
POWER SAVING ON DTR
CALL ABORT
DEFAULT PROFILE
OK
REFERENCE :
V.25 ter.
SW RELEASE :
Version A
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
19200
8N1
GSM TELIT: Operative
\N4=Not Transparent
+IPR0=YES
E1=YES
Q0=YES
V1=YES
X1=YES
\V0=NO
F8=9600
\J0=YES
&K3=HW bidirect.
\N4=RLP
&B2=OFF while disc.
&S3=PHONE ready->ON
&D0=ignored
&C1=follows carrier
\R1=OFF dur. off-hk
&D4=NO
+CFUN:1=NO
*K1=YES
&Y0=user profile 1
3.1.14 &V0 - display current configuration & profile
EXECUTE COMMAND :
AT&V0
Returns all the configuration parameters settings.
Note: this command is the same as &V, it's included only for backwards
compatibility.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 14 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.15 &V1 - display S registers values
EXECUTE COMMAND :
AT&V1
Returns the value of the S registers in decimal and hexadecimal value in the
format:
REG DEC HEX
<reg> <dec> <hex>
where
<reg> - S register number (0 .. 52)
<dec> - current value in decimal notation
<hex> - current value in hexadecimal notation
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.16 &V2 - display last connection statistics
EXECUTE COMMAND :
AT&V2
Returns the last connection statistic & connection failure reason.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.17 \V - single line connect message
EXECUTE COMMAND :
AT\V<n>
Set single line connect message.
Parameter:
<n> = 0 - off
<n> = 1 - on
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 15 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.1.18 %L - report line signal level
EXECUTE COMMAND :
AT%L
Reports the line signal level.
Note: Since on mobile phones there's no line connection, command is
included only for compatibility and returns only OK.
To check signal strength (level) use the +CSQ command.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.1.19 %Q - report line quality
EXECUTE COMMAND :
AT%Q
Reports the line quality indicator.
Note: Since on mobile phones there's no line connection, command is
included only for compatibility and returns only OK.
To check signal strength (level) use the +CSQ command
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 16 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2 DTE - modem interface control
3.2.1 E - command echo
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
ATE<n>
Controls the command echo response of the device.
Parameter:
<n> = 0 - disables command echo, after this command the only characters
received by the DTE are the responses to commands sent to the device.
<n> = 1 - enables command echo (default), command sent to the device
are echoed back to the DTE before the response is given.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.2.2 Q - quiet result code presentation
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
ATQ<n>
Enables or disables the TE result code presentation to TA.
Parameter:
<n> = 0 - DCE transmits result codes.
<n> = 1 - Result codes are suppressed and not transmitted.
Note: After disabling result codes with ATQ1, the device does not return a
response to commands (usually OK), but commands are executed anyway.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.2.3 V - result code form
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
ATV<n>
Sets the result code format.
Parameter:
<n> : 0 = set the short format (terse) return codes are numbers 0÷9.
<n> : 1 = set the long form (verbose) return codes
Note: Line feed is not issued after short format result code.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 17 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.4 X - extended result codes
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
ATX<n>
Selects the result code messages used by GsmTerminal for call monitoring.
Parameter:
<n> = 0 - send only OK, CONNECT, RING, NO CARRIER, ERROR, NO ANSWER
Busy tones reporting is disabled.
<n> = 1,2,3,4 - reports all messages (default).
Note: For complete control on CONNECT response message see also +DR.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.2.5 I - request identifier and software checksum
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
ATI<n>
Returns the identifier and a software checksum.
Parameter:
<n> = 0 - numerical identifier.
<n> = 1 - GsmTerminal checksum.
<n> = 2 - checksum check result.
<n> = 3 - manufacturer, software product code.
<n> = 4 - product name.
<n> = 5 - DOB version
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version B
3.2.6 &C - data carrier detect (DCD) control mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT&C<n>
Controls the EIA232 DCD (circuit 109) output behaviour.
Parameter:
<n> = 0 - DCD remains high always.
<n> = 1 - DCD follows the Carrier detect status: if carrier is detected DCD
is high, otherwise DCD is low (default).
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 18 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.7 &D - data terminal ready (DTR) control mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT&D<n>
Controls the GsmTerminal behaviour to the EIA232 DTR (circuit 108)
transition.
Parameter:
<n> = 0 - DTR transitions are ignored.
<n> = 1 - When the GsmTerminal is connected, the high to low transition
of DTR pin sets the device in command mode, the current connection is
NOT closed.
<n> = 2 - When the GsmTerminal is connected, the high to low transition
of DTR pin sets the device in command mode and the current connection
is closed.
Note: If AT&D2 command is issued, the device does not answer to
incoming calls if DTR is low, even if ATA command is given.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.2.8 &K - flow control
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT&K<n>
Controls the EIA232 flow control behaviour.
Parameter:
<n> = 0 - disabled.
<n> = 1 - only CTS active, hardware mono-directional.
<n> = 2 - XON/XOFF, software mono-directional.
<n> = 3 - RTS/CTS active, hardware bi-directional (default).
<n> = 4 - XON/XOFF, software bi-directional with filtering.
<n> = 5 - XON/XOFF, software bi-directional without filtering (pass-through).
<n> = 6 - RTS/CTS active, hardware bi-directional & XON/XOFF software
bi-directional with filtering.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 19 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.9 &B - clear to send (CTS) control mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT&B<n>
Controls the EIA232 CTS (circuit 106) output behaviour.
Parameter:
<n> = 0 - always ON (high).
<n> = 1 - follows RTS (C105).
<n> = 2 - always ON when connected, OFF otherwise.
Note: If flow control is enabled CTS pin is controlled by the hardware serial
port, hence this setting works only if hardware flow control is disabled.
See also command &K.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.2.10 &S - data set ready (DSR) control mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT&S<n>
Controls the EIA232 DSR (circuit 107) output behaviour.
Parameter:
<n> = 0 - always ON.
<n> = 1 - follows the GSM traffic channel indication.
<n> = 2 - ON when connected, OFF otherwise.
<n> = 3 - ON when device is ready to receive commands.
Note: If option 1 is selected then DSR is tied up when the device receives
from the network the GSM traffic channel indication.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 20 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.11 \R - ring (RI) control mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT\R<n>
Controls the EIA232 RING (circuit 125) output behaviour.
Parameter:
<n> = 0 - RING off when disconnecting.
<n> = 1 - RING off at off-hook time.
<n> = 2 - RING follows the ring signal.
Note: To check the ring option status use the &V command.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.2.12 +IPR - fixed DTE interface rate
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of +IPR parameter.
WRITE COMMAND :
Specifies the DTE speed at which the device accepts commands during
command mode operation, it may be used to fix DTE-DCE interface speed.
Parameter:
<rate> = 0/1200/2400/4800/9600/19200/38400/56700/115200.
AT+IPR?
AT+IPR=<rate>
If <rate> is unspecified or set to 0, then automatic speed detection is
enabled and also character format (see +ICF) is set to auto-detect.
If <rate> is specified and not 0, DTE-DCE speed is fixed at that speed, hence
no speed auto-detection (autobauding) is enabled.
TEST COMMAND :
AT+IPR=?
Returns the supported serial port speed list.
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 21 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.13 +IFC - DTE / DTA flow control
EXECUTE COMMAND :
READ COMMAND :
Returns active flow control settings.
WRITE COMMAND :
Selects the flow control behaviour of the serial port in both directions: from
DTE to DTA (<by_ta> option) and from DTA to DTE (<by_te>).
Parameter:
<by_te> - flow control option for the data received by DTE.
<by_ta> - flow control option for the data sent by DTA (GsmTerminal).
AT+IFC?
AT+IFC<by_te>,
<by_ta>
<by_te> = 0 - flow control NONE.
<by_te> = 1 - XON/XOFF filtered.
<by_te> = 2 - RTS (C105).
<by_te> = 3 - XON/XOFF non filtered.
<by_ta> = 0 - flow control NONE.
<by_ta> = 1 - XON/XOFF.
<by_ta> = 2 - CTS (C106).
Note: This command is equivalent to &K command.
TEST COMMAND :
AT+IFC=?
Returns all supported values of the parameters <by_te> and <by-ta>.
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.2.14 +ILRR - DTE modem local rate reporting
EXECUTE COMMAND :
READ COMMAND :
Returns active setting of port speed rate reporting information.
WRITE COMMAND :
Controls whether or not the +ILRR<rate> information text is transmitted from
GsmTerminal to the DTE.
Parameter:
<n> = 0 - local port speed rate reporting disabled
<n> = 1 - local port speed rate reporting enabled
AT+ILRR?
AT+ILRR=<n>
Note: This information if enabled is sent upon connection.
TEST COMMAND :
AT+ILRR=?
Returns all supported values of parameter <n>.
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 22 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.2.15 +ICF - DTE modem character format
EXECUTE COMMAND :
READ COMMAND :
Returns current value of character format.
WRITE COMMAND :
Defines the asynchronous character format to be used when autobauding
is disabled.
Parameter:
<format > - 0..5, <parity> = 0/1.
AT+ICF = 0 - auto detect.
AT+ICF = 1 - 8 data bits, no parity, 2 stop bits.
AT+ICF = 2,0 - 8 data bits, odd parity, 1 stop bit.
AT+ICF = 2,1 - 8 data bits, even parity, 1 stop bit.
AT+ICF = 3 - 8 data bits, no parity, 1 stop bit.
AT+ICF = 5,0 - 7 data bits, odd parity, 1 stop bit.
AT+ICF = 5,1 - 7 data bits, even parity, 1 stop bit.
TEST COMMAND :
Returns all supported values of the parameters <format> and <parity>.
AT+ICF?
AT+IFC=<format>
[,<parity>]
AT+ICF=?
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 23 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.3 Call control
3.3.1 D - dial
EXECUTE COMMAND :
ATD<number>
Starts a call to the phone number given as parameter.
Parameter: <number> - phone number to de dialled.
Note: The call is a data call or voice call depending on +FCLASS setting.
If AT+FCLASS=8 command was issued before calling then the call will be
done as voice call, instead if AT+CLASS=0 command was issued the call will
be a data one. The default value of +FCLASS is 0 hence calls are by default
data ones.
The numbers accepted are 0÷9 and #,*,"A", "B", "C", "D", "+".
For backwards compatibility with landline modems modifiers "T", "P", "R",
",", "W","!","@" are accepted but have no effect.
EXECUTE COMMAND :
Issues a VOICE call to the number given regardless of the current value of
the parameter +FCLASS, which remains unaffected.
Parameter: <number> - phone number to be dialled.
EXECUTE COMMAND :
Issues a call (VOICE if ";" modifier is added to the end of the command) to
the specified phonebook number
Parameter :
<mem> phonebook
"SM" - SIM phonebook
"FD" - SIM fixed dialling phonebook
"LD" - SIM last dialling phonebook
"MC" - device missed (unanswered received) calls list
"RC" - ME received calls list
<n> position number to be called
EXECUTE COMMAND :
ATD><n> [;]
Issues a call (VOICE if ";" modifier is added to the end of the command) to
the number stored in the SIM phonebook record number <n>.
Parameter: <n> - SIM phonebook position to be called.
EXECUTE COMMAND :
Issues a call to the last number dialled.
EXECUTE COMMAND :
Issues a call to the internally stored number at the position <nr>.
See commands &N and &Z.
EXECUTE COMMAND :
Issues a call (VOICE if ";" modifier is added to the end of the command)
overriding the CLIR setting in order to hide the CLI to the called party for the
current call only (CLIR temporary invocation).
EXECUTE COMMAND :
Issues a call (VOICE if ";" modifier is added to the end of the command)
overriding the CLIR setting in order to show the CLI to the called party for the
current call only (CLIR temporary suppression).
EXECUTE COMMAND :
Issues a call (VOICE if ";" modifier is added to the end of the command)
checking the CUG supplementary service for the current call.
Refer to +CCUG command.
ATD<number>;
ATD><mem><n> [;]
ATDL
ATDS=<nr>
ATD<n> I [;]
ATD<n> i [;]
ATD<n> G [;]
ATD<n> g [;]
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 24 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.3.2 T - set tone dial
EXECUTE COMMAND :
ATT
It has no effect, included for backward compatibility with landline modems.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.3.3 P - set pulse dial
EXECUTE COMMAND :
ATP
It has no effect, included for backward compatibility with landline modems.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.3.4 A - answer
EXECUTE COMMAND :
ATA
It's used to answer to an incoming call if automatic answer is disabled.
Note: This command MUST be the last in the command line and must be
followed immediately by a <CR> character.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.3.5 A/ - Last command automatic repetition
EXECUTE COMMAND :
A/
It's used to execute again the last received command.
Note: You mustn't end this command with a <CR> character.
If autobauding is active (see +IPR) this command has no effect.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 25 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.3.6 H - disconnect
EXECUTE COMMAND :
ATH
It's used to close the current connection (voice, data or fax).
Note: When a data connection is active the device is in on-line mode and
commands are not sensed, instead characters are sent to the other party. To
issue this command you must be in command mode operation, hence
escape sequence (see register S2) may be required before issuing this
command, otherwise if &D1 option is active, DTR pin should be tied low to
return in command mode.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.3.7 O - return to On Line (data) Mode
EXECUTE COMMAND :
ATO
It's used to return to On-line mode from command mode. If there's no
connection active returns ERROR.
Note: After the issue of this command, if the device is in connection, to
send other commands to the device you must return to command mode by
issuing the escape sequence or lowering DTR if &D1 option is active.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.3.8 &G - guard tone
EXECUTE COMMAND :
AT&G
It has no effect, included for backward compatibility with landline modems.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 26 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.3.9 &P - pulse dial make/break ratio
EXECUTE COMMAND :
AT&P
It has no effect, included for backward compatibility with landline modems.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.4 Modulation control
3.4.1 +MS - modulation control
EXECUTE COMMAND :
READ COMMAND :
Returns current values of parameters.
WRITE COMMAND :
It has no effect, included for backward compatibility with landline modems.
Parameter:
<modul> = V21 / V22 / V22B / V23C / V32 / V32
<automode> = 0/1
<min_speed> = 0
<max_speed> = 300÷14400
AT+MS?
AT+MS=<modul>,
<automode>,
<min_speed>,
<max_speed>
Note: To change modulation requested use +CBST command.
TEST COMMAND :
AT+MS=?
Returns all supported values of the parameters.
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.4.2 %E - enable/disable line quality monitor & auto retrain or fallback / fallforward
EXECUTE COMMAND :
AT%E
It has no effect, included for backward compatibility with landline modems.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 27 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.5 Compression control
3.5.1 +DS - set data compression
EXECUTE COMMAND :
READ COMMAND :
Returns the value of the data compression parameter.
WRITE COMMAND :
Sets the V24 compression parameter.
Parameter:
<n> = 0 - no compression.
<n> = 1 - compression enabled.
AT+DS?
AT+DS=<n>
Note: The only value supported is 0 - no compression
TEST COMMAND :
AT+DS=?
Returns all supported values of the parameter n.
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.5.2 +DR - data compression reporting
EXECUTE COMMAND :
READ COMMAND :
Returns the value of the data compression reporting parameter.
WRITE COMMAND :
Controls the compression reporting upon connection.
Parameter:
<n> = 0 - no data compression reporting is displayed at the connection
<n> = 1 - data compression report message is sent upon connection
TEST COMMAND :
Returns all supported values of the parameter n.
AT+DR?
AT+DR=<n>
AT+DR=?
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.6 Break control
3.6.1 \B - transmit break to remote
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT\B
It has no effect, included for backward compatibility with landline modems.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 28 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.6.2 \K - break handling
EXECUTE COMMAND :
READ COMMAND :
AT\K<n>
It has no effect, included for backward compatibility with landline modems.
<n> = 1…5
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.7 S parameters
3.7.1 S0 - set number of rings to auto answer
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S0 parameter.
WRITE COMMAND :
Sets the number of rings required before device automatically answer an
incoming call.
Parameter:
<n> = 1 ÷ 255
<n> = 0 - auto answer disabled
ATS0?
ATS0=<n>
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.7.2 S1 - set ring counter
EXECUTE COMMAND :
READ COMMAND :
ATS1?
S1 is incremented each time the device detects the ring signal of an incoming
call. S1 is cleared if no ring occur over an eight seconds interval.
This command returns the value of this parameter.
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 29 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.7.3 S2 - set escape character
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S2 parameter.
WRITE COMMAND :
S2 holds the decimal value of the ASCII character used as escape character.
This command sets this character equal to <char>.
Parameter:
<char> - escape character 0 ÷ 255
ATS2?
ATS2=<char>
Note: The escape sequence consists of three escape characters preceded by
n ms of idle and followed by m ms of idle (USUALLY +++).
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.7.4 S3 - set command line termination character
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S2 parameter.
WRITE COMMAND :
Sets the command line and result code terminator character in decimal ASCII.
Parameter:
<char> = carriage return character 0 ÷ 127
ATS3?
ATS3=<char>
Note: Default 13 (Carriage Return)
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.7.5 S4 - set response formatting character
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S4 parameter.
WRITE COMMAND :
Sets the character recognized as line feed character.
Parameter:
<char> = line feed character 0 ÷ 127
ATS4?
ATS4=<char>
Note: Default 10 (Line Feed). The line feed character is output after carriage
return character if verbose result codes are used (V1 option used).
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 30 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.7.6 S5 - set command line editing character
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S5 parameter.
WRITE COMMAND :
Sets the decimal ASCII character that is recognized as backspace character.
Parameter:
<char> - backspace character 0 ÷ 127
ATS5?
ATS5=<char>
Note: Default 8 (backspace).
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25ter.
SW RELEASE :
Version A
3.7.7 S7 - set wait time for connection completion
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S7 parameter.
WRITE COMMAND :
S7 sets the length of time in seconds that the device will wait for carrier
before hanging up the call. The timer is started when the device finishes
dialling (originate), or 2 seconds after going off-hook.
Parameter:
<sec> = 1 ÷ 255
ATS7?
ATS7=<sec>
Note: Default is 60 seconds.
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25 ter.
SW RELEASE :
Version A
3.7.8 S10 - set lost carrier to hang up delay
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S10 parameter.
WRITE COMMAND :
S10 defines the maximum time allowed to a carrier loss before disconnecting.
Parameter:
<time> = tenth of seconds 1 ÷ 255
ATS10?
ATS10=<time>
Note: Default is 50 (5 seconds).
TEST COMMAND :
EXAMPLE :
REFERENCE :
V25ter.
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 31 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.7.9 S12 - set escape prompt delay
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S12 parameter.
WRITE COMMAND :
Defines the guard time of silence before and after the escape sequence in
order to accept it as a valid one.
Parameter:
<time> - 20 ÷ 255 fiftieth of seconds
ATS12?
ATS12=<time>
Note: Default is 50 (1 second).
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.7.10 S25 - set delay to DTR off
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S25 parameter.
WRITE COMMAND :
Defines how long the DTR must be OFF to consider the high to low transition
as a valid one.
Parameter:
<time> = 1 ÷ 255 hundredth of seconds
ATS25?
ATS25=<time>
Note: Default is 5 (5 hundredth of seconds).
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
3.7.11 S30 - set disconnect inactivity timer
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S30 parameter.
WRITE COMMAND :
Defines the inactivity timeout timer value in minutes.
GsmTerminal disconnects if no characters are exchanged for a time period of
at least S30 minutes.
Parameter:
<min> = 1 ÷ 127 minutes
<min> = 0 - means inactivity timer disabled, hence no disconnect on inactivity
feature is enabled.
ATS30?
ATS30=<min>
Note: Default is 0.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 32 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
3.7.12 S38 - set delay before forced hang up
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of S38 parameter.
WRITE COMMAND :
Defines the time in seconds that the device waits after a hang up command
for transmit buffer to be emptied. 255 value means that disconnecting is
done only after complete buffer upload.
Parameter:
<sec> - 20 ÷ 255 seconds
ATS38?
ATS38=<sec>
Note: Default is 20 second.
TEST COMMAND :
EXAMPLE :
REFERENCE :
SW RELEASE :
Version A
4 ETSI GSM 07.07 AT Commands
4.1 General
4.1.1 +CGMI - request manufacturer identification
EXECUTE COMMAND :
AT+CGMI
Returns the device manufacturer identification code.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.1.2 +CGMM - request model identification
EXECUTE COMMAND :
AT+CGMM
Returns the device model identification code.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 33 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.1.3 +CGMR - request revision identification
EXECUTE COMMAND :
AT+CGMR
Returns device software revision number.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.1.4 +CGSN - request product serial number identification
EXECUTE COMMAND :
AT+CGSN
Returns the product serial number, identified as the IMEI of the mobile.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.1.5 +CGCS - select TE character set
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of the active character set.
WRITE COMMAND :
Sets the current character set used by the device.
Parameter:
<chset> = "IRA" - char set
AT+CSCS?
AT+CSCS<chset>
Note: The only character set supported yet is the ITU-T.50 (IRA).
TEST COMMAND :
AT+CSCS=?
Returns the supported values of the parameter chset.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 34 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.1.6 +CIMI - request international mobile subscriber identity (IMSI)
EXECUTE COMMAND :
AT+CIMI
Returns the value of the International Mobile Subscriber Identity stored in the
SIM card.
Note: A SIM card must be present in the SIM card housing, else the command
returns ERROR.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 35 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.2 Call Control
4.2.1 +CBST - select bearer service type
EXECUTE COMMAND :
READ COMMAND :
Returns current value of the parameters <speed>, <name> and <ce>.
WRITE 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 (refer +CSNS).
Parameters:
The default values of the subparameters are manufacturer specific since they
depend on the purpose of the device and data services provided by it.
Not all combinations of these subparameters are supported.
The supported values are:
AT+CBST?
AT+CBST=<speed>,
<name>,<ce>
<speed>
0 – autobauding (automatic selection of the speed)
1 - 300 bps (V.21)
2 - 1200 bps (V.22)
3 - 1200/75 bps (V.23)
4 - 2400 bps (V.22bis)
6 - 4800 bps (V.32)
7 - 9600 bps (V.32)
14 - 14400 bps (V.34)
65 - 300 bps (V.110)
66 - 1200 bps (V.110)
68 - 2400 bps (V.110 or X.31 flag stuffing)
70 - 4800 bps (V.110 or X.31 flag stuffing)
71 - 9600 bps (V.110 or X.31 flag stuffing)
75 - 14400 bps (V110 or X.31 flag stuffing)
<name>
0 - data circuit asynchronous
<ce>
0 – transparent
1 – non transparent
Note: Default is +CBST = 0,0,1.
TEST COMMAND :
AT+CBST=?
Returns the supported range of values of the parameters.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 36 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.2.2 +CRLP - radio link protocol
EXECUTE COMMAND :
READ COMMAND :
Returns current value of the RLP protocol parameter.
WRITE COMMAND :
This command sets radio link protocol (RLP) parameters used when nontransparent data calls are originated.
Parameters:
<iws> = 1...61 - Internetworking window size (IWF to MS)
<mws> = 1...61 - Mobile window size (MS to IWF)
<T1> = 39…255 – acknowledge timer (T1 in 10 ms units).
<N2> = 1…255 – retransmission attempts
<ver> = 0 - protocol Version
AT+CRLP?
AT+CRLP=<iws>,
<mws>,<T1>,
<N2>,<ver>
The default values are: 61,61,78,6,0
TEST COMMAND :
AT+CRLP=?
Returns the supported range of values of the RLP protocol parameters.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.2.3 +CR - service reporting protocol
EXECUTE COMMAND :
READ COMMAND :
Returns current intermediate report setting.
WRITE 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.
Parameter: <mode>
<mode> = 0 - disables intermediate result code report
<mode> = 1 - enables intermediate result code report
This command replaces V.25ter [14] command Modulation Reporting
Control +MR, which is not appropriate for use with a GSM terminal.
The result code parameter <serv> has the meaning:
ASYNC - asynchronous transparent
SYNC - synchronous transparent
REL ASYNC - asynchronous non-transparent
REL SYNC - synchronous non-transparent
TEST COMMAND :
Returns the supported range of values of the parameter <mode>.
AT+CR?
AT+CR=<mode>
AT+CR=?
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 37 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.2.4 +CEER - extended error report
EXECUTE COMMAND :
AT+CEER
Reports an information text regarding some error condition that may occur:
- the failure in the last unsuccessful call setup (originating or answering)
- the last call release
Note: if none of this condition has occurred since power up then No Error
condition is reported
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.2.5 +CRC - cellular result codes
EXECUTE COMMAND :
READ COMMAND :
Returns the current value of the parameter <mode>.
WRITE 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.
Parameter:
<mode> = 0 - disables extended format reporting
<mode> = 1 - enables extended format reporting
AT+CRC?
AT+CRC=<mode>
Note: On +CRING indication <type> parameter is the call type:
<type> = DATA - Data call
<type> = FAX - Facsimile call
<type> = VOICE - Voice call
TEST COMMAND :
AT+CRC=?
Returns supported values of the parameter <mode>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 38 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3 Network service handling
4.3.1 +CNUM - subscriber number
EXECUTE COMMAND :
AT+CNUM
Returns the subscriber number i.e. the phone number of the device that is
stored in the SIM card.
Note: the returned number format is:
+CNUM: [<alpha>] , <number> , <type>
<alpha> - optional alphanumeric string associated to <number>
<number> - string containing the phone number in the format <type>
<type>- type of number:
<type> = 145 - international numbering scheme (contains the
character "+")
<type> = 129 - national numbering scheme
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 39 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.2 +CREG - network registration report
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CREG=<mode>
Enables/disables network registration reports depending on the parameter
mode.
Parameter:
<mode>
0 – disable network registration unsolicited result code
1 – enable network registration unsolicited result code
2 – enable network registration unsolicited result code with network
Cell identification data
If mode=1, network registration result code reports:
+CREG: <stat>
<stat> = 0 – not registered, not currently searching an operator to register to
<stat> = 1 – registered, home network
<stat> = 2 – not registered, but currently searching an operator to register to
<stat> = 3 – registration denied
<stat> = 4 – unknown
<stat> = 5 – registered, roaming
If mode=2, network registration result code reports:
+CREG: <stat>[,<Lac>,<Ci>]
where:
<Lac> is the Local Area Code for the currently registered on cell
<Ci> is the Cell Id for the currently registered on cell
Note: <Lac> and <Ci> are reported only if mode=2 and the mobile is
registered on some network cell.
TEST COMMAND :
AT+CREG?
Reports the <mode> and <stat> parameter values in the format:
+CREG:<mode>,<stat>[,<Lac>,<Ci>]
Note: <Lac> and <Ci> are reported only if mode=2 and the mobile is
registered on some network cell.
EXAMPLE :
AT
OK
at+creg?
+CREG: 0,2 (GsmTerminal is in network searching state)
OK
at+creg?
+CREG: 0,2
OK
at+creg?
+CREG: 0,2
OK
at+creg?
+CREG: 0,2
OK
at+creg?
+CREG: 0,1 (GsmTerminal is registered )
OK
at+creg?
+CREG: 0,1
OK
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 40 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.3 +COPS - operator selection
EXECUTE COMMAND :
READ COMMAND :
Returns current value of <mode>, <format> and <oper>.
WRITE COMMAND :
Forces an attempt to register the GSM network operator, <mode> parameter
defines whether the operator selection is done automatically or it is forced
with <oper> parameter.
Parameters:
<mode> = 0 – automatic choice (the parameter <oper> will be ignored)
<mode> = 1 – manual choice
<mode> = 3 – set only <format> parameter (parameter <oper> ignored)
AT+COPS?
AT+COPS=[<mode>
[,<format>
[,<oper>] ] ]
<format> = 0 – alphanumeric max length 16 digits
<format> = 2 – Numeric 5 digits [country code (3) + network code (2)]
<oper>: network operator in the <format> parameter defined format.
Note: if manual choice selection operator is not available no other operators
will be chosen for registration.
TEST COMMAND :
AT+COPS?
Returns the list of network operators in the format:
+COPS: ( <stat> ,<oper (in format=0)>,””,<oper (in format=2)> )
where the new parameter stat defines the status of the operator:
<stat> = 0 – unknown
<stat> = 1 – available
<stat> = 2 – current
<stat> = 3 – forbidden
Note: since with this command a network scan is done, this
command may require some seconds before the output is given.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 41 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.4 +CLCK - facility lock/unlock
EXECUTE COMMAND :
AT+CLCK=<fac>,
<mode>
[,<passwd>
[,<class>] ]
It is used to lock or unlock a Mobile Equipment (ME) on a network facility.
Parameters:
<fac>:
"SC" - SIM: PIN request at power-up and when this lock command issued
"AO" - BAOC: Barr All Outgoing Calls
"OI" - BOIC: Barr Outgoing International Calls
"OX" - BOIC-exHC: Barr Outgoing International Calls except to Home Country
"AI" - BAIC: Barr All Incoming Calls
"IR" - BIC-Roam: Barr Incoming Calls when Roaming outside the home country
"AB" - All Barring services (applicable only for <mode>=0)
"AG" - All outGoing barring services (applicable only for <mode>=0)
"AC" - All inComing barring services (applicable only for <mode>=0)
"FD" - SIM fixed dialling memory feature (if PIN2 authentication has not been
done during the current session, PIN2 is required as <passwd>)
"PN" - network Personalisation
"PU" - network subset Personalisation
<mode>: defines the operation to be done on the facility
<mode> = 0 - unlock facility (no PIN required)
<mode> = 1 - lock facility (PIN required)
<mode> = 2 - query status ( see below )
<passwd>: shall be the same as password specified for the facility from the
DTE user interface or with command Change Password +CPWD
<class>: represents the class of information of the facility (sum of bits )
<class> = 1 - voice (telephony)
<class> = 2 - data (refers to all bearer services)
<class> = 4 - fax (facsimile services) ().
READ COMMAND :
AT+CLCK=<fac>, 2
Query the status of the facility <fac>.
Returns:
+CLCK:<status> where <status> defines the current status of the facility:
0 - not active (locked, no PIN required)
1 - active (unlocked, PIN required)
Note: For some facility the status is requested to the network, hence if no
network is available the command returns the ERROR message.
WRITE COMMAND :
TEST COMMAND :
AT+CLCK?
Reports all the facility supported by the device.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 42 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.5 +CPWD - change facility password
EXECUTE COMMAND :
AT+CPWD=<fac>,
<oldpwd>,
<newpwd>
Changes the password for the facility lock function of the facility fac.
Parameter: <oldpwd>, <newpwd>.
<fac>:
"SC" - SIM: PIN request at power-up and when this lock command issued
"AO" - BAOC: Barr All Outgoing Calls
"OI" - BOIC: Barr Outgoing International Calls
"OX" - BOIC-exHC: Barr Outgoing International Calls except to Home Country
"AI" - BAIC: Barr All Incoming Calls
"IR" - BIC-Roam: Barr Incoming Calls when Roaming outside the home country
"AB" - All Barring services (applicable only for <mode>=0)
"AG" - All outGoing barring services (applicable only for <mode>=0)
"AC" - All inComing barring services (applicable only for <mode>=0)
"FD" - SIM fixed dialling memory feature (if PIN2 authentication has not been
done during the current session, PIN2 is required as <passwd>)
"PN" - network Personalisation
"PU" - network subset Personalisation
Note: parameter <oldpwd> is the old password, <newpwd> is the new one.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 43 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.6 +CLIP - calling line identification presentation
EXECUTE COMMAND :
READ COMMAND :
AT+CLIP?
Returns the status of the supplementary service CLI in the format:
+CLIP: <n>, <m> where:
<n> = 0 – CLI presentation disabled
<n> = 1 – CLI presentation enabled
<m>: status if the CLIP service on the GSM network
<m> = 0 – CLIP not provisioned
<m> = 1 – CLIP provisioned
<m> = 2 – unknown (e.g. no network is present )
Note: This command issues a status request to the network, hence it may
take a few seconds to give the answer due to the time needed to exchange
data with it.
WRITE COMMAND :
AT+CLIP=<n>
Enables or disables the calling line identification supplementary service
presentation depending on the value of the parameter <n>.
Parameters: <n>
<n> = 0 – disables CLI indication
<n> = 1 – enables CLI indication
If enabled the device reports after each RING the response:
+CLIP:<number>,<type> where:
<number>: calling line number
<type> – type of number:
<type> = 145 - international numbering scheme (contains the character "+")
<type> = 129 - national numbering scheme
Note: The command changes only the report behaviour of the device, it does
not change CLI supplementary service setting on the network.
TEST COMMAND :
AT+CLIP=?
Reports the supported values of the parameter <n>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 44 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.7 +CLIR - calling line identification restriction
EXECUTE COMMAND :
READ COMMAND :
AT+CLIR?
Reports the network & the device CLIR setting in the format:
+CLIR:<n>,<m>
where
<n> is the facility status on the Mobile
0 – CLIR facility according to CLIR service network status
1 – CLIR facility active (CLI not sent)
2 – CLIR facility not active (CLI sent)
<m> is the facility status on the Network
0 – CLIR service not provisioned
1 – CLIR service provisioned permanently
2 – unknown (e.g. no network present, etc.)
3 – CLI temporary mode presentation restricted
4 – CLI temporary mode presentation allowed
WRITE COMMAND :
AT+CLIR=<n>,<m>
Refers to CLIR – service that allows a calling subscriber to enable or disable
the presentation of the CLI to the called party when originating a call
according to the parameters <n> and <m> given
Parameters: <n>, <m>
<n> is the facility status on the Mobile
0 – CLIR facility according to CLIR service network status
1 – CLIR facility active (CLI not sent)
2 – CLIR facility not active (CLI sent)
<m> is the facility status on the Network
0 – CLIR service not provisioned
1 – CLIR service provisioned permanently
3 – CLI temporary mode presentation restricted
4 – CLI temporary mode presentation allowed
Note: This command set the default behaviour of the device in outgoing calls
and of the network. The two settings should not be conflicting.
TEST COMMAND :
AT+CLIR=?
Reports the supported values of the parameter <n>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 45 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.8 +CCFC - call forwarding number and condition
EXECUTE COMMAND :
AT+CCFC=<reasn>,
<cmd>
[,<number>
[,<type>
[,<class>]
[,,,<time>] ] ]
Controls the call forwarding supplementary service. Registration, erasure,
activation, deactivation, and status query are supported.
Parameters:
<reasn> = 0 – unconditional
<reasn> = 1 – mobile busy
<reasn> = 2 – no reply
<reasn> = 3 – not reachable
<reasn> = 4 – all calls (not with query command)
<reasn> = 5 – all conditional calls (not with query command)
<cmd> = 0 – disable
<cmd> = 1 – enable
<cmd> = 2 – query status (see below for further explanations)
<cmd> = 3 – registration
<cmd> = 4 – erasure
<number>: phone number of forwarding address in format specified
by <type> parameter
<type>: type of address byte in integer format :
145 – international numbering scheme (contains the character "+")
129 – national numbering scheme
<class>: is a sum of integers each representing a class of information which
the command refers; default 7 ( voice + data + fax )
<class> = 1 – voice (telephony)
<class> = 2 – data
<class> = 4 – fax (facsimile services, from SW release C)
<time>: is the time in seconds after which the call is diverted if "no reply"
reason is chosen. Valid only for "no reply" reason.
READ COMMAND :
AT+CCFC=<reasn>,
2,[<number>
[,<type>
[,after <time>s ] ] ]
Queries the network for forwarding service settings on a specific reason.
The result is in the form:
+CCFC:<status>,<class>[,<number>[,<type>[,after <time>s]]] where:
<status> = 0 - service not active
<status> = 1 - service active (calls will be forwarded)
<time>: - 1...30 when "no reply" option for reason is enabled or
queried, this gives the time in seconds to wait before call is forwarded,
default value is 20.
The other parameters are as seen before.
Note: When querying the status of a network service (<cmd>=2) the response
line for 'not active' case (<status>=0) should be returned only if service is not
active for any <class>.4 - CLI temporary mode presentation allowed
WRITE COMMAND :
TEST COMMAND :
AT+CCFC=?
Reports the supported values of the parameter <reasn>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 46 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.9 +CCWA - call waiting
EXECUTE COMMAND :
AT+CCWA=[<n>
[,<cmd>
[,<class>] ] ]
Controls the call waiting indication supplementary service.
Activation, deactivation, and status query are supported.
Parameters:
<n>: enables/disables call waiting indication reporting:
<n> = 0 – disable
<n> = 1 – enable
<cmd> enables/disables or queries the service at network level:
<cmd> = 0 – disable
<cmd> = 1 – enable
<cmd> = 2 – query status
<class>: is a sum of integers each representing a class of information which
the command refers; default 7 ( voice + data + fax )
<class> = 1 – voice (telephony)
<class> = 2 – data
<class> = 4 – fax (facsimile services)
The response to the query command is in the form:
+CCWA=<status>,<class> where
<status> represents the status of the service:
<status> = 0 – inactive
<status> = 1 – active
<class> is the class of calls the service status refers to.
Note: if parameter <cmd> is omitted then network is not interrogated.
Note2: In the query command the class parameter must not be issued.
Note3: The difference between call waiting report disabling (AT+CCWA =
0,1,7) and call waiting service disabling (AT+CCWA= 0,0,7) is that in the
first case the call waiting indication is sent to the device by network but this
last one does not report it to the DTE; instead in the second case the call
waiting indication is not generated by the network. Hence the device results
busy to the third party in the 2 nd case while in the 1 st case a ringing
indication is sent to the third party.
Note4: The command AT+CCWA=1,0 is a non sense and must not be
issued.
READ COMMAND :
AT+CCWA?
Reports the current value of the parameter <n>.
WRITE COMMAND :
TEST COMMAND :
AT+CCWA=?
Reports the supported values of the parameter <n>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 47 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.10 +CHLD - call holding services
EXECUTE COMMAND :
AT+CHLD=<n>
Controls the network call hold service. With this service it is possible to
disconnect temporarily a call and keep it suspended while it is retained by the
network, contemporary it is possible to connect another party or make a
multiparty connection.
The action of the command depends on the value of the parameter
Parameter:
<n> = 0 Releases all pending calls
<n> = 1 Releases all active calls (if present), and accepts or reconnects the
pending or waiting call
<n> = 2 Suspends (into pending status) the active call and accepts or
reconnects the waiting or pending call.
<n> = 3 NOT SUPPORTED
Note: ONLY for VOICE calls
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 48 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.11 +CUSD - unstructured supplementary service data
EXECUTE COMMAND :
AT+CUSD=<n>
[,<str>]
Enables /disables the unstructured service data reporting.
Parameters:
<n>: is used to disable/enable the presentation of an unsolicited result code:
+CUSD: <m>[,<str>,<dcs>] to the TE.
<n>:
<n> = 0 – disable the result code presentation in the DTA
<n> = 1 – enable the result code presentation in the DTA
<dcs> indicates which alphabet is used (Data Coding Scheme),refer to
command Select TE Character Set +CSCS
<str> – USSD-string (when <str> is not given, network is not interrogated):
- if TE character set other than "HEX": ME/TA converts GSM alphabet into
current TE character set according to rules of GSM 07.05
- 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
D (GSM 23) is presented as 17 (IRA 49 and 55)
- if <dcs> indicates that 8-bit data coding scheme is used: 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
indicates (IRA 50 and 65))
<m>:
<m> = 0 – no further user action required, hence network initiated USSDNotify, or no further information needed after mobile initiated operation.
<m> = 1 – further user action required, hence network initiated USSDRequest, or further information needed after mobile initiated operation
<m> = 2 – USSD terminated by the network
<m> = 3 – other local client has responded
<m> = 4 – operation not supported
<m> = 5 – network time out
Note: only mobile initiated operations are supported.
Warning: In case of successful mobile initiated operation, DTA waits the USSD
response from the network and sends it to the DTE before the final result
code. This will block the AT command interface for the period of the operation.
READ COMMAND :
AT+CUSD?
Reports the current value of the parameter <n>.
WRITE COMMAND :
TEST COMMAND :
AT+CUSD=?
Reports the supported values of the parameter <n>:
<n> = 0 - result code presentation in the TA disabled
<n> = 1 - result code presentation in the TA enabled
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 49 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.12 +CAOC - advice of charge
EXECUTE COMMAND :
AT+CAOC=<mode>
Controls the advice of charge service; the command also includes the
possibility to enable an unsolicited event reporting of the CCM information.
If unsolicited reporting is enabled DTE sends the result code +CCCM: <acm>
when the CCM value changes, but not more than every 10 seconds.
<acm> - accumulated call meter value hexadecimal representation (3 byte)
Parameter:
<mode> = 0 - ACM (Accumulated Call Meter) read request
<mode> = 1 - disables unsolicited ACM reporting
<mode> = 2 - enables unsolicited ACM reporting
Note: +CAOC command uses the ACM of the device internal memory, not the
ACM stored in the SIM. The difference is that the internal memory ACM is
reset at power up, while the SIM ACM is reset only on user request. Advice of
Charge values stored in the SIM (ACM, ACMmax, PUCT) can be accessed with
commands +CACM, +CAMM and +CPUC.
READ COMMAND :
AT+CAOC?
Reports the value of ACM in the format +CAOC: xxxxxx.
WRITE COMMAND :
TEST COMMAND :
AT+CAOC=?
Reports the supported values for <mode> parameter.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 50 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.13 +CLCC - list current calls
EXECUTE COMMAND :
AT+CLCC
Reports the list of current calls active and their characteristics by sending
the report CLCC:<id>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>]
for each active call, where:
<id> - call identification number
<dir> - call direction
0 - mobile originated call
1 - mobile terminated call
<stat> - 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> - call type
0 – voice
1 – data
2 – fax
9 - unknown
<mpty> - multiparty call f lag
0 - call is not one of multiparty (conference) call parties
1 - NOT SUPPORTED
<number>: phone number in format specified by <type>
<type>: type of phone number byte in integer format
145 - international numbering scheme (contains the character "+")
129 - national numbering scheme
Note: If no call is active then only OK message is sent. This command is
useful in conjunction with command +CHLD to know the various call status
for call holding.
READ COMMAND :
AT+CLCC?
Reports the value of ACM in the format +CAOC: xxxxxx.
WRITE COMMAND :
TEST COMMAND :
AT+CLCC=?
Reports the supported values for <mode> parameter.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 51 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.3.14 +CSSN - SS Notification
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CSSN?
Enable/disable the supplementary service related network initiated notifications, during the origin of outgoing calls (+CSSI) and incoming calls (+CSSU)
Parameters:
<n>: sets the +CSSI result code presentation status
0 disable
1 enable
<m>: sets the +CSSU result code presentation status
0 disable
1 enable
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version B
4.3.15 +CCUG - Closed User Group supplementary service control
EXECUTE COMMAND :
READ COMMAND :
Reports the current value of the parameters in the format:
+CCUG:<n>,<index>,<info>
WRITE COMMAND :
Enable/disable the CUG supplementary service.
Parameters:
AT+CCUG?
AT+CCUG=<n>
[,<index>
[,<info>] ]
<n>
0 - disables the temporary CUG settings for all the successive calls
1 - enables the temporary CUG settings for all the successive calls
<index>
0...9 - CUG index
10 - no index (preferential CUG taken from subscriber data)
<info>
0 - no information
1 - suppress Outgoing Access (OA)
2 - suppress preferential CUG
3 - suppress OA and preferential CUG
TEST COMMAND :
AT+CCUG=?
Reports the supported range of values for the parameters
<n>,<index>,<info>
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 52 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4 Mobile Equipment Control
4.4.1 +CPAS – phone activity status
EXECUTE COMMAND :
AT+CPAS
Reports the device status in the form
+CPAS: <pas>
where
<pas> - phone activity status
0 - ready (Device allows commands from TA/TE)
1 - unavailable (Device does not allow commands from TA/TE)
2 - unknown (Device is not guaranteed to respond to instructions)
3 - ringing (Device is ready for commands from TA/TE, but the ringer is active)
4 - call in progress (Device is ready for commands from TA/TE,
but a call is in progress)Returns the subscriber number i.e. the phone number
of the device that is stored in the SIM card.
Note: the returned number format is:
+CNUM: [<alpha>] , <number> , <type>
<alpha> - optional alphanumeric string associated to <number>
<number> - string containing the phone number in the format <type>
<type>- type of number:
<type> = 145 - international numbering scheme (contains the character "+")
<type> = 129 - national numbering scheme
READ COMMAND :
AT+CPAS?
Same as execute command.
WRITE COMMAND :
TEST COMMAND :
Reports the supported range of values of <pas>.
EXAMPLE :
ATD03282131321;
OK
AT+CPAS?
+CPAS: 3 (the called phone is ringing)
OK
AT+CPAS?
+CPAS: 3
OK
AT+CPAS?
+CPAS: 4 (the called phone has answered to your call)
OK
ATH
OK
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
AT+CPAS=?
© 2002 CONTRIVE – T1010.eng
Page 53 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.2 +CFUN – Set phone functionality (power saving management)
EXECUTE COMMAND :
READ COMMAND :
AT+CFUN?
Reports the power saving status in the form:
+CFUN:<fun>
where
<fun> - power saving status
1 – power saving disabled
2 – power saving enabled
Note: The phone functionality remains always FULL.
WRITE COMMAND :
AT+CFUN=<fun>
Enables/disables the power saving function.
If enabled it reduces the power consumption during the idle time, thus
allowing a longer standby time with a given battery capacity.
Parameters:
<fun>: is the power saving function mode
1 - Mobile full functionality with power saving disabled (default)
5 - Mobile full functionality with power saving enabled
Note: To place the telephone in power saving mode, other than to set the
<fun> parameter at value = 5, the line DTR (RS232) must be set to OFF.
Once in power saving, the CTS line switch to the OFF status to signal that the
telephone is really in power saving condition.
During the power saving condition, before sending any AT command on the
serial line, the DTR must be enabled and it must be waited for the CTS
(RS232) line to go in ON status.
Until the DTR line is ON, the telephone will not return back in the power saving
condition.
Note2: The power saving function does not affect the network behavior of the
GsmTerminal, even during the power save condition the module remains
registered on the network and reachable for incoming calls or SMS. If a call
incomes during the power save, then the module will wake up and proceed
normally with the unsolicited incoming call code
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 54 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.3 +CPIN – enter PIN
EXECUTE COMMAND :
READ COMMAND :
AT+CPIN?
Reports the PIN/PUK/PUK2 request status of the device in the form:
+CPIN:<code>
where <code> is the PIN/PUK/PUK2 request status code:
– device is not pending for any password
READY
– device is waiting SIM PIN to be given
SIM PIN
– device is waiting SIM PUK to be given
SIM PUK
– device is waiting SIM PIN2 to be given; this <code> is
SIM PIN2
returned only when the last executed command resulted
in PIN2 authentication failure (i.e. +CME ERROR: 17)
– device is waiting SIM PUK2 to be given; this <code> is
SIM PUK2
returned only when the last executed command resulted
in PUK2 authentication failure (i.e. +CME ERROR: 18)
– device is waiting network personalization password to be
PH-NET PIN
given
PH-NETSUB PIN – device is waiting network subset personalization
password to be given
Note: Pin pending status at startup depends on PIN facility setting, to change
or query the default power up setting use the AT+CLCK=SC,<mode>, <pin>
command.
WRITE COMMAND :
AT+CPIN=<pin>
[,<newpin>]
Sends to the device a password (SIM PIN, SIM PUK, PH-SIM PIN, etc.) which
may be required to further operate the device.
If the PIN required is SIM PUK or SIM PUK2, the <newpin> is required.
This second pin, <newpin>,will replace the old pin in the SIM.
The command may be used to change the SIM PIN by sending it with both
parameters <pin> and <newpin> when if PIN request is pending; if no PIN
request is pending the command will return an error code and to change the
PIN the command +CPWD must be used instead.
Parameters: <pin>, <newpin>
Note: the only commands which are accepted when device is pending
SIM PIN, SIM PUK, or PH-SIM are: +CGMI, +CGMM, +CGMR, +CGSN, D112;
(emergency call), +CPAS, +CPIN.
To check the status of the PIN request use the command AT+CPIN?
TEST COMMAND :
EXAMPLE :
AT+CMEE=1
OK
AT+CPIN?
+CME ERROR: 10 (error because you have to insert the SIM PIN)
AT+CPIN?
+CPIN: READY (response after you have inserted the SIM PIN)
OK
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 55 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.4 +CSQ – signal quality
EXECUTE COMMAND :
AT+CSQ
Reports received signal quality indicators in the form
+CSQ:<rssi>,<ber>
where
<rssi> - received signal strength indication
-113 dBm or less
0
-111 dBm
1
2...30 -109dBm ... -53 dBm / 2 dBm per step
- 51 dBm or greater
31
not known or not detectable
99
<ber> - bit error rate %
0 - less than 0.2 %
1 - 0.2% a 0.4%
2 - 0.4% a 0.8%
3 - 0.8% a 1.6%
4 - 1.6% a 3.2%
5 - 3.2% a 6.4%
6 - 6.4% a 12.8%
7 - more than 12.8%
99 - not known or not detectable
Note: this command should be used instead of the AT%Q and AT%L
commands, since GSM relevant parameters are the radio link ones and no
line is present, hence %Q %L and have no meaning.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
AT+CSQ=?
Returns the supported range of values of the parameters <rssi> and <ber>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.5. +CPBS – select phonebook memory storage
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CPBS=<mem>
Selects phonebook memory storage <mem>, which will be used by other
phonebook commands.
Parameter: <storage>
"SM" – SIM phonebook
"FD" – SIM fixed dialling-phonebook (only phase 2/2+ SIM)
"LD" – SIM last-dialling-phonebook §
"MC" – device missed (unanswered received) calls list §
"RC" – ME received calls list §
§ +CPBW and +CPBF are not applicable for this memory.
TEST COMMAND :
AT+CPBS=?
Returns the supported range of values of the parameter <storage>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 56 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.6 +CPBR – read phonebook entries
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CPBR=<index>
[,<index2>]
Returns phonebook entries in locations number from <index1> to <index2>
from the current phonebook memory storage selected with +CPBS.
If<index2> is omitted, only location <index1> is returned.
Parameters: <index>, <index2>
The response format is:
+CPBR: <index>,<number>,<type>,<name> where
<index> – the current position number of the PB index
(to see the range of values use +CPBR=?)
<number> – the phone number stored in the format <type>
<type> – type of phone number byte in integer format
145 – international numbering scheme (contains the character "+")
129 – national numbering scheme
<name> – the text associated to the number (e.g. name of address)
Note: If all queried locations are empty (but available), no information text
lines will be returned, while if listing fails in an ME error, +CME ERROR:
<err> is returned.
TEST COMMAND :
AT+CPBR=?
Returns the supported range of values of the parameters in the form
+CPBR: (<minIndex> - <maxIndex>),<nlength>,<tlength> where
<minIndex> – the minimum index number
<maxIndex> – the maximum index number
<nlength> – maximum number field length
<tlength> – maximum name field length
Note: remember to select the PB storage with +CPBS command before
issuing PB commands.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.7 +CPBF – find phonebook entries
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CPBF=<text>
Issues a search for the phonebook records that have the text sub-string at
the start of the name field and returns a report in the form
+CPBF: <index>,<number>,<type>,<name>
where index, number, type and name have the same meaning than in the
command +CPBR report. If no PB records satisfy the search criteria then an
ERROR message is reported.
Parameter: <text>
Note: text is not case sensitive and may or not be included in double brackets
TEST COMMAND :
AT+CPBF=?
Reports the maximum lengths of fields <number> and <name> in the PB
entry in the form: +CPBF:<max_number_length,<max_name_length>
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 57 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.8 +CPBW – write phonebook entries
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CPBW=
[<index>]
[,<number>
[,<type>
[,<name>] ] ]
Stores at the position <index> a Phonebook record defined by
<number>,<type> and <name> parameters
Parameters: <index>, <number>, <type>, <name>
<number> - the phone number in the format <type>
<type> – the type of number
145 – international numbering scheme (contains the character "+")
129 – national numbering scheme
<name> – the text associated to the number.
Note: If record number <index> already exists, it will be overwritten.
If only <index> is given, the record number <index> is deleted.
If <index> is omitted ( AT+CPBW=,,<number>[,<type>[,<name>]] ), the
number <number> is stored in the first free phonebook location.
Text in the <name> field and number in the <number> field may or may not
be included in double brackets.
If space characters are given in the <name> field they will be ignored.
Entering <name> field, <type> field must be provided before.
TEST COMMAND :
AT+CPBW=?
Reports the maximum lengths of fields <number> and <name> in the PB
entry in the form: +CPBF:<max_number_length,<max_name_length>
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.9 +CALM – alert sound mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CALM=<mode>
It is used to select the general alert sound mode of the device.
Parameter:
<mode> = 0 – normal mode
<mode> = 1 – silent mode (no sound will be generated by the device)
Note: if silent mode (1) is selected then incoming calls will not produce
alerting sounds but only the message RING or +CRING.
GsmTerminal cannot produce acoustic feedback, hence this parameter have
no effects on the device.
TEST COMMAND :
AT+CALM=?
Returns the supported values for the parameter <mode>.
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 58 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.10 +CRSL – ringer sound level
EXECUTE COMMAND :
READ COMMAND :
Reports the current <level> setting of the call ringer in the format:
+CRSL:<level>
WRITE COMMAND :
It’s used to select the incoming call ringer sound level of the device.
<level> = 0 – Off
<level> = 1 – low
<level> = 2 – middle
<level> = 3 – high
<level> = 4 – progressive
AT+CRSL?
AT+CRSL=<level>
Note: This command has no effect on GsmTerminal.
TEST COMMAND :
AT+CRSL=?
Reports <level> supported values range in the format:
+CRSL:(0÷4)
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.11 +CLVL – loudspeaker volume level
EXECUTE COMMAND :
READ COMMAND :
Reports the current <level> setting of the loudspeaker volume in the format:
+CLVL:<level>
WRITE COMMAND :
It used to select the volume of the internal loudspeaker audio output.
Parameter: <level> - volume varies between 0 (min) and 10 (max).
AT+CLVL?
AT+CLVL=<level>
Note: This command has no effect on GsmTerminal.
TEST COMMAND :
AT+CLVL=?
Reports <level> supported values range in the format:
+CLVL:(0÷10)
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.12 +CMUT – microphone mute control
EXECUTE COMMAND :
READ COMMAND :
Reports the selected microphone mute status in the format:
+CMUT:<n>
WRITE COMMAND :
Enables/disables the muting of the internal and/or external microphone.
<n> = 0 – microphone active
<n> = 1 – microphone muted
AT+CMUT?
AT+CLVL=<n>
Note: This command has no effect on GsmTerminal.
TEST COMMAND :
AT+CMUT=?
Reports the supported value for <n> parameter
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 59 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.13 +CACM – accumulated call meter
EXECUTE COMMAND :
READ COMMAND :
AT+CACM?
Reports the current value of the SIM ACM in the format:
+CACM:<n>
Note: The value <n> is in unit whose price and currency is defined with the
command +CPUC.
WRITE COMMAND :
AT+CACM=<pwd>
Resets the SIM Accumulated Call Meter (ACM). Internal memory CCM remains
unchanged.
Parameter: <pwd> - PIN2 password
Note: To access this command PIN2 password is required.
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.4.14 +CAMM – accumulated call meter maximum
EXECUTE COMMAND :
READ COMMAND :
Reports the maximum value of ACM stored in SIM in the format:
+CAMM:<acmmax>
WRITE COMMAND :
Sets the Advice of Charge related Accumulated Call Meter ACM maximum
value in SIM (see also +CACM command). This value represents the maximum
number of home units allowed to be consumed by the subscriber.
When ACM reaches <acmmax> value further calls are prohibited. SIM PIN2 is
required to set the value.
Parameter:
<acmmax>- maximum number of units allowed to be consumed
<pwd>- PIN2 password
AT+CAMM?
AT+CAMM=
<acmmax>,<pwd>
Note: The <acmmax> = 0 value disables the feature.
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 60 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.4.15 +CPUC – price per unit and currency table
EXECUTE COMMAND :
READ COMMAND :
Reports the value of <currency> and <ppu> parameters in the format:
+CPUC:<currency>,<ppu>
WRITE COMMAND :
Sets the values of Advice of Charge related price per unit and currency table
in SIM. The price per Unit currency table information can be used to convert
the home units (as used in commands +CAOC, +CACM and +CAMM) into
currency units.
Parameters:
<currency> – three-character currency code string (e.g. LIT, USD, DEM etc..)
<ppu> – price per unit string (dot is used as decimal separator) e.g. 1989.27
<pwd> – SIM PIN2
AT+CPUC?
AT+CPUC=
<currency>,
<ppu>,<pwd>
Note: SIM PIN2 is required to set the values.
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
4.5 Mobile Equipment Errors
4.5.1 +CMEE – report mobile equipment error
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CMEE=<n>
Enables/disables the report of result code.
+CME ERROR: <err>
as an indication of an error relating to the +Cxxx commands issued.
When enabled, device related errors cause the +CME ERROR: <err> final
result code instead of the default ERROR final result code.
ERROR is anyway returned normally when the error message is related to
syntax, invalid parameters, or DTE functionality.
Parameter:
<n> – enable flag
<n> = 0 – disable +CME ERROR:<err> reports, use only ERROR report.
<n> = 1 – enable +CME ERROR:<err> reports, with <err> in numeric format
<n> = 2 – enable +CME ERROR: <err> reports, with <err> in verbose format.
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 61 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.5.2 +CME ERROR – ME error result code
This is not a command, it’s the error response to +Cxxx GSM07.07 commands.
Syntax: AT+CME ERROR:<err>
Parameter:<err> - error code can be either numeric or verbose.
<err> values:
Numeric Format
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
17
18
20
21
22
23
24
25
26
27
30
31
32
40
41
42
43
44
45
46
47
100
© 2002 CONTRIVE – T1010.eng
Verbose Format
Phone failure
No connection to phone
Phone-adaptor link reserved
Operation not allowed
Operation not supported
PH-SIM PIN required
NOT SUPPORTED
NOT SUPPORTED
SIM not inserted
SIM PIN required
SIM PUK required
SIM failure
SIM busy
SIM wrong
Incorrect password
SIM PIN2 required
SIM PUK2 required
Memory full
Invalid index
Not found
Memory failure
Text string too long
Invalid character in text string
Dial string too long
Invalid character in dial string
No network service
Network timeout
Network not allowed – emergency call only
Network personalization PIN required
Network personalization PUK required
Network subset personalization PIN required
Network subset personalization PUK required
Service provider personalization PIN required
Service provider personalization PUK required
Corporate personalization PIN required
Corporate personalization PUK required
unknown
Page 62 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
4.6 Voice Control (TIA IS-101)
4.6.1 +VTS – DTMF tones transmission
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+VTS=<DTMF>
Allows the transmission of DTMF tones.
Parameter:
<DTMF> - a single ASCII character in the set 0÷9.#,*,A÷D
Note: This command operates in voice mode only.
TEST COMMAND :
AT+VTS=?
Returns +VTS(),(),()
EXAMPLE :
REFERENCE :
GSM 07.07 / TIA IS-101
SW RELEASE :
Version B
5 ETSI GSM 07.05 AT COMMANDS FOR SMS AND CB SERVICES
5.1 General Configuration
5.1.1 +CSMS – Select message service
EXECUTE COMMAND :
READ COMMAND :
AT+CSMS?
Reports the value of the current parameters in the format:
+CSMS: <service>,<mt>,<mo>,<cb>
where:
<service> – message syntax
0 – SMS syntax as defined in GSM-03.40 and GSM-03.41. AT commands
are compatible with GSM 07.05 Phase 2.
1 – SMS syntax as defined in GSM-03.40 and GSM-03.41. AT commands
are compatible with GSM 07.05 Phase 2+ (only in SW release Version B)
<mt> – Mobile Terminated Messages
<mo> – Mobile Originated Messages
<cb> – Cell Broadcast Messages
0 – not supported
1 – supported
WRITE COMMAND :
Selects the SMS & CB services command syntax.
Parameter:
<service> = 0 – SMS syntax as defined in GSM-03.40 and GSM- 03.41. AT
commands are compatible with GSM 07.05 Phase 2.
<service> = 1 – SMS syntax as defined in GSM-03.40 and GSM-03.41. AT
commands are compatible with GSM 07.05 Phase 2+ (only SW Version B).
TEST COMMAND :
Reports the supported value of the parameter <service>=0.
AT+CSMS=
<service>
AT+CSMS=?
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 63 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.1.2 +CPMS – preferred message storage
EXECUTE COMMAND :
READ COMMAND :
Reports the message storage status in the format:
+CPMS:<memr>,<usedr>,<totalr>,<memw>,<usedw>,<totalw>,<mems>,
<useds>,<totals>
where <memr> , <memw> and <mems> are the selected storage memories
for reading, writing and storing respectively.
WRITE COMMAND :
Selects memory storages <memr>, <memw> and <mems> to be used for
reading, writing, sending and storing received SMS.
Parameter:
<memr> – memory storage for read and delete SMS commands
"SM" – SIM SMS memory storage
"ME" – Mobile Equipment internal storage (read only, no delete)
<memw> – memory storage for write and send SMS commands
"SM" – SIM SMS memory storage
<mems> – memory storage for received SMS storing
"SM" – SIM SMS memory storage
The command returns the memory storage status in the format:
+CPMS:<usedr>,<totalr>,<usedw>,<totalw>,<useds>,<totals>
<usedr> – number of SMS stored into <memr>
<totalr> – max number of SMS that <memr> can contain
<usedw> – number of SMS stored into <memw>
<totalw> – max number of SMS that <memw> can contain
<useds> – number of SMS stored into <mems>
<totals> – max number of SMS that <mems> can contain
AT+CPMS?
AT+CPMS=<memr>,
<memw>,<mems>
Note: The only memory storage for writing and sending supported is the SIM
internal memory "SM", so <memw> = <mems> = "SM".
Note: the received class 0 SMS are stored in the "ME" memory regardless the
<mems> setting and they are automatically deleted at power off.
TEST COMMAND :
Reports the supported values of the SMS storage memories in the format:
+CPMS:(”ME”,”SM”),(“SM).
EXAMPLE :
AT+CPMS?
+CPMS: "SM",5,10,"SM",5,10,"SM",5,10
OK (you have 5 SMS SIM positions occupied of 10)
REFERENCE :
GSM 07.07
SW RELEASE :
Version A
AT+CPMS=?
5.1.3 +CMGF – message format
EXECUTE COMMAND :
READ COMMAND :
Reports the current value of the parameter <mode>=0.
WRITE COMMAND :
Selects the SMS format to be used in reading and writing messages.
AT+CMGF?
AT+CMGF=<mode>
TEST COMMAND :
AT+CMGF=?
<mode> = 0 – PDU as defined in GSM 3.40 and GSM 3.41
<mode> = 1 – text (from SW version B)
Reports the supported values of <mode> parameter.
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 64 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.1.4 +CSMP – set parameters in text mode
EXECUTE COMMAND :
READ COMMAND :
Reports the current setting in the format:
+CSMP:<fo>,<vp>,<pid>,<dcs>
WRITE COMMAND :
Set the additional parameters for storing and sending SMS when the text
mode is used (+CMGF=1)
Parameter:
AT+CSMP?
AT+CSMP=<fo>,
<vp>,<pid>,<dcs>
<fo>: message format, like defined for the first octet of message according
to GSM 3.40
<vp>: Message validity period - numerical if in relative format or string if in
absolute format according to GMS 3.40
<pid>: Protocol Identifier – defined by GSM 3.40 – in numerical format
<dcs>: Data coding Scheme - defined by GSM 3.40 – in numerical format
TEST COMMAND :
Reports the supported range of values for:
<fo>,<vp>,<pid>,>dcs> parameters
EXAMPLE :
Set the parameters for an outgoing message with 24 hours of
validity period and default properties:
AT+CSMP=17,167,0,0
OK
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
AT+CSMP=?
5.1.5 +CSDH – show parameters in text mode
EXECUTE COMMAND :
READ COMMAND :
Reports the current setting in the format
+CSDH:<show>.
WRITE COMMAND :
Show the additional parameters of received or stored SMS when the text
mode is used (+CMFG=1).
Parameter:
<show> = 0 – no additional parameters are shown
<show> = 1 – parameters set by the +CSCA and + CSMP commands are
shown and the length, sender/addressee address of SMS when +CMT,
+CMGL, +CMGR commands are utilised.
TEST COMMAND :
Reports the supported range of values for the parameter <show>.
AT+CSDH?
AT+CSDH=<show>
AT+CSDH=?
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 65 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.1.6 +CSAS – save setting text mode
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
Save setting which have been made by the +CSCA and +CSMP commands in
local non volatile memory (or in the SIM if it has a dedicated memory area for
this purpose).
Parameter:
<profile>: 0÷3 – number of profile in which to save setting.
The number 0 corresponds to the non volatile memory, the others correspond
to the SIM storage (if available).
TEST COMMAND :
Returns the possible range of values for the parameter <profile>.
AT+CSAS=<profile>
AT+CSAS=?
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
5.1.7 +CRES – Restore text mode settings
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
Restore any setting saved by +CSAS command for +CSCA and + CSMP
commands in local non volatile memory (or in the SIM if it has a dedicated
memory area for this purpose).
Parameter:
<profile>: 0÷3 – number of profile from which to recall setting.
The number 0 corresponds to the non volatile memory, the others correspond
to the SIM storage (if available).
TEST COMMAND :
Returns the possible range of values for the parameter <profile>.
AT+CRES=<profile>
AT+CRES=?
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 66 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.1.8 +CSCB – Select Cell Broadcast Message types
EXECUTE COMMAND :
READ COMMAND :
Reports the current value of the parameters <mode>,<misd> and <dcss> in
the format: +CSCB:<mode>,<mids>,<dcss>
WRITE COMMAND :
Selects the Cell Broadcast message types to be received by the device.
Parameter:
AT+CSCB?
AT+CSCB=<mode>
[,<mids>
[,<dcss>] ]
<mode>
0 – don't receive the message types defined by <mids> and <dcss>
1 – receive only the message types defined by <mids> and <dcss>
<mids> : all the possible combinations of the CBM identifiers
<dcss> : all the possible combinations of CBM data coding schemes.
TEST COMMAND :
Returns the possible range of values for the parameter <mode>.
EXAMPLE :
AT+CSCB?
+CSCB: 0,"",""
OK
AT+CSCB=1,"0,1,300-315,450","0-5"
OK
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
AT+CSCB=?
© 2002 CONTRIVE – T1010.eng
Page 67 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.1.9 +CMS ERROR – message service failure result code
This is not a command, it’s the error response to +Cxxx GSM 07.05 commands.
Syntax: AT+CMS ERROR:<err>
<err> values:
Numeric Format
0..127
126…255
300
301
302
303
304
305
310
311
312
313
314
315
316
317
318
320
321
322
330
331
332
340
500
© 2002 CONTRIVE – T1010.eng
Verbose Format
GSM 04.11 Annex E-2 values
GSM 03.40 sub clause 9.2.3.22 values
ME failure
SMS service of ME reserved
Operation not allowed
Operation not supported
Invalid PDU mode parameter
Invalid text mode parameter
SIM not inserted
SIM PIN required
PH-SIM PIN required
SIM failure
SIM busy
SIM wrong
SIM PUK required
SIM PIN2 required
SIM PUK2 required
Memory failure
Invalid memory index
Memory full
SMSC address unknown
No network service
Network timeout
No +CNMA acknowledgement expected
Unknown error
Page 68 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.2 Message Configuration
5.2.1 +CSCA – Service center address
EXECUTE COMMAND :
READ COMMAND :
AT+CSCA?
Reports the current value of the default SCA in the format:
+CSCA:<number>,<type>
Note: If SCA is not present the device reports an error message.
WRITE COMMAND :
AT+CSCA=
<number>,<type>
Sets the Service center Address to be used for mobile originated SMS
transmissions.
Parameter:
<number> – SC phone number in the format defined by <type>
<type> – the type of number
<type> = 145 - international numbering scheme (contains the character "+")
<type> = 129 - national numbering scheme
Note: to use the SMS service, is mandatory to set a Service Center Address at
which service requests will be directed. SCA depends on the operator, hence
contact your operator to set the right SCA. When this address is input, it is
stored on the SIM if possible, else will be stored on the device internal
memory so, once set, the input of this parameter is not anymore needed.
In PDU mode, this setting is used, but only when the length of the SMSC
address coded into the <pdu> parameter equals zero; else SCA defined in the
PDU will be used instead.
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 69 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.3 Message receiving and reading
5.3.1 +CNMI – New message indications to Terminal Equipment
EXECUTE COMMAND :
READ COMMAND :
Returns the current parameter settings for +CNMI command in the format:
+CNMI:<mode>,<mt>,<bm>,<ds>,<bfr>
WRITE COMMAND :
Selects the behavior of the device on how the receiving of new messages
from the network is indicated to the DTE.
Parameter:
AT+CNMI?
AT+CNMI=<mode>
[,<mt>
[,<bm>
[,<ds>
[,<bfr>] ] ] ]
<mode> – unsolicited result codes buffering option
0 - buffer unsolicited result codes in the TA in case DTE is busy, e.g. data
call is active meanwhile.
1 - buffer unsolicited result codes in the TA in case DTE is busy, else report
them immediately.
<mt> – result code indication reporting for SMS-DELIVER
0 - no SMS-DELIVER indications are reported to the TE.
1 - indication of the memory location is reported to the TE using unsolicited
result codes:
+CMTI: <memr>,<index>
where
<memr> – memory storage where the new message is stored ("SM" or "ME")
<index> – location on the memory where SMS is stored
<bm> – broadcast reporting option
0 - Cell Broadcast Messages are not sent to the DTE
1 - Cell Broadcast Messages are sent to the DTE with the URC:
+CBM: <length><CR><LF><PDU> ( PDU mode)
or
+CBM:<sn>,<mid>,<dcs>,<pag>,<pags><CR><LF><text> (text mode)
where:
<length> - PDU length
<PDU> - message PDU
<sn> - message serial number
<mid> - message ID
<dcs> - Data Coding Scheme
<pag> - page number
<pags> - total number of pages of the message
<text> - message text
<ds> - SMS-STATUS-REPORTs reporting option
0 - status report receiving is not reported to the DTE
1 - the status report is sent to the DTE with unsolicited result codes:
+CDS: <length><CR><LF><PDU> (PDU mode)
or
+CDS: <fo>,<mr>,,,<scts>,<dt>,<st> (text mode)
2 - if a status report is stored, then URC is sent:
+CDSI: <memr>,<index>
where:
<memr> - memory storage where the new message is stored ("SM")
<index> - location on the memory where SMS is stored
<length> - PDU length
<PDU> - message PDU
<fo> - first octet of the message PDU
<mr> - message reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message
<st> - message status as coded in the PDU
<bfr> - buffered result codes handling method (NOT SUPPORTED)
0 – buffer flushed. (NOT SUPPORTED)
© 2002 CONTRIVE – T1010.eng
Page 70 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
Note: DTR signal is ignored, hence the indication is sent even if the DTE is
inactive (DTR signal is Low). In this case the unsolicited result code may be
lost so if GsmTerminal remains active while DTE is not, at DTE startup is
suggested to check whether new messages have reached the device
meanwhile with command AT+CMGL=0 that lists the new messages
received.
TEST COMMAND :
AT+CNMI=?
Reports the supported range of values for the +CNMI command parameters.
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
5.3.2 +CMGL – List messages
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+CMGL=<stat>
Reports the list of all the messages stored into <memr> (see command
+CPMS ) memory storage having the status equal to <stat> parameter.
Parameter (PDU Mode):
<stat>
0 - new message
1 - read message
2 - stored message not yet sent
3 - store message already sent
4 - all messages (applies only to +CMGL command)
A report is sent for each message that has to be listed in the format:
+CMGL: <index>,<stat>,<length><CR><LF><pdu>
where
<index> - message position in the memory storage list.
<stat> - status of the message
<length> - length of the PDU in bytes
<pdu> - message in PDU format according to GSM 3.40
Note: OK message is sent only at the end of the listing.
Parameter (Text Mode):
<stat>
"REC UNREAD" - new message
"REC READ" - read message
"STO UNSENT" - stored message not yet sent
"STO SENT" - store message already sent
"ALL" - all messages (applies only to +CMGL command)
A report is sent for each message that has to be listed in the format:
+CMGL:
<index>,<stat>,<oa/da>[,,,<tooa/toda>,<length>]<CR><LF><text>
where
<index> - message position in the storage
<stat> - message status
<oa/da> - originator/destination number
< tooa/toda > - type of number <oa/da>
145 - number in international format (contains the "+")
129 - number in national format
<length> - text length
<text> - message text
© 2002 CONTRIVE – T1010.eng
Page 71 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
For each message delivery confirm a result code is reported format:
+CMGL: <index>,<stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
where
<index> - message position in the storage
<stat> - message status
<fo> - first octet of the message PDU
<mr> - message reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message
<st> - message status as coded in the PDU
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
5.3.3 +CMGR – Read messages
EXECUTE COMMAND :
AT+CMGR=<index>
Reports the message with location value <index> from preferred message
storage <memr> (see +CPMS) in the format:
PDU Mode
+CMGR: <stat>,<length><CR><LF><pdu>
where
<stat> - status of the message
0 - new message
1 - read message
2 - stored message not yet sent
3 - store message already sent
<length> - length of the PDU in bytes.
<pdu> - message in PDU format according to GSM 3.40.
Text Mode
For the sent messages:
+CMGR: <stat>,<oa>,,<scts> [,<tooa>,<fo>,<pid>,<dcs>,<sca>,
<tosca>,<length>]<CR><LF><text>
For the received messages:
+CMGR: <stat>,<da>[,,<toda>,<fo>,<pid>,<dcs>,,
<sca>,<tosca>,<length>]<CR><LF><testo>
For the message delivery confirm:
+CMGR: <stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
where:
<stat> - status of the message
"REC UNREAD" - new received message unread
"REC READ" - received message read
"STO UNSENT" - message stored not yet sent
"STO SENT" - message stored already sent
<fo> - first octet of the message PDU
<mr> - message reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message
<st> - message status as coded in the PDU
<pid> - Protocol Identifier
<dcs> - Data Coding Scheme
<oa> - Originator address number
<da> - Destination address number
<sca> - Service Centre number
© 2002 CONTRIVE – T1010.eng
Page 72 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
< tooa>,<toda >,<tosca> - type of number <oa>,<da>,<sca>
145 - number in international format (contains the "+")
129 - number in national format<length> - text length
<text> - message text
The status of the message and entire message data unit <pdu> is returned.
If status of the message is 'received unread', status in the storage changes
to 'received read'.
Parameter: <index>
Note: if record number <index> on message storage memory is empty, then
an error message will be returned.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 73 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.4 Message sending and writing
5.4.1 +CMGS – Send message
EXECUTE COMMAND :
PDU MODE
Sends to the network a SMS message input as a PDU.
Parameter:
<length> = 8…176 - represents the length of the PDU to be sent in bytes.
The device responds to the command with the prompt '>' and awaits for the
number of bytes of PDU specified.
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to exit
without sending the message send ESC char (0x1B hexadecimal ).
If message is successfully sent to the network, then the result is sent in the
format:
+CMGS: <mr>
where <mr> is the message reference number.
If message sending fails for some reason, an error code is reported.
TEXT MODE
Sends to the network a SMS message input as a text message.
Parameter:
<da> = destination address number
The device responds to the command with the prompt '>' and awaits for
message text (max 160 characters).
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to exit
without sending the message send ESC char (0x1B hexadecimal).
AT+CGMS=<length>
AT+CGMS=<da>
If message is successfully sent to the network, then the result is sent in the
format:
+CMGS: <mr>
where <mr> is the message reference number.
If message sending fails for some reason, an error code is reported.
Note: Care must be taken to ensure that during the command execution,
which might take several seconds, no other SIM interacting commands are
issued. To avoid malfunctions is suggested to wait for the +CMGS:<mr> or
+CMS ERROR:<err> response before issuing further commands.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 74 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
5.4.2 +CMSS – Send message from storage
EXECUTE COMMAND :
AT+CMSS=<index>
Sends to the network, the message which is already stored in the <memw>
storage (see +CPMS) at the location <index>.
Parameter: <index>
If message is successfully sent to the network, then the result is given:
+CMSS: <mr>
where <mr> is the message reference number.
If message sending fails for some reason, an error code is reported:
+CMS ERROR:<err>
Note: to store a message in the <memw> storage see command +CMGW.
Care must be taken to ensure that during the command execution, which
might take several seconds, no other SIM interacting commands are issued.
To avoid malfunctions is suggested to wait for the +CMGS:<mr> or +CMS
ERROR:<err> response before issuing further commands.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version A
5.4.3 +CMGW – Write message to memory
EXECUTE COMMAND :
PDU MODE
Writes in the <memw> memory storage a new SMS message input as a PDU.
Parameter:
<length> - represents the length of the PDU to be written in bytes.
The device responds to the command with the prompt '>' and awaits for the
number of bytes of PDU specified.
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to exit
without writing the message send ESC char (0x1B hexadecimal).
If message is successfully written in the memory, then the result is sent in the
format:
+CMGW: <index>
where <index> is the message location index in the memory <memw>("SM").
If message storing fails for some reason, an error code is reported
TEXT MODE
Writes in the <memw> memory storage a new SMS message input as Text.
Parameter:
<da> - destination address number
The device responds to the command with the prompt '>' and awaits for the
message text ( max 160 characters).
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to exit
without writing the message send ESC char (0x1B hexadecimal).
If message is successfully written in the memory, then the result is sent in the
format:
+CMGW: <index>
where <index> is the message location index in the memory <memw>("SM").
If message storing fails for some reason, an error code is reported
AT+CGMW=
<length>
AT+CGMW[=<da>]
© 2002 CONTRIVE – T1010.eng
Page 75 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
Note: Care must be taken to ensure that during the command execution, no
other SIM interacting commands are issued. To avoid malfunctions is
suggested to wait for the +CMGS:<mr> or +CMS ERROR:<err> response
before issuing further commands.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
5.4.4 +CMGD – Delete message
EXECUTE COMMAND :
AT+CMGD=<index>
[,<delflag>]
Deletes from memory the message(s)
Note: if the location to be deleted is empty, an error message is reported.
Parameter:
<index> - message position index in the selected storage <memr>
<delflag> - delete mode selection flag (Version B)
0 (or not present) - delete message at position <index>
1 - delete all received read messages
2 - delete all received read and all sent messages
3 - delete all received read and all written sent/unsent messages
4 - delete all messages.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
GSM 07.05
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 76 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
6 CUSTOM AT COMMANDS
6.1 General configuration
6.1.1 #PCT – Display PIN counter
EXECUTE COMMAND :
READ COMMAND :
AT#PCT?
Reports the PIN/PUK or PIN2/PUK2 input remaining attempts, depending on
+CPIN requested password in the format:
#PCT:<n>
Note: If +CPIN requires the PIN then max 3 attempts are allowed, after that
the PUK code is requested; if even PUK is input wrong for other three time
then #PCT:0 and SIM remains blocked.
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version A
6.1.2 #SHDN – Software Shutdown
EXECUTE COMMAND :
AT#SHDN
After the issuing of this command device detaches from the network and
shuts down. Before definitive shut down an OK response is returned.
Note: after the issuing of this command the device will not respond to any
command. To turn it on again Start/Stop Input must be closed or a dummy
command must be sent. Startup procedure takes few seconds.
READ COMMAND :
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
REFERENCE :
TELIT GM862 / CONTRIVE GsmTerminal Command Specifications
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 77 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
6.1.3 #QTEMP – Query Temperature Overflow
EXECUTE COMMAND :
READ COMMAND :
AT#QTEMP?
Queries the internal temperature sensor of the device for over temperature.
The result is reported in the format:
#QTEMP:<temp>
where
<temp> – over temperature indicator
<temp> = 0 – device temperature is in the working range
<temp> = 1 – device temperature is out of the working range, may be too
high or too low.
Note: The device should not be operated out of its working temperature
range; if temperature is out of range proper functioning of the device is not
ensured.
WRITE COMMAND :
Sets the type of indication.
Parameter:
<mode> – type of indication
0 – result reported only when querying with #QTEMP?
1 – reserved for future use
2 – reserved for future use
TEST COMMAND :
Reports supported range of values for <mode> parameter.
AT#QTEMP=
<mode>
AT#QTEMP=?
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version A
© 2002 CONTRIVE – T1010.eng
Page 78 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
6.1.4 #MONI – Monitor Cells
EXECUTE COMMAND :
AT#MONI
Reports the available data for cell and dedicated channel (if exists) in the
format:
#MONI: <netname> BSIC:<bsic> RxQual:<qual> LAC:<lac> Id:<id>
ARFCN:<arfcn> PWR:<dBm> dBm
or in the case the network name is not known:
#MONI: Cc:<cc> Nc:<nc> BSIC:<bsic> RxQual:<qual> LAC:<lac> Id:<id>
ARFCN:<arfcn> PWR:<dBm> dBm
or in the case in which the data of the adjacent cell are under observation
(number>0):
#MONI: Adj Cell<n> [LAC:<lac> Id:<id>] ARFCN:<arfcn> PWR:<dBm> dBm
where:
netname = name of network operator
cc = country code
nc = network operator code
n = progressive number of adjacent cell
bsic = base station identification code
qual = quality of reception (0-7)
lac = localization area code
id = cell identifier
arfcn = assigned radio channel
dBm = received signal strength in dBm
Note: The refresh time of the measures is preset to 3 seconds.
READ COMMAND :
WRITE COMMAND :
Set the neighbor cell to extract data of the cell number <number>
Parameter: <nr>Sets the type of indication.
TEST COMMAND :
Reports the available neighbour cells and current cell preset in the format:
#MONI: <CellNo, CellSet>
where:
<CellNo> - neighbour cells number
<CellSet> - cell preset = 0, …, n where 0 is the serving cell
AT#MONI=<nr>
AT#QMONI=?
Note: The refresh time of the measures is preset to 3 seconds.
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version B
© 2002 CONTRIVE – T1010.eng
Page 79 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
6.1.5 #QSS – Query SIM Status
EXECUTE COMMAND :
READ COMMAND :
AT#QSS?
Reports the query SIM status in the format:
#QSS: <mode>,<status>
where
<mode>: type of enabled notification
<mode> = 0 - query only
<mode> = 1 - send unsolicited indication (#USS) every change of state
<status>: current SIM status
<status> = 0 - SIM NOT INSERTED
<status> = 1 - SIM INSERTED
WRITE COMMAND :
AT#QSS=<mode>
Set the type of notification. If enabled (mode=1) at any status change is sent:
#USS:<status>
Parameter: <mode>
TEST COMMAND :
Returns the supported range of values of the parameter <mode>.
AT#QSS=?
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version C
6.1.6 #ACAL – Set Automatic Call
EXECUTE COMMAND :
READ COMMAND :
Returns the current status in the format:
#ACAL:<mode>
WRITE COMMAND :
Enable the automatic call.
Parameter:
<mode> = 0 – disable
<mode> = 1 – enable
If enabled, the transition OFF/ON of DTR causes an automatic data call to the
number stored in position number 1 of the phone book.
The &D command must be set to 2.
TEST COMMAND :
Returns the supported range of values of the parameter <mode>.
AT#ACAL?
AT#ACAL=<mode>
AT#ACAL=?
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 80 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
6.1.7 #SMOV – SMS Overflow
EXECUTE COMMAND :
READ COMMAND :
Return the current status in the format:
#SMOV:<mode>
WRITE COMMAND :
Enable the signalling of SMS overflow
Parameter:
<mode> = 0 - disable
<mode> = 1 - enable
If enable, when the maximum storage capacity has came, the
#USMO:<memo> network initiated notification is send.
TEST COMMAND :
Returns the supported range of values of the parameter <mode>.
AT#SMOV?
AT#SMOV=<mode>
AT#SMOV=?
EXAMPLE :
REFERENCE :
TELIT GM862 Command Specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 81 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
7 FAX CLASS 1 COMMANDS
7.1 General Configuration
7.1.1 +FCLASS – Select active service class
EXECUTE COMMAND :
READ COMMAND :
Returns the current configuration value of the parameter <n>.
WRITE COMMAND :
Set GsmTerminal in specified connection mode (data, fax, voice), hence all
the calls done after, will be data or voice.
Parameter:
<n>: 0 = data
<n>: 1 = fax class 1
<n>: 8 = voice
TEST COMMAND :
Reports the supported value of the parameter <n>.
AT+FCLASS?
AT+FCLASS=<n>
AT+FCLASS=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications / GSM 07.07
SW RELEASE :
Version A
7.1.2 +FMI – Report RF module manufacturer ID
EXECUTE COMMAND :
READ COMMAND :
AT+FMI?
Reports the RF module manufacturer ID.
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
AT+FMI?
Telit Mobile Terminals
OK
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.1.3 +FMM – Report RF module model ID
EXECUTE COMMAND :
READ COMMAND :
AT+FMM?
Reports the RF module module ID.
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
AT+FMM?
GM862-GSM900/1800 voice/data/fax module
OK
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 82 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
7.1.4 +FMR – Report RF module revision ID
EXECUTE COMMAND :
READ COMMAND :
AT+FMR?
Reports the RF module software revision ID.
WRITE COMMAND :
TEST COMMAND :
EXAMPLE :
AT+FMR?
8.56.004 GM862
OK
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.2 Transmission/Reception Control
7.2.1 +FTS – Stop transmission and pause
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command causes the modem to terminate a transmission and wait for
<time> 10 ms intervals before responding with the OK result code.
Parameter <time>
0-255 : length of time in 10ms intervals of the pause
TEST COMMAND :
Returns all supported values of the parameter <time>.
AT+FTS=<time>
AT+FTS=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.2.2 +FRS – Wait for receive silence
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command causes the modem to listen and report an OK result code
when silence has been detected for the specified period of time.
This command when the required silence period is detected or when the DTE
sends another character other than XON or XOFF.
Parameter <time>
0÷255 : length of time in 10ms intervals of the pause
TEST COMMAND :
Returns all supported values of the parameter <time>.
AT+FRS=<time>
AT+FRS=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 83 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
7.2.3 +FTM – Transmit data modulation
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command causes the module to transmit facsimile data using the
modulation defined by the parameter <mod>.
parameter <mod> : carrier modulation
24 - V27ter/2400 bps
48 - V27ter/4800 bps
72 - V29/7200 bps
96 - V29/9600 bps
TEST COMMAND :
Returns all supported values of the parameter <mod>.
AT+FTM=<mod>
AT+FTM=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.2.4 +FRM – Receive data modulation
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
this command causes GsmTerminal to receive facsimile data using the
modulation defined by the parameter <mod>.
parameter <mod> : carrier modulation
24 - V27ter/2400 bps
48 - V27ter/4800 bps
72 - V29/7200 bps
96 - V29/9600 bps
TEST COMMAND :
Returns all supported values of the parameter <time>.
AT+FRM=<mod>
AT+FRM=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.2.5 +FTH – Transmit data with HLDC framing
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command causes GsmTerminal to transmit facsimile data using HDLC
protocol and the modulation defined by the parameter <mod>.
parameter <mod> : carrier modulation
3 - V21/300 bps
TEST COMMAND :
Returns all supported values of the parameter <mod>.
AT+FTH=<mod>
AT+FTH=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 84 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
7.2.6 +FRH – Receive data with HLDC framing
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command causes the module to receive facsimile data using HDLC
protocol and the modulation defined by the parameter <mod>.
parameter <mod> : carrier modulation
3 - V21/300 bps
TEST COMMAND :
Returns all supported values of the parameter <mod>.
AT+FRH=<mod>
AT+FRH=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.3 Serial port control
7.3.1 +FLO – Select flow control specified by type
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
AT+FLO=<type>
Selects the flow control behavior of the serial port in both directions:
from DTE to DTA and from DTA to DTE.
Parameter:
<type> - flow control option for the data on the serial port
0 - flow control None
1 - flow control Software (XON-XOFF)
2 - flow control Hardware (CTS-RTS)
Note: This command is a shortcut of the +IFC command.
TEST COMMAND :
AT+FLO=?
Returns all supported values of the parameter <type>.
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 85 / 133
www.gsm-control.biz
GsmTerminal - AT Command Set
7.3.2 +FPR – Select serial port rate
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
Selects the the serial port speed in both directions: from DTE to DTA and from
DTA to DTE. When autobauding is selected, then the speed is auto detected.
Parameter:
<rate> - serial port speed selection
0 - autobauding
TEST COMMAND :
Returns all supported values of the parameter <rate>.
AT+FPR=<rate>
AT+FPR=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
7.3.3 +FDD – Double escape character replacement control
EXECUTE COMMAND :
READ COMMAND :
WRITE COMMAND :
This command sets the double escape character replacement behaviour
of the module depending on the parameter <mode>.
Parameter
<mode>= 0
DCE decode of <DLE><SUB>: <DLE><DLE> or discard
DCE encode of <1/0><1/0>: <DLE><DLE><DLE><DLE>
TEST COMMAND :
Returns all supported values of the parameter <mode>.
AT+FDD=<mode>
AT+FDD=?
EXAMPLE :
REFERENCE :
ITU T.31 and TIA/EIA-578-A specifications
SW RELEASE :
Version C
© 2002 CONTRIVE – T1010.eng
Page 86 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
8 BASIC OPERATIONS
8.1 Command Syntax
In the next paragraphs the following notations are used:
<cr> represents the Carriage Return Character (13)
<lf> represents the Line Feed Character (10)
<xx> represents a parameter whatever name is in place of the xx.( < and > characters are only for
delimiting the parameter and must not be issued to the terminal).
[<xx>] represents an optional parameter whatever name is in place of the xx. ( [ and ] characters are only
for delimiting the optional parameter and must not be issued to the terminal).
X represents the command sent to GsmTerminal
Y represents the answer from GsmTerminal
8.2 Command Response Timeout
Every command issued to the GsmTerminal returns a result response if response codes are enabled
(default) (see command ATQn). The time needed to process the given command and return the response
varies from command to command and may depend also from the network on which the command may
interact. As a result every command is provided with a proper timeout time, if this time elapses without any
result from the operation, then the ERROR response is reported as if the operation was not successful.
The timeout time is quite short for commands that imply only internal set up commands, but may be very
long for command that interact with the network (or even Networks).
Note: In case no response is received after the timeout time has been elapsed, then try repeating the
last command and if still no response is received until the timeout time, then device shall be turn OFF
and powered ON again.
The default timeout is 100 ms for all the commands that have no interaction with the network.
See the table at page 10 for all the commands whose timeout differs from the default 100 ms
8.3 Turning ON the GsmTerminal
Once powered, the GsmTerminal must be turned on using either the start/stop input or software recall
dummy message:
ƒ PERMANENT ON. A wire jumper can be placed between terminals 3 and 4 to let the GsmTerminal
operate continuously.
ƒ HARDWARE CONTROL. Using an SPST contact between terminals 3 and 4 it's possible to turn on (closed
contact) and turn off (open contact) the module
ƒ SOFTWARE CONTROL. Leaving external contact open the GsmTerminal can be ignited issuing a dummy
command to EIA232 port (wait few seconds for start-up sequence completion) and shutdown using the
specific AT command AT#SHDN.
Note: In order to check for the availability of GsmTerminal the dummy command could be an AT<cr>
command issued continuously at 100ms intervals until an OK response returns.
Note: If a shutdown command is issued having the wire jumper permanently installed, GsmTerminal
will shut down and restart again after 10 seconds.
© 2002 CONTRIVE – T1010.eng
Page 87 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
8.3 .1 Led indicator
The LED indicator on the GsmTerminal provides indication about the status of the device:
- Operating Status
LED indicator
- Power supply OFF
OFF
- During start-up sequence
ON ♦
- Network search
- SIM card not installed
- PIN not entered
- GSM network unavailable
Flashes rapidly ♣
- Standby (registered in the network)
Flashes slowly
- Connected
ON
- Shutdown (either hardware or software)
3 flashes, 5 seconds interval
♦ Usually the start-up takes 1÷2 seconds from power-on or ignition signal to device operation.
♣ The network search takes few seconds until the GsmTerminal is registered. If the LED indicator
continues to flash rapidly, this means that no SIM card is inserted, no PIN number is entered or no
GSM network is available.
8.4 Checking device functionality
After a proper power ON the device is ready to receive AT commands on the serial port.
Several things have to be checked in order to be sure that the device is ready to send and receive calls
and SMS.
8.4.1 Autobauding
At start-up it's necessary to send an AT command to make the device set the right speed and character
format of the serial port. When this is done the device responds with OK. If no response is received within
the timeout period of 200 ms retry.
ƒ Send command AT<cr>
ƒ Wait for OK response.
8.4.2 SIM presence checking
After autobauding the first thing to check is the SIM presence and PIN code insertion, this can be done
with the following commands:
8.4.2.1 Enable the extended error result codes
ƒ Send command AT+CMEE=1<cr>
ƒ Wait for OK response.
Or, if you prefer the verbose format instead of the numerical one then:
ƒ Send command AT+CMEE=2<cr>
ƒ Wait for OK response.
© 2002 CONTRIVE – T1010.eng
Page 88 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
8.4.2.2 Query SIM presence and status
ƒ Send command AT+CPIN<cr>
ƒ Wait for response:
Response
Reason
Action
+CPIN:SIM PIN
SIM is present and PIN is required to
continue operations.
Proceed to 8.4.2.3.
+CPIN:SIM PUK
SIM is present and 3 attempt to give
SIM PIN have failed, so SIM PUK is
required.
Send command
+CPIN:READY
SIM is present and no PIN code is
required to proceed.
Proceed ahead
+CME ERROR:10
SIM not present
Insert SIM card.
+CME ERROR:13
SIM defect
Check SIM insertion or require a new
SIM not defected
+CME ERROR:14
SIM is busy
Retry later
+CME ERROR:15
SIM is of wrong type
Check SIM, it must be a GSM SIM.
AT+CPIN=<SIM PUK>
8.4.2.3 Provide SIM PIN if required
ƒ Send command AT+CPIN=****<cr> where **** is the PIN code
ƒ Wait for response:
Response
Reason
Action
OK
SIM PIN was correct.
Proceed ahead.
ERROR
PIN code inserted is not correct.
Retry from 8.4.2.2
Note: When receiving the ERROR message, repeat Query SIM presence and status since after 3 failed
attempts SIM PIN is not anymore requested, but SIM PUK is requested instead, hence you may need
to go through procedure 8.4.2.4
8.4.2.4 Provide SIM PUK if required
ƒ Send command AT+CPIN=********<cr> where ******** is the PUK code
ƒ Wait for response:
Response
Reason
Action
OK
SIM PUK was correct.
Proceed ahead.
ERROR
PUK code inserted is not correct.
Retry from 8.4.2.4
Note: When receiving the ERROR message, be careful to check if the SIM PUK is correct before
retrying, since after 10 failed attempts to provide the SIM PUK the SIM card will lock and will not be
usable anymore.
© 2002 CONTRIVE – T1010.eng
Page 89 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
8.4.3 Network checking
8.4.3.1 Query network status
ƒ Send command AT+CREG<cr>
ƒ Wait for response:
Response
Reason
Action
+CME ERROR:10
SIM not present or damaged.
Check SIM.
+CME ERROR:11
SIM is present and PIN is required to
continue operations.
Retry from 8.4.2.3
+CREG:0,0 or
+CREG:1,0
No GSM/DCS network is found.
Check for antenna connection or
position.
+CREG:0,1 or
+CREG:1,1
GsmTerminal is registered on its
home network.
Proceed ahead. Ready.
+CREG:0,2 or
+CREG:1,2
GsmTerminal is currently not
registered on any network but is
looking for a suitable one to register.
Repeat procedure to see if it has
found a suitable network to register in.
+CREG:0,3 or
+CREG:1,3
GsmTerminal has found some
networks but it's not allowed to
register on any of them, no roaming
was allowed.
Try in another place and repeat
procedure.
+CREG:0,4 or
+CREG:1,4
GsmTerminal is in an unknown
network status.
Repeat procedure to see if it has
found a suitable network to register in.
+CREG:0,5 or
+CREG:1,5
GsmTerminal has found some
networks and is currently registered
in roaming on one of them.
Proceed ahead. Ready.
Note: When a response +CREG:x,1 or +CREG:x,5 is received, then GsmTerminal is ready to place and
receive call or SMS. It's possible to jump directly to call set-up procedures or SMS sending procedures.
8.4.3.2 Network operator identification
Once the GsmTerminal has registered on some network (or even if it has returned +CREG:x,3), it's possible
to query the mobile for network identification codes and names:
ƒ Send command AT+COPS=?<cr>
ƒ Wait for response in the format
+COPS:(<STAT>,<"OP.NAME">,"","OP.CODE")
+COPS:(<STAT>,<"OP.NAME">,"","OP.CODE")
...
OK
Where:
<STAT> is a number representing the network operator status:
0 - UNKNOWN
1 - AVAILABLE
2 - CURRENTLY REGISTERED ON
3 - FORBIDDEN
<OP.NAME> is a string of 16 characters max with the alphanumeric code of the operator
<OP.CODE> is a five digits number representing the code of the operator:
- first 3 digits : national code
- last 2 digits : operator code
© 2002 CONTRIVE – T1010.eng
Page 90 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
For example:
X AT+COPS=?<cr>
Y +COPS: (2,"I TIM","","22201")
Y +COPS: (3,"I-OMNITEL","","22210")
Y +COPS: (1,"SI.MOBIL","","29340")
Y +COPS: (3,"I-WIND","","22288")
Y +COPS: (0,"SI-GSM","","29341")
Y OK
In this case the mobile is registered on the network "I TIM" which is a network from Italy Nation code: 222
and Network ID: 01. There is also another network available for registration: "SI.MOBIL" which is a
network from Slovenia Nation Code: 293 and Network ID: 40. The other networks are not available for
registration and are: "I-OMNITEL" from Italy Nation code: 222 and Network ID: 10 - FORBIDDEN "I-WIND"
from Italy Nation Code: 222 and Network ID: 88 - FORBIDDEN "SI-GSM " from Slovenia Nation Code:293
and Network ID: 41 - UNKNOWN
Note: This command issues a network request and it may require a quite long time to respond, since
the GsmTerminal has to wait the answer from the network (it can be as long as 60 seconds).
Hence, don't use it if not needed.
8.4.3.3 Check for received signal strength & quality
Once the GsmTerminal has registered on some network it may be useful to know the received signal
strength & quality to give the user an indication of the reliability of the network:
ƒ Send command AT+CSQ<cr>
ƒ Wait for response in the format
+CSQ:<rssi>,<ber>
OK
Where:
<rssi> is an integer from 0 to 99 that indicates the received signal strength:
<rssi>
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Signal Strength
-113 dBm or less
-111 dBm
-109 dBm
-107 dBm
-105 dBm
-103 dBm
-101 dBm
-99 dBm
-97 dBm
-95 dBm
-93 dBm
-91 dBm
-89 dBm
-87 dBm
-85 dBm
-83 dBm
-81 dBm
Note
BAD
POOR
POOR
POOR
POOR
POOR
MEDIUM
MEDIUM
MEDIUM
MEDIUM
GOOD
GOOD
GOOD
GOOD
GOOD
EXCELLENT
EXCELLENT
<rssi>
31
Signal Strength
-79 dBm
-77 dBm
-75 dBm
-73 dBm
-71 dBm
-69 dBm
-67 dBm
-65 dBm
-63 dBm
-61 dBm
-59 dBm
-57 dBm
-55 dBm
-53 dBm
-51 dBm or more
99
Not detected
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Note
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
EXCELLENT
MISSING
Note: When <rssi> is less than 6, the quality of a call will be poor and the call may even drop.
© 2002 CONTRIVE – T1010.eng
Page 91 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
<ber> is an integer from 0 to 7 that reports the received signal quality measured on the radio traffic chan.
Note: The quality is measured on the traffic channel, hence it is available only during a conversation,
in idle the reported value is 99 which means that it's not measured
In conversation the quality decreases with the increase of the <ber> number.
The <ber> values refers strictly to the GSM radio channel and is a very technical parameter, it can be
used to monitor the voice call quality since the voice quality is inversely proportional to the <ber>.
For data calls the signal quality reported is not directly connected to the connection quality. The
reported signal quality refers only to the GSM radio channel link and not to the whole path from the
caller to the receiver, so it may happen that the quality on the GSM radio link is very good and hence
the reported <ber> is 0 (good) but the quality of the remaining path to the other party is very bad and
hence the final data connection quality is very poor. For this reason, the signal quality indicator <ber>
should not be taken into account to monitor data calls quality.
8.4.3.4 Quick Network Status Checking
Once the mobile has registered on one network, it may be useful to know the received signal strength and
the network on which the mobile is registered.
These information can be gathered with the commands +CREG, +COPS and +CSQ, which are part of the
standard ETSI GSM 07.07 commands as seen before, unfortunately these commands are not so fast in
the response due to network response time, especially the +COPS command.
If You want to keep your software as general as possible you can follow the indications given before and
forget this part; instead if you need or want a faster way to check at the mobile network information, the
GsmTerminal provides a special command #MONI which can be used to gather all the information needed
in a faster and simpler way:
ƒ Send command AT#MONI=0<cr>
ƒ Wait for OK response
ƒ Send command AT#MONI<cr>
ƒ Wait for the response in the format:
#MONI:<netname>, BSIC:<bsic> RxQual:<qual> LAC:<lac> Id:<id> ARFCN:<arfcn>
PWR:<dBm>dBm
OK
Or in the case the network name is not known:
#MONI:Cc:<cc>, Nc:<nc> BSIC:<bsic> RxQual:<qual> LAC:<lac> Id:<id> ARFCN:<arfcn>
PWR:<dBm>dBm
OK
Where:
<netname>
<cc>
<nc>
<n>
<bsic>
<qual>
<lac>
<id>
<arfcn>
<dBm>
= name of the network operator
= country code
= network operator code
= progressive number of adjacent cell
= base station identification code
= quality of reception 0÷7 (same as <ber> of +CSQ command)
= localisation area code
= cell identifier
= assigned radio frequency channel
= received signal strength in dBm (same as decoded <rssi> value)
For example:
X AT#MONI=0<cr>
Y OK
X AT#MONI<cr>
Y #MONI: I TIM BSIC:23 RxQual:7 LAC:5DC1 Id:1F2F ARFCN:21 PWR:-87dBm
Y OK
In this case the mobile is registered on the network "I TIM", the signal strength is -87dBm .
The other information received are strictly technical and should not be given to the user.
© 2002 CONTRIVE – T1010.eng
Page 92 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
For example (2):
X AT#MONI=0<cr>
Y OK
X AT#MONI<cr>
Y #MONI: Cc:010 Nc:03 BSIC:23 RxQual:7 LAC:0001 Id:0001 ARFCN:60 PWR:-83dBm
Y OK
In this case the mobile is registered on the network whose Country code is 010 and Network operator
code is 03, the signal strength is -83dBm.
The other information received are strictly technical and should not be given to the user.
For example (3):
X AT#MONI=1<cr>
Y OK
X AT#MONI<cr>
Y #MONI: Adj Cell 1 LAC:A8D0 Id:9EFE ARFCN:740 PWR:-95dbm
Y OK
It's possible to repeat the same test on all available and adjacent cells changing the AT#MONI parameter
The values reported are random and have no meaning, they are used only to explain command usage.
Note: This command should be used only to gather information on network name and signal strength,
to check if mobile is registered or is looking for a suitable network to register to, use always the
+CREG command. This is due to the fact that if the network signal is too weak and mobile looses the
registration, until a new network is found the #MONI command reports the last measured valid
values and not the real ones.
N
To properly use this feature, check network registration with command +CREG as seen
before and when GsmTerminal is registered query the GsmTerminal for network operator
name and signal strength with #MONI command.
8.5 Placing a Data call
Before a data call can be placed, it's recommended to check if the mobile is registered on a network and
if the signal strength is enough to ensure a call can be made.
8.5.1 Data call device set up
8.5.1.1 Set the device in Data mode
ƒ Send command AT+FCLASS=0<cr>
ƒ Wait for OK response
N
The +FCLASS setting is maintained in memory, so there's no need to repeat this command if
+FCLASS setting is not changed.
8.5.1.2 Set the desired modulation and speed for the connection
The data connection can be made using different modulations at different speeds.
This connection mode can be selected with the command +CBST. The syntax for the command is:
AT+CBST=<mod>,0,<ce>
© 2002 CONTRIVE – T1010.eng
Page 93 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
These parameters can be selected as seen in the table below:
Command
AT+CBST=0,0,1
Modulation
Autobauding
Speed [bps]
---
Connection Element
Non transparent
AT+CBST=1,0,1
V.21
300
Non transparent
AT+CBST=2,0,1
V.22
1200
Non transparent
AT+CBST=3,0,1
V.23
1200/75
Non transparent
AT+CBST=4,0,1
V.22 bis
2400
Non transparent
AT+CBST=6,0,1
V.32
4800
Non transparent
AT+CBST=7,0,1
V.32
9600
Non transparent
AT+CBST=14,0,1
V.34
14400
Non transparent
AT+CBST=65,0,1
V.110
300
Non transparent
AT+CBST=66,0,1
V.110
1200
Non transparent
AT+CBST=68,0,1
V.110 / X.31
2400
Non transparent
AT+CBST=70,0,1
V.110 / X.31
4800
Non transparent
AT+CBST=71,0,1
V.110 / X.31
9600
Non transparent
AT+CBST=75,0,1
V.110 / X.31
14400
Non transparent
AT+CBST=1,0,0
V.21
300
Transparent
AT+CBST=2,0,0
V.22
1200
Transparent
AT+CBST=3,0,0
V.23
1200/75
Transparent
AT+CBST=4,0,0
V.22 bis
2400
Transparent
AT+CBST=6,0,0
V.32
4800
Transparent
AT+CBST=7,0,0
V.32
9600
Transparent
AT+CBST=65,0,0
V.110
300
Transparent
AT+CBST=66,0,0
V.110
1200
Transparent
AT+CBST=68,0,0
V.110 / X.31
2400
Transparent
AT+CBST=70,0,0
V.110 / X.31
4800
Transparent
AT+CBST=71,0,0
V.110 / X.31
9600
Transparent
Once selected the appropriate <mod> and <ce> parameters from the table:
ƒ Send command AT+CBST=<mod>,0,<ce><cr>
ƒ Wait for OK response
8.5.2 Phone number dialling (data call)
8.5.2.1 Dial a given phone number
ƒ Send command ATD <PhoneNumber><cr>
Where <PhoneNumber> is the number to be dialled
ƒ Wait for response:
Response
CONNECT 9600
Reason
The called modem is now on line.
Action
Exchange data…
BUSY
The line called is busy.
Retry later.
NO ANSWER
The receiver did not answer the call.
Retry later.
NO CARRIER
Modem handshaking has not been successful
Check registration & signal strength
N
The response to the ATD command is returned after the modem handshaking, this takes
about 30 seconds, so allow this time before doing anything. When GsmTerminal is doing
the handshake the issue of any character closes the handshake and aborts the call.
© 2002 CONTRIVE – T1010.eng
Page 94 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
For example:
1 - Let's assume you have to call the national number 035-4933760
X ATD 0354933760<cr>
Y CONNECT 9600
2 - Let's assume you have to call the national number but in international format +39-35-4933760
X ATD +39354933760<cr>
Y CONNECT 9600
3 - Let's assume you have to call the international number +386-40-4192122
X ATD +386404192122<cr>
Y CONNECT 9600
8.5.3 Closing the Data call
8.5.3.1 Exit the data mode and enter the command mode
ƒ Send the escape sequence +++
ƒ Wait the escape sequence pause time (see S12 parameter)
ƒ Wait for response OK
Note: After the escape sequence and during the call the only command that is accepted by the
GsmTerminal is the ATH. All other commands are not supported during a call.
N
During the escape sequence pause time S12 no further characters should be sent to
GsmTerminal in order to enter the command mode.
8.5.3.2 Hang up the data call
ƒ Send command ATH
ƒ Wait for response NO CARRIER
N
During the data call GsmTerminal remains in data (on line) mode, so the escape sequence
(+++) must be issued before sending AT commands to GsmTerminal.
8.6 Answering an incoming call
When an incoming call is detected GsmTerminal reports an unsolicited code which may be:
Response
RING
Reason
Voice or data call incoming (extended format of incoming call indication is disabled).
+CRING:VOICE
Voice call incoming (extended format of incoming call indication is enabled).
+CRING:DATA
Data call incoming (extended format of incoming call indication is enabled).
+CRING:FAX
Fax call incoming (extended format of incoming call indication is enabled).
© 2002 CONTRIVE – T1010.eng
Page 95 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
To answer the call:
ƒ Send command ATA<cr>
ƒ Wait for response:
Response
CONNECT 9600
Reason
The called modem is now on line.
Action
Exchange data…
ERROR
No incoming call found, may have been lost.
Call lost.
NO CARRIER
Modem handshaking has not been successful
Check registration & signal strength
OK
The incoming call was a VOICE call, now active Proceed ahead
N
The call is answered with the appropriate type (VOICE or DATA) regardless of the +FCLASS
setting active. To distinguish between Data and Voice see the command response or the
extended format incoming call indication.
9 ADVANCED OPERATIONS
9.1 Accessing the Phonebook
GsmTerminal can access the phonebook storage of the SIM card inserted, by using specific AT commands it's
possible to store and recall phone numbers and their associated name.
9.1.1 Preliminary Phonebook set-up
GsmTerminal supports several SIM phonebook storages:
ƒ "SM" - SIM Phonebook
This is the PB used to store and recall numbers during the normal operation of the device.
ƒ "FD" - SIM fixed dialling phonebook (only phase 2/2+ SIM)
This PB has several restrictions; to set it you need the PIN2 code and after having activated the FD only
the calls to the numbers stored in the FD or their children are allowed, all the other calls are forbidden.
ƒ "LD" - SIM last dialling list (+CPBW and +CPBF are not applicable for this storage)
This is the list of the last dialled numbers, it's updated automatically at each call originated and
insertion or search on it is not possible, the only operations allowed are recall, read and delete.
ƒ "MC" - SIM missed call list (+CPBW and +CPBF are not applicable for this storage)
This is the list of the received calls calling numbers, it's updated automatically at each call missed and
insertion or search on it is not possible, the only operations allowed are recall, read and delete.
ƒ "RC" - SIM received calls list (+CPBW and +CPBF are not applicable for this storage)
This is the list of the received calls calling numbers, it's updated automatically at each call received
insertion or search on it is not possible, the only operations allowed are recall, read and delete.
In order to access the storage you have to choose which one will be active. This must be the first PB
operation always. Once selected a storage, it's not anymore needed to select it again until the desired
storage remains the one active and the device is not turned off.
9.1.1.1 Selecting PB storage active
ƒ Send command AT+CPBS=<PB><cr>
where:
<PB> is the desired PB storage:
SM - SIM Phonebook
FD - Fixed dialling phonebook
LD - Last dialled calls list
MC - Missed calls list
RC - Received calls list
© 2002 CONTRIVE – T1010.eng
Page 96 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
ƒ Wait for response:
Response
OK
Reason
Selected PB is now active.
Action
Proceed ahead
ERROR
Some error occurred
Enable extended result codes, retry.
+CME ERROR:10
SIM not present
Check SIM card
+CME ERROR:310
SIM not present
Check SIM card
+CME ERROR:11
SIM present, PIN required
Insert SIM PIN
+CME ERROR:311
SIM present, PIN required
Insert SIM PIN
+CME ERROR:12
SIM present, PUK required
Insert SIM PUK
+CME ERROR:316
SIM present, PUK required
Insert SIM PUK
+CME ERROR:13
SIM defect
Check SIM card
+CME ERROR:313
SIM defect
Check SIM card
+CME ERROR:14
SIM is busy
Retry later
+CME ERROR:314
SIM is busy
Retry later
+CME ERROR:15
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:315
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:17
PIN2 required since FD facility disabled
Enable FD facility (+CLCK)
N
After power up & PIN authentication the device reads all the SIM for a backup, hence SIM
access is inhibited (SIM is busy after the issue of the PIN or after the power up if PIN
request is disabled) for a time varying from few seconds to about a minute, depending on
the percentage of written records in the SIM phonebook. If phonebook commands are
issued during this time, the device returns an error message. If it happens, retry later.
Note: Due to the particular features of the FD storage, when selecting the FD storage, the PIN2 must
have been inserted or the FD facility must have been enabled.
If +CPBS commands reports +CME ERROR:17 then enable the facility with command +CLCK.
For example:
1 - Let's assume you want to select the "SM" normal phonebook for operations
X AT+CPBS="SM"<cr>
Y OK
2 - Let's assume you want to select the "MC" missed calls list for operations
X AT+CPBS="MC"<cr>
Y OK
9.1.1.2 Enable Fixed Dialling Phonebook facility (only for FD phonebook)
Send command AT+CLCK=FD,1,<PIN2><cr>
where:
<PIN2> is the desired PIN2 code of the SIM card.
© 2002 CONTRIVE – T1010.eng
Page 97 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
ƒ Wait for response:
Response
OK
Reason
FD facility is now enabled.
Action
Return to select PB.
ERROR
Some error occurred
Enable extended result codes, retry.
+CME ERROR:16
The inserted PIN2 is wrong
Check PIN2 code, retry.
Note: When receiving the ERROR or +CME ERROR message, repeat Query SIM presence and status
since after 3 failed attempt SIM PIN2 is not anymore requested, but SIM PUK2 is requested instead,
hence you may need to go through procedure 8.4.2.4 (but insert PUK2 instead of PUK1).
9.1.2 Phonebook entry search by NAME
As first thing, you must select the "SM" storage as the active.
ƒ Send command AT+CPBF=<Name><cr>
where:
<Name> is the desired string to be found in the name field of the Phonebook record
ƒ Wait for response in the format:
+CPBF=<index>,"<number>",<type>,"<name>"
OK
where:
<index> is the record number on the phonebook
<number> is the phone number
is the type of the number
<type>
<name>
145 - international numbering scheme
129 - national numbering scheme
is the name associated with the number
or, in the case no corresponding entries are found:
+CME ERROR:22 or simply ERROR.
Note: The search for <name> string is not case sensitive and the string may or may not be included in
double brackets.
For example:
1 - Let's assume you want to select the "SM" normal phonebook for operations
Command:
X AT+CPBS="SM"<cr>
Y OK
- Now you might want to look for the entries with the name starting with "pe"
X AT+CPBF="pe"<cr>
The Answer may look like:
Y +CPBF=7,"+394012345678","Peter"
Y +CPBF=9,"+394012345678","Perry"
- Now you might want to look for the entries with the name starting with "FRANK" but no record contains
this name:
X AT+CPBF="FRANK"<cr>
Y +CME ERROR:22
or, if extended error codes are disabled, simply:
Y ERROR
© 2002 CONTRIVE – T1010.eng
Page 98 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.1.3 Phonebook entry search by INDEX
As first thing, you must select the "SM" storage as active, then:
ƒ Send command AT+CPBR=<index><cr>
where:
<index> is the index number of the desired Phonebook record to be read
ƒ Wait for response in the format:
+CPBF=<index>,"<number>",<type>,"<name>"
OK
where:
<index> is the record number on the Phonebook
<number> is the phone number
is the type of the number:
<type>
<name>
145 - international numbering scheme
129 - national numbering scheme
is the alphanumeric name associated with the number
or, in the case the index number does not correspond to a written record:
+CME ERROR:22 or simply ERROR
For example:
1 - Let's assume you want to select the "SM" normal phonebook for operations
X AT+CPBS="SM"<cr>
Y OK
- Now you might want to look for the entry at the position index = 7
X AT+CPBR=7<cr>
The Answer may look like:
Y +CPBR=7,"+394012345678","Peter"
Y OK
- Now you might want to look for the entries at the positions from 7 to 9 and for example the position at
index 8 is empty::
X AT+CPBR=7,9<cr>
The Answer may look like:
Y +CPBR=7,"+394012345678","Peter"
Y +CPBF=9,"+394012345678","Perry"
Y OK
9.1.4 Phonebook entry Write
As first thing, you must select the "SM" storage as active, then:
ƒ Send command AT+CPBW=<index>,<number>,<type>,<name><cr>
where:
<index> is the index number of the desired PB record to be written (may be omitted if any empty record
number can be used, a colon must be placed anyway: AT+CPBW=,,<number>,<type>,<name><cr> )
<number> is the phone number
is the type of the number
<type>
145 - international numbering scheme
129 - national numbering scheme
is the alphanumeric name associated with the number
<name>
© 2002 CONTRIVE – T1010.eng
Page 99 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
ƒ Wait for response:
Response
OK
Reason
Record successfully written.
Action
Proceed ahead
ERROR
Some error occurred
Enable extended result codes, retry.
+CME ERROR:10
SIM not present
Check SIM card
+CME ERROR:310
SIM not present
Check SIM card
+CME ERROR:11
SIM present, PIN required
Insert SIM PIN
+CME ERROR:311
SIM present, PIN required
Insert SIM PIN
+CME ERROR:12
SIM present, PUK required
Insert SIM PUK
+CME ERROR:316
SIM present, PUK required
Insert SIM PUK
+CME ERROR:13
SIM defect
Check SIM card
+CME ERROR:313
SIM defect
Check SIM card
+CME ERROR:14
SIM is busy
Retry later
+CME ERROR:314
SIM is busy
Retry later
+CME ERROR:15
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:315
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:21
Invalid index
Change index number, retry
+CME ERROR:20
Memory full
Phonebook storage is full
+CME ERROR:322
Memory full
Phonebook storage is full
For example:
1 - Let's assume you want to select the "SM" normal phonebook for operations
X AT+CPBS="SM"<cr>
Y OK
- Now you might want to write a new record on the Phonebook
X AT+CPBW=,"338123456789",129,"NewRecord"<cr>
Y OK
- Now you may want to check if operation has really succeeded and where the new record has been
written (obviously operation was successful, since the GsmTerminal returned OK).
X AT+CPBF="NEW"<cr>
Y AT+CPBF=8,"338123456789",129,"NewRecord"
Y OK
The new record was written at the position index 8 (the first free record index found).
9.1.5 Phonebook entry Delete
As first thing, you must select the "SM" storage as active, then:
ƒ Send command AT+CPBW=<index><cr>
where:
<index> is the index number of the desired PB record to be deleted
© 2002 CONTRIVE – T1010.eng
Page 100 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
ƒ Wait for response:
Response
OK
Reason
Record successfully deleted.
Action
Proceed ahead
ERROR
Some error occurred
Enable extended result codes, retry.
+CME ERROR:10
SIM not present
Check SIM card
+CME ERROR:310
SIM not present
Check SIM card
+CME ERROR:11
SIM present, PIN required
Insert SIM PIN
+CME ERROR:311
SIM present, PIN required
Insert SIM PIN
+CME ERROR:12
SIM present, PUK required
Insert SIM PUK
+CME ERROR:316
SIM present, PUK required
Insert SIM PUK
+CME ERROR:13
SIM defect
Check SIM card
+CME ERROR:313
SIM defect
Check SIM card
+CME ERROR:14
SIM is busy
Retry later
+CME ERROR:314
SIM is busy
Retry later
+CME ERROR:15
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:315
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:21
Invalid index
Change index number, retry
N
The delete operation simply overwrites the record number <index> with an empty fields
record. If the record to be deleted was already empty, no error messages will be shown, but
it will be only filled again with empty values.
9.1.6 Phonebook entry Dial
You may want to dial a number previously stored in the phonebook. As first thing, you must find the
desired phone number index position, to do it use the +CPBF command. Once the <index> number is
known set up the device for the type of call you want to dial, then:
ƒ Send command ATD> <index><cr>
where:
<index> is the index number of the desired PB record to be dialled.
ƒ Wait for response according to the call type you issued.
For example:
1 - Let's assume you want to make a data call to "Peter" whose number is stored on the SIM PB:
- Select the PB as active storage
X AT+CPBS="SM"<cr>
Y OK
- Now find the index number where "Peter" is recorded:
X AT+CPBF="Peter"
Y CPBR=7,"+394012345678",145,"Peter"
Y OK
- The first field is the index position, 7 in this case.
- Now set up Data call and dial.
X AT+FCLASS=0<cr>
Y OK
X ATD>7<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 101 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.2 Distinguish Calls
9.2.1 Identify the Call type
GsmTerminal is able to identify call type before answering it, it's so possible to have different ring
indications (unsolicited codes) depending on the call type:
Unsolicited Code
RING
Reason
Extended format of incoming call indication disabled. A call is incoming.
+CRING:VOICE
Extended format of incoming call indication enabled. A Voice call is incoming.
+CRING:DATA
Extended format of incoming call indication enabled. A Data call is incoming.
+CRING:FAX
Extended format of incoming call indication enabled. A Fax call is incoming.
In order to use this feature you must enable the extended format of incoming calls.
9.2.1.1 Set the extended incoming call indication
ƒ Send command AT+CRC=<n><cr>
where:
<n> is the operation mode selected:
0 - extended results disabled (device reports RING only)
1 - extended results Enabled (device reports +CRING:<type> indication)
ƒ Wait for OK response.
9.2.2 Identify the Caller
GsmTerminal is able to identify the caller number and give indication of it before call is answered.
The calling number is presented after each RING or +CRING indication in the format:
+CLIP:"<number>",<type>
OK
where:
<number> is the phone number
is the type of number:
<type>
145 - international numbering scheme
129 - national numbering scheme
In order to use this feature you must enable the caller ID identification presentation, if feature is disabled
then no CLI indication is given after the RING or +CRING code.
9.2.2.1 Set Caller line ID indication presentation
ƒ Send command AT+CLIP=<n><cr>
where:
<n> is the operation mode selected:
0 - Calling Line Indication Presentation disabled
1 - Calling Line Indication Presentation enabled
ƒ Wait for OK response.
For example:
1 - Let's assume you receive a call from the national number 1234567890 and extended incoming calls
indication is disabled while CLIP is enabled, you'll see:
ring indication:
Y RING
Y +CLIP:"1234567890",129
© 2002 CONTRIVE – T1010.eng
Page 102 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
2 - Let's assume you receive a call from the national number +391234567890 and extended incoming
calls indication is disabled while CLIP is enabled, you'll see:
ring indication:
Y RING
Y +CLIP:"391234567890",145
Note: This does not mean that the incoming call is an international one, it simply means that the
numbering scheme used to identify the caller is the international one.
9.2.3 Restricting Calling Line Indication
GsmTerminal is able to send the calling line indication (CLI) to the other party through the network when
an outgoing call is made. This indication can be restricted (CLIR) in various ways:
ƒ CLI sent always
ƒ CLI never send
ƒ CLI temporary sent (normally not sent)
ƒ CLI temporary not sent (normally sent)
9.2.3.1 CLIR Service status query
ƒ Send command AT+CLIR?<cr>
ƒ Wait for response in the format:
+CLIR:<n>,<m>
where:
<n> is the facility status on the GsmTerminal:
0 - CLIR facility according to CLIR service network status
1 - CLIR facility active (CLI not sent)
2 - CLIR facility not active (CLI sent)
<m> is the facility status on the Network:
0 - CLIR service not provisioned (service unavailable)
1 - CLIR service provisioned (service available)
2 - Unknown (e.g. no network present, etc.)
3 - CLI temporary mode presentation restricted
4 - CLI temporary mode presentation allowed
Note: The <m> parameter reports the status of the service at network level.
If the CLIR service is not provisioned, then it's not possible to use this service and changing the first
parameter <n> will not change the CLI presentation to the other party behaviour of the network.
For example:
1 - Let's assume you want to check your CLIR settings:
X AT+CLIR?<cr>
Y +CLIR:2,4
In this case, the CLIR service is temporary mode allowed on the network and the mobile sends the CLI
when calling (CLI Restriction not active).
9.2.3.2 Restrict/Allow Caller line ID indication
ƒ Send command AT+CLIR=<n><cr>
where:
<n> is the operation mode selected:
0 - Calling Line Indication to the other party according to Network service status.
1 - Calling Line Indication Restriction Enabled (CLI not sent)
2 - Calling Line Indication Restriction Disabled (CLI sent)
Wait for OK response.
© 2002 CONTRIVE – T1010.eng
Page 103 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
For example:
1 - Let's assume you want to disable the CLI presentation to the other party permanently:
X AT+CLIR=1<cr>
Y OK
9.2.3.3 Temporary Restrict/Allow Caller line ID indication
With this procedure is possible to change temporarily the CLIR setting for one call. Hence if the CLIR was
enabled (CLI not sent to the other party) it's possible to disable the restriction for one call and vice versa.
To temporarily RESTRICT the CLI indication:
ƒ Send command ATD<n> I<cr>
ƒ Wait for OK response
To temporarily ALLOW the CLI indication:
ƒ Send command ATD<n> i<cr>
ƒ Wait for OK response
For example:
1 - Let's assume you enabled the CLI Restriction to the other party permanently and hence your CLI is
never sent to the caller party. For the current call you want to disable the restriction and hence send your
CLI to called party (called in Voice mode), for example the number 1234567:
X ATD1234567i<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 104 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3 Services and facilities handling
The GSM standard provides several services and facilities for user to handle the calls and the device
security. The more useful facility are:
ƒ PIN request on start-up
ƒ Call Diverting
ƒ Call Barring
All these facilities are supported by GsmTerminal and can be enabled or disabled, their status can be
queried to the network (for call management) or to the device (start-up PIN request).
9.3.1 Pin Start-up Request Control
The device provides several security options, the principal one is the SIM PIN request at start-up. If this
option is active, after power up the device waits for the SIM PIN code insertion command +CPIN. Until the
right PIN code is inserted the device does not issue any operation that involves network, for example it
does not register on the network, it's not possible to receive and generate calls.
This security option can be enabled/disabled and its status can be queried.
9.3.1.1 Pin Request Service status query
ƒ Send command AT+CLKC=SC,2<cr>
ƒ Wait for response:
Response
+CLCK:0
Reason
PIN facility is disabled
Action
+CLCK:1
PIN facility is enabled
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:10
SIM not present
Check SIM card
+CME ERROR:310
SIM not present
Check SIM card
+CME ERROR:11
SIM present, PIN required
Insert SIM PIN
+CME ERROR:311
SIM present, PIN required
Insert SIM PIN
+CME ERROR:12
SIM present, PUK required
Insert SIM PUK
+CME ERROR:316
SIM present, PUK required
Insert SIM PUK
+CME ERROR:13
SIM defect
Check SIM card
+CME ERROR:313
SIM defect
Check SIM card
+CME ERROR:14
SIM is busy
Retry later
+CME ERROR:314
SIM is busy
Retry later
+CME ERROR:15
SIM is wrong type
Check SIM card, must be GSM type
+CME ERROR:315
SIM is wrong type
Check SIM card, must be GSM type
9.3.1.2 Enable/Disable PIN request at Start-up
ƒ Send command AT+CLCK=SC,<n>,<PIN><cr>
where:
is the index operation selected
<n>
0 - disable SIM PIN request at start-up
1 - enable SIM PIN request at start-up
<PIN> is the SIM PIN code
ƒ Wait for OK response
For example:
1 - Let's assume you want to disable the PIN request at start-up and your PIN code is 1234:
X AT+CLCK=SC,0,1234<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 105 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.2 Call Waiting Indication Control
The call waiting service allow the GsmTerminal to receive an indication of an incoming call when a call is
already active at the moment when the second call (third party) incomes; furthermore the third party
receives a ringing indication as if the mobile was not busy instead of the busy tone.
Note: By disabling the call waiting indication on the network, the second call is not allowed and the
third party receives immediately the busy tone. Enabling the local reporting in this situation of the call
waiting may lead to undesired results because the terminal has to report something the network does
not issue, hence when the service is disabled on the network it MUST be disabled also the local
reporting. For this reason the commands AT+CCWA=1,0,x should be avoided.
Note: Similarly in the opposite situation, when the call waiting service is enabled on the network, the
local reporting should be active; else the third party receives a ring indication and awaits for response
while the device does not issue any +CCWA unsolicited indication and will not know that the third
party is waiting for response. For this reason the commands AT+CCWA=0,1,x should be avoided.
The call waiting indication is in the format:
+CCWA:"<number>",<type>,<class>
where:
<number> is the phone number
<type>
is the type of number
145 - international numbering scheme
129 - national numbering scheme
<class>
is a sum of integers representing the call type the service refers to
1 - Voice calls
2 - Data calls
4 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
9.3.2.1 Enabling the Call Waiting Indication
ƒ Send command AT+CCWA=1,1,<class><cr>
where:
<class> is a sum of integers representing the call type the service refers to (see above)
ƒ Wait for response:
Response
Reason
Call waiting indication is now active
Action
OK
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported
Check syntax and service availability
For example:
1 - Let's assume you want to enable the call waiting indication for the Voice Calls:
X AT+CCWA=1,1,1<cr>
Y OK
Now the call waiting indication service is active, if a Voice call will income during another call you will
receive the unsolicited indication:
+CCWA:"PhoneNumber",TypeOfNumber,ClassOfCall
For example the third party that calls has the number +391234567890 and issues a Voice call:
+CCWA:"+391234567890",145,1
© 2002 CONTRIVE – T1010.eng
Page 106 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.2.2 Disabling the Call Waiting Indication
ƒ Send command AT+CCWA=0,0,<class><cr>
where:
<class> is a sum of integers representing the call type the service refers to (see above)
ƒ Wait for response:
Response
Action
OK
Reason
Call waiting indication is now disabled
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported
Check syntax and service availability
For example:
1 - Let's assume you want to disable the call waiting indication for all type of Calls:
X AT+CCWA=0,0,7<cr>
Y OK
9.3.3 Call Divert Control
The call divert service allows the network operator to divert the incoming calls to another phone number
in various cases:
ƒ When the GsmTerminal is not reachable (turned off or in place with no field)
ƒ When the GsmTerminal is busy in another call
ƒ When GsmTerminal does not answer the call
ƒ Always (unconditional)
ƒ All calls divert (no query command is allowed)
ƒ All conditional diverting (no query command is allowed)
Note: The All Calls Divert and All Conditional Diverting types are only for Enable / Disable, Register /
Erase, the Query command is not allowed with this type of diverting.
Note: The difference between the unconditional diverting and All calls diverting is that while the
unconditional diverting overrides the other conditional diverting without changing their setting
registered on the network, the All calls diverting changes all the network setting for all the conditional
ones. For this reason if a busy divert to 1234 is registered and an unconditional divert to 5678 is
registered and then removed the busy divert returns to its previous number 1234; in the same
condition if an All calls diverting to 5678 is registered and then erased, the result is that the busy
divert will be changed into 5678 (All call register) and then erased (all call erase).
Note: On The call Diverting service is possible to Enable/Disable the service instead of Register and
erase it. The difference is that in the first case the divert information (number where the call is diverted
and condition) is maintained by the network even if the divert is not active (calls arrive to Mobile) in
order to achieve a faster enabling, while in the second case the information is completely cancelled.
When a call Divert has been only Disabled the query for its status reports the network stored data as if
the call divert would be active, causing a bit of confusion.
For this reason it is suggested to use only the register and erase commands as explained in the next
paragraphs; Disable/Enable features should be avoided.
Note: The call Diverting service is handled by the network, hence all the relative commands issue a
network request and it may take several seconds to have the response from the network.
Furthermore all the Diverting service commands must be issued when the mobile is Registered on
some Network, else an error code is returned (no network service).
Note: The call Diverting service is handled by the network and the different types of diverting should
be considered as standalone services. Hence the "unconditional diverting" is not the sum of the
mobile busy+no reply+not reachable diverting service. If only the unconditional diverting has been
registered, then the only service that can be erased is the unconditional diverting.
© 2002 CONTRIVE – T1010.eng
Page 107 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.3 1 Call Diverting Service status query
ƒ Send command AT+CCFC=<fac>,2<cr>
where:
<fac> is the facility to be queried:
0 - Unconditional diverting
1 - GsmTerminal busy diverting
2 - No reply diverting
3 - Not reachable diverting
4 - All calls diverting (QUERY NOT ALLOWED)
5 - All conditional calls diverting (QUERY NOT ALLOWED)
ƒ Wait for response in the format:
+CCFC:<status>,<class>[,<number>[,<type>[,,,after <time>s]]]
OK
where:
<status> is the facility status:
0 - Facility not active (call not diverted)
1 - Facility active (call diverted)
<class>
is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
<number> is the (optional) number where the call is being diverted
<type>
is the (optional) number type where the call is being diverted
145 - International numbering scheme
129 - National numbering scheme
<time>
is the (optional) time in seconds (1÷30) after which the call is diverted for the
"no reply" divert case
Response
+CCFC:0,x
Reason
Facility is disabled
Action
+CCFC:1,x,x,x
Facility is enabled
+CME ERROR:4
Operation not supported
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to check whether the incoming calls made when the GsmTerminal is not
reachable are diverted or not:
X AT+CCFC=3,2<cr>
Y +CCFC:0,7
In this case all the incoming calls ARE NOT DIVERTED when the mobile is not reachable. The <class>=7
means that the reported status refers to: 1(voice) + 2(data) + 3(fax) type of calls.
2 - Let's assume you want to check whether the incoming calls made when the GsmTerminal is busy
are diverted or not:
X AT+CCFC=1,2<cr>
Y +CCFC:1,1,+391234567890,145
Y +CCFC:1,4,0351234567890,129
Y OK
© 2002 CONTRIVE – T1010.eng
Page 108 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
In this case all the incoming VOICE calls (<class>=1) when the GsmTerminal is busy are diverted to the
number expressed in international format (<type>=145) +391234567890.
The incoming FAX (<class>=4) when the GsmTerminal is busy are diverted to the number expressed in
national format (<type>=129) 0351234567890. Data calls (<type>=2) are not diverted.
3 - Let's assume you want to check whether the incoming calls with no reply are diverted or not:
X AT+CCFC=2,2<cr>
Y +CCFC:1,1,+391234567890,145,,,after 20s
Y +CCFC:1,6,0351234567890,129,,,after 5s
Y OK
In this case all the incoming VOICE calls (<class>=1) after 20 seconds of ringing are diverted (no reply) to
the number expressed in international format (<type>=145) +391234567890.
The incoming DATA and FAX (<class>=2+4) calls after 5 seconds of ringing are diverted to the number
expressed in national format (<type>=129) 0351234567890. Data calls (<type>=2) are not diverted.
9.3.3.2 Divert unconditionally the calls
ƒ Send command AT+CCFC=0,3,<number>,<type>,<class><cr>
where:
<number> is the desired number where the calls shall be redirected
<type>
is the desired number type where the call is being diverted
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
<class>
is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
ƒ Wait for response
Response
Action
OK
Reason
Diverting is now active
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to divert all the calls unconditionally to the national number 1234567890:
X AT+CCFC=3,2,1234567890,129,7<cr>
Y OK
2 - Let's assume you want to divert all the VOICE calls unconditionally to the international number
+391234567890:
X AT+CCFC=0,3,+391234567890,145,1<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 109 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.3.3 Divert Missed Calls when GsmTerminal is Busy
ƒ Send command AT+CCFC=1,3,<number>,<type>,<class><cr>
where:
<number> is the desired number where the calls shall be redirected
<type>
is the desired number type where the call is being diverted
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
<class>
is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
ƒ Wait for response
Response
Action
OK
Reason
Diverting is now active
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to divert all the calls lost because GsmTerminal is busy, to the national
number 1234567890:
X AT+CCFC=1,3,1234567890,129,7<cr>
Y OK
2 - Let's assume you want to divert all the VOICE calls lost because GsmTerminal is busy, to the
international number +391234567890:
X AT+CCFC=1,3,+391234567890,145,1<cr>
Y OK
9.3.3.4 Divert Missed Calls when GsmTerminal does not reply
ƒ Send command AT+CCFC=2,3,<number>,<type>,<class><cr>
where:
<number> is the desired number where the calls shall be redirected
<type> is the desired number type where the call is being diverted
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
<class> is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
ƒ Wait for response
© 2002 CONTRIVE – T1010.eng
Page 110 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
Response
Action
OK
Reason
Diverting is now active
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to divert all the calls lost because GsmTerminal does not reply, to the national
number 1234567890:
X AT+CCFC=2,3,1234567890,129,7<cr>
Y OK
2 - Let's assume you want to divert all the VOICE calls lost because GsmTerminal does not reply, to the
international number +391234567890:
X AT+CCFC=2,3,+391234567890,145,1<cr>
Y OK
9.3.3.5 Divert Missed Calls when GsmTerminal is not Reachable
ƒ Send command AT+CCFC=3,3,<number>,<type>,<class><cr>
where:
<number> is the desired number where the calls shall be redirected
<type>
is the desired number type where the call is being diverted
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
<class>
is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
ƒ Wait for response
Response
Action
OK
Reason
Diverting is now active
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to divert all the calls lost because GsmTerminal is not reachable, to the
national number 1234567890:
X AT+CCFC=3,3,1234567890,129,7<cr>
Y OK
2 - Let's assume you want to divert all the VOICE calls lost because GsmTerminal is not reachable, to the
international number +391234567890:
X AT+CCFC=3,3,+391234567890,145,1<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 111 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.3.6 Divert All Missed Calls
ƒ Send command AT+CCFC=5,3,<number>,<type>,<class><cr>
where:
<number> is the desired number where the calls shall be redirected
<type>
is the desired number type where the call is being diverted
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
<class>
is a sum of integers representing the call type the service refers to:
1 - Voice calls
2 - Data calls
3 - Fax calls
5 - Voice + Fax calls
6 - Data + Fax calls
7 - Voice + Data + Fax calls
ƒ Wait for response
Response
Action
OK
Reason
Diverting is now active
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to divert all the calls lost, to the national number 1234567890:
X AT+CCFC=5,3,1234567890,129,7<cr>
Y OK
2 - Let's assume you want to divert all the VOICE calls lost, to the international number +391234567890:
X AT+CCFC=5,3,+391234567890,145,1<cr>
Y OK
9.3.4 Call Barring Control
The call Barring is a GSM service that allows the user to block certain type of calls:
ƒ Barring All Outgoing Calls
ƒ Barring All Outgoing International Calls
ƒ Barring All Outgoing International Calls except to Home Country
ƒ Barring All Incoming Calls
ƒ Barring Incoming Calls when Roaming outside the Home Country
ƒ All Barring Services (applicable only for disabling command)
ƒ All Outgoing Barring Services (applicable only for disabling command)
ƒ All Incoming Barring Service (applicable only for disabling command)
The service can be queried, enabled or disabled.
Note: The Call Barring service is handled by the network, hence all the relative commands issue a
network request and it may take several seconds to have the response from the network.
Furthermore, all the Call Barring service commands must be issued when the GsmTerminal is
registered on some network, else an error code is returned (no network service).
© 2002 CONTRIVE – T1010.eng
Page 112 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.4.1 Call Barring Service status query
ƒ Send command AT+CLCK=<fac>,2<cr>
where:
<fac> is the facility to be queried:
AO - Barring All Outgoing calls
OI - Barring Outgoing International calls
OX - Barring Outgoing International calls eXcept to home Country
AI - Barring All Incoming calls
IR - Barring Incoming calls when Roaming outside the home Country
AB - All Barring services (applicable only for disabling command)
AG - All Outgoing Barring services (applicable only for disabling command)
AC - All Incoming Barring services (applicable only for disabling command)
ƒ Wait for response
Response
+CLCK:0
Reason
Facility is disabled
Action
Calls are allowed
+CLCK:1
Facility is enabled
Calls are barred
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:30
No network service
Check for registration and signal
For example:
1 - Let's assume you want to check whether the incoming calls when roaming outside Home Country are
barred or not:
X AT+CLCK=IR,2<cr>
Y +CLCK:0
In this case the incoming (received) calls ARE NOT BARRED when in Roaming outside the Home Country.
2 - Let's assume you want to check whether the Outgoing (originated) international calls are barred or not:
X AT+CLCK=OI,2<cr>
Y +CLCK:1
In this case the outgoing international calls ARE BARRED.
9.3.4.2 Barring/Unbarring All Incoming Calls
ƒ Send command AT+CLCK=AI,<en>,<pwd><cr>
where:
<en> is the operation selected
0 - Call Barring disable
1 - Call Barring Enable
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to bar all the incoming calls and the network password of your operator is 0000:
X AT+CLCK=AI,1,0000<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 113 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.4.3 Barring/Unbarring Incoming Calls when in International Roaming
ƒ Send command AT+CLCK=IR<en>,<pwd><cr>
where:
<en> is the operation selected
0 - Call Barring disable
1 - Call Barring Enable
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to bar all the incoming calls when the GsmTerminal is roaming outside its
Home Country and the network password of your operator is 0000:
X AT+CLCK=IR,1,0000<cr>
Y OK
9.3.4.4 Barring/Unbarring All Outgoing Calls
ƒ Send command AT+CLCK=AI,<en>,<pwd><cr>
where:
<en>
is the operation selected
0 - Call Barring disable (Unbarring)
1 - Call Barring Enable (Barring)
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to bar all the outgoing calls (originated by GsmTerminal) and the network
password of your operator is 0000:
X AT+CLCK=AO,1,0000<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 114 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.4.5 Barring/Unbarring All Outgoing International Calls
ƒ Send command AT+CLCK=OI,<en>,<pwd><cr>
where:
<en>
is the operation selected
0 - Call Barring disable
1 - Call Barring Enable
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to bar all the outgoing international calls (originated by GsmTerminal to a
number outside the Home Country) and the network password of your operator is 0000:
X AT+CLCK=OI,1,0000<cr>
Y OK
9.3.4.6 Barring/Unbarring All Outgoing International Calls except to Home Country
ƒ Send command AT+CLCK=OX,<en>,<pwd><cr>
where:
<en>
is the operation selected
0 - Call Barring disable
1 - Call Barring Enable
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to bar all the outgoing international calls except the ones towards the Home
Country and the network password of your operator is 0000:
X AT+CLCK=OX,1,0000<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 115 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.3.4.7 Unbarring All the Calls
ƒ Send command AT+CLCK=AB,0,<pwd><cr>
where:
<pwd> is the network password required to change facility status
ƒ Wait for response
Response
OK
Reason
Barring is now enabled/disabled
Action
Incoming calls barred/unbarred
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and service code
+CME ERROR:16
Wrong network password
Check syntax and service code
+CME ERROR:30
No network service
Check password and retry
For example:
1 - Let's assume you want to disable all the barring services you might previously activated and the
network password of your operator is 0000:
X AT+CLCK=AB,0,0000<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 116 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.4 Power Saving Functions
GsmTerminal can be turned on and off by means of:
ƒ Hardware contact connected to on/off input
ƒ Software shutdown AT#SHDN<cr> command and dummy AT<cr> command to bring alive
GsmTerminal has an additional special function that reduces the power consumption during the idle time,
being registered on the network.
This function monitors the DTR line indicating that the OEM application is ready to send commands, when
it goes high (3V on UART) then the OEM application is not going to send any commands and GsmTerminal
can save energy by shutting down its internal serial port.
When the OEM application becomes ready again, then the DTR line is tied low (0V on UART); GsmTerminal
detects this condition and powers up the serial port.
If the power saving function is activated, then the serial port must support the DTR line since when this
line is high (Data Terminal is NOT ready) the device goes into a sleep condition and will not respond to
commands until the DTR is tied low (Data Terminal is ready).
Note: The power saving function does not affect the network behaviour of GsmTerminal, even during
the
power save condition the module remains registered on the network and reachable for incoming calls
or SMS. If a call incomes during the power save, then the module will wake up and proceed normally
with the unsolicited incoming call code.
When GsmTerminal wakes up from the sleep mode, it takes a maximum of 150 milliseconds
before it can exchange commands on the serial port. Hence place a delay of at least 150 ms
between the port opening (DTR lowering) and command sending.
According to the V24 standard, when the module is not ready to receive commands it will tie
up the CTS line, while it will pull it down when it's ready to receive commands; hence you can
monitor the CTS line to ensure the GsmTerminal is ready for commands.
N
9.4.1 Enabling/Disabling the power saving function
ƒ Send command AT+CFUN=<fun><cr>
where:
<fun> is the power saving function mode, supported values are:
1 - GsmTerminal full functionality with power saving disabled (default)
5 - GsmTerminal full functionality with power saving enabled
ƒ Wait for response
Response
Reason
Power saving mode accepted
Action
OK
ERROR
Some error occurred
Enable extended result codes, retry
+CME ERROR:4
Operation not supported or unavailable
Check syntax and <fun> value
N
The power saving function is disabled by default when the device starts up, in order to
guarantee that even without the DTR line support it is possible to exchange commands with
the module; for this reason the power saving setting command shall be issued after every
power up.
© 2002 CONTRIVE – T1010.eng
Page 117 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.5 SMS Handling
GsmTerminal supports the Short Message Service, it's possible to store, delete, write, send and receive a
SMS which is a short text message up to 160 characters long.
9.5.1 SMS device set-up
Before accessing the Short Message Service, the device has to properly set up.
9.5.1.1 Select SMS format type
GsmTerminal supports SMS in two different formats:
ƒ PDU
ƒ Text
The difference is that in the PDU mode the device returns and receives SMS encoded in the format ready
to be sent to the network; in TEXT mode the device converts automatically the read PDU into text and
viceversa. By using TEXT mode the PDU data encoding knowledge is not needed and operations are
easier. For this reason, we will use the TEXT mode to explain how to operate with SMS. If you are familiar
with PDU encoding then you can operate with PDU by selecting that format and using appropriate
command syntax.
ƒ Send command AT+CMGF=<mode><cr>
where:
<mode> is the SMS format type:
0 - PDU
1 - Text
ƒ Wait for OK response
N
This setting is stored and remains until the device is turned off. Hence there's no need to
issue it more than one time.
For TEXT mode use <mode>=1..
For example:
1 - Let's assume you want to set TEXT format for the SMS:
X AT+CMGF=1<cr>
Y OK
9.5.1.2 Check SMS Service Centre number
GsmTerminal supports SMS in two different formats:.
ƒ PDU
ƒ Text
The SMS are sent by GsmTerminal to a service centre (SMSC or SCA) where the message is dispatched
towards its final destination or is kept until the delivery is possible. To ensure a correct behaviour of this
service the number of the service centre must be the one your network operator supports.
To check which number is stored as the SMSC:
ƒ Send command AT+CSCA?<cr>
ƒ Wait for response in the format
+CSCA:<number>,<type>
OK
where:
<number> is the SMSC number
is the SMSC number type
<type>
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
© 2002 CONTRIVE – T1010.eng
Page 118 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
N
This setting remains stored in the SIM card until is changed or deleted, so this operation may
be done only once if the SIM card is not changed.
The setting is maintained even after power down.
For example:
1 - Let's assume you want to check your SMSC number:
X AT+CSCA?<cr>
Y +CSCA:+39335123456,145
Y OK
9.5.1.3 Add SMS Service Centre number (only if required)
If you previously check for SMSC returned +CMS ERROR:330 or an empty field:
Y +CSCA:,129
or if the SMSC number stored does not correspond to the desired one, then the new number has to be
stored. In this way the previously stored number will be overwritten
ƒ Send command AT+CSCA=<number>,<type><cr>
where:
<number> is the desired SMSC number
is the SMSC number type
<type>
145 - International numbering scheme (number begins with "+")
129 - National numbering scheme
ƒ Wait for OK response
For example:
1 - Let's assume your desired SMSC number is +39335123456 (stored in international format):
X AT+CSCA=+39335123456,145<cr>
Y OK
9.5.1.4 Select New Messages indication behaviour
When the device receives a new message an unsolicited indication is generated, this indication may be
sent to the DTE, buffered if the DTE is busy (for example during a data call) or discarded.
To set the desired behaviour:
ƒ Send command AT+CNMI=<mode>,<mt>,<bm>,<ds>,0<cr>
where:
<mode> unsolicited result code buffering option:
0 - buffer unsolicited result codes in the TA if the DTE is busy (e.g. data call active meanwhile)
1 - buffer unsolicited result codes in the TA if the DTE is busy and flush them to the TE after
reservation. Otherwise forward them directly to the TE.
is the desired behaviour for SMS delivery:
<mt>
0 - When a new SMS is received, no indication is sent to the DTE
1 - When a new SMS is received an unsolicited indication is sent to the DTE:
+CMTI:<memr>,<index>
where
<memr> - memory storage where the new message is stored (usually "SM")
<index> - location index on the memory where the new message is stored
<bm>
broadcast reporting option:
0 - Cell Broadcast Messages are not sent to the DTE
2 - New Cell Broadcast Messages are routed directly to the DTE using unsolicited result code:
+CBM:<length><CR><LF><pdu> (PDU mode selected)
or
+CBM:<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><text> (text mode selected)
where
© 2002 CONTRIVE – T1010.eng
Page 119 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
<length> - PDU length
<pdu> - message PDU
<sn> - message serial number
<mid> - message identifier
<dcs> - Data Coding Scheme
<page> - page number
<pages> - total number of pages in the message
<text> - message text
<ds>
is the desired behaviour for SMS Status Report delivery:
0 - When a new SMS Status Report is received, no indication is sent to the DTE
1 - When a new SMS Status Report is received an unsolicited indication is sent to the DTE
reporting the whole message text/PDU depending on the mode selected:
+CDS:<length><CR><LF><pdu> (PDU mode selected)
or
+CDS:<fo>,<mr>,,,<scts>,<dt>,<st> (text mode selected)
where
<length> - PDU length
<pdu> - message PDU
<fo> - first byte (octet) of message PDU
<mr> - message reference
<scts> - day & time of message arrival to the SMSC
<dt> - day & time of message delivery
<st> - message status as coded in the PDU
2 - When a new SMS Status Report is received it's stored, then an unsolicited indication is sent
to the DTE reporting the message position:
+CDSI:<memr><index>
where
<memr> - message storage where the Status Report has been stored
<index> - message index position on the storage
ƒ Wait for OK response
N
In this command description the values that are always 0 are parameter reserved for future
use, in the current software revision the only value supported is 0.
For example:
1 - Let's assume your want to eliminate all the unsolicited codes that may be sent when receiving SMS &
Status Report:
X AT+CNMI=0,0,0,0,0<cr>
Y OK
For example about a new message indication:
1 - Let's assume you receive a new SMS delivery and this new message is stored on the SIM card memory
"SM" at the location number 7; the unsolicited code you will receive (if code is enabled) is:
Y +CMTI:"SM",7
2 - Let's assume you receive a new SMS Status Report delivery and this new message is stored on the SIM
card memory "SM" at the location number 8 (the chosen <ds>=2); the unsolicited code you will receive is:
Y +CDSI:"SM",8
© 2002 CONTRIVE – T1010.eng
Page 120 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.5.1.5 Set Text Mode Parameters (only in text mode)
When the device is set to operate with Text SMS not with PDU, the SMS parameters that usually reside on
the header of the PDU must be set apart with the command +CSMP.
The parameters to be set are:
ƒ Message Format
ƒ Validity Period
ƒ Protocol Identifier
ƒ Data Coding Scheme
The meaning and format of the parameters is:
- Message Format,
Format like defined for the first octet of message according to GSM 3.40:
The format is a 8 bit parameter divided into 6 fields and then reported as integer;
b7
b6
b5
RP
UDHI
SRR
b4
b3
VPF
b2
RD
b1
b0
MTI
Where:
MTI Message Type parameter:
0 1 - SMS Submit (only value supported)
RD Reject Duplicates parameter
0 - don't reject duplicates SMS in SC
1 - reject duplicates on SC
VPF Validity Period Format
0 0 - Validity period NOT present
1 0 - VP integer represented (relative)
1 1 - VP semi octet represented (absolute)
0 1 - reserved
SRR Status Report Request
0 - status report not requested
1 - status report requested
UDHI User Data Header Information
0 - No Header on PDU
1 - Header present in PDU
RP Reply Path
0 - RP not set
1 - RP set
- Validity Period,
Period numerical if in relative format or string if in absolute format:
This parameter represents the validity period for the SMS after which the message should be
disregarded instead of being delivered.
If in relative format (see VPF parameter) it's an integer:
0 ÷ 143 - corresponding to (VP+1) x 5 minutes
144 ÷ 167 - corresponding to 12 hours +((VP-143) x 30 minutes)
168 ÷ 196 - corresponding to (VP-166) x 1 day
197 ÷ 255 - corresponding to (VP-192) x 1 week
If in absolute format it's a string in the format:
"GG/MM/YY,hh:mm:ss±tz"
where
GG
MM
YY
hh
mm
ss
±
tz
- day of expiration (2 characters)
- month of expiration (2 characters)
- year of expiration (2 characters)
- hour of expiration (2 characters)
- minute of expiration (2 characters)
- second of expiration (2 characters)
- sign of the time zone (+ or -)
- time zone (2 characters)
© 2002 CONTRIVE – T1010.eng
Page 121 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
- Protocol Identifier,
Identifier in the numerical format:
This parameter identifies the protocol used by the receiver entity and informs the SC that the
conversion from SMS to that protocol should be done while delivering the message.
Protocol ID
0
33
34
35
36
37
38
39
40
41
42
43
44
45
46-47
48
49
50
51-55
56-62
63
64
65
66
67
68
69
70
71
72…94
95
96…126
127
Conversion towards
Implicit (default)
Telex (or teletext reduced to telex format)
Group 3 telefax
Group 4 telefax
Voice telephone (i.e. conversion to speech)
ERMES (European Radio Messaging System)
National Paging System (known to SC)
Videotex (T.100/T.101)
Teletex, carrier unspecified
Teletex, in PSPDN
Teletex, in CSPDN
Teletex, in analog PSTN
Teletex, in digital ISDN
UCI (Universal Computer Interface. ETSI DE/PS 3 01-3)
Reserved (2 combinations)
A message handling facility (known to SC)
Any public X.400-based message handling system
Internet Electronic Mail
Reserved (5 combinations)
Specific for each SC, based on mutual agreement between SME and SC
GSM mobile. SC converts to any data supported by that MS (e.g. default)
Short Message type 0
Replace Short Message type 1
Replace Short Message type 2
Replace Short Message type 3
Replace Short Message type 4
Replace Short Message type 5
Replace Short Message type 6
Replace Short Message type 7
Reserved
Return Call Message
Reserved
SIM Data download
- Data Coding Scheme
Scheme, as defined by GSM 3.38 - in numerical format:
The DCS is an 8 bit parameter reported as the integer, the default value is 0, otherwise for
simplicity we report only the most useful DCS, for further schemes refer to GSM 3.38.
b7
b6
b5
b4
b3
b2
1
1
1
1
0
Alphabet
b1
b0
Class
Where:
Alphabet:
0 - default Alphabet
1 - 8 bits
Class
0 0 - Class 0
1 0 - Class 1
1 1 - Class 2
0 1 - Class 3
© 2002 CONTRIVE – T1010.eng
Page 122 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
N
The default value for DCS=0 represents the default SMS sent by a mobile. If you don't need
any particular data coding scheme use DCS=0.
Not all the DCS combinations described in the GSM 3.38 are supported, both by the network and by
GsmTerminal. Some features may be not implemented at network level or at device level, resulting in a
+CMS ERROR:303 (operation not supported) result code. If this happens then use a different DCS.
ƒ Send command AT+CSMP=<fo>,<vp>,<pid>,<dcs><cr>
where:
<fo>
<vp>
<pid>
<dcs>
message format
validity period
protocol identifier
data coding scheme
ƒ Wait for OK response
For example:
1 - Let's assume your want to set the SMS parameters to the values:
- Message Format:
- SMS submit
- don't reject duplicates
- VP format integer (relative)
- status report not required
- no header on PDU
- reply path not set
Hence the message format is the binary number 00010001 corresponding to the integer 17.
-Validity period 24 hours corresponding to an integer value 167.
12 hours + ((167-143) x 30 minutes) = 24 hours
- Protocol ID implicit (SMS sent to a mobile terminal) corresponding to a value 0.
- DCS default value 0.
X AT+CSMP=17,167,0,0<cr>
Y OK
2 - Let's assume your want to set the SMS parameters to the values:
- Message Format:
- SMS submit
- don't reject duplicates
- VP format semi-octet (absolute)
- status report requested
- no header on PDU
- reply path not set
Hence the message format is the binary number 00111001 corresponding to the integer 57.
-Validity period is absolute, hence it represents the expiration date of the message and the desired
expiration date is for example 20/02/02 at 20:02 in the time zone of Italy (+1).
"20/02/02,20:20:00+1"
- Protocol ID implicit (SMS sent to a mobile terminal) corresponding to a value 0.
- Data Coding Scheme
- Default Alphabet
- Class 0 (e.g. immediate display SMS)
corresponding to the binary number 11110000 corresponding to the integer 240.
X AT+CSMP=57,20/02/02,20:02:00+1,0,240<cr>
Y OK
© 2002 CONTRIVE – T1010.eng
Page 123 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.5.1.6 Select SMS memory and check for memory space
There are various type of memory where the SMS can be stored, GsmTerminal provides two options:
ƒ "ME" - Mobile Equipment memory
ƒ "SM" - SIM card Memory
The SMS are usually stored (this is true for both the originated and the received SMS) in the SM memory,
the "ME" memory is a read only where the Class 0 messages received are stored (regardless of the
selected active memory which may be "SM").
For this reason the "ME" memory can be selected to read the Class 0 messages.
GsmTerminal allows the user to select a different memory for the read-delete, write-send and receptionsaving SMS operations.
ƒ Send command AT+CPMS=<memr>,<memw>,<mems><cr>
where:
<memr> memory storage for Read and Delete commands
"SM"
"ME" (No delete operations allowed)
<memw> memory storage for Write and Send commands
<mems> memory storage for new incoming message saving
"SM" only
ƒ Wait for response in the format:
CPSM:<usedr>,<totalr>,<usedw>,<totalw>,<useds>,<totals>
OK
where:
<usedr>
<totalr>
<usedw>
<totalw>
<useds>
<totals>
number of SMS stored into <memr>
max number of SMS that <memr> can contain
number of SMS stored into <memw>
max number of SMS that <memw> can contain
number of SMS stored into <mems>
max number of SMS that <mems> can contain
From this response you can check if the selected memory has room for new SMSs, the free positions in
the storage X (where X can be r, w, s) are <totalX> - <usedX>.
9.5.2 IRA character set
The character set used in SMS text mode is the IRA.
This set defines each char as a 7 bit value, hence from 0x00 to 0x7F. The table below reports all the chars
supported and their hexadecimal code. To obtain the code for a char in the table remember that in the row
it is reported the least significant nibble (4 bits) and in the column the most significant nibble.
The empty cells correspond to reserved combinations.
For example:
1 - Let's assume your want to find the IRA code for the character '&':
From the table you find:
- most significant nibble: 2
- least significant nibble: 6
Hence the IRA code for the '&' character is the hexadecimal 0x26.
2 - Let's assume your have the IRA code 0x6B and you want to find the corresponding character:
From the table you find:
- most significant nibble: 6
- least significant nibble: B
Hence the character corresponding to the 0x6B IRA code is 'k'.
© 2002 CONTRIVE – T1010.eng
Page 124 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
MOST SIGNIFICANT NIBBLE
LEAST SIGNIFICANT NIBBLE
0x
1x
2x
3x
4x
5x
x0
SP1
0
@
P
x1
!
1
A
Q
a
q
x2
"
2
B
R
b
r
x3
#
3
C
S
c
s
x4
$
4
D
T
d
t
x5
%
5
E
U
e
u
x6
&
6
F
V
f
v
x7
'
7
G
W
g
w
x8
(
8
H
X
h
x
x9
)
9
I
Y
i
y
xA
*
:
J
Z
l
z
xB
+
;
K
k
xC
,
<
L
l
xD
-
=
M
m
xE
.
>
N
n
xF
/
?
O
£
6x
7x
p
o
9.5.3 Writing a New SMS to storage
A new SMS can be written in the selected memory <memw> (in the current SW version only "SM" is
supported) and then can be sent to the desired destination.
To write the new SMS:
ƒ Send command AT+CMGW=<da><cr>
where:
<da> destination address
ƒ Wait for prompt >
ƒ Send SMS text (max 160 characters)
ƒ End command with CTRL-Z character (0x1A hex) or abort command with ESC character (0x1B hex)
ƒ Wait for response:
Response
Reason
Action
+CMGW:<index>
OK
Message successfully written at
position number <index>
Proceed
ahead
ERROR
Some error occurred
Enable extended result codes, retry
+CMS ERROR:322
Memory full
Delete some record, retry
+CMS ERROR:330
SMSC address unknown
Insert SMSC address
Note: If command is aborted with ESC character then only the OK result code is returned.
© 2002 CONTRIVE – T1010.eng
Page 125 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
For example:
1 - Let's assume your want to write a new SMS to the memory and the destination address is the number
+39338123456789. We suppose you already have set up the device for text SMS mode as described on
the previous paragraphs:
X AT+CMGW=+39338123456789
Y>
Now you can insert the message text in IRA format (note that the IRA format and ASCII format coincide for
the alphabet characters but not for the other).
…here will be inserted the SMS message text…
conclude text with character CTRL-Z
Y +GMGW:3
Y OK
In this case the new SMS was successfully written to the location index 3 of the selected write memory
(always "SM" SIM Card memory).
9.5.4 Sending an SMS previously stored
An already written SMS can be sent from the selected memory <memw> (in the current software version
only "SM" is supported).
To send the written SMS its location index is needed:
ƒ Send command AT+CMSS=<index><cr>
where:
<index> is the SMS location index
ƒ Wait for response:
Response
Reason
Action
+CMSS:<mr>
OK
Message has been successfully sent.
<mr> is the message reference number
Proceed
ahead
ERROR
Some error occurred
Temporary failure (maybe unregistered)
SMSC address unknown
No network service
Unassigned number
Network congestion
Mandatory information missing
Enable extended result codes, retry
Check for network availability
Insert SMSC address
Check for network availability
Destination number missing.
Retry later
Check SMS destination, write, retry
+CMS ERROR:41
+CMS ERROR:330
+CMS ERROR:331
+CMS ERROR:1
+CMS ERROR:42
+CMS ERROR:96
For example:
1 - Let's assume your want to send a SMS that was written to the memory index position number 3. We
suppose you already have set up the device for text SMS mode as described on the previous paragraphs:
X AT+CMSS=3
Y CMSS:1
Y OK
In this case the SMS was successfully sent to the destination and its network message ref. number is 1.
© 2002 CONTRIVE – T1010.eng
Page 126 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
9.5.5 Sending a new SMS without storing
A new SMS can be sent directly to the network without storing it.
ƒ Send command AT+CMGS=<da><cr>
where:
<da> destination address
ƒ Wait for prompt >
ƒ Send SMS text (max 160 characters)
ƒ End command with CTRL-Z character (0x1A hex) or abort command with ESC character (0x1B hex)
ƒ Wait for response:
Response
Reason
Action
+CMGS:<mr>
OK
Message has been successfully sent.
<mr> is the message reference number
Proceed
ahead
ERROR
Some error occurred
Temporary failure (maybe unregistered)
SMSC address unknown
No network service
Unassigned number
Network congestion
Mandatory information missing
Command was aborted by user
Enable extended result codes, retry
Check for network availability
Insert SMSC address
Check for network availability
Destination number missing.
Retry later
Check SMS destination, write, retry
You issued an ESC character
+CMS ERROR:41
+CMS ERROR:330
+CMS ERROR:331
+CMS ERROR:1
+CMS ERROR:42
+CMS ERROR:96
OK
For example:
1 - Let's assume your want to directly send a new SMS to the destination address number
+39338123456789. We suppose you already have set up the device for text SMS mode as described
on the previous paragraphs:
X AT+CMGS=+39338123456789
Y>
Now you can insert the message text in IRA format (note that the IRA format and ASCII format coincide for
the alphabet characters but not for the other).
…here will be inserted the SMS message text…
conclude text with character CTRL-Z
Y +GMGW:4
Y OK
In this case the new SMS was successfully sent to the SC and its network reference number is 4.
Do not confuse message reference with message index position, the first indicates the network reference
for identifying the sent message (the eventually requested status report will have the same reference)
while the second indicates the position where the message has eventually been stored in memory.
9.5.6 Deleting an SMS
An already written/received SMS can be deleted from the selected memory (in the current software
version only "SM" is supported).
To delete the SMS its location index is needed:
ƒ Send command AT+CMGD=<index><cr>
where:
<index> is the SMS location index
ƒ Wait for response:
© 2002 CONTRIVE – T1010.eng
Page 127 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
Response
OK
ERROR
+CMS ERROR:321
Reason
Message has been successfully deleted
Some error occurred
Invalid memory index (could be empty)
Action
Proceed ahead
Enable extended result codes, retry
Check <index> and retry
For example:
1 - Let's assume your want to delete a previously stored SMS that was written to the memory address
position number 3. We suppose you already have set up the device for text SMS mode as described
on the previous paragraphs:
X AT+CMGD=3
Y OK
In this case the SMS was successfully deleted.
2 - Let's assume your want to delete a received SMS that was stored to the index position number 7:
X AT+CMGD=7
Y OK
9.5.7 Reading an SMS
A new SMS can be read with the command:
ƒ Send command AT+CMGR=<index><cr>
where:
<index> is the SMS location index
ƒ Wait for response in the format:
For received message:
+CMGR:<stat>,<oa>,,<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]
<CR><LF><text>
For sent message:
+CMGR:<stat>,<da>[,,<toda>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]
<CR><LF><text>
For a status report message:
+CMGR:<stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
where:
status of the message
"REC UNREAD" new message
read message
"REC READ"
"STO UNSENT" stored message not yet sent
stored message already sent
"STO SENT"
first octed of message PDU
<fo>
message reference
<mr>
day and time of message arrival at Service Centre
<scts>
day and time of message delivery
<dt>
Protocol Identifier
<pid>
Data Coding Scheme
<dcs>
sender number
<oa>
destination number
<da>
Service Centre number
<sca>
<tooa>,<toda>,<tosca> type of number <oa>,<da>,<sca>
145 - International number (contains "+" character)
129 - National number
<length> length of the message text in characters
message text
<text>
<stat>
© 2002 CONTRIVE – T1010.eng
Page 128 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
Note: If status of the message is 'received unread', status in the storage changes to 'received read'.
Note: If the requested record is empty or is not exiting then a +CMS ERROR:321 error code is reported.
For example:
1 - Let's assume your want to read the SMS that is stored at the position index 4. We suppose you already
have set up the device for text SMS mode as described on the previous paragraphs:
X AT+CMGR=4
Y CMGR:"STO UNSENT","+39335123456789"
Y Test Message for Text Mode SMS.
Y OK
In this case the SMS was successfully read, the text contained was:
"Test Message for Text Mode SMS."
The message was written to the memory by user (STO) but still not sent (UNSENT) to the destination
address that's the number +39335123456789.
2 - Let's assume your want now to read the SMS that is stored at the position index 5:
X AT+CMGR=5
Y CMGR:"REC UNREAD","+3933823232323",,"25/04/02,12:30:04+01"
Y Test Message for Text Mode SMS RECEIVING.
Y OK
In this case the SMS was successfully read, the text contained was:
"Test Message for Text Mode SMS RECEIVING."
The message was received (REC) from the number +3933823232323 at 12:30:04 the day 25/04/02 in
the European Time Zone +1.
After this read command the message at index 5 becomes REC READ.
9.5.8 Listing a group of SMSs
The SMS can be grouped into 5 different groups depending on their status:
ƒ REC UNREAD - Received messages still not read
ƒ REC READ - Received messages already read
ƒ STO UNSENT - Written messages not yet sent
ƒ STO SENT - Written messages already sent
ƒ ALL - all types of messages
It's possible to have the list of all the messages in one group:
ƒ Send command AT+CMGL=<stat><cr>
where:
<stat> status of the message
"REC UNREAD" new message
read message
"REC READ"
"STO UNSENT" stored message not yet sent
stored message already sent
"STO SENT"
all messages
"ALL"
ƒ Wait for response in the format:
For every message in the group:
+CMGL:<index>,<stat>,<oa/da>[,,,<tooa/toda>,]<CR><LF><text>
© 2002 CONTRIVE – T1010.eng
Page 129 / 133
www.gsm-control.biz
GsmTerminal - Tutorial
where:
message index position on the memory
status of the message
"REC UNREAD" new message
read message
"REC READ"
"STO UNSENT" stored message not yet sent
stored message already sent
"STO SENT"
<oa/da> sender number / destination number
<tooa/toda> type of number <oa/da>
145 - International number (contains "+" character)
129 - National number
<length> length of the message text in characters
message text
<text>
<index>
<stat>
Note: If status of the message is 'received unread', status in the storage changes to 'received read'.
For example:
1 - Let's assume your want to list all the SMS received read that are stored. We suppose you already have
set up the device for text SMS mode as described on the previous paragraphs:
X AT+CMGL="REC READ"
Y CMGL:5,"REC READ","+39335123456789"
Y Test Message for Text Mode SMS RECEIVING.
Y CMGL:8,"REC READ","+3933523232323"
Y Second Test Message for Text Mode SMS RECEIVING.
Y OK
In this case the SMS group was successfully read, the messages received UNREAD were two in the
position indexes 5 and 8. The optional parameters <tooa/toda> and <length> were not shown.
© 2002 CONTRIVE – T1010.eng
Page 130 / 133
www.gsm-control.biz
GsmTerminal - Acronyms
10 LIST OF ACRONYMS
A/D
AF
AFC
ACM
ASCII
AT
BB
CB
CBS
CCM
CLIP
CLIR
CMOS
CR
CSD
CTS
DAI
DCD
DCE
DRX
DSR
DTA
DTE
DTMF
DTR
DTX
EFR
EGSM
EIA
EMC
ETSI
ESD
GSM
GPRS
HF
HMI
IMEI
IMSI
I/O
ISO
ITU
IWF
LCD
LED
© 2002 CONTRIVE – T1010.eng
Analog to Digital
Audio Frequency
Automatic Frequency Control
Accumulated Call Meter
American Standard Code for Information Interchange
Attention commands
Baseband
Cell Broadcast
Cell Broadcasting Service
Call Control Meter
Calling Line Identification Presentation
Calling Line Identification Restriction
Complementary Metal-Oxide Semiconductor
Carriage Return
Circuit Switched Data
Clear To Send
Digital Audio Interface
Data Carrier Detect
Data Communication Equipment
Data Receive
Data Set Ready
Data Terminal Adapter
Data Terminal Equipment
Dual Tone Multi Frequency
Data Terminal ready
Discontinuous transmission
Enhanced Full Rate
Enhanced GSM
Electronic Industries Association
Electromagnetic Compatibility
European Telecommunications Equipment Institute
Electrostatic Discharge
Global system for Mobile Communications
General Packet Radio Service
Hands Free
Human Machine Interface
International Mobile Equipment Identify
International Mobile Subscriber Identify
Input/Output
International Standard Organisation
International Telecommunication Union
Inter-Working Function
Liquid Crystal Display
Light Emitting Diode
Page 131 / 133
www.gsm-control.biz
GsmTerminal - Acronyms
LF
ME
MMI
MO
MS
MT
MTBF
PB
PDU
PH
PIN
PLMN
PUCT
PUK
RACH
RLP
RMS
RTS
SCA
SELV
SIM
SMD
SMS
SMSC
SS
SW
TIA
UDUB
UMTS
USSD
© 2002 CONTRIVE – T1010.eng
Line Feed
Mobile Equipment
Man Machine Interface
Mobile Originated
Mobile Station
Mobile Terminal
Mean Time Between Failures
Phone Book
Protocol Data Unit
Packet Handler
Personal Identify Number
Public Land Mobile Network
Price per Unit Currency Table
PIN Unblocking Code
Random Address CHannel
Radio Link Protocol
Root Mean Square
Ready (Request) To Send
Service Centre Address
Safety Extra Low Voltage
Subscriber Identity Module
Surface Mounted Device
Short Message Service
Short Message Service Centre
Supplementary Service
Software
Telecommunication Industry Association
User Determined User Busy
Universal Mobile Telephone Service
Unstructured Supplementary Service Data
Page 132 / 133
www.gsm-control.biz
GsmTerminal - Standards
Directives
99/05/EC
Directive of the European Parliament and of the Council of 9 March 1999
on radio equipment and telecommunications terminal equipment and the
mutual recognition of their conformity.
89/336/EC
Directive on Electromagnetic Compatibility
73-23/EC
Directive on electrical equipment designed for use within certain voltage
limits (Low Voltage Directive).
Standard of type approval
ETS 300 607-1
Digital cellular telecommunications system (Phase 2)
Mobile Station (MS) conformance specification
(equal GSM 11.10-1 -> equal 3GPP51.010-1)
EN 301 419-1
v.4.1.1. (4/2000) Global System for Mobile Communications (GSM)
Harmonised standard for mobile stations in the GSM 900 and 1800 bands
covering essential requirements under article 3.2 of the R&TTE Directive
(1999/5EC, GSM13.11).
ETS 300 342-1
Radio Equipment and Systems (RES)
Electromagnetic Compatibility (EMC) for European digital cellular
telecommunication systems (GSM 900 and DCS 1800 MHz)
Part 1: Mobile and portable radio and ancillary equipment
(fixed and vehicular use).
EN 60950
Safety of information technology equipment
ES 59005 / ANSI C95.1
Considerations for evaluation of human exposure to Electromagnetic Fields
(EMFs) from Mobile Telecommunication Equipment (MTE) in the frequency
range 30MHz÷6GHz (relevant parts for applications)
Quality requirements
IEC 60068
Environmental testing
DIN EN 60529
IP (protection degree) codes
© 2002 CONTRIVE – T1010.eng
Page 133 / 133
www.gsm-control.biz

Documenti analoghi

TC35i AT Command Set

TC35i AT Command Set AT+CALA Set alarm time.......................................................................................................71 AT+CAMM Accumulated call meter maximum (ACMmax) set or query............

Dettagli

Application Note, Working with SiteManager SMS and Emails Alerts

Application Note, Working with SiteManager SMS and Emails Alerts 172.16.16.225. You can define a maximum of three devices. The device will address the IP address of a SMTP server on the Uplink side of the SiteManager, and therefore need to know that the SiteMana...

Dettagli