Specifications

CUSTOMATCOMMANDS
229 HSPA+ATCommandsReferenceGuide
Notes
TheSRINGURChastobeaconsequenceofa#SLissue.
SettingthecommandbeforetohavingreceivedaSRINGresultsinanERRORindication, givingtheinformation
thataconnectionrequesthasnotyetbeenreceived.
ReceiveDataIn CommandMode#SRECV
Executecommandpermitstheusertoreaddataarrivedthroughaconnectedsocket,butbufferedandnotyet
readbecausethemoduleenteredcommandmodebeforereadingthem;themoduleisnotifiedofthesedatabya
SRINGURC,whosepresentationformatdependsonthelast#SCFGEXTsetting.
Testcommandreturnstherangeofsu
pportedvaluesfor<connId>and<maxByte>.
Syntax
Command Commandtype
AT#SRECV=<connId>,<maxByte> Execute
AT#SRECV=? Test
ParametersandValues
<connId> Socketconnectionidentifier.
16
<maxByte> Maximumnumberofbytestoread.
11500
Notes
Issuing#SRECVwhenthere’snobuffereddataraisesanerror.
Examples
SRINGURC(<srMode>be0,<dataMode>be0)tellingdatahavejustcomethroughconnectedsocketidentifiedby
<connId>=1andarenowbuffered
SRING: 1
Readintextformatthebuffereddata
AT#SRECV=1,15
#SRECV: 1,15
stringa di test
OK
SRINGURC(<srMode>be1,<dataMode>be1)telling15bytesdatahavejustcomethroughconnectedsocket
identifiedby<connId>=2andarenowbuffered
SRING: 2,15