|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __CSMSCANCEL_H__ |
|
22 #define __CSMSCANCEL_H__ |
|
23 |
|
24 #include "Te_LoopbackTestStepBase.h" |
|
25 #include "Te_LoopBackScriptEng.h" |
|
26 |
|
27 // |
|
28 // Cancel Script using CMT SMS Rx Mode |
|
29 // |
|
30 const struct TScript KSmsCancelScript[]= { |
|
31 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
32 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
33 |
|
34 { EIfRxStringJmp, (TText8*)"AT\r", 1, 0 }, |
|
35 |
|
36 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
37 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
38 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
39 |
|
40 // |
|
41 // The initialisation string - we don't care what it is |
|
42 // |
|
43 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
44 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
45 |
|
46 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
47 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
48 |
|
49 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
50 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
51 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
52 |
|
53 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
54 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
55 |
|
56 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
57 { ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut }, |
|
58 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
59 |
|
60 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
61 { ETxString, (TText8*)"1100801\r",0, ETxEvent|EFailIfTimeOut }, |
|
62 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
63 |
|
64 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
65 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
66 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
67 |
|
68 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
69 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
70 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
71 |
|
72 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
73 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
74 |
|
75 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
76 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
77 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
78 |
|
79 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
80 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
81 |
|
82 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
83 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
84 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
85 |
|
86 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
87 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
88 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
89 |
|
90 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
91 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
92 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
93 |
|
94 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
95 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
96 |
|
97 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
98 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
99 |
|
100 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
101 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
102 |
|
103 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
104 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
105 |
|
106 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
107 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
108 |
|
109 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
110 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
111 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
112 |
|
113 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
114 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
115 |
|
116 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
117 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
118 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
119 |
|
120 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
121 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
122 |
|
123 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
124 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
125 |
|
126 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
127 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
128 |
|
129 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
130 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
131 |
|
132 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
133 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
134 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
135 |
|
136 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
137 { ETxString, (TText8*)"+CBST: (0-7,12,14-16,34,36,38,39,43,47-51,65,66,68,70,71,75,79-81),(0,2),(1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
138 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
139 |
|
140 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
141 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
142 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
143 |
|
144 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
145 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
146 |
|
147 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
148 { ETxString, (TText8*)"+CNMI: (0-2),(0-2),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
149 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
150 |
|
151 { ERxString, (TText8*)"AT+CNMI=2,2", 0, ERxEvent }, |
|
152 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
153 |
|
154 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
155 |
|
156 // Re-initialisation |
|
157 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
158 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
159 |
|
160 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
161 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
162 |
|
163 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
164 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
165 |
|
166 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
167 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
168 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
169 |
|
170 // |
|
171 // The initialisation string - we don't care what it is |
|
172 // |
|
173 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
174 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
175 |
|
176 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
177 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
178 |
|
179 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
180 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
181 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
182 |
|
183 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
184 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
185 |
|
186 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
187 { ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut }, |
|
188 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
189 |
|
190 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
191 { ETxString, (TText8*)"1100801\r",0, ETxEvent|EFailIfTimeOut }, |
|
192 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
193 |
|
194 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
195 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
196 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
197 |
|
198 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
199 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
200 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
201 |
|
202 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
203 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
204 |
|
205 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
206 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
207 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
208 |
|
209 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
210 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
211 |
|
212 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
213 { EWait, NULL, 2, ETimeOutEvent }, |
|
214 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
215 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
216 |
|
217 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
218 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
219 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
220 |
|
221 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
222 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
223 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
224 |
|
225 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
226 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
227 |
|
228 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
229 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
230 |
|
231 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
232 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
233 |
|
234 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
235 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
236 |
|
237 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
238 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
239 |
|
240 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
241 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
242 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
243 |
|
244 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
245 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
246 |
|
247 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
248 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
249 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
250 |
|
251 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
252 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
253 |
|
254 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
255 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
256 |
|
257 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
258 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
259 |
|
260 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
261 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
262 |
|
263 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
264 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
265 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
266 |
|
267 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
268 { ETxString, (TText8*)"+CBST: (0-7,12,14-16,34,36,38,39,43,47-51,65,66,68,70,71,75,79-81),(0,2),(1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
269 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
270 |
|
271 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
272 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
273 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
274 |
|
275 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
276 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
277 |
|
278 { EWait, NULL, 2, ETimeOutEvent }, |
|
279 { EComplete, NULL, 0, 0 } |
|
280 }; |
|
281 |
|
282 // |
|
283 // Cancel Script using CMTI SMS Rx Mode |
|
284 // |
|
285 const struct TScript KSmsCancelCmtiScript[]= { |
|
286 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
287 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
288 |
|
289 { EIfRxStringJmp, (TText8*)"AT\r", 1, 0 }, |
|
290 |
|
291 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
292 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
293 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
294 |
|
295 // |
|
296 // The initialisation string - we don't care what it is |
|
297 // |
|
298 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
299 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
300 |
|
301 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
302 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
303 |
|
304 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
305 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
306 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
307 |
|
308 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
309 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
310 |
|
311 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
312 { ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut }, |
|
313 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
314 |
|
315 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
316 { ETxString, (TText8*)"1100801\r",0, ETxEvent|EFailIfTimeOut }, |
|
317 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
318 |
|
319 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
320 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
321 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
322 |
|
323 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
324 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
325 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
326 |
|
327 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
328 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
329 |
|
330 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
331 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
332 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
333 |
|
334 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
335 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
336 |
|
337 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
338 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
339 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
340 |
|
341 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
342 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
343 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
344 |
|
345 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
346 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
347 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
348 |
|
349 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
350 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
351 |
|
352 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
353 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
354 |
|
355 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
356 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
357 |
|
358 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
359 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
360 |
|
361 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
362 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
363 |
|
364 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
365 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
366 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
367 |
|
368 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
369 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
370 |
|
371 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
372 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
373 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
374 |
|
375 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
376 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
377 |
|
378 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
379 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
380 |
|
381 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
382 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
383 |
|
384 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
385 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
386 |
|
387 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
388 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
389 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
390 |
|
391 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
392 { ETxString, (TText8*)"+CBST: (0-7,12,14-16,34,36,38,39,43,47-51,65,66,68,70,71,75,79-81),(0,2),(1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
393 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
394 |
|
395 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
396 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
397 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
398 |
|
399 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
400 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
401 |
|
402 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
403 { ETxString, (TText8*)"+CNMI: (0-2),(0-2),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
404 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
405 |
|
406 { ERxString, (TText8*)"AT+CNMI=2,1", 0, ERxEvent }, |
|
407 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
408 |
|
409 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
410 |
|
411 // Re-initialisation |
|
412 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
413 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
414 |
|
415 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
416 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
417 |
|
418 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
419 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
420 |
|
421 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
422 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
423 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
424 |
|
425 // |
|
426 // The initialisation string - we don't care what it is |
|
427 // |
|
428 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
429 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
430 |
|
431 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
432 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
433 |
|
434 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
435 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
436 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
437 |
|
438 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
439 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
440 |
|
441 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
442 { ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut }, |
|
443 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
444 |
|
445 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
446 { ETxString, (TText8*)"1100801\r",0, ETxEvent|EFailIfTimeOut }, |
|
447 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
448 |
|
449 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
450 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
451 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
452 |
|
453 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
454 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
455 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
456 |
|
457 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
458 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
459 |
|
460 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
461 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
462 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
463 |
|
464 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
465 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
466 |
|
467 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
468 { EWait, NULL, 2, ETimeOutEvent }, |
|
469 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
470 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
471 |
|
472 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
473 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
474 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
475 |
|
476 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
477 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
478 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
479 |
|
480 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
481 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
482 |
|
483 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
484 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
485 |
|
486 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
487 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
488 |
|
489 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
490 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
491 |
|
492 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
493 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
494 |
|
495 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
496 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
497 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
498 |
|
499 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
500 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
501 |
|
502 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
503 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
504 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
505 |
|
506 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
507 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
508 |
|
509 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
510 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
511 |
|
512 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
513 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
514 |
|
515 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
516 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
517 |
|
518 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
519 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
520 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
521 |
|
522 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
523 { ETxString, (TText8*)"+CBST: (0-7,12,14-16,34,36,38,39,43,47-51,65,66,68,70,71,75,79-81),(0,2),(1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
524 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
525 |
|
526 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
527 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
528 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
529 |
|
530 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
531 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
532 |
|
533 { EWait, NULL, 1, ETimeOutEvent }, |
|
534 { EComplete, NULL, 0, 0 } |
|
535 }; |
|
536 |
|
537 // |
|
538 // Rx SMS Cancel messages |
|
539 // |
|
540 class CTestDriveSmsCancel : public CTestBase |
|
541 { |
|
542 public: |
|
543 static CTestDriveSmsCancel* NewL(const TScriptList aScriptListEntry); |
|
544 |
|
545 virtual TInt RunTestL(); |
|
546 |
|
547 protected: |
|
548 virtual TInt DriveETelApiL(); |
|
549 |
|
550 private: |
|
551 CTestDriveSmsCancel(const TScriptList aScriptListEntry); |
|
552 |
|
553 TScriptList iScriptListEntry; |
|
554 }; |
|
555 |
|
556 class CTestSmsCancel : public CATScriptEng |
|
557 { |
|
558 public: |
|
559 static CTestSmsCancel* NewL(const TScript* aScript); |
|
560 virtual void SpecificAlgorithmL(TInt aParam); |
|
561 virtual void Complete(TInt aError); |
|
562 virtual TInt Start(); |
|
563 |
|
564 private: |
|
565 CTestSmsCancel(const TScript* aScript); |
|
566 void ConstructL(); |
|
567 |
|
568 const TScript* iScript; |
|
569 }; |
|
570 |
|
571 |
|
572 |
|
573 #endif |