Specifications

3GPPTS27.005ATCOMMANDSFORSMSANDCBS
141 HSPA+ATCommandsReferenceGuide
Aftercommandlineisterminatedwith<CR>,thedevicerespondssendingafourcharactersequence
prompt:
<CR><LF><greater_than><space>(IRA13,10,62,32)
Afterthisprompttextcanbeentered.Formattextasfollows:
Ifcurrent<dcs>(see+CSMP)indicatesthatGSM03.38default
alphabetisusedandcurrent<fo>(see+CSMP)indicatesthat
3GPPTS23.040TPUserDataHeaderIndicationisnotset,then
ME/TAconvertstheenteredtextintoGSMalphabet,accordingto
GSM27.005,AnnexA.Usebackspacetodeletelastcharacter.You
canusecarriagereturns.Afterevery<CR
>enteredbytheuserthe
sequence<CR><LF><greather_than><space>issenttotheTE.
Ifcurrent<dcs>(see+CSMP)indicatesthat8bitorUCS2data
codingschemeisusedorcurrent<fo>(see+CSMP)indicatesthat
3GPPTS23.040TPUserDataHeaderIndicationisset.Entered
textconsistsoftwoIRAcharacterlonghexadecimalnumbers
whichME/TAconvertsinto8bitoctet(forexampl
ethe‘asterisk’
isenteredas2A(IRA50andIRA65)andthisisconvertedtoan
octetwithintegervalue0x2A)
Note:TheDCDsignalisinONstatewhiletextisentered.
Note:TheechoingofenteredcharactersbackfromtheTAiscontrolledbyechocommandE
Towriteth
emessageissueCtrlZchar(0x1Ahex).
ToexitwithoutwritingthemessageissueESCchar(0x1Bhex).
Ifmessageissuccessfullywritteninthememory,thentheresultissentintheformat:
+CMGW:<index>
where:
<index>‐messagelocationindexinthememory<memw>.
Ifmessagestoringfailsforsomereason,anerrorcod
eisreported.
Note:MakesurethatnootherSIMinteractingcommandsareissuedduringthecommandexecution.
Note:Itispossibletosaveaconcatenationofatmost10SMs.Themaximumnumberofcharactersdependson
the<dcs>:1530charactersif3GPPTS23.038defaul
talphabetisused,1340charactersif8bitis use d,670
charactersifUCS2isused.Ifenteredtextislongerthanthismaximumvalueanerrorisraised.
Note:Intextmode,bothSUBMITandDELIVERmessagescanbestoredinSIM.
Thetypeofsavedmessagedependsup
onthecurrent<fo>parameter(see+CSMP).ForaDELIVERmessage,
current<vp>parameter(see+CSMP)isusedtosetthemessageServiceCentreTimeStamp<scts>,soithastobe
anabsolutetimestring,forexample"09 /01/12,11:15:00+04".
SUBMITmessagescanonlybestoredwithstatus"STOUNSENT"or"ST
OSENT";DELIVERmessagescanonlybe
storedwithstatus"RECUNREAD"or"RECREAD".