beautypg.com

Notes, Receive data in command mode #srecv, Syntax – Synaccess Networks NP-0801DTM User Manual

Page 229: Parameters and values, Examples

background image

CUSTOM AT COMMANDS 

 

 

229 

HSPA+ AT Commands Reference Guide

 

Notes 

„

The SRING URC has to be a consequence of a #SL issue. 

„

Setting the command before to having received a SRING results in an ERROR indication, giving  the information 
that a connection request has not yet been received. 

Receive Data In Command Mode   #SRECV 

Execute command permits the user to read data arrived through a connected socket, but buffered and not yet 
read because the module entered command mode before reading them; the module is notified of these data by a 
SRING URC, whose presentation format depends on the last #SCFGEXT setting. 

Test command returns the range of supported values for  and 

Syntax 

Command 

Command type 

AT#SRECV=, 

Execute 

AT#SRECV=? 

Test 

Parameters and Values 

 

Socket connection identifier.

 

1‐6 

 

 

Maximum number of bytes to read. 

1‐1500 

 

Notes 

„

Issuing #SRECV when there’s no buffered data raises an error. 

Examples 

SRING URC ( be 0,  be 0) telling data have just come through connected socket identified by 
=1 and are now buffered 

SRING: 1

 

Read in text format the buffered data 

AT#SRECV=1,15

#SRECV: 1,15

stringa di test

OK

 

SRING URC ( be 1,  be 1) telling 15 bytes data have just come through connected socket 
identified by =2 and are now buffered 

SRING: 2,15