CUSTOMATCOMMANDS
HSPA+ATCommandsReferenceGuide 230
Readinhexadecimalformatthebuffereddata
AT#SRECV=2,15
#SRECV: 2,15
737472696e67612064692074657374
OK
SRINGURC(<srMode>be2,<dataMode>be0)displaying(intextformat)15bytesdatathathavejustcome
throughconnectedsocketidentifiedby<connId>=3.Itisnotnecessarytoissue#SRECVtoreadthedata;nodata
remaininthebufferafterthisURC.
SRING: 3,15, stringa di test
SendDatainCommandMode#SSEND
Executecommandpermits,whilethemoduleisincommandmode,tosenddatathroughaconnectedsocket.
Testcommandreturnstherangeofsupportedvaluesforparameter<connId>.
Syntax
Command Commandtype
AT#SSEND=<connId> Execute
AT#SSEND=? Test
ParametersandValues
<connId> Socketconnectionidentifier.
1‐6
Thedevicerespondstothecommandwiththeprompt<greater_than><space>
andwaitsforthedatatosend.
TocompletetheoperationsendCtrl‐Zchar(0x1Ahex);toexitwithoutwritingthe
messagesendESCchar(0x1Bhex).
Ifdataissuccessfullysent,thentheresponseisOK.
Ifdatasendingfailsforsomereason,anerr
orcodeisreported.
Notes
Themaximumnumberofbytestosendis1500bytes.Tryingtosendmoredatacausesthesurplustobe
discardedandlost.
Itispossibletouse#SSENDonlyiftheconnectionwasopenedby#SD,elsetheMEisraisinganerror.
AbytecorrespondingtoBSchar(0x08)istreatedwithitscorrespondingmeaning;thereforepreviousbyteis
cancelled(andBScharitselfisnotsent)
Examples
Senddatathroughsocketnumber2
AT#SSEND=2
Commentaires sur ces manuels