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 |
//
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __CTXMESS_H__
|
|
24 |
#define __CTXMESS_H__
|
|
25 |
|
|
26 |
#include "Te_LoopbackTestStepBase.h"
|
|
27 |
#include "Te_LoopBackScriptEng.h"
|
|
28 |
|
|
29 |
const TUint8 KTestTxPduA[]= { 0x0B,0x91,0x44,0x83,0x05,0x61,0x00,0xF5,
|
|
30 |
0x07, 0x91, 0x44, 0x87, 0x20, 0x90, 0x02, 0x53, 0x04, 0x10, 0xd0, 0x42, 0xea,
|
|
31 |
0xb0, 0xcc, 0x66, 0xbb, 0xcb, 0x74, 0x00, 0x00, 0x00, 0x30, 0x80, 0x41, 0x03,
|
|
32 |
0x23, 0x00, 0x88, 0xc7, 0xb2, 0x3b, 0x5d, 0x06, 0x25, 0xdd, 0xf4, 0xb2, 0xdc,
|
|
33 |
0x5d, 0xa6, 0x83, 0xe0, 0xf2, 0x77, 0xfb, 0x4d, 0x4f, 0xbf, 0xdd, 0x3a, 0x90,
|
|
34 |
0x51, 0x5e, 0x2e, 0x83, 0xae, 0x41, 0x28, 0x28, 0xe9, 0xa6, 0x97, 0xe5, 0xee,
|
|
35 |
0x32, 0x1d, 0x04, 0x47, 0xBF, 0xDD, 0x65, 0x90, 0xB8, 0x9C, 0x76, 0x9F, 0x41,
|
|
36 |
0xE7, 0xB4, 0xBD, 0xEC, 0x06, 0x85, 0xEF, 0xE1, 0x3C, 0xA8, 0x6C, 0x2F, 0xCB,
|
|
37 |
0xF3, 0x20, 0x72, 0x38, 0x0F, 0x4A, 0xBB, 0x41, 0xCD, 0xB0, 0x7C, 0x8C, 0x76,
|
|
38 |
0x81, 0xAC, 0xE9, 0x79, 0x9A, 0x0E, 0x02, 0xA1, 0xE9, 0x74, 0xB8, 0xEE, 0xF5,
|
|
39 |
0x7A, 0x9B, 0xCD, 0x65, 0xF9, 0xDC, 0x75, 0x2E, 0xBB, 0xD3, 0x65, 0xD7, 0xF8,
|
|
40 |
0xED, 0xAA, 0xAF, 0x5F, 0xF7, 0x30, 0x1C, 0x64, 0x7E, 0xCB, 0x41, 0xE4, 0x32,
|
|
41 |
0x3D, 0x9C, 0x66, 0xCF, 0x5D };
|
|
42 |
|
|
43 |
const TUint8 KTestTxPduB[]= { 0x04, 0x0c, 0x91, 0x44, 0x77, 0x74, 0x60, 0x45, 0x61, 0x00, 0x00, 0x00, 0x30,
|
|
44 |
0x71, 0x61, 0x03, 0x52, 0x00, 0x0a, 0xd4, 0xf2, 0x9c, 0x9e, 0x76, 0x9f, 0x5d,
|
|
45 |
0x2e, 0x17 };
|
|
46 |
|
|
47 |
const TUint KMsgRefA=25;
|
|
48 |
const TUint KMsgRefB=27;
|
|
49 |
const TUint KMsgRefC=28;
|
|
50 |
const TUint KMsgRefD=29;
|
|
51 |
const TUint KMsgRefE=30;
|
|
52 |
|
|
53 |
_LIT(KTxMessDefaultSca,"01632960000");
|
|
54 |
_LIT8(KTxMessDefaultSca340,"\x44\x02\x57\x36\x02\x00"); // GSM 03.40 encoding of above
|
|
55 |
_LIT8(KTxMessInPhoneDefaultSca340,"\x44\x02\x57\x36\x02\x10"); // This is in script & is iPhone's initial sca
|
|
56 |
|
|
57 |
const TInt KMsgLocA=4;
|
|
58 |
_LIT(KMsgStoA,"SMS_ME");
|
|
59 |
const TUint KMsgLenA=140;
|
|
60 |
const TInt KMsgLocB=7;
|
|
61 |
_LIT(KMsgStoB,"SMS_ME");
|
|
62 |
const TUint KMsgLenB=28;
|
|
63 |
|
|
64 |
const struct TScript KTxMessScript[]= {
|
|
65 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
66 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
67 |
|
|
68 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
69 |
|
|
70 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
71 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
72 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
73 |
|
|
74 |
//
|
|
75 |
// The initialisation string - we don't care what it is
|
|
76 |
//
|
|
77 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
78 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
79 |
|
|
80 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
81 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
82 |
|
|
83 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
84 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
85 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
86 |
|
|
87 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
88 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
89 |
|
|
90 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
91 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
92 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
93 |
|
|
94 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
95 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
96 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
97 |
|
|
98 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
99 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
100 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
101 |
|
|
102 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
103 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
104 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
105 |
|
|
106 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
107 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
108 |
|
|
109 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
110 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
111 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
112 |
|
|
113 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
114 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
115 |
|
|
116 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
117 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
118 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
119 |
|
|
120 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
121 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
122 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
123 |
|
|
124 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
125 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
126 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
127 |
|
|
128 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
129 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
130 |
|
|
131 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
132 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
133 |
|
|
134 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
135 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
136 |
|
|
137 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
138 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
139 |
|
|
140 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
141 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
142 |
|
|
143 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
144 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
145 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
146 |
|
|
147 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
148 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
149 |
|
|
150 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
151 |
{ ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut },
|
|
152 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
153 |
|
|
154 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
155 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
156 |
|
|
157 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
158 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
159 |
|
|
160 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
161 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
162 |
|
|
163 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
164 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
165 |
|
|
166 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
167 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
168 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
169 |
|
|
170 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
171 |
{ 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 },
|
|
172 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
173 |
|
|
174 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
175 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
176 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
177 |
|
|
178 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
179 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
180 |
|
|
181 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
182 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
183 |
|
|
184 |
// Handle a successful Tx SMS
|
|
185 |
//
|
|
186 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
187 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
188 |
|
|
189 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
190 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
191 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
192 |
|
|
193 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
194 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
195 |
|
|
196 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
197 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
198 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
199 |
|
|
200 |
// Constant below must be the same as that set in KMsgRefA above
|
|
201 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
202 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
203 |
|
|
204 |
{ EWait, NULL, 1, ETimeOutEvent },
|
|
205 |
{ EComplete, NULL, 0, 0 }
|
|
206 |
};
|
|
207 |
|
|
208 |
//
|
|
209 |
// Test new standard SMS PDUs
|
|
210 |
//
|
|
211 |
const struct TScript KTxMessNewStdScript[]= {
|
|
212 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
213 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
214 |
|
|
215 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
216 |
|
|
217 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
218 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
219 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
220 |
|
|
221 |
//
|
|
222 |
// The initialisation string - we don't care what it is
|
|
223 |
//
|
|
224 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
225 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
226 |
|
|
227 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
228 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
229 |
|
|
230 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
231 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
232 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
233 |
|
|
234 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
235 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
236 |
|
|
237 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
238 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
239 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
240 |
|
|
241 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
242 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
243 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
244 |
|
|
245 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
246 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
247 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
248 |
|
|
249 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
250 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
251 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
252 |
|
|
253 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
254 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
255 |
|
|
256 |
|
|
257 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
258 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
259 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
260 |
|
|
261 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
262 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
263 |
|
|
264 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
265 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
266 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
267 |
|
|
268 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
269 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
270 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
271 |
|
|
272 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
273 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
274 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
275 |
|
|
276 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
277 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
278 |
|
|
279 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
280 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
281 |
|
|
282 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
283 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
284 |
|
|
285 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
286 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
287 |
|
|
288 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
289 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
290 |
|
|
291 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
292 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
293 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
294 |
|
|
295 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
296 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
297 |
|
|
298 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
299 |
{ ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut },
|
|
300 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
301 |
|
|
302 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
303 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
304 |
|
|
305 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
306 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
307 |
|
|
308 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
309 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
310 |
|
|
311 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
312 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
313 |
|
|
314 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
315 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
316 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
317 |
|
|
318 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
319 |
{ 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 },
|
|
320 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
321 |
|
|
322 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
323 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
324 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
325 |
|
|
326 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
327 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
328 |
|
|
329 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
330 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
331 |
|
|
332 |
// Handle a successful Tx SMS
|
|
333 |
//
|
|
334 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
335 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
336 |
|
|
337 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
338 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
339 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
340 |
|
|
341 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
342 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
343 |
|
|
344 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
345 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
346 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
347 |
|
|
348 |
// Constant below must be the same as that set in KMsgRefA above
|
|
349 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
350 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
351 |
|
|
352 |
{ EWait, NULL, 1, ETimeOutEvent },
|
|
353 |
{ EComplete, NULL, 0, 0 }
|
|
354 |
};
|
|
355 |
|
|
356 |
//
|
|
357 |
//
|
|
358 |
// (1/8) Test no prefix on pdu, don't set default sca, new ETSI format
|
|
359 |
//
|
|
360 |
//
|
|
361 |
const struct TScript KTxMessScriptNoprefixNodefscaNew[]= {
|
|
362 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
363 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
364 |
|
|
365 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
366 |
|
|
367 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
368 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
369 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
370 |
|
|
371 |
//
|
|
372 |
// The initialisation string - we don't care what it is
|
|
373 |
//
|
|
374 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
375 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
376 |
|
|
377 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
378 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
379 |
|
|
380 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
381 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
382 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
383 |
|
|
384 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
385 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
386 |
|
|
387 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
388 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
389 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
390 |
|
|
391 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
392 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
393 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
394 |
|
|
395 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
396 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
397 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
398 |
|
|
399 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
400 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
401 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
402 |
|
|
403 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
404 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
405 |
|
|
406 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
407 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
408 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
409 |
|
|
410 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
411 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
412 |
|
|
413 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
414 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
415 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
416 |
|
|
417 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
418 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
419 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
420 |
|
|
421 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
422 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
423 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
424 |
|
|
425 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
426 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
427 |
|
|
428 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
429 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
430 |
|
|
431 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
432 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
433 |
|
|
434 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
435 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
436 |
|
|
437 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
438 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
439 |
|
|
440 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
441 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
442 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
443 |
|
|
444 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
445 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
446 |
|
|
447 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
448 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
449 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
450 |
|
|
451 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
452 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
453 |
|
|
454 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
455 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
456 |
|
|
457 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
458 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
459 |
|
|
460 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
461 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
462 |
|
|
463 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
464 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
465 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
466 |
|
|
467 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
468 |
{ 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 },
|
|
469 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
470 |
|
|
471 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
472 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
473 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
474 |
|
|
475 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
476 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
477 |
|
|
478 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
479 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
480 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
481 |
|
|
482 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
483 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
484 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
485 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
486 |
|
|
487 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
488 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
489 |
|
|
490 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
491 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
492 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
493 |
|
|
494 |
// Constant below must be the same as that set in KMsgRefA above
|
|
495 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
496 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
497 |
|
|
498 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
499 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
500 |
|
|
501 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
502 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
503 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
504 |
|
|
505 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
506 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
507 |
|
|
508 |
// Given the previous one has failed, try again...
|
|
509 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
510 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
511 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
512 |
|
|
513 |
// Constant below must be the same as that set in KMsgRefB above
|
|
514 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
515 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
516 |
|
|
517 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
518 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
519 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
520 |
{ EComplete, NULL, 0, 0 }
|
|
521 |
};
|
|
522 |
|
|
523 |
//
|
|
524 |
//
|
|
525 |
// (2/8) Test prefix on pdu, don't set default sca, new ETSI format
|
|
526 |
//
|
|
527 |
//
|
|
528 |
const struct TScript KTxMessScriptPrefixNodefscaNew[]= {
|
|
529 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
530 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
531 |
|
|
532 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
533 |
|
|
534 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
535 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
536 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
537 |
|
|
538 |
//
|
|
539 |
// The initialisation string - we don't care what it is
|
|
540 |
//
|
|
541 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
542 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
543 |
|
|
544 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
545 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
546 |
|
|
547 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
548 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
549 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
550 |
|
|
551 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
552 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
553 |
|
|
554 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
555 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
556 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
557 |
|
|
558 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
559 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
560 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
561 |
|
|
562 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
563 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
564 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
565 |
|
|
566 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
567 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
568 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
569 |
|
|
570 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
571 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
572 |
|
|
573 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
574 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
575 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
576 |
|
|
577 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
578 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
579 |
|
|
580 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
581 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
582 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
583 |
|
|
584 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
585 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
586 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
587 |
|
|
588 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
589 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
590 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
591 |
|
|
592 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
593 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
594 |
|
|
595 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
596 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
597 |
|
|
598 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
599 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
600 |
|
|
601 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
602 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
603 |
|
|
604 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
605 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
606 |
|
|
607 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
608 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
609 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
610 |
|
|
611 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
612 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
613 |
|
|
614 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
615 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
616 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
617 |
|
|
618 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
619 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
620 |
|
|
621 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
622 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
623 |
|
|
624 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
625 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
626 |
|
|
627 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
628 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
629 |
|
|
630 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
631 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
632 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
633 |
|
|
634 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
635 |
{ 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 },
|
|
636 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
637 |
|
|
638 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
639 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
640 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
641 |
|
|
642 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
643 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
644 |
|
|
645 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
646 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
647 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
648 |
|
|
649 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
650 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
651 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
652 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
653 |
|
|
654 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
655 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
656 |
|
|
657 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
658 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
659 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
660 |
|
|
661 |
// Constant below must be the same as that set in KMsgRefA above
|
|
662 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
663 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
664 |
|
|
665 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
666 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
667 |
|
|
668 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
669 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
670 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
671 |
|
|
672 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
673 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
674 |
|
|
675 |
// Given the previous one has failed, try again...
|
|
676 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
677 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
678 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
679 |
|
|
680 |
// Constant below must be the same as that set in KMsgRefB above
|
|
681 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
682 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
683 |
|
|
684 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
685 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
686 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
687 |
{ EComplete, NULL, 0, 0 }
|
|
688 |
};
|
|
689 |
|
|
690 |
//
|
|
691 |
//
|
|
692 |
// (3/8) Test no prefix on pdu, set default sca, new ETSI format
|
|
693 |
//
|
|
694 |
//
|
|
695 |
const struct TScript KTxMessScriptNoprefixDefscaNew[]= {
|
|
696 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
697 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
698 |
|
|
699 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
700 |
|
|
701 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
702 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
703 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
704 |
|
|
705 |
//
|
|
706 |
// The initialisation string - we don't care what it is
|
|
707 |
//
|
|
708 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
709 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
710 |
|
|
711 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
712 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
713 |
|
|
714 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
715 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
716 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
717 |
|
|
718 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
719 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
720 |
|
|
721 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
722 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
723 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
724 |
|
|
725 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
726 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
727 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
728 |
|
|
729 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
730 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
731 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
732 |
|
|
733 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
734 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
735 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
736 |
|
|
737 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
738 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
739 |
|
|
740 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
741 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
742 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
743 |
|
|
744 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
745 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
746 |
|
|
747 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
748 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
749 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
750 |
|
|
751 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
752 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
|
|
753 |
0, ETxEvent|EFailIfTimeOut },
|
|
754 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
755 |
|
|
756 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
757 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
|
|
758 |
0, ETxEvent|EFailIfTimeOut },
|
|
759 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
760 |
|
|
761 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
762 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
763 |
|
|
764 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
765 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
766 |
|
|
767 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
768 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
769 |
|
|
770 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
771 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
772 |
|
|
773 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
774 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
775 |
|
|
776 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
777 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
778 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
779 |
|
|
780 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
781 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
782 |
|
|
783 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
784 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
785 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
786 |
|
|
787 |
|
|
788 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
789 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
790 |
|
|
791 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
792 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
793 |
|
|
794 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
795 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
796 |
|
|
797 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
798 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
799 |
|
|
800 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
801 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
802 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
803 |
|
|
804 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
805 |
{ 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 },
|
|
806 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
807 |
|
|
808 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
809 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
810 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
811 |
|
|
812 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
813 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
814 |
|
|
815 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
816 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
817 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
818 |
|
|
819 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
820 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
821 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
822 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
823 |
|
|
824 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
825 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
826 |
|
|
827 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
828 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
829 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
830 |
|
|
831 |
// Constant below must be the same as that set in KMsgRefA above
|
|
832 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
833 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
834 |
|
|
835 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
836 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
837 |
|
|
838 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
839 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
840 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
841 |
|
|
842 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
843 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
844 |
|
|
845 |
// Given the previous one has failed, try again...
|
|
846 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
847 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
848 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
849 |
|
|
850 |
// Constant below must be the same as that set in KMsgRefB above
|
|
851 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
852 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
853 |
|
|
854 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
855 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
856 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
857 |
{ EComplete, NULL, 0, 0 }
|
|
858 |
};
|
|
859 |
|
|
860 |
//
|
|
861 |
//
|
|
862 |
// (4/8) Test prefix on pdu, set default sca, new ETSI format
|
|
863 |
//
|
|
864 |
//
|
|
865 |
const struct TScript KTxMessScriptPrefixDefscaNew[]= {
|
|
866 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
867 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
868 |
|
|
869 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
870 |
|
|
871 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
872 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
873 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
874 |
|
|
875 |
//
|
|
876 |
// The initialisation string - we don't care what it is
|
|
877 |
//
|
|
878 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
879 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
880 |
|
|
881 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
882 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
883 |
|
|
884 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
885 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
886 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
887 |
|
|
888 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
889 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
890 |
|
|
891 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
892 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
893 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
894 |
|
|
895 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
896 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
897 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
898 |
|
|
899 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
900 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
901 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
902 |
|
|
903 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
904 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
905 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
906 |
|
|
907 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
908 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
909 |
|
|
910 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
911 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
912 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
913 |
|
|
914 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
915 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
916 |
|
|
917 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
918 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
919 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
920 |
|
|
921 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
922 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
923 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
924 |
|
|
925 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
926 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
927 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
928 |
|
|
929 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
930 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
931 |
|
|
932 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
933 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
934 |
|
|
935 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
936 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
937 |
|
|
938 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
939 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
940 |
|
|
941 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
942 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
943 |
|
|
944 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
945 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
946 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
947 |
|
|
948 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
949 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
950 |
|
|
951 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
952 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
953 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
954 |
|
|
955 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
956 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
957 |
|
|
958 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
959 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
960 |
|
|
961 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
962 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
963 |
|
|
964 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
965 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
966 |
|
|
967 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
968 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
969 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
970 |
|
|
971 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
972 |
{ 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 },
|
|
973 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
974 |
|
|
975 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
976 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
977 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
978 |
|
|
979 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
980 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
981 |
|
|
982 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
983 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
984 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
985 |
|
|
986 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
987 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
988 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
989 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
990 |
|
|
991 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
992 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
993 |
|
|
994 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
995 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
996 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
997 |
|
|
998 |
// Constant below must be the same as that set in KMsgRefA above
|
|
999 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1000 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1001 |
|
|
1002 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1003 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1004 |
|
|
1005 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1006 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1007 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1008 |
|
|
1009 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1010 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1011 |
|
|
1012 |
// Given the previous one has failed, try again...
|
|
1013 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
1014 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1015 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
1016 |
|
|
1017 |
// Constant below must be the same as that set in KMsgRefB above
|
|
1018 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
1019 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1020 |
|
|
1021 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
1022 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
1023 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1024 |
{ EComplete, NULL, 0, 0 }
|
|
1025 |
};
|
|
1026 |
|
|
1027 |
//
|
|
1028 |
//
|
|
1029 |
// (5/8) Test no prefix on pdu, don't set default sca, old ETSI format
|
|
1030 |
//
|
|
1031 |
//
|
|
1032 |
const struct TScript KTxMessScriptNoprefixNodefscaOld[]= {
|
|
1033 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1034 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1035 |
|
|
1036 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1037 |
|
|
1038 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1039 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1040 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1041 |
|
|
1042 |
//
|
|
1043 |
// The initialisation string - we don't care what it is
|
|
1044 |
//
|
|
1045 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1046 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1047 |
|
|
1048 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1049 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1050 |
|
|
1051 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1052 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1053 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1054 |
|
|
1055 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1056 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1057 |
|
|
1058 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1059 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1060 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1061 |
|
|
1062 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1063 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1064 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1065 |
|
|
1066 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1067 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1068 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1069 |
|
|
1070 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1071 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1072 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1073 |
|
|
1074 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1075 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1076 |
|
|
1077 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1078 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1079 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1080 |
|
|
1081 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1082 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1083 |
|
|
1084 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1085 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1086 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1087 |
|
|
1088 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1089 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1090 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1091 |
|
|
1092 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1093 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1094 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1095 |
|
|
1096 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1097 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1098 |
|
|
1099 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1100 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1101 |
|
|
1102 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1103 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1104 |
|
|
1105 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1106 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1107 |
|
|
1108 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1109 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1110 |
|
|
1111 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1112 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1113 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1114 |
|
|
1115 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1116 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1117 |
|
|
1118 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1119 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1120 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1121 |
|
|
1122 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1123 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1124 |
|
|
1125 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1126 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1127 |
|
|
1128 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1129 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1130 |
|
|
1131 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1132 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1133 |
|
|
1134 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1135 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1136 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1137 |
|
|
1138 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1139 |
{ 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 },
|
|
1140 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1141 |
|
|
1142 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1143 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1144 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1145 |
|
|
1146 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1147 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1148 |
|
|
1149 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
1150 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1151 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1152 |
|
|
1153 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
1154 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1155 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1156 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1157 |
|
|
1158 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1159 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1160 |
|
|
1161 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
1162 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1163 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
1164 |
|
|
1165 |
// Constant below must be the same as that set in KMsgRefA above
|
|
1166 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1167 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1168 |
|
|
1169 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1170 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1171 |
|
|
1172 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1173 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1174 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1175 |
|
|
1176 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1177 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1178 |
|
|
1179 |
// Given the previous one has failed, try again...
|
|
1180 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
1181 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1182 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
1183 |
|
|
1184 |
// Constant below must be the same as that set in KMsgRefB above
|
|
1185 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
1186 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1187 |
|
|
1188 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
1189 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
1190 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1191 |
{ EComplete, NULL, 0, 0 }
|
|
1192 |
};
|
|
1193 |
|
|
1194 |
//
|
|
1195 |
//
|
|
1196 |
// (6/8) Test prefix on pdu, don't set default sca, old ETSI format
|
|
1197 |
//
|
|
1198 |
//
|
|
1199 |
const struct TScript KTxMessScriptPrefixNodefscaOld[]= {
|
|
1200 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1201 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1202 |
|
|
1203 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1204 |
|
|
1205 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1206 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1207 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1208 |
|
|
1209 |
//
|
|
1210 |
// The initialisation string - we don't care what it is
|
|
1211 |
//
|
|
1212 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1213 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1214 |
|
|
1215 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1216 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1217 |
|
|
1218 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1219 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1220 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1221 |
|
|
1222 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1223 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1224 |
|
|
1225 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1226 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1227 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1228 |
|
|
1229 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1230 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1231 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1232 |
|
|
1233 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1234 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1235 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1236 |
|
|
1237 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1238 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1239 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1240 |
|
|
1241 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1242 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1243 |
|
|
1244 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1245 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1246 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1247 |
|
|
1248 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1249 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1250 |
|
|
1251 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1252 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1253 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1254 |
|
|
1255 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1256 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1257 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1258 |
|
|
1259 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1260 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1261 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1262 |
|
|
1263 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1264 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1265 |
|
|
1266 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1267 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1268 |
|
|
1269 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1270 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1271 |
|
|
1272 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1273 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1274 |
|
|
1275 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1276 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1277 |
|
|
1278 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1279 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1280 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1281 |
|
|
1282 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1283 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1284 |
|
|
1285 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1286 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1287 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1288 |
|
|
1289 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1290 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1291 |
|
|
1292 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1293 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1294 |
|
|
1295 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1296 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1297 |
|
|
1298 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1299 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1300 |
|
|
1301 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1302 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1303 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1304 |
|
|
1305 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1306 |
{ 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 },
|
|
1307 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1308 |
|
|
1309 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1310 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1311 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1312 |
|
|
1313 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1314 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1315 |
|
|
1316 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
1317 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1318 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1319 |
|
|
1320 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
1321 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1322 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1323 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1324 |
|
|
1325 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1326 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1327 |
|
|
1328 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
1329 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1330 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
1331 |
|
|
1332 |
// Constant below must be the same as that set in KMsgRefA above
|
|
1333 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1334 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1335 |
|
|
1336 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1337 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1338 |
|
|
1339 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1340 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1341 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1342 |
|
|
1343 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1344 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1345 |
|
|
1346 |
// Given the previous one has failed, try again...
|
|
1347 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
1348 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1349 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
1350 |
|
|
1351 |
// Constant below must be the same as that set in KMsgRefB above
|
|
1352 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
1353 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1354 |
|
|
1355 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
1356 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
1357 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1358 |
{ EComplete, NULL, 0, 0 }
|
|
1359 |
};
|
|
1360 |
|
|
1361 |
//
|
|
1362 |
//
|
|
1363 |
// (7/8) Test no prefix on pdu, set default sca, old ETSI format
|
|
1364 |
//
|
|
1365 |
//
|
|
1366 |
const struct TScript KTxMessScriptNoprefixDefscaOld[]= {
|
|
1367 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1368 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1369 |
|
|
1370 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1371 |
|
|
1372 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1373 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1374 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1375 |
|
|
1376 |
//
|
|
1377 |
// The initialisation string - we don't care what it is
|
|
1378 |
//
|
|
1379 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1380 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1381 |
|
|
1382 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1383 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1384 |
|
|
1385 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1386 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1387 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1388 |
|
|
1389 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1390 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1391 |
|
|
1392 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1393 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1394 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1395 |
|
|
1396 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1397 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1398 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1399 |
|
|
1400 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1401 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1402 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1403 |
|
|
1404 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1405 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1406 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1407 |
|
|
1408 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1409 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1410 |
|
|
1411 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1412 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1413 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1414 |
|
|
1415 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1416 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1417 |
|
|
1418 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1419 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1420 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1421 |
|
|
1422 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1423 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
|
|
1424 |
0, ETxEvent|EFailIfTimeOut },
|
|
1425 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1426 |
|
|
1427 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1428 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
|
|
1429 |
0, ETxEvent|EFailIfTimeOut },
|
|
1430 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1431 |
|
|
1432 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1433 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1434 |
|
|
1435 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1436 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1437 |
|
|
1438 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1439 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1440 |
|
|
1441 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1442 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1443 |
|
|
1444 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1445 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1446 |
|
|
1447 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1448 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1449 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1450 |
|
|
1451 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1452 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1453 |
|
|
1454 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1455 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1456 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1457 |
|
|
1458 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1459 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1460 |
|
|
1461 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1462 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1463 |
|
|
1464 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1465 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1466 |
|
|
1467 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1468 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1469 |
|
|
1470 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1471 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1472 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1473 |
|
|
1474 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1475 |
{ 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 },
|
|
1476 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1477 |
|
|
1478 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1479 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1480 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1481 |
|
|
1482 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1483 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1484 |
|
|
1485 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
1486 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1487 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1488 |
|
|
1489 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
1490 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1491 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1492 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1493 |
|
|
1494 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1495 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1496 |
|
|
1497 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
1498 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1499 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
1500 |
|
|
1501 |
// Constant below must be the same as that set in KMsgRefA above
|
|
1502 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1503 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1504 |
|
|
1505 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1506 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1507 |
|
|
1508 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1509 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1510 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1511 |
|
|
1512 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1513 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1514 |
|
|
1515 |
// Given the previous one has failed, try again...
|
|
1516 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
1517 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1518 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
1519 |
|
|
1520 |
// Constant below must be the same as that set in KMsgRefB above
|
|
1521 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
1522 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1523 |
|
|
1524 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
1525 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
1526 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1527 |
{ EComplete, NULL, 0, 0 }
|
|
1528 |
};
|
|
1529 |
|
|
1530 |
//
|
|
1531 |
//
|
|
1532 |
// (8/8) Test prefix on pdu, set default sca, old ETSI format
|
|
1533 |
//
|
|
1534 |
//
|
|
1535 |
const struct TScript KTxMessScriptPrefixDefscaOld[]= {
|
|
1536 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1537 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1538 |
|
|
1539 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1540 |
|
|
1541 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1542 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1543 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1544 |
|
|
1545 |
//
|
|
1546 |
// The initialisation string - we don't care what it is
|
|
1547 |
//
|
|
1548 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1549 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1550 |
|
|
1551 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1552 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1553 |
|
|
1554 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1555 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1556 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1557 |
|
|
1558 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1559 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1560 |
|
|
1561 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1562 |
{ ETxString, (TText8*)"Nokia\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1563 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1564 |
|
|
1565 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1566 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1567 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1568 |
|
|
1569 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1570 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1571 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1572 |
|
|
1573 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1574 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1575 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1576 |
|
|
1577 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1578 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1579 |
|
|
1580 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1581 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1582 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1583 |
|
|
1584 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1585 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1586 |
|
|
1587 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1588 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1589 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1590 |
|
|
1591 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1592 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1593 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1594 |
|
|
1595 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1596 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1597 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1598 |
|
|
1599 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1600 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1601 |
|
|
1602 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1603 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1604 |
|
|
1605 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1606 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1607 |
|
|
1608 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1609 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1610 |
|
|
1611 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1612 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1613 |
|
|
1614 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1615 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1616 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1617 |
|
|
1618 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1619 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1620 |
|
|
1621 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1622 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1623 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1624 |
|
|
1625 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1626 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1627 |
|
|
1628 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1629 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1630 |
|
|
1631 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1632 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1633 |
|
|
1634 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1635 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1636 |
|
|
1637 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1638 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1639 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1640 |
|
|
1641 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1642 |
{ 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 },
|
|
1643 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1644 |
|
|
1645 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1646 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1647 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1648 |
|
|
1649 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1650 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1651 |
|
|
1652 |
// Non-prefixed PDU - fail and tsy will query for SCA
|
|
1653 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1654 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1655 |
|
|
1656 |
// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
|
|
1657 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1658 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1659 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1660 |
|
|
1661 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1662 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1663 |
|
|
1664 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
1665 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1666 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
1667 |
|
|
1668 |
// Constant below must be the same as that set in KMsgRefA above
|
|
1669 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1670 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1671 |
|
|
1672 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1673 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1674 |
|
|
1675 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1676 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1677 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1678 |
|
|
1679 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1680 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1681 |
|
|
1682 |
// Given the previous one has failed, try again...
|
|
1683 |
{ ERxString, (TText8*)"AT+CMGS=28", 0, ERxEvent },
|
|
1684 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1685 |
{ ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17", 0, ERxEvent },
|
|
1686 |
|
|
1687 |
// Constant below must be the same as that set in KMsgRefB above
|
|
1688 |
{ ETxString, (TText8*)"\r+CMGS: 27", 0, ETxEvent|EFailIfTimeOut },
|
|
1689 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1690 |
|
|
1691 |
// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
|
|
1692 |
// we don't want the loopback port to shutdown before it reads out the rest
|
|
1693 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1694 |
{ EComplete, NULL, 0, 0 }
|
|
1695 |
};
|
|
1696 |
|
|
1697 |
//
|
|
1698 |
// Test new standard SMS PDUs
|
|
1699 |
//
|
|
1700 |
const struct TScript KTxMessT28NewStdScript[]= {
|
|
1701 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1702 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1703 |
|
|
1704 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1705 |
|
|
1706 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1707 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1708 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1709 |
|
|
1710 |
//
|
|
1711 |
// The initialisation string - we don't care what it is
|
|
1712 |
//
|
|
1713 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1714 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1715 |
|
|
1716 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1717 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1718 |
|
|
1719 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1720 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1721 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1722 |
|
|
1723 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1724 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1725 |
|
|
1726 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1727 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1728 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1729 |
|
|
1730 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1731 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1732 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1733 |
|
|
1734 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1735 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1736 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1737 |
|
|
1738 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1739 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1740 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1741 |
|
|
1742 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1743 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1744 |
|
|
1745 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1746 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1747 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1748 |
|
|
1749 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1750 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1751 |
|
|
1752 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1753 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1754 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1755 |
|
|
1756 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1757 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1758 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1759 |
|
|
1760 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1761 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1762 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1763 |
|
|
1764 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1765 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1766 |
|
|
1767 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1768 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1769 |
|
|
1770 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1771 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1772 |
|
|
1773 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1774 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1775 |
|
|
1776 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1777 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1778 |
|
|
1779 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1780 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1781 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1782 |
|
|
1783 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1784 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1785 |
|
|
1786 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1787 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1788 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1789 |
|
|
1790 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1791 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1792 |
|
|
1793 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1794 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1795 |
|
|
1796 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1797 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1798 |
|
|
1799 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1800 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1801 |
|
|
1802 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1803 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1804 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1805 |
|
|
1806 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1807 |
{ 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 },
|
|
1808 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1809 |
|
|
1810 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1811 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1812 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1813 |
|
|
1814 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1815 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1816 |
|
|
1817 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
1818 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1819 |
|
|
1820 |
// Init Complete
|
|
1821 |
|
|
1822 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1823 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1824 |
|
|
1825 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1826 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1827 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1828 |
|
|
1829 |
{ ERxString, (TText8*)"AT+CSCA=\"441632960000\",145", 0, ERxEvent },
|
|
1830 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1831 |
|
|
1832 |
{ ERxString, (TText8*)"AT+CMGS=156", 0, ERxEvent },
|
|
1833 |
{ ETxString, (TText8*)"\r\012> ", 0, ETxEvent|EFailIfTimeOut },
|
|
1834 |
{ ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d", 0, ERxEvent },
|
|
1835 |
|
|
1836 |
// Constant below must be the same as that set in KMsgRefA above
|
|
1837 |
{ ETxString, (TText8*)"\r+CMGS: 25", 0, ETxEvent|EFailIfTimeOut },
|
|
1838 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1839 |
|
|
1840 |
{ EWait, NULL, 1, ETimeOutEvent },
|
|
1841 |
{ EComplete, NULL, 0, 0 }
|
|
1842 |
};
|
|
1843 |
|
|
1844 |
//
|
|
1845 |
// Test new standard SMS PDUs
|
|
1846 |
//
|
|
1847 |
const struct TScript KTxMessRxTxScriptA[]= {
|
|
1848 |
{ ERxString, (TText8*)"AT\r", 0, ERxEvent },
|
|
1849 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1850 |
|
|
1851 |
{ EIfRxStringJmp, (TText8*)"AT\r", 1, 0 },
|
|
1852 |
|
|
1853 |
{ ERxString, (TText8*)"AT+FCLASS=?", 0, ERxEvent },
|
|
1854 |
{ ETxString, (TText8*)"0,1,2\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1855 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1856 |
|
|
1857 |
//
|
|
1858 |
// The initialisation string - we don't care what it is
|
|
1859 |
//
|
|
1860 |
{ ERxString, (TText8*)"AT", 0, ERxEvent },
|
|
1861 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1862 |
|
|
1863 |
{ ERxString, (TText8*)"AT+CNMI=,0", 0, ERxEvent },
|
|
1864 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1865 |
|
|
1866 |
{ ERxString, (TText8*)"ATS7?", 0, ERxEvent },
|
|
1867 |
{ ETxString, (TText8*)"050\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1868 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1869 |
|
|
1870 |
{ ERxString, (TText8*)"ATS0=0", 0, ERxEvent },
|
|
1871 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1872 |
|
|
1873 |
{ ERxString, (TText8*)"AT+CGMI", 0, ERxEvent },
|
|
1874 |
{ ETxString, (TText8*)"ERICSSON\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1875 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1876 |
|
|
1877 |
{ ERxString, (TText8*)"AT+CGMM", 0, ERxEvent },
|
|
1878 |
{ ETxString, (TText8*)"1100801\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1879 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1880 |
|
|
1881 |
{ ERxString, (TText8*)"AT+CGMR", 0, ERxEvent },
|
|
1882 |
{ ETxString, (TText8*)"9808261341\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1883 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1884 |
|
|
1885 |
{ ERxString, (TText8*)"AT+CGSN", 0, ERxEvent },
|
|
1886 |
{ ETxString, (TText8*)"520002512954000\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1887 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1888 |
|
|
1889 |
{ ERxString, (TText8*)"AT+CIMI", 0, ERxEvent },
|
|
1890 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1891 |
|
|
1892 |
{ ERxString, (TText8*)"AT+CMGF=?", 0, ERxEvent },
|
|
1893 |
{ ETxString, (TText8*)"+CMGF: (0)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1894 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1895 |
|
|
1896 |
{ ERxString, (TText8*)"AT+CMGF=0", 0, ERxEvent },
|
|
1897 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1898 |
|
|
1899 |
{ ERxString, (TText8*)"AT+CPMS=?", 0, ERxEvent },
|
|
1900 |
{ ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1901 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1902 |
|
|
1903 |
{ ERxString, (TText8*)"AT+CPMS?", 0, ERxEvent },
|
|
1904 |
{ ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1905 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1906 |
|
|
1907 |
{ ERxString, (TText8*)"AT+CPBS=?", 0, ERxEvent },
|
|
1908 |
{ ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1909 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1910 |
|
|
1911 |
{ ERxString, (TText8*)"AT+CREG=0", 0, ERxEvent },
|
|
1912 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1913 |
|
|
1914 |
{ ERxString, (TText8*)"AT+CREG=2", 0, ERxEvent },
|
|
1915 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1916 |
|
|
1917 |
{ ERxString, (TText8*)"AT+CREG=1", 0, ERxEvent },
|
|
1918 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1919 |
|
|
1920 |
{ ERxString, (TText8*)"AT+CREG?", 0, ERxEvent },
|
|
1921 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1922 |
|
|
1923 |
{ ERxString, (TText8*)"AT+CRC=1", 0, ERxEvent },
|
|
1924 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1925 |
|
|
1926 |
{ ERxString, (TText8*)"AT+COPS?", 0, ERxEvent },
|
|
1927 |
{ ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1928 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1929 |
|
|
1930 |
{ ERxString, (TText8*)"AT+CBC", 0, ERxEvent },
|
|
1931 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1932 |
|
|
1933 |
{ ERxString, (TText8*)"AT+CSQ", 0, ERxEvent },
|
|
1934 |
{ ETxString, (TText8*)"+CSQ: 15,99\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1935 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1936 |
|
|
1937 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1938 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1939 |
|
|
1940 |
{ ERxString, (TText8*)"AT+CGCLASS", 0, ERxEvent },
|
|
1941 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1942 |
|
|
1943 |
{ ERxString, (TText8*)"AT+CGQREQ", 0, ERxEvent },
|
|
1944 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1945 |
|
|
1946 |
{ ERxString, (TText8*)"AT+CGATT", 0, ERxEvent },
|
|
1947 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1948 |
|
|
1949 |
{ ERxString, (TText8*)"AT+CNMI=?", 0, ERxEvent },
|
|
1950 |
{ ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1951 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1952 |
|
|
1953 |
{ ERxString, (TText8*)"AT+CBST=?", 0, ERxEvent },
|
|
1954 |
{ 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 },
|
|
1955 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1956 |
|
|
1957 |
{ ERxString, (TText8*)"AT+CSCA?", 0, ERxEvent },
|
|
1958 |
{ ETxString, (TText8*)"+CSCA: \"441632960000\",145", 0, ETxEvent|EFailIfTimeOut },
|
|
1959 |
{ ETxStringOK, NULL, 0, ETxEvent|EFailIfTimeOut },
|
|
1960 |
|
|
1961 |
{ ERxString, (TText8*)"AT+CGREG=1", 0, ERxEvent },
|
|
1962 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1963 |
|
|
1964 |
{ ERxString, (TText8*)"AT*ECAM=1", 0, ERxEvent },
|
|
1965 |
{ ETxString, (TText8*)"ERROR\r", 0, ETxEvent|EFailIfTimeOut },
|
|
1966 |
|
|
1967 |
// Wait for 2 seconds to ensure that the driver has placed the read SMS request
|
|
1968 |
{ EWait, NULL, 2, ETimeOutEvent },
|
|
1969 |
{ EComplete, NULL, 0, 0 }
|
|
1970 |
};
|
|
1971 |
|
|
1972 |
|
|
1973 |
class CTestDriveTxMess : public CTestBase
|
|
1974 |
{
|
|
1975 |
public:
|
|
1976 |
static CTestDriveTxMess* NewL(const TScriptList aScriptListEntry);
|
|
1977 |
~CTestDriveTxMess();
|
|
1978 |
virtual TInt RunTestL();
|
|
1979 |
|
|
1980 |
protected:
|
|
1981 |
virtual TInt DriveETelApiL();
|
|
1982 |
|
|
1983 |
private:
|
|
1984 |
CTestDriveTxMess(const TScriptList aScriptListEntry);
|
|
1985 |
|
|
1986 |
TScriptList iScriptListEntry;
|
|
1987 |
};
|
|
1988 |
|
|
1989 |
|
|
1990 |
class CTestDriveTxNewStdMess : public CTestBase
|
|
1991 |
{
|
|
1992 |
public:
|
|
1993 |
static CTestDriveTxNewStdMess* NewL(const TScriptList aScriptListEntry);
|
|
1994 |
~CTestDriveTxNewStdMess();
|
|
1995 |
virtual TInt RunTestL();
|
|
1996 |
|
|
1997 |
protected:
|
|
1998 |
virtual TInt DriveETelApiL();
|
|
1999 |
|
|
2000 |
private:
|
|
2001 |
CTestDriveTxNewStdMess(const TScriptList aScriptListEntry);
|
|
2002 |
|
|
2003 |
TScriptList iScriptListEntry;
|
|
2004 |
};
|
|
2005 |
|
|
2006 |
|
|
2007 |
class CTestDriveTxWithScaCombo : public CTestBase
|
|
2008 |
{
|
|
2009 |
public:
|
|
2010 |
static CTestDriveTxWithScaCombo* NewL(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
|
|
2011 |
~CTestDriveTxWithScaCombo();
|
|
2012 |
virtual TInt RunTestL();
|
|
2013 |
|
|
2014 |
protected:
|
|
2015 |
virtual TInt DriveETelApiL();
|
|
2016 |
|
|
2017 |
private:
|
|
2018 |
CTestDriveTxWithScaCombo(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
|
|
2019 |
|
|
2020 |
TScriptList iScriptListEntry;
|
|
2021 |
TBool iSendScaPrefix;
|
|
2022 |
TBool iSetDefaultSca;
|
|
2023 |
TBool iNewPduFormat;
|
|
2024 |
};
|
|
2025 |
|
|
2026 |
|
|
2027 |
class CTestDriveTxRx : public CTestBase
|
|
2028 |
{
|
|
2029 |
public:
|
|
2030 |
static CTestDriveTxRx* NewL(const TScriptList aScriptListEntry);
|
|
2031 |
~CTestDriveTxRx();
|
|
2032 |
virtual TInt RunTestL();
|
|
2033 |
|
|
2034 |
protected:
|
|
2035 |
virtual TInt DriveETelApiL();
|
|
2036 |
|
|
2037 |
private:
|
|
2038 |
CTestDriveTxRx(const TScriptList aScriptListEntry);
|
|
2039 |
|
|
2040 |
TScriptList iScriptListEntry;
|
|
2041 |
};
|
|
2042 |
|
|
2043 |
|
|
2044 |
class CTestTxMess : public CATScriptEng
|
|
2045 |
{
|
|
2046 |
public:
|
|
2047 |
static CTestTxMess* NewL(const TScript* aScript);
|
|
2048 |
static CTestTxMess* NewL(const TScript* aScript, const TInt aVarDelay);
|
|
2049 |
~CTestTxMess();
|
|
2050 |
|
|
2051 |
virtual void SpecificAlgorithmL(TInt aParam);
|
|
2052 |
virtual void Complete(TInt aError);
|
|
2053 |
virtual TInt Start();
|
|
2054 |
|
|
2055 |
private:
|
|
2056 |
CTestTxMess(const TScript* aScript);
|
|
2057 |
CTestTxMess(const TScript* aScript, const TInt aVarDelay);
|
|
2058 |
void ConstructL();
|
|
2059 |
|
|
2060 |
const TScript* iScript;
|
|
2061 |
};
|
|
2062 |
|
|
2063 |
|
|
2064 |
#endif
|