Specifications

3GPPTS27.005ATCOMMANDSFORSMSANDCBS
141 ATCommandsforHSPAH5Modems
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/TAconvertstheenter edtextintoGSMalphabet,accordingto
GSM27.005,AnnexA.Usebackspa cetodeletelastcharacter.
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(for
examplethe‘asterisk’
isenteredas2A(IRA50andIRA65)andthisisconvertedtoan
octetwithintegervalue0x2A)
Note:TheDCDsignalisinONstatewhiletextisentered.
Note:TheechoingofenteredcharactersbackfromtheTAiscontrolledbyechocommandE
To
writethemessageissueCtrlZchar(0x1Ahex).
ToexitwithoutwritingthemessageissueESCchar(0x1Bhex).
Ifmessageissuccessfullywritteninthememory,thentheresultissentintheformat:
+CMGW:<index>
where:
<index>‐messagelocationindexinthememory<memw>.
Ifmessagestoringfails
forsomereason,anerrorcodeisreported.
Note:MakesurethatnootherSIMinteracting commandsareissuedduringthecommandexecution.
Note:Itispossibletosaveaconcatenationofatmost10SMs.Themaximumnumberofcharactersdependson
the<dcs>:1530charactersif3GPPTS
23.038defaultalphabetisused,1340charactersif8bitisused,670
charactersifUCS2isused.Ifenteredtextislongerthanthismaximumvalueanerrorisraised.
Note:Intextmode,bothSUBMITandDELIVERmessagescanbestoredinSIM.
Thetypeofsavedmessagedepends
uponthecurrent<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
"STOSENT";DELIVERmessagescanonlybe
storedwithstatus"RECUNREAD"or"RECREAD".