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