|
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 // Test performing a premature closure on a fax session and witness the MM TSY's response |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 |
|
24 #ifndef __CFAXPREMCLOSE_H__ |
|
25 #define __CFAXPREMCLOSE_H__ |
|
26 |
|
27 #include "Te_LoopbackTestStepBase.h" |
|
28 #include "Te_LoopBackScriptEng.h" |
|
29 |
|
30 // |
|
31 // First a Script where everything is in order |
|
32 // |
|
33 const struct TScript KFaxPremCloseScriptA[]= { |
|
34 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
35 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
36 |
|
37 { EIfRxStringJmp, (TText8*)"AT\r", 1, 0 }, |
|
38 |
|
39 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
40 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
41 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
42 |
|
43 // |
|
44 // The initialisation string - we don't care what it is |
|
45 // |
|
46 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
47 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
48 |
|
49 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
50 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
51 |
|
52 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
53 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
54 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
55 |
|
56 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
57 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
58 |
|
59 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
60 { ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut }, |
|
61 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
62 |
|
63 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
64 { ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut }, |
|
65 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
66 |
|
67 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
68 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
69 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
70 |
|
71 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
72 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
73 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
74 |
|
75 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
76 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
77 |
|
78 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
79 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
80 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
81 |
|
82 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
83 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
84 |
|
85 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
86 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
87 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
88 |
|
89 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
90 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
91 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
92 |
|
93 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
94 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
95 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
96 |
|
97 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
98 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
99 |
|
100 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
101 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
102 |
|
103 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
104 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
105 |
|
106 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
107 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
108 |
|
109 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
110 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
111 |
|
112 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
113 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
114 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
115 |
|
116 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
117 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
118 |
|
119 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
120 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
121 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
122 |
|
123 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
124 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
125 |
|
126 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
127 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
128 |
|
129 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
130 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
131 |
|
132 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
133 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
134 |
|
135 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
136 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
137 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
138 |
|
139 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
140 { 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 }, |
|
141 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
142 |
|
143 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
144 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
145 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
146 |
|
147 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
148 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
149 |
|
150 { ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent }, |
|
151 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
152 |
|
153 // |
|
154 // Try an Incoming Call Fax request |
|
155 // |
|
156 { EWait, NULL, 1, ETimeOutEvent }, |
|
157 { ETxString, (TText8*)"\r\n+CRING: FAX\r\n", 0, ETxEvent|EFailIfTimeOut }, |
|
158 |
|
159 // { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
160 // { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
161 |
|
162 { ERxString, (TText8*)"AT+FCLASS=2", 0, ERxEvent }, |
|
163 { ETxString, (TText8*)"\r\nOK\r\n", 0, ETxEvent|EFailIfTimeOut }, |
|
164 |
|
165 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
166 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
167 |
|
168 { ERxString, (TText8*)"AT+FDCC=?", 0, ERxEvent }, |
|
169 { ETxString, (TText8*)"(0-1),(0-3),(0-4),(0-2),(0-3),(0-1),(0-1),(0-7)", |
|
170 0, ETxEvent|EFailIfTimeOut }, |
|
171 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
172 |
|
173 { ERxString, (TText8*)"AT+FDCC=0,3,0,2,0,0,0,0", 0, ERxEvent }, |
|
174 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
175 |
|
176 { ERxString, (TText8*)"AT+FAA=0", 0, ERxEvent }, |
|
177 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
178 |
|
179 { ERxString, (TText8*)"AT+FCR=1", 0, ERxEvent }, |
|
180 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
181 |
|
182 { ERxString, (TText8*)"AT+FLID=\"", 0, ERxEvent }, |
|
183 { ERxString, (TText8*)"\"", 0, ERxEvent }, |
|
184 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
185 |
|
186 { ERxString, (TText8*)"ATA", 0, ERxEvent }, |
|
187 { ETxString, (TText8*)"+FCO", 0, ETxEvent|EFailIfTimeOut }, |
|
188 { ETxString, (TText8*)"+FCS:0,3,0,2,0,0,0,0", 0, ETxEvent|EFailIfTimeOut }, |
|
189 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
190 |
|
191 { ERxString, (TText8*)"AT+FDR", 0, ERxEvent }, |
|
192 { ETxString, (TText8*)"CONNECT", 0, ETxEvent|EFailIfTimeOut }, |
|
193 |
|
194 { EWait, NULL, 1, ETimeOutEvent }, |
|
195 |
|
196 { ERxString, (TText8*)"ATH", 0, ERxEvent }, |
|
197 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
198 |
|
199 { ERxString, (TText8*)"ATE0+FCLASS=0",0, ERxEvent }, |
|
200 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
201 |
|
202 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
203 { ETxString, (TText8*)"+CSQ: 31,99", 0, ETxEvent|EFailIfTimeOut }, |
|
204 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
205 |
|
206 { EWait, NULL, 1, ETimeOutEvent }, |
|
207 { EComplete, NULL, 0, 0 } |
|
208 }; |
|
209 |
|
210 // |
|
211 // First a Script where everything is in order |
|
212 // |
|
213 const struct TScript KFaxPremCloseScriptB[]= { |
|
214 { ERxString, (TText8*)"AT\r", 0, ERxEvent }, |
|
215 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
216 |
|
217 { EIfRxStringJmp, (TText8*)"AT\r", 1, 0 }, |
|
218 |
|
219 { ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent }, |
|
220 { ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut }, |
|
221 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
222 |
|
223 // |
|
224 // The initialisation string - we don't care what it is |
|
225 // |
|
226 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
227 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
228 |
|
229 { ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent }, |
|
230 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
231 |
|
232 { ERxString, (TText8*)"ATS7?", 0, ERxEvent }, |
|
233 { ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut }, |
|
234 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
235 |
|
236 { ERxString, (TText8*)"ATS0=0", 0, ERxEvent }, |
|
237 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
238 |
|
239 { ERxString, (TText8*)"AT+CGMI", 0, ERxEvent }, |
|
240 { ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut }, |
|
241 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
242 |
|
243 { ERxString, (TText8*)"AT+CGMM", 0, ERxEvent }, |
|
244 { ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut }, |
|
245 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
246 |
|
247 { ERxString, (TText8*)"AT+CGMR", 0, ERxEvent }, |
|
248 { ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut }, |
|
249 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
250 |
|
251 { ERxString, (TText8*)"AT+CGSN", 0, ERxEvent }, |
|
252 { ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut }, |
|
253 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
254 |
|
255 { ERxString, (TText8*)"AT+CIMI", 0, ERxEvent }, |
|
256 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
257 |
|
258 { ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent }, |
|
259 { ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
260 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
261 |
|
262 { ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent }, |
|
263 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
264 |
|
265 { ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent }, |
|
266 { ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
267 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
268 |
|
269 { ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent }, |
|
270 { ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut }, |
|
271 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
272 |
|
273 { ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent }, |
|
274 { ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut }, |
|
275 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
276 |
|
277 { ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent }, |
|
278 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
279 |
|
280 { ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent }, |
|
281 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
282 |
|
283 { ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent }, |
|
284 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
285 |
|
286 { ERxString, (TText8*)"AT+CREG?", 0, ERxEvent }, |
|
287 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
288 |
|
289 { ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent }, |
|
290 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
291 |
|
292 { ERxString, (TText8*)"AT+COPS?", 0, ERxEvent }, |
|
293 { ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut }, |
|
294 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
295 |
|
296 { ERxString, (TText8*)"AT+CBC", 0, ERxEvent }, |
|
297 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
298 |
|
299 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
300 { ETxString, (TText8*)"+CSQ: 31,99\r", 0, ETxEvent|EFailIfTimeOut }, |
|
301 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
302 |
|
303 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
304 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
305 |
|
306 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
307 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
308 |
|
309 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
310 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
311 |
|
312 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
313 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
314 |
|
315 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
316 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
317 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
318 |
|
319 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
320 { 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 }, |
|
321 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
322 |
|
323 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
324 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
325 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
326 |
|
327 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
328 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
329 |
|
330 { ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent }, |
|
331 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
332 |
|
333 // |
|
334 // Try an Incoming Call Fax request |
|
335 // |
|
336 { EWait, NULL, 1, ETimeOutEvent }, |
|
337 { ETxString, (TText8*)"\r\n+CRING: FAX\r\n", 0, ETxEvent|EFailIfTimeOut }, |
|
338 |
|
339 // { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
340 // { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
341 |
|
342 { ERxString, (TText8*)"AT+FCLASS=2", 0, ERxEvent }, |
|
343 { ETxString, (TText8*)"\r\nOK\r\n", 0, ETxEvent|EFailIfTimeOut }, |
|
344 |
|
345 { ERxString, (TText8*)"AT", 0, ERxEvent }, |
|
346 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
347 |
|
348 { ERxString, (TText8*)"AT+FDCC=?", 0, ERxEvent }, |
|
349 { ETxString, (TText8*)"(0-1),(0-3),(0-4),(0-2),(0-3),(0-1),(0-1),(0-7)", |
|
350 0, ETxEvent|EFailIfTimeOut }, |
|
351 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
352 |
|
353 { ERxString, (TText8*)"AT+FDCC=0,3,0,2,0,0,0,0", 0, ERxEvent }, |
|
354 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
355 |
|
356 { ERxString, (TText8*)"AT+FAA=0", 0, ERxEvent }, |
|
357 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
358 |
|
359 { ERxString, (TText8*)"AT+FCR=1", 0, ERxEvent }, |
|
360 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
361 |
|
362 { ERxString, (TText8*)"AT+FLID=\"", 0, ERxEvent }, |
|
363 { ERxString, (TText8*)"\"", 0, ERxEvent }, |
|
364 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
365 |
|
366 { ERxString, (TText8*)"ATA", 0, ERxEvent }, |
|
367 { ETxString, (TText8*)"+FCO", 0, ETxEvent|EFailIfTimeOut }, |
|
368 { ETxString, (TText8*)"+FCS:0,3,0,2,0,0,0,0", 0, ETxEvent|EFailIfTimeOut }, |
|
369 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
370 |
|
371 { ERxString, (TText8*)"AT+FDR", 0, ERxEvent }, |
|
372 |
|
373 { ERxString, (TText8*)"ATH", 0, ERxEvent }, |
|
374 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
375 |
|
376 { ERxString, (TText8*)"ATE0+FCLASS=0",0, ERxEvent }, |
|
377 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
378 |
|
379 { ERxString, (TText8*)"AT+CSQ", 0, ERxEvent }, |
|
380 { ETxString, (TText8*)"+CSQ: 31,99", 0, ETxEvent|EFailIfTimeOut }, |
|
381 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
382 |
|
383 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
384 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
385 |
|
386 { ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent }, |
|
387 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
388 |
|
389 { ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent }, |
|
390 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
391 |
|
392 { ERxString, (TText8*)"AT+CGATT", 0, ERxEvent }, |
|
393 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
394 |
|
395 { ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent }, |
|
396 { ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut }, |
|
397 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
398 |
|
399 { ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent }, |
|
400 { 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 }, |
|
401 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
402 |
|
403 { ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent }, |
|
404 { ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut }, |
|
405 { ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut }, |
|
406 |
|
407 { ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent }, |
|
408 { ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, |
|
409 |
|
410 { EWait, NULL, 1, ETimeOutEvent }, |
|
411 { EComplete, NULL, 0, 0 } |
|
412 }; |
|
413 |
|
414 class CTestDrivePremClose : public CTestBase |
|
415 { |
|
416 public: |
|
417 static CTestDrivePremClose* NewL(const TScriptList aScriptListEntry); |
|
418 virtual TInt RunTestL(); |
|
419 |
|
420 protected: |
|
421 CTestDrivePremClose(const TScriptList aScriptListEntry); |
|
422 virtual TInt DriveETelApiL(); |
|
423 |
|
424 private: |
|
425 TScriptList iScriptListEntry; |
|
426 }; |
|
427 |
|
428 class CTestDrivePremCloseB : public CTestBase |
|
429 { |
|
430 public: |
|
431 static CTestDrivePremCloseB* NewL(const TScriptList aScriptListEntry); |
|
432 virtual TInt RunTestL(); |
|
433 |
|
434 protected: |
|
435 CTestDrivePremCloseB(const TScriptList aScriptListEntry); |
|
436 virtual TInt DriveETelApiL(); |
|
437 |
|
438 private: |
|
439 TScriptList iScriptListEntry; |
|
440 }; |
|
441 |
|
442 class CTestPremClose : public CATScriptEng |
|
443 { |
|
444 public: |
|
445 static CTestPremClose* NewL(const TScript* aScript); |
|
446 |
|
447 virtual void SpecificAlgorithmL(TInt aParam); |
|
448 virtual void Complete(TInt aError); |
|
449 virtual TInt Start(); |
|
450 |
|
451 private: |
|
452 CTestPremClose(const TScript* aScript); |
|
453 void ConstructL(); |
|
454 const TScript* iScript; |
|
455 }; |
|
456 |
|
457 #endif |