telephonyserverplugins/multimodetsy/Multimode/Matstd.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // AT Command TSY Standard Header 
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll 
       
    21 */
       
    22 
       
    23 #ifndef __MATSTD_H__
       
    24 #define __MATSTD_H__
       
    25 
       
    26 #include "ATSTD.H"
       
    27 
       
    28 _LIT8(KAsterisk,"*");
       
    29 
       
    30 _LIT8(KCMTMatchString,"+CMT:*");
       
    31 _LIT8(KCDSMatchString,"+CDS:*");
       
    32 
       
    33 _LIT8(KCGREGMatchString,"+CGREG:*");
       
    34 
       
    35 _LIT8(KCMTIMatchString,"+CMTI:*");
       
    36 
       
    37 _LIT8(KSmsGetModeCommand,"AT+CMGF=?");
       
    38 _LIT8(KSmsSetModeCommand,"AT+CMGF=");
       
    39 _LIT8(KSetSmsModeSupportCommand,"AT+CMGF=0");
       
    40 
       
    41 _LIT8(KSmsEnterBlockModeCommand,"AT+CESP");
       
    42 
       
    43 _LIT8(KSmsSetSCCommand,"AT+CSCA=");
       
    44 _LIT8(KServiceCentreQueryCommand,"AT+CSCA?\r");
       
    45 _LIT8(KServiceCentreQueryCommandWithCRES,"AT+CRES=1;+CSCA?\r");
       
    46 _LIT8(KSmsFormatCommand,"AT+CMGF=%d\r");
       
    47 _LIT8(KSmsSendPduLengthCommand,"AT+CMGS=%d\r");
       
    48 
       
    49 _LIT8(KSmsSetTextModeCommand,"AT+CSMP=");
       
    50 
       
    51 _LIT8(KSmsSendCommand,"AT+CMGS=");
       
    52 
       
    53 _LIT8(KSmsSetTABufferMode,"AT+CNMI=,0\r");	
       
    54 _LIT8(KSmsSetCMTMode,"AT+CNMI=%d,2\r");	
       
    55 _LIT8(KSmsSetCMTIMode,"AT+CNMI=%d,1\r");
       
    56 _LIT8(KSmsGetNMICommand,"AT+CNMI?\r");
       
    57 _LIT8(KGetCNMIConfigCommand,"AT+CNMI=?\r");
       
    58 
       
    59 _LIT8(KSmsSetSMSCommand,"AT+CSMS=");
       
    60 _LIT8(KSmsGetSMSCommand,"AT+CSMS?");
       
    61 _LIT8(KGetCSMSConfigCommand,"AT+CSMS=?");
       
    62 
       
    63 _LIT8(KDataCallBearerServiceType,"AT+CBST="); 
       
    64 _LIT8(KGetCBSTConfigCommand,"AT+CBST=?\r");  
       
    65 
       
    66 _LIT8(KDeleteContextCommand,"AT+CGDCONT=%d\r");
       
    67 
       
    68 _LIT8(KGetCGREGCommand,"AT+CGREG?\r");
       
    69 
       
    70 
       
    71 // AT commands used to interrogate the phone's phonebook support.
       
    72 _LIT8(KPhoneBookStorageSet,"AT+CPBS=\"%S\"");
       
    73 _LIT8(KPhoneBookStorageRead,"AT+CPBS?");
       
    74 _LIT8(KPhoneBookStorageTest,"AT+CPBS=?");
       
    75 
       
    76 
       
    77 // CNMI Capability Flags
       
    78 const TInt KDefaultCnmiModeParam=1;
       
    79 const TInt KBufferedCnmiModeParam=2;
       
    80 const TInt KInBandCnmiModeParam=3;
       
    81 const TUint KCnmiModeFlag0=1;
       
    82 const TUint KCnmiModeFlag1=2;
       
    83 const TUint KCnmiModeFlag2=4;
       
    84 const TUint KCnmiModeFlag3=8;
       
    85 const TUint KCmtiParam=1;
       
    86 const TUint KCmtParam=2;
       
    87 const TUint KCmtModeOff=1;
       
    88 const TUint KCmtModeIndicator=2;
       
    89 const TUint KCmtModeDirect=4;
       
    90 const TUint KSrNoneParam=0;
       
    91 const TUint KSrOnParam=1;
       
    92 const TUint KSrCapsNotSupported=1;
       
    93 const TUint KSrCapsSupported=2;
       
    94 const TUint KGprsCommandTimeOut = 10;		// seconds
       
    95 const TUint KGprsLongCommandTimeOut = 30;
       
    96 
       
    97 _LIT8(KSetCNMIConfigCommand,"AT+CNMI=%d");
       
    98 _LIT8(KNextCNMIParam,",%d");
       
    99 
       
   100 _LIT8(KSetPrefMemCommandWithString,"AT+CPMS=\"%S\",\"%S\"\r"); // Changed to set the write store as well(mem1 = read,mem2 = write)
       
   101 _LIT8(KGetPrefMemTestCommand,"AT+CPMS?\r");
       
   102 _LIT8(KGetPrefMemCommand,"AT+CPMS=?\r");
       
   103 
       
   104 _LIT8(KSmsReadCommand,"AT+CMGR=%d\r");
       
   105 
       
   106 _LIT8(KGetBatteryChargeCommand,"AT+CBC\r");
       
   107 
       
   108 _LIT8(KGetSignalQualityCommand,"AT+CSQ\r");
       
   109 
       
   110 _LIT8(KGetManufacturerIDCommand,"AT+CGMI\r");
       
   111 
       
   112 _LIT8(KGetModelIDCommand,"AT+CGMM\r");
       
   113 	
       
   114 _LIT8(KGetRevisionIDCommand,"AT+CGMR\r");
       
   115 
       
   116 _LIT8(KGetSerialNumberIDCommand,"AT+CGSN\r");
       
   117 
       
   118 _LIT8(KGetSubscrieberIDCommand,"AT+CIMI\r");
       
   119 
       
   120 _LIT8(KCGDCONTCommand,"AT+CGDCONT=?\r");
       
   121 _LIT8(KCurrentCGCLASSCommand,"AT+CGCLASS?\r");
       
   122 _LIT8(KMaxCGCLASSCommand,"AT+CGCLASS=?\r");
       
   123 
       
   124 _LIT8(KCGQREQCommand,"AT+CGQREQ=?\r");
       
   125 _LIT8(KCGATTCommand,"AT+CGATT?\r");
       
   126 
       
   127 
       
   128 //
       
   129 // Expected modem responses to GSM commands
       
   130 //
       
   131 _LIT8(KCBSTResponseString,"+CBST:");  
       
   132 _LIT8(KCMTResponseString,"+CMT:");
       
   133 _LIT8(KCDSResponseString,"+CDS:");
       
   134 _LIT8(KCNMIResponseString,"+CNMI:");
       
   135 _LIT8(KCMGFResponseString,"+CMGF:");
       
   136 _LIT8(KCMTIResponseString,"+CMTI:");
       
   137 _LIT8(KCMGSResponseString,"+CMGS:");
       
   138 const TInt KCMGSResponseStringLength=6;
       
   139 _LIT8(KCMGRResponseString,"+CMGR:");
       
   140 _LIT8(KCMGWResponseString,"+CMGW:");
       
   141 _LIT8(KCPMSResponseString,"+CPMS:");
       
   142 _LIT8(KCSCAResponseString,"+CSCA:");
       
   143 _LIT8(KCBCResponseString,"+CBC:");
       
   144 _LIT8(KCSQResponseString,"+CSQ:");
       
   145 _LIT8(KCGMIResponseString,"+CGMI:");
       
   146 _LIT8(KCGMMResponseString,"+CGMM:");
       
   147 _LIT8(KCGMRResponseString,"+CGMR:");
       
   148 _LIT8(KCGSNResponseString,"+CGSN:");
       
   149 _LIT8(KCGDCONTResponseString,"+CGDCONT:");
       
   150 _LIT8(KCGREGResponseString,"+CGREG:");
       
   151 
       
   152 _LIT8(KEndSmsModeResponseString,"\x10\x02\x3F\x10\x03\x00\x3F");
       
   153 
       
   154 _LIT8(KERRORResponseString,"ERROR");
       
   155 const TInt KERRORResponseStringLength=5;
       
   156 
       
   157 _LIT8(KCGCLASSResponseString,"+CGCLASS:");
       
   158 _LIT8(KCGQREQResponseString,"+CGQREQ:");
       
   159 _LIT8(KCGATTResponseString,"+CGATT:");
       
   160 _LIT8(KCGQMINResponseString,"+CGQMIN:");
       
   161 _LIT8(KPhoneBookStorageResponse,"+CPBS");
       
   162 
       
   163 
       
   164 //
       
   165 // GSM storage types
       
   166 //
       
   167 
       
   168 _LIT8(KFDStorage,"FD");
       
   169 _LIT8(KLDStorage,"LD");
       
   170 _LIT8(KMEStorage,"ME");
       
   171 _LIT8(KMTStorage,"MT");
       
   172 _LIT8(KSMStorage,"SM");
       
   173 _LIT8(KTAStorage,"TA");
       
   174 _LIT8(KBMStorage,"BM");
       
   175 _LIT8(KDCStorage,"DC");
       
   176 _LIT8(KENStorage,"EN");
       
   177 _LIT8(KMCStorage,"MC");
       
   178 _LIT8(KONStorage,"ON");
       
   179 _LIT8(KRCStorage,"RC");
       
   180 _LIT8(KSNStorage,"SN");
       
   181 
       
   182 #endif