Specifications
CUSTOMATCOMMANDS
HSPA+ATCommandsReferenceGuide 210
ParametersandValuesforTextMode
<da>
Stringtype,destinationaddressrepresentedinthecurrentlyselectedcharacterset.
See+CSCS.
<text> Texttosend.
Encloseenteredtextbetweendoublequotes.Formattextasfollows:
Ifcurrent<dcs>indicatesthatGSM03.38defaultalphabetisusedand
current<fo>indicatesthat3GPPTS23.040TP‐User‐Data‐Header‐
Indicationisnotset,thenME/TAconvertstheenteredtextintoGSM
alphabet,accordingtoGSM27.005,AnnexA.Formoreinformation
about<dcs>and<fo>,see+CSMP.
Ifcurrent<dcs>indicatesthat8‐bitorUCS2datacodingschemeis
usedorcurrent<fo>indicatesthat3GPPTS23.040TP‐User‐Data‐
Header‐Indicationisset.Formoreinformationabout<dcs>and<fo>,
see+CSMP.
EnteredtextconsistsoftwoIRAcharacterlonghexadecimal
numberswhichME/TAconvertsinto8‐bitoctet.Forexamplethe
‘asterisk’isen
teredas2A(IRA50andIRA65)andthisisconverted
toanoctetwithintegervalue0x2A.
Ifmessageissuccessfullysenttothenetwork,thentheresultissentintheformat:
#CMGS:<mr>
where
<mr>‐messagereferencenumber;3GPPTS23.040TP‐Message‐Referenceininteger
format.
Note:Ifmessagesendingfails,anerrorcodeisreported.
Notes
Toavoidmalfunctions,waitforthe#CMGS:<mr>or#CMSERROR:<err>responsebeforeissuingfurther
commands.
Reference:GSM27.005.
Examples
SMStextmodeexample
AT+CMGF=1
AT#CMGS=6125553333,"thisismymessage"
<CR LF>
#CMGS: 2
OK
SMSPDUmodeexample
AT+CMGF=0
AT#CMGS=30,07913121139418F011000A9155454433330000AA13C27A1EC47EDF59A06999CD0621D367740
8
<CR LF>
#CMGS: 3
OK