24
|
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 |
// This file has the class definitions and scripts for the "Data Call with diff.
|
|
15 |
// speed" Test in the ETel Regression test harness.
|
|
16 |
// The call scripts are processed and handled by the emulator side of the test via the
|
|
17 |
// scripting engine. Each line in the script represents an action that the emulator must
|
|
18 |
// take, either a receive action (which defines an expected string) or a transmit action with the
|
|
19 |
// ASCII data to be sent. See the description of the scripting language for more information.
|
|
20 |
//
|
|
21 |
//
|
|
22 |
|
|
23 |
/**
|
|
24 |
@file
|
|
25 |
@internalComponent
|
|
26 |
*/
|
|
27 |
|
|
28 |
#ifndef __CCBST_PARSE__H__
|
|
29 |
#define __CCBST_PARSE__H__
|
|
30 |
|
|
31 |
#include "Te_LoopbackTestStepBase.h"
|
|
32 |
#include "Te_LoopBackScriptEng.h"
|
|
33 |
|
|
34 |
|
|
35 |
//
|
|
36 |
// First a Script where everything is in order
|
|
37 |
//
|
|
38 |
const struct TScript KCCbstParseScript[]= {
|
|
39 |
//*************************************************
|
|
40 |
//Wrong CBST string +CBST:
|
|
41 |
//*************************************************
|
|
42 |
// Start of initialization sequence **********************************************
|
|
43 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
44 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
45 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
46 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
47 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
48 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
49 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
50 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
51 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
52 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
53 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
54 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
55 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
56 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
57 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
58 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
59 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
60 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
61 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
62 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
63 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
64 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
65 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
66 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
67 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
68 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
69 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
70 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
71 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
72 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
73 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
74 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
75 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
76 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
77 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
78 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
79 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
80 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
81 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
82 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
83 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
84 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
85 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
86 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
87 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
88 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
89 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
90 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
91 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
92 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
93 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
94 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
95 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
96 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
97 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
98 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
99 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
100 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
101 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
102 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
103 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
104 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
105 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
106 |
|
|
107 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
108 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
109 |
|
|
110 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
111 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
112 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
113 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
114 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
115 |
|
|
116 |
//************** The CBST responses is what this test is interested in....
|
|
117 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
118 |
//@@@ To change
|
|
119 |
{ ETxString, (TText8*)"+CBST: 5 \r", 0, ETxEvent|EFailIfTimeOut },
|
|
120 |
//*******************************************************************
|
|
121 |
|
|
122 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
123 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
124 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
125 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
126 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
127 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
128 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
129 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
130 |
|
|
131 |
// End of initialization sequence ************************************************
|
|
132 |
|
|
133 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
134 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
135 |
// Do not reply so a timeout occurs
|
|
136 |
|
|
137 |
//*************************************************
|
|
138 |
//Wrong CBST string +CBST: (3,4),
|
|
139 |
//*************************************************
|
|
140 |
// Start of initialization sequence **********************************************
|
|
141 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
142 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
143 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
144 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
145 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
146 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
147 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
148 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
149 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
150 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
151 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
152 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
153 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
154 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
155 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
156 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
157 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
158 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
159 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
160 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
161 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
162 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
163 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
164 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
165 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
166 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
167 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
168 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
169 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
170 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
171 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
172 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
173 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
174 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
175 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
176 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
177 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
178 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
179 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
180 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
181 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
182 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
183 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
184 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
185 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
186 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
187 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
188 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
189 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
190 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
191 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
192 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
193 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
194 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
195 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
196 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
197 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
198 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
199 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
200 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
201 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
202 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
203 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
204 |
|
|
205 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
206 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
207 |
|
|
208 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
209 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
210 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
211 |
|
|
212 |
{ ETxString, (TText8*)"+CNMI: 2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
213 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
214 |
|
|
215 |
//************** The CBST responses is what this test is interested in....
|
|
216 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
217 |
//@@@ To change
|
|
218 |
{ ETxString, (TText8*)"+CBST: (0-6,12,14-16),\r", 0, ETxEvent|EFailIfTimeOut },
|
|
219 |
//*******************************************************************
|
|
220 |
|
|
221 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
222 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
223 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
224 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
225 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
226 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
227 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
228 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
229 |
|
|
230 |
// End of initialization sequence ************************************************
|
|
231 |
|
|
232 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
233 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
234 |
// Do not reply so a timeout occurs
|
|
235 |
|
|
236 |
//*************************************************
|
|
237 |
//Wrong CBST string +CBST: (3,4),(3),
|
|
238 |
//*************************************************
|
|
239 |
// Start of initialization sequence **********************************************
|
|
240 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
241 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
242 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
243 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
244 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
245 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
246 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
247 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
248 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
249 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
250 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
251 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
252 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
253 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
254 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
255 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
256 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
257 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
258 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
259 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
260 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
261 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
262 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
263 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
264 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
265 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
266 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
267 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
268 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
269 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
270 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
271 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
272 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
273 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
274 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
275 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
276 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
277 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
278 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
279 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
280 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
281 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
282 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
283 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
284 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
285 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
286 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
287 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
288 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
289 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
290 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
291 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
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 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
296 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
297 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
298 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
299 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
300 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
301 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
302 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
303 |
|
|
304 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
305 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
306 |
|
|
307 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
308 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
309 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
310 |
|
|
311 |
{ ETxString, (TText8*)"+CNMI: (0---2),(0-3),(0-1),(0-1),(0-1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
312 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
313 |
|
|
314 |
//************** The CBST responses is what this test is interested in....
|
|
315 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
316 |
{ ETxString, (TText8*)"+CBST: (0-7,12,14-16,34,36,38),\r", 0, ETxEvent|EFailIfTimeOut },
|
|
317 |
//*******************************************************************
|
|
318 |
|
|
319 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
320 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
321 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
322 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
323 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
324 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
325 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
326 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
327 |
|
|
328 |
// End of initialization sequence ************************************************
|
|
329 |
|
|
330 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
331 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
332 |
// Do not reply so a timeout occurs
|
|
333 |
|
|
334 |
//*************************************************
|
|
335 |
//Wrong speed string
|
|
336 |
//*************************************************
|
|
337 |
// Start of initialization sequence **********************************************
|
|
338 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
339 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
340 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
341 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
342 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
343 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
344 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
345 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
346 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
347 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
348 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
349 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
350 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
351 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
352 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
353 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
354 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
355 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
356 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
357 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
358 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
359 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
360 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
361 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
362 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
363 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
364 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
365 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
366 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
367 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
368 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
369 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
370 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
371 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
372 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
373 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
374 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
375 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
376 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
377 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
378 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
379 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
380 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
381 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
382 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
383 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
384 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
385 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
386 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
387 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
388 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
389 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
390 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
391 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
392 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
393 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
394 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
395 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
396 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
397 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
398 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
399 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
400 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
401 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
402 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut }, //@@@ To change
|
|
403 |
|
|
404 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
405 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
406 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
407 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0-4),(0-9),(0,\r", 0, ETxEvent|EFailIfTimeOut },
|
|
408 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
409 |
|
|
410 |
//************** The CBST responses is what this test is interested in....
|
|
411 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
412 |
{ ETxString, (TText8*)"+CBST: (0-2,12,14-16,34,36\r", 0, ETxEvent|EFailIfTimeOut },
|
|
413 |
//*******************************************************************
|
|
414 |
|
|
415 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
416 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
417 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
418 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
419 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
420 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
421 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
422 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
423 |
|
|
424 |
// End of initialization sequence ************************************************
|
|
425 |
|
|
426 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
427 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
428 |
// Do not reply so a timeout occurs
|
|
429 |
|
|
430 |
//*************************************************
|
|
431 |
//Wrong name string
|
|
432 |
//*************************************************
|
|
433 |
// Start of initialization sequence **********************************************
|
|
434 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
435 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
436 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
437 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
438 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
439 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
440 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
441 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
442 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
443 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
444 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
445 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
446 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
447 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
448 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
449 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
450 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
451 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
452 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
453 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
454 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
455 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
456 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
457 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
458 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
459 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
460 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
461 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
462 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
463 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
464 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
465 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
466 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
467 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
468 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
469 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
470 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
471 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
472 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
473 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
474 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
475 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
476 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
477 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
478 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
479 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
480 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
481 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
482 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
483 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
484 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
485 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
486 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
487 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
488 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
489 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
490 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
491 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
492 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
493 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
494 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
495 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
496 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
497 |
|
|
498 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
499 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
500 |
// End of CGQREQ stuff, back to boring initialisation...
|
|
501 |
|
|
502 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
503 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
504 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
505 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0-3),(0),(0),\r", 0, ETxEvent|EFailIfTimeOut },
|
|
506 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
507 |
|
|
508 |
//************** The CBST responses is what this test is interested in....
|
|
509 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
510 |
{ ETxString, (TText8*)"+CBST: (0-3,12,14-16,34,36,38,39,43,47-51,65,66,68,70,71,75,79-81),(0556678\r", 0, ETxEvent|EFailIfTimeOut },
|
|
511 |
//*******************************************************************
|
|
512 |
|
|
513 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
514 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
515 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
516 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
517 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
518 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
519 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
520 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
521 |
|
|
522 |
// End of initialization sequence ************************************************
|
|
523 |
|
|
524 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
525 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
526 |
// Do not reply so a timeout occurs
|
|
527 |
|
|
528 |
//*************************************************
|
|
529 |
//Wrong CE string
|
|
530 |
//*************************************************
|
|
531 |
// Start of initialization sequence **********************************************
|
|
532 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
533 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
534 |
{ EIfRxStringRelativeJmp, (TText8*)"AT\r", -1, 0 },
|
|
535 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
536 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
537 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
538 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
539 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
540 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
541 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
542 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
543 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
544 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
545 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
546 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
547 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
548 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
549 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
550 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
551 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
552 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
553 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
554 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
555 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
556 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
557 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
558 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
559 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
560 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
561 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
562 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
563 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
564 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
565 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
566 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
567 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
568 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
569 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
570 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
571 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
572 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
573 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
574 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
575 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
576 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
577 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
578 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
579 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
580 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
581 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
582 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
583 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
584 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
585 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
586 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
587 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
588 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
589 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
590 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
591 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
592 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
593 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
594 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
595 |
|
|
596 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
597 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
598 |
|
|
599 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
600 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
601 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
602 |
{ ETxString, (TText8*)"+CNMI: (0,1),(0,1,\r", 0, ETxEvent|EFailIfTimeOut },
|
|
603 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
604 |
|
|
605 |
//************** The CBST responses is what this test is interested in....
|
|
606 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
607 |
{ ETxString, (TText8*)"+CBST: (0-4,12,14-16,34,70,71,75,79-81,),(0,2),(3\r", 0, ETxEvent|EFailIfTimeOut },
|
|
608 |
//*******************************************************************
|
|
609 |
|
|
610 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
611 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
612 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
613 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
614 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
615 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
616 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
617 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
618 |
|
|
619 |
// End of initialization sequence ************************************************
|
|
620 |
|
|
621 |
// Do something which will time out and cause TSY to think iPhone is un-initialised.
|
|
622 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
623 |
// Do not reply so a timeout occurs
|
|
624 |
|
|
625 |
|
|
626 |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
627 |
{ EWait, NULL, 1, ETimeOutEvent},
|
|
628 |
{ EComplete, NULL, 0, 0 },
|
|
629 |
};
|
|
630 |
|
|
631 |
/**
|
|
632 |
* This class is used by the client side of the test. It contains the method DriveETelApi
|
|
633 |
* which is the primary client side method. This class inherits from the CTestBase class.
|
|
634 |
* All client side test classes must contain these entries.
|
|
635 |
*/
|
|
636 |
class CTestDriveCbstParse : public CTestBase
|
|
637 |
{
|
|
638 |
public:
|
|
639 |
static CTestDriveCbstParse* NewL(const TScriptList aScriptListEntry,
|
|
640 |
TInt aVarDelay=0);
|
|
641 |
|
|
642 |
// Called by the user interface from the C function PerformTestL.
|
|
643 |
virtual TInt RunTestL();
|
|
644 |
|
|
645 |
protected:
|
|
646 |
// Called by the CTestBase::StartEmulator method to drive the ETel API.
|
|
647 |
virtual TInt DriveETelApiL();
|
|
648 |
|
|
649 |
private:
|
|
650 |
CTestDriveCbstParse(const TScriptList aScriptListEntry, TInt aVarDelay);
|
|
651 |
void DriveTestL() ;
|
|
652 |
|
|
653 |
TScriptList iScriptListEntry; //< Initialized by the constructor, it records the enumerated
|
|
654 |
//< script entry number.
|
|
655 |
TInt iVarDelay; //< Variable delay value to be used as the timeout by the
|
|
656 |
//< ...script processing when the iParam value is set -1 in
|
|
657 |
//< ...a TScript script whose iCommand is an EWait.
|
|
658 |
RMobilePhone iPhone3;
|
|
659 |
|
|
660 |
};
|
|
661 |
|
|
662 |
/**
|
|
663 |
* This class is used by the emulator side of the test. It implements several virtual functions
|
|
664 |
* which are test specific and referenced by other classes. This class inherits from the
|
|
665 |
* CATScriptEng class. All Emulator side test classes should have this structure.
|
|
666 |
*/
|
|
667 |
class CTestCbstParse : public CATScriptEng
|
|
668 |
{
|
|
669 |
public:
|
|
670 |
static CTestCbstParse* NewL(const TScript* aScript);
|
|
671 |
static CTestCbstParse* NewL(const TScript* aScript, const TInt aVarDelay);
|
|
672 |
|
|
673 |
// Called by the scripting engine to implement the EExecuteSpecial Command.
|
|
674 |
virtual void SpecificAlgorithmL(TInt aParam);
|
|
675 |
|
|
676 |
// Called by the scripting engine to end the execution of the script.
|
|
677 |
virtual void Complete(TInt aError);
|
|
678 |
|
|
679 |
// Called by the scripting engine to start the execution of the script.
|
|
680 |
virtual TInt Start();
|
|
681 |
|
|
682 |
private:
|
|
683 |
CTestCbstParse(const TScript* aScript);
|
|
684 |
CTestCbstParse(const TScript* aScript, const TInt aVarDelay);
|
|
685 |
void ConstructL();
|
|
686 |
|
|
687 |
const TScript* iScript; //< Pointer to the first line in the associated script.
|
|
688 |
};
|
|
689 |
|
|
690 |
#endif //__CCBST_PARSE__H__
|
|
691 |
|