Specifications

3GPPTS27.005ATCOMMANDSFORSMSANDCBS
139 HSPA+ATCommandsReferenceGuide
NotesTextMode
TheDCDsignalisinONstatewhiletextisentered.
TheechocommandEcontrolstheechoingofenteredcharactersbackfromtheTA.
TosendthemessageissueCtrlZchar(0x1Ahex).
ToexitwithoutsendingthemessageissueESCchar(0x1Bhex).
Ifmessageissuccessfullysenttothenetwork,theresultissentintheformat:
+CMGS:<m
r>
where
<mr>‐messagereferencenumber;3GPPTS23.040TPMessageReferenceinintegerformat.
Ifmessagesendingfailsforsomereason,anerrorcodeisreported.
MakesurenootherSIMinteractingcommandsareissuedduringthecommandexecution,whichmaytake
severalseconds.
Itispossibletosendaconcatenationofatmost10SMs.Themaximumnumberofcharactersdependsonthe
<dcs>:1520charactersif3GPPTS23.038defaultalphabetisused,1330charactersif8bitis used,660
charactersifUCS2isused.Ifenteredtextislongerthanthismaxi
mumvalueanerrorisraised
Notes
Toavoidmalfunctions,waitforthe+CMGS:<mr>or+CMSERROR:<err>responsebeforeissuingfurther
commands.
ReferenceGSM27.005.
WriteMessagetoMemory+CMGW
PDUMode
Executecommandwritesinthe<memw>memorystorageanewmessage.
TextMode
Executecommandwritesinthe<memw>memorystorageanewmessage.
TestcommandreturnstheOKresultcode.
Syntax
Command Commandtype
(PDUMode)
AT+CMGW=<length>[,<stat>]
(TextMode)
AT+CMGW[=<da>[,<toda>[,<stat>]]]
AT+CMGW=? Test