g20 at Commands C
g20 at Commands C
g20 at Commands C
Motorola g20
AT Commands
98-08901C68-C
REVISION HISTORY
Updated sections: 1.1, 1.3, 2.1.4.1, 2.8, 4.3.3.2, 4.3.3.4, 4.3.3.8, 4.3.3.12, 4.3.3.17,
4.3.3.18, 4.4.1.2, 4.4.1.3, 4.4.1.4, 4.4.1.5, 4.4.1.6, 4.4.1.11, 4.5.1.11, 4.5.1.13,
4.5.1.14, 4.5.1.16, 4.5.1.17, 4.5.1.19, 4.6.1.1, 4.6.1.6, 4.7.1.1, 4.7.1.2, 4.7.1.3,
4.7.1.11, 4.7.10, 4.8.3.3, 4.8.3.8, 4.9.1.3, 4.9.1.4, 4.9.1.5, 4.10.1.1, 4.10.1.2, 4.10.1.3,
4.10.1.4, 4.10.1.5, 4.10.1.5.1, 4.10.1.5.2, 4.10.3.1, 4.11.3, 4.11.5, 4.11.10, 4.12.2.2,
4.12.2.7, 4.12.2.8, 4.13.1, 4.15.1.5, 4.15.2.2, 4.16.1.2, 4.165.2, 4.16.6.4, 4.16.6.5,
5.2.4, A.1
New sections: 2.1.4, 2.1.5, 4.2.1.10, 4.3.3.17, 4.3.3.18, 4.4.1.9, 4.4.1.10, 4.4.1.11,
4.4.1.12, 4.5.1.19, 4.5.1.20, 4.7.1.13, 4.7.1.14, 4.7.1.15, 4.7.1.16, 4.8.2.8, 4.11.6.3,
4.11.6.4, 4.11.7, 4.11.8, 4.11.9, 4.11.10, 4.11.11, 4.12.2.8
ii 98-08901C68-C
g20 AT Commands
CONTENTS
REVISION HISTORY.........................................................................................................................................................ii
1. PREFACE
1.1 SCOPE OF THIS MANUAL...............................................................................................................................................1
1.2 WHO SHOULD USE THIS MANUAL ..............................................................................................................................1
1.3 APPLICABLE DOCUMENTS............................................................................................................................................1
1.4 TERMS AND ABBREVIATIONS......................................................................................................................................2
1.5 HOW THIS MANUAL IS ORGANIZED ...........................................................................................................................4
2. PRODUCT FEATURES
2.1 IMPROVED OEM FEATURES..........................................................................................................................................5
2.1.1 STK..........................................................................................................................................................................5
2.1.2 TCP/UDP IP Connection.........................................................................................................................................7
2.1.3 Audio .....................................................................................................................................................................10
2.1.4 User-defined Profiles .............................................................................................................................................11
2.1.5 USB Session Output Indication Line.....................................................................................................................12
2.2 GPRS OPERATION ..........................................................................................................................................................13
2.2.1 Overview................................................................................................................................................................13
2.2.2 Features and Benefits.............................................................................................................................................13
2.2.3 Technical Description (GPRS – Class B Operation).............................................................................................13
2.3 CSD OPERATION ............................................................................................................................................................13
2.3.1 Overview................................................................................................................................................................13
2.3.2 Features and Benefits.............................................................................................................................................14
2.3.3 Technical Description............................................................................................................................................14
2.4 MUX INTEGRATION ......................................................................................................................................................14
2.4.1 Overview................................................................................................................................................................14
2.4.2 Features and Benefits.............................................................................................................................................15
2.4.3 Technical Description............................................................................................................................................16
2.5 SHORT MESSAGE SERVICE (SMS)..............................................................................................................................16
2.5.1 Overview................................................................................................................................................................16
2.5.2 Features and Benefits.............................................................................................................................................16
2.5.3 Technical Description............................................................................................................................................16
2.6 FAX....................................................................................................................................................................................17
July 2004
© Motorola Inc., 2004 98-08901C68-C
2.6.1 Overview............................................................................................................................................................... 17
2.6.2 Features and Benefits ............................................................................................................................................ 17
2.6.3 Technical Description ........................................................................................................................................... 17
2.7 CHARACTER SETS......................................................................................................................................................... 17
2.7.1 ASCII Character Set Management........................................................................................................................ 17
2.7.2 GSM Character Set Management ......................................................................................................................... 18
2.7.3 UCS2 Character Set Management ........................................................................................................................ 18
2.7.4 UTF-8 Character Set Management ....................................................................................................................... 18
2.7.5 8859-1 Character Set Management....................................................................................................................... 18
2.8 AT COMMANDS SUMMARY........................................................................................................................................ 19
3. INTRODUCTION TO AT COMMANDS
3.1 AT COMMANDS OVERVIEW ....................................................................................................................................... 33
3.1.1 General Symbols Used in AT Commands Description ........................................................................................ 33
3.1.2 General System Abbreviations.............................................................................................................................. 34
3.2 AT COMMANDS PROTOCOL ....................................................................................................................................... 34
3.3 AT COMMANDS STRUCTURE ..................................................................................................................................... 35
3.3.1 Command Structure .............................................................................................................................................. 35
3.3.2 Results Code Structure.......................................................................................................................................... 36
3.3.3 Response and Indications Structure ...................................................................................................................... 36
3.4 AT COMMANDS PROTOCOL & STRUCTURE CONFIGURATION ......................................................................... 37
3.5 COMMAND TOKEN TYPES .......................................................................................................................................... 38
3.5.1 Basic Syntax Command Format ........................................................................................................................... 38
3.5.2 S-parameters.......................................................................................................................................................... 38
3.5.3 Extended Syntax Command Format ..................................................................................................................... 38
3.6 COMMAND ARGUMENT TYPES ................................................................................................................................. 38
3.6.1 Numeric Constants................................................................................................................................................ 38
3.6.2 String Constants .................................................................................................................................................... 39
3.7 COMMAND MODE TYPES ............................................................................................................................................ 39
3.7.1 Parameter Set Command Syntax........................................................................................................................... 39
3.7.2 Parameter Read Command Syntax ....................................................................................................................... 39
3.7.3 Parameter Test Command Syntax......................................................................................................................... 39
3.8 VALUES .......................................................................................................................................................................... 40
3.8.1 Range of Values .................................................................................................................................................... 40
3.8.2 Compound Range of Values ................................................................................................................................. 40
3.9 ABORTING COMMANDS .............................................................................................................................................. 40
3.10 CORE AT COMMANDS.................................................................................................................................................. 41
4. AT COMMANDS REFERENCE
4.1 G18 BACKWARD COMPATIBILITY ............................................................................................................................ 45
4.2 MODEM ID....................................................................................................................................................................... 45
4.2.1 Subscriber Unit Identity ........................................................................................................................................ 45
4.2.2 Capability Reporting ............................................................................................................................................. 55
4.3 CALL CONTROL ............................................................................................................................................................. 58
4.3.1 Managing a CSD (Data) Call ................................................................................................................................ 58
4.3.2 Receiving a Data Call ........................................................................................................................................... 60
4.3.3 Call Control AT Commands ................................................................................................................................. 60
iv 98-08901C68-C
4.3.4 Call Status Messages............................................................................................................................................. 94
4.3.5 Call Advice of Charge Commands ..................................................................................................................... 100
4.3.6 Supplementary Services...................................................................................................................................... 111
4.4 PHONE AND DATE BOOKS ........................................................................................................................................ 121
4.4.1 Directory Access Commands.............................................................................................................................. 121
4.4.2 Date Book Access Commands ............................................................................................................................ 151
4.4.3 System Date and Time Access Commands......................................................................................................... 156
4.5 SMS ................................................................................................................................................................................. 158
4.5.1 SMS Commands ................................................................................................................................................. 158
4.6 NETWORK ..................................................................................................................................................................... 184
4.6.1 Network Commands ........................................................................................................................................... 184
4.7 HARDWARE INFORMATION ..................................................................................................................................... 196
4.7.1 Hardware Information......................................................................................................................................... 196
4.8 AUDIO ............................................................................................................................................................................ 216
4.8.1 Audio Setup......................................................................................................................................................... 217
4.8.2 Basic Audio Setup Commands ........................................................................................................................... 219
4.8.3 Advanced Audio Setup Commands ................................................................................................................... 231
4.9 ACCESS .......................................................................................................................................................................... 246
4.9.1 Access Control Commands................................................................................................................................. 246
4.10 MODEM CONFIGURATION AND PROFILE ............................................................................................................ 257
4.10.1 Modem Register Commands............................................................................................................................... 257
4.10.2 Sleep Mode Commands ...................................................................................................................................... 268
4.10.3 Error Handling Commands ................................................................................................................................. 274
4.11 UI (USER INTERFACE) ................................................................................................................................................ 282
4.11.1 +MH, Handset Status/Control............................................................................................................................. 282
4.11.2 +MHIG, Set Ignition State ................................................................................................................................. 283
4.11.3 +CKPD, Keypad Control ................................................................................................................................... 283
4.11.4 +MKPD, Auxiliary Keypad Control .................................................................................................................. 286
4.11.5 +CMER, Mobile Equipment Event Reporting.................................................................................................... 287
4.11.6 Unsolicited UI Status Messages.......................................................................................................................... 288
4.11.7 &V, View Configuration..................................................................................................................................... 292
4.11.8 &W, Store User Profile....................................................................................................................................... 293
4.11.9 &Y, Default User Profile .................................................................................................................................... 294
4.11.10 +CRSM, Restricted SIM Access......................................................................................................................... 295
4.12 GPRS ............................................................................................................................................................................... 297
4.12.1 GPRS Functionality ............................................................................................................................................ 297
4.12.2 GPRS Commands ............................................................................................................................................... 297
4.13 NOP - COMPATIBLE .................................................................................................................................................... 312
4.13.1 IGNORED (Compatible Only) Commands ........................................................................................................ 312
4.14 FAX CLASS 1................................................................................................................................................................. 314
4.14.1 Fax Commands ................................................................................................................................................... 315
4.15 FEATURES ..................................................................................................................................................................... 325
4.15.1 STK ..................................................................................................................................................................... 325
4.15.2 TCP/IP................................................................................................................................................................. 356
4.16 RS232 MULTIPLEXER FEATURE............................................................................................................................... 369
4.16.1 MUX Details ....................................................................................................................................................... 369
4.16.2 +CMUX, MUX Startup Command..................................................................................................................... 374
4.16.3 MUX Modes ....................................................................................................................................................... 376
98-08901C68-C v
4.16.4 MUX Customer Open Source Code Packet........................................................................................................ 376
4.16.5 APIs..................................................................................................................................................................... 376
4.16.6 MUX Channels (Information Data Link Control - IDLC).................................................................................. 376
vi 98-08901C68-C
5.10.4 Error in Reopening a Valid Socket ..................................................................................................................... 423
5.11 AUDIO ............................................................................................................................................................................ 423
5.11.1 Scenarios for Setting Up Handset Mode or Handsfree Mode............................................................................. 423
6. TOOLS
6.1 TOOLS OVERVIEW ...................................................................................................................................................... 425
6.2 PC DRIVER .................................................................................................................................................................... 425
6.2.1 Overview............................................................................................................................................................. 425
6.2.2 Fax Communication by Standard 19200 bps Modem......................................................................................... 425
6.2.3 Establishing GPRS PDP Context (Using GPRS Manager) ................................................................................ 426
A. REFERENCE TABLES
A.1 AT COMMANDS ALPHABETICAL SUMMARY ...................................................................................................... 427
A.2 CHARACTER SET TABLE CS1: (GSM -> UCS-2) ..................................................................................................... 438
A.3 CHARACTER SET TABLE CS2: (ASCII <-> UTF-8) ................................................................................................. 442
A.4 CHARACTER SET TABLE CS3: (UCS-2 <-> UTF-8)................................................................................................. 442
A.5 CHARACTER SET TABLE CS6: (UCS-2 FULL TABLE) .......................................................................................... 443
A.6 CHARACTER SET TABLE CS7: (ASCII TABLE) ...................................................................................................... 443
98-08901C68-C vii
LIST OF FIGURES
Figure 1. System Overview.......................................................................................................................................................... 7
Figure 2. Sidetone ...................................................................................................................................................................... 10
Figure 3. Echo Cancel ................................................................................................................................................................ 11
Figure 4. g20 with Multiplexer Support Capabilities................................................................................................................. 15
Figure 5. AT Commands Protocol ............................................................................................................................................. 34
Figure 6. Basic Structure of a Command Line........................................................................................................................... 35
Figure 7. Response to a Command Line .................................................................................................................................... 36
Figure 8. Flow and Structure Configuration Commands ........................................................................................................... 37
Figure 9. Antenna Diagnostics Pins Location.......................................................................................................................... 213
Figure 10. Audio Setup Workflow........................................................................................................................................... 217
Figure 11. Basic Audio Setup .................................................................................................................................................. 218
Figure 12. Advanced Audio Setup ........................................................................................................................................... 218
Figure 13. Analog/Digital Switching ....................................................................................................................................... 219
Figure 14. Audio Paths............................................................................................................................................................. 232
Figure 15. g20 Audio Gain....................................................................................................................................................... 236
Figure 16. SIM States............................................................................................................................................................... 247
Figure 17. Wakeup-In Line ...................................................................................................................................................... 269
Figure 18. Wakeup-Out Line ................................................................................................................................................... 270
Figure 19. Sleep Mode when S24 > 0 ...................................................................................................................................... 270
Figure 20. g20 Lines when S24 > 0 ......................................................................................................................................... 270
Figure 21. SIM Toolkit............................................................................................................................................................. 325
Figure 22. Communication During DTMF Command............................................................................................................. 345
Figure 23. Communication During Launch Browser Command ............................................................................................. 347
Figure 24. g20 with and without MUX .................................................................................................................................... 370
Figure 25. PREMUX Architecture........................................................................................................................................... 370
Figure 26. Current MUX Architecture..................................................................................................................................... 371
Figure 27. MUX States............................................................................................................................................................. 371
Figure 28. Two-Channel Configuration ................................................................................................................................... 377
Figure 29. Four-Channel Configuration................................................................................................................................... 378
Figure 30. Using the Additional UART ................................................................................................................................... 379
Figure 31. Phone State Transactions ........................................................................................................................................ 393
Figure 32. Detailed Phone State Transactions ......................................................................................................................... 394
Figure 33. Recommended g20 Initialization Workflow........................................................................................................... 395
Figure 34. RS232 Lines Setup.................................................................................................................................................. 396
Figure 35. Test g20 Communication........................................................................................................................................ 397
Figure 36. Basic Configuration ................................................................................................................................................ 397
Figure 37. SIM Card Status...................................................................................................................................................... 399
Figure 38. g20 Network Connection ........................................................................................................................................ 400
Figure 39. Terminal Synchronization....................................................................................................................................... 401
Figure 40. Call States ............................................................................................................................................................... 405
Figure 41. Sleep Mode when S24 > 0 ...................................................................................................................................... 414
Figure 42. Display Text............................................................................................................................................................ 415
Figure 43. Get Inkey................................................................................................................................................................. 415
Figure 44. Get Input ................................................................................................................................................................. 415
Figure 45. Play Tone ................................................................................................................................................................ 416
Figure 46. Set Up Menu ........................................................................................................................................................... 416
viii 98-08901C68-C
Figure 47. Select Item .............................................................................................................................................................. 416
Figure 48. Send SMS ............................................................................................................................................................... 417
Figure 49. Set Up Call.............................................................................................................................................................. 417
Figure 50. Call Control............................................................................................................................................................. 417
Figure 51. Send DTFM ............................................................................................................................................................ 418
Figure 52. Launch Browser ...................................................................................................................................................... 419
Figure 53. Setup Event List...................................................................................................................................................... 419
Figure 54. Handset or Handsfree Setup ................................................................................................................................... 424
98-08901C68-C ix
LIST OF TABLES
Table 1. Terms and Abbreviations .............................................................................................................................................. 2
Table 2. SMS Type Characteristics ........................................................................................................................................... 16
Table 3. AT Commands ............................................................................................................................................................ 19
Table 4. Syntax Definitions........................................................................................................................................................ 33
Table 5. Core AT Commands ................................................................................................................................................... 41
Table 6. +CGMM String Parameters ........................................................................................................................................ 46
Table 7. +CGSN, +GSN Parameters.......................................................................................................................................... 48
Table 8. +CSCS Parameter Optional Values ............................................................................................................................ 49
Table 9. Supported Information Items ...................................................................................................................................... 51
Table 10. +CNUM Parameters................................................................................................................................................... 52
Table 11. Accessory Features Supported in the g20 ................................................................................................................. 55
Table 12. +MAPV Parameters ................................................................................................................................................... 58
Table 13. D Parameters .............................................................................................................................................................. 61
Table 14. D> Commands .......................................................................................................................................................... 62
Table 15. D> Parameters............................................................................................................................................................ 62
Table 16. DL Parameters............................................................................................................................................................ 64
Table 17. H Call States .............................................................................................................................................................. 65
Table 18. + CRC Parameters ..................................................................................................................................................... 68
Table 19. +CLIP Parameters ..................................................................................................................................................... 71
Table 20. +CCWA Parameters .................................................................................................................................................. 74
Table 21. +CHLD Parameters.................................................................................................................................................... 78
Table 22. +CHLD Actions According to Call State and Operation .......................................................................................... 78
Table 23. +CCFC Parameters .................................................................................................................................................... 81
Table 24. +CLIR Parameters ..................................................................................................................................................... 84
Table 25. +CBST Parameters .................................................................................................................................................... 87
Table 26. +CSNS Parameters..................................................................................................................................................... 90
Table 27. Mapping Table ........................................................................................................................................................... 91
Table 28. Call Processing State Codes ...................................................................................................................................... 94
Table 29. +CPAS Parameters..................................................................................................................................................... 96
Table 30. +CLCC Parameters ................................................................................................................................................... 98
Table 31. +CAOC Parameters.................................................................................................................................................. 102
Table 32. +CACM Parameters ................................................................................................................................................. 105
Table 33. +CAMM Parameters .............................................................................................................................................. 107
Table 34. +CPUC Parameters .................................................................................................................................................. 109
Table 35. +CR Parameters ....................................................................................................................................................... 110
Table 36. +CSSN Parameters................................................................................................................................................... 112
Table 37. +CSSI: Notification Values ..................................................................................................................................... 112
Table 38. +CSSU: Notification Values ................................................................................................................................... 113
Table 39. +CUSD Parameters .................................................................................................................................................. 115
Table 40. CUSD Termination Cause Table Index ................................................................................................................. 116
Table 41. +COLP Parameters ................................................................................................................................................. 120
Table 42. +CPBS Parameters .................................................................................................................................................. 122
Table 43. +CPBR Parameters .................................................................................................................................................. 123
Table 44. +MPBR Parameters ................................................................................................................................................. 126
Table 45. +CPBF Parameters ................................................................................................................................................... 129
Table 46. +MPBF Parameters ................................................................................................................................................. 130
x 98-08901C68-C
Table 47. +CPBW Parameters ................................................................................................................................................ 133
Table 48. +MPBW Parameters ................................................................................................................................................ 135
Table 49. +CSVM Parameters ................................................................................................................................................. 138
Table 50. +MFS Parameters .................................................................................................................................................... 140
Table 51. +MDSI Parameters .................................................................................................................................................. 143
Table 52. +MCSN Parameters ................................................................................................................................................ 147
Table 53. +MPDPM Parameters ............................................................................................................................................. 150
Table 54. +MDBL Parameters ................................................................................................................................................. 152
Table 55. +MDBR Parameters ................................................................................................................................................ 153
Table 56. +MDBAD Parameters.............................................................................................................................................. 155
Table 57. +CCLK Parameters .................................................................................................................................................. 157
Table 58. +CSMS Parameters ................................................................................................................................................. 159
Table 59. +CPMS Parameters ................................................................................................................................................. 160
Table 60. +CMGF Parameters ................................................................................................................................................. 161
Table 61. +CSCA Input Characters and Hexadecimal Values ................................................................................................ 163
Table 62. +CSCA Parameters .................................................................................................................................................. 164
Table 63. +CNMI Parameters ................................................................................................................................................. 165
Table 64. +CMTI Parameters................................................................................................................................................... 167
Table 65. +CMT Parameters .................................................................................................................................................. 167
Table 66. +CBM Parameters .................................................................................................................................................. 168
Table 67. +CGML/+MMGL Parameters ................................................................................................................................ 170
Table 68. +CMGR Parameters ................................................................................................................................................ 172
Table 69. +MMAR Parameters ................................................................................................................................................ 173
Table 70. +CMSS Parameters ................................................................................................................................................. 174
Table 71. +CMGW Parameters................................................................................................................................................ 175
Table 72. +CMGD Parameters ................................................................................................................................................ 176
Table 73. +CGSMS Parameters ............................................................................................................................................... 178
Table 74. +CMGS Parameters ................................................................................................................................................. 179
Table 75. +CSCB Parameters................................................................................................................................................... 180
Table 76. +MCSAT Parameters ............................................................................................................................................... 182
Table 77. +MEGA Parameters ................................................................................................................................................. 183
Table 78. +CSQ Parameters ..................................................................................................................................................... 184
Table 79. +CRLP Parameters .................................................................................................................................................. 186
Table 80. +CREG Parameters ................................................................................................................................................. 187
Table 81. +CGREG Parameters .............................................................................................................................................. 189
Table 82. +COPS Parameters .................................................................................................................................................. 193
Table 83. +CPOL Parameters................................................................................................................................................... 195
Table 84. +CBC Parameters .................................................................................................................................................... 197
Table 85. +CBAUD Parameters .............................................................................................................................................. 198
Table 86. +IPR Parameters....................................................................................................................................................... 200
Table 87. +MTDTR Parameters .............................................................................................................................................. 201
Table 88. &K Parameters ........................................................................................................................................................ 203
Table 89. &C Parameters ........................................................................................................................................................ 204
Table 90. &D Parameters ......................................................................................................................................................... 206
Table 91. +MCWAKE Parameters........................................................................................................................................... 207
Table 92. +CFUN Parameters .................................................................................................................................................. 209
Table 93. +ICF Parameters....................................................................................................................................................... 211
98-08901C68-C xi
Table 94. +MPCMC Parameters .............................................................................................................................................. 212
Table 95. ATS97 Parameters ................................................................................................................................................... 214
Table 96. ATS96 and ATS94 Behavior .................................................................................................................................. 217
Table 97. +CRTT Parameters .................................................................................................................................................. 220
Table 98. S94 Parameters......................................................................................................................................................... 222
Table 99. S96 Parameters......................................................................................................................................................... 223
Table 100. +CRSL Parameters................................................................................................................................................. 224
Table 101. +CVIB Parameters ................................................................................................................................................. 226
Table 102. Interaction Between +CVIB and +CALM ............................................................................................................. 226
Table 103. +VTD Parameters................................................................................................................................................... 228
Table 104. +VTS Parameters ................................................................................................................................................... 229
Table 105. +CMUT Parameters ............................................................................................................................................... 230
Table 106. +MAPATH Parameters ......................................................................................................................................... 233
Table 107. +MAVOL Parameters ............................................................................................................................................ 237
Table 108. MAFEAT Parameters............................................................................................................................................. 239
Table 109. MAMUT Parameters.............................................................................................................................................. 240
Table 110. +CALM Parameters ............................................................................................................................................... 242
Table 111. +CLVL Parameters ................................................................................................................................................ 243
Table 112. +MMICG Parameters............................................................................................................................................. 245
Table 113. SIM Card Errors .................................................................................................................................................... 248
Table 114. +CPIN Parameters ................................................................................................................................................. 249
Table 115. +CPWD Parameters .............................................................................................................................................. 252
Table 116. +CLCK Parameters ................................................................................................................................................ 255
Table 117. Effects of Parameter Settings ................................................................................................................................ 257
Table 118. V Parameters .......................................................................................................................................................... 258
Table 119. Qn Parameters ........................................................................................................................................................ 259
Table 120. En Parameters......................................................................................................................................................... 260
Table 121. X Parameters .......................................................................................................................................................... 261
Table 122. S-registers and Values ........................................................................................................................................... 262
Table 123. S2 Parameters......................................................................................................................................................... 264
Table 124. S12 Parameters....................................................................................................................................................... 265
Table 125. &F Parameters........................................................................................................................................................ 267
Table 126. Z Parameters........................................................................................................................................................... 268
Table 127. S24 Parameters....................................................................................................................................................... 271
Table 128. S102 Parameters..................................................................................................................................................... 272
Table 129. +MSCTS Parameters.............................................................................................................................................. 274
Table 130. +CMEE Parameters ............................................................................................................................................... 275
Table 131. +CEER Parameters ................................................................................................................................................ 280
Table 132. +MHIG Parameters ............................................................................................................................................... 283
Table 133. +CKPD Parameters ............................................................................................................................................... 284
Table 134. Character Codes .................................................................................................................................................... 284
Table 135. +MKPD Parameters .............................................................................................................................................. 286
Table 136. +CMER Parameters .............................................................................................................................................. 287
Table 137. +CKEV Parameters ............................................................................................................................................... 289
Table 138. +CIEV Parameters ................................................................................................................................................ 290
Table 139. +MUPB Parameters .............................................................................................................................................. 291
Table 140. &W Parameters ..................................................................................................................................................... 293
xii 98-08901C68-C
Table 141. Profile Parameters .................................................................................................................................................. 293
Table 142. &Y Parameters ...................................................................................................................................................... 295
Table 143. ................................................................................................................................................................................ 296
Table 144. +CGCLASS Parameters......................................................................................................................................... 298
Table 145. +CGDCONT Parameters ...................................................................................................................................... 300
Table 146. +CGQMIN Parameters .......................................................................................................................................... 303
Table 147. +CGQREQ Parameters ......................................................................................................................................... 305
Table 148. +CGATT Parameters ............................................................................................................................................. 307
Table 149. D*99 Parameters .................................................................................................................................................... 308
Table 150. +GPRS Parameters ................................................................................................................................................ 310
Table 151. +CGACT Parameters ............................................................................................................................................. 312
Table 152. Ignored (Compatible Only) Commands ................................................................................................................ 312
Table 153. Fax Class 1 Command Summary .......................................................................................................................... 314
Table 154. +FCLASS Parameters ............................................................................................................................................ 316
Table 155. +FTS Parameters.................................................................................................................................................... 317
Table 156. +FRS Parameters.................................................................................................................................................... 317
Table 157. Command Modulation Select Codes...................................................................................................................... 319
Table 158. Command Modulation Select Codes ..................................................................................................................... 321
Table 159. Command Modulation Select Codes...................................................................................................................... 322
Table 160. <DCE_by_DTE> and <DTE_by_DCE> Parameters ........................................................................................... 324
Table 161. STK Mechanisms .................................................................................................................................................. 326
Table 162. +MTKR Parameters .............................................................................................................................................. 327
Table 163. Profile Structure – Byte 1 (Download) ................................................................................................................. 327
Table 164. Profile Structure – Byte 2 (Other) ......................................................................................................................... 328
Table 165. Profile Structure – Byte 3 (Proactive SIM) ........................................................................................................... 328
Table 166. Profile Structure – Byte 4 (Proactive SIM) ........................................................................................................... 329
Table 167. Profile Structure – Byte 5 (Event driven information) .......................................................................................... 330
Table 168. Profile Structure – Byte 6 (Event driven information extensions) ........................................................................ 330
Table 169. Profile Structure – Byte 7 (Multiple card proactive commands) .......................................................................... 331
Table 170. Profile Structure – Byte 8 (Proactive SIM)............................................................................................................ 331
Table 171. Profile Structure – Byte 9 (Proactive SIM) .......................................................................................................... 332
Table 172. Profile Structure – Byte 10 (Soft keys support) .................................................................................................... 332
Table 173. Profile Structure – Byte 11 (Soft keys information) ............................................................................................. 333
Table 174. Profile Structure – Byte 12 (Bearer independent protocol proactive commands – class "e") .............................. 333
Table 175. Profile Structure – Byte 13 (Bearer independent protocol supported bearers – class "e") ................................... 334
Table 176. Profile Structure – Byte 14 (Screen height) .......................................................................................................... 334
Table 177. Profile Structure – Byte 15 (Screen width) ........................................................................................................... 335
Table 178. Profile Structure – Byte 16 (Screen effects) ......................................................................................................... 335
Table 179. Profile Structure – Byte 17 (Bearer independent protocol supported transport interface – class "e") .................. 336
Table 180. Profile Structure – Byte 18 (Reserved) ................................................................................................................. 336
Table 181. Profile Structure – Byte 19 (Reserved for TIA/EIA-136 facilities) ...................................................................... 337
Table 182. +MTKE Parameters .............................................................................................................................................. 338
Table 183. +MTKP Field Descriptions ................................................................................................................................... 339
Table 184. +MTKP Parameters of MTKP Field Descriptions ................................................................................................ 340
Table 185. MTKP Set Command Parameters ......................................................................................................................... 343
Table 186. +MTKP Parameters – Response Code 26.............................................................................................................. 346
Table 187. Current Event Types .............................................................................................................................................. 347
98-08901C68-C xiii
Table 188. Set Event List Parameters ..................................................................................................................................... 348
Table 189. Sample Language Codes ...................................................................................................................................... 350
Table 190. +MTKM Parameters .............................................................................................................................................. 354
Table 191. +MTKM Unsolicited Identification Parameters ................................................................................................... 354
Table 192. +MTKC Parameters ............................................................................................................................................... 356
Table 193. +MIPCALL Parameters ........................................................................................................................................ 357
Table 194. +MIPOPEN Parameters ........................................................................................................................................ 359
Table 195. +MIPCLOSE Parameters ...................................................................................................................................... 360
Table 196. +MIPSETS Parameters ......................................................................................................................................... 362
Table 197. +MIPSEND Parameters ........................................................................................................................................ 363
Table 198. +MIPPUSH Parameters ........................................................................................................................................ 365
Table 199. +MIPFLUSH Parameters ...................................................................................................................................... 366
Table 200. +MIPRUDP Parameters ........................................................................................................................................ 367
Table 201. +MIPRTCP Parameters ......................................................................................................................................... 368
Table 202. MIPSTAT Parameters ........................................................................................................................................... 368
Table 203. MUX Services ........................................................................................................................................................ 372
Table 204. +CMUX Parameters ............................................................................................................................................. 374
Table 205. AT Commands Limitations for 4-channel Configuration ..................................................................................... 380
Table 206. Multiple Channel Definitions ................................................................................................................................ 391
Table 207. AT Commands (Alphabetical) .............................................................................................................................. 427
Table 208. GSM to UCS-2 Encoding ...................................................................................................................................... 438
Table 209. ASCII to UTF-8 Encoding .................................................................................................................................... 442
Table 210. UCS-2 to UTF-8 Encoding ................................................................................................................................... 442
Table 211. ASCII Table .......................................................................................................................................................... 443
xiv 98-08901C68-C
1. PREFACE
98-08901C68-C 1
Preface
2 98-08901C68-C
Preface
98-08901C68-C 3
Preface
4 98-08901C68-C
2. PRODUCT FEATURES
2.1.1 STK
2.1.1.1 Overview
The SIM Tool Kit (STK, also known as the SIM Application Toolkit or SAT) is a set of applications operated by the network
provider (usually the module’s SIM provider). If the STK is supported and enabled on the mobile side, specific data can be
obtained via menu browsing.
The g20 STK enables the terminal to obtain information via menus created by the provider, for example, "local news" or
"weather info". These menus are provider dependent. Enabling the STK allows the provider to perform other actions regarding
call control, SMS and so on.
The STK supports the specific mechanism(s) that SIM applications require to interact and operate with the g20. Using this
mechanism, the SIM can notify the terminal, via the g20, that a specific action is requested. A full list of supported actions is
listed in the Proactive SIM section. For more information regarding the STK mechanism, refer to the GSM 11.11 [20], GSM
11.14 ETSI standards.
Profile downloading provides a mechanism for the g20 to transmit information describing its capabilities to the SIM. During
the early, profile download phase of the protocol, the g20 negotiates and confirms its ability to support the capabilities requested
by the STK.
98-08901C68-C 5
Product Features
STK data transfer uses the short message service (SMS) as a transfer layer.
The proactive SIM mechanism enables the SIM to initiate actions to be handled by the g20. Using this service, the SIM can
inform the g20 that it has information pending for action. The SIM can issue a variety of protocol commands through this
mechanism, for example:
• Displaying text
• Sending a short message
• Setting up a voice call to a number held by the SIM
• Setting up a data call to a number whose bearer capabilities are held by the SIM
• Sending an SS control or USSD string
• Playing a tone
• Initiating a dialogue with the user (get inkey, get input)
• Providing local information from the g20 to the SIM
• Profile download
• Send DTMF
• Set up idle text mode
• Launch browser
• Set up event list
The SIM supplies a set of possible menu entries via a proactive SIM command. The menu selection mechanism is used to
transfer the SIM application menu item selected by the user to the SIM and then via SMS to the provider.
When this service is activated by the SIM, all dialed digit strings, supplementary service control strings and USSD strings are
first passed to the SIM before the g20 sets up the call, the supplementary service operation or the USSD operation. The SIM has
the ability to allow, disable or modify the call. The STK has the ability to replace a call request, a supplementary service
operation or a USSD operation with another call, for example, a call request by the g20 can be diverted to a different destination.
6 98-08901C68-C
Product Features
2.1.2.1 Overview
The network capabilities are achieved by using different layers of connections. Every layer of connections provides basic
connections to the layer above it. The higher the layer is, the more capabilities it can provide.
Internet Site
www...
World Wide
TCP/UDP IP
Web
Connection
GSM/
RS232 Gateway
Terminal
GPRS
AT Commands GPRS
PPP Connection
g20 Signaling
2.1.2.2 TCP/IP
When establishing the TCP/IP connection the g20 can only be the "initiator". The TCP/IP feature enables the g20 to be a wireless
end point for a TCP/IP socket.
The TCP protocol use the value TTL (Time to live) = 64.
Note
98-08901C68-C 7
Product Features
Note
2.1.2.3 UDP/IP
The set of AT commands created for the TCP/IP connection is used for the UDP/IP connection as well. Therefore, UDP/IP must
open a UDP stack using the MIPOPEN AT command. The connection created does not change any concept regarding the
UDP/IP known protocol (which is connectionless), this is just an easy way for the terminal to specify to the g20 which of the
four possible stacks should be used.
When establishing the UDP/IP connection, the g20 is both the "initiator" and the "listener".
8 98-08901C68-C
Product Features
4. The g20 sends and receives data to and from the targeted site as it knows the IP address and port number of the target.
5. Sending (accumulating) data is done using the +MIPSEND command.
6. Actual send is done using the +MIPPUSH command, by specifying the IP address and port number of the destination.
Every +MIPPUSH sets the destination IP address and destination port number for the current and future
transactions. These values are used for the next push if not explicitly overwritten.
Note
Note
The TCP/UDP IP feature provides the terminal with the following benefits:
• Up to four simultaneous protocol connections.
• Ability to pass data via the protocol stack using AT commands (command mode). This relieves the terminal from switching
the RS232 to "binary mode" and back to "command mode".
• Ability to use UDP and TCP simultaneously.
• No need for protocol support from the terminal - only data sending and receiving.
• Reduced memory utilization. The g20 manages the protocol stack and therefore saves terminal memory.
Figure 1, “System Overview,” on page 7 displays the system overview which comprises the following links and layers:
Physical layer links:
• The terminal is connected to the g20 using a physical RS-232 connection.
• The g20 is connected to the GGSN using a GPRS link.
• The GGSN is connected to the Internet via some sort of physical connection (usually telephone or cable).
98-08901C68-C 9
Product Features
Note
2.1.3 Audio
2.1.3.1 Overview
The audio (digital and analog) feature in the g20 module involves three main issues: path (routes the current input and output
devices), gain (volume management) and algorithm. For more information, refer to “Audio” on page 216.
2.1.3.2.1 Sidetone
Sidetone reduces the microphone audio input that is routed to the selected speaker so that the person speaking can hear himself
or herself talking. This creates a slight echo because the speaker sound then gets picked up again by the microphone and is again
routed to the speaker, and so on. Echo suppress is designed to take care of this echo.
Spkr
2
Mic
1
Figure 2. Sidetone
10 98-08901C68-C
Product Features
Echo Cancel suppresses a large amount of the output sound picked up by the input device (cancels all echoes).
Remote g20
Spkr 5 2 Spkr
Mic 1 3 Mic
Echo
Cancel
Problem Solution
1 2 3 4 5 4 ( 3 1 (
Loop
Noise suppression improves audio quality in all modes by suppressing environment noise from being picked up by the input
device.
The path features provide full control over the navigation of the audio in the product.
The gain features provide full control over the volume levels of the different output accessories and tones.
The algorithm provides full control over activation/deactivation of audio quality features such as echo canceling and noise
suppression.
The user can access these features by means of AT commands. These are described later in this document.
2.1.4.1 Overview
The g20 enables the user to define two profiles. You can switch between profiles and display the currently used profile.
98-08901C68-C 11
Product Features
2.1.4.2 Benefits
When the g20 is used, the application/user can switch between the two predefined profiles. Setup time is reduced by the use of
these profiles.
2.1.5.1 Overview
A USB session output indication line indicates whether the g20 is in a GPRS or CSD data session while communicating with
the terminal using USB (instead of RS232). The g20 is in a data session if it has an active GPRS context created in any
appropriate way (such as, +CGACT, ATD*99#, or +MIPCALL), or when in an MO or MT CSD data session.
2.1.5.2 Benefits
This feature enables you to receive information indicating that a data session was terminated while using the USB as a
communication channel.
This feature is active by default. However, it can be eliminated by changing the FLEX. The USB session output indication line
is active on PIN 32 of the 70-pins connector.
When this feature is active, the use of the Evaluation Board keypad is blocked.
Note
12 98-08901C68-C
Product Features
2.2.1 Overview
The GPRS allows the service subscriber to send and receive data in an end-to-end packet-transfer mode, without utilizing
network resources in circuit-switched mode.
GPRS enables the cost-effective and efficient use of network resources for packet mode data applications:
• Always connected.
• No setup time before data transmission.
• Cost change based on current data communication (not time based).
The g20 is attached to both GPRS and other GSM services, but can only operate one set of services at a time (GPRS or CSD).
The g20 can activate a GPRS context and at the same time be alerted for an incoming CSD call.
This functionality is available on the g20 single serial line by either of two procedure options:
Option 1:
1. While in GPRS, listen to the RI signal (RS232) for an incoming CST call ring.
2. Upon being interrupted by the RI signal, drop the DTR line to switch to command mode (depending on the previous DTR
configuration: AT&D).
3. Answer the call (suspending the GPRS session).
4. At the end of the call, pull the DTR to resume the GPRS session.
Option 2:
1. Use the MUX protocol for virtual channels support, with a unique channel for the GPRS session (Data) and a unique chan-
nel for answering the voice call (command)
2.3.1 Overview
GSM CSD bearer service, the most widely used data service, provides both a transparent and non-transparent (error correction
and flow control) data rate of 9.6 kbit/s.
Data transfer over Circuit Switched Data (CSD) is possible. Once the connection is established, data can be transferred to and
from the remote side.
The user should take the CSD call setup time into account.
Network operators charge the user for the call time regardless of data usage.
98-08901C68-C 13
Product Features
CSD operation enables the terminal to perform a data transfer over a circuit switched link.
It enables the user to:
• Connect to a remote modem without any Internet network involvement.
• Own a real IP address and enable its access by connecting to an external ISP.
GSM network operators typically support the non-transparent CSD bearer service through a modem interworking function. This
means that a g20 initiates a data call and the network routes the call to the modem interworking function, which is located at the
Mobile Switching Centre (MSC) of the GSM network. The modem interworking function then dials the number supplied by the
mobile station.
This is different from voice calls, where the GSM network itself routes the call, often to another mobile station on the same
network. The GSM network does not route data calls - it dials the requested number on behalf of the mobile station and leaves
the routing to the external wireline telephone network. The main reason for this is that the GSM network has information about
what the user wants to do with the data call. For example, the user may be contacting his or her Internet Service Provider (ISP)
to send email or dialing the corporate Intranet to set up a virtual private network (VPN) connection to retrieve confidential
customer information from a company database.
2.4.1 Overview
The g20 is supplied with an internal GSM 7.10 protocol stack, also referred to as a multiplexer or MUX.
The g20 with multiplexer support utility provides the following capabilities:
• Provides the terminal with up to five virtual channels on one physical RS-232 connection.
• Provides simultaneous data (CSD/GPRS) and command (AT command set) services. In this way, many applications can use
a single RS232 line via virtual channels. This enables a user to make network and phone service inquiries and maintain data
communication at the same time.
14 98-08901C68-C
Product Features
Channel 1
(virtual com 3)
g20
RS232
Hyper Terminal Application
Channel 2
(virtual com 4)
The g20 with the MUX feature ENABLES multiple channel operation and simultaneous data and control operation. For
example, it allows a user to be connected to an Internet website (GPRS session connected), receive a file via CSD Call, and
query the g20 phone book all at the same time.
The following actions are enabled during a data session:
• Incoming call alert string RING (while g20 is in GPRS session)
• Answering to incoming call via the ATA command (while g20 is in GPRS session)
• Receive Incoming SMS indication
• Inquiry GSM coverage indication
• Setup a voice call (while g20 is in GPRS session)
• Send & Receive SMS
• Read/write to/from Phone Book
• Local modem operation
• Network interrogation and settings
98-08901C68-C 15
Product Features
The MUX feature adds five virtual channels on a single physical RS232 line:
• Channel #0 - DLC0 for MUX Control
• Channels #1 through #4 are used for Data/Fax, GPRS, Voice call and control, and Logger/External modem applications
2.5.1 Overview
The SMS feature provides means for SMS messages handling and the reporting of SMS reception events.
g20 SMS implementation is based on the GSM 07.05 specification.
The SMS, as defined within the GSM 900/1800/1900 digital mobile phone standard, has several unique features:
• A single short message can be up to 160 characters of ASCII text in length (7-bit coded). Message text can comprise words,
numbers or an alphanumeric combination.
• Short messages can be written and displayed in various coding schemes, including ASCII and UCS2.
• Reception of an incoming message can invoke an indication to the terminal. This feature is configurable using the command
AT+CNMI. Short messages received during data calls are not indicated.
• Short messages can be sent and received simultaneously with GSM voice, data and fax calls.
• Cell broadcast messages can also be selected and received on the g20. The g20 enables registration to specific broadcast
channels.
The g20 memory for incoming short messages is SIM-dependent. A new incoming message is saved in the first free memory
location, from index 1, according to the SIM card.
The g20 memory can contain up to 73 outgoing and CB messages. A new outgoing message is saved in the next free memory
location, from index 101 up to index 352.
Incoming 1 SIM-dependent
messages
2
...
30
...
100
16 98-08901C68-C
Product Features
...
352
2.6 FAX
2.6.1 Overview
A Service Class 1 facsimile g20 provides a basic level of services necessary to support Group 3 facsimile operation. This
requires support from the facsimile terminal to implement the recommended T.30 procedures for document facsimile
transmission and recommended T.4 for representing facsimile images.
Service Class 1 includes the following services, as required or optional in Group 3 facsimile:
• Connection
• Waiting and silence detection
• Data transmission and reception
• HDLC data framing, transparency and error detection
• Message generation
For the full content of a specific conversion table, refer to Appendix A, Character Set Tables.
The ASCII character set is a standard seven-bit code that was proposed by ANSI in 1963, and finalized in 1968. ASCII was
established to achieve compatibility between various types of data processing equipment.
98-08901C68-C 17
Product Features
In g20, the GSM character set is defined as octant stream. This means that text is displayed not as GSM characters but in the
hex values of these characters.
UCS2 is the first officially standardized coded character set, eventually to include the characters of all the written languages in
the world, as well as all mathematical and other symbols.
Unicode can be characterized as the (restricted) 2-octet form of UCS2 on (the most general) implementation level 3, with the
addition of a more precise specification of the bi-directional behavior of characters, as used in the Arabic and Hebrew scripts.
The 65,536 positions in the 2-octet form of UCS2 are divided into 256 rows with 256 cells in each. The first octet of a character
representation denotes the row number, the second the cell number. The first row (row 0) contains exactly the same characters
as ISO/IEC 8859-1. The first 128 characters are thus the ASCII characters. The octet representing an ISO/IEC 8859-1 character
is easily transformed to the representation in UCS2 by placing a 0 octet in front of it. UCS2 includes the same control characters
as ISO/IEC 8859 (also in row 0).
UTF-8 provides compact, efficient Unicode encoding. The encoding distributes a Unicode code value's bit pattern across one,
two, three, or even four bytes. This encoding is a multi-byte encoding.
UTF-8 encodes ASCII in a single byte, meaning that languages using Latin-based scripts can be represented with only 1.1 bytes
per character on average.
UTF-8 is useful for legacy systems that want Unicode support because developers do not have to drastically modify text
processing code. Code that assumes single-byte code units typically does not fail completely when provided UTF-8 text instead
of ASCII or even Latin-1.
Unlike some legacy encoding, UTF-8 is easy to parse. So-called lead and trail bytes are easily distinguished. Moving forwards
or backwards in a text string is easier in UTF-8 than in many other multi-byte encoding.
The codes in the first half of the first row in Character Set Table CS2 (UTF-8 <-> ASCII) are replaced in this transformation
format by their ASCII codes, which are octets in the range between 00h and 7F. The other UCS2 codes are transformed to
between two and six octets in the range between 80h and FF. Text containing only characters in Character Set Table CS3
(UTF-8 <-> UCS-2) is transformed to the same octet sequence, irrespective of whether it was coded with UCS-2.
ISO-8859-1 is an 8 bit character set - a major improvement over the plain 7 bit US-ASCII.
Characters 0 to 127 are always identical with US-ASCII and the positions 128 to 159 hold some less used control characters.
Positions 160 to 255 hold language-specific characters.
ISO-8859-1 covers most West European languages, such as French (fr), Spanish (es), Catalan (ca), Basque (eu), Portuguese (pt),
Italian (it), Albanian (sq), Rhaeto-Romanic (rm), Dutch (nl), German (de), Danish (da), Swedish (sv), Norwegian (no), Finnish
(fi), Faroese (fo), Icelandic (is), Irish (ga), Scottish (gd) and English (en). Afrikaans (af) and Swahili (sw) are also included,
extending coverage to much of Africa.
18 98-08901C68-C
Product Features
Table 3. AT Commands
Modem ID
+CIMI This command displays the International Mobile Subscriber Identity number. 50
+CNUM This command displays up to five strings of text information that identify the g20. 51
$ This command displays a list of all the AT commands supported by the g20. 53
CLAC This command displays a list of all the AT commands supported by the g20. 53
Capability Reporting
+MAID This command displays the AT Feature Review that is supported in the g20. 55
+MAPV This command displays the version of the user protocol that is supported by the g20. 57
98-08901C68-C 19
Product Features
Call Control
D This command places a voice call on the current network, when issued from an 60
accessory device.
D> This command places a voice/fax/data call on the current network by dialing directly 61
from the g20 phone book.
A This command answers an incoming call, placing the g20 into the appropriate mode, 66
as indicated by the RING message.
+CRC This command controls whether to present the extended format of the incoming call 67
indication.
RING This unsolicited event is received when an incoming call (voice, data or fax) is 67
indicated by the cellular network.
+CLIP This command controls the Calling Line Identity (CLI) presentation to the terminal 70
when there is an incoming call.
+CCWA This command controls the Call Waiting supplementary service, including settings 72
and querying of the network by the g20.
+CHLD This command controls the Call Hold and Multiparty Conversation supplementary 77
services.
+CLIR This command enables/disables the sending of caller ID information to the called 83
party, for an outgoing call.
+CBST This command handles the selection of the bearer service and the connection 86
element to be used when data calls are originated.
O This command returns a phone to the Online Data mode and issues a CONNECT or 88
CONNECT <text> result code.
+CHUP This command causes the TA to hang up the current GSM call of the g20. 89
20 98-08901C68-C
Product Features
+CSNS This command handles the selection of the bearer or teleservice to be used when a 89
mobile terminated single numbering scheme call is established.
+MDC This command enables you to select the desired messages to be displayed upon 92
connection of a voice call with a remote party.
+CTFR1 This command terminates an incoming call and diverts the caller to the number 93
previously defined in CCFC, or to a voice mail if one exists for the subscriber.
+CPAS This command displays the current activity status of the g20, for example, call in 96
progress, or ringing.
+CLCC This command displays a list of all current g20 calls and their statuses, and also 97
enables/disables the unsolicited indication of the call list.
+CAOC This command displays information about the cost of calls. 101
+CACM This command resets the Advice of Charge accumulated call meter value in the SIM 104
file, EFACM.
+CAMM This command sets the Advice of Charge accumulated call meter maximum value in 105
the SIM file, EFACMmax.
+CPUC This command sets the parameters of the Advice of Charge-related price per unit 108
and currency table found in the SIM file, EFPUCT.
+CR This command controls whether or not the extended format of an outgoing call is 110
displayed or not.
Supplementary Services
+CSSN This command handles the enabling and disabling of supplementary service-related, 111
network-initiated, notifications.
+CUSD This command allows control of Unstructured Supplementary Service Data (USSD), 114
according to GSM 02.90.
+COLP This command refers to the GSM supplementary service COLP, Connected Line 119
Identification Presentation, which enables a calling subscriber to get the connected
line identity (COL) of the called party after setting up a mobile-originated call.
98-08901C68-C 21
Product Features
+CPBS This command handles the selection of the memory to be used for reading and 121
writing entries in g20s that contain more than one phone book memory.
+CPBR This command recalls phone book entries from a specific entry number, or from a 123
range of entries.
+MPBR This command recalls phone book entries from a specific entry number, or from a 125
range of entries.
+MDSI This command enables unsolicited reporting of indications of SIM deactivation and 142
invalidation.
+MFS This command is used to determine how long the g20 waits before attempting to 139
re-register after a registration attempt has failed and the g20 is not registered.
+CPBF This command searches the currently active phone book for a particular entry, by 128
name.
+MPBF This command searches the currently active phone book for a particular entry, by 129
name, and returns fields that are unique to Motorola phones.
+CPBW This command stores a new entry in the phone book, or deletes an existing entry 132
from the phone book.
+MPBW This command stores a new entry in the phone book, or deletes an existing entry 134
from the phone book.
+CSVM This command handles the selection of the number to the voice mail server. 137
+MPDPM This command returns the collective percentage of memory used by the phonebook 150
and datebook in their shared dynamic memory storage.
+MDBR This command reads entries stored in the date book. 153
+MDBAD This command sets/reads the auto-delete user preference setting in the date book 154
database.
+CCLK This command reads/sets the g20's current date and time settings. 156
22 98-08901C68-C
Product Features
SMS
SMS Commands
+CSMS This command handles the selection of the SMS message service type. 158
+CPMS This command handles the selection of the preferred storage area for messages. 160
+CSCA This command handles the selection of the SCA and the TOSCA. 162
+CNMI This command sends an unsolicited indication when a new SMS message is 164
received by the g20.
+CMTI This unsolicited message, including the SMS message index, is sent upon the arrival 167
of an SMS message.
+CMGL This command displays a list of SMS messages stored in the g20 memory. 169
+MMGL This command displays a list of SMS messages stored in the g20 memory. 169
+CMGR This command reads selected SMS messages from the g20 memory. 171
+MMGR This command reads selected SMS messages from the g20 memory. 171
+MMAR This command changes the status of an SMS message in the g20 memory from 172
"REC UNREAD" to "REC READ".
+CMSS This command selects and sends pre-stored messages from the message storage. 173
+CMGW This command writes and saves messages in the g20 memory. 174
+CMGD This command deletes messages from the g20 memory. 176
+CGSMS This command handles the selection of the service or service preference used by 177
the g20 to send mobile-originated SMS messages.
+CMGS This command sends an SM from the g20 to the network. 178
+CSCB This command handles the selection of cell broadcast message types and data 179
coding schemes received by the g20.
+CMT This unsolicited message forwards the SMS upon its arrival. 166
+CBM This unsolicited message forwards the SMS upon its arrival. 166
98-08901C68-C 23
Product Features
+MCSAT This command enables/disables/exercises SMS alert tone for an arriving SMS. 181
Network
Network Commands
+CSQ This command displays the signal strength received by the g20. 184
+CRLP This command displays the Radio Link Protocol parameters. 185
+CREG This command enables/disables the network status registration unsolicited result 187
code.
+CGREG This command enables/disables the GPRS network status registration unsolicited 189
result code.
+COPS This command enables accessing the network registration information, as well as 191
select and register the GSM network operator.
+CPOL This command is used to edit the list of preferred operators located in the SIM card. 194
Hardware Information
+IPR This command is responsible for setting and saving the request baud rate. 199
+GCAP This command displays the overall capabilities of the g20. 200
+CBAND This command is supported for backward compatibility only, and has no effect. 266
+MTDTR This command checks and displays the physical current status of the DTR pin of the 201
RS232.
+MTCTS This command sets the CTS pin of the RS232 to not active (high), waits one second 202
and then sets the CTS to active (low).
&C This command determines how the state of the DCD line relates to the detection of 203
the received line signal from the distant end.
24 98-08901C68-C
Product Features
&D This command determines how the g20 responds when the DTR (Data Terminal 205
Ready) status is changed from ON to OFF during the online data state.
+MCWAKE This command displays reports on the status of the GPRS coverage. 206
+CFUN This command shuts down the phone functionality of smart phones and PDAs with 208
phone capabilities.
+ICF This command determines the local serial port start/stop (asynchronous) character 210
framing used by the DCE when accepting DTE commands and transmitting
information text and result codes.
+MPCMC This command defines whether the PCM clock runs continuously or not. 211
ATS97 This command indicates whether the antenna is connected and whether the 213
hardware supports this feature.
+MRST This command enables customer software to perform a hard reset to the g20 unit. 215
Audio
+CRTT This command plays one cycle of a ring tone, stops the cycle in the middle, and sets 219
the ring tone to be used.
S94 This S-parameter represents the Boolean status, On/Off, of the sidetone feature. 159
S96 This S-parameter represents the Boolean status, On/Off, of the echo cancelling 160
feature in the handsfree.
+CRSL This command handles the selection of the incoming call ringer and alert tone (SMS) 223
sound level on the alert speaker of the g20.
+CVIB This command handles the enabling and disabling of the vibrator alert feature of the 225
g20 during a mobile-terminated incoming call.
+VTS This command transmits a string of DTMF tones when a voice call is active. 228
+CMUT This command mutes/unmutes the currently active microphone path by overriding 230
the current mute state.
+MAPATH This command sets/requests the active input accessory, and the output accessory 231
for each feature.
+MADIGITAL This command switches between analog and digital audio modes. 234
98-08901C68-C 25
Product Features
+MAVOL This command determines a volume setting for a particular feature in a particular 235
accessory.
+MAFEAT This command controls the various algorithm features, such as sidetone, echo 238
cancel and noise suppress.
+MAMUT This command controls the muting/unmuting of all input paths (MIC, HDST_MIC, 239
DIGITAL_RX).
+CALM This command handles the selection of the g20’s alert sound mode. 241
+CLVL This command sets the volume of the internal loudspeaker (which also affects the 243
key feedback tone) of the g20.
+MMICG This command handles the selection of microphone gain values. 244
Access
A/ This command repeats the last command entered on the terminal. 246
AT This command checks the AT communication and only returns OK. 246
+CPIN This command is only relevant for phones that use SIM cards. It unlocks the SIM 247
card when the proper SIM PIN is provided, and unblocks the SIM card when the
proper SIM PUK is provided.
+CPWD This command sets a new password for the facility lock. 250
+CLCK This command locks, unlocks or interrogates a g20 or a network facility <fac>. 253
V This command determines the response format of the data adapter and the contents 257
of the header and trailer transmitted with the result codes and information
responses.
E This command defines whether the g20 echoes the characters received from the 260
user, (whether input characters are echoed to output).
X This command defines the data adaptor response set, and the CONNECT result 260
code format.
Sn This command reads/writes values of the S-registers, and includes registers 1-49, 262
94, 96 (Audio) and 102 (Sleep mode).
26 98-08901C68-C
Product Features
\S This command displays the status of selected commands and S-registers. 265
\G This command sets the use of the software flow control. 265
? This command displays the most recently updated value stored in the S-register. 266
&F This command restores the factory default configuration profile. 266
S24 This S-parameter activates/disables the Sleep mode. If the parameter value is 271
greater than 0, it represent the number of seconds till the g20 enters sleep mode.
S102 This S-register sets the value of the delay before sending the data to the terminal. 272
+MSCTS This command defines the behavior of the CTS line when the g20 is in Sleep mode. 273
+CMEE This command enables/disables the use of result code +CME ERROR: <err> as an 274
indication of an error relating to the functionality of the g20.
+CEER This command returns an extended error report containing one or more lines of 279
information text, determined by the manufacturer, providing the reasons for the call-
clearing errors.
User Interface
+MHIG This command enables an intelligent car kit to indicate the ignition state of the 283
vehicle to the g20, which enables the g20 to turn on and off with the ignition, or to
enter a power saving state when the ignition is turned off.
+CRSM This command enables you to read UNSU, GID1, GID2 and ICC ID data from the 295
SIM card
&V This command displays the current active configuration and stored user profiles. 291
98-08901C68-C 27
Product Features
+CKPD This command emulates key presses, or virtual keycodes, as if entered from the g20 283
keypad or from a remote handset.
+MKPD This command enables accessories to control the press and release of key presses. 286
+CMER This command enables an external accessory to receive key press information from 287
the g20’s internal keypad.
+CKEV This command causes the g20 to send an unsolicited message when a key is 288
pressed on the g20 keypad, and local key press echo is enabled.
+MUPB This command causes the g20 to send an event when a phone book entry is 291
accessed or modified by the user.
+CDEV An unsolicited indication regarding display changes that is sent to the DTE when the 289
<disp> parameter of the +CMER command is set to 1.
+CIEV An unsolicited indication regarding various phone indications that is sent to the DTE 290
when the <ind> parameter of the +CMER command is set to 1.
GPRS
GPRS Commands
+CGCLASS This command sets the GPRS mobile station class. 297
+CGDCONT This command specifies the PDP (Packet Data Protocol) context. 299
+CGQMIN This command sets the minimum acceptable quality of service profile. 302
+CGQREQ This command displays the requested quality of service profile. 304
+CGATT This command attaches the g20 to the GPRS network. 306
D*99 This command enables the MT to perform the actions necessary for establishing 307
communication between the terminal and the external PDN.
NOP Compatible
%C This command is supported for backward compatibility only, and has no effect. 312
28 98-08901C68-C
Product Features
&G This command is supported for backward compatibility only, and has no effect. 312
&J This command is supported for backward compatibility only, and has no effect. 312
&L This command is supported for backward compatibility only, and has no effect. 312
&M This command is supported for backward compatibility only, and has no effect. 312
&P This command is supported for backward compatibility only, and has no effect. 312
&Q This command is supported for backward compatibility only, and has no effect. 312
&R This command is supported for backward compatibility only, and has no effect. 312
&S This command is supported for backward compatibility only, and has no effect. 312
&T This command is supported for backward compatibility only, and has no effect. 312
\B This command is supported for backward compatibility only, and has no effect. 312
B This command is supported for backward compatibility only, and has no effect. 312
\A This command is supported for backward compatibility only, and has no effect. 312
\K This command is supported for backward compatibility only, and has no effect. 312
F This command is supported for backward compatibility only, and has no effect. 312
L This command is supported for backward compatibility only, and has no effect. 312
M This command is supported for backward compatibility only, and has no effect. 312
N This command is supported for backward compatibility only, and has no effect. 312
P This command is supported for backward compatibility only, and has no effect. 312
T This command is supported for backward compatibility only, and has no effect. 312
Y This command is supported for backward compatibility only, and has no effect. 312
+FAR This command is supported for backward compatibility only, and has no effect. 314
+FCL This command is supported for backward compatibility only, and has no effect. 314
+FDD This command is supported for backward compatibility only, and has no effect. 314
+FIT This command is supported for backward compatibility only, and has no effect. 314
98-08901C68-C 29
Product Features
Fax Class 1
Fax Commands
+FCLASS This command places the terminal in particular mode of operation (data, fax, voice). 315
+FTS This command causes the g20 to stop any transmission. 316
+FRS This command causes the g20 to listen and to report back an OK result code when 317
the line has been silent for the specified amount of time.
+FRM This command causes the g20 to enter the receive mode. 320
+FTH This command causes the g20 to transmit data framed in the HDLC protocol. 321
+FRH This command causes the g20 to receive HDLC framed data and deliver the next 322
received frame to the terminal.
+IFC This command controls the operation of the local flow control between the terminal 323
and the g20.
Features
STK Commands
+MTKR This command displays the profile that is downloaded from the g20 to the SIM during 326
the SIM initialization process
+MTKP This is both a command and an unsolicited event. The command responds to an 338
unsolicited event.
+MTKM This is both a command and an unsolicited event. The command selects items from 353
the menu.
+MTKC This unsolicited event notifies the terminal when supplementary services, SMS 356
Control or Call Control are modified.
TCP/IP Commands
+MIPCALL This command creates a wireless PPP connection with the GGSN, and returns a 356
valid dynamic IP for the g20.
+MIPOPEN This command causes the g20 module to initialize a new socket and open a 358
connection with a remote side.
30 98-08901C68-C
Product Features
+MIPCLOSE This command causes the g20 module to free the socket accumulating buffer and 360
disconnect the g20 from a remote side.
+MIPSETS This command causes the g20 to set a watermark in the accumulating buffer. When 361
the watermark is reached, data is pushed from the accumulating buffer into the
protocol stack.
+MIPSEND This command causes the g20 to transmit the data that the terminal provides, using 363
an existing protocol stack.
+MIPPUSH This command causes the g20 module to push the data accumulated in its 364
accumulating buffers into the protocol stack.
+MIPFLUSH This command causes the g20 module to flush (delete) data accumulated in its 366
accumulating buffers.
+MIPRUDP This unsolicited event is sent to the terminal when data is received from the UDP 367
protocol stack.
+MIPRTCP This unsolicited event is sent to the terminal when data is received from the TCP 367
protocol stack.
+MIPSTAT This unsolicited event is sent to the terminal indicating a change in link status. 368
+MIPXOFF This unsolicited event is sent to the terminal to stop sending data. 368
+MIPXON This unsolicited event is sent to the terminal when the g20 has free memory in the 369
accumulating buffer.
98-08901C68-C 31
Product Features
32 98-08901C68-C
3. INTRODUCTION TO
AT COMMANDS
Syntax Definition
<...> Name enclosed in angle brackets is a syntax element. The brackets themselves do not appear in the
command line.
[...] Optional sub-parameter of a command or an optional part of terminal information response, enclosed in
square brackets. The brackets themselves do not appear in the command line. When the sub-parameter is
not provided in the parameter type commands, the new value equals its previous value. In action type
commands, the action should be performed on the basis of the recommended default setting of the sub-
parameter.
98-08901C68-C 33
Introduction to AT Commands
Response N
Results Code
Indications M
N = 0,1,...,K
M = 0,1,...,L
34 98-08901C68-C
Introduction to AT Commands
An AT command line may contain one or more commands. Delimiters are used to separate the commands from each other,
according to the following structure:
The following rules must be observed when issuing a command line to the modem:
• Every command line must begin with the letters AT.
• Several commands can be concatenated as one line, as long as the total line does not exceed 140 characters with semicolon
characters.
• Characters:
Spaces are ignored. You can leave spaces between each command and between characters of a command. You can also
include punctuation in telephone numbers, and type commands in either UPPERCASE or lowercase. For example, the
following commands are identical:
ATDT8005551234 < Enter > or
atdt (800) 555-1234 < Enter >
Backspace <S5> character is allowed.
98-08901C68-C 35
Introduction to AT Commands
• To cancel a dialing command in progress, send any ASCII character to the modem.
• To execute the command line, send the <CR> ASCII character.
When a command is issued, the g20 responds with a message, called a "Result Code", which tells the terminal the result of the
command that was requested. Result codes can indicate, for example, the execution status of the command or the remote modem
connection status.
Result codes can be represented either as numerical codes or as verbose responses. By default, the g20 responds with verbose
response codes.
The result code has the following structure:.
where:
The results code prefix is <CR><LF>.
The results code suffix is <CR><LF>.
where:
The separator is ":".
The following is an example of Response and Results code:
<CR><LF>+CMD2: 3,0,15,"GSM"<CR><LF>
<CR><LF>+CMD2: (0-3),(0,1),(0-12,15),("GSM","IRA")<CR><LF>
<CR><LF>OK<CR><LF>
If verbose responses are enabled (using the command V1) and all the commands in a command line have been performed
successfully, the result code <CR><LF>OK<CR><LF> is sent from the g20 to the terminal. If numeric responses are enabled
(using the command V0), the result code 0<CR> is sent instead.
36 98-08901C68-C
Introduction to AT Commands
If verbose responses are enabled (using the command V1) and sub-parameter values of a command are not accepted by the g20
(or if the command itself is invalid or cannot be performed for any reason), the result code <CR><LF>ERROR<CR><LF> is
sent to the terminal and no subsequent commands in the command line are processed. If the numeric responses are enabled
(using the command V0), the result code 4<CR> is sent instead. The ERROR (or 4) response may be replaced by +CME
ERROR: <err> when the command was not processed due to an error related to g20 operation.
The figure below shows the flow and structure configuration commands:
ATS3=x
A T C M D 2 = 1 2 <CR>
ATEx A T C M D 2 = 1 2 <CR>
ATQx <CR> <LF> O K <CR> <LF>
A T T C M D 1 <CR>
A T C M D 1 <CR>
<CR> <LF> O K <CR> <LF>
98-08901C68-C 37
Introduction to AT Commands
The format of Basic Syntax commands (except for the D and S commands) is: <command>[<number>]
where:
<command> is either a single character, or the "&" character (IA5 2/6) followed by a single character.
Characters used in <command> are taken from the set of alphabetic characters.
<number> may be a string of one or more characters from "0" through "9" representing a decimal integer value.
3.5.2 S-parameters
Commands that begin with the letter S constitute a special group of parameters known as "S-parameters". These differ from
other commands in important respects:
• The number following the S indicates the "parameter number" being referenced. If the number is not recognized as a valid
parameter number, an ERROR result code is issued.
• Immediately following this number, either a "?" or "=" character (IA5 3/15 or 3/13, respectively) appears:
"?" is used to read the current value of the indicated S-parameter.
"=" is used to set the S-parameter to a new value. "<parameter_number>"
"<parameter_number" =[<value>]
If the "=" is used, the new value to be stored in the S-parameter is specified in decimal form following the "=".
Both actions and parameters have names, which are used in the related commands. Names always begin with the character "+"
(IA5 2/11). Following the "+", from one to sixteen (16) additional characters appear in the command name.
All (GSM) cellular commands have the prefix "+C".
All Fax commands have the prefix "+F".
All General modem commands have the prefix "+G".
Most Motorola propriety commands have the prefix "+M".
Numeric constants are expressed in decimal, hexadecimal, or binary form. In the g20, the definition of each command specifies
which form is used for values associated with that command.
38 98-08901C68-C
Introduction to AT Commands
String constants consist of a sequence of characters, bounded at the beginning and end by the double-quote character (").
The terminal may store a value or values in a parameter by using the SET command.
The parameter definition indicates, for each value, whether the specification of that value is mandatory or optional. For optional
values, the definition indicates the assumed (default) value if none is specified. The assumed value may be either a previous
value (that is, the value of an omitted sub-parameter retains its previous value), or a fixed value (for example, the value of an
omitted sub-parameter is assumed to be zero). Generally, the default value for numeric parameters is 0, and the default value
for string parameters is "" (empty string).
The following syntax are used for:
• Actions that have no sub-parameters: +<name>
• Parameters that accept a single value: +<name>=<value>
• Parameters that accept more than one value: +<name>=<compound_value>
The terminal can determine the current value or values stored in a parameter by using the following syntax: +<name>?
The terminal can test whether a parameter is implemented in the g20, and determine the supported values, by using the following
syntax: +<name>=?
98-08901C68-C 39
Introduction to AT Commands
3.8 VALUES
When the action accepts a single numeric sub-parameter, or the parameter accepts only one numeric value, the set of supported
values may be presented in the information text as an ordered list of values.
The following are some examples of value range indications:
When the action accepts more than one sub-parameter, or the parameter accepts more than one value, the set of supported values
may be presented as a list of the parenthetically enclosed value range strings (described above), separated by commas.
For example, the information text in response to testing an action that accepts three sub-parameters, and supports various ranges
for each of them, could appear as follows: (0),(1-3),(0,4-6,9,11-12)
40 98-08901C68-C
Introduction to AT Commands
AT
Description Page
Command
$ This command displays a list of all the AT commands supported by the g20. 53
%C This command is supported for backward compatibility only, and has no effect. 312
&C This command determines how the state of the DCD line relates to the detection of 203
the received line signal from the distant end.
&D This command determines how the g20 responds when the DTR (Data Terminal 205
Ready) status is changed from ON to OFF during the online data state.
&F This command restores the factory default configuration profile. 266
&G This command is supported for backward compatibility only, and has no effect. 312
&L This command is supported for backward compatibility only, and has no effect. 312
&M This command is supported for backward compatibility only, and has no effect. 312
&P This command is supported for backward compatibility only, and has no effect. 312
&R This command is supported for backward compatibility only, and has no effect. 312
&S This command is supported for backward compatibility only, and has no effect. 312
&T This command is supported for backward compatibility only, and has no effect. 312
? This command displays the most recently updated value stored in the S-register. 266
\A This command is supported for backward compatibility only, and has no effect. 312
\B This command is supported for backward compatibility only, and has no effect. 312
\G This command sets the use of the software flow control. 265
98-08901C68-C 41
Introduction to AT Commands
AT
Description Page
Command
\K This command is supported for backward compatibility only, and has no effect. 312
\S This command displays the status of selected commands and S-registers. 265
+CEER This command returns an extended error report containing one or more lines of 279
information text, determined by the manufacturer, providing the reasons for the call-
clearing errors.
+CKPD This command enables the emulated pressing of keys, or virtual keycodes, as if 283
entered from the g20 keypad or from a remote handset.
+CLAC This command displays a list of all the AT commands supported by the g20. 53
+CLVL This command sets the volume of the internal loudspeaker of the g20. 243
+CMEE This command enables/disables the use of result code +CME ERROR: <err> as an 274
indication of an error relating to the functionality of the g20.
+CMER This command enables an external accessory to receive key press information from 287
the g20’s internal keypad.
+CPIN This command is only relevant for phones that use SIM cards. It unlocks the SIM 247
card when the proper SIM PIN is provided, and unblocks the SIM card when the
proper SIM PUK is provided.
+CRC This command controls whether to present the extended format of the incoming call 67
indication.
+CSQ This command returns the signal strength received by the g20. 184
+GCAP This command requests the overall capabilities of the g20. 200
+GMI This command requests manufacturer identification. The command is not supported 45
when the SIM is missing.
42 98-08901C68-C
Introduction to AT Commands
AT
Description Page
Command
A This command answers an incoming call, placing the g20 into the appropriate mode, 66
as indicated by the RING message.
B This command is supported for backward compatibility only, and has no effect. 312
D This command places a voice call on the current network, when issued from an 60
accessory device.
E This command defines whether the g20 echoes the characters received from the 260
user, (whether input characters are echoed to output).
F This command is supported for backward compatibility only, and has no effect. 312
L This command is supported for backward compatibility only, and has no effect. 312
M This command is supported for backward compatibility only, and has no effect. 312
N This command is supported for backward compatibility only, and has no effect. 312
O This command returns a phone to the Online Data mode and issues a CONNECT or 88
CONNECT <text> result code.
P This command is supported for backward compatibility only, and has no effect. 312
Sn This command reads/writes values of the S-registers, and includes registers 1-49, 262
94, 96 (Audio) and 102 (Sleep mode).
T This command is supported for backward compatibility only, and has no effect. 312
V This command determines the response format of the data adapter and the contents 257
of the header and trailer transmitted with the result codes and information
responses.
X This command defines the data adaptor response set, and the CONNECT result 260
code format.
Y This command is supported for backward compatibility only, and has no effect. 312
98-08901C68-C 43
Introduction to AT Commands
44 98-08901C68-C
4. AT COMMANDS REFERENCE
4.2 MODEM ID
These commands allow the user to query the type of device that is attached, the technology used in the device, as well as basic
operating information about the device.
These commands display manufacturer identification. The g20 outputs a string containing manufacturer identification
information, indicating that this is a Motorola device.
Command Response/Action
Example
AT+CGMI
+CGMI: "Motorola"
OK
98-08901C68-C 45
AT Commands Reference
AT+GMI
+CGMI: "Motorola"
OK
AT+FMI
+CGMI: "Motorola"
These commands request the model identification. The g20 outputs a string containing information about the specific model,
including a list of the supported technology used, and the particular model number.
Command Response/Action
Example
AT+CGMM
+CGMM: "GSM900","GSM1800","MODEL=g20" //In the European model
AT+GMM
+GMM: "GSM1900","GSM850","MODEL=g20" //In the North American model
AT+FMM
+FMM: "GSM900","GSM1800","MODEL=g20" //In the European model
The following table shows the+CGMM string parameters.
String Description
46 98-08901C68-C
AT Commands Reference
These commands request the revision identification. The g20 outputs a string containing the revision identification information
of the software version contained within the device. Typically, the version is a quoted string with less than 255 characters.
Command Response/Action
Example
AT+CGMR
+CGMR: "G208_G_0C.01.11I"
AT+GMR
+GMR: "G208_G_0C.01.11I"
AT+FMR
+FMR: "G208_G_0C.01.11I"
This command displays the product serial number identification IMEI (International Mobile Equipment Identification). It can
be used even when the SIM card is not inserted.
Command Response/Action
98-08901C68-C 47
AT Commands Reference
<Parameter> Description
Example
AT+CGSN
+CGSN: "448954035283579"
AT+GSN
+GSN: "447764074608839"
OK
at+gsn
+GSN: "000000011234564"
OK
at+gsn?
+GSN: "000000011234564"
OK
This command selects the g20 character set. The g20 supports the following character sets: GSM, UCS2, UTF8, 8859-1 and
ASCII.
The default value, set upon system initialization, is ASCII.
48 98-08901C68-C
AT Commands Reference
Set Command
Command Response/Action
+CSCS=[<chset>] OK
or:
+CMS ERROR: <err>
Read Command
Command Response/Action
Test Command
Command Response/Action
Example
AT+CSCS=?
+CSCS: ("8859-1","ASCII","GSM","UCS2","UTF8")
OK
98-08901C68-C 49
AT Commands Reference
AT+CSCS?
+CSCS: "ASCII"
OK
AT+CPBS = "ME"
AT+CPBW=1,"8475763000",129,"Lin Zhao"
OK
AT+CSCS="UCS2"
OK
AT+CPBR=1
+CPBR: 1,"8475763000",129,004C006E006E0020005A00680061006F
OK
AT+CSCS="ASCII"
OK
AT+CPBR=1
+CPBR: 1,"8475763000",129,"Lin Zhao"
OK
Command Response/Action
Example
AT+CIMI
+CIMI: 314566320021400
50 98-08901C68-C
AT Commands Reference
Command Response/Action
The following table shows the information items that are supported by the g20.
Example
ATI3
Motorola Mobile Phone
ATI5
P2K
ATI7
G20 OEM Module
ATI8
G208_G_0C.00.0BI
This command displays up to five strings of text information that identify the g20. The output string contains double quotes.
On platforms supporting MSISDN numbers, the string(s) returned are the MSISDN numbers and their associated data.
On platforms not supporting MSISDN numbers, this command returns the current phone number of the g20.
98-08901C68-C 51
AT Commands Reference
Read Command
Command Response/Action
[...]
<Parameter> Description
Example
at+cnum?
+CNUM: "David","035558278",129
52 98-08901C68-C
AT Commands Reference
This command displays a list of all the AT commands supported by the g20.
Command Response/Action
Execute Command
The Execute command displays a list of all the AT commands supported by the g20.
Command Response/Action
Example
AT+CLAC
$
%C
&C
&D
&F
&G
&K
&L
&M
&P
&R
&S
&T
*D
+CACM
+CALC
+CALM
+CAMM
+CAOC
+CBAND
98-08901C68-C 53
AT Commands Reference
+CBAUD
+CBC
+CBST
+CCFC
+CCLK
+CCWA
+CEER
:
:
:
:
?
A
D
DL
E
F
H
I
L
M
N
O
P
Q
S
T
V
X
Y
Z
\A
\S
OK
54 98-08901C68-C
AT Commands Reference
This set of commands enables a user to determine g20’s protocol level. It also enables other support provided by the g20, such
as information about the currently implemented protocol version (used to detect older g20s that may not support all commands),
as well as determining which optional commands are implemented in a particular g20 software load.
This command displays the AT Feature Review that is supported by the g20. The Motorola Available ID (+MAID) read-only
command provides a means for an application to obtain a list of available features in a phone. The parameter list output is based
on the list of features available in the phone. The ones and zeros indicate whether the particular feature is turned on or off,
respectively. This command has been designed for future expansion. Additional features can be added to the end of the string,
if required.
Read Command
Command Response/Action
The following table describes the accessory features that are supported in the g20.
Feature Description
<feature 3 status> Indicates the presence of an SMS AT Accessory code in the phone.
True SMS AT Accessory code is present.
False SMS AT Accessory code is not present.
<feature 4 status> Indicates the presence of Mobile Originated SMS AT (MO-SMS AT) support in the
phone.
True MO-SMS AT is present.
False MO-SMS AT is not present.
<feature 5 status> Indicates the presence of email addresses in the phone book and the
MO-SMS Destination Address Field.
True Email addresses are present.
False Email addresses are not present.
98-08901C68-C 55
AT Commands Reference
Feature Description
<feature 6 status> Indicates the presence of multiple phone books in the phone, enabled by inserting
a memory stick in the phone.
Note: The feature status is an indication of the state of a feature ID, not the actual
presence or absence of the memory stick.
True Multiple phone books may be present.
False Multiple phone books are not present.
<feature 9 status> Indicates the availability of an SMS Multiple Destination Address feature.
True SMS Multiple Destination Addresses feature is available.
False SMS Multiple Destination Addresses feature is not available.
<feature 10 status> Indicates the availability of the Distinctive Alert feature, where a specific ring tone
can be assigned to an entry in the phone book
True Distinctive Alert feature is available.
False Distinctive Alert feature is not available.
<feature 11 status> Indicates the availability of the Phone Book Voice Tags Transferring feature.
True Supports Voice Recognition and Phone Book Voice Tags Transferring.
False Does not support Voice Recognition,
or
Supports Voice Recognition, but not Phone Book Voice Tags Transferring.
<feature 16 status> Indicates the availability of First and Last Name attributes feature.
True First and Last Name attributes feature is available.
False First and Last Name attributes feature is not available.
56 98-08901C68-C
AT Commands Reference
Feature Description
<feature 18 status> Indicates the availability of the PDU Mode AT Commands for SMS.
True PDU Mode AT Commands for SMS are supported.
False PDU Mode AT Commands for SMS is not supported.
<feature 21 status> Indicates the availability of the VST VR (Voice Recognition for Voice Signal
Technologies, Inc.) Transferring feature.
True Phone supports VST VR and transferring of the voice recognition tags
associated with the phonebook entries.
False Phone does not support VST VR and transferring of the voice recognition
tags associated with the phonebook entries.
Example
AT+MAID?
+MAID: 1,1,1,1,1,1,1,0,0,1,0,0,1,1,0,0,0,1,0,0,0
OK
This command displays the version of the accessory protocol that is supported in the g20. This version consists of a major
version number and a minor version number, and should correspond with the protocol version number reported by the first g20
release including that command. A version of software claiming to support an accessory protocol version must support all
commands in accordance with that version of the accessory protocol, as well as all commands for lower numbered versions of
the protocol.
Execute Command
Command Response/Action
98-08901C68-C 57
AT Commands Reference
<Parameter> Description
Example
AT+MAPV
+MAPV: 2.8.0
OK
The g20 working modes can be divided into two modes of operation.
• Data Mode: In this mode, once the g20 has established a link with the remote modem, it does not respond to any data passing
through it (except for the Escape Sequence search). The g20 becomes a transparent link, connecting the terminal with the
remote side.
• Command Mode: In this mode, the g20 responds to the AT commands issued by the terminal. This is the default working
mode.
It is possible to switch between the operating modes.
The operating modes can operate simultaneously using the Mux.
Note
The Terminal mode allows you to instruct the modem to dial a remote modem by issuing the Dial command followed by the
phone number. You can also include dial string modifiers in your command line to give the modem additional instructions. The
following dial modifiers are available on most modems:
• ","- Pause
• ";" - Return to the Command mode after dialing - used for a voice call.
In order to instruct the modem to dial a remote modem from an ordinary tone-dialing telephone line, enter the Dial command
followed by the phone number. For example, type the following command:
ATD 876-5555 <Enter>
After issuing the Dial command, and if the remote modem answers the call, the two modems send high-pitched carrier tones to
one another which establish the transmission speed and other parameters for the data connection. This process is called
negotiation.
58 98-08901C68-C
AT Commands Reference
If you receive characters which were sent, you can disable this with using the Echo command (ATE0 <Enter>).
Note
After the negotiation process, the message, "OK" followed by the connection speed, is received.
If the other phone line is busy, the message "NO CARRIER" is received.
If the other modem does not answer, the message "NO CARRIER" is received.
Once a connection has been established, the modem is ready to immediately begin transmitting and receiving data. This may
vary from sending messages to each other, sending or receiving files, logging on to an information service, or any other data
communication task you wish to perform.
To switch the connection from Data mode to Command mode, send the Escape Sequence command (+++).
If the modem responds with "OK" to the Escape command, the modem is in Command mode and the dial connection is still
active, and you can use the AT command set.
The character '+' in the Escape Sequence pattern can be changed using the S2 S-register. Refer to “S, Bit Map
Registers”, page 262.
Note Escape is detected only by the g20 and not by the remote side. The remote side stays in the Data mode.
4.3.1.3 Hanging Up
If you are using a communications program, use the "Hang up" or "Disconnect" AT command in the program to disconnect the
call.
When using computers in the "Dumb Terminal mode", return to the Command mode by typing the Escape Sequence, +++, and
then hang up by typing the Hang up command as follows:
ATH <Enter>
If the g20 responds with "OK", the dial connection is closed.
When you dial to an electronic telephone service such as telephone banking, you must typically instruct the modem to dial a
number, then to wait for call establishment, and then send the password for entering the banking account. A typical command
line might look like this:
ATD876-5555,123456; <Enter>
The modem dials the number, then pauses to wait for the call connection (the comma in the command line causes the pause).
You can also create a longer pause by including several commas in a row in the command line, and then send the password to
the service.
98-08901C68-C 59
AT Commands Reference
ATA <Enter>
This command instructs the modem to be the "answering modem". Either party may be the answering or the originating modem,
but both parties cannot be the same modem at the same time.
You hear the modem handshake and see the result code "CONNECT".
Note
Command Response/Action
DATA/FAX:
2nd response only - Data/Fax call connected
CONNECT
60 98-08901C68-C
AT Commands Reference
<Parameter> Description
ATDP, ATDT, AT*D, <T>, <P> and <*> are ignored. The command is handled as ATD.
The control of supplementary services through the Dial command is not supported as these are controlled through
Note the specific supplementary service commands (CCFC, CLCK, and so on.)
Initiating a GPRS connection is done through ATD*99#, as described in “D*99, Request GPRS Service "D"” on
page 307.
Example
This command places a FAX/DATA/VOICE call on the current network by dialing directly from the g20 phone book.
+CME ERROR: "NOT FOUND" is returned when no match is found in an existing phone book.
"FD" phone book supports the (?) wild card character. Telephone numbers containing this character cannot be
Note dialed directly from the phone book.
98-08901C68-C 61
AT Commands Reference
The following table shows a detailed description for the D> commands.
Current used memory (phone book) set/read is done through the memory command +CPBS=/+CPBS?
respectively.
Note If the g20 powers up, and no default used memory is set, then, if ATD><alpha> or ATD><n> is sent from the termi-
nal, a +CME ERROR: "NOT FOUND" is returned.
<Parameter> Description
Example
62 98-08901C68-C
AT Commands Reference
OK
at+cpbw=1,"035659090",129,"VoiceMail"
OK
at+cpbr=1
+CPBR: 001,"035659090",129,"VoiceMail"
OK
atd>"VoiceMail"; //Phonebook by name
OK
OK
ath
NO CARRIER
OK
OK
OK
ath
NO CARRIER
OK
For more examples, refer to “Call Control” on page 405 and “Data Call” on page 410.
The DL command places a data/voice call to the last number dialed. The call progress information (success/failure) is reported
in the same way as for the Dial command. (Refer to “D, Dial Command”, page 60.)
Command Response/Action
98-08901C68-C 63
AT Commands Reference
<Parameter> Description
semicolon (;) If the semicolon (;) is given, a voice call is originated to the
last dialed number.
If the semicolon (;) is not given, a Fax/Data call is
originated.
Note: The last dialed call type is irrelevant to the DL
command.
Example
atdl;
ATDL: "035658278"
OK
OK //VOICE call
64 98-08901C68-C
AT Commands Reference
This command hangs up a call. The g20 terminates the call whether it is a data or voice call, and whether it is an incoming,
originating, waiting, or connected call.
A NO CARRIER message is returned to the terminal before the regular OK approval.
To terminate (hang-up) a MO data/fax call while call is placed: Any character sent from the terminal to the g20
causes the Data/Fax call termination, and NO CARRIER is sent from the g20 to the terminal.
Note To terminate a held Voice call or to terminate a call out of a MTPY call, refer to “+CHLD, Call Related
Supplementary Services Command” on page 77.
Single Active and Waiting Call Single Active released (waiting not affected)
MTPY Active and Waiting Call MTPY Active released (waiting not affected)
Single (or MTPY) Active and Single Single (or MTPY) Active released
(or MTPY) Held
Single (or MTPY) Active and Single Single (or MTPY) Active released
(or MTPY) Held & Waiting call
Example
RING
98-08901C68-C 65
AT Commands Reference
ata
OK //Voice call connected
ath //Hang-up connected call
NO CARRIER
OK //Active call has been hung-up - terminated
atd035659260;
OK
ath //Terminate MO voice call while placed
NO CARRIER
OK
This command answers an incoming VOICE/DATA/FAX call after a RING/+CRING indication is sent to the terminal.
If the incoming call is answered (connected), the g20 sends a CONNECT notification to the terminal.
66 98-08901C68-C
AT Commands Reference
Example
Note
4.3.3.6 +CRC, Cellular Result Codes and RING, +CRING - Incoming Call Indication
This command controls whether or not to present the extended format of an incoming call indication. The RING/+CRING
indication is sent from the g20 to the terminal when the g20 is alerted by an incoming call from the network. Once this indication
is sent, information is available on the calling line via +CLIP. When +CRC is disabled, the indication is RING, and when +CRC
is enabled, the indication is +CRING.
98-08901C68-C 67
AT Commands Reference
Set Command
The Set command enables/disables the extended format of an incoming call indication. When enabled, an incoming call is
indicated to the terminal with an unsolicited result code +CRING:<type> instead of the normal RING.
Command Response/Action
+CRC=<n> OK
Read Command
The Read command queries the current settings for the cellular result code.
Command Response/Action
Test Command
Command Response/Action
RING/+CRING INDICATION
+CRING: <type>
or:
RING
<Parameter> Description
68 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
at+crc?
+CRC: 0
OK
at+crc=?
+CRC: (0-1)
OK
98-08901C68-C 69
AT Commands Reference
This command controls the Calling Line Identity (CLI) presentation indication to the terminal when an incoming call is detected
by the g20.
This command allows the user to query the provisioning status of the CLI by the network and by the g20. The command also
allows the user to enable/disable the CLI presentation by the g20 to the terminal.
The +CLIP indication information varies depending on what is provided by the network and what information is stored in the
g20 phone book.
Set Command
The Set command enables or disables the presentation of the CLI indication from the g20 to the terminal.
Command Response/Action
AT+CLIP=<n> OK
+CME ERROR: <err>
Note
Read Command
The Read command returns the +CLIP enable/disable state in the g20 as well as in the network provisioning state of the CLI
presentation.
Command Response/Action
Test Command
70 98-08901C68-C
AT Commands Reference
+CLIP Indication
When the CLI presentation indication is enabled by the g20 (<n>=1), this unsolicited indication is sent to the terminal after the
RING indication.
CLIP Indications
+CLIP:<number>,
<type>[,
<subaddr>,
<satype>[,[
<alpha>][,
<CLI validity>]]]
<Parameter> Description
<satype> Field not used. Value is always 128 (unknown) - type of sub
address octet in integer format.
98-08901C68-C 71
AT Commands Reference
<Parameter> Description
Example
at+clip=?
+CLIP: (000,001) //CLI presentation is disabled by the g20 (0) and is enabled by the network (1)
OK
at+clip=1
OK
This command controls the Call Waiting supplementary service, including the settings and the queries of the g20 and the
network. When the Call Waiting indication is enabled by the g20 and there is a waiting call, a +CCWA: indication is sent from
the g20 to the terminal.
The g20 supports only one of the services at a time: Voice, Data or Fax. Multiparty is a voice-only functionality.
A CCWA indication is sent to the terminal only during a voice call-waiting event. A CCWA indication is not sent for
Note a fax/data call during in a voice session.
72 98-08901C68-C
AT Commands Reference
Set Command
The Set command enables/disables the Call-Waiting indication in the g20 and in the network. Activation, deactivation and status
query are supported.
When the <mode> parameter is set to 2 (network query), the <n> parameter is ignored. This means that no enable/
disable is performed while querying the network.
Note
Command Response/Action
+CCWA=[<n>[,<mode>[,<class>]]] OK
Read Command
The Read command returns the enable/disable status of the call waiting indication in the g20 (<n>).
Command Response/Action
Test Command
The Test command returns <n> values supported by the g20 as a compound value.
Command Response/Action
98-08901C68-C 73
AT Commands Reference
+CCWA Indication
When a call-waiting indication is enabled by the g20 (<n>=1), the following unsolicited indication is sent to the terminal from
the g20:
+CCWA Indication
+CCWA:<number>,
<type>,
<class>,
[<alpha>]
[,<CLI validity>]
During the call waiting state, a RING indication is not sent to the terminal. This means that when <n> is set to 0, the
terminal will not be aware of the waiting call. In addition, it is not possible during this state to release a single party
from a multiparty call. Any attempt to do so results in the following message: "+CME ERROR: operation not
Note allowed".
The maximum number of waiting calls at one time, per mobile access, is one. This means that no further calls are
offered to the g20 (and to the terminal) while a call is waiting.
If CLI is NOT provisioned by the network but CCWA: presentation to the terminal is enabled, the g20 sends one of
the following indications to the terminal:
+CCWA: "",128,,"",1
or
+CCWA: "",128,,"",2
<Parameter> Description
74 98-08901C68-C
AT Commands Reference
<Parameter> Description
When the parameter <mode> is 2 (Query status), the first parameter is ignored and the third parameter is always
treated as class = 7.
Note
Example
at+ccwa=?
+CCWA: (0,1)
OK
at+ccwa?
+CCWA: 1
OK
Examples of +CCWA set command - network interrogation
at+ccwa=1,2 //Class parameter is considered as 7
+CCWA: 1,1 //Call waiting is active for class 1, voice
98-08901C68-C 75
AT Commands Reference
at+ccwa=1,0
OK //Disable the call waiting feature in the network, enable it in the g20
at+ccwa=,,1
OK //Enable the call waiting feature in the network
(...conversation...)
(… call waiting indication received by the g20 …)
+CCWA: "+358317654321",145,1,"Bob"
+CCWA: "+358317654321",145,1,"Bob"
76 98-08901C68-C
AT Commands Reference
This command controls the Call Hold and Multiparty Conversation services. This command manipulates voice calls only.
Set Command
The Set command allows the control of the following call related services:
• Call HOLD: A call can be temporarily disconnected from the g20, but the connection is retained by the network.
• MTPY (Multi party) Conversation: Conference calls.
The network does not reserve more than one traffic channel for a mobile station, therefore the g20 can have only one call on
hold at a time.
Only voice calls can be put on HOLD.
A precondition for the multi-party service is that the g20 is in control of one active call and one call on hold. In this
Note situation, the g20 can request the network to begin the MTPY (Multi Party) service. Once a MTPY call is active,
remote parties may be added, disconnected or separated (removed from the MTPY call, but remain connected to
the served mobile subscriber).The maximum number of remote parties is 5.
In this command, the term CALL refers to a single or MTPY call.
A single Active call is considered an MTPY call with one call index numbered as 1.
Command Response/Action
Test Command
The Test command returns <n> values supported by the g20 to the terminal.
Command Response/Action
98-08901C68-C 77
AT Commands Reference
<Parameter> Description
The following table shows the +CHLD actions according to state and operation:
CHLD <operation>
2x - Active
Call State 1 - Release 1x - Release 2 - Switch
MTPY Call 3 - Add
0 -Release Active Call, Active Call x Between
to Hold, Held Call to
Held Call Accept Held from MTPY Held and
Except for Active Call
Call Call Active Call
Call x
IDLE Error 3
Incoming Error 3.
Call (RING)
78 98-08901C68-C
AT Commands Reference
Table 22. +CHLD Actions According to Call State and Operation (Continued)
CHLD <operation>
2x - Active
Call State 1 - Release 1x - Release 2 - Switch
MTPY Call 3 - Add
0 -Release Active Call, Active Call x Between
to Hold, Held Call to
Held Call Accept Held from MTPY Held and
Except for Active Call
Call Call Active Call
Call x
Single Held Releases held Accepts held Error 3. Accepts held Error 3. Error 3.
Call or call. call. call.
MTPY Held
Call
Split: Places the active MTPY call on hold, except for a specific call x.
Switch: Places the active call on hold and accepts the Held call
Error 3: "Operation not allowed"
Error 22: "Not found"
98-08901C68-C 79
AT Commands Reference
Example
at+chld=?
+CHLD: (0,1,1x,2,2x,3)
OK
80 98-08901C68-C
AT Commands Reference
This command enables control of the call-forwarding supplementary service. Registration, erasure, activation, deactivation, and
status query are supported.
Set Command
The Set command instructs the g20 which call forwarding settings to request from network. The Set command, in query mode,
interrogates the network about the subscriber current call forwarding status.
Command Response/Action
Test Command
The Test command returns <reason> values supported by the g20 to the terminal.
Command Response/Action
+CCFC=? +CCFC:<reason>
OK
<Parameter> Description
<reason> 0 Unconditional
1 Mobile busy
2 No reply
3 Not reachable
4 All call forwarding
5 All conditional call forwarding
<mode> 0 Disable
1 Enable
2 Query status
3 Registration
4 Erasure
98-08901C68-C 81
AT Commands Reference
<Parameter> Description
<satype> Field not used. Value is always 128 (unknown) - type of sub
address octet in integer format.
A forward-to phone <number> (and the optional fields <type>, <subaddr> and <satype>) are tied to a <reason>
and a <class>. This means that there can be a different <number> for the same <reason> because of a different
<class>. When registering without mentioning a <class>, <class>=7 is selected.
Note
A <number> field is mandatory when registering (<mode>=3) and it is irrelevant (ignored) in all other <mode>s.
Example
at+ccfc=?
+CCFC: (0,1,2,3,4,5)
OK
at+ccfc=0,3,"01256316830",129,1
OK
at+ccfc=1,3,"0545658278",129,1 //Register UC forward-to of all classes.
OK
at+ccfc=1,1 //Activate UC forward-to of all classes.
82 98-08901C68-C
AT Commands Reference
OK
at+ccfc=1,2 //Interrogate reason not-reachable of all classes.
+CCFC: 1,1,"+97254151200",145
+CCFC: 0,2,"",0
+CCFC: 0,4,"",0
OK //For <reason>=3, forward only voice calls is activated.
at+ccfc=2,3,"+972545658278"
OK
at+ccfc=2,0 //Disable call-forwarding for reason no-reply of all classes.
OK
at+ccfc=2,2
+CCFC: 0,1,"+972545658278",145,,25
+CCFC: 0,2,"+972545658278",145,,25
+CCFC: 0,4,"+972545658278",145,,25
OK
This command instructs the g20 to query, enable or disable the presentation of the CLI (calling line ID) of a MO call to the called
party. The restriction of the CLI (disable presentation) is dependent both on the g20 and on the network.
The network enables three possible provisions of CLIR:
• Not provisioned (CLIR Off - presentation allowed)
• Provisioned permanently
• Provisioned with Temporary mode
The provision is fixed and cannot be changed by an AT command.
Temporary Mode:
Temporary mode can be in one of two states:
• A - Presentation restricted (CLIR On) as default.
• B - Presentation allowed (CLIR Off) as default. A subscriber to Temporary mode always has a default subscription to state
A or B. Temporary-mode provisioning means that the terminal can request the g20 to switch the default mode from A to B,
and vice versa.
When a service is in state A, and the terminal wants to enable the CLI presentation (turn CLIR off) for a single call,
it can do so using the ATD command. This does not change the Temporary mode state. This can also be done
when the service is in state B and the terminal wants to disable the CLI presentation (turn CLIR on) for a single call.
Note
When setting the g20 through the handset (or by using +CKPD), the settings are valid only for the next mobile
originated call. After the call, the settings return to default.
98-08901C68-C 83
AT Commands Reference
Set Command
The Set command instructs the g20 to enable/disable CLI restriction for all MO calls.
The Set command deals only with Temporary mode. Therefore, if the network provisioning is not in Temporary
mode, the Set command setting is irrelevant.
Note It is recommended to run the CLIR Read command and get the network status before the Set command is issued.
Command Response/Action
+CLIR=<n> OK
Read Command
The Read command returns the current setting of CLIR on the network <m> and on the g20 <n>.
Command Response/Action
+CLIR? +CLIR:<n>,<m>
OK
Test Command
Command Response/Action
<Parameter> Description
84 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
at+clir=?
+CLIR: (0,1,2)
OK
at+clir?
+CLIR: 1,4
at+clir=2
OK
atd054565195; //MO voice call
OK
(… calling …)
(… a g20 that has 054565195 SIM and is CLIP enabled will receive the following on the terminal:
RING
+CLIP: "",128,,128,"",1
RING
+CLIP: "",128,,128,"",1)
ath
NO CARRIER
OK
at+clir=0
OK
98-08901C68-C 85
AT Commands Reference
RING
+CLIP: "054565006",129,,128,"",0
RING
+CLIP: "054565006",129,,128,"",0 …)
ath
NO CARRIER
OK
This command sets the GSM bearer service (data circuit duplex asynchronous and synchronous). It chooses one of the bearer
services, the data rate of the service (actually the modulation when modem IWFs are used), and enables or disables the Radio
Link Protocol.
Set Command
The Set command selects the bearer service <name> with data rate <speed> and the connection element <ce> to be used when
data calls are originated (refer to GSM 02.02). Values may also be used during mobile terminated data call setup, especially in
the case of single numbering scheme calls.
For incoming calls, the bearer service will be taken automatically from incoming parameters and not according to
the CBST Set command.
Note g18 Compatibility Note: The CBST Set command selects the bearer service (data circuit duplex asynchronous
and synchronous, PAD access circuit asynchronous, or data packet duplex synchronous) to be used when data
calls are originated. (GSM 07.07 version 7.5.0 Release 1998). For incoming calls, the bearer service will be taken
automatically from incoming parameters and not according to the CBST Set command.
Command Response/Action
AT+CBST=[<speed>[,<name> OK
[,<ce>]]] +CME ERROR: <err>
Read Command
Command Response/Action
86 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
<ce> 0 Transparent
1 Non-transparent (default)
Example
At+cbst=?
+CBST: (000,004,006,007,014,068,070,071,075),(000-001),(000-003)
OK
At+cbst?
+CBST: 007,000,001
OK
at+cbst=6
OK
98-08901C68-C 87
AT Commands Reference
at+cbst?
+CBST: 006,000,001
OK
This command returns the g20 from the Command mode to the Online Data mode and issues a CONNECT or CONNECT <text>
result code.
After dialing or answering (atd/ata commands and connect), the phone enters the Online Data mode where it is able to transfer
data, but not to enter AT commands.
The ESC command +++, transfers the phone to the Command mode (able to input AT commands, while preserving the Data
call). The O command returns the phone to the fully Online Data mode (as it was before using the ESC command).
The escape character '+' can be changed using the S2-register.
The time delay between two consecutive "+s" is configured using the S12-register.
Note
Execute Command
Command Response/Action
ATO CONNECT
Example
88 98-08901C68-C
AT Commands Reference
Qn Description
This command causes the TA to hang up the current GSM call of the g20.
Set Command
Command Response/Action
+CHUP OK
+CME ERROR <err>
Read Command
The Read command for +CHUP is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
The current version of the g20 does not support alternating mode calls. Therefore, the behavior of +CHUP and
ATH are the same.
Note
This command handles the selection of the bearer or teleservice to be used when a mobile terminated single numbering scheme
call is established. If the calling party specifies the required bearer capability, this capability is used for the call setup attempt.
If the calling party does not specify the required bearer capability (for example, because the call originated in the PSTN), the
network attempts to determine it, as described below.
Some cellular networks use a multi-numbering scheme, where several mobile station ISDN numbers, or MSISDNs, are associ-
ated with one IMSI in order to define the bearer capability by the MSISDN. Each MSISDN is used for a different bearer capa-
bility. If the network uses a multi-numbering scheme and the calling party has not specified the required bearer capability, then
the network uses the bearer capability associated with the called party MSISDN.
98-08901C68-C 89
AT Commands Reference
However, some networks omit the bearer capability associated with the called party MSISDN, when this MSISDN is associated
with voice service and the calling party has not specified the required bearer capability (for example, because the call originated
in the PSTN). In these cases, the +CSNS command is used to select the desired bearer or teleservice for a single-numbering
scheme, in which one MSISDN is associated with each IMSI. The +CSNS command has a default mode, so is not mandatory
to set it.
If the network uses a single-numbering scheme and the calling party has not specified the required service, then the network
omits the bearer capability information.
Set Command
The Set command selects the bearer or teleservice to be use when a mobile-terminated single numbering scheme call is estab-
lished.
Command Response/Action
+CSNS=<mode>[,<repeated>] OK
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
0 Voice (default)
2 Fax (TS 62)
4 Data
90 98-08901C68-C
AT Commands Reference
<Parameter> Description
Any mobile-terminated call lacking bearer capability information is handled according to the current CSNS
setting.
Note When <mode> is set to data service, the parameter values set with the +CBST command are used (Refer to
“+CBST, Select Bearer Service Type” on page 86). If the +CBST parameter is set to a value that is not
applicable to single numbering calls, the g20 maps the value to the matching one, according to the Mapping
Table (see below).
If <repeated> is set to 0, any call indication (RING, CRING, CLCC, and so on) sets the CSNS back to the
default value (voice).
The only +CBST parameter that needs mapping for mobile terminated calls is <speed>, as described in the table below. The
V.110 protocol is replaced by the analog protocol regardless of the +CBST setting. All other parameters are set by the +CBST
command.
0 autobauding 0 autobauding
Note
98-08901C68-C 91
AT Commands Reference
4.3.3.17 +MDC, Selection of Desired Message to Be Displayed Upon Connection of a Voice Call
This AT command enables you to select the desired messages to be displayed upon connection of a voice call with a remote
party. The OK and CONNECT messages are available.
Set Command
The Set command selects which of the supported messages will be displayed upon connection of a voice call.
Command Response/Action
+MDC=<mode> OK
or:
ERROR
Default Values:
Read Command
Command Response/Action
Test Command
Command Response/Action
92 98-08901C68-C
AT Commands Reference
Example
AT+MDC=?
+MDC: (0-1)
OK
AT+MDC=1
OK
ATD<number>;
OK
CONNECT
AT+MDC?
+MDC: 1
OK
AT+MDC=0
OK
ATD<number>;
OK
OK
AT+MDC?
+MDC: 0
OK
This command terminates an incoming call and diverts the caller to the number previously defined in CCFC, or to a voice mail
if one exists for the subscriber. This is done by sending a user-defined User Busy message to the network.
98-08901C68-C 93
AT Commands Reference
Set Command
The Set command will hand up (terminate) the incoming call, causing the network to divert the incoming call to the number that
was set by the CCFC command for "User Busy", or the voice mail, if one exists for the subscriber.
Command Response/Action
Example
The g20 provides detailed information about the call progression and the error states to privileged accessories. This information
is sent to the accessories as unsolicited responses when enabled from the g20. Accessories can request the current state of the
call processing engine by using the query form of this command. When a change occurs in the call processing engine state, this
information is broadcast to all the accessories.
The following table shows the Call Processing State codes. These codes are transmitted by the g20 when the call processing
engine (or equivalent) changes state, for example when exiting a call. These codes are generic information codes that are
intended to be reused, as much as possible, among all technologies. States 1 - 17 are call processing states, and can be queried.
States 64 to 72 announce various phases of call origination.
Code Description
94 98-08901C68-C
AT Commands Reference
Code Description
64 Calling
68 No Service
69 No Redial
72 Security Fail
98-08901C68-C 95
AT Commands Reference
This command displays the current activity status of the g20, for example, call in progress, or ringing.
Execute Command
The Execute command returns the activity status <pas> of the g20. It can be used to interrogate the g20.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
96 98-08901C68-C
AT Commands Reference
Note
Example
at+CPAS
+CPAS: 0
OK
at+CPAS=?
+CPAS: (0,2-4)
OK
at+CPAS?
+CPAS: 4
OK
This command displays a list of all current g20 calls and their statuses, and also enables/disables the unsolicited indication of
the call list. (If no calls are received, no information response is sent to the terminal.)
If the command succeeds but no calls are available, no information response is sent to the terminal.
The maximum number of simultaneous multiparty calls is 5+1 (5 in active group and 1 in hold).
On all platforms besides Telematics-enabled GSM platforms, this command responds with a +CME error indicating that the
operation is not supported.
Set Command
Command Response/Action
AT+CLCC=<state> OK
or:
+CME ERROR: <err>
98-08901C68-C 97
AT Commands Reference
Execute Command
The Execute command enables the receiving of data about current calls.
Command Response/Action
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
98 98-08901C68-C
AT Commands Reference
<Parameter> Description
<mode> Bearer/Teleservice
0 Voice Call
1 Data
2 Fax
Note
Example
AT+CLCC=?
+CLCC: (0,1)
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"01256316830",129,"Shmuel"
OK
AT+CLCC?
98-08901C68-C 99
AT Commands Reference
+CLCC: 0
OK
ATH
NO CARRIER
OK
This set of commands enables GSM operators to offer Advice of Charge (AoC) services that calculate call charges. These
charges are expressed in terms of home units.
100 98-08901C68-C
AT Commands Reference
This command displays information about the cost of calls. If supported, this command also
activates/deactivates unsolicited event reporting of the CCM (Current Call Meter) information.
The unsolicited report +CCCM:<ccm> is sent when the CCM value changes, but not more than once every 10 seconds.
The CCM value depends on the network properties (charge for MO or/and MT calls).
There are two states in which the command can be activated:
Note • In IDLE state - returns the last call cost.
• In a voice/data state - returns the accumulated cost, including the current call.
Set Command
The Set command returns the CCM value from the g20, or activates/deactivates unsolicited reports.
Command Response/Action
+CAOC=<mode> OK
or:
[+CAOC:<ccm>]
or:
+CME ERROR:<err>
Read Command
Command Response/Action
+CAOC OK
or:
[+CAOC: <ccm>]
or:
+CME ERROR: <err>
Test Command
Command Response/Action
98-08901C68-C 101
AT Commands Reference
<Parameter> Description
<CCM>: String type value representing three bytes of the current call meter value in hexadecimal format (for
example, "00001E" indicates decimal value 30).
Note
Example
Example with prepaid SIM card with 56700.00L prepaid before the test.
at
OK
at+caoc=2
OK
atd+97254565190;
OK
OK
+CCCM: "000000"
+CCCM: "000006"
at+caoc
+CAOC: "000009"
OK
+CCCM: "00000e"
+CCCM: "000016"
at+caoc
+CAOC: "00001d"
OK
102 98-08901C68-C
AT Commands Reference
+CCCM: "00001e"
+CCCM: "000027"
at+caoc=0
+CAOC: "00002d"
OK
at+caoc=2
OK
+CCCM: "00003d"
at+caoc
+CAOC: "00003f"
OK
+CCCM: "000046"
at
+CCCM: "00004e"
+caoc
+CAOC: "00004f"
OK
+CCCM: "000056"
at+caoc
+CAOC: "00005d"
OK
+CCCM: "00005e"
NO CARRIER
at+caoc
+CAOC: "000066"
OK
98-08901C68-C 103
AT Commands Reference
//567 (prepaid SIM value) - 102 (price per call unit by provider) x 66 (call units) = 465 left in prepaid SIM
OK
There is now 46500.00L prepaid remaining on the SIM card.
The above example shows first time activation of the AOC feature using the g20. Therefore, the accumulated cost
is equal to the current call cost.
Note
This command resets the Advice of Charge accumulated call meter value in the SIM file, EFACM. ACM contains the total
number of home units for both the current call and preceding calls.
Refer to “+CAMM, Accumulated Call Meter Maximum”, page 105.
Set Command
The Set command resets the accumulated call meter value. SIM PIN2 is required.
Command Response/Action
+CACM=<passwd> OK
Read Command
Command Response/Action
104 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
+CAMM=? OK
<Parameter> Description
<ccm>
String type; three bytes of the current call meter value in
hexadecimal format (for example, 00001E indicates a
decimal value of 30). Value is given in home units; bytes
are similarly coded as the ACMmax value in the SIM.
Example
AT+CACM=?
OK
AT+CACM?
+CACM:"000000"
OK
AT+CACM="2222"
OK
This command sets the Advice of Charge accumulated call meter maximum value in the SIM file, EFACMmax. ACMmax
contains the maximum number of home units the subscriber is able to consume. When the ACM (Refer to “+CACM, Accumu-
lated Call Meter”, page 104) reaches ACMmax, additional calls (mobile-originated and mobile-terminated calls that incur
charges) are prohibited, except for emergency calls. Refer to GSM 02.24.
98-08901C68-C 105
AT Commands Reference
Set Command
The Set command sets the accumulated call meter maximum value. SIM PIN2 is required. The value that is set remains after a
power cycle.
This command is activated if Advice of Charge is supported by the network.
Note
Command Response/Action
+CAMM=[<acmmax>,<passwd>] OK
Read Command
Command Response/Action
Test Command
Command Response/Action
+CAMM=? OK
106 98-08901C68-C
AT Commands Reference
<Parameter> Description
<ccm>
String type; three bytes of the current call meter value in
hexadecimal format (for example, 00001E indicates a
decimal value of 30). Value is given in home units; bytes
are similarly coded as the ACMmax value in the SIM.
Range is from 00001 to FFFFFF.
0 Disables ACMmax (default)
Example
AT+CAMM=?
OK
AT+CAMM="FFFFFF","2222"
OK
AT+CAMM?
+CAMM: "FFFFFF"
OK
98-08901C68-C 107
AT Commands Reference
This command sets the parameters of the Advice of Charge-related price per unit and currency table found in the SIM file,
EFPUCT. PUCT information is used to convert the home units (used in +CAOC, +CACM and +CAMM) into currency units.
Set Command
The Set command sets the price per unit and the currency table. SIM PIN2 is required. The new value is retained after a power
cycle.
Command Response/Action
+CPUC=<currency>,<ppu>,<passw OK
d>
+CME ERROR: <err>
Read Command
The Read command displays the current price per unit and currency table.
Command Response/Action
Test Command
Command Response/Action
+CPUC=? OK
108 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CPUC=?
OK
AT+CPUC="GBP","0.125","2222"
OK
AT+CPUC?
+CPUC: "GBP","0.125"
OK
• If <ppu> contains a dot, a maximum of three digits may appear after the dot, otherwise an error is generated.
For example, if <ppu>=0.61, the Read command displays 0.610. <ppu>=1.2345 terminates in an error.
• If <ppu> does not contain a dot, the number is divided by 1000. For example, if <ppu>=1, the Read command
Note
displays 0.001.
• Due to storage constraints, the <ppu> value is limited to a range of 0 to 4095. Values beyond this range may
result in rounding errors. For example, if <ppu>=4095, the Read command displays 4.095. However, if
<ppu>=4096, the Read command displays 4.090 (the last digit is replaced by 0). If <ppu>=456789, the Read
command displays 456.000.
98-08901C68-C 109
AT Commands Reference
This command controls whether or not the extended format of an outgoing call is displayed or not. The +CR indication is sent
from the g20 to the terminal whenever a data call is initiated by the g20.
Set Command
The Set command enables/disables the extended format of an outgoing data call. When enabled, the outgoing data call is indi-
cated to the terminal through the unsolicited result code +CR:<serv>. When the command is disabled, no +CR is sent to the
terminal.
Command Response/Action
+CR=[<mode>] OK
Read Command
The Read command displays the current service reporting control setting.
Command Response/Action
+CR? +CR:<mode>
Test Command
Command Response/Action
+CR=? +CR:<mode>
<Parameter> Description
110 98-08901C68-C
AT Commands Reference
Examples
This set of commands enables control over supplementary service notifications, including Structured and Unstructured
Supplementary Service Data (USSD) data.
This command handles the enabling and disabling of supplementary service-related, network-initiated, notifications.
Set Command
The Set command enables/disables the display of notification result codes from the TA to the TE.
Command Response/Action
+CSSN=[<n>[,<m>]] OK
+CME ERROR: <err>
When <n>=1 and a supplementary service notification is received after a mobile-originated call setup, the +CSSI: notification
is sent to the TE before any other mobile-originated call setup result codes. When several different <code1>s are received from
the network, each of them receives its own +CSSI result code.
When <m>=1 and a supplementary service notification is received during a mobile-terminated call setup or during a call, or
when a forward check supplementary service notification is received, the unsolicited result code +CSSU: is sent to the TE. In
case of a mobile-terminated call setup, a CSSU is sent after every +CLIP result code (Refer to “+CLIP, Calling Line
Identification”, page 70). When several different events are received from the network, each of them receives its own +CSSU
result code.
The values for <n> and <m> are not saved after power cycle.
Note
Read Command
The Read command displays the current supplementary service notification setting.
Command Response/Action
98-08901C68-C 111
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
0 Disable (default)
1 Enable
0 Disable (default)
1 Enable
112 98-08901C68-C
AT Commands Reference
5 Call on hold has been released (during a voice call; not Yes
a supplementary service notification)
7 Call is being connected with the remote party in an Yes (cannot be tested)
alerted state using an explicit call transfer operation
(during a voice call).
8 Call has been connected with the other remote party Yes (cannot be tested)
using an explicit call transfer operation (during a voice
call or during mobile-terminated call setup). Number
and subaddress parameters may be present:
Examples
98-08901C68-C 113
AT Commands Reference
AT+cssn?
+CSSN: 1,0 // display the current n & m values
OK
+CSSI: 1 // displayed after mobile originated call setup of call forward and n enable
+CSSU: 2 //displayed when a call has been placed on hold (during the call) using the
+CHLD AT command and m enable
This command allows control of Unstructured Supplementary Service Data (USSD), according to GSM 02.90. Mobile-initiated
operations are supported.
Set Command
The Set command enables/disables the display of the following unsolicited result code, +CUSD: <m>[,<str>] (the USSD
response from the network), to the TE. The new value is not retained after a power cycle.
Command Response/Action
+CUSD=<n>[,<str>] OK
Read Command
Command Response/Action
114 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
0 Disable (default)
1 Enable
Example
AT+CUSD=?
+CUSD: (0,1,2)
OK
AT+CUSD=1,"*#100#"OK
98-08901C68-C 115
AT Commands Reference
OK
When the mobile-initiated operation is successful, the MS is implemented according to the required version. It
waits for the USSD response from the network and then sends it to the TE before the final result code.
Note
NO_CAUSE 0
CC_BUSY 1
PARAMETER_ERROR 2
INVALID_NUMBER 3
OUTGOING_CALL_BARRED 4
TOO_MANY_CALLS_ON_HOLD 5
NORMAL 6
DROPPED 10
NETWORK 12
INVALID_CALL_ID 13
NORMAL_CLEARING 14
TOO_MANY_ACTIVE_CALLS 16
UNASSIGNED_NUMBER 17
NO_ROUTE_TO_DEST 18
RESOURCE_UNAVAILABLE 19
CALL_BARRED 20
USER_BUSY 21
116 98-08901C68-C
AT Commands Reference
NO_ANSWER 22
CALL_REJECTED 23
NUMBER_CHANGED 24
DEST_OUT_OF_ORDER 25
SIGNALING_ERROR 26
NETWORK_ERROR 27
NETWORK_BUSY 28
NOT_SUBSCRIBED 29
SERVICE_UNAVAILABLE 31
SERVICE_NOT_SUPPORTED 32
PREPAY_LIMIT_REACHED 33
INCOMPATIBLE_DEST 35
ACCESS_DENIED 43
FEATURE_NOT_AVAILABLE 45
WRONG_CALL_STATE 46
SIGNALING_TIMEOUT 47
MAX_MPTY_PARTICIPANTS_EXCEEDED 48
SYSTEM_FAILURE 49
DATA_MISSING 50
BASIC_SERVICE_NOT_PROVISIONED 51
ILLEGAL_SS_OPERATION 52
SS_INCOMPATIBILITY 53
SS_NOT_AVAILABLE 54
SS_SUBSCRIPTION_VIOLATION 55
98-08901C68-C 117
AT Commands Reference
INCORRECT_PASSWORD 56
TOO_MANY_PASSWORD_ATTEMPTS 57
PASSWORD_REGISTRATION_FAILURE 58
ILLEGAL_EQUIPMENT 59
UNKNOWN_SUBSCRIBER 60
ILLEGAL_SUBSCRIBER 61
ABSENT_SUBSCRIBER 62
USSD_BUSY 63
CANNOT_TRANSFER_MPTY_CALL 65
BUSY_WITH_UNANSWERED_CALL 66
UNANSWERED_CALL_PENDING 68
USSD_CANCELED 69
PRE_EMPTION 70
OPERATION_NOT_ALLOWED 71
NO_FREE_BEARER_AVAILABLE 72
NBR_SN_EXCEEDED 73
NBR_USER_EXCEEDED 74
NOT_ALLOWED_BY_CC 75
MODIFIED_TO_SS_BY_CC 76
MODIFIED_TO_CALL_BY_CC 77
CALL_MODIFIED_BY_CC 78
App. Cause
FDN_FAILURE 90
118 98-08901C68-C
AT Commands Reference
This command relates to the GSM supplementary service called COLP (Connected Line Identification Presentation), which
enables a calling subscriber to obtain the connected line identity (COL) of the called party after setting up a mobile-originated
call with the g20. For example, after setting up a mobile-originated call to one number that is forwarded to another number, the
calling party will see the number of that third party.
When this command is enabled (and the called subscriber permits it), the following intermediate result code is returned from
the TA to the g20: +COLP: <number>,<type>[,<subaddr>,<satype>[,<alpha>]].
This command is activated when COLP is supported by the network.
Note
Set Command
The Set command enables/disables the display of the COL at the TE on the g20. It has no effect on the execution of the COLR
supplementary service on the network.The value set by this command is not retained after a power cycle.
Command Response/Action
+COLP=<n> OK
Read Command
The Read command displays the status of <n>. It also initiates a query of the COLP service provision status and displays <m>.
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 119
AT Commands Reference
<Parameter> Description
0 Disable (default)
1 Enable
<type> Sets the address octet type in integer format (refer to GSM
04.08 [8] subclause 10.5.4.7).
129 Unknown
145 International (used when dialing string includes "+"
international access code character)
<satype> Sets the address octet type in integer format (refer to GSM
04.08 [8] subclause 10.5.4.8).
Example
At+colp=0
OK
At+colp=2
+CME ERROR "Numeric parameter out of bounds"
120 98-08901C68-C
AT Commands Reference
This set of commands enables read/write access to the phone book contained within the g20, including both the numeric and the
alpha information contained in the location. The presentation is according to GSM 07.07.
In some cases, it may be possible to use these commands to access the dialed and received call stacks. However, as these phone
books cannot be edited, the +CPBW command does not work on them.
This command handles the selection of the memory to be used for reading and writing entries in the g20’s phone books’ memory.
(When there is separate storage on the SIM card and in the g20’s internal EEPROM).
Set Command
The Set command selects the phone book memory storage which is to be used by other phone book commands.
Command Response/Action
AT+CPBS=<storage> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the currently selected phone book memory, number of used entries and total number of entries in
the phone book memory.
Command Response/Action
Read format of +CPBS joins RC and MC, therefore the united list will be prompted.
Note
98-08901C68-C 121
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
At+cpbs=?
+CPBS: ("FD","LD","ME","MI","SM","DD","RC","MC")
OK
122 98-08901C68-C
AT Commands Reference
This command recalls phone book entries from a specific entry number or from a range of entries. If only one entry is specified,
and that entry is empty, OK is returned. If a range of entries is requested, all entries that contain data within that range are
returned. If a listing fails in a g20 error, +CME ERROR: <err> is returned.
This command can also be used to obtain information about the number of entries and the maximum size of a phone number
and alpha tag fields in the phone book.
This command acts on the currently active phone book, as selected with the +CPBS command (Refer to “+CPBS, Select Phone
Book Memory”, page 121.)
Set Command
Command Response/Action
Test Command
The Test command returns the entry range supported by the current storage as a compound value and the maximum lengths of
the <number> and <text> fields.
Command Response/Action
<Parameter> Description
98-08901C68-C 123
AT Commands Reference
<Parameter> Description
The MC and RC have the same memory storage area, therefore there are only 10 entries in total. Some of the
entries are listed if the MC phone book is selected, and others are listed if the RC phone book is selected. The phone
book selection is done using the AT+CPBS command.
Note
Example
At+cpbs="ME"
OK
At+cpbr=?
+CPBR: (1-100,40,24)
OK
At+cpbr=1
OK
At+cpbs="MT"
OK
At+cpbr=?
+CPBR: (1-350,40,24)
OK
124 98-08901C68-C
AT Commands Reference
At+cpbr=1,3
OK
At+cpbr=1,350
+CPBR: 101,"+97252999080",145,"Voice Mail"
OK
This command is similar to the +CPBR command, except that it returns several extra fields, including: phone type, voice tag
and index, alert tone, backlight, indication of whether number is the primary number, category and profiling icon.
This command can also be used to obtain information about the number of locations and the maximum size of the phone number
and alpha tag fields in the phone book.
In mailing lists, the <number> field specifies a list of speed dial numbers corresponding to other phone book entries.
These speed dial numbers cannot specify other mailing list entries. Each mailing list should have at least one speed
dial number. Also, a non mailing list phone book entry can be a member of more than one mailing lists.
Note
A mailing list is represented by a list of speed dial numbers separated by spaces. For a mailing list, only the following fields
apply: <index>,<number>,<type>, <text>,<ph_type>,<voice_tag> and <category>. All the other fields are ignored.
Additionally, this command can be used to associate first name and last name attributes with the record. This data is used by
SyncML.
This command acts on the currently active phone book, as selected with the +CPBS command (Refer to “+CPBS, Select Phone
Book Memory”, page 121).
Profiling icons, categories and mailing list features are not supported on all platforms.
In MODE 14, only the following fields apply: <index>, <number>, <type>, <text>, <ph_type> and <voice_tag>. All the other
fields are ignored.
Some versions of this command return a boolean value for the voice tag indicating whether it is present. Other versions return
a range (0-21) indicating its location.
Refer to the corresponding +MAID bits to determine the specific behavior for each of these features.
Set Command
Command Response/Action
98-08901C68-C 125
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
<is_primary_range> Lists the range of valid values for the <is_primary> field.
126 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CPBS="ME"
OK
AT+MPBR=21 //A mailing list "Friends" with 4 members and voice_tag set to 1 and category set to 3
+MPBR: 21,"1 2 5 10",128,"Friends",7,1,255,0,1,3,255,255,0
AT+MPBR=22 //A mailing list "Business" with 3 members and voice_tag set to 5 and category set to
"General"
+MPBR: 22,"7 9 10",128,"Business",7,5,255,0,1,1,255,255,0
98-08901C68-C 127
AT Commands Reference
AT+MPBR=25 //Entry with first and last name information ("Clinton" is the last name)
+MPBR: 25,"18887598888",129,"George Clinton",3,2,255,0,0,1,0,0,7
OK
AT+MPBR=25 //Entry with first and last name information ("George" is the last name)
+MPBR: 25,"18887598888",129,"George Curious",3,2,255,0,0,1,0,1,7
OK
This execution command enables the user to search for a particular entry, by name, in the currently active phone book. If no
matching entry is found, the command returns OK. If multiple matches are found, all are returned.
Set Command
Command Response/Action
Test Command
Command Response/Action
128 98-08901C68-C
AT Commands Reference
<Parameter> Description
<text> Text identifier for a phone book entry that starts with the
substring <findtext>, according to the character set as
specified by command +CSCS.
Example
This command is similar to +CPBF, except that it also returns the extra fields that are unique to Motorola phones. These fields
include the phone type, voice tag, alert tone, backlight, is_primary field, category and profiling icon, as described in Table 46,
below.
98-08901C68-C 129
AT Commands Reference
Set Command
Command Response/Action
<Parameter> Description
130 98-08901C68-C
AT Commands Reference
<Parameter> Description
<alert_tone> The distinctive alert tone style that represents the number
of the originator of an incoming call
255 Invalid alert tone entry indicating that no ringer is set
<is_primary> Indicates whether the number is the primary number for the
user
0 Non-primary number
1 Primary number
<profiling_icon> Indicates the index of the icon associated with the phone
book entry
0-14 Valid pre-defined icons
255 Invalid icon
Example
AT+CPBS="MT"
OK
AT+MPBF="Moto"
98-08901C68-C 131
AT Commands Reference
+MPBF: 2,"8475767800",129,"Moto",3,
OK
AT+MPBF="" //Example of searching for everything in the phonebook and finding nothing (no data
in g20)
+MPBF:102,"01234567890",129,"Motorola",8,0,255,0,0,1,255,255,0,"""",0,0
This command enables the user to store a new entry in the phone book, or edit/delete an existing entry from the phone book. A
particular entry in the phone book can be stored, or the next available entry is used.
This command writes the entry in the currently active phone book, selected with the +CPBS command (Refer to “+CPBS, Select
Phone Book Memory”, page 121). The entry is selected by <index>, the phone number is entered into the <number> field and
text associated with the number is entered into the <text> field. If these fields are omitted, the phone book entry is deleted. If
the <index> field is omitted, but a number is entered in the <number> field, the phone number is entered into the first available
entry in the phone book. If the writing fails in a g20 error, +CME ERROR: <err> is returned.
In the case of SIM storage, the length of the field may not be available. If the g20 is not currently reachable, +CME ERROR:
<err> is returned. If the storage does not offer format information, the format list should not have parentheses.
The "FD" phone book supports single wild card characters (?) in the telephone number. In cases of fixed dialing,
this entry in the "FD" phone book defines a group of permitted numbers.
Note Call indications related to a fixed dialing entry containing wild cards do not display any <alpha> identifier.
Set Command
Command Response/Action
AT+CPBW=[<index>][,<number> OK
[,<type>[,<text>]]] or:
+CME ERROR: <err>
Test Command
Command Response/Action
132 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
At+cpbs="MT"
OK
At+cpbw=?
+CPBW: (1-350),40,(129,145),16
OK
AT+cpbw=92,"+123456",145,"Test"
OK
AT+cpbr=92
+CPBR: 92,"+123456",145,"Test"
OK
98-08901C68-C 133
AT Commands Reference
This command enables the user to store a new entry in the phone book, or to delete an existing entry from the phone book. An
entry can be stored in a particular location in the phone book, or in the next available location.
This command differs from the GSM 07.07 "+CPBW" command in that it accepts the input from several extra fields, including
phone type, voice tag and index, alert tone, backlight, is_primary field, category and profiling icon.
Additionally, this command can be used to associate the first name and last name attributes with the record. This data is used by
SyncML.
In mailing lists, the <number> field specifies a list of speed dial numbers corresponding to other phone book
entries. Refer to “+MPBR, Read Extended Phone Book Entries”, page 125, for further details.
Note
In mailing lists, only the following fields apply: <index>,<number>,<type>, <text>, <ph_type>,<voice_tag> and <category>.
All the other fields are ignored.
Email addresses cannot contain the `#' character.
Profiling icons, categories and mailing list features are not supported on all platforms.
Some versions of this command return a boolean value for the voice tag indicating whether it is present or not. Other versions
return a range (0-21) indicating its location.
134 98-08901C68-C
AT Commands Reference
Refer to the corresponding +MAID bits to determine specific behaviors for each of these features on different implementations.
Set Command
Command Response/Action
+MPBW=[<index>][,<number> OK
[,<type>[,<text>[,<ph_type> or:
[, <voice_tag>[,<alert_tone> CME ERROR.
[,<backlight>[,<is_primary>
[,<category>[,<profiling_icon>
[,<first_last_enabled>,
<sub_field_index>]]]]]]]]]]]
<Parameter> Description
98-08901C68-C 135
AT Commands Reference
<Parameter> Description
<alert_tone> The distinctive alert tone style that represents the number
of the originator of an incoming call
255 Invalid alert tone entry indicating that no ringer is set
<is_primary> Indicates whether the number is the primary number for the
user
0 Non-primary number
1 Primary number
<profiling_icon> Indicates the index of the icon associated with the phone
book entry
0-14 Valid pre-defined icons
255 Invalid icon
136 98-08901C68-C
AT Commands Reference
Example
AT+CPBS="MT"
OK
AT+MPBW=,"8005551212",129,"Sam Spade",2,3,0,1,1,3,0,0,4 //Store the primary number for user "Sam Spade" in
first available location and provide first name/last
name information ("Spade" is the last name)
OK
AT+MPBW=12,"+5551212",145,"Sam Spade",0,0,12,0,0,1,255,255,0 //Store the non-primary number for user "Sam Spade"
in index 12 and omit first name/last name information
OK
This command handles the selection of the number to the voice mail server. The new value should also remain after power cycle.
Set Command
The Set command sets the number to the voice mail server.
Command Response/Action
+CSVM=<mode>[,<number>[,< OK
type>]]
+CME ERROR: <err>
98-08901C68-C 137
AT Commands Reference
Read Command
The Read command displays the currently selected voice mail number and status (enabled or disabled).
Command Response/Action
+CSVM? +CSVM:<mode>,<number>,<type>
Test Command
The Test command displays the list of supported <mode>s and <type>s.
Command Response/Action
<Parameter> Description
If <mode> is set to 0, <number> and <type> are ignored. If <mode> is set to 1, <number> is mandatory.
Note
138 98-08901C68-C
AT Commands Reference
Example
AT+CSVM=?
+CSVM: (0,1),(129,145)
OK
AT+CSVM=1,"+972555123456","145"
OK
AT+CSVM?
+CSVM: 1,"972555123456",145
OK
This command is used to determine how long the g20 waits before attempting to reregister after a registration attempt has failed
and the g20 is not registered. The available settings are Slow Search, Medium Search, Fast Search or Continuous Search.
See Table 50, “+MFS Parameters”, for the minimum interval lengths for every frequency of search. The interval between
attempts can vary, depending on the number of operators displayed in the preferred operator list.
This command sets or reads Frequency of Search and Search mode settings. After a Set command has been executed, new
Frequency of Search and Search mode values are active.
This command is a non-basic command, which means that the g20 module rejects the command with an appropriate error
message when the SIM is not present and/or the phone is in lock state.
Set Command
This command enables you to change and store in Flex the new values of Frequency of Search <freq> and Search mode <mode>.
If only the <freq> value is given, then the Set command is interpreted as follows:
• Store new <freq> value. The <mode> value remains unchanged.
If <freq> and <mode> values are given, then the Set command is interpreted as follows:
• Store new <freq> and <mode> values.
Otherwise, an error message is sent to the DTE.
If the phone is not registered, then a set operation of Search mode to Manual is refused and ERROR is sent to the
DTE.
Note
98-08901C68-C 139
AT Commands Reference
Command Response/Action
+MFS=<freq> OK
[,<mode>] or:
+CME ERROR: <err>
Read Command
The Read command returns the current settings for values of <freq> and <mode>.
Command Response/Action
Test Command
The Test command returns the possible <freq> and <mode> values.
Command Response/Action
<Parameter> Description
140 98-08901C68-C
AT Commands Reference
<Parameter> Description
<mode> This value defines the search mode. The mode defines
whether network selection and registration are performed
automatically by the g20, or whether the selection is forced
to the specific operator to which the g20 is registered to at
a given moment.
0 Automatic
1 Manual
The default value is already stored in NVM (FLEX) and
thus is flex-dependent.
Example
OK
at+mfs? //Read command
+MFS: 1,0
OK
at+mfs=3 //Set only Frequency of search
OK
at+mfs?
+MFS: 3,0
OK
at+mfs=2,1 //Set Frequency of search and search mode.
OK
at+mfs?
+MFS: 2,1
//POWER CYCLE phone
OK
98-08901C68-C 141
AT Commands Reference
at+mfs=0
OK
at+mfs?
+MFS: 0,1
OK
This command enables unsolicited reporting of indications of SIM deactivation and invalidation. The indications include the
cause for deactivation and invalidation.
This command is a basic command, which means the g20 module should accept the command and act according to received
parameters regardless of SIM presence and phone lock state.
In MUX mode, this AT command is allowed on DLC2 only.
Set Command
Command Response/Action
The table below defines mode values for the Set command.
Read Command
Command Response/Action
142 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
98-08901C68-C 143
AT Commands Reference
Example
at+mdsi?
+MDSI: 0
OK
at+mdsi=?
+MDSI: (000,001)
OK
at+mdsi=1
OK
OK
//SIM card does not support GPRS
+MDSI: 2, 7, "GPRS", "GPRS services not allowed"
OK
at+cops=0
OK
//Unsolicited messages
+MDSI: 1, 2, "GSM", "IMSI unknown in HLR"
144 98-08901C68-C
AT Commands Reference
//Unsolicited messages
+MDSI: 2, 14, "GPRS", "GPRS services not allowed in this PLMN"
at+cgatt?
+CGATT: 0
OK
This AT command sets EFmsisdn in the SIM. The setting is placed in the given <index>, using <number> and <alpha> as the
values to be set.
Additionally, when setting the number in a specific storage space, the <mode> parameter defines whether that <number> and
corresponding <alpha>should be presented after entering the correct PIN number.
After entering the correct PIN number, the last <index>, whose <mode> was set to 1, is sent to the DTE. This indication is
unsolicited and appears when SIM information is ready.
At any given time, only one <index> or no <index> can have <mode> = 1. Therefore, setting
<mode> = 1 for one of the supported <index>es implicitly means that all other <index>es have
Note <mode> = 0.
Set Command
The Set command sets EFmsisdn in the SIM. The setting is placed in the given <index>, using <number> and <alpha> as the
values to be set.
If only the <mode> value is given, then the Set command is interpreted as follows:
If only a pair of <mode> and <index> values are given, then the Set command is interpreted as follows:
<mode> = 0, <index> = any valid index Set mode for given index to 0
<mode> = 1, <index> = any valid index Set mode for given index to 1
If only <mode>, <index> and <number> values are given, then the Set command is interpreted as follows:
• Store in <index> of EFmsisdn in the SIM, the <number>. Since no <alpha> was given, corresponding <alpha> will be
identical to the <alpha> already stored in this <index>. Also store the <mode> value for this <index>.
If all parameters are given, then the Set command is interpreted as follows:
• Store in <index> of EFmsisdn in the SIM, the <number> and corresponding <alpha>. In case an empty string was given as
the <alpha> parameter, the corresponding <alpha> will be an empty string. Also store the <mode> value for this <index>.
98-08901C68-C 145
AT Commands Reference
Only the last <index> whose mode was set to 1 will be sent to the DTE.
Note
Command Response/Action
+MCSN=<mode> OK
[,<index>[,<number>[,<alpha>]]] or:
+CME ERROR: <err>
Read Command
The Read command queries the current settings for the <index> of the storage place in which the <mode> is equal to 1. If no
index has its <mode> set to 1, then the response <index> will be equal to 0.
Command Response/Action
Test Command
The Test command returns the possible <mode> and <index> values.
Command Response/Action
146 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
OK
at+mcsn=1,1,"054444444","VOICE" // Setting record 1 in EFmsisdn in the SIM
// Enable unsolicited indication
98-08901C68-C 147
AT Commands Reference
OK
at+mcsn=0,2,"039999999","OFFICE" // Setting record 2 in EFmsisdn in the SIM
OK
at+mcsn=0,3,"1111","PIN1" // Setting record 3 in EFmsisdn in the SIM
OK
at+mcsn=0,4,"8523","PIN2" // Setting record 4 in EFmsisdn in the SIM
OK
at+cnum // Reading EFmsisdn from the SIM
+CNUM: "VOICE","054444444",129
+CNUM: "OFFICE","039999999",129
+CNUM: "PIN1","1111",129
+CNUM: "PIN2","8523",129
+CNUM: "","",0
OK
at+mcsn?
+MCSN: 1
OK
// Restart Phone
at+cpin="1111"
OK
// Unsolicited information of record 1 in EFmsisdn in the SIM
+MCSN: "VOICE","054444444"
// Restart Phone
at+cpin="1111"
148 98-08901C68-C
AT Commands Reference
OK
at+mcsn=0,3,,"ada"
ERROR
at+mcsn=0,3,"3456346" // Update the <number> of record 3 same <alpha>
OK
at+cnum // Reading EFmsisdn from the SIM
+CNUM: "VOICE","054444444",129
+CNUM: "OFFICE","039999999",129
+CNUM: "PIN1","3456346",129
+CNUM: "PIN2","8523",129
+CNUM: "","",0
OK
at+mcsn=0,3,"","FAX" // Update the <alpha> of record 3 same <number>
OK
at+cnum // Reading EFmsisdn from the SIM
+CNUM: "VOICE","054444444",129
+CNUM: "OFFICE","039999999",129
+CNUM: "FAX","",0
+CNUM: "PIN2","8523",129
+CNUM: "","",0
OK
at+mcsn=0,3,"","" // Resetting record 3 in EFmsisdn in the SIM
OK
at+cnum // Reading EFmsisdn from the SIM
+CNUM: "VOICE","054444444",129
+CNUM: "OFFICE","039999999",129
+CNUM: "","",0
+CNUM: "PIN2","8523",129
+CNUM: "","",0
OK
98-08901C68-C 149
AT Commands Reference
This command returns the collective percentage of memory used by the phonebook and datebook in their shared dynamic
memory storage. A single percentage value is returned representing the combined percentage used by both the phonebook and
datebook.
Read Command
The Read command queries the current (combined) percentage used by the phonebook and datebook in their shared dynamic
memory storage.
Command Response/Action
<Parameter> Description
Example
AT+mpdpm?
+MPDPM: 0
OK
at+cpbs="mt"
OK
at+cpbr=?
+CPBR: (001-350),040,016
OK
at+cpbr=1,100
OK
150 98-08901C68-C
AT Commands Reference
at+cpbw=,"035658020",129,"Phone0"
OK
at+cpbw=,"035658021",129,"Phone1"
OK
at+cpbw=,"035658022",129,"Phone2"
OK
at+cpbw=,"035658023",129,"Phone3"
OK
at+cpbw=,"035658024",129,"Phone4"
OK
at+cpbw=,"035658025",129,"Phone5"
OK
at+cpbw=,"035658026",129,"Phone6"
OK
at+cpbw=,"035658027",129,"Phone7"
OK
at+cpbw=,"035658028",129,"Phone8"
OK
at+cpbw=,"035658029",129,"Phone9"
OK
at+cpbw=,"035658030",129,"Phone10"
OK
AT+mpdpm?
+MPDPM: 2
OK
This set of commands enables read/write access to the date book contained in the g20. These commands are optional, and are
only supported if the g20 offers date book operations.
This command locks/unlocks the date book database. It is used primarily to synchronize the date book with PIM (Personal
Information Management) software.
98-08901C68-C 151
AT Commands Reference
Set Command
Command Response/Action
+MDBL=<n> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current date book lock/unlock status.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
AT+MDBL=?
+MDBL: (0-1)
OK
AT+MDBL=1
OK
AT+MDBL?
+MDBL: 1
152 98-08901C68-C
AT Commands Reference
This command reads an entry or range of entries stored in the date book.
Set Command
Command Response/Action
+MDBR=<i1>[,<i2>] +MDBR:<i>,<ev_title>,<timed>,<al_en>,<start_time>,
<start_date>,<duration>,<al_time>,<al_date>,
<repeat>
Test Command
The Test command returns all the pertinent date book parameters required for the PIM software.
Command Response/Action
<Parameter> Description
98-08901C68-C 153
AT Commands Reference
<Parameter> Description
Example
AT+MDBR=?
+MDBR: 375,12,64,64,1
OK
This command sets/reads the auto-delete user preference setting in the date book database. The setting controls the length of
time that date book records are stored after the event has occurred, and the length of time that the To Do list items are stored
once they have been completed, or are overdue.
Set Command
Command Response/Action
+MDBAD=<n> Ok
or:
+CME ERROR: <err>
154 98-08901C68-C
AT Commands Reference
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
AT+MDBAD=?
+MDBAD: (0,1,2,4,8)
OK
AT+MDBAD=1
OK
AT+MDBAD?
+MDBAD: 1
OK
98-08901C68-C 155
AT Commands Reference
This command reads/sets the g20's current date and time settings. It is compliant with the GSM 07.07 Specification's +CCLK
command.
Set Command
The Set command sets the date and time on the system clock.
Command Response/Action
+CCLK=<time> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current date and time setting.
Command Response/Action
Test Command
The Test command returns valid parameters for the +CCLK Set command.
Command Response/Action
156 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CCLK=?
+CCLK: "99/12/31,23:59:59,(-47-+48)"
OK
AT+CCLK="00/12/25,08:30:00"
OK
AT+CCLK?
+CCLK: "00/12/25,08:30:05-08"
AT+CCLK="01/07/04,21:00:12+43"
OK
AT+CCLK?
+CCLK: "01/07/04,21:00:34+43"
OK
98-08901C68-C 157
AT Commands Reference
4.5 SMS
Support of SMS data transmission and reception is according to the GSM 07.05 specification. This standard provides for an
external terminal unit to send and receive information in an SM. This standard also provides for the transferring of messages
between the g20 and the terminal, and the reporting of SM reception events.
g20 supports both text mode and PDU mode SMS.
PDU mode SMS currently supports data coding schemes GSM (7 bit) and UCS2. 8 bit (data) coding scheme will
be supported in future releases.
Note
This command handles the selection of the messaging service. It returns the types of messages that are supported by the g20.
Set Command
The Set command sets the type of service and returns the types of messages supported by the g20.
Command Response/Action
Read Command
The Read command returns the supported message types along with the current service setting.
Command Response/Action
Test Command
The Test command returns a list of all the services supported by the terminal.
Command Response/Action
158 98-08901C68-C
AT Commands Reference
<Parameter> Description
Only the 128 (manufacturer-specific) messaging service is supported by the g20. The service is supported for all messaging
types (mobile terminated, mobile originated and broadcast).
Example
AT+CSMS=128
+CSMS: 001,001,001
OK
AT+CSMS?
+CSMS: 128,001,001,001
OK
AT+CSMS=?
+CSMS: (128)
OK
98-08901C68-C 159
AT Commands Reference
This command handles the selection of the preferred message storage area. The message storage area is divided into three parts,
mem1, mem2 and mem3 and each part is used for storing different types of messages.
Set Command
Command Response/Action
Read Command
The Read command displays the selected memory storage type for the three memory areas.
Command Response/Action
Test Command
The Test command lists the supported memory storage for <mem1>, <mem2> and <mem3>.
Command Response/Action
<Parameter> Description
<mem> SM SU memory
Example
AT+CPMS="SM"
+CPMS: 17,352,17,352
OK
160 98-08901C68-C
AT Commands Reference
AT+CPMS=?
+CPMS: ("SM","SM")
OK
The Set command handles the selection of the message format used with send, list, read and write commands, as well as the
format of unsolicited result codes resulting from message receipts. The g20 supports both PDU mode (where entire TP data units
are used) and text mode (where the body of the message and its headers are given as separate parameters).
Set Command
Command Response/Action
+CMGF=<mode> OK
or:
+CMS ERROR: <err>
Read Command
Command Response/Action
+CMGF? +CMGF:<mode>
Test Command
Command Response/Action
<Parameter> Description
0 PDU mode
1 Text mode (default)
98-08901C68-C 161
AT Commands Reference
Example
AT+CMGF=1
OK
AT+CMGF?
+CMGF: 1
OK
AT+CMGF=?
+CMGF: (0,1)
OK
This command handles the selection of the SCA and the TOSCA. The SCA is the phone number of the SC (Service Center).
The TOSCA can be 129 (local) or 145 (international), where 129 is the default value. The TOSCA parameter of the Set
command is optional, and can be omitted. If the SCA parameter of the Set command is prefixed by the "+" character, it indicates
that TOSCA is 145.
162 98-08901C68-C
AT Commands Reference
The following table shows the +CSCA input characters and their hexadecimal values.
* Instructions 0x2A
# 0x23
Set Command
Command Response/Action
+CSCA=<sca>[,<tosca>] OK
or:
+CMS ERROR: <err>
98-08901C68-C 163
AT Commands Reference
Read Command
Command Response/Action
Test Command
The Test command for +CSCA is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the +CSCA parameters.
<Parameter> Description
Example
AT+CSCA="4252833433"
OK
AT+CSCA?
+CSCA: "4252833433",129
OK
This command handles enabling of unsolicited notifications to the terminal when an SM is received by the g20.
Set Command
Command Response/Action
+CNMI=[<mode>[,<mt>[,<bm> OK
[,<ds>[,<bfr>]]]]] or:
+CMS ERROR: <err>
Read Command
Command Response/Action
+CNMI? +CNMI:<mode>,<mt>,<bm>,<ds>,<bfr>
164 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
AT+CNMI=?
+CNMI: (000,003),(000-002),(000,002),(000),(000)
OK
AT+CNMI?
+CNMI: 000,000,000,000,000
OK
AT+CNMI=003,001,000,000,000
OK
98-08901C68-C 165
AT Commands Reference
This command acknowledges the receipt of a +CMT response from the terminal to the g20. It confirms the correct reception of
a new SMS-DELIVER message, which was routed directly to the terminal. When the g20 sends a +CMT response to the
terminal, it waits a predefined timeout of 60 seconds for the +CNMA acknowledgment. The g20 will not send another +CMT
result code to the terminal before the previous one is acknowledged, or the timeout expires. Upon receipt of the +CNMA
command, the g20 sends RP-ACK to the network. The acknowledged SM will not be saved in message storage.
If the g20 does not receive acknowledgment within the required time, it sends RP-ERROR to the network. The g20
automatically disables routing to the terminal by setting both <mt> and <ds> values of +CNMI to zero. The unacknowledged
SM is saved in message storage.
If the command is executed but no acknowledgment is expected, or some other g20 related error occurs, the final result code
+CMS ERROR: <err> is returned.
Set Command
Command Response/Action
AT+CNMA OK
or:
+CMS ERROR: <err>
Read Command
The Read command for +CNMA is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
Test Command
The Test command for +CNMA is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
Example
AT+CNMI=3,2
OK
+CMT: "+97254565132","2003/4/9,17:14:33"
new message text
AT+CNMA
OK
166 98-08901C68-C
AT Commands Reference
The +CMTI unsolicited response is sent to the TE upon receipt of a new mobile-terminated SM, if the +CNMI parameter <mt>
is set to 1. Refer to “+CNMI, New Message Indications to Terminal” on page 164.
This unsolicited message indicates that a new MT message was received, and is stored in location <index>.
Unsolicited Response
+CMTI: <mem>,<index>
<Parameter> Description
Example
AT+CNMI=3,1
OK
+CMTI: "SM",004
The +CMT unsolicited response is sent to the TE upon receipt of a new mobile-terminated SM if the +CNMI parameter <mt>
is set to 2. Refer to “+CNMI, New Message Indications to Terminal” on page 164.
This unsolicited message displays the received MT message.
Unsolicited Response
In text mode: (+CMGF=1):
+CMT: <oa>,<scts><CR><LF><data>
In PDU mode: (+CMGF=0):
+CMT: [<alpha>],<length><CR><LF><pdu>
<Parameter> Description
98-08901C68-C 167
AT Commands Reference
<Parameter> Description
After sending a +CMT unsolicited response to the TE, the g20 will expect a +CNMA (new message acknowledgement) from
the TE within a predefined timeout of 60 seconds. The g20 will not send another +CMT unsolicited response to the TE before
the previous one is acknowledged. If the +CMT is acknowledged within the timeout, the new SM is not saved in the message
storage. If the +CMT is not acknowledged and the timeout has expired, the new SM is saved in the message storage and +CNMI
parameter <mt> is set to 0.
The +CBM unsolicited response is sent to the TE upon receipt of a new cell broadcast message if +CNMI parameter <bm> is
set to 2. Refer to “+CNMI, New Message Indications to Terminal” on page 164.
This unsolicited message displays the received CB message. The displayed CBM is not saved in message storage.
Unsolicited Response
In text mode: (+CMGF=1):
+CBM: <sn>,<mid>,<dcs>,<page>,<page><CR><LF><data>
In PDU mode: (+CMGF=0):
+CBM: <length><CR><LF><pdu>
<Parameter> Description
168 98-08901C68-C
AT Commands Reference
These commands display a list of all SMs with the status value <stat>, from the g20 message storage <mem1> (selected using
the +CPMS command). The command returns a series of responses, one per message, each containing the message index, status,
and data. If the status of a message is "RECEIVED UNREAD", execution of the +CMGL command changes the status of the
message to "RECEIVED READ".
The +MMGL command does not change the message status. In addition, +MMGL includes a <stat> selection that can be used
to query the g20 for a list of message headers without attendant message data.
Set Command
Command Response/Action
Or
Or
98-08901C68-C 169
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
AT+CMGL="ALL"
+CMGL: 1,"REC READ","+358501234567"
Message text
+CMGL: 2,"STO UNSENT","+358501234567"
Message text
170 98-08901C68-C
AT Commands Reference
OK
AT+CMGL=?
+CMGL: ("REC UNREAD","REC READ","STO UNSENT","STO SENT","ALL")
OK
These commands handle the reading of SMs. The command displays the message in location <index> of the preferred message
storage <mem1> (selected using the +CPMS command). If the status of the message is "RECEIVED UNREAD", the +CMGR
command changes the status to "RECEIVED READ". The +MMGR command does not change the message status.
Set Command
The Set command reads the SM located at <index> in the g20 message storage and displays it.
Command Response/Action
98-08901C68-C 171
AT Commands Reference
<Parameter> Description
Example
AT+CMGR=2
+CMGR: "REC UNREAD","+358507654321","95/07/03,17:38:15+04"
Message contents
OK
This command handles changing the <stat> attribute of an SM in the g20 memory location <index>, preferred message storage
<mem1>, from "REC UNREAD" to "REC READ". (<mem1> is selected using the +CPMS command.) If the status change
fails, +CMS ERROR: <err> is returned.
172 98-08901C68-C
AT Commands Reference
Set Command
Command Response/Action
+MMAR=<index> OK
or:
+CMS ERROR: <err>
Read Command
The Read command for +MMAR is not defined, and therefore is not supported by the g20. The g20 returns an error.
Test Command
The Test command for +MMAR is not defined, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the +MMAR parameters.
<Parameter> Description
Example
AT+MMAR=76
OK
This command sends a pre-stored message, written previously using the +CMGW command. The <da> parameter is optional.
If a DA is given, the message is sent to that address. Otherwise the message is sent to the DA it was stored with (if any was
entered), and remains in the Drafts folder. If no DA is found, an error occurs.
Set Command
Command Response/Action
A message that was written with a destination address will be moved to the Outbox folder only if sent using
+CMSS=<index> command (without a destination address parameter).
Note
98-08901C68-C 173
AT Commands Reference
<Parameter> Description
Example
AT+CMSS=7
+CMSS: 12
OK
AT+CMSS=7,"054565132",129
+CMSS: 13
OK
This command is used to write and save a message to the g20 message storage. The message is saved in memory, and the
message index is displayed to the user.
By default, messages are saved with the status of "STO UNSENT", but status “STO SENT” can be applied using the <stat>
parameter
Set Command
The Set command writes a message and stores it.
A message that was written without a destination address will remain in the Drafts folder.
Note
Command Response/Action
174 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CMGW="5124335432"
>This is the message body <CTRL+Z> //<CTRL+Z> ends the prompt text mode and returns to
regular AT command mode
+CMGW: 126
OK
AT+CMGF=1
OK
AT+CMGW
> TEST <CTRL+Z>
+CMGW: 195
OK
AT+CMGF=0
OK
AT+CMGW=24
>079179521201009511FF0B917962543940F20008001400410042004300440045 <CTRL+Z>
+CMGW: 128
OK
98-08901C68-C 175
AT Commands Reference
This command handles deletion of a single message from memory location <index>, or multiple messages according to
<delflag>. If the optional parameter <delflag> is entered, and is greater than 0, the <index> parameter is practically ignored. If
deletion fails, result code +CMS ERROR: <err> is returned.
The deletion of multiple commands is a time-consuming process that may require more than 60 seconds to
complete.
Note
Set Command
Command Response/Action
+CMGD=<index>[,<delflag>] OK
or:
+CMS ERROR: <err>
Read Command
The Read command for +CMGD is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
Test Command
Command Response/Action
<Parameter> Description
176 98-08901C68-C
AT Commands Reference
Example
AT+CMGD=4
OK
AT+CMGD=1,3
OK
This command handles the selection of the service or service preference used by the g20 to send mobile-originated SMS
messages.
This command is network dependent, which means that the network must support SMS over GPRS.
Note
Set Command
The Set command selects the service or service preference used to send SMS messages. The value that is set is not retained after
a power cycle.
Command Response/Action
+CGSMS=[<service>] OK
Read Command
The Read command displays the current SMS service preference setting.
Command Response/Action
Test Command
The Test command displays a list of currently available <service>s on the network.
Command Response/Action
98-08901C68-C 177
AT Commands Reference
<Parameter> Description
0 GPRS
1 Circuit switched (default)
2 GPRS preferred (use circuit switched if GPRS is not
available)
3 Circuit switched preferred (use GPRS if circuit
switched is not available)
Example
AT+CGSMS=?
CGSMS:(0-3)
OK
AT+CGSMS?
CGSMS: 1
OK
This command sends an SM from the g20 to the network. The message reference value <mr> is returned to the g20 upon success-
ful delivery of the message.
Set Command
The Set command validates the input parameters, sends the SM to network and reports the result of the operation to the g20.
Command Response/Action
178 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CMGS="064593042",129
>This is the message body <CTRL+Z> //<CTRL+Z> ends the prompt text mode and returns to
regular AT command mode
OK
AT+CMGF=0
OK
AT+CMGS=24
>079179521201009511FF0B917962543940F20008001400410042004300440045 <CTRL+Z>
+CMGS: 128
OK
This command handles the selection of cell broadcast message types and data coding schemes received by the g20.
Set Command
The Set command sets the cell broadcast message type and data coding scheme.
Command Response/Action
98-08901C68-C 179
AT Commands Reference
Read Command
The Read command displays the current MID and DCS settings.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
0-65534
0-255
A combination of discrete values or intervals can be entered for <mids> and <dcss>, for example, "0,1,5,320-
324,922".
Note Parameter values must be entered in ascending order.
180 98-08901C68-C
AT Commands Reference
This command enables/disables/exercises the SMS alert tone for an arriving SMS. It does not apply on Cell Broadcast SMS.
Set Command
Command Response/Action
+MCSAT=<mode> OK
[,<dcs_mask>[,....]] or:
+CME ERROR: <err>
Read Command
The Read command returns the current <mode> and current <dcs_mask>s.
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 181
AT Commands Reference
<Parameter> Description
Example
AT+MCSAT=?
+MCSAT:(0-2)
OK
AT+MCSAT?
+MCSAT: 1
OK
AT+MCSAT=2
OK
AT+MCSAT=1,00001000 // UCS2
OK
AT+MCSAT=1,00000100 // UTF8
OK
AT+MCSAT=1,00000000 // GSM
OK
AT+MCSAT=1
182 98-08901C68-C
AT Commands Reference
OK
AT+MCSAT=0
OK
Set Command
Command Response/Action
+MEGA=<ega> OK
or:
CME ERROR: <err>
Read Command
Command Response/Action
<Parameter> Description
Example
AT+MEGA="4252833433"
OK
AT+MEGA?
+MEGA: "4252833433"
OK
98-08901C68-C 183
AT Commands Reference
4.6 NETWORK
This command displays the received signal strength indication <rssi> and channel bit error rate <ber> from the g20.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
184 98-08901C68-C
AT Commands Reference
Example
at+csq
+CSQ: 031,000
OK
at+csq=?
+CSQ: (000-031,099),(000-007,099)
OK
This command displays the Radio Link Protocol parameters that are used when non-transparent data calls are originated.
Set Command
Command Response/Action
+CRLP= OK
[<iws>[,<mws>[,<T1>[,<N2>]]]] or:
+CME ERROR: <err>
Read Command
Command Response/Action
98-08901C68-C 185
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
AT+CRLP=?
+CRLP: (010-061),(010-061),(048-255),(006-010)
OK
AT+CRLP?
+CRLP: 061,061,048,006
OK
186 98-08901C68-C
AT Commands Reference
Set Command
The Set command controls the presentation of an unsolicited result code and the result of the Read operation.
Command Response/Action
AT+CREG=<n> OK
or:
+CME ERROR: <err
Read Command
The Read command returns the status of the result code presentation and shows whether the network has currently indicated the
registration of the g20. Location information elements <lac> and <ci> are returned only when <n>=2 and the g20 is registered
in the network.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
98-08901C68-C 187
AT Commands Reference
<Parameter> Description
<stat> 0 Not registered, and the g20 is not searching for a new
operator to which to register.
1 Registered, home network.
2 Not registered, but the g20 is searching for a network.
3 Registration denied.
4 Unknown.
5 Registered, roaming.
6 Registering
7 Emergency Call Only
8 Registered, but the g20 is searching for an available
network.
Example
at+creg=?
+CREG: (000 - 002)
OK
at+creg?
+CREG: 000,001
OK
at+creg=2
OK
at+creg?
+CREG: 002,001, a065,988b
OK
at+creg=1
OK
at+creg?
+CREG: 001,001
OK
at+creg=0
OK
188 98-08901C68-C
AT Commands Reference
Set Command
The Set command controls the presentation of an unsolicited result code "+CGREG:" and the result of the Read operation.
Command Response/Action
AT+CGREG=[<n>] OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the status of the result code presentation and shows whether the network has currently indicated the
GPRS registration of the g20. Location information elements <lac> and <ci> are returned only when <n>=2 and the g20 is
registered in the network.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
98-08901C68-C 189
AT Commands Reference
<Parameter> Description
Example
at+cgreg=?
+CGREG: (000 - 002)
OK
at+cgreg=2
OK
at+cgreg?
+CGREG: 002,001,a065,76fd
OK
at+cgreg=1
OK
at+cgreg?
+CGREG: 001,001
OK
at+cgreg=0
OK
Example for unsolicited report:
at+cgreg=1
OK
at+cgatt=0
OK
+CGREG: 000
at+cgatt=1
OK
+CGREG: 001
//Remove GPRS SIM
+CGREG: 002
190 98-08901C68-C
AT Commands Reference
//Insert SIM
+CGREG: 003
+CGREG: 001
This command enables accessories to access the network registration information, and the selection and registration of the GSM
network operator. The g20 is registered in the Home network.
Any attempt to register to a non-available or restricted network (AT+COPS=1,x,"zzzzzz") is reported as failed. If this occurs,
the g20 returns to the Home network and does not remain unregistered.
The Enhanced Operator Name String (EONS) feature enables the g20 to return the operator name displayed on the handset. This
feature allows the SIM card to store a mapping of MCC/MNC code pairs to the displayed operator name. As a result, several
operators can share a single network while having their handsets display their own name as the network operator.
Testing the enhanced ONS feature requires a "SIM ONS" SIM card.
Set Command
The Set command can force an attempt to select and register a specific GSM network operator. The <mode> selects whether
this is done automatically by the g20, or whether the selection is forced to an operator <oper> (given in format <format>). If the
selected operator is not available, no other operator is selected (except when the <mode> is set to 4).
<mode>=2 forces an attempt to deregister from the network.
<mode>=3 sets the operator format to all further Read commands (+COPS?) as well.
The selected mode applies to future network registrations, for example, once you deregister from the network, the g20 remains
unregistered until you select <mode>=0, <mode>=1, or <mode>=4.
Command Response/Action
AT+COPS=[<mode>[,<format> OK
[,<oper>]]] or:
+CME ERROR: <err>
98-08901C68-C 191
AT Commands Reference
Read Command
The Read command returns the current mode and the currently selected operator.
Command Response/Action
Test Command
The Test command returns a list of quadruplets, each representing an operator present in the network. A quadruplet consists of
an integer indicating the availability of the operator <stat>, long and short alphanumeric format of the name of the operator, and
numeric format representation of the operator. If any of the formats are unavailable, there is an empty field.
After the operator list, the g20 returns lists of the supported <mode>s and <format>s. These lists are separated from the operator
list by two commas.
Command Response/Action
192 98-08901C68-C
AT Commands Reference
<Parameter> Description
0 Long alphanumeric
1 Short alphanumeric
2 Numeric
<stat> 0 Unknown
1 Available
2 Current
3 Forbidden
98-08901C68-C 193
AT Commands Reference
Example
AT+COPS=?
+COPS:(002,"IL ORANGE","ORANGE","42501"),(003,"IL Cellcom","Cellcom","42502"),(001,"IL-77","I-77","42577"),,
(000,001,002,003,004),(000,001,002)
OK
AT+COPS?
+COPS: 000,000,"IL ORANGE"
OK
AT+CPS=3,2
AT+COPS ?
+COPS: 000,002,"42501" //Specific provider number
AT+COPS=0
OK
AT+COPS=1,2,"31038"
OK
AT+COPS=1,1,"ORANGE"
OK
This command is used to edit the list of preferred network operators located in the SIM card.
Set Command
Command Response/Action
AT+CPOL=[<index>][,<format>[, OK
<oper>]] or:
+CME ERROR: <err>
The g20 may also update this list automatically when new networks are selected.
Note
194 98-08901C68-C
AT Commands Reference
Read Command
The Read command displays all the preferred operators that have been entered into the list.
Command Response/Action
Test Command
The Test command displays the entire index range supported by the SIM.
Command Response/Action
<Parameter> Description
98-08901C68-C 195
AT Commands Reference
Examples
at+cpol=?
+CPOL: (001-032),(000-002)
OK
at+cpol?
+CPOL: 001,001,"Cellcom"
+CPOL: 002,001,"Orange"
OK
at+cpol=2,0,"MobileNetwork" //MobileNetwork is the name of a valid cellular provider.
OK
at+cpol= ,0 //Changes the format of read command to long alpha.
OK
at+cpol=2 //Delete index 2.
OK
Read Command
Command Response/Action
+CBC +CBC:<bcs>,<bcl>
196 98-08901C68-C
AT Commands Reference
<Parameter> Description
The g20 does not allow the detection of battery use. The power supply of the g20 is connected via the battery pins.
However, users can use this command to verify the level of the g20 input power source.
Note
Example
at+cbc
+CBC: 0,60 //This example shows 0 (battery powered) with 60% power.
OK
This command sets the baud rate. The baud rate of the g20 is changed/set to the request value <rate> written in the command.
Specifying a value of 9 or 0 disables the function and allows operation only at rates automatically detectable by the g20. The
specified rate takes effect following the issuing of any result code(s) associated with the current command line.
The UART is configured according to the request, or to the specific constant baud rate or auto baud rate after output "OK"
response to the terminal. For example, AT+CBAUD=8 is equivalent to AT+CBAUD=57600. Using AT+CBAUD with the
<rate> value other than 9 or 0 disables the auto baud rate detection feature. The g20 supports up to 115200 auto baud.
Set Command
Command Response/Action
AT+CBAUD=<n> OK
AT+CBAUD=<rate> or:
ERROR
98-08901C68-C 197
AT Commands Reference
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
AT+CBAUD=8
or AT+CBAUD=57600 //These commands have the same effect
OK
AT +CBAUD =?
+CBAUD: (0-11,300,600,1200,2400,4800,9600,19200,38400,57600,115200)
198 98-08901C68-C
AT Commands Reference
This command is responsible for setting and saving the request baud rate. This numeric extended-format parameter specifies the
data rate at which the g20 accepts commands. Specifying a value of 9 disables the function and allows operation only at rates
automatically detectable by the g20. The specified rate takes effect following the issuing of any result code(s) associated with
the current command line.
The <rate> value specified is the rate in bits per second at which the terminal-g20 interface operates, for example, 19200 or
115200. The rates supported by the g20 are manufacturer-specific. However, the +IPR parameter permits setting any rate
supported by the g20 during online operation.
The UART is configured to rates of 300, 600, 1200, 4800, 9600, 19200, 38400, 57600 or 115200 bits per second according to
the parameters of the +IPR command.
Using AT+IPR=<rate> with a <rate> value other than 9 and 0 disables the auto baud rate detection feature. The entered baud
rate is stored in the g20 and is restored after power up.
+IPR is similar to +CBAUD, but with the ability to save.
Note
Set Command
Command Response/Action
AT+IPR=<n> OK
AT+IPR=<rate> or:
ERROR
Read Command
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 199
AT Commands Reference
<Parameter> Description
Example
AT+IPR=?
+IPR: (0-10,300,600,1200,2400,4800,9600,19200,38400,57600,115200)
OK
AT+IPR=6
OK
AT+IPR?
+IPR: (0-11,300,600,1200,2400,4800,9600,19200,38400,57600,115200)
This command indicates the major capability areas of the g20. The support of different areas is presented in the response of the
+GCAP command. Each area may be presented by the selection command name of a specific capability area. The g20 supports
only FCLASS - fax support.
Execute Command
Command Response/Action
Example
AT+GCAP
+GCAP: +FCLASS
OK
200 98-08901C68-C
AT Commands Reference
This command checks and outputs the physical current status of the DTR pin of the RS232.
Execute Command
Command Response/Action
AT+MTDTR MTDTR:<n>
OK
Read Command
Command Response/Action
AT+MTDTR? MTDTR:<n>
OK
Test Command
Command Response/Action
AT+MTDTR=? OK
<Parameter> Description
Example
AT+MTDTR?
+MTDTR:1
OK
AT+MTDTR
+MTDTR:1
OK
AT+MTDTR=?
OK
98-08901C68-C 201
AT Commands Reference
This command sets the CTS pin of the RS232 to active high, waits one second and then returns the CTS to active low.
Execute Command
Command Response/Action
AT+MTCTS OK
Example
AT+MTCTS
OK
This command configures the flow control. The RTS (Request To Send) is an input line. The RTS signal is received from the
terminal and a low condition indicates that the g20 can send more data. The CTS (Clear To Send) is an output line. The CTS
signal is sent to the terminal and a low state indicates that more data can be sent to the g20.
The RTS and CTS together make up what is called RTS/CTS or “hardware” flow control. Both lines are used when “hardware
flow control” is enabled in both the terminal and the g20 devices. When the terminal is ready and able to receive data, it puts
the CTS line in an active (low) condition to indicate this to the g20. If the terminal is not able to receive data (typically because
its receive buffer is almost full), it puts the CTS line in an inactive (high) condition as a signal to the g20 to stop sending data.
When the terminal is ready to receive more data (for example, after data has been removed from its receive buffer), it places this
line back in the active condition. The RTS line complements the CTS line. The g20 puts the RTS line in an active condition to
tell the terminal that it is ready to receive the data. Likewise, if the g20 is unable to receive data, it places the RTS line in an
inactive condition.
Set Command
Command Response/Action
AT&K<param> OK
Read Command
Command Response/Action
Test Command
Command Response/Action
202 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT&K?
003
OK
AT&K4
OK
This parameter determines how the state of the DCD line relates to the detection of the received line signal from the distant end.
Changing the parameters will take effect immediately in both the command and online command states.
The DCD line is an output line that indicates the following:
• In Circuit Switch Data mode an active (low) indicates that a valid carrier (data signal) was detected by the g20 (CONNECT
message is received), and inactive (high) indicates idle. The AT&C command always puts the DCD command ON, when set
to 0. If the AT&C command is set to 1 then the "+++" escape command sets the DCD signal to an inactive state and the ATO
command is set to active. The AT&C set to 2 sets the DCD signal OFF.
• In GPRS mode, the DCD line indicates the PDP context status. PDP context active sets the DCD to active (low); PDP context
inactive sets the DCD to inactive (high). The DCD is activated only when the PDP context is achieved. The DCD is
de-activated when the PDP context is off.
When AT&C is set to 0, the DCD signal is always ON. When AT&C is set to 1, the DCD is activated in online mode. When
AT&C is set to 2, the DCD is activated only when the PDP context is achieved (temporary IP address is received).
Set Command
Command Response/Action
AT&C<param> OK
98-08901C68-C 203
AT Commands Reference
Read Command
Command Response/Action
AT&C? &C:<param>
Test Command
Command Response/Action
<Parameter> Description
If &C is set to 2 when a CSD call is set, DCD will always remain OFF.
Note
204 98-08901C68-C
AT Commands Reference
Example
AT&C?
&C: 001
OK
AT&C0
OK
This command determines how the g20 responds when the DTR (Data Terminal Ready) status is changed from ON to OFF
during the online data state. The DTR is an input line that indicates that the terminal is ready.
The DTR line must be active (low) in order for the g20 to recognize the terminal. This signal is raised by the terminal when a
process activates the serial port. If the DTR is not used by the application, it should connect this line to ground (DTR active).
The default value is active (low).
Set Command
Command Response/Action
AT&D<param> OK
Read Command
Command Response/Action
AT&D? &D:<param>
Test Command
Command Response/Action
98-08901C68-C 205
AT Commands Reference
<Parameter> Description
<param> The g20’s reaction when the DTR status is changed from
ON to OFF.
In CSD calls:
0,4 Ignores DTR changes
1 Switches the CSD call to asynchronous command
mode (the call remains connected)
2,3 Disconnects the call and returns to the command
mode
In GPRS calls:
0,4 Ignores DTR changes
1-3 Deactivates the GPRS and returns to command
mode
Example
AT&D?
002
OK
AT&D1
OK
This command tells the g20 whether to report on the status of the GPRS coverage. There are three possibilities:
• Do not report the status of the GPRS coverage
• Report only when the GPRS coverage goes off.
• Report only when the GPRS coverage goes on.
Set Command
Command Response/Action
AT+MCWAKE=<param> OK
206 98-08901C68-C
AT Commands Reference
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
at+mcwake=0
OK
at+mcwake?
+MCWAKE: 0
OK
at+mcwake=1
OK
at+mcwake=2
OK
at+mcwake=?
+MCWAKE: (0,1,2)
OK
98-08901C68-C 207
AT Commands Reference
This command shuts down the phone functionality of smart phones and PDAs with phone capabilities in order to prevent
interference from a nearby environment. This enables other functionality to continue to be used in environments where phone
use is either impractical or not permitted. For example, on airplanes the use of cellular phones is forbidden during the entire
flight, but the use of computers is allowed during much of the flight. This command enables other functionality to continue while
preventing use of phone functionality.
Set Command
The Set command selects the level of functionality <fun> in the smart phone or PDA incorporating the g20.
Command Response/Action
AT+CFUN=[<fun>[,<rst>]] OK
Read Command
Command Response/Action
OK
208 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
OK
<Parameter> Description
Examples
at+cfun=?
+CFUN:(0-4),(0-1)
OK
at+cfun?
+CFUN: 0
OK
98-08901C68-C 209
AT Commands Reference
This command determines the local serial port start/stop (asynchronous) character framing used by the DCE when accepting
DTE commands and transmitting information text and result codes, whenever these are not done automatically. Auto detect
framing is not supported.
Set Command
The Set command determines the local serial port start/stop character framing.
Command Response/Action
+ICF=[<format>[,<parity>]] OK
Read Command
Command Response/Action
Test Command
The Test command displays a list of supported <format> and <parity> values.
Command Response/Action
210 98-08901C68-C
AT Commands Reference
<Parameter> Description
1 8 Data, 2 Stop
2 8 Data, 1 Parity, 1 Stop
3 8 Data, 1 Stop (default)
4 7 Data, 2 Stop
5 7 Data, 1 Parity, 1 Stop
6 7 Data, 1 Stop
7 8 Data, 1 Parity, 2 Stop
8 7 Data, 1 Parity, 2 Stop
<parity> Determines how the parity bit is generated and checked (if
present).
0 Odd
1 Even
4 No parity (default)
Example
at+icf?
+ICF: 3,4
OK
at+icf=?
+ICF: (1-8),(0,1,4)
OK
at+icf=5,1
OK
This command defines whether the PCM clock runs continuously or not. The change takes effect after the next audio operation.
It is recommended to power cycle the g20 after PCM clock configuration.
Note
98-08901C68-C 211
AT Commands Reference
Set Command
The Set command is used for setting the PCM clock configuration.
Command Response/Action
+MPCMC=<flag> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current settings for the PCM clock <flag>.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
212 98-08901C68-C
AT Commands Reference
Example
AT+MPCMC=?
+MPCMC:(0-1)
OK
AT+MPCMC?
+MPCMC: 1
OK
AT+MPCMC=0
OK
AT+MPCMC?
+MPCMC: 0
OK
This command indicates whether the antenna is connected and whether the hardware supports this feature. In order to receive
the required information, an external hardware short circuit should be implemented on the customer side, between PIN 39 and
PIN 41 of the 70-pin connector.
70 Pins connector
Pin #39
External HW
short circuit
Pin #41
98-08901C68-C 213
AT Commands Reference
Execute Command
Command Response/Action
ATS97 OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
ATS97? <info>
OK
or:
+CME ERROR: <err>
<Parameter> Description
Example
214 98-08901C68-C
AT Commands Reference
The +MRST command enables customer software to perform a hard reset to the g20 unit. This command provides a software
simulation for pressing the power-off button. The command can be sent to the g20 unit from each of the MUX channels.
Set Command
The Set command performs a graceful hard reset to the g20 module.
Command Response/Action
+MRST OK
The Read and Test commands are not permitted for the +MRST command.
Note
Example
at+mrst
OK
// Result - g20 module performs a power down
98-08901C68-C 215
AT Commands Reference
4.8 AUDIO
The Audio feature in the g20 is made up of three main parts: Path, Gain and Algorithm. The Path features control the navigation
of the audio in the product. The Gain features control the volume of the different accessories, sounds and tones. The Algorithm
features control the audio quality, echo canceling and so on. All these features are accessible to the user via the Audio AT
commands described in the following sections.
• Path AT Commands:
The Audio may run in different paths that are related to the different Input or Output accessories. The AT+MAPATH and
AT+MADIGITAL commands support path changes, as described in “+MAPATH, Audio Path” on page 231.
• Gain AT Commands:
• Volume: The volume is set differently for each output path and audio feature (voice, keypad, and so on). For example,
one volume level for rings through the speaker and a different volume level for rings through the transducer. Therefore,
there will be 16 different volume levels, which is the product of the number of output accessories (speaker, headset
speaker, transducer and digital output) and the number of audio tones (voice, keypad, ring and alert).
• Input Accessories Mute: The user can mute any combination of the input accessories (mic, headset mic and digital input).
Gain related commands include:
• +MAVOL, Volume Setting, described on page 235.
• +MAMUT, Input Devices Mute, described on page 239.
• Algorithm AT Commands:
• Sidetone: Reduces the microphone audio input routed to the selected speaker so that the people speaking will be able to
hear themselves talking. Use the AT+MAFEAT command, described on page 238. If g18 compatibility is required, refer
to “S94, Sidetone Effect” on page 221.
• Echo Cancel: Suppresses a large amount of the output sound picked up by the input device (cancels all echo). Use the
+MAFEAT command, described on page 238. If g18 compatibility is required, refer to “S96, Echo Canceling” on
page 222.
• Noise Suppression: Improves audio quality in all modes and suppresses environment noise from the input device. Use the
+MAFEAT command, described on page 238. If g18 compatibility is required, refer to “S96, Echo Canceling” on
page 222.
On power up, the algorithms used are selected according to the device attached, for example, handset, headset or handsfree.
Any use of the +MADIGITAL, +MAPATH, +MAVOL, +MAMUT or +MAFEAT AT commands will reset audio algorithms
(EC, NS and ST) to their defaults, and from now on they will be selected using +MAFEAT.
The AT+MAFEAT command controls all the algorithm features, and can be used to enable/disable any combination of the
algorithms. The ATS94/ATS96 set exists only for backup compatibility reasons. Clients using this set of commands do not
use the AT+MAFEAT command.
While using ATS94 and ATS96, echo cancellation causes sidetone muting, and disabling echo cancellation
causes sidetone unmuting.
Note
216 98-08901C68-C
AT Commands Reference
Motorola recommends using the AT+MAFEAT command when working with the audio algorithm features.
On power down, the state is not saved. In the next power up and upon entering advanced audio setup (refer to
Note section 4.8.1) the default state is restored (sidetone enabled, echo canceling disabled and noise suppression
disabled).
The g20 has two audio setups: basic and advanced. The basic setup is divided to Fixed Mobile setup and g18 Compatible setup,
which are selected by flex. Each setup has a different behavior and a set of relevant AT commands. Advanced mode is selected
by using any of the advanced AT commands.
Figure 10 below describes the existing audio setups, the workflow of the steps and the AT commands related to each setup.
Flex Bit
Advanced AT
+MAPATH
+MAVOL
+MAMUT
+MAFEAT
+MADIGITAL
98-08901C68-C 217
AT Commands Reference
In the basic audio setup, the g20 is responsible for audio path and algorithm selection, according to the device attached. While
in g18 compatible mode, algorithms are set by the ATS94 and ATS96 commands.
Figure 11 shows the basic audio setup.
The user is responsible for audio path and algorithm setting. The HDST_INT line does not affect the audio routing and the algo-
rithm’s selection. The user will not use ATS94 and ATS96 for algorithm selection.
Figure 12 shows the advanced setup.
218 98-08901C68-C
AT Commands Reference
The Advanced Audio Setup supports both analog and digital audio. Switching between analog and digital audio modes is done
by AT+MADIGITAL command. The default state is analog.
Analog
AT+MADIGITAL=1 AT+MADIGITAL=0
Digital
This command plays one cycle of a tone ring, stops the cycle in the middle and sets the tone ring to be used.
Set Command
Command Response/Action
AT+CRTT=<RingTypeNumber>, OK
<operation> or:
+CME ERROR: <err>
98-08901C68-C 219
AT Commands Reference
Read Command
Command Response/Action
Test Command
The Test command returns the list of supported tone type numbers and operations.
Command Response/Action
<Parameter> Description
Example
AT+CRTT=?
+CRTT: (6-47),(0-2)
220 98-08901C68-C
AT Commands Reference
OK
AT+CRTT?
+CRTT: 4 //Ring type number 4
This command is used for g18 compatibility. This command reduces the microphone audio input that is routed to the selected
speaker, so that people speaking will hear themselves talking. Refer to “+MAFEAT, Features Selection” on page 238. (The
default value of S94 is "1").
Set Command
Command Response/Action
ATS94=<n> OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 221
AT Commands Reference
<Parameter> Description
Example
ATS94=2
+CME ERROR: <err>
ATS94?
000 //Sidetone disabled
OK
This command is used for g18 compatibility. This command suppresses a large amount of the output sound picked up by the
input device (cancels all echo). Refer to “+MAFEAT, Features Selection” on page 238. (S96 value is saved in the Flex).
Set Command
Command Response/Action
ATS96=<n> OK
or:
+CME ERROR: <err>
222 98-08901C68-C
AT Commands Reference
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
ATS96=4
+CME ERROR: <err>
ATS96?
001 //Echo canceling enabled
OK
This command handles the selection of the incoming call ringer and alert tone (SMS) sound level on the alert speaker of the g20.
The new value remains after power cycle.
98-08901C68-C 223
AT Commands Reference
Set Command
The Set command sets the call ringer and alert (SMS) level.
Command Response/Action
+CRSL=<level> OK
Read Command
The Read command displays the current ringer alert (SMS) sound level setting.
Command Response/Action
Test Command
The Test command displays the list of supported sound level settings.
Command Response/Action
<Parameter> Description
<level> 0 Mute
1-7 Ringer sound level (1 is lowest; 7 is default)
Example
at+crsl?
+CRSL: 7
OK
at+crsl=?
+CRSL: (0-7)
224 98-08901C68-C
AT Commands Reference
OK
at+crsl=5
OK
This command handles the enabling and disabling of the vibrator alert feature of the g20 during a mobile-terminated incoming
call. This command changes the +CALM command setting and vice-versa. (Refer to “+CALM, Alert Sound Mode”, page 241.)
The value of the command is saved after a power cycle.
Set Command
The Set command enables/disables the vibrator alert feature of the g20.
Command Response/Action
+CVIB=<mode> OK
Read Command
Command Response/Action
+CVIB? +CVIB:<mode>
Test Command
Command Response/Action
98-08901C68-C 225
AT Commands Reference
<Parameter> Description
0 Disable (default)
1 Enable
16 Ring and vibrate
Example
at+cvib=?
+CVIB: (0,1,16)
OK
at+cvib?
+CVIB: 0
OK
at+cvib=1
OK
Changing the +CALM <mode> to 1 (silent) changes the +CVIB mode to 0 (disabled). This is a one-way change
that does not occur in the other direction.
Note
226 98-08901C68-C
AT Commands Reference
This command handles the selection of tone duration. An integer <n> defines the length of tones emitted as a result of the +VTS
command. This command does not affect the D (dial) command. (Refer to “D, Dial Command”, page 60.)
Any value other than zero causes a tone of duration <n> in multiples of 100 msec.
In this command, the new value is erased after power down.
In GSM, the tone duration value can be modified depending on the specific network.
Note
Set Command
Command Response/Action
+VTD=<n> OK.
Read Command
Command Response/Action
+VTD? <n>
Test Command
Command Response/Action
98-08901C68-C 227
AT Commands Reference
<Parameter> Description
Example
AT+VTD=?
+VTD: (0-600)
OK
AT+VTD?
+VTD: 5
OK
AT+VTD=10
OK
This command transmits a string of DTMF tones when a voice call is active. DTMF tones may be used, for example, when
announcing the start of a recording period.
The duration does not erase the VTD duration (Refer to “+VTD, Tone Duration” on page 227.)
In GSM, the tone duration value can be modified depending on the specific network.
If the active call is dropped in the middle of playing a DTMF tone, the following unsolicited message transfers to
Note TE: +V+S: "Call termination stopped DTMF tones transmission".
Set Command
The Set command sets the tone and duration (if entered).
Command Response/Action
+VTS= <DTMF>,[<duration>] OK
228 98-08901C68-C
AT Commands Reference
Read Command
The Read command displays the currently transmitted DTMF tone. An error is displayed if no tone is active.
Command Response/Action
Test Command
The Test command displays the list of supported DTMF tones and tone lengths.
Command Response/Action
<Parameter> Description
The duration defined by +VTS is specific to the DTMF string in this command only. It does not erase the duration
defined by the +VTD command, and is erased when the g20 is powered down.
Example
AT+VTS ?
+VTS: "5"
OK
98-08901C68-C 229
AT Commands Reference
AT+VTS="2",10
OK
This command is used to mute/unmute the currently active microphone path by overriding the current mute state.
Set Command
The Set command enables/disables uplink voice muting during a voice call.
Command Response/Action
+CMUT=<state> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current uplink voice mute/unmute state.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
230 98-08901C68-C
AT Commands Reference
Example
AT+CMUT=?
+CMUT:(0-1)
OK
AT+CMUT?
+CMUT: 0 uplink voice is unmuted
OK
AT+CMUT=1 uplink voice is muted
OK
AT+CMUT?
+CMUT: 1
OK
AT+CMUT =2
+CME ERROR: <err>
This group of commands enables accessory devices to control certain audio aspects within the system.
This command sets/requests the active input accessory, and the output accessory for each feature. For example, you can choose
the headset mic to be active, the voice and keypad feedbacks to go to the speaker, and the alerts and rings to go to the alert
speaker. On power up, the default path, mic, speaker and alert speaker are restored.
+MAPATH cannot be used to set digital audio, but only to read it. In order to set the digital audio path, use
+MADIGITAL. For more information, refer to section 4.8.3.2.
Note
98-08901C68-C 231
AT Commands Reference
Input
Handset Microphone
Voice
Headset Speaker
Input voice Headset Microphone
Voice
Handset Speaker
Digital RX Alert/Ringer
Alert Transducer
Features:
Output Headset Speaker •Voice
Handset Microphone
•Key feedback
Headset Microphone
Handset Speaker
•Alert
Alert Transducer •Ring
Digital TX
Set Command
The Set command sets the audio path mode. The mode indicates which I/O accessories are now active for the different audio
features. The <features> field is only used for outputs (direct=1).
Command Response/Action
+MAPATH= <direct>,<accy> OK
[,<features>] or:
+CME ERROR: <err>
Read Command
The Read command returns the active input audio accessory and the output accessory for each feature.
Command Response/Action
232 98-08901C68-C
AT Commands Reference
Test Command
The Test command returns the supported audio directions (input/output), accessories and features.
Command Response/Action
<Parameter> Description
Mode out:
1 Speaker
2 Headset speaker
3 Alert speaker, for example, battery low, incoming
SMS, power up, and so on
4 Digital TX (for read command only)
Example
98-08901C68-C 233
AT Commands Reference
AT+MAPATH=?
+MAPATH: (1,2),(1-4),(1-15)
OK
This command switches between analog and digital audio modes. The g20 enters the advanced audio setup (see “Advanced
Audio Setup” on page 218) in analog audio mode, AT+MADIGITAL=1 switches it to digital audio mode and
AT+MADIGITAL=0 switches it back to analog mode, see Figure 13
Do not use +MAPATH set command while in digital audio mode.
Note
Set Command
The Set command toggles between analog and digital audio modes.
Command Response/Action
+MADIGITAL= <state> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current audio mode (analog or digital).
Command Response/Action
+MADIGITAL= <state> OK
or:
+CME ERROR: <err>
234 98-08901C68-C
AT Commands Reference
Test Command
The test command returns the available digital audio modes.
Command Response/Action
OK
Example
AT+MADIGITAL=?
+MADIGITAL: (0,1)
OK
This command enables you to determine a volume level for a particular feature via a particular accessory. The gain levels are
saved in flex. Therefore, upon power up, the path active (mic, speaker and alert speaker) will have these saved gain levels.
The SMS MT volume is adjusted using the +MAVOL command with type "ring". The "RING value is related to the
SMS alert, the MT call, and so on.
Note
98-08901C68-C 235
AT Commands Reference
Output Input
+ MAVOL +MAMUT
Features:
Headset Speaker
•Voice
•Key feedback Handset Microphone
Handset Speaker
•Alert Headset Microphone
Digital RX
Digital TX
Example of current g20 volume levels Matrix Example: g20 Mute state
Voice Key Alert Ring
Handset Headset Digital
feedback
Mic Mic RX
Headset
Speaker 1 2 4 7
Handset
Speaker 3 5 4 2 Mute
state 0 1 0
Alert
Transducer 6 4 6 1
Digital TX
6 3 3 1
Set Command
The Set command sets the volume level <n> to a certain <feature> through a certain <accy>.
Command Response/Action
+MAVOL=<accy>,<feature>,<vol> OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the volume level of all the features in the current active accessories.
Command Response/Action
236 98-08901C68-C
AT Commands Reference
Test Command
Test command returns the supported range of volume levels, accessories and features.
Command Response/Action
<Parameter> Description
Example
98-08901C68-C 237
AT Commands Reference
//Currently the ring outputs through alert speaker and its volume level is 2
+MAVOL: 4,8,2 //Accy=4 (alert speaker), feature=8 (ring), vol=2
OK
This command controls the algorithm features: sidetone, echo cancel and noise suppression. Upon power up, the sidetone is
enabled, and echo canceling and noise suppression are disabled.
Set Command
Command Response/Action
AT+MAFEAT=<feature>,<state> OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
The Test command returns the list of supported features' numbers and supported states (enable/disable).
Command Response/Action
238 98-08901C68-C
AT Commands Reference
<Parameter> Description
<feature>(1-7) 1 Sidetone
2 Echo cancel
4 Noise suppress
<state> 0 Disable
1 Enable
Example
AT+MAFEAT?
+MAFEAT: 1,1 //Feature=1 (sidetone), state=1 (enabled)
+MAFEAT: 2,0 //Feature=2 (echo cancel), state=0 (disabled)
+MAFEAT: 4,1 //Feature=4 (noise suppress), state=1 (enabled)
OK
This command controls the muting/unmuting of all input paths (mic, headset mic or digital RX). Upon power up, all the devices
are unmuted.
Set Command
The Set command mutes/unmutes any input accessory or any combination of them.
Command Response/Action
+MAMUT=<accy>,<state> OK
or:
+CME ERROR: <err>
98-08901C68-C 239
AT Commands Reference
Read Command
The Read command returns the current mute/unmute state of all the input accessories.
Command Response/Action
+MAMUT? +MAMUT:<accy1>,<state>
+MAMUT:<accy2>,<state>
+MAMUT:<accy4>,<state>
OK
Test Command
The Test command returns the mute states available and the output accessories supported.
Command Response/Action
<Parameter> Description
<state> 0 Unmute
1 Mute
Example
AT+MAMUT?
+MAMUT: 1,1 //Accy=1 (mic), state=1 (mute)
+MAMUT: 2,0 //Accy=2 (headset mic), state=0 (unmute)
+MAMUT: 4,1 //Accy=4 (Digital RX), state=1 (mute)
240 98-08901C68-C
AT Commands Reference
AT+MAMUT=?
+MAMUT: (1-7),(0,1)
OK
This command handles the selection of the g20’s alert sound mode. This command changes the +CVIB command setting and
vice-versa. (Refer to “+CVIB, Vibrator Mode”, page 225.) The value of the command is saved after a power cycle.
Set Command
Command Response/Action
+CALM=<mode> OK
Read Command
The Read command displays the current alert sound mode setting.
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 241
AT Commands Reference
<Parameter> Description
0 Ring (default)
1 Silent mode (all g20 sounds prevented)
2 Vibrate (not in use for OEM models)
3 Ring/vibrate
Selecting the ring mode with this command retrieves the current alert volume level setting.
Note
Example
at+calm=?
+CALM: (0,1,2,3)
OK
at+calm?
+CALM: 0
OK
at+calm=1
OK
242 98-08901C68-C
AT Commands Reference
This command sets the volume of the internal loudspeaker (which also affects the key feedback tone) of the g20.
The +CLVL command does not control the alert speaker.
In this command, the new value remains after power cycle.
Note
The +CLVL command can be used even when the SIM is not inserted.
Set Command
Command Response/Action
+CLVL=<level> OK
+CME ERROR: <err>
Read Command
The Read command displays the current internal loudspeaker volume setting.
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
98-08901C68-C 243
AT Commands Reference
Example
at+clvl?
+CLVL: 7
OK
at+clvl=?
+CLVL: (0-7)
OK
at+clvl=3
OK
This command handles the selection of microphone gain values of MIC-handsets (not MIC-headsets). The new value remains
after power cycle.
Set Command
Command Response/Action
+MMICG=<gain> OK
Read Command
Command Response/Action
244 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
at+mmicg=?
+MMICG: (0-31)
OK
at+mmicg?
+MMICG: 16
OK
at+mmicg=30
OK
98-08901C68-C 245
AT Commands Reference
4.9 ACCESS
When the phone or SIM card is locked or blocked, the only accessory operations allowed are those found in the list of Core AT
commands (allowed while phone/SIM card is locked), shown in “Core AT Commands” on page 41. All other AT commands
are not executed, for example, accessing phone book entries. However, the phone is still capable of sending asynchronous
message events via AT responses, for example, incoming call notification.
This command repeats the last command. It is not necessary to press <Enter> after this command.
Execute Command
Command Response/Action
Example
AT&D?
&D: 2
OK
A/
&D: 2
OK
Execute Command
Command Response/Action
AT OK
Example
AT
OK
246 98-08901C68-C
AT Commands Reference
4.9.1.3 +CPIN, Enter PIN for Unlocking SIM Card or Enter PUK for Unblocking SIM Card
This command locks the SIM card, and therefore is only relevant for phones that use SIM cards. It unlocks the SIM card when
the proper SIM PIN is provided and unblocks the SIM card when the proper SIM PUK is provided.
The SIM card is unlocked only once the provided pin is verified as the SIM PIN. If the required PIN (determined by the error
code returned from the requested operation or the Read command) is SIM PUK or SIM PUK2, the second pin is required. This
second pin, <newpin>, is used to replace the old pin in the SIM card. When entering the pin, a <new pin> is not required.
The following commands are accepted when the g20 is awaiting the SIM PIN or SIM PUK: +CGMI, +CGMM,
+CGMR, +CGSN, D112; (emergency call), +CPAS, +CFUN, +CPIN, all basic AT commands, +CBAUD, +CEER,
+CIP, +CIPE, +CKPD, +CLAC, +CLCC, +CLVL, +CMEE, +CMER, +CMUX, +CR, +CRC, +CSCB, +CSCR, +CSQ,
Note +GCAP, +GMI, +GMM, +GMR, +GSN, +IFC, +IPR, +MCWAKE, +MDES, +MECC, +MSCTS, +MTCTS and
+MTDTR.
The SIM card lock is another level of security independent of the phone lock (See “Access Control Commands” on
page 246 for more information.)
Note
Figure 16 presents a diagram of what occurs when using the SIM card. Note that if an incorrect password is entered three times,
the g20 requires that a master password be entered, If this also fails three times, the SIM will be blocked, and you will have to
go to your provider to unblock it.
No SIM
Security enabled
Password
Bad code x3 Needed
Bad SIM
Master
Password Removed
Bad code x3 Needed
Blocked SIM
Good code Good code Inserted
Go to Manufacturer SIM OK
98-08901C68-C 247
AT Commands Reference
A SIM card related error is returned if an AT command operation is unsuccessful due to a SIM card problem. The following
table shows the SIM card errors:
Error Description
11 SIM PIN required SIM Card waiting for SIM PIN to be entered
Set Command
The Set command sends the password to the g20 that is necessary before it can be operated (SIM PIN or SIM PUK). If there is
no PIN request pending, no action is taken towards the g20, and an error message, +CME ERROR, is returned to the terminal.
The Set command issued gives the code (SIM PIN or SIM PUK) corresponding to the error code required or returned as the
result of the Read command. For example, if the SIM PIN is blocked, the error code 11 or "SIM PIN required" is returned. The
user must then issue the Set command with the SIM PIN.
Command Response/Action
AT+CPIN=[<puk> or <pin>], OK
[<newpin>] or:
+CME ERROR: <err>
Read Command
The Read command returns an alphanumeric string indicating the status of the SIM card, and whether a password is required or
not. This is an independent SIM card lock status check only, and does not check the phone lock status.
Command Response/Action
248 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
AT+CPIN=? OK
or:
+CME ERROR: <err>
<Parameter> Description
Example
AT+CPIN=?
OK
At+clck="SC",1,"<correct PIN>" //Not case-sensitive
OK
The facility is enabled by the +CLCK command (Refer to “+CLCK, Facility Lock” on page 253)
AT+CPIN?
+CPIN: SIM PIN
OK
AT+CPIN="<correct PIN>"
OK
AT+CPIN?
+CPIN: READY
OK
98-08901C68-C 249
AT Commands Reference
The status of the SIM is still enabled, but the PIN is READY for this session.
The SIM is enabled per session. After power-up SIM must be unlocked again by using the +CLCK command.
The following case shows an example of three unsuccessful attempts at entering the PIN:
AT+CPIN?
+CPIN: SIM PIN
OK
AT+CPIN="<wrong pin>"
+CME ERROR: "incorrect password"
AT+CPIN="<wrong pin>"
+CME ERROR: "incorrect password"
AT+CPIN="<wrong pin>"
+CME ERROR: "SIM PUK required"
AT+CPIN?
+CPIN: SIM PUK //PIN is blocked. The PUK is needed for unblocking.
OK
AT+CPIN="<PUK>","<NEW PIN>" //Enter PUK and new PIN
OK
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: "incorrect password"
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: "incorrect password"
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: "SIM PUK2 required
AT+CPIN?
+CPIN: SIM PUK2 //PIN2 is blocked. The PUK2 is needed for unlocking.
OK
AT+CPIN="<PUK2>","<NEW PIN2>" //Enter PUK2 and new PIN2
OK
This command sets a new password for the facility lock. The password can only be changed once the required facility is enabled
by the +CLCK command. (Refer to “+CLCK, Facility Lock” on page 253).
A password can be changed only if the provided password <oldpwd> has been verified. The entered password <newpwd> must
also comply to the password rules. The facility value <fac> is not case-sensitive. In the password value, letters are not allowed.
250 98-08901C68-C
AT Commands Reference
Set Command
The Set command sets a new password for the facility lock function, defined by the +CLCK command. (Refer to “+CLCK,
Facility Lock” on page 253).
Command Response/Action
AT+CPWD=<fac>,<oldpwd>, OK
<newpwd> or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
The Test command returns a list of pairs which represent the available facilities, and the maximum length of their passwords.
Command Response/Action
98-08901C68-C 251
AT Commands Reference
<Parameter> Description
<oldpwd> String type, 4-8 character password specified for the facility
from the g20 user interface.
Example
at+cpwd =?
+CPWD: ("SC",8),("AO",8),("OI",8),("OX",8),("AI",8),("IR",8),("AB",8),("AG",8), ("AC",8),("P2",8)
OK
at+cpwd?
+CME ERROR: "operation not supported"
at+clck="sc",2
252 98-08901C68-C
AT Commands Reference
+CLCK: 0
OK
at+clck="ai",2
+CLCK: 0,1
+CLCK: 0,2
+CLCK: 0,4
OK
at+clck="ai",1,"correct password"
OK
at+clck="ai",2
+CLCK: 1,1
+CLCK: 1,2
+CLCK: 1,4
OK
This command locks, unlocks or interrogates a g20 or a network facility <fac> (any kind of call barring program). A password
is mandatory for performing locking and unlocking actions, but not for querying. The features of the g20 that are affected by
this are the keypad power-up operation and fixed dialing list. When querying the status of a single call barring program
<mode>=2, the <status> for each call type will be returned.
For <fac>="SC", SIM Card PIN setting and for <fac>="FD", SIM Fixed Dialing memory setting, the <class> is irrelevant (For
more information about <class>, refer to +CLCK Parameters). The <passwd> for "sc" is SIM PIN, and for "fd" it is SIM PIN2.
98-08901C68-C 253
AT Commands Reference
Set Command
The Set command performs the specified <mode> action on the specified <fac>.
Command Response/Action
Read Command
Command Response/Action
Test Command
Command Response/Action
254 98-08901C68-C
AT Commands Reference
<Parameter> Description
<mode> 0 Unlock
1 Lock
2 Query status (<passwd> does not apply)
<status> 0 Inactive
1 Active
Example
AT+CLCK=?
+CLCK: ("SC","AO","OI","OX","AI","IR","AB","AG","AC","FD")
OK
AT+CLCK="SC",2
+CLCK: 0
OK
98-08901C68-C 255
AT Commands Reference
AT+CLCK="SC",1
+CME ERROR: "operation not allowed"
AT+CLCK="SC",1,"incorrect password
+CME ERROR: incorrect password
AT+CLCK="SC",1,"correct password"
OK
(From now SIM Card is locked and PIN is requested on power up)
AT+CLCK="AB",0,"incorrect password"
+CME ERROR: incorrect password
AT+CLCK="IR",2
+CLCK: 0,1
+CLCK: 0,2
+CLCK: 0,4
OK
AT+CLCK="IR",2
+CLCK: 1,1
+CLCK: 1,2
+CLCK: 1,4
OK
AT+CLCK="OI",2
+CLCK: 0,1
+CLCK: 0,2
+CLCK: 0,4
OK
AT+CLCK="OI",1,"correct password"
OK
(All international calls are barred.)
256 98-08901C68-C
AT Commands Reference
AT+CLCK="OI",1,"correct password",3
OK
The g20 holds certain data items in selected memory space, named Software Registers (S-registers) and Modem Registers. Some
of these registers are used as bitmaps, where one register holds more than one data item.
All S-registers can be accessed using the S command, described in “S, Bit Map Registers” on page 262. Some registers can also
be accessed using dedicated commands, detailed below.
This command determines the response format of the data adapter and the contents of the header and trailer transmitted with the
result codes and information responses. This command also determines whether the result codes are transmitted in a numeric or
an alphabetic ("verbose") form. The text portion of information responses is not affected by this setting.
The following table shows the effect that setting this parameter has on the format of information text and result codes.
V0 V1
Set Command
The Set command sets the format of information responses and result codes.
Command Response/Action
ATV<value> OK
or:
+CME ERROR: <err>
98-08901C68-C 257
AT Commands Reference
Read Command
Command Response/Action
Test Command
The Test command for V is not defined, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the V parameters.
<Parameter> Description
Example
ATV?
001
OK
ATV0
0
ATV7
4
ATV1
OK
ATV7
ERROR
258 98-08901C68-C
AT Commands Reference
This command determines whether to output the result codes. Information text transmitted in response to commands is not
affected by the setting of this parameter.
Set Command
Command Response/Action
ATQ<value> OK
or:
+CME ERROR: <err>
Read Command
The Read command reads the current setting for result code suppression.
Command Response/Action
Test Command
The Test command for Q is not defined, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the Qn parameters.
<Parameter> Description
Example
ATQ0
OK
ATQ?
000
OK
ATQ4
ERROR
ATQ1 //No response because result codes are suppressed.
ATQ4 //No response because result codes are suppressed.
98-08901C68-C 259
AT Commands Reference
This command defines whether input characters are echoed to output. If so, these characters are echoed at the same rate, parity
and format at which they were received.
Set Command
Command Response/Action
ATE<value> OK
or:
+CME ERROR: <err>
Read Command
The Read command reads the current setting for command echo.
Command Response/Action
Test Command
The Test command for E is not defined by ITU, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the E parameters.
<Parameter> Description
Example
ATE?
001
OK
This command defines the CONNECT result code format. It determines whether or not the g20 transmits particular result codes
to the user. It also controls whether the g20 verifies the presence of dial tone when it first goes off-hook to begin dialing, and
whether the engaged tone (busy signal) detection is enabled.
260 98-08901C68-C
AT Commands Reference
Set Command
The Set command sets the result code and call progress monitoring control.
Command Response/Action
ATX<value> OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
The Test command for X is not defined by ITU, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the X parameters.
<Parameter> Description
98-08901C68-C 261
AT Commands Reference
Example
ATX?
000
OK
This command reads/writes values of the S-registers. The g20 supports this command for various S values, according to official
specifications (ITU-I, ETSI, or manufacturer specific).
Set Command
The Set command is allowed for read/write S-registers, and not allowed for read-only S-registers.
Command Response/Action
ATSn=<value> OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
The Test command for Sn is not defined by ITU, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the different S-registers and their associated values.
262 98-08901C68-C
AT Commands Reference
S12 Sets/gets guard time (in units of 50 msec) for the 0 255 20
escape character during CSD connections
S40 Read-only. Holds value of \An (in bits 6 and 7). — — 192
S0 (Auto Answer) should work regardless of the DTR HW line state. This is a deviation from the ITU V. 25-ter
standard.
Note
98-08901C68-C 263
AT Commands Reference
Example
ATS36?
005
OK
ATS0=3
OK
ATS0?
003
OK
4.10.1.5.1 S2
This command handles the selection of the escape characters, which are stored in S-Register 2, and specifies the escape character
used in CSD connections.
Set Command
The Set command sets the CSD escape character value if all parameters are valid.
Command Response/Action
S2=<escape_character> OK
+CME ERROR: <err>
Read Command
The Read command displays the currently defined escape character for CSD connections.
Command Response/Action
S2? <escape_character>
OK
+CME ERROR: <err>
<Parameter> Description
264 98-08901C68-C
AT Commands Reference
4.10.1.5.2 S12
This command handles the selection of the guard time, which is stored in S-Register 12, and specifies the behavior of escape
characters during CSD connection.
For a guard time specified by S-Register 12, no character should be entered before or after "+++". The duration
between escape codes must be smaller than the guard time.
Note
Set Command
The Set command sets the CSD escape character guard time value if all parameters are valid.
Command Response/Action
S12=<guard_time> OK
+CME ERROR: <err>
Read Command
The Read command displays the current CSD escape character guard time.
Command Response/Action
S12? <guard_time>
OK
+CME ERROR: <err>
<Parameter> Description
4.10.1.6 \S, Show the Status of the Commands and S-registers in Effect
This command sets the use of the software control. It is used for backward compatibility.
This command adjusts the terminal auto rate. It is used for backward compatibility.
98-08901C68-C 265
AT Commands Reference
This command displays the link type. It is used for backward compatibility.
This command has no effect, and only returns OK. It is used for backward compatibility.
This command displays the most recently updated value stored in an S-register.
Read Command
The Read command returns the value of the last updated S-register..
Command Response/Action
AT? 000
OK
Example
AT?
000
OK
AT?
003
OK
ATS36=5
OK
AT?
005
OK
This command restores the factory default configuration profile. The g20 only supports one factory default profile, 0.
266 98-08901C68-C
AT Commands Reference
Set Command
Command Response/Action
AT&F<value> OK
or:
+CMS ERROR: <err>
Read Command.
Command Response/Action
Test Command
The Test command for &F is not defined by ITU, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the &F parameters.
<Parameter> Description
Example
AT&F?
000
OK
This command drops the current call, and resets the values to default configuration. The only acceptable value is 0.
Set Command
Command Response/Action
ATZ<value> OK
or:
+CMS ERROR: <err>
98-08901C68-C 267
AT Commands Reference
Read Command
The Read command for Z is not defined, and therefore is not supported by the g20. The g20 returns an error.
Test Command
The Test command for Z is not defined, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the Z parameters.
<Parameter> Description
Example
ATZ0
OK
In order to improve the power consumption, the g20 supports a low-power consumption mode, called "Sleep mode". The g20
has internal decision conditions for entering and exiting sleep mode. As the terminal and the g20 operate in a combined system,
and as the communication between the g20 and the terminal must be reliable, there should be a mechanism agreed upon by both
the g20 and the terminal to co-ordinate their separate sleep mode entering and exiting sequences. The g20 will not enter sleep
mode unless the terminal enables the g20 sleep mode and signals its readiness for sleep. For this purpose, a set of AT commands
and dedicated HW lines are defined.
268 98-08901C68-C
AT Commands Reference
4.10.2.2.1 Terminal Does Not Wake the g20 (If the Terminal Uses Hardware Flow Control Only)
When the g20 is in Sleep mode, the CTS line is also inactive. The terminal does not send any characters to the g20 if the CTS
is inactive, otherwise the character may be lost (Hardware Flow Control).
The terminal uses the Wakeup-In line (pin #16) to wake up the g20 when it wants to send data. When the Wakeup-In line is low,
the g20 will not enter the Sleep mode. If the terminal has data to send while the g20 is sleeping, it activates the line (brings it to
active low), then waits 30 ms (the time required to wake the g20). Only then can the terminal start sending data.
Data transmit
TXD
Line (pin #21)
WAKEUP-IN
Line (pin #16)
Idle
Wakeup
30 ms
98-08901C68-C 269
AT Commands Reference
When the data transmission is complete, the g20 gets the output wakeup line to high.
Data transmit
RXD
Line (pin #11)
WAKEUP-OUT
Line (pin #26)
Idle
Wakeup
ats102
WAKEUP-IN
Terminal TXD
g20 Awake
Sleep mode
(clock) Sleep
S24
g20 CTS
(Default when
at+mscts=0)
S102 S102
WAKEUP-OUT
g20 TXD
270 98-08901C68-C
AT Commands Reference
4.10.2.3 S24, Set Number of Seconds Delay Before g20 Enters Sleep Mode
This command activates/disables the Sleep mode. The terminal sends ATS24=5, and if there are no radio and UART activities,
the g20 enters sleep mode in 5 seconds.
If terminal has some indication of the CTS pin activity, it can see:
• If +MSCTS=0 (default), the line changes its state periodically. (For more information refer to “+MSCTS, Enable/Disable
CTS During Wakeup Period” on page 273.)
• If +MSCTS=1, the line is switched off at the moment of entering Sleep mode and stays off even if g20 is awakened.
Set Command
The Set command sets the amount of time, in seconds, the g20 should wait before entering Sleep mode.
Command Response/Action
ATS24=[<value>] OK
Read Command
Command Response/Action
ATS24? <value>
OK
<Parameter> Description
Example
ATS24? <enter>
000
OK
ATS24=5 <enter>
OK
ATS24? <enter>
005
98-08901C68-C 271
AT Commands Reference
OK
(If there are no radio and UART activities, the g20 will enter sleep mode in 5 seconds)
This command sets the value of the delay before sending data to the terminal. Before receiving data, the terminal connected to
the g20 will receive:
• Terminal Wakeup signal (the Wakeup Out Line (pin #26) state will be active low).
• A delay that is equal ATS102 value.
• Data (GPRS, CSD, AT commands' echo and results, unsolicited reports).
Set Command
The Set command sets the delay before sending data to the terminal, and defines a period between sending the wakeup signal
and sending data to the terminal.
Command Response/Action
ATS102 = <value> OK
Read Command
Command Response/Action
ATS102? <value>
OK
<Parameter> Description
Example
ATS102? <enter>
030
OK
ATS102=100 <enter>
OK
ATS102? <enter>
272 98-08901C68-C
AT Commands Reference
100
OK
(This means if there is data for transmission to the terminal, the g20 drops the Wakeup Out line, waits 100 ms. and then sends
data to the terminal.)
This command defines the behavior of the CTS line when the g20 is in normal mode (not Sleep mode).
The command configures the g20 CTS line behavior always to follow the flow control requirements, or to follow it only if the
terminal initiated a serial transmission session. This saves the terminal from following the CTS interrupt every time the g20 exits
Sleep mode for internal g20 reasons (non-terminal communication related reasons).
Set Command
The Set command tells the g20 whether to activate the CTS when the unit is awakening.
Command Response/Action
AT+MSCTS=<control> OK
Read Command
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 273
AT Commands Reference
<Parameter> Description
Example
AT+MSCTS = ?
+MSCTS: (0-1)
OK
AT+MSCTS?
+MSCTS: 0
OK
AT+MSCTS = 1
OK
ATS102?
1
OK
(This means that by waking up, the CTS line will stay OFF and it can be activated by the Wakeup IN Line interrupt only.)
The Set command disables or enables the use of result code +CME ERROR: <err> as an indication of an error relating to the
functionality of the g20. When enabled, g20-related errors cause a +CME ERROR: <err> final result code instead of the regular
ERROR final result code. Usually, ERROR is returned when the error is related to syntax, invalid parameters or terminal
functionality.
For all Accessory AT commands besides SMS commands, the +CMEE set command disables or enables the use of result code
+CME ERROR: <err> as an indication of an error relating to the functionality of the g20. When enabled, g20 related errors
cause a +CME ERROR: <err> final result code instead of the regular ERROR result code.
For all SMS AT commands that are derived from GSM 07.05, the +CMEE Set command disables or enables the use of result
code +CMS ERROR: <err> as an indication of an error relating to the functionality of the g20. When enabled, g20-related errors
cause a +CMS ERROR: <err> final result code instead of the regular ERROR final result.
274 98-08901C68-C
AT Commands Reference
Set Command
The Set command enables or disables the use of result code +CME ERROR: <err> as an indication of an error relating to the
functionality of the g20.
Command Response/Action
AT+CMEE=[<n>] OK
or:
+CME ERROR: <err>
Read Command
The Read command returns the current setting format of the result code.
Command Response/Action
Test Command
The Test command returns values supported by the terminal as a compound value.
Command Response/Action
<Parameter> Description
98-08901C68-C 275
AT Commands Reference
<Parameter> Description
276 98-08901C68-C
AT Commands Reference
<Parameter> Description
98-08901C68-C 277
AT Commands Reference
<Parameter> Description
+CME ERROR:280, Data lost, is sent to the terminal in extreme cases when the g20 has to transmit data to the
terminal and the buffers are full (Flow control Xoff status).
Example
AT+VTD
ERROR
AT+VTD
+CME ERROR: 1
278 98-08901C68-C
AT Commands Reference
AT+VTD
+CME ERROR: "operation not supported"
This execution command returns an extended error report containing one or more lines of information text <report>, determined
by the manufacturer, providing reasons for the following errors:
• Failure in the last unsuccessful call setup (originating or answering) or the in-call modification.
• Last call release.
Typically, the text consists of a single line containing the reason for the error according to information given by GSM network,
in textual format.
Set Command
Command Response/Action
AT+CEER=[<n>] OK
Execute Command
Command Response/Action
Read Command
Command Response/Action
Test Command
Command Response/Action
98-08901C68-C 279
AT Commands Reference
<Parameter> Description
280 98-08901C68-C
AT Commands Reference
<Parameter> Description
98-08901C68-C 281
AT Commands Reference
<Parameter> Description
Example
At+CEER
+CEER: "No information available"
OK
AT+CEER?
+CEER:2
OK
AT+CEER=?
+CEER: (001-002)
OK
This group of commands is used mostly by car-kit type applications. They indicate information about the state of the handset to
the g20, and control some aspects of the system.
282 98-08901C68-C
AT Commands Reference
This command enables an intelligent car kit to indicate the ignition state of the vehicle to the terminal, which enables the terminal
to turn on and off with the ignition, or to enter a power saving state when the ignition is turned off. The actual operation is
dependent on the terminal.
The action of the +MHIG command is subject to change.
Note
Set Command
Command Response/Action
+MHIG=<state> OK
<Parameter> Description
Example
AT+MHIG=1
OK
This command emulates key presses, or virtual keycodes, as if entered from the g20 keypad or from a remote handset. If a key
is not supported by the g20, the g20 returns +CME ERROR: indicating that error 25 (Invalid character) has occurred.
When using this command, numeric keys (0-9) must be placed within double quotes, for example, at+ckpd="4". Multiple
numeric key presses can be strung together into one command, for example, at+ckpd+"18478622544".
The characters ^ (up) and v (down) can be used with this command to scroll through menu items. The number of characters
indicates the number of times to scroll in that direction. For example, at+ckpd=vvvv scrolls four menu items down.
This command is provided primarily to support test efforts, and to allow the emulation of a handset device by a peripheral. This
command is not intended to be used by accessory devices to access items within the g20 menus.
It is not recommended to dial using this command. Using CKPD for call control purposes can cause inconsistencies between
call control indications and the true call control state. If CKPD is used for call control despite this recommendation, it should
not be mixed with call control AT commands like ATH/AT+CHLD and so on.
The +CKPD command does not support DTMF tones.
Note
98-08901C68-C 283
AT Commands Reference
Set Command
Command Response/Action
+CKPD=<keys>[,<time>[,<pause>]] OK
or:
+CME ERROR: <err>
<Parameter> Description
<time> Time for which to hold the key (in 0.1 seconds)
0...255 Seconds (default values are manufacturer
specific, but should long enough that a normal
g20 can handle keystrokes correctly).
<pause> Time for which to pause between key presses (in 0.1
seconds)
0...255 Seconds (default values are manufacturer
specific, but should be long enough that a normal
g20 can handle keystrokes correctly).
* 42 Star (*)
284 98-08901C68-C
AT Commands Reference
^ 94 Up arrow
Example
AT+CMER=0,2,0,0,0
OK
AT+CKPD=m //Emulate pressing the MENU button
98-08901C68-C 285
AT Commands Reference
OK
+CKEV: "M",1 //If +CMER is configured to echo and phone not locked
+CKEV: "M",0
AT+CKPD=[ //Emulate pressing the EXIT button - the left soft-key button
OK
+CKEV: "[",1
+CKEV: "[",0
This command enables accessories to control the press and release of key presses. If a key is not supported by a g20, the g20
returns a +CME ERROR: indicating that error 25 (Invalid character) has occurred.
Only a single key may be pressed at a given time. Sending in a new key press without releasing the previous key results in the
previous key being automatically released.
Set Command
Command Response/Action
+MKPD=<key>,<state> OK
or:
+CME ERROR: <err>
<Parameter> Description
Example
AT+CMER=0,2,0,0,0
AT+MKPD=m,1 //Emulate pressing the MENU button
OK
+CKEV: "M",1 //If +CMER is configured to echo and phone not locked
AT+MKPD=m,0 //Emulate releasing the MENU button
OK
+CKEV: "M",0
286 98-08901C68-C
AT Commands Reference
Set Command
The Set command enables/disables an external accessory to receive event reports from the g20. In some cases, this is used to
track the user activity for redisplay on a vehicle system, or to perform accessory-specific menu operations.
Command Response/Action
+CMER=[<mode>[,<keyp>[,<disp> OK
[,<ind>[,<bfr>]]]]] or:
+CME ERROR: <err>
Read Command
The Read command queries the current settings for the AT+CMER command.
Command Response/Action
Test Command
The Test command returns the possible <mode>, <keyp>, <disp>, <ind>, and <bfr> values.
Command Response/Action
<Parameter> Description
98-08901C68-C 287
AT Commands Reference
<Parameter> Description
Certain actions performed in the g20 UI by the user are transmitted to all attached accessories, primarily as a notification of a
change in state. For example, notification of a phone-book storage, recall operation or setting a call restriction level. These
messages are required by certain accessories to maintain local information, or to provide additional information on an auxiliary
display.
This unsolicited message is sent when local key press echo is enabled (as described in “+CMER, Mobile Equipment Event
Reporting” on page 287) and a key is pressed on the g20 keypad. The identity of the key is broadcast to all the accessories, as
well as information about whether the key was pressed or released. This command can be configured to send key presses from
the g20 keypad only, or from other accessories as well.
When the phone is locked and a digit or a softkey is pressed, the "@" character is used in the message event instead of the actual
key being pressed. This prevents passwords or codes entered by the user being monitored or stolen by attached accessories (for
example, Bluetooth devices).
288 98-08901C68-C
AT Commands Reference
Unsolicited Report
Response/Action
+CKEV: <key>,<press>
<Parameter> Description
Example
AT+CMER=?
+CMER: (00),(00,01,02),(00),(00),(00)
AT+CMER?
+CMER: 00,00,00,00,00
AT+CMER=0,2,0,0,0
OK
AT+CMER?
+CMER: 00,02,00,00,00
AT+CKPD=M
OK
+CKEV: "M",1
+CKEV: "M",0
When text on the display changes and the <disp> parameter of the +CMER command is set to 1, the +CDEV indication is sent
to the DTE.
Unsolicited Report
Response/Action
+CDEV: <elem>,<text>
98-08901C68-C 289
AT Commands Reference
<elem> indicates the Y coordinate of the upper left corner of the text on the display.
Note
When a g20 indication is changed and the <ind> parameter of the +CMER command is set to 1, the +CIEV indication is sent to
the DTE.
Unsolicited Report
Response/Action
+CIEV: <ind>,<value>
<value>
<ind> Description Explanation
Range
290 98-08901C68-C
AT Commands Reference
This output is sent by the g20 when a phone book entry is accessed or modified by the user.
Set Command
Command Response/Action
+MUPB=<n> OK
Unsolicited Report
Response/Action
+MUPB: <event>,<index>,<ph_list>
<Parameter> Description
Example
AT+MUPB=1
OK
98-08901C68-C 291
AT Commands Reference
Execute Command
The Execute command displays the current active configuration and stored user profiles.
Command Response/Action
Example
at&v
ACTIVE PROFILE:
E1 Q0 V1 X4 &C1 &D2 &K3 &Y0
S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:004 S07:050
S08:004 S09:006 S10:014 S12:040 S14:AAH S16:80H S18:000 S21:30H
S22:F6H S23:1BH S25:005 S26:001 S27:09H
STORED PROFILE 0:
E1 Q0 V1 X4 &C1 &D2 &K3
S00:000 S02:043 S03:013 S04:010 S05:008 S07:050 S12:040
STORED PROFILE 1:
E1 Q0 V1 X4 &C1 &D2 &K3
S00:000 S02:043 S03:013 S04:010 S05:008 S07:050 S12:040
OK
292 98-08901C68-C
AT Commands Reference
Set Command
The Set command stores the current active configuration to user profile 0 or 1.
Command Response/Action
&W[<n>] OK
or:
+CME ERROR: <err>
<Parameter> Description
The parameters that are set in a profile are described in the table below.
S0 Auto-answer 0-255 0 8
98-08901C68-C 293
AT Commands Reference
Example
at&w0
OK
at&w1
OK
Set Command
Command Response/Action
&Y[<n>] OK
or:
+CME ERROR: <err>
294 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
at&y0
OK
at&y1
OK
This command enables you to read the following data from the SIM card:
• IMSI
• GID1
• GID2
• ICC ID
Set Command
The Set command issues a request for information stored in the SIM card. In case of a successful read operation, the information
is sent to the DTE. IMSI, GID1 and GID2 require an unlocked SIM. For ICC ID, the SIM may be locked.
Command Response/Action
Test Command
98-08901C68-C 295
AT Commands Reference
The Test command returns the possible <command> and <field> values.
Command Response/Action
Table 143.
<Parameter> Description
Example
AT+CRSM=176,214
+CRSM: 0,0,FFFFFFFFFFFFFFFFFFFF00000000000000000000
OK
AT+CRSM=176,242
+CRSM: 0,0,89972010102050863733
OK
296 98-08901C68-C
AT Commands Reference
4.12 GPRS
GSM 07.07 defines commands that a TE may use to control a GPRS MT via a non-multiplexed character-stream interface. This
places certain limitations on the functionality of the interface. For example, it is not possible for the MT to send control infor-
mation to the TE or for the TE to send commands to the MT whilst the interface is in the online data state, unless the layer 2
protocol itself supports this feature (GSM 07.60-12). However, g20-specific escape mechanism (DTR) is provided to enable the
TE to switch the g20 into limited online command state.
The use of a multiplexed interface, ( GSM 07.10 ), is not considered here (See “RS232 multiplexer feature”). The g20-specific
escape mechanism use DTR as an escape signal (following &D parameters) and designed for limited non network related
commands. This specific mechanism purpose is to give the user a way to retrieve the signal strength. The time limit of consec-
utive DTR toggles is a minimum of 90 seconds. The g20-specific is not designed to support online command and data states
both at the same time, therefore any wrong or extreme usage can cause unexpected behaviors. The basic GPRS concept is be
“always connected” and there is no charge for being connected (only per real data transferred).
This section defines commands that a terminal may use to control a GPRS MT. GPRS MTs vary widely in functionality. A class
A MT might support multiple PDP-types as well as circuit-switched data, and use multiple external networks QoS profiles. At
the other extreme, a class C MT might support only a single PDP-type using a single external network, and rely on the HLR to
contain the PDP context definition. A comprehensive set of GPRS-specific commands is defined below to provide the flexibility
needed by the more complex MT. The commands are designed to be expandable to accommodate new PDP types and interface
protocols, merely by defining new values for many of the parameters. Multiple contexts may be activated if the interface link-
layer protocol is able to support them. The commands use the extended information and error message capabilities described in
this specification. For MTs of intermediate complexity, most commands have simplified forms where certain parameters may
be omitted. For the simplest MTs, and for backwards compatibility with existing communications software, it is possible to
control access to the GPRS using existing modem-compatible commands. This "modem compatible" mode of operation is
described below.
This command is used to set the g20 to operate according to the specified GPRS mobile class. If the requested class is not
supported, an ERROR or +CME ERROR response is returned. Extended error responses are enabled by the +CMEE command.
98-08901C68-C 297
AT Commands Reference
Read Command
Command Response/Action
Test Command
The Test command is used for requesting information on the supported GPRS mobile classes.
Command Response/Action
Issuing GPRS actions over a poor-quality connection may cause protocol errors and harm data validity. To prevent
these problems, g20 is equipped with a protection mechanism that confirms GPRS signal strength before issuing
GPRS network-related commands.
Note
<Parameter> Description
Example
AT+CGCLASS=?
+CGCLASS: (B)
OK
If a SIM card without GPRS allowance is used:
at+cgclass=?
Note +CGCLASS: (CC) //Note that CC is a not supported value.
298 98-08901C68-C
AT Commands Reference
Set Command
The Set command specifies the context identification parameter values for a PDP context. A special form of the Set command,
+CGDCONT= <cid> causes the values for context number <cid> to become undefined.
Command Response/Action
AT+CGDCONT=[<cid> OK
[,<PDP_type>[,<APN> or:
[,<PDP_addr>[,<d_comp> +CME ERROR: <err>
[,<h_comp>]]]]]]
Read Command
The Read command returns the current settings for each defined context.
Command Response/Action
Test Command
The Test command returns the values supported as a compound value. If the MT supports several PDP types, <PDP_type>, the
parameter value ranges for each <PDP_type> are returned on a separate line.
Command Response/Action
98-08901C68-C 299
AT Commands Reference
<Parameter> Description
300 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CGDCONT=?
+CGDCONT: (1-3),("IP"),,,(0,1),(0,1)
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","","0.0.0.0",0,0
+CGDCONT: 2,"IP","","0.0.0.0",0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0
OK
at+cgdcont= 1,"IP","internetg","0.0.0.0",0,0
OK
at+cgdcont?
+CGDCONT: 1,"IP","internetg","0.0.0.0",0,0
+CGDCONT: 2,"IP","","0.0.0.0",0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0
OK
98-08901C68-C 301
AT Commands Reference
at+cgdcont= 1,"IP","internetg","0.0.0.0",0,0
OK
at+cgdcont=2,"IP","internetg","0.0.0.0",1,1
OK
This command enables the terminal to specify the minimum acceptable profile which is checked by the MT against the negoti-
ated profile returned in the Activate PDP Context Accept message.
Set Command
The Set command specifies a profile for the context identified by the (local) context identification parameter, <cid>. As this is
the same parameter that is used in the +CGDCONT command, the +CGQMIN command is effectively an extension of the
+CGDCONT command. The QoS profile consists of a number of parameters, each of which may be set to a separate value.
Command Response/Action
AT+CGQMIN=[<cid> OK
[,<precedence> [,<delay> or:
[,<reliability.> [,<peak> +CME ERROR: <err>
[,<mean>]]]]]]
Read Command
The Read command returns the current settings for each defined context.
Command Response/Action
302 98-08901C68-C
AT Commands Reference
Test Command
The Test command returns the parameter value ranges for each <PDP_type>.
Command Response/Action
<Parameter> Description
Example
AT+CGQMIN=?
+CGQMIN: (1-3),(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
AT+CGQMIN?
+CGQMIN: 1,2,4,3,9,10
+CGQMIN: 2,2,4,3,9,10
+CGQMIN: 3,2,4,3,9,10
OK
98-08901C68-C 303
AT Commands Reference
This command enables the terminal to specify a Quality of Service Profile that is used when the MT sends an Activate PDP
Context Request message to the network.
Set Command
The Set command specifies a profile for the context identified by the (local) context identification parameter, <cid>. As this is
the same parameter that is used in the +CGDCONT command, the +CGQREQ command is effectively an extension of the
+CGDCONT command. The QoS profile consists of a number of parameters, each of which may be set to a separate value.
A special form of the Set command, +CGQREQ= <cid>, causes the requested profile for context number <cid> to become
undefined.
Command Response/Action
AT+CGQREQ=[<cid> OK
[,<precedence> [,<delay> or:
[,<reliability.> [,<peak> +CME ERROR: <err>
[,<mean>]]]]]]
Read Command
The Read command returns the current settings for each defined context.
Command Response/Action
Test Command
The Test command returns values supported as a compound value. If the MT supports several PDP types, the parameter value
ranges for each PDP type are returned on a separate line.
Command Response/Action
304 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CGQREQ=?
+ CGQREQ: (1-3),(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
AT+CGQREQ?
+CGQREQ: 1,2,4,3,9,10
+CGQREQ: 2,2,4,3,9,10
+CGQREQ: 3,2,4,3,9,10
OK
AT+CGQREQ=1,0,,0,0,0
OK
AT+CGQREQ?
+CGQREQ: 1,0,4,0,0,0
+CGQREQ: 2,2,4,3,9,10
+CGQREQ: 3,2,4,3,9,10
OK
98-08901C68-C 305
AT Commands Reference
This command attaches/detaches the MT to/from the GPRS service. When the command has completed, the MT remains in
V.25ter command state. If the MT is already in the requested state, the command is ignored and the OK response is returned. If
the requested state cannot be achieved, an ERROR or +CME ERROR response is returned. Extended error responses are enabled
by the +CMEE command. Any active PDP contexts will be automatically deactivated when the attachment state changes to
detached.
Set Command
Command Response/Action
AT+CGATT= [<state>] OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
Test Command
The Test command requests information on the supported GPRS service states.
This command has the characteristics of both the V.25ter action and parameter commands. Therefore, it has
the Read form in addition to the Execution/Set and Test forms.
Note
Command Response/Action
306 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
AT+CGATT=?
+CGATT: (0,1)
OK
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=0
OK
This command enables the MT to perform the actions necessary for establishing communication between the terminal and the
external Packet Data Network (PDN).
The ITU V.25ter 'D' (Dial) command causes the MT to enter the ITU V.25ter Online Data state and together with the terminal,
to start the specified layer 2 protocol. The MT returns CONNECT to confirm acceptance of the command prior to entering the
ITU V.25ter Online Data state. No further commands may follow on the AT command line.
The detailed behavior after the Online Data state has been entered is dependent on the PDP type, and is described briefly. GPRS
attachment and PDP context activation procedures may take place prior to, or during the PDP startup if they have not already
been performed using the +CGATT and +CGACT commands.
When the layer 2 protocols have terminated, either as a result of an orderly shut down of the PDP or an error, the MT enters the
ITU V.25ter command state and returns the NO CARRIER final result code.
If <called address> is supported and provided, the MT automatically sets up a virtual call to the specified address after the PDP
context has been activated.
If <L2P> and <cid> are supported, their usage is the same as in the +CGDATA command. The +CGDCONT, +CGQREQ and
other such commands may then be used in the modem initialization AT command string to set values for PDP type, APN, QoS
and so on.
If <L2P> is not supported, or is supported but omitted, the MT uses a layer 2 protocol appropriate to the PDP type.
98-08901C68-C 307
AT Commands Reference
If <cid> is not supported, or is supported but omitted, the MT attempts to activate the context using one of the following:
• Any information provided by the terminal during the PDP startup procedure. For example, the terminal may provide a PDP
type and/or PDP address to the MT.
• A prior knowledge, for example, the MT may implement only one PDP type.
Using the "Empty PDP type" No PDP address or APN is sent in this case and only one PDP context subscription record is present
in the HLR for this subscriber.
This command may be used in both normal and modem compatibility modes.
Set Command
Command Response/Action
ATD*<GPRS_SC>[* CONNECT
[<called_address>][*[<L2P>] or:
[*[<cid>]]]]# ERROR
<Parameter> Description
<called_address> String that identifies the called party in the address space
applicable to the PDP. For communications software that
does not support arbitrary characters in the dial string, a
numeric equivalent may be used. Also, the comma
character "," may be used as a substitute for the period
character ".".
For PDP type OSP:IHOSS, the following syntax may be
used for <called_address>:[<host>][@[<port>][@
[<protocol>]]] where <host>, <port> and <protocol> are
defined in “+CGDCONT, Define PDP Context” on
page 299.
For communications software that does not support
arbitrary characters in the dial string, a numeric value
equivalent to the hostname may be used. However, this
should be avoided if at all possible.
308 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
ATD*99 //Try connecting to GPRS according to the first <cid>, defined in +CGDCONT
Execute Command
Command Response/Action
98-08901C68-C 309
AT Commands Reference
Read Command
Command Response/Action
<Parameter> Description
Example
310 98-08901C68-C
AT Commands Reference
Set Command
The Set command activates/deactivates the specified PDP context(s). When the command is completed, the MT remains in V.25
command state. If any PDP context is already in the requested state, the state for that context remains unchanged. If the requested
state for any specified context cannot be achieved, an ERROR or +CME ERROR response is returned. Extended error responses
are enabled by the +CMEE command. If the MT is not GPRS-attached when the activation form of the command is executed,
the MT first performs a GPRS attach and them attempts to activate the specified contexts. If the attach fails, the MT responds
with an ERROR or, if extended error responses are enabled, with the appropriate failure-to-attach error message.
Command Response/Action
AT+CGACT=[<state> [,<cid> OK
[,<cid>[,]]]] or:
+CME ERROR: <err>
Read Command
The Read command returns the current activation states for all the defined PDP contexts.
Command Response/Action
Test Command
The Test command requests informaton on the supported PDP context activation states.
Command Response/Action
98-08901C68-C 311
AT Commands Reference
<Parameter> Description
Example
AT+CGACT=?
+CGACT: (0,1)
OK
AT+CGACT?
+CGACT: 1,0
+CGACT: 2,0
+CGACT: 3,0
OK
AT+CGACT=1
ERROR //GPRS network not present.
In some GPRS networks, +CGACT is not supported. the ATD*99 # command can be used to establish a
connection.
Note
The following commands return OK, but do not execute any operation. They are only used to provide backward compatibility.
Command Description
312 98-08901C68-C
AT Commands Reference
Command Description
\K Breaks control
98-08901C68-C 313
AT Commands Reference
314 98-08901C68-C
AT Commands Reference
+IPR Local terminal-g20 serial port rate Supported (refer to “+IPR, Local
Terminal/g20 Serial Port Rate”
on page 199)
The g20 facsimile service maintains a parameter for identification and control of facsimile services, "+FCLASS". When the
terminal wants to establish a FAX connection, it must set the g20 to Service Class 1 operation prior to answering or originating
a call. This is done by setting +FCLASS = 1.
Set Command
The Set command sets the g20 facsimile service class from the available choices.
Command Response/Action
AT+FCLASS=<n> OK
(Puts the g20 into a particular mode of operation.)
Read Command
The Read command reads the current service class setting of the g20.
Command Response/Action
98-08901C68-C 315
AT Commands Reference
Test Command
The Test command returns a list of service classes available from the g20.
Command Response/Action
<Parameter> Description
Example
AT+FCLASS=?
+FCLASS: 0,1
OK
AT+FCLASS?
+FCLASS: 0
OK
AT+FCLASS=1
OK
This command causes the g20 to stop any transmission. The g20 then waits for the specified amount of time, and sends the OK
result code to the terminal.
Set Command
Command Response/Action
AT+FTS = <Time> OK
or:
+CME ERROR: <err>
316 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
At+fclass=1
OK
Atd035658584
CONNECT 9600
OK
AT+FTS=20
OK
This command causes the g20 to wait for silence and to report back an OK result code when silence has been present on the line
for the specified amount of time. The command terminates when the required amount of silence on the line is detected or when
the terminal sends the g20 a character other than <DC1> (11h) or <DC3> (13h), which is discarded. In either event, the OK
result code is returned to the terminal.
Set Command
The Set command specifies the amount of time the line must be silent.
Command Response/Action
+FRS = <Time> OK
or:
+CME ERROR: <err>
<Parameter> Description
98-08901C68-C 317
AT Commands Reference
Example
At+fclass=1
OK
Atd035658584
CONNECT 9600
OK
At+frs=50
OK //The g20 sends the OK after silence for 10*50 milliseconds
This command causes the g20 to transmit data to the remote party using the modulation selected in <MOD>. The g20 sends the
data stream received from the terminal without any framing.
The DLE character, (0x10), is used as a special character to precede command characters. The character pairs
<DLE><command> are used to convey commands or status information between the terminal and the g20.
• Terminal to g20 streams (Encoding)
• When the terminal needs to send a <DLE> character in the data stream, it sends two sequential <DLE> characters to the
g20.
• When the terminal needs to send two sequential <DLE> characters in the data stream, it sends the <DLE><SUB>
characters instead.
• When the terminal sends the terminator sequence <DLE> <ETX>, the data stream is terminated.
• g20 to terminal streams (Decoding):
• The terminal decodes the input stream and removes all character pairs beginning with <DLE>.
• The terminal recognizes <DLE><ETX> as the data stream terminator.
• The terminal recognizes and replaces <DLE><DLE> by a single <DLE> in the data stream.
• The terminal recognizes and replaces <DLE><SUB> by a single <DLE><DLE> in the data stream.
When the g20 receives the +FTM command, it immediately returns an OK result code. When the terminal receives the OK from
the g20, it can start sending the data stream using the transparent data command encoding. When the g20 decodes the terminating
sequence, it returns a CONNECT.
Set Command
The Set command causes the g20 to transmit data using the modulation selected in <MOD>.
Command Response/Action
+FTM = <MOD> OK
or:
+CME ERROR: <err>
318 98-08901C68-C
AT Commands Reference
Test Command
Command Response/Action
Modulation Parameters
Example
AT+FCLASS=1
OK
ATD035658584
CONNECT 19200
AT+FRH=3
OK
CONNECT 19200
AT+FTH=3
OK
(The terminal sends DATA. The g20 decodes and packs it into the HDLC frame and sends it to the remote party)
CONNECT 19200 //g20 detected termination sequence <DLE><DTX>.
AT+FTM=?
+FTM: 24,48,72,96
OK
98-08901C68-C 319
AT Commands Reference
This command causes the g20 to receive data from the remote party using the modulation specified in <MOD>.
When the g20 receives the +FRM command it immediately returns a CONNECT result code. When the terminal receives the
CONNECT from g20, it can start receiving the data stream using the transparent data command decoding. (Refer to Table 157,
“Command Modulation Select Codes” on page 319.)
When the g20 receives the +FRM command, it checks the line for a carrier. If the g20 detects a carrier, it sends a CONNECT
to the terminal, and starts receiving the fax page.
Upon data stream termination, the g20 sends the termination sequence to the terminal. Afterwards, if the g20 detects a loss of
carrier, it sends a "NO CARRIER", otherwise it sends OK.
Set Command
The Set command causes the g20 to enter the receive mode using the modulation specified in <MOD>.
Command Response/Action
Test Command
Command Response/Action
320 98-08901C68-C
AT Commands Reference
Modulation Parameters
This command causes the g20 to transmit data framed in the HDLC protocol, using the modulation mode selected, to the remote
party.
For encoding and decoding information refer to “Transmission Using the Transparent Data Command” on page 318.
After the entering active session mode (g20 sent CONNECT to the terminal), the terminal can perform one of the following:
• If the terminal sends additional data, the g20 transmits another frame
• If the terminal sends only <DLE><ETX> (a null frame), the g20 turns off the transmit carrier and sends the CONNECT result
code to the terminal
• If five seconds elapses from the time the g20 reports the OK result code without any additional data transmitted from the
terminal, the g20 turns off the transmit carrier, returns to command mode, and sends the ERROR result code to the terminal.
Set Command
The Set command causes the g20 to transmit data framed in HDLC protocol using the modulation mode selected.
Command Response/Action
98-08901C68-C 321
AT Commands Reference
Modulation Parameters
Example
AT+FCLASS=1
OK
ATD035658584
CONNECT 19200
AT+FRH=3
CONNECT 19200
(Terminal sends TSI frame data, as described in ITU-T30 with terminating sequence)
CONNECT 19200 //The g20 detected the terminating sequence
(Terminal sends DCS frame data, as described in ITU-T30 with terminating sequence and drops the carrier)
OK
This command causes the g20 to receive HDLC framed data using the modulation mode selected in <MOD>, and deliver the
next received frame to the terminal.
If the g20 detects the selected carrier with an HDLC flag, the g20 send the CONNECT result code to the terminal, otherwise it
sends "NO CARRIER".
The g20 sends the FCS octant to the terminal. The terminal may ignore the FCS.
Upon receipt of the CONNECT from g20, the terminal can start receiving the data stream using the transparent data command
decoding. (Refer to “Command Modulation Select Codes” on page 319.)
322 98-08901C68-C
AT Commands Reference
After the FCS octets are transferred, the g20 marks the end of the frame with the characters <DLE> <ETX>, and reports the
status of the frame reception to the terminal, as follows:
• If the frame was received correctly (FCS is OK), the g20 returns the OK result code.
• If the frame was received in error (FCS is not OK, or carrier lost, or data lost due to data overflow), the g20 returns the
ERROR result code, and the terminal should discard the frame.
After the status result code, the g20 accepts new commands from the terminal.
Set Command
The Set command causes the g20 to receive HDLC framed data using the modulation mode selected in <MOD>, and deliver
the next received frame to the terminal.
Command Response/Action
Note
This parameter controls the operation of the local flow control between the terminal and the g20 during the data state when V.42
error control is used, or when fallback to non-error control mode is specified to include buffering and flow control. It accepts
two numeric subparameters:
• <DCE_by_DTE>: Specifies the method to be used by the terminal to control the flow of received data from the g20.
• <DTE_by_DCE>: Specifies the method to be used by the g20 to control the flow of transmitted data from the terminal.
The implementation of this parameter is mandatory if V.42 error control or Buffered mode is provided in the g20. If not, it is
optional. g20s which do not implement circuit 106 and/or circuit 133 do not need to support the value 2 for the corresponding
subparameter.
Set Command
Command Response/Action
AT+IFC=[[<DCE_by_DTE>,[DTE_b OK
y_DCE>]]]
+CME ERROR: <err>
98-08901C68-C 323
AT Commands Reference
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
<DCE_by_DTE> 0 None
1 DC1/DC3 on circuit 103. Do not pass DC1/DC3
characters to the remote DCE.
2 Circuit 133 (ready for receiving).
3 DC1/DC3 on circuit 103 with DC1/DC3 characters
being passed through to the remote g20 in addition
to being acted upon for local flow control.
4-127 Reserved for future standardization.
Other Reserved for manufacture-specific use.
The default is 2.
Note: DC1 is IA5 1/1. DC3 is IA5 1/3.
<DTE_by_DCE> 0 None
1 DC1/DC3 on circuit 104.
2 Circuit 106 (clear to Send/Ready for Sending).
3-127 Reserved for future standardization.
Other Reserved for manufacture-specific use.
The default is 2.
Note: DC1 is IA5 1/1. DC3 is IA5 1/3.
Example
AT+IFC=?
+IFC: (0-3),(0-2)
OK
AT+IFC?
+IFC: 2,2
324 98-08901C68-C
AT Commands Reference
OK
AT+IFC=2,2
OK
4.15 FEATURES
4.15.1 STK
The SIM Application Toolkit (STK) is a set of applications and related procedures, which may be used in conjunction with SIM
or Smart Cards during a GSM session. The STK provides mechanisms that enable applications existing in the SIM to interact
and operate with any ME (such as the g20) that support these mechanisms.
The following scheme shows the SIM Toolkit functionality commands and unsolicited results that are implemented. All these
commands are non-basic commands.
AT+MTKE
Activation
+MTKP
SIM sends pro-active command
Customer g20
Application Module
AT+MTKP
User response to the SIM
• In the first step, the customer application informs the g20 module that it wants all features to be supported. This operation is
performed using the AT+MTKE (Motorola ToolKit Enable) command, which allows activating or deactivating the SIM
Toolkit functionality.
• In the second step, an unsolicited result +MTKP (Motorola ToolKit Proactive) is sent by the g20 in order to indicate the
customer application, command type the SIM Application Toolkit is running on the SIM card, and the relevant information.
• In the third step, the customer application uses the AT+MTKP command to respond to the SIM ToolKit command, given by
+MTKP.
98-08901C68-C 325
AT Commands Reference
The mechanisms defined for the STK are dependent upon the relevant commands and protocols found in GSM 11.11.
Mechanism Description
Profile Download Enables the g20 to tell the SIM what its capabilities are.
(The g20 is aware of the SIM’s capabilities via the SIM
Service Table and EFPHASE.) Refer to “+MTKR, Profile
Download”, page 326.
Provide Local Information Defined as part of the proactive SIM service, this command
requests the g20 to pass local information to the SIM, for
example, the mobile country and network codes (MCC +
MNC) of the network on which the user is registered.
Send DTMF Defined as part of the proactive SIM service, this command
requests the g20 to send DTMF tone(s) during an
established call. Refer to “Send DTMF”, page 344.
Set Up Idle Mode Text Defined as part of the proactive SIM g20, this command
supplies a text string to be used by the ME as stand-by
mode text.
Launch Browser Defined as part of the proactive SIM service, this command
requests a browser inside a browser-enabled user terminal
to interpret the content corresponding to a URL. Refer to
“Launch Browser”, page 346.
Set Up Event List Defined as part of the proactive SIM service, this command
supplies a list of events, which the SIM wants the g20 to
provide details of when these events happen. Refer to “Set
Up Event List”, page 347.
This command displays the profile that is downloaded from the g20 to the SIM during the SIM initialization process. This profile
includes the facilities relevant to the STK that are supported by the g20, enabling the SIM to limit its instruction range to those
STK features the g20 supports. (Refer to “Profile Structure”, page 327.) Without a profile, the SIM assumes that the g20 does
not support the STK.
Profile download is performed automatically during device initialization, with no user intervention required.
Set Command
The Set command for +MTKR is not supported by the g20. (The g20 will return an error.)
326 98-08901C68-C
AT Commands Reference
Read Command
Command Response/Action
Test Command
The Test command for +MTKR is not supported by the g20. (The g20 will return an error.)
The following table shows the +MTKR parameters.
<Parameter> Description
Example
AT+MTKR?
+MTKR: 2F6FFFFFFF0E1F1F4300001F2300000003
OK
The profile lists those STK facilities supported by the g20. One bit is used to code each facility:
• If bit = 1, facility is supported
• If bit = 0, facility is not supported
The following table describes the contents of each bit in the profile.
Bit Description
b1 Profile download
98-08901C68-C 327
AT Commands Reference
Bit Description
b4 Menu selection
b6 Timer expiration
Bit Description
b1 Command result
Bit Description
328 98-08901C68-C
AT Commands Reference
Bit Description
Bit Description
98-08901C68-C 329
AT Commands Reference
Bit Description
b2 Event: MT call
Bit Description
b5 RFU, bit = 0
b6
b7
b8
330 98-08901C68-C
AT Commands Reference
Bit Description
b6 RFU, bit = 0
b7
b8
Bit Description
98-08901C68-C 331
AT Commands Reference
Bit Description
b8 RFU, bit = 0
Bit Description
b3 RFU, bit = 0
b4
b5
b6
b7
b8
332 98-08901C68-C
AT Commands Reference
Bit Description
b2
b3
b4
b6
b7
b8
Table 174. Profile Structure – Byte 12 (Bearer independent protocol proactive commands – class "e")
Bit Description
b6 RFU, bit = 0
b7
b8
98-08901C68-C 333
AT Commands Reference
Table 175. Profile Structure – Byte 13 (Bearer independent protocol supported bearers – class "e")
Bit Description
b1 CSD supported by ME
b2 GPRS supported by ME
b3 RFU, bit = 0
b4
b5
b7
b8
Bit Description
b3
b4
b5
b6 RFU, bit = 0
b7
334 98-08901C68-C
AT Commands Reference
Bit Description
b3
b4
b5
b6
b7
Bit Description
b4 RFU
b5
b8
98-08901C68-C 335
AT Commands Reference
Table 179. Profile Structure – Byte 17 (Bearer independent protocol supported transport interface – class "e")
Bit Description
b1 TCP
b2 UDP
b3 RFU, bit = 0
b4
b5
b6
b7
b8
Bit Description
b1 RFU, bit = 0
b2
b3
b4
b5
b6
b7
b8
336 98-08901C68-C
AT Commands Reference
Bit Description
b2
b3
b4
b5 RFU, bit = 0
b6
b7
b8
The bits comprising each subsequent byte are all: RFU, bit = 0.
Note
Set Command
Command Response/Action
+MTKE=<Enable> OK
or:
+CME ERROR: <err>
Read Command
Command Response/Action
98-08901C68-C 337
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
AT+MTKE?
+MTKE: 0 //No activation of SIM ToolKit functionality
OK
In order to allow the customer to identify the pro-active command sent by the SIM ToolKit, an unsolicited SIM ToolKit
indication (with the appropriate information, such as text to display, priorities and so on) is implemented.
338 98-08901C68-C
AT Commands Reference
22 Provides a text string to display when the g20 is +MTKP=22,"<idle mode text string>"
in idle text mode.
The Cmd Type numbers refer to the proactive command which was sent from the SIM (This is the
ProactiveCmdType field).
Note For "get inkey" and "get input", a one-minute timer is set, and any response for these unsolicited commands after
one minute is not accepted.
98-08901C68-C 339
AT Commands Reference
<Parameter> Description
340 98-08901C68-C
AT Commands Reference
<Parameter> Description
<TimeUnit> 0 Minutes.
1 Seconds.
2 Tenths of seconds.
98-08901C68-C 341
AT Commands Reference
<Parameter> Description
<idle mode text Text string to display when the g20 is in idle mode.
string>
Set Command
The Set command allows the user to answer the following proactive commands:
• GET_INKEY Key pressed from the user.
• GET_INPUT Message entered by the user.
• Enable/disable the DTMF service by the user.
• Launch browser
342 98-08901C68-C
AT Commands Reference
Command Response/Action
AT+MTKP=<CmdType>,<Result> OK
[,<Data>] +CME ERROR: <err>
<Parameter> Description
98-08901C68-C 343
AT Commands Reference
<Parameter> Description
<Data> None
Note
Example
+ MTKP: 1,0,Hello //Display text cmd was sent from SIM (number 1), with normal priority (number 0),
and the text is "hello"
This proactive SIM service command requests the g20 to send a DTMF string after successfully establishing a call. This
command can be used at any time during a call. The g20 does not locally generate audible DTMF tones to play to the user.
This command can be activated/deactivated by the user using the command +MTKP=24. The setting defined by the user is
retained during the currently active call and is restored after a power cycle. If a DTMF command is sent to the g20 while this
command is disabled, the g20 sends an "Unable to process" terminal response to the SIM.
The terminal response indicating that the command has been performed successfully is sent after the complete DTMF string is
sent to the network by the g20. If the command is sent in idle mode, or if a call is terminated or put on hold before the complete
DTMF string is sent to the network, the g20 informs the SIM using terminal response 20, with the additional information "Not
in speech call". If the user indicates the need to end the proactive SIM application session while the g20 is sending the DTMF
string, the g20 stops sending the string and sends the following terminal response, "Proactive SIM application session terminated
by the user".
If the SIM includes an alpha identifier in the command, the g20 displays this string for the user in the form of a +MTKP unso-
licited response. In all other cases, no information is sent to the user.
Set Command
The Set command activates and deactivates the send DTMF command.
Command Response/Action
+MTKP=24,<enable/disable> OK
344 98-08901C68-C
AT Commands Reference
Unsolicited Response
Read Command
The Read command displays the current status of the send DTMF command.
Command Response/Action
The diagram below demonstrates the communication between the SIM, the g20 and the TE regarding a DTMF command during
an active voice call.
SIM ME TE
AT+MTKP?
+MTKP: 24,1
Send DTMF
DTMF Sent
+MTKP: 24,”<alpha id>”
AT+MTKP=24,0
AT+MTKP?
+MTKP: 24,0
Send DTMF
Unable to process
98-08901C68-C 345
AT Commands Reference
This is a proactive command that requests a browser inside a browser-enabled user terminal to interpret the content
corresponding to a URL. It is forwarded to the TE using an unsolicited event mechanism.
Unsolicited Response
+MTKP=26,<URL>,<bearers>,<proxy_Id>[
,<alpha_id>]
The TE answers this unsolicited response using the +MTKP command. For the general result, "launch browser generic error
code", the g20 must provide additional information.
Command Response/Action
AT+MTKP=26,<Result>[<additional OK
info>]
+CME ERROR: <err>
The following table shows the +MTKP parameters for response code 26.
<Parameter> Description
<result> 0 Success
1 Failure
When STK proactive commands are disabled by the TE, MTKP unsolicited events are not issued to it. In such a
case, the Launch Browser command is rejected with the result value "Browser unavailable".
Note
346 98-08901C68-C
AT Commands Reference
SIM ME TE
Launch Browser
+MTKP: 26,<URL>,<bearers>,
<proxyld>,[alphald>]
AT+MTKP=26,<Result>,
[<additional info>]
The SIM card uses this command to supply a set of events, which becomes the current list of events for the g20 to monitor,
replacing any existing list. This command can also be used to remove the list of events. The list of events provided by the SIM
is erased if the g20 is powered down, or if the SIM is removed or electrically reset. When one of the events in the current list
occurs, the g20 uses the Event Download mechanism to transfer event details to the SIM.
The following table describes the events types.
Event Notes
Idle Screen Available Event Initiated by TE and reported via +MTKP command. TE is
responsible for deciding what triggers this event. Only the
event occurrence is monitored by g20; no additional
information is required.
98-08901C68-C 347
AT Commands Reference
Event Notes
Language Selection Event TE is responsible for deciding what triggers this event.
+MTKP command contains a data portion with language
code – a pair of alphanumeric characters (defined in ISO
639 [29]), each of which is coded on one byte using the
SMS default 7-bit coded alphabet, as defined in TS 23.038,
with bit 8 set to 0.
Browser Termination Event Initiated by TE and reported via +MTKP command. The
command contains a data portion that includes the cause
of termination:
0 User terminated
1 Error terminated
TE is responsible for deciding what triggers this event.
Set Command
Command Response/Action
+MTKP=16,<result>[,<Data>] OK
Test Command
Command Response/Action
+MTKP=? OK
<Parameter> Description
348 98-08901C68-C
AT Commands Reference
<Parameter> Description
Each language code consists of a pair of alphanumeric characters, defined in ISO 639 [4]. Each character is
coded on one byte using the SMS default 7-bit coded alphabet, as defined in TS 23.038, with bit 8 set to 0. For a
Note list of language codes, refer to the section that follows.
98-08901C68-C 349
AT Commands Reference
The following table lists an example of the codes for each language supported by the STK for Language Selection Events.
350 98-08901C68-C
AT Commands Reference
98-08901C68-C 351
AT Commands Reference
352 98-08901C68-C
AT Commands Reference
Execute Command
This command is sent when the customer application wants to see the SIM Toolkit Main menu.
Command Response/Action
This command invokes only the main send invocation of the Main menu. (Can be in any state or submenu.)
Note
98-08901C68-C 353
AT Commands Reference
Set Command
The Set command is issued when the user wants to select an item from the menu.
Command Response/Action
AT+MTKM=<CmdType>[,<ItemId>] OK
or:
+CME ERROR: <err>
<Parameter> Description
This result appears after the SIM has sent the proactive command Select Item (as a result of the item selection by the user).
Command Response/Action
<Parameter> Description
354 98-08901C68-C
AT Commands Reference
<Parameter> Description
Example
The following example is provider-specific, and is meant to demonstrate menu use via STK.
Note
98-08901C68-C 355
AT Commands Reference
This unsolicited event notifies the terminal when supplementary services, SMS Control or Call Control are modified.
Command Response/Action
<Parameter> Description
4.15.2 TCP/IP
This command sets up a PPP (Point to Point Protocol) connection with the GGSN (Gate GPRS Support Node), and returns a
valid dynamic IP for the g20.
The DCD line changes only to reflect the state change from command mode to data mode.
Note
Set Command
Command Response/Action
The +MIPCALL command does not return the prompt to the terminal until it the IP is received from the provider, or
time out has occurred, therefore, no other commands can be issued in the meantime.
Note The +MIPCALL command does not have a general ABORT mechanism, therefore a command cannot be issued
until the previous command ends.
356 98-08901C68-C
AT Commands Reference
Read Command
Command Response/Action
Note AT+MIPCALL?
+MIPCALL: 1,"172.17.237.80"
Test Command
Command Response/Action
<Parameter> Description
"User name" User name in provider server (in quotation marks). Contact
your service provider for details.
Example
98-08901C68-C 357
AT Commands Reference
This command causes the g20 to initialize a new socket and open a connection with a remote side. Each socket allocates an
accumulating buffer whose size is 1372 bytes.
The +MIPOPEN command returns a +MIPSTAT unsolicited event if it fails, for example, if it was rejected by the
remote side.
Note MIPxxx is a complete set of GPRS commands. This set should not be used with other GPRS commands, such as
CGATT, CGACT, and so on.
Set Command
Command Response/Action
Read Command
The Read command returns the numbers of the sockets that can be opened.
Command Response/Action
+MIPOPEN? +MIPOPEN:[<SocketID>]
for each socket that can be opened
or:
+MIPOPEN 0
if there are no free sockets.
Example
Test Command
Command Response/Action
358 98-08901C68-C
AT Commands Reference
<Parameter> Description
Motorola does not recommend using port numbers below 1024. These numbers are defined to be reserved for
operating systems.
Note
Example
98-08901C68-C 359
AT Commands Reference
This command causes the g20 to free the socket accumulating buffer and to close the socket.
All data stored in the accumulating buffer will be lost. Refer to “+MIPSETS, Set Size for Automatic Push” on
page 361 and “+MIPPUSH, Push Data into Protocol Stack” on page 364.
Note
Set Command
Command Response/Action
Read Command
Command Response/Action
Test Command
Command Response/Action
+MIPCLOSE=? +MIPCLOSE=(1-MAX_SOCKET_NUM)
<Parameter> Description
360 98-08901C68-C
AT Commands Reference
Example
This command causes the g20 to set a watermark in the accumulating buffer. When the watermark is reached, data is pushed
from the accumulating buffer into the protocol stack.
Data chunks between the terminal and the g20 are limited to be smaller than 80 characters (160 characters in coded form). In
order to reduce the overhead of sending small amounts of data over the air, the g20 uses an accumulating buffer. The terminal
can specify a watermark within the accumulating buffer size limits to indicate how much data should be accumulated. When the
data in the accumulating buffer exceeds the watermark, only data equal to the watermark is sent. Data remaining in the buffer
is sent with the next packet.
If there is data in the accumulating buffer, the +MIPSETS command will be rejected.
Note
Set Command
Command Response/Action
Read Command
Command Response/Action
98-08901C68-C 361
AT Commands Reference
Test Command
Command Response/Action
<Parameter> Description
Example
at+MIPSETS=1,340 //Asks the g20 to accumulate 340 bytes on socket 1 prior to sending (socket should be
activated by the +mipopen command)
+MIPSETS: 0
OK
at+MIPSETS=1,200 //Asks the g20 to accumulate 200 bytes on socket 1 prior to sending (socket should be
activated by the +mipopen command)
+MIPSETS: 0
OK
at+MIPSETS=2,400 //Asks the g20 to accumulate 400 bytes on socket 2 prior to sending
+MIPSETS: 0
OK
at+mipsets=?
+MIPSETS: (1-4),(1-1372)
OK
at+mipsets?
+MIPSETS: 1,100 //Information provided only for active sockets
+MIPSETS: 2,1372 //Information provided only for active sockets
OK
362 98-08901C68-C
AT Commands Reference
This command causes the g20 to store the data that the terminal provides in the accumulating buffer, and then send this data
using an existing protocol stack when the amount of data reaches the predefined amount (see “+MIPSETS, Set Size for Auto-
matic Push” on page 361). Before sending data, a valid connection must be created using the +MIPCALL and +MIPOPEN
commands.
Motorola recommends that the terminal sets the watermark in the accumulating buffer prior to this command, using the
+MIPSETS command. By default, the watermark is set to 1372 bytes of data.
Set Command
Command Response/Action
Note
Read Command
Command Response/Action
Test Command
Command Response/Action
+MIPSEND=? ERROR
<Parameter> Description
<Free Size> Free space in current buffer. Free size is calculated from
the 1372.
0 < Free Size < 1372
98-08901C68-C 363
AT Commands Reference
<Parameter> Description
Example
at+mipsend=1,"4444"
+MIPSEND: 1,1370 //1372- 2 chars 'aa' = 1370
OK
at+mipsend=?
ERROR
at+mipsend?
+MIPSEND: 1,1372 //Sockets 1 and 2 were opened using + MIPOPEN AT command
+MIPSEND: 2,1372 //Sockets 1 and 2 were opened using + MIPOPEN AT command
OK
This command causes the g20 to push the data accumulated in its accumulating buffers into the protocol stack. It is assumed
that before using this command, some data should exist due to previous +MIPSEND commands.
Set Command
Command Response/Action
364 98-08901C68-C
AT Commands Reference
Optional parameters are used only for UDP connections. If the Destination IP and Destination Port are not
provided by the user, a datagram is sent to the last target (or the default target provided by the +MIPOPEN
command).
Note
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
at+MIPPUSH=1 //Terminal asks the g20 to flush the buffer in socket 1 (was opened using the
+MIPOPEN command)
+MIPPUSH: 0
OK
98-08901C68-C 365
AT Commands Reference
This command causes the g20 to flush (delete) data accumulated in its accumulating buffers.
Set Command
Command Response/Action
Read Command
Command Response/Action
Test Command
Command Response/Action
<Parameter> Description
Example
at+mipflush=2 //Socket number 2 was previously opened using the +MIPOPEN command
+MIPFLUSH: 2
OK
at+mipflush=5
ERROR
at+mipflush?
+MIPFLUSH: 1 2
OK
366 98-08901C68-C
AT Commands Reference
This unsolicited event is sent by the g20 to the terminal when data is received from the UDP protocol stack.
Set Command
Event
+MIPRUDP:<Source IP>,<Source
Port><socket ID>,<Left>,<Data>
<Parameter> Description
Example
+MIPRUDP: 172.16.3.135,222,2,0,44444444
This unsolicited event is sent by the g20 to the terminal when data is received from the TCP protocol stack.
Set Command
Event
98-08901C68-C 367
AT Commands Reference
<Parameter> Description
Example
+MIPRTCP: 3,0,7171
This unsolicited event is sent to the terminal indicating a change in status. Currently there are two possible sources of failure, a
broken logical connection or a broken physical connection.
Event
<Parameter> Description
Example
+MIPSTAT: 1,4
This command is the unsolicited response that the g20 sends to the terminal to stop sending data when it does not have enough
memory to process new +MIPSEND requests. The g20 uses the accumulating buffer prior to pushing data into the protocol
stack. This memory resource is protected by a Xoff_upper watermark.
Event
368 98-08901C68-C
AT Commands Reference
Example
+MIPXOFF: //The g20 detects that the accumulating buffer 1 has reached its Xoff watermark.
From this point, the terminal is not allowed to send data, until it receives the
+MIPXON command.
This command is the unsolicited event that the g20 sends to the terminal when it detects that it has free memory in the
accumulating buffer and can process new +MIPSEND requests, after the +MIPXOFF event.
Event
Example
+MIPXON: 1 //The g20 pushed the data into the protocol stack on socket 1 and is able to handle more
data from the terminal.
The MUX service in the g20 provides multiple virtual channels for the DTE that can communicate simultaneously with the g20.
This service allows the DTE to have channels for command and network indications while other channels are used for data
sessions. This service is available when MUX software entities exist on both the DTE and the g20. These MUX entities commu-
nicate with each other and provide data connection management, which includes establishment, control, release and data transfer
between matching channels in the DTE and g20.
MUX over 232 is a software module. No PCB hardware changes are required at either the g20 or DTE side.
Note
98-08901C68-C 369
AT Commands Reference
1 1
HW/SW FC,
Serial Mgr Data stream
Serial Mgr
UART UART
370 98-08901C68-C
AT Commands Reference
DTE g20
SABM0
Once the GRLC logical communication channel between the DTE and g20 has been established, the RS232 cable is connected
and the DTE device is ready to communicate.
98-08901C68-C 371
AT Commands Reference
This is an in-between state during which the g20 and DTE move from PREMUX to MUX.
In this state there are no g20 indications or AT commands such as RING indicator (RI), and so on.
Note
In this state, the DTE and g20 communicate with the MUX 27.010 protocol stack over RS232.
The following table lists the services defined in the 27.010 protocol that are supported by the MUX feature.
Service Description
Start Up Used to start the multiplexer operation over the serial channel.
Data Services
Power Control Services Includes both sleep and wakeup services. This service will be supported in
future versions.
DLC Release Services Used to disconnect a DLC exclude control channel (DLCO).
Close Down Services Used to terminate multiplexer operation on the serial channel and resume
(CLD, DISCO, Exception GRLC operation (returns to PREMUX state).
situations)
372 98-08901C68-C
AT Commands Reference
Service Description
Control Services Includes services at the MUX entity level and at the specific DLC level.
Software flow control is supported only in MUX advanced mode. It is not supported in basic mode.
Auto baud rate detection is disabled in the MUX. To set the UART baud rate, the g20 uses the <port speed> parameter in
+CMUX command. If the parameter is absent, the MUX uses the same baud rate that was in PREMUX state.
98-08901C68-C 373
AT Commands Reference
This command is used to enable/disable the GSM MUX multiplexing protocol stack. When the g20 receives a valid +CMUX
command, it returns OK and changes its state to MUX-Init.If the parameters are left out, the default value is used.
Set Command
The Set command requests the g20 to open the MUX stack with various parameters. This command works only in PREMUX
state.
Command Response/Action
Read Command
The Read command displays the current mode and settings. This command works only in MUX state.
Command Response/Action
Test Command
The Test Command displays a list of supported modes and parameters. This command works in both PREMUX and MUX states.
Command Response/Action
<Parameter> Description
0 Basic
1 Advanced
374 98-08901C68-C
AT Commands Reference
<Parameter> Description
<subset> Defines how the MUX control channel is set up. The virtual
channel is set up according to this setting.
0 UIH frames used only
1 9600 bit/sec
2 19200 bit/sec
3 38400 bit/sec
4 57600 bit/sec
5 115200 bit/sec
31 256
<T2> Response timer for the DLC0 (in unit of 10 ms). <T2> must
be longer than <T1>.
Note
98-08901C68-C 375
AT Commands Reference
The <mode> parameter in the +CMUX command determines whether the MUX protocol works in Basic mode or Advanced
mode, including the transparency mechanism. When the g20 changes states from PREMUX to MUX-Init, the g20 opens the
MUX stack in the selected mode.
In Advanced mode the following requirements apply:
• The length field is no longer be a part of the new frame structure.
• A transparency mechanism.
• XON/XOFF flow control is available.
The MUX is provided with an open source code packet to help speed the development process and reduce the incompatible
interpretations of the protocol specifications. This source code packet is saved in the VOBS and supports both Basic and
Advanced modes.
When implementing the MUX feature, the user should have the MUX entity installed with the product. The following two MUX
integration options are available to the user:
• MIP (Mux Integration Packet): The user receives the source code, which is provided by Motorola, with known APIs for the
MUX. The MIP is a Motorola open source code packet for the GSM 27.010 protocol with API functions provided for the
user.
• MUI (Mux User Implementation): The GSM 27.010 protocol is implemented by the user. The MUI is the user
implementation device for the GSM 27.010 protocol.
4.16.5 APIs
376 98-08901C68-C
AT Commands Reference
• Each MUX channel functions as a regular RS232 connection that follows ETSI 07.07 and ITU V.25 ver standards. However,
there are some limitations, as described in this paragraph.
• The g20 IDLC channel switches to Data mode as specified in ETSI 07.07 [4].
• When the MUX protocol layer releases the IDLC channel, any GPRS/DATA session or established call is hung up. Only
active voice calls remain connected.
• AT command requests by an IDLC may result in an ERROR, while in PREMUX state the same request would never have
returned an ERROR. This may happen because the addressed resource in the g20 is busy with a second IDLC request. For
example, if two channels send the AT+CLIP? command, which addresses the GSM engine, only one channel receives the
+CLIP: response, while the other receives an ERROR.
The control channel has the highest priority. All other IDLCs have the same priority.
All control frames are processed before any other channels. IDLC frame validation is also performed after all
control frames are processed.
Note
The configurations listed below are recommended to achieve maximum use of parallel channels with minimum conflicts.
GPRS CSD
External Modem AT commands
App 1 App 2
D D
L L
C C
1 2
Note
98-08901C68-C 377
AT Commands Reference
Between sessions, the Data and GPRS channels are IDLE (in command mode).
Note
DLC1 Explanation:
An external host interface is used as a regular g20 RS232 channel, without MUX capabilities. It is highly recommended to
enable this channel when the others are in IDLE state. One purpose of adding this channel is to give outside users who cannot
see the other three channels, which are used as internal channels, the option of using the product (such as a Palm computer with
a built-in g20) as purely a modem, without its other benefits. Such a product could also use this channel as the g20 logger
channel.
The purpose of the additional UART is to have a DTE processor bypass, enabling an external device (such as a PC, and so on)
to be connected to this UART for receiving g20 services. When this UART is available, it can be used for Logger debugging by
doing the following:
1. Connecting the additional UART to a PC COM port.
2. Sending the +CLOG command.
378 98-08901C68-C
AT Commands Reference
1 2 3 4 1 2 3 4
Channel 0 Mux -protocol Channel 0 Mux -protocol
1
Serial Mgr 1 1
Serial Mgr
UART UART
In this configuration, the DTE device might try to request multiple CDS services simultaneously. For example, it
may try to establish CSD sessions in DLC1 and in DLC4. Such attempts will not work and will have unpredictable
Note corresponding effects.
The following table provides the AT commands that are allowed for each channel.
When DTE sends a "Not allowed" AT command to a specific channel the following might occur:
• ERROR response will be returned.
Note • OK response will be returned, but unexpected behavior will occur later.
98-08901C68-C 379
AT Commands Reference
Use the following legend for the Profile Definition column in Table 205, “AT Commands Limitations for 4-channel
Configuration”, below:
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
$ V Yes
%C V V V V Ignored
&G V V V V Ignored
&J V V V V
&L V V V V Ignored
&M V V V V Ignored
&P V V V V Ignored
&Q V V V V
&R V V V V Ignored
&S V V V V Ignored
&T V V V V Ignored
&V V
&W V
&Y V
380 98-08901C68-C
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
? V V V V Yes
\A V V V V Ignored Yes
\S V V V V Yes
\K V V V V Ignored
\B V V V V Ignored
+CACM V Yes
+CALM V Yes
+CAMM V Yes
+CBAND V Ignored
+CBC V Yes
+CCFC V Yes
+CCLK V Yes
+CEER V Yes
+CFUN V Yes
98-08901C68-C 381
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+CGDATA No
+CGMI V V V V Yes
+CGMM V V V V Yes
+CGMR V V V V Yes
+CGSMS V No
+CGSN V V V V Yes
+CGT V Yes
+CHLD V Yes
+CHUP V Yes
+CIMI V Yes
+CKPD V Yes
+CLAC V
+CLCK V Yes
382 98-08901C68-C
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+CLIR V Yes
+CLVL V Yes
+CMGD V Yes
+CMGL V Yes
+CMGR V Yes
+CMGS V Yes
+CMGW V Yes
+CMSS V Yes
+CMUT V Yes
+CMUX V Yes
+CNUM V Yes
98-08901C68-C 383
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+COPS V Yes
+CPAS V Yes
+CPBF V Yes
+CPBR V Yes
+CPBW V Yes
+CPIN V Yes
+CPMS V Yes
+CPOL V Yes
+CPUC V Yes
+CPWD V Yes
+CRLP V Yes
+CRSL V Yes
+CRSM V
+CRTT V Yes
+CSCA V Yes
+CSCB V Yes
384 98-08901C68-C
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+CSDH V Yes
+CSQ V Yes
+CSVM V Yes
+CTFR1 V V V V
+CUSD V Yes
+GCAP V Yes
+GMI V V V V Yes
+GMM V V V V Yes
98-08901C68-C 385
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+GMR V V V V Yes
+GSN V V V V Yes
+IFC V V V V Yes
+MAFEAT V Yes
+MAFVL V Yes
+MAID V Yes
+MAMUT V Yes
+MAPTH V Yes
+MAPV V Yes
+MAVOL V Yes
+MCSAT V
+MCSN V
+MCWAKE V Yes
+MDBAD V Yes
+MDBL V Yes
+MDBR V Yes
386 98-08901C68-C
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+MDC V
+MDSI V
+MEGA V Yes
+MFS V
+MHIG V Yes
+MIPCLOSE Yes
+MIPFLUSH Yes
+MIPOPEN Yes
+MIPPUSH Yes
+MIPSEND Yes
+MIPSETS Yes
+MMAR V Yes
+MMGL V Yes
+MMGR V Yes
+MMICG V Yes
+MODE V Yes
+MPBF V Yes
+MPBR V Yes
98-08901C68-C 387
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
+MPBW V Yes
+MPCM V
+MPDPM V Yes
+MRST V V V V
+MSCTS V Yes
+MTCTS V Yes
+MTDTR V Yes
+MTKE V Yes
+MTKM V Yes
+CVIB V Yes
+VTD V Yes
+VTS V Yes
A/ V V V V Obvious Yes
AT V V V V Obvious Yes
ATS97 V V V V
388 98-08901C68-C
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
B V V V V Ignored Yes
E V V V V Yes PCHS
F V V V V Ignored Yes
H V V V V Yes
L V V V V Ignored Yes
M V V V V Ignored Yes
N V V V V Ignored Yes
O V V V Yes
P V Ignored
Q V V V V Yes
S0 V V V V Yes PCHS
S102 V V V V Yes
S24 V V V V MUX
degener-
ated
S3 V V V V Yes PCHS
S4 V V V V Yes PCHS
S5 V V V V Yes PCHS
S7 V V V V Yes PCHS
98-08901C68-C 389
AT Commands Reference
AT + PREMUX Profile
Voice Comment
Support Definition
External Call +
SMS +
STK
S94 V V V V Yes
S96 V V V V Yes
S97 V V V V
T V V V V Ignored
V V V V V Yes PCHS
X V V V V Yes PCHS
Y V V V V Ignored
Z V V V V Yes
+CRING V V V Yes
390 98-08901C68-C
AT Commands Reference
RING Alert: When the call type is unrecognized, it is considered as a voice call. In such a case, RING will be sent
to IDLC-2 only.
Note
When IDLC-1 (External modem) is active, no operation should be made in IDLC-3 and IDLC-4. When IDLC-3 or
IDLC-4 are active, no operation should be made in IDLC-1.
Note
In the case of a 2-channel configuration (IDLC1 = External modem + GPRS + CSD; IDLC2 = AT and VC), the
IDLC-1 commands that are allowed comprises the combination of the above DLC-1, IDLC-3 and IDLC-4
Note columns.
Term Description
Unsolicited indication Unsolicited indications are sent only to the channel that
enabled them. Enabling indications where it is not allowed
may cause unexpected results.
Exception: Some of the indications can be enabled only in
one specific channel. For more information, refer to
Table 205, “AT Commands Limitations for 4-channel
Configuration”.
Common settings for all channels Settings that are not stored in the IDLC modem profile, but
that are set in one of the g20 components. Any
modification to these settings overrides the previous
settings in all the other channels.
For example, Database settings (phonebook, Flex, audio
settings, network (SIM) settings, and so on. For this
reason, parallel commands are not allowed in more than
one channel. All the settings that are private for each
channel (can be different in different channels) are
mentioned in the Profile Definition column in Table 205, “AT
Commands Limitations for 4-channel Configuration”.
98-08901C68-C 391
AT Commands Reference
• A GPRS session is suspended when a voice/CSD call is connected to the g20. The GPRS session is resumed when the voice/
CSD call is disconnected. The voice/CSD call can be dialed when the GPRS session is either in online DATA mode or online
COMMAND mode.
• A GPRS session cannot be started (ERROR returned) when there is an active or established Voice/CSD call.
• Simultaneous GPRS sessions of any kind (internal and/or external) are not supported.
While g20 is operating network-related AT commands, such as SMS or Supplementary Services, GPRS session
behavior will be the same as for Voice/CSD call, but for brief moments only.
Note
Definitions
• Modem profile – g20 modem settings such as s-registers and flex values.
• GRLC profile – GRLC (PREMUX) settings such as s-registers and flex values.
• GRLC default profile – GRLC (PREMUX) settings on power up.
• When a new channel is established (open IDLC) its modem profile will be the GRLC default profile.
• When the g20 returns to PREMUX state from either MUX or MUX-INIT states, its modem profile is the GRLC default
profile.
• The two requirements above have an exception regarding the UART configuration – the settings for UART port speed and
flow control (AT&K and AT+CBAUD/AT+IPR). These settings are set in PREMUX state only, and will be kept unchanged
until the g20 returns to PREMUX state. If an IDLC tries to change the settings it receives an OK response, but the real value
is NOT changed. When the g20 is in MUX state, these two settings have either the values that were defined in PREMUX,
or the value set by the AT+CMUX command. If a value was set with the AT+CMUX command, it is retained even after
returning to PREMUX state.
392 98-08901C68-C
5. USING THE COMMANDS
After these three phases are completed, g20 is ready for action and you can send/receive voice calls, circuit switched data and
GPRS.
The following figures show the phone state transactions:
Init-General
Communication=OK, ID is known
Init Phone
Coverage Indication
No Coverage Ready
Remote/Local
Remote/Local Connected/Disconnected
Connected/Disconnected
98-08901C68-C 393
Using the Commands
Ready
GPRS seq.
AT*99#
ATD ATD
RING/ATA RING/ATA
NO CARRIER
DTR(2)
NO CARRIER
ATH
ATH
ATH/
NO CARRIER
ATO
OK (connecting) ATO OK (connecting)
+++/DTR
DTR(1)
394 98-08901C68-C
Using the Commands
Start
Basic Commands
(Optional)
Ready
98-08901C68-C 395
Using the Commands
There is no dynamic detection. Upon power up, the hardware is detected. If USB is detected, then USB is selected. If USB is
not connected, then the RS232 is selected. For a pin description, refer to the g20 Developer’s Kit Manual, 98-08901C67-A.
Start
Off
Check DSR Line
On
Activate DTR
Activate RTS
Off
Check CTS
On
End
396 98-08901C68-C
Using the Commands
This is a preliminary step. During this step, the ability to communicate with the g20 using AT commands is tested.
Start
Error
No Echo Check RS232 Connection or
Send 'AT'
Change UART Baud Rate
OK
End
Communication example:
AT
ATE1 //By default, the echo should be enabled
AT
OK //Confirm that g20 replies with OK
These are optional steps. If required, specific RS232 pin behavior can be selected. Extended error notification is recommended
for debugging and field-support purposes.
98-08901C68-C 397
Using the Commands
398 98-08901C68-C
Using the Commands
To enable the module to transfer from basic commands to full operational mode, a SIM card must be ready and the PIN enabled.
Start
+CPIN: READY
End
For a full description of SIM states, see “+CPIN, Enter PIN for Unlocking SIM Card or Enter PUK for Unblocking
SIM Card” on page 247.
Note
The following steps are part of the SIM card status step:
1. Check SIM security: AT+CPIN?
2. Confirm that the result is +CPIN: READY
3. If the SIM PIN is required, then the following response appears: +CPIN: SIM PIN.
4. Unlock the SIM, if needed: AT+CPIN="XXXX".
Note: XXXX is the PIN password (4-8 digits long).
5. If the SIM PUK/PUK2 is required, then the following response appears: +CPIN: SIM PUK/PUK2.
6. Unblock the SIM, if needed: AT+CPIN="YYYYYYYY", "ZZZZ".
Note: YYYYYYYY is the PUK/PUK2 password (4-8 digits long).
Note: ZZZZ is the new defined PIN/PIN2 password (4-8 digits long).
98-08901C68-C 399
Using the Commands
In this step, the g20 detects existing networks (the user must register to a specific network).
Start
OK
End
400 98-08901C68-C
Using the Commands
In this step, the terminal requests the stored phonebook, SMS, and so on, from the g20.
Start
Else
0.5 Sec. Delay AT+CPBS=?
+CPBS: "ME","MT","DC",
"MC","RC","AD","QD"
OK
End
5.3 SMS
98-08901C68-C 401
Using the Commands
AT+CMGL="STO UNSENT" //List all messages of a certain type (for example, stored
unsent messages)
+CMGL: 225,"STO UNSENT","054565132"
<Message body>
+CMGL: 223,"STO UNSENT","4565029"
<Message body>
+CMGL: 220,"STO UNSENT",""
<Message body>
OK
AT+CMGR=225 //Read any message from the list using its index
+CMGR: "STO UNSENT","054565132"
<Body of message 6 >
OK
AT+CMGR=9
+CMGR: "REC UNREAD","+97254565132"
<Body of message 4>
OK
5.3.2 Setting the Notification Indication for Incoming Messages (Using AT+CNMI)
402 98-08901C68-C
Using the Commands
5.3.3 Another Possible Option for Setting the CNMI Notification Indication
AT+CNMI=,2 //To have new incoming MT messages displayed on the terminal, the
second parameter of +CNMI should be set to 2
OK
+CMT: "+97254565132","2003/3/24,15:38:55"
<message contents> //When a new MT message is received, the unsolicited response
+CMT is displayed along with the message
The acknowledged message is not saved in the database. If the +CMT unsolicited response is not acknowledged within
60 seconds, the new message is saved in database.
5.3.4 Writing, Saving and Sending Messages (Using AT+CMGW and AT+CMSS)
:
AT+CMSS=143 //Send a message to the destination address with which it was stored,
using the message index
OK
AT+CMSS=3,"054565029" //In this way, received messages (stored in the inbox) can also be sent
OK
98-08901C68-C 403
Using the Commands
OK
AT+CMGS="+97254565028",145 //Writing a message to be sent to specified destination address
>message text <CTRL/Z>
+CMGS: 239 //Message successfully sent
OK
Delete a group of messages. Note that deletion of a number of messages may take a short time.
AT+CMGD=1, 1 //Delete all read messages
OK
404 98-08901C68-C
Using the Commands
Idle
Dial
Released
Alert
Connected
Hold
98-08901C68-C 405
Using the Commands
//ESC sequence back to the Command state. +++ is sent from the
terminal (+++ is not displayed)
ath //Hang up data call
NO CARRIER
OK //Data call terminated
at+fclass=1
OK
406 98-08901C68-C
Using the Commands
atd>"long";
OK
OK //Exact match; 051 632603 call dialed; voice call answered
atd>8;
OK
OK //Speed-dial from current phone book; 051 632603 call dialed; voice call
answered
atd>"era"
OK
OK //Prefix pattern matched; entry for "eran" was selected; +97235659260
call dialed
atd>"er"
OK
OK // Exact match; overrides prefix match; 03 5619942 call connected
In the next example, the current phone book is changed. The numbers are matched via a specific phone book specified in the
command.
at+cpbs="fd" //Change the current phone book to Fix-dialing phone book
OK
atd>"MT"9;
OK
NO CARRIER //Speed-dial number (using ") 5555 call dialed; number is incorrect
atd>MT;
OK
NO CARRIER //Speed-dial number 5555 call dialed, number is incorrect
atd>"MT"17
+CME ERROR "not found" //Trying to dial from a non-existent entry
atd>"MT"1117
+CME ERROR: "invalid index" //Speed-dial number is out of range
98-08901C68-C 407
Using the Commands
atd035658278;
OK
OK
ath
NO CARRIER
OK
atdl //Last called number is "035658278"
ATDL: "035658278"
OK //DATA call
atdl;
ATDL: "035658278"
OK
OK //VOICE call
(...conversation...)
408 98-08901C68-C
Using the Commands
OK
OK
98-08901C68-C 409
Using the Commands
+CLCC: 2,0,0,0,1,"035659260",129,""
OK
OK
410 98-08901C68-C
Using the Commands
5.6 GPRS
When using the GPRS, it is recommended to implement a "keep alive" mechanism.
The g20 memory resources should not be used as a buffer for the user, the user maintains its own memory and flow control in
its own application. The g20 has finite limited resources such as network related, SIM card and phone memory. In general the
user should use a single resource at a time. As an example, when g20 GPRS network resources are in an active session, user
should not manually detach from the network or place a CSD call etc.
The basic GPRS concept is be “always connected” and there is no charge for being connected (only per real data
transferred). GPRS users are advised to connect the GPRS network once in the beginning of a session and remain
connected rather then to toggle from online to offline and back in a high rate. In specific cases when this is needed,
Note contact customer care for advice and knowledge base.
When using the GPRS network for any IP data, you must be attached to the GPRS network before activating PDP context.
AT+CGATT=1 //By default, after power-up, the g20 attaches to the GPRS network, if
possible (if the network and SIM allow)
Each of the two main ways in which to activate PDP context are described below.
1. Double-click the button predefined as the dialer for this provider to automatically establish PDP context. If the g20 was
not previously attached to GPRS, it will be attached automatically.
2. Setup configuration.
3. Enter into the wizard, the parameters provided by your operator.
4. Set definitions to allow your http/ftp browser to use the g20 as a port to the Internet.
5. Usage:
• Open the GPRS Manager.
• Double-click the dialer icon to select and activate the provider of your choice (multiple providers may be displayed in
the list).
• After dialing, your temporary IP address, the GPRS DATA session message will be displayed.
• Minimize the GPRS wizard window and use your http/ftp browser (Internet Explorer, Netscape).
98-08901C68-C 411
Using the Commands
Example
When an SMS messages with the following text: "Motorola g20 OEM Module", is saved inside the g20 at entry 128, you can
read it using several character sets.
When the "ASCII" character set is used, the following is received by the terminal:
at+cscs? //Read the current character set
+CSCS: "ASCII" //Currently using ASCII character set
OK
OK
412 98-08901C68-C
Using the Commands
When the "USC2" character set is used, the following is received by the terminal:
at+cscs? //Read the current character set
+CSCS: "UCS2" //Currently using UCS2 character set
OK
at+cmgr=128
+CMGR: "STO UNSENT",""
004D006F0074006F0072006F006C006100200067003200300020004F0045004D
0020004D006F00640075006C0065 //The content of SM entry 128
OK
98-08901C68-C 413
Using the Commands
As this SMS was originally written in ENGLISH, meaning ASCII letters, each digit quadruplet starts with double zeros (00).
When other languages are used, the quadruplets have different values.
Note
The terminal should activate Sleep mode by sending ATS24=n (n - number of seconds). To disable Sleep mode, send ATS24=0.
Terminal-TX: ATS24=n
Terminal-TX: ATxxx
Terminal-Wakeup-In=Inactive //n seconds passed since last command (and other conditions met)
g20-CTS=Inactive //g20 enters Sleep mode
Terminal-Wakeup-In=Active
g20-CTS=Active //g20 exits Sleep mode
Terminal-TX: ATxxx //30 mseconds passed since Terminal-Wakeup-In became active
WAKEUP_IN
DTE TXD
G20 CTS
(When at+mscts=0
The default)
414 98-08901C68-C
Using the Commands
5.9 STK
The SIM card requests to send text to the g20 and the g20 displays it on the terminal.
Tx Display text
Display Indications
g20 Request
TE
(+MTKP)
STK Engine
The SIM card requests to display text on the terminal, and waits for a response from the terminal (user). The response is a single
character.
(+MTKP) 1
Tx 2 g20 Get Inkey Request
Display text
3 4
TE
STK Engine
Rx Inkey Response
Reply with single
character [Y/N…]
Note
The SIM card requests to display text on the terminal, and waits for a response from the terminal (user). The response is a string.
(+MTKP) 1
Tx 2 g20 Get Input Request
Display text
3 4
TE
STK Engine
Rx Input Response
Reply with string
98-08901C68-C 415
Using the Commands
Note
The SIM card requests a tone to be played via the SIM. The g20 sends information about the play tone to the terminal.
3 1
(+MTKP) Tx g20 PlayTone Request
Display Play Tone info
TE
STK Engine
The terminal requests the STK menu. As a result, the SIM sends the menu items to the terminal. The user then selects an item
from the menu.
4 Tx g20 3
Menu Items
Display menu
TE
STK Engine
1 AT+MTKM SetUp Menu
(Motorola ToolKit Menu) 2
The user selects an item. As a result, the SIM sends a response to the terminal.
4 Tx g20 3
Response
Display response
TE
STK Engine
1 AT+MTKM=X Select Item
(X=menu item) 2
416 98-08901C68-C
Using the Commands
The SIM requests to send SMS, and the SMS data is displayed on the terminal.
(+MTKP) g20
Tx 2 1
Display SMS Send SMS
TE
STK Engine (G20 has receive sms)
The SIM initiates a call, and its data is displayed on the terminal.
(+MTKP) 1
Tx 2 g20 Setup Call Request
Display call info
TE
STK Engine
ATD22222
3
98-08901C68-C 417
Using the Commands
Example
The SIM card requests to send a DTMF string. The g20 sends the DTMF during an active voice call, and notifies the terminal
using an +MTKP of this sending action. The g20 responds with the status of the sending result to the SIM.
(+MTKP)
2 1
Display sending DTMF string
Send DTMF Request
g20
TE
STK Engine
3
418 98-08901C68-C
Using the Commands
SIM card requests to open a browser with a specific URL and info. The g20 notifies the terminal and waits for the request results.
The terminal must respond to the g20 with a result. The terminal result is passed to the SIM by the g20.
(+MTKP)
2 1
Display Launch Browser Request
Launch Browser Request
g20
TE
STK Engine
4
3
Launch Browser Response Launch Browser Response
The terminal updates the g20 on any of the events. The g20 passes events from the terminal to the SIM card according to the
event list. The event list is requested by the SIM using the "setup event list" command.
TE
STK Engine
1 3
Send Event Report Send Event Report
5.10 TCP/IP
at+mipcall=1,"orange","test","test"
OK
+MIPCALL: 172.17.242.86
98-08901C68-C 419
Using the Commands
+MIPOPEN: 1,1
+MIPSETS=1,340 //Asking the g20 to accumulate 340 bytes on socket 1 prior to sending
+MIPSETS: 0
OK
at+mipsets?
+MIPSETS: 1 340
OK
Note
420 98-08901C68-C
Using the Commands
at+mipcall=1,"orange","test","test"
OK
+MIPCALL: 172.17.242.86
at+mipopen=1,1001,"172.17.238.44",1001,0
OK
+mipopen: 1,1
at+mipopen=2,1111,"172.17.238.44",1111,0
OK
+mipopen: 2,1
+MIPSETS=1,200 //Asking the g20 to accumulate 200 bytes on socket 1 prior to sending
+MIPSETS: 0
OK
+MIPSETS=2,400 //Asking the g20 to accumulate 400 bytes on socket 2 prior to sending
+MIPSETS: 0
OK
+MIPSEND=1,"444444"
+MIPSEND:1,1497
OK
+MIPPUSH=1 //Terminal asks the g20 to flush the buffer in sockets 1 and 2
+MIPPUSH:0
+MIPPUSH=2
+MIPPUSH:0
98-08901C68-C 421
Using the Commands
OK
+MIPCLOSE=2
+MIPCLOSE:2
OK
+MIPSETS=1,120 //Asking the g20 to accumulate 120 bytes on socket 1 prior to sending
+MIPSETS: 0
OK
In this example, it is assumed that the buffer size is 1500 and that some kind of error happened on the protocol stack.
+MIPSEND=1,"A344343ABC343438980BC...AB4" //Passing data to g20 socket 1
+MIPSEND=1,"A344343ABC343438980BC...A23"
+MIPSEND:1,0 //(Note: No free space in buffer.)
+MIPXOFF: 1 //The g20 detects that the accumulating buffer on socket 1 has no
free space to accumulate data and data cannot be sent to the
protocol stack
From this point on, the terminal is not allowed to send data until it receives the +MIPXON command.
+MIPSEND=1,A344343ABC343438980BC...AB4 //Terminal disregards the Xoff request of g20 and keeps sending
//(Note: The terminal does not stop.)
ERROR 3
+MIPXON: 1 //g20 pushed the data into the protocol stack and is able to handle more
sends from the terminal
422 98-08901C68-C
Using the Commands
at+mipcall=1,"orange","test","test"
OK
+MIPCALL:123.145.167.230
5.11 AUDIO
98-08901C68-C 423
Using the Commands
Handsfree
Terminal g20
Handset
424 98-08901C68-C
6. TOOLS
6.2 PC DRIVER
6.2.1 Overview
The g20 can be used as a PC external modem for fax communication and for performing GPRS packet data connections. The
g20 USB driver file is required for running a terminal application on the PC. The WinFAX application with the Standard
19200 bps Modem driver is recommended for fax connection. The GPRS Manager application with the Motorola Serial GPRS
P2K 57.6 Kbps driver is recommended for GPRS packet data connections.
98-08901C68-C 425
Tools
To install and configure GPRS Manager and the Motorola Serial GPRS P2K 57.6 Kbps driver, follow the procedure below.
1. Run the GPRS Manager setup program.
2. Restart the computer.
426 98-08901C68-C
A. REFERENCE TABLES
Note
$ This command displays a list of all the AT commands supported by the g20. 53
%C This command is supported for backward compatibility only, and has no effect. 312
&C This command determines how the state of the DCD line relates to the detection of 203
the received line signal from the distant end.
&D This command determines how the g20 responds when the DTR (Data Terminal 205
Ready) status is changed from ON to OFF during the online data state.
&F This command restores the factory default configuration profile. 266
&G This command is supported for backward compatibility only, and has no effect. 312
&J This command is supported for backward compatibility only, and has no effect. 312
&L This command is supported for backward compatibility only, and has no effect. 312
98-08901C68-C 427
Reference Tables
&M This command is supported for backward compatibility only, and has no effect. 312
&P This command is supported for backward compatibility only, and has no effect. 312
&R This command is supported for backward compatibility only, and has no effect. 312
&S This command is supported for backward compatibility only, and has no effect. 312
&T This command is supported for backward compatibility only, and has no effect. 312
&V This command displays the current active configuration and stored user profiles. 291
? This command displays the most recently updated value stored in the S-register. 266
\A This command is supported for backward compatibility only, and has no effect. 312
\B This command is supported for backward compatibility only, and has no effect. 312
\K This command is supported for backward compatibility only, and has no effect. 312
\S This command displays the status of selected commands and S-registers. 265
ATS97 This command indicates whether the antenna is connected and whether the 213
hardware supports this feature.
+CACM This command resets the Advice of Charge accumulated call meter value in the SIM 104
file, EFACM.
+CALM This command handles the selection of the g20’s alert sound mode. 241
+CAMM This command sets the Advice of Charge accumulated call meter maximum value in 105
the SIM file, EFACMmax.
+CAOC This command enables the subscriber to get information about the cost of calls. 101
+CBAND This command is supported for backward compatibility only, and has no effect. 266
428 98-08901C68-C
Reference Tables
+CBC This command enables a user to query the battery charger connection. 196
+CBM This unsolicited message forwards the SMS upon its arrival. 166
+CBST This command selects the bearer service and the connection element to be used 86
when data calls are originated.
+CCLK This command reads/sets the g20's current date and time settings. 156
+CCWA This command controls the Call Waiting supplementary service, including settings 72
and querying of the network by the g20.
+CDEV An unsolicited indication regarding display changes that is sent to the DTE when the 289
<disp> parameter of the +CMER command is set to 1.
+CEER This command returns an extended error report containing one or more lines of 279
information text <report>, determined by the manufacturer, providing reasons for
errors. The errors are call clearing codes.
+CFUN This command shuts down the phone functionality of smart phones and PDAs with 208
phone capabilities.
+CGATT This command attaches the g20 to the GPRS network. 306
+CGCLASS This command sets the GPRS mobile station class. 297
+CGDCONT This command specifies the PDP (Packet Data Protocol) context. 299
+CGQMIN This command sets the minimum acceptable quality of service profile. 302
+CGQREQ This command returns the requested quality of service profile. 304
+CGREG This command enables/disables the GPRS network status registration unsolicited 189
result code.
98-08901C68-C 429
Reference Tables
+CGSMS This command handles the selection of the service or service preference used by 177
the g20 to send mobile-originated SMS messages.
+CHLD This command controls the Call Hold and Multiparty Conversation supplementary 77
services.
+CHUP This command causes the TA to hang up the current GSM call of the g20. 89
+CIEV An unsolicited indication regarding various phone indications that is sent to the DTE 290
when the <ind> parameter of the +CMER command is set to 1.
+CIMI This command requests the International Mobile Subscriber Identity number. 50
+CKEV This command causes the g20 to send an unsolicited message when a key is 288
pressed on the g20 keypad, and local key press echo is enabled.
+CKPD This command enables the emulated pressing of keys, or virtual keycodes, as if 283
entered from the g20 keypad or from a remote handset.
+CLAC This command displays a list of all the AT commands supported by the g20. 53
+CLCC This command returns a list of all current g20 calls and their statuses, and also 97
enables/disables the unsolicited indication of the call list.
+CLCK This command locks, unlocks or interrogates a g20 or a network facility <fac>. 253
+CLIP This command controls the Calling Line Identity (CLI) presentation to the terminal 70
when there is an incoming call.
+CLIR This command enables/disables the sending of caller ID information to the called 83
party, for an outgoing call.
+CLVL This command sets the volume of the internal loudspeaker (which also affects the 243
key feedback tone) of the g20.
+CMEE This command enables/disables the use of result code +CME ERROR: <err> as an 274
indication of an error relating to the functionality of the g20.
+CMER This command enables an external accessory to receive key press information from 287
the g20’s internal keypad.
+CMGD This command deletes messages from the g20 memory. 176
+CMGL This command displays a list of SMS messages stored in the g20 memory. 169
430 98-08901C68-C
Reference Tables
+CMGR This command enables the user to read selected SMS messages from the g20 171
memory.
+CMGS This command sends an SM from the g20 to the network. 178
+CMGW This command writes and saves messages in the g20 memory. 174
+CMSS This command selects and sends pre-stored messages from the message storage. 173
+CMUT This command mutes/unmutes the currently active microphone path by overriding 230
the current mute state.
+CMT This unsolicited message forwards the SMS upon its arrival. 166
+CMTI This unsolicited message, including the SMS index, is sent upon the arrival of an 167
SMS.
+CNMI This command sends an unsolicited indication when a new SMS message is 164
received by the g20.
+CNUM This command returns up to five strings of text information that identify the g20. 51
+COLP This command refers to the GSM supplementary service COLP, Connected Line 119
Identification Presentation, which enables a calling subscriber to get the connected
line identity (COL) of the called party after setting up a mobile originated call.
+COPS This command enables accessories to access the network registration information, 191
and the selection and registration of the GSM network operator.
+CPAS This command returns the current activity status of the g20, for example, call in 96
progress, or ringing.
+CPBF This command enables the user to search the currently active phone book for a 128
particular entry, by name.
+CPBR This command recalls phone book entries from a specific entry number, or from a 123
range of entries.
+CPBS This command selects the memory that is to be used for reading and writing entries 121
in g20s that contain more than one phone book memory.
+CPBW This command enables the user to store a new entry in the phone book, or delete an 132
existing entry from the phone book.
+CPIN This command is only relevant for phones that use SIM cards. It unlocks the SIM 247
card when the proper SIM PIN is provided, and unblocks the SIM card when the
proper SIM PUK is provided.
98-08901C68-C 431
Reference Tables
+CPMS This command handles the selection of the preferred storage area for messages. 160
+CPOL This command is used to edit the list of preferred operators located in the SIM card. 194
+CPUC This command sets the parameters of the Advice of Charge-related price per unit 108
and currency table found in the SIM file, EFPUCT.
+CPWD This command sets a new password for the facility lock. 250
+CR This command controls whether or not the extended format of an outgoing call is 110
displayed or not.
+CRC This command controls whether to present the extended format of the incoming call 67
indication.
+CREG This command enables/disables the network status registration unsolicited result 187
code.
+CRLP This command returns the Radio Link Protocol parameters. 185
+CRSL This command handles the selection of the incoming call ringer and alert tone (SMS) 223
sound level on the alert speaker of the g20.
+CRSM This command enables you to read UNSU, GID1, GID2 and ICC ID data from the 295
SIM card
+CRTT This command plays one cycle of a ring tone, stops the cycle in the middle, and sets 219
the ring tone to be used.
+CSCA This command handles the selection of the SCA and the TOSCA. 162
+CSCB This command handles the selection of cell broadcast message types and data 179
coding schemes received by the g20.
+CSMS This command handles the selection of the SMS service type. 158
+CSNS This command handles the selection of the bearer or teleservice to be used when a 89
mobile terminated single numbering scheme call is established.
+CSSN This command handles the enabling and disabling of supplementary service-related, 111
network-initiated, notifications.
+CSQ This command returns the signal strength received by the g20. 184
+CSVM This command handles the selection of the number to the voice mail server. 137
432 98-08901C68-C
Reference Tables
+CTFR1 This command terminates an incoming call and diverts the caller to the number 93
previously defined in CCFC, or to a voice mail if one exists for the subscriber.
+CUSD This command allows control of Unstructured Supplementary Service Data (USSD), 114
according to GSM 02.90.
+CVIB This command handles the enabling and disabling of the vibrator alert feature of the 225
g20 during a mobile-terminated incoming call.
+FAR This command is supported for backward compatibility only, and has no effect. 314
+FCL This command is supported for backward compatibility only, and has no effect. 314
+FCLASS This command places the terminal in particular mode of operation (data, fax, voice). 315
+FDD This command is supported for backward compatibility only, and has no effect. 314
+FIT This command is supported for backward compatibility only, and has no effect. 314
+FRH This command causes the g20 to receive HDLC framed data and deliver the next 322
received frame to the terminal.
+FRM This command causes the g20 to enter the receive mode. 320
+FRS This command causes the g20 to listen and to report back an OK result code when 317
the line has been silent for the specified amount of time.
+FTH This command causes the g20 to transmit data framed in the HDLC protocol. 321
+FTS This command causes the g20 to stop any transmission. 316
+GCAP This command requests the overall capabilities of the g20. 200
98-08901C68-C 433
Reference Tables
+ICF This command determines the local serial port start/stop (asynchronous) character 210
framing used by the DCE when accepting DTE commands and transmitting
information text and result codes, whenever these are not done automatically.
+IFC This command controls the operation of the local flow control between the terminal 323
and the g20.
+IPR This command is responsible for setting and saving the request baud rate. 199
+MADIGITAL This command switches between analog and digital audio modes. 234
+MAFEAT This command controls the various algorithm features, such as sidetone, echo 238
cancel and noise suppress.
+MAID This command returns the AT Feature Review that is supported in the g20. 55
+MAMUT This command controls the muting/unmuting of all input paths (MIC, HDST_MIC, 239
DIGITAL_RX).
+MAPATH This command sets/requests the active input accessory, and the output accessory 231
for each feature.
+MAPV This command returns the version of the user protocol that is supported by the g20. 57
+MAVOL This command enables you to determine a volume setting for a particular feature in 235
a particular accessory.
+MCSAT This command enables/disables/exercises SMS alert tone for an arriving SMS. 181
+MCWAKE This command requests reports on the status of the GPRS coverage. 206
+MDBAD This command sets/reads the auto-delete user preference setting in the date book 154
database.
+MDBR This command reads entries stored in the date book. 153
+MDC This command enables you to select the desired messages to be displayed upon 92
connection of a voice call with a remote party.
+MDSI This command enables unsolicited reporting of indications of SIM deactivation and 142
invalidation.
+MFS This command is used to determine how long the g20 waits before attempting to 139
re-register after a registration attempt has failed and the g20 is not registered.
434 98-08901C68-C
Reference Tables
+MHIG This command enables an intelligent car kit to indicate the ignition state of the 283
vehicle to the g20, which enables the g20 to turn on and off with the ignition, or to
enter a power saving state when the ignition is turned off.
+MIPCALL This command creates a wireless PPP connection with the GGSN, and returns a 356
valid dynamic IP for the g20.
+MIPCLOSE This command causes the g20 module to free the socket accumulating buffer and 360
disconnect the g20 from a remote side.
+MIPFLUSH This command causes the g20 module to flush (delete) data accumulated in its 366
accumulating buffers.
+MIPOPEN This command causes the g20 module to initialize a new socket and open a 358
connection with a remote side.
+MIPPUSH This command causes the g20 module to push the data accumulated in its 364
accumulating buffers into the protocol stack.
+MIPRTCP This unsolicited event is sent to the terminal when data is received from the TCP 367
protocol stack.
+MIPRUDP This unsolicited event is sent to the terminal when data is received from the UDP 367
protocol stack.
+MIPSEND This command causes the g20 to transmit the data that the terminal provides, using 363
an existing protocol stack.
+MIPSETS This command causes the g20 to set a watermark in the accumulating buffer. When 361
the watermark is reached, data is pushed from the accumulating buffer into the
protocol stack.
+MIPSTAT This unsolicited event is sent to the terminal indicating a change in link status. 368
+MIPXOFF This unsolicited event is sent to the terminal to stop sending data. 368
+MIPXON This unsolicited event is sent to the terminal when the g20 has free memory in the 369
accumulating buffer.
+MKPD This command enables accessories to control the press and release of key presses. 286
+MMAR This command changes the status of an SMS message in the g20 memory from 172
"REC UNREAD" to "REC READ".
+MMICG This command handles the selection of microphone gain values. 244
+MMGL This command displays a list of SMS messages stored in the g20 memory. 169
+MMGR This command enables the user to read selected SMS messages from the g20 171
memory.
98-08901C68-C 435
Reference Tables
+MPBF This command enables the user to search the currently active phone book for a 129
particular entry, by name, and returns fields that are unique to Motorola phones.
+MPBR This command recalls phone book entries from a specific entry number, or from a 125
range of entries.
+MPBW This command enables the user to store a new entry in the phone book, or to delete 134
an existing entry from the phone book.
+MPCMC This command defines whether the PCM clock runs continuously or not. 211
+MPDPM This command returns the collective percentage of memory used by the phonebook 150
and datebook in their shared dynamic memory storage.
+MRST This command enables customer software to perform a hard reset to the g20 unit. 215
+MSCTS This command defines the behavior of the CTS line when the g20 is in Sleep mode. 273
+MTCTS This command sets the CTS pin of the RS232 to not active (high), waits one second 202
and then returns the CTS to active (low).
+MTDTR This command checks and outputs the physical current status of the DTR pin of the 201
RS232.
+MTKC This unsolicited event notifies the terminal when supplementary services, SMS 356
Control or Call Control are modified.
+MTKM This is both a command and an unsolicited event. The command selects items from 353
the menu.
+MTKP This is both a command and an unsolicited event. The command enables the user to 338
respond to an unsolicited event.
+MTKR This command displays the profile that is downloaded from the g20 to the SIM during 326
the SIM initialization process
+MUPB This command causes the g20 to send an event when a phone book entry is 291
accessed or modified by the user.
+VTS This command transmits DTMF tones when a voice call is active. 228
A This command answers an incoming call, placing the g20 into the appropriate mode, 66
as indicated by the RING message.
436 98-08901C68-C
Reference Tables
A/ This command repeats the last command entered on the terminal. 246
AT This command checks the AT communication and only returns OK. 246
B This command is supported for backward compatibility only, and has no effect. 312
D This command places a voice call on the current network, when issued from an 60
accessory device.
D*99 This command enables the MT to perform the actions necessary for establishing 307
communication between the terminal and the external PDN.
D> This command places a voice/fax/data call on the current network by dialing directly 61
from the g20 phone book.
E This command defines whether the g20 echoes the characters received from the 260
user, (whether input characters are echoed to output).
F This command is supported for backward compatibility only, and has no effect. 312
L This command is supported for backward compatibility only, and has no effect. 312
M This command is supported for backward compatibility only, and has no effect. 312
N This command is supported for backward compatibility only, and has no effect. 312
O This command returns a phone to the Online Data mode and issues a CONNECT or 88
CONNECT <text> result code.
P This command is supported for backward compatibility only, and has no effect. 312
RING This unsolicited event is received when an incoming call (voice, data or fax) is 67
indicated by the cellular network.
S102 This S-register sets the value of the delay before sending the data to the terminal. 272
S24 This S-parameter activates/disables the Sleep mode. If the parameter value is 271
greater than 0, it represent the number of seconds till the g20 enters sleep mode.
S94 This S-parameter represents the Boolean status, On/Off, of the sidetone feature. 221
98-08901C68-C 437
Reference Tables
S96 This S-parameter represents the Boolean status, On/Off, of the echo cancelling 222
feature in the handsfree.
Sn This command reads/writes values of the S-registers, and includes registers 1-49. 262
T This command is supported for backward compatibility only, and has no effect. 312
V This command determines the response format of the data adapter and the contents 257
of the header and trailer transmitted with the result codes and information
responses.
X This command defines the data adaptor response set, and the CONNECT result 260
code format.
Y This command is supported for backward compatibility only, and has no effect. 312
GSM UCS-2
Symbol
(GSM 03.38) (ISO 10646-1)
@ 0x00 0x0040
£ 0x01 0x00A3
$ 0x02 0x0024
¥ 0x03 0x00A5
è 0x04 0x00E8
é 0x05 0x00E9
ù 0x06 0x00F9
ì 0x07 0x00EC
ò 0x08 0x00F2
Ç 0x09 0x00C7
LF 0x0A 0x000A
Ø 0x0B 0x00D8
ø 0x0C 0x00F8
CR 0x0D 0x000D
Å 0x0E 0x00C5
438 98-08901C68-C
Reference Tables
GSM UCS-2
Symbol
(GSM 03.38) (ISO 10646-1)
å 0x0F 0x00E5
Ä 0x10 0x0394
_ 0x11 0x005F
Ö 0x12 0x03A6
à 0x13 0x0393
Ë 0x14 0x039B
Ù 0x15 0x03A9
Ð 0x16 0x03A0
Ø 0x17 0x03A8
Ó 0x18 0x03A3
È 0x19 0x0398
Î 0x1A 0x039E
1) 0x1B 0x258A
Æ 0x1C 0x00C6
æ 0x1D 0x00E6
ß 0x1E 0x03B2
É 0x1F 0x00C9
SP 0x20 0x0020
! 0x21 0x0021
# 0x23 0x0023
¤ 0x24 0x00A4
% 0x25 0x0025
( 0x28 0x0028
) 0x29 0x0029
* 0x2A 0x002A
+ 0x2B 0x002B
, 0x2C 0x002C
- 0x2D 0x002D
. 0x2E 0x002E
98-08901C68-C 439
Reference Tables
GSM UCS-2
Symbol
(GSM 03.38) (ISO 10646-1)
/ 0x2F 0x002F
0 0x30 0x0030
1 0x31 0x0031
2 0x32 0x0032
3 0x33 0x0033
4 0x34 0x0034
5 0x35 0x0035
6 0x36 0x0036
7 0x37 0x0037
8 0x38 0x0038
9 0x39 0x0039
: 0x3A 0x003A
; 0x3B 0x003B
= 0x3D 0x003D
? 0x3F 0x003F
¡ 0x40 0x00A1
A 0x41 0x0041
B 0x42 0x0042
C 0x43 0x0043
D 0x44 0x0044
E 0x45 0x0045
F 0x46 0x0046
G 0x47 0x0047
H 0x48 0x0048
I 0x49 0x0049
J 0x4A 0x004A
K 0x4B 0x004B
L 0x4C 0x004C
M 0x4D 0x004D
N 0x4E 0x004E
440 98-08901C68-C
Reference Tables
GSM UCS-2
Symbol
(GSM 03.38) (ISO 10646-1)
O 0x4F 0x004F
P 0x50 0x0050
Q 0x51 0x0051
R 0x52 0x0052
S 0x53 0x0053
T 0x54 0x0054
U 0x55 0x0055
V 0x56 0x0056
W 0x57 0x0057
X 0x58 0x0058
Y 0x59 0x0059
Z 0x5A 0x005A
Ä 0x5B 0x00C4
Ö 0x5C 0x00D6
Ñ 0x5D 0x00D1
Ü 0x5E 0x00DC
§ 0x5F 0x00A7
¿ 0x60 0x00BF
a 0x61 0x0061
b 0x62 0x0062
c 0x63 0x0063
d 0x64 0x0064
e 0x65 0x0065
f 0x66 0x0066
g 0x67 0x0067
h 0x68 0x0068
i 0x69 0x0069
j 0x6A 0x006A
k 0x6B 0x006B
l 0x6C 0x006C
m 0x6D 0x006D
n 0x6E 0x006E
98-08901C68-C 441
Reference Tables
GSM UCS-2
Symbol
(GSM 03.38) (ISO 10646-1)
o 0x6F 0x006F
p 0x70 0x0070
q 0x71 0x0071
r 0x72 0x0072
s 0x73 0x0073
t 0x74 0x0074
u 0x75 0x0075
v 0x76 0x0076
w 0x77 0x0077
x 0x78 0x0078
y 0x79 0x0079
z 0x7A 0x007A
ä 0x7B 0x00E4
ö 0x7C 0x00F6
ñ 0x7D 0x00F1
ü 0x7E 0x00FC
à 0x7F 0x00E0
UCS2 UTF-8
Byte Encoding Bit Encoding Byte 1 Byte 2 Byte 3
0000 - 007F 000000000xxxxxxx 0xxxxxxx
0080 - 07FF 00000yyyyyxxxxxx 110yyyyy 10xxxxxx
0800 - FFFF zzzzyyyyyyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx
442 98-08901C68-C
Reference Tables
Conversion from the default GSM alphabet to the above character set is straightforward. Conversions of the
characters listed below the table are not supplied.
Note
98-08901C68-C 443
Reference Tables
444 98-08901C68-C
Reference Tables
98-08901C68-C 445
Reference Tables
446 98-08901C68-C
2. INDEX
AT Commands Reference 45
Numerics $, List of All Available AT Commands 53
&C, Circuit 109 Behavior 203
8859 Character Set Management 18
&D, Circuit 108 Behavior 205
&F, Set to Factory Defined Configuration 266
&J 313
A &K, RTS/CTS Flow Control 202
Abbreviations 2 &V, View Configuration 292
General System 34 &W, Store User Profile 293
Aborting Commands 40 &Y, Default User Profile 294
Access Control Commands 246 +CACM, Accumulated Call Meter 104
Acknowledgement +CAMM, Accumulated Call Meter Maximum 105
New Message 166 +CAOC, Advice of Charge 101
Address +CBAND, Change Radio Band 266
Email Gateway 183 +CBAUD, Baud Rate Regulation 197
Service Centre 162 +CBC, Battery Charger Connectionl 196
Applicable Documents 1 +CBST, Select Bearer Service Type 86
Argument Types in AT Commands 38 +CCFC, Call Forwarding Number and Conditions 81
ASCII Character Set Management 17 +CCLK, Read/Set System Date and Time 156
AT Command Reference +CCWA, Call Waiting Command 72
+CALM, Alert Sound Mode 241 +CDEV, Change Display Indication 289
+CFUN, Shut Down Phone Functionality 208 +CEER, Extended Error Report 279
+CLVL, Loudspeaker Volume 243 +CGACT 311
+CPOL, Preferred Operators 194 +CGACT, PDP Context Activate or Deactivate 311
+CRSL, Call Ringer Level 223 +CGATT, GPRS Attach or Detach 306
+CSCB, Cell Broadcast Messages 179 +CGCLASS, GPRS Mobile Station Class 297
+CSVM, Voice Mail Server 137 +CGDCONT, Define PDP Context 299
+VTD, Tone Duration 227 +CGMI, Request Manufacturer ID 45
AT Commands +CGMM, Request Model ID 46
Aborting Commands 40 +CGMR, Request Revision 47
Command Argument Types 38 +CGPRS, GPRS Coverage 309
Command Mode Types 39 +CGQMIN, Quality of Service Profile (Min Acceptable)
Command Token Types 38 302
Core AT Commands 41 +CGQREQ, Quality of Service Profile (Requested) 304
General Symbols in Description 33 +CGREG, GPRS Network Registration 189
Introduction 33 +CGSMS, Select Service for MO SMS Messages 177
List All 53 +CGSN, Request Product Serial Number Identification
Overview 33 47
Protocol 34 +CHLD, Call Related Supplementary Services 77
Protocol and Structure Configuration 37 +CHUP, Hang Up Call 89
Structure 35 +CIEV, Indicator Event Reporting 290
Summary 19, 427 +CIMI, Request IMSI 50
Using 393 +CKEV, Key Press Echo Output 288
Values 40 +CKPD, Keypad Control 283
98-08901C68-C 447
+CLAC, List of All Available AT Commands 53 +FTM, Transmit Data 318
+CLCC, List Current Calls 97 +FTS, Transmit Silence 316
+CLCK, Facility Lock 253 +GCAP, Request Overall Capabilities 200
+CLIP, Calling Line Identification 70 +GMI, Request Manufacturer ID 45
+CLIR, Calling Line Identification Restriction 83 +GMM, Request Model ID 46
+CMEE, Report Mobile Equipment Error 274 +GMR, Request Revision 47
+CMER, Set/Request Local Key Press Echo Keypad +GSN, Request Product Serial Number Identification 47
Mode 287 +ICF, DTE-DCE Character Framing 210
+CMGD, Delete Message 176 +IFC, Terminal g20 Local Flow Control 323
+CMGF, Message Format 161 +IPR, Local DTE-DCE Serial Port Rate 199
+CMGL, List Messages 169 +MA, Audio Control Commands 231
+CMGR, Read Message 171 +MAFEAT, Features Selection 238
+CMGS, Send SM to Network 178 +MAID, Get Accessory Feature Review 55
+CMGW, Write Message to Memory 174 +MAMUT, Input Devices Mute 239
+CMSS, Send Message From Storage 173 +MAPATH, Audio Path 231
+CMTI, Unsolicited Result Code 167 +MAPV, Get Accessory Protocol Version 57
+CMUT, Mute/Unmute Currently Active Microphone +MAVOL, Volume Setting 235
Path 230 +MCSAT, Motorola Control SMS Alert Tone 181
+CMUX, MUX Startup Command 374 +MCSN, Motorola Change Subscriber Number 145
+CNMA, New Message Acknowledgement 166 +MCWAKE, GPRS Coverage 206
+CNMI, New Message Indications to Terminal 164 +MDBAD, Date Book Auto Delete User Preference 154
+CNUM, Request MSISDN(s) 51 +MDBL, Lock/Unlock Date Book 151
+COLP, Connected Line Identification Presentation 119 +MDBR, Read Date Book Entry 153
+COPS, Operator Selection 191 +MDC, Selection of Desired Message to Be Displayed
+CPAS, Phone Activity Status 96 Upon Connection of a Voice Call 92
+CPBF, Find Phone Book Entries 128 +MDSI, Motorola Deactivate SIM Card Indication 142
+CPBR, Read Phone Book Entries 123 +MEGA, Email Gateway Address 183
+CPBS, Select Phone Book Memory 121 +MFS, Motorola Frequency of Search 139
+CPBW, Write Phone Book Entry 132 +MH, Handset Status/Control 282
+CPIN, Enter PIN for Unlocking SIM Card or Enter PUK +MHIG, Set Ignition State 283
for Unblocking SIM Card 247 +MIPCALL, Create a Wireless Link 356
+CPMS, Preferred Message Storage 160 +MIPCLOSE, Close a Socket 360
+CPUC, Price per Unit and Currency Table 108 +MIPFLUSH, Flush Data from Buffers 366
+CPWD, Change Password 250 +MIPOPEN, Open a Socket (UDP or TCP) 358
+CR, Service Reporting Control 110 +MIPPUSH, Push Data into Protocol Stack 364
+CRC, Cellular Result Codes 67 +MIPRTCP, Receive Data from TCP Protocol Stack 367
+CREG, Network Registration Status 187 +MIPRUDP, Receive Data from UDP Protocol Stack 367
+CRLP, Radio Link Protocol 185 +MIPSEND, Send Data 363
+CRSM, Restricted SIM Access 295 +MIPSTAT, Status Report 368
+CRTT, Ring Type Selection 219 +MKPD, Auxiliary Keypad Control 286
+CSCA, Service Centre Address 162 +MMAR, Motorola Mark As Read 172
+CSMS, Select Message Service 158 +MMGL, List Messages 169
+CSNS, Single Numbering Call Scheme 89 +MMGR, Read Message 171
+CSQ, Signal Strength 184 +MPBF, Find Extended Phone Book Entries 129
+CSSN, Supplementary Service Notifications 111 +MPBR, Read Extended Phone Book Entries 125
+CTFR1, Divert an Incoming Call When User Busy 93 +MPBW, Write Extended Phone Book Entry 134
+CUSD, Unstructured Supplementary Service Data 114 +MPCMC, Continuous PCM Clock 211
+CVIB, Vibrator Mode 225 +MPDPM, Motorola Phonebook Dynamic Percentage
+FCLASS, Select Mode 315 Memory 22, 150
+FMI, Request Manufacturer ID 45 +MRST, Perform Hard Reset 215
+FMM, Request Model ID 46 +MSCTS, Enable/Disable CTS During Wakeup Period
+FMR, Request Revision 47 273
+FRH, Receive DATA with HDLC Frame 322 +MTCTS, CTS Line Test Command 202
+FRM, Receive Data 320 +MTDTR, DTR Line Test Command 201
+FRS, Receive Silence 317 +MTKC, Motorola ToolKit Call Control 356
448 98-08901C68-C
+MTKE, Motorola ToolKit Enable 337 Sleep Mode Commands 268
+MTKM, Motorola ToolKit Menu 353 Sleep Mode HW Signals 268
+MTKM, Motorola ToolKit Menu (Unsolicited Indica- SMS Commands 158
tion) 354 STK 325
+MTKP, Motorola ToolKit Proactive (Unsolicited Indi- Subscriber Unit Identity 45
cation) 338 System Date and Time Access Commands 156
+MTKR, Profile Download 326 TCP/IP 356
+MUPB, Phone Book Event 291 UI 282
?, Return the Value of the Last Updated S-Register 266 Unsolicited UI Status Messages 288
A, Answer Incoming Call 66 V, g20 Response Format 257
A/, Repeat Last Command 246 X, Result Code Selection and Call Progress Monitoring
Access Control Commands 246 Control 260
AT, Check AT Communication 246 Z, Reset to Default Configuration 267
ATS97, Antenna Diagnostic 213 AT Commands Summary 19, 427
Audio Tone Commands 219 AT Commmands Reference
Call Control 58, 60 +CSCS, Select Terminal Character Set 48
Capability Reporting 55 AT Communication
D*99, Request GPRS Service "D" 307 Check 246
D, Dial 60 Audio 10, 216
Date Book Access Commands 151 +MA Audio Control Commands 231
Directory Access Commands 121 Features and Benefits 10
DL, Dial Last Number 63 Overview 10
E, Command Echo 260 Technical Description 11
Error Handling Commands 274 Tone Commands 219
Fax Class 1 314 Audio Path 231
Fax Commands 315 Audio Tone Commands 219
g18 Backward Compatibility 45 Automatic Push
GPRS Commands 294 Set Size 361
H, Hang-up Call 65 Auxilliary Keypad Control 286
Hardware Information 196
I, Request Identification Information 51
IGNORED (Compatible Only) Commands 312 B
J, Terminal Auto Rate 265
Backward Compatibilty 45
MIPSETS, Set Size for Automatic Push 361
Battery
MIPXON, Flow Control - Xoff 368
Charger Connection 196
MIPXON, Flow Control - Xon 369
Baud Rate Regulation 197
Modem Configuration and Profile 257
Bearer
Modem ID 45
Select 86
Modem Register Commands 257
Bit Map Registers 262
MTKM, Motorola ToolKit Menu (Unsolicited Indica-
Buffers
tion) 354
Flush Data 366
Network Commands 184
NOP - Compatible 311
O, Return to Online Data State 88
Phone and Date Books 121
C
Q, Result Code Suppression 259 Call
S, Bit Map Registers 262 Indicator 67
S, Show the Status of the Commands and S-Registers in Call Control 58, 405
Effect 265 Dialing Electronic Telephone Service 59
S102, Set Delay Before Sending Data to the Terminal 272 Hanging Up 59
S24, Set Number of Seconds Delay before g20 Enters Managing a CSD (Data) Call 58
Sleep Mode 271 Receiving Data Call 60
S94, Sidetone Effect 221 Simple Dialing 58
S96, Echo Canceling 222 Switching Modes 59
Sleep Mode AT Commands 268 Call Control Commands 60
98-08901C68-C 449
Call Forwarding Enable/Disable During Wakeup Period 273
Conditions 81 Flow Control 202
Numbers 81 Line Test 202
Call Progress Current Calls
Monitoring Control 260 List 97
Call Waiting 72
Calling Line
Identification 70 D
Identification Restriction 83
Data
Capabilities
Flush from Buffers 366
Request Overall 200
HDLC Frame 322
Capability Reporting 55
Push into Protocol Stack 364
Cellular Result Codes 67
Receive 320
Character Set
Receive from TCP Protocol Stack 367
Terminal 48
Receive from UDP Protocol Stack 367
Character Set Conversion tables 17
Send 363
Character Sets
Transmit 318
8859 18
Data Call 410
ASCII 17
Data Calls
GSM 18
Managing 58
UCS2 18
Receiving 60
UTF-8 18
Date
Charge
Read/Set 156
Advice 101
Date Book 121
Circuit 108 Behavior 205
Auto Delete User Preference 154
Circuit 109 Behavior 203
Lock/Unlock 151
Command Argument Types
Read Entry 153
Numeric Constants 38
Default Configuration
String Constants 39
Reset 267
Command ArgumentTypes 38
Dial
Command Mode Types 39
Last Number 63
Command ModeTypes
Dial Command 60
Parameter Read Command Syntax 39
Dialing 58
Parameter Set Command Syntax 39
Electronic Telephone Service 59
Parameter Test Command Syntax 39
Directory Access Commands 121
Command Token Types 38
DTE-DCE
Basic Syntax Command Format 38
Serial Port Rate 199
Extended Syntax Command Format 38
DTE-DCE Serial Port Rate 199
S-parameters 38
DTR Line Test 201
Commands
Show Status 265
Communication Cable 396
Compatible Only Commands 312
E
Configuration Echo 260
Protocol and Structure of AT Commands 37 Echo Cancel 11
Constants Echo Canceling 222
Numeric in Command Argument Types 38 Email Gateway
String in Command Argument Types 39 Address 183
Core AT Commands 41 Equipment
CSD 13 Report Mobile Error 274
Features and Benefits 14 Error Handling Commands 274
Overview 13 Error Report 279
Technical Description 14 Extended 279
CSD Operation 13 Extended Syntax Command Format 38
CTS
450 98-08901C68-C
Receive Data 322
F
Facility Lock 253
Factory Defined Configuration
I
Set 266 Identification
Fax 17 Request Infomation 51
Features and Benefits 17 Ignition State
Overview 17 Set 283
Technical Description 17 IGNORED (Compatible Only) Commands 312
Fax Class 1 314 Ignored Commands 312
Fax Commands 315 IMSI
Features and Benefits Request 50
Audio 10 Incoming Call
CSD 14 Answer 66
Fax 17 Incoming Call Indicator 67
GPRS 13 Indications
MUX Integration 15 New Message 164
SMS 16 Indicator
STK 5 Incoming Call 67
TCP/IP 9 Init General 401
Features Selection 238 Input Devices
Flow Control Mute 239
Xoff 368 Integration
Xon 369 MUX 14
G K
g18 Key Press
Backward Compatibility 45 Echo Output 288
g20 Key Press Echo
Abbreviations 2 Set/Request 287
Terms and Abbreviations 2 Keypad
GPRS Auxilliary Control 286
Attach/Detach 306 Keypad Control 283
Coverage 206, 309
Features and Benefits 13
Mobile Station Class 297 L
Operation 13
Last Command
Overview 13
Repeat 246
Request Service "D" 307
Last Number
Technical Description (Class B Operation) 13
Dial 63
GPRS Commands 297
Line
GPRS Operation 13
Identification Restriction 83
GSM Character Set Management 18
Local Flow Control 323
H M
Handset
Manufacturer ID
Control 282
Request 45
Status 282
Message
Hanging Up 59
Acknowledgement 166
Hang-up Call 65
Indication 164
Hardware Information 196
Receipt Indication 167
HDLC Frame
98-08901C68-C 451
Message Format 161 Network Registration 189
Message Service Status 187
Select 158 Noise Suppress 11
Message Storage NOP - Compatible 312
Preferred 160
Messages
Delete 176 O
List 169
OEM Features
Mark as Read 172
Improved 5
Read 171
Online Data State
Send from Storage 173
Return to 88
Write to Memory 174
Operator Selection 191
Mobile Equipment
Organization of Manual 4
Report Error 274
Overview
Mobile Station Class 297
AT Commands 33
Mode
Audio 10
Select 315
CSD 13
Mode Types in AT Commands 39
Fax 17
Model ID
GPRS 13
Request 46
MUX Integration 14
Modem
SMS 16
Configuration 257
STK 5
Profile 257
TCP/IP 7
Modem ID 45
Subscriber Unit Identity 45
Modem Register Commands 257
Modes
P
Switching 59 Paramater Read Command Syntax
MSISDN(s) Command Mode Types 39
Request 51 Paramater Set Command Syntax
Mute Command Mode Types 39
Input Devices 239 Paramater Test Command Syntax
MUX Command Mode Types 39
Channel Priorities 377 Password
Channels 376 Change 250
Customer Open Source Code Packet 376 PDP Context
Information/Data Channel Definitions 377 Define 299
MUX State 372 Phone
MUX-Init State 372 Activity Status 96
PREMUX Modes 376 Phone Book 121
PREMUX State 371 Directory Access Commands 121
Product Architecture 370 Event 291
Source Code APIs 376 Find Entries 128
States Overview 371 Find Extended Entries 129
UART Flow Control 373 Read Entries 123
UART Hardware Flow Control 373 Read Extended Entries 125
UART Software Flow Control 373 Select Memory 121
MUX Integration 14 Write Entry 132
Features and Benefits 15 Write Extended Entry 134
Overview 14 PIN
Technical Description 16 Unlocking SIM Card 247
Power On/INIT 393
Protocol
N AT Commands 34
Protocol Stack
Network Commands 184
452 98-08901C68-C
Push Data 364 Unblocking 247
Receive Data 367 Unlocking 247
PUK Sleep Mode
Unblocking SIM Card 247 HW Signals 268
Push Set Delay 271
Automatic 361 Sleep Mode AT Commands 268
Sleep Mode Commands 268
SMS 16, 401
Q Features and Benefits 16
Overview 16
Quality
Technical Description 16
Min. Acceptable Service 302
SMS Commands 158
Requested Service Profile 304
Socket
Quality of Service Profile 302, 304
Close 360
Open 358
S-parameters in Command Token Types 38
R S-Registers
Radio Show Status 265
Change Band 266 S-Regsiter
Radio Link Protocol 185 Return Last Updated 266
Repeat Status
Last Command 246 Commands and S-Registers in Effect 265
Reset Network Registration 187
Default Configuration 267 Phone Activity 96
Response and Indications Structure 36 Status Messages
Response Format 257 Unsolicited 288
Result Code Status Report 368
Selection 260 STK 5, 325
Suppression 259 Features and Benefits 5
Unsolicited 167 Language Codes 350
Results Code Structure 36 Launch Browser 346
Revision Mechanisms 326
Request 47 Overview 5
Ring Type Selection 219 Profile Structure 327
RTS Flow Control 202 Send DTMF 344
Set Up Event List 347
Technical Description 5
S Storage
Message 160
Scope 1
Structure
Sending 16
Response and Indications in AT Commands 36
Sending SMS 16
Results Code in AT Commands 36
Serial Number
Structure of AT Commands 35
Request Identification 47
Subscriber Unit Identity 45
Serial Port Rate 199
Supplementary Services
Service Centre
Call Related 77
Address 162
System Date and Time Access Commands 156
Service Type
Select 86
Side Tone Effect 221
Sidetone 10
T
Signal Strength 184 TCP/IP 7, 356
Silence Features and Benefits 9
Receive 317 Overview 7
Transmit 316 Technical Description 9
SIM Card Technical Description
98-08901C68-C 453
Audio 11 UCS2 Character Set Management 18
CSD 14 Unblocking
Fax 17 SIM Card 247
GPRS (Class B Operation) 13 Unlocking
MUX Integration 16 SIM Card 247
SMS 16 Unsolicited Result Code 167
STK 5 Unsolicited UI Status Messages 288
TCP/IP 9 User Interface Commands 282
Terminal Auto Rate 265 UTF-8 Character Set Management 18
Terms 2
Time
Read/Set 156 V
Token Types in AT Commands 38
Values in AT Commands 40
ToolKit
Compound Range 40
Enable 337
Range 40
ToolKit Menu 354
Volume Setting 235
U W
UART
Wireless Link
Flow Control 373
Create 356
Hardware Flow Control 373
Software Flow Control 373
454 98-08901C68-C