telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_LoopBackctxmess.h
branchopencode
changeset 24 6638e7f4bd8f
parent 0 3553901f7fa8
--- a/telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_LoopBackctxmess.h	Mon May 03 13:37:20 2010 +0300
+++ b/telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_LoopBackctxmess.h	Thu May 06 15:10:38 2010 +0100
@@ -1,2064 +1,2064 @@
-// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
-// All rights reserved.
-// This component and the accompanying materials are made available
-// under the terms of "Eclipse Public License v1.0"
-// which accompanies this distribution, and is available
-// at the URL "http://www.eclipse.org/legal/epl-v10.html".
-//
-// Initial Contributors:
-// Nokia Corporation - initial contribution.
-//
-// Contributors:
-//
-// Description:
-//
-
-
-
-/**
- @file
- @internalComponent 
-*/
-
-#ifndef __CTXMESS_H__
-#define __CTXMESS_H__
-
-#include "Te_LoopbackTestStepBase.h"
-#include "Te_LoopBackScriptEng.h"
-
-const TUint8 KTestTxPduA[]= { 0x0B,0x91,0x44,0x83,0x05,0x61,0x00,0xF5,
-							0x07, 0x91, 0x44, 0x87, 0x20, 0x90, 0x02, 0x53, 0x04, 0x10, 0xd0, 0x42, 0xea,
-							0xb0, 0xcc, 0x66, 0xbb, 0xcb, 0x74, 0x00, 0x00, 0x00, 0x30, 0x80, 0x41, 0x03,
-							0x23, 0x00, 0x88, 0xc7, 0xb2, 0x3b, 0x5d, 0x06, 0x25, 0xdd, 0xf4, 0xb2, 0xdc,
-							0x5d, 0xa6, 0x83, 0xe0, 0xf2, 0x77, 0xfb, 0x4d, 0x4f, 0xbf, 0xdd, 0x3a, 0x90,
-							0x51, 0x5e, 0x2e, 0x83, 0xae, 0x41, 0x28, 0x28, 0xe9, 0xa6, 0x97, 0xe5, 0xee,
-							0x32, 0x1d, 0x04, 0x47, 0xBF, 0xDD, 0x65, 0x90, 0xB8, 0x9C, 0x76, 0x9F, 0x41,
-							0xE7, 0xB4, 0xBD, 0xEC, 0x06, 0x85, 0xEF, 0xE1, 0x3C, 0xA8, 0x6C, 0x2F, 0xCB,
-							0xF3, 0x20, 0x72, 0x38, 0x0F, 0x4A, 0xBB, 0x41, 0xCD, 0xB0, 0x7C, 0x8C, 0x76,
-							0x81, 0xAC, 0xE9, 0x79, 0x9A, 0x0E, 0x02, 0xA1, 0xE9, 0x74, 0xB8, 0xEE, 0xF5,
-							0x7A, 0x9B, 0xCD, 0x65, 0xF9, 0xDC, 0x75, 0x2E, 0xBB, 0xD3, 0x65, 0xD7, 0xF8,
-							0xED, 0xAA, 0xAF, 0x5F, 0xF7, 0x30, 0x1C, 0x64, 0x7E, 0xCB, 0x41, 0xE4, 0x32,
-							0x3D, 0x9C, 0x66, 0xCF, 0x5D };
-
-const TUint8 KTestTxPduB[]= { 0x04, 0x0c, 0x91, 0x44, 0x77, 0x74, 0x60, 0x45, 0x61, 0x00, 0x00, 0x00, 0x30,
-						   0x71, 0x61, 0x03, 0x52, 0x00, 0x0a, 0xd4, 0xf2, 0x9c, 0x9e, 0x76, 0x9f, 0x5d,
-						   0x2e, 0x17 };
-
-const TUint KMsgRefA=25;
-const TUint KMsgRefB=27;
-const TUint KMsgRefC=28;
-const TUint KMsgRefD=29;
-const TUint KMsgRefE=30;
-
-_LIT(KTxMessDefaultSca,"01632960000");
-_LIT8(KTxMessDefaultSca340,"\x44\x02\x57\x36\x02\x00");	// GSM 03.40 encoding of above
-_LIT8(KTxMessInPhoneDefaultSca340,"\x44\x02\x57\x36\x02\x10");	// This is in script & is iPhone's initial sca
-
-const TInt KMsgLocA=4;
-_LIT(KMsgStoA,"SMS_ME");
-const TUint KMsgLenA=140;
-const TInt KMsgLocB=7;
-_LIT(KMsgStoB,"SMS_ME");
-const TUint KMsgLenB=28;
-
-const struct TScript KTxMessScript[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Handle a successful Tx SMS
-//
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EWait,		NULL,					1,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-// Test new standard SMS PDUs
-//
-const struct TScript KTxMessNewStdScript[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Handle a successful Tx SMS
-//
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EWait,		NULL,					1,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-//
-// (1/8) Test no prefix on pdu, don't set default sca, new ETSI format
-//
-//
-const struct TScript KTxMessScriptNoprefixNodefscaNew[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-//
-// (2/8) Test prefix on pdu, don't set default sca, new ETSI format
-//
-//
-const struct TScript KTxMessScriptPrefixNodefscaNew[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	NULL,					0,	0	}
-	};
-
-//
-//
-// (3/8) Test no prefix on pdu, set default sca, new ETSI format
-//
-//
-const struct TScript KTxMessScriptNoprefixDefscaNew[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
-											0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
-											0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-//
-// (4/8) Test prefix on pdu, set default sca, new ETSI format
-//
-//
-const struct TScript KTxMessScriptPrefixDefscaNew[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	NULL,					0,	0	}
-	};
-
-//
-//
-// (5/8) Test no prefix on pdu, don't set default sca, old ETSI format
-//
-//
-const struct TScript KTxMessScriptNoprefixNodefscaOld[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-//
-// (6/8) Test prefix on pdu, don't set default sca, old ETSI format
-//
-//
-const struct TScript KTxMessScriptPrefixNodefscaOld[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	NULL,					0,	0	}
-	};
-
-//
-//
-// (7/8) Test no prefix on pdu, set default sca, old ETSI format
-//
-//
-const struct TScript KTxMessScriptNoprefixDefscaOld[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
-											0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
-											0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-//
-// (8/8) Test prefix on pdu, set default sca, old ETSI format
-//
-//
-const struct TScript KTxMessScriptPrefixDefscaOld[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Non-prefixed PDU - fail and tsy will query for SCA
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Given the previous one has failed, try again...
-	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
-	
-// Constant below must be the same as that set in KMsgRefB above
-	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
-// we don't want the loopback port to shutdown before it reads out the rest
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	NULL,					0,	0	}
-	};
-
-//
-// Test new standard SMS PDUs
-//
-const struct TScript KTxMessT28NewStdScript[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",											0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,															0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",										0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,													0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,	 			0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,	 			0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Init Complete
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
-	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
-	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
-
-// Constant below must be the same as that set in KMsgRefA above
-	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EWait,		NULL,					1,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-//
-// Test new standard SMS PDUs
-//
-const struct TScript KTxMessRxTxScriptA[]= {
-	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
-
-	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-//
-// The initialisation string - we don't care what it is
-//
-	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
-	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
-	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
-	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
-	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS=?",											0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,															0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPMS?",										0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,													0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-	
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
-	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
-	{	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	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
-	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
-	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
-	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
-
-// Wait for 2 seconds to ensure that the driver has placed the read SMS request
-	{	EWait,		NULL,					2,	ETimeOutEvent	},
-	{	EComplete,	 NULL,					0, 0	}
-	};
-
-
-class CTestDriveTxMess : public CTestBase
-		{
-	public:
-		static CTestDriveTxMess* NewL(const TScriptList aScriptListEntry);
-		~CTestDriveTxMess();
-		virtual TInt RunTestL();
-
-	protected:
-		virtual TInt DriveETelApiL();
-
-	private:
-		CTestDriveTxMess(const TScriptList aScriptListEntry);
-
-		TScriptList iScriptListEntry;
-		};
-
-
-class CTestDriveTxNewStdMess : public CTestBase
-		{
-	public:
-		static CTestDriveTxNewStdMess* NewL(const TScriptList aScriptListEntry);
-		~CTestDriveTxNewStdMess();
-		virtual TInt RunTestL();
-
-	protected:
-		virtual TInt DriveETelApiL();
-
-	private:
-		CTestDriveTxNewStdMess(const TScriptList aScriptListEntry);
-
-		TScriptList iScriptListEntry;
-		};
-
-
-class CTestDriveTxWithScaCombo : public CTestBase
-		{
-	public:
-		static CTestDriveTxWithScaCombo* NewL(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
-		~CTestDriveTxWithScaCombo();
-		virtual TInt RunTestL();
-
-	protected:
-		virtual TInt DriveETelApiL();
-
-	private:
-		CTestDriveTxWithScaCombo(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
-
-		TScriptList iScriptListEntry;
-		TBool iSendScaPrefix;
-		TBool iSetDefaultSca;
-		TBool iNewPduFormat;
-		};
-
-
-class CTestDriveTxRx : public CTestBase
-		{
-	public:
-		static CTestDriveTxRx* NewL(const TScriptList aScriptListEntry);
-		~CTestDriveTxRx();
-		virtual TInt RunTestL();
-
-	protected:
-		virtual TInt DriveETelApiL();
-
-	private:
-		CTestDriveTxRx(const TScriptList aScriptListEntry);
-
-		TScriptList iScriptListEntry;
-	};
-
-
-class CTestTxMess : public CATScriptEng
-		{
-	public:
-		static CTestTxMess* NewL(const TScript* aScript);
-		static CTestTxMess* NewL(const TScript* aScript, const TInt aVarDelay);
-		~CTestTxMess();
-
-		virtual void SpecificAlgorithmL(TInt aParam);
-		virtual void Complete(TInt aError);
-		virtual TInt Start();
-
-	private:
-		CTestTxMess(const TScript* aScript);
-		CTestTxMess(const TScript* aScript, const TInt aVarDelay);
-		void ConstructL();
-
-		const TScript* iScript;
-		};
-
-
-#endif
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+
+
+/**
+ @file
+ @internalComponent 
+*/
+
+#ifndef __CTXMESS_H__
+#define __CTXMESS_H__
+
+#include "Te_LoopbackTestStepBase.h"
+#include "Te_LoopBackScriptEng.h"
+
+const TUint8 KTestTxPduA[]= { 0x0B,0x91,0x44,0x83,0x05,0x61,0x00,0xF5,
+							0x07, 0x91, 0x44, 0x87, 0x20, 0x90, 0x02, 0x53, 0x04, 0x10, 0xd0, 0x42, 0xea,
+							0xb0, 0xcc, 0x66, 0xbb, 0xcb, 0x74, 0x00, 0x00, 0x00, 0x30, 0x80, 0x41, 0x03,
+							0x23, 0x00, 0x88, 0xc7, 0xb2, 0x3b, 0x5d, 0x06, 0x25, 0xdd, 0xf4, 0xb2, 0xdc,
+							0x5d, 0xa6, 0x83, 0xe0, 0xf2, 0x77, 0xfb, 0x4d, 0x4f, 0xbf, 0xdd, 0x3a, 0x90,
+							0x51, 0x5e, 0x2e, 0x83, 0xae, 0x41, 0x28, 0x28, 0xe9, 0xa6, 0x97, 0xe5, 0xee,
+							0x32, 0x1d, 0x04, 0x47, 0xBF, 0xDD, 0x65, 0x90, 0xB8, 0x9C, 0x76, 0x9F, 0x41,
+							0xE7, 0xB4, 0xBD, 0xEC, 0x06, 0x85, 0xEF, 0xE1, 0x3C, 0xA8, 0x6C, 0x2F, 0xCB,
+							0xF3, 0x20, 0x72, 0x38, 0x0F, 0x4A, 0xBB, 0x41, 0xCD, 0xB0, 0x7C, 0x8C, 0x76,
+							0x81, 0xAC, 0xE9, 0x79, 0x9A, 0x0E, 0x02, 0xA1, 0xE9, 0x74, 0xB8, 0xEE, 0xF5,
+							0x7A, 0x9B, 0xCD, 0x65, 0xF9, 0xDC, 0x75, 0x2E, 0xBB, 0xD3, 0x65, 0xD7, 0xF8,
+							0xED, 0xAA, 0xAF, 0x5F, 0xF7, 0x30, 0x1C, 0x64, 0x7E, 0xCB, 0x41, 0xE4, 0x32,
+							0x3D, 0x9C, 0x66, 0xCF, 0x5D };
+
+const TUint8 KTestTxPduB[]= { 0x04, 0x0c, 0x91, 0x44, 0x77, 0x74, 0x60, 0x45, 0x61, 0x00, 0x00, 0x00, 0x30,
+						   0x71, 0x61, 0x03, 0x52, 0x00, 0x0a, 0xd4, 0xf2, 0x9c, 0x9e, 0x76, 0x9f, 0x5d,
+						   0x2e, 0x17 };
+
+const TUint KMsgRefA=25;
+const TUint KMsgRefB=27;
+const TUint KMsgRefC=28;
+const TUint KMsgRefD=29;
+const TUint KMsgRefE=30;
+
+_LIT(KTxMessDefaultSca,"01632960000");
+_LIT8(KTxMessDefaultSca340,"\x44\x02\x57\x36\x02\x00");	// GSM 03.40 encoding of above
+_LIT8(KTxMessInPhoneDefaultSca340,"\x44\x02\x57\x36\x02\x10");	// This is in script & is iPhone's initial sca
+
+const TInt KMsgLocA=4;
+_LIT(KMsgStoA,"SMS_ME");
+const TUint KMsgLenA=140;
+const TInt KMsgLocB=7;
+_LIT(KMsgStoB,"SMS_ME");
+const TUint KMsgLenB=28;
+
+const struct TScript KTxMessScript[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Handle a successful Tx SMS
+//
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EWait,		NULL,					1,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+// Test new standard SMS PDUs
+//
+const struct TScript KTxMessNewStdScript[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Handle a successful Tx SMS
+//
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EWait,		NULL,					1,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+//
+// (1/8) Test no prefix on pdu, don't set default sca, new ETSI format
+//
+//
+const struct TScript KTxMessScriptNoprefixNodefscaNew[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+//
+// (2/8) Test prefix on pdu, don't set default sca, new ETSI format
+//
+//
+const struct TScript KTxMessScriptPrefixNodefscaNew[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	NULL,					0,	0	}
+	};
+
+//
+//
+// (3/8) Test no prefix on pdu, set default sca, new ETSI format
+//
+//
+const struct TScript KTxMessScriptNoprefixDefscaNew[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
+											0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
+											0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+//
+// (4/8) Test prefix on pdu, set default sca, new ETSI format
+//
+//
+const struct TScript KTxMessScriptPrefixDefscaNew[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	NULL,					0,	0	}
+	};
+
+//
+//
+// (5/8) Test no prefix on pdu, don't set default sca, old ETSI format
+//
+//
+const struct TScript KTxMessScriptNoprefixNodefscaOld[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+//
+// (6/8) Test prefix on pdu, don't set default sca, old ETSI format
+//
+//
+const struct TScript KTxMessScriptPrefixNodefscaOld[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	NULL,					0,	0	}
+	};
+
+//
+//
+// (7/8) Test no prefix on pdu, set default sca, old ETSI format
+//
+//
+const struct TScript KTxMessScriptNoprefixDefscaOld[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",
+											0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",
+											0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+//
+// (8/8) Test prefix on pdu, set default sca, old ETSI format
+//
+//
+const struct TScript KTxMessScriptPrefixDefscaOld[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"Nokia\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Non-prefixed PDU - fail and tsy will query for SCA
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Return the in iPhone default sca, this is KTxMessInPhoneDefaultSca340 above
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Given the previous one has failed, try again...
+	{	ERxString, (TText8*)"AT+CMGS=28",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"040c914477746045610000003071610352000ad4f29c9e769f5d2e17",	0, ERxEvent	},
+	
+// Constant below must be the same as that set in KMsgRefB above
+	{	ETxString, (TText8*)"\r+CMGS: 27",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds since GSMTSY won't read the above text in one attempt, and
+// we don't want the loopback port to shutdown before it reads out the rest
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	NULL,					0,	0	}
+	};
+
+//
+// Test new standard SMS PDUs
+//
+const struct TScript KTxMessT28NewStdScript[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",											0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,															0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",										0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,													0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,	 			0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,	 			0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Init Complete
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA=\"441632960000\",145",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGS=156",	0, ERxEvent	},
+	{	ETxString, (TText8*)"\r\012> ",		0, ETxEvent|EFailIfTimeOut	},
+	{	ERxString, (TText8*)"07914487209002530410d042eab0cc66bbcb7400000030804103230088c7b23b5d0625ddf4b2dc5da683e0f277fb4d4fbfdd3a90515e2e83ae412828e9a697e5ee321d0447bfdd6590b89c769f41e7b4bdec0685efe13ca86c2fcbf32072380f4abb41cdb07c8c7681ace9799a0e02a1e974b8eef57a9bcd65f9dc752ebbd365d7f8edaaaf5ff7301c647ecb41e4323d9c66cf5d",	0, ERxEvent	},
+
+// Constant below must be the same as that set in KMsgRefA above
+	{	ETxString, (TText8*)"\r+CMGS: 25",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EWait,		NULL,					1,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+//
+// Test new standard SMS PDUs
+//
+const struct TScript KTxMessRxTxScriptA[]= {
+	{	ERxString,	(TText8*)"AT\r",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	EIfRxStringJmp, (TText8*)"AT\r",	1, 0	},
+
+	{	ERxString, (TText8*)"AT+FCLASS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"0,1,2\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+//
+// The initialisation string - we don't care what it is
+//
+	{	ERxString, (TText8*)"AT",			0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=,0",   0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS7?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"050\r",		0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"ATS0=0",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMI",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERICSSON\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMM",	0, ERxEvent	},
+	{	ETxString, (TText8*)"1100801\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGMR",	0, ERxEvent	},
+	{	ETxString, (TText8*)"9808261341\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGSN",	0, ERxEvent	},
+	{	ETxString, (TText8*)"520002512954000\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CIMI",		0, ERxEvent	},
+	{	ETxStringOK, NULL, 					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CMGF: (0)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CMGF=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS=?",											0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\"),(\"ME\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,															0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPMS?",										0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15,\"ME\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,													0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CPBS=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\",\"CA\",\"DC\",\"LD\",\"FD\",\"MC\",\"MV\",\"RC\",\"SG\")\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=0",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=2",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG=1",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CREG?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",	0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CRC=1",		0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+COPS?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBC",	0, ERxEvent	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSQ: 15,99\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+	
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGCLASS",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGQREQ",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGATT",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CNMI=?",	0, ERxEvent	},
+	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CBST=?",	0, ERxEvent	},
+	{	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	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CSCA?",		0, ERxEvent	},
+	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",	0, ETxEvent|EFailIfTimeOut	},
+	{	ETxStringOK, NULL,					0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT+CGREG=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+	{	ERxString, (TText8*)"AT*ECAM=1",	0, ERxEvent	},
+	{	ETxString, (TText8*)"ERROR\r",		0, ETxEvent|EFailIfTimeOut	},
+
+// Wait for 2 seconds to ensure that the driver has placed the read SMS request
+	{	EWait,		NULL,					2,	ETimeOutEvent	},
+	{	EComplete,	 NULL,					0, 0	}
+	};
+
+
+class CTestDriveTxMess : public CTestBase
+		{
+	public:
+		static CTestDriveTxMess* NewL(const TScriptList aScriptListEntry);
+		~CTestDriveTxMess();
+		virtual TInt RunTestL();
+
+	protected:
+		virtual TInt DriveETelApiL();
+
+	private:
+		CTestDriveTxMess(const TScriptList aScriptListEntry);
+
+		TScriptList iScriptListEntry;
+		};
+
+
+class CTestDriveTxNewStdMess : public CTestBase
+		{
+	public:
+		static CTestDriveTxNewStdMess* NewL(const TScriptList aScriptListEntry);
+		~CTestDriveTxNewStdMess();
+		virtual TInt RunTestL();
+
+	protected:
+		virtual TInt DriveETelApiL();
+
+	private:
+		CTestDriveTxNewStdMess(const TScriptList aScriptListEntry);
+
+		TScriptList iScriptListEntry;
+		};
+
+
+class CTestDriveTxWithScaCombo : public CTestBase
+		{
+	public:
+		static CTestDriveTxWithScaCombo* NewL(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
+		~CTestDriveTxWithScaCombo();
+		virtual TInt RunTestL();
+
+	protected:
+		virtual TInt DriveETelApiL();
+
+	private:
+		CTestDriveTxWithScaCombo(const TScriptList aScriptListEntry,TBool aSendScaPrefix,TBool aSetDefaultSca,TBool aNewPduFormat);
+
+		TScriptList iScriptListEntry;
+		TBool iSendScaPrefix;
+		TBool iSetDefaultSca;
+		TBool iNewPduFormat;
+		};
+
+
+class CTestDriveTxRx : public CTestBase
+		{
+	public:
+		static CTestDriveTxRx* NewL(const TScriptList aScriptListEntry);
+		~CTestDriveTxRx();
+		virtual TInt RunTestL();
+
+	protected:
+		virtual TInt DriveETelApiL();
+
+	private:
+		CTestDriveTxRx(const TScriptList aScriptListEntry);
+
+		TScriptList iScriptListEntry;
+	};
+
+
+class CTestTxMess : public CATScriptEng
+		{
+	public:
+		static CTestTxMess* NewL(const TScript* aScript);
+		static CTestTxMess* NewL(const TScript* aScript, const TInt aVarDelay);
+		~CTestTxMess();
+
+		virtual void SpecificAlgorithmL(TInt aParam);
+		virtual void Complete(TInt aError);
+		virtual TInt Start();
+
+	private:
+		CTestTxMess(const TScript* aScript);
+		CTestTxMess(const TScript* aScript, const TInt aVarDelay);
+		void ConstructL();
+
+		const TScript* iScript;
+		};
+
+
+#endif