Send data in command mode #ssend, Syntax, Parameters and values – Synaccess Networks NP-0801DTM User Manual

Page 230: Notes, Examples

Advertising
background image

 

CUSTOM AT COMMANDS

 

HSPA+ AT Commands Reference Guide 

230

 

 

Read in hexadecimal format the buffered data 

AT#SRECV=2,15

#SRECV: 2,15

737472696e67612064692074657374

OK

 

SRING URC (<srMode> be 2, <dataMode> be 0) displaying (in text format) 15 bytes data that have just come 
through connected socket identified by <connId>=3. It is not necessary to issue #SRECV to read the data; no data 
remain in the buffer after this URC. 

SRING: 3,15, stringa di test

Send Data in Command Mode   #SSEND 

Execute command permits, while the module is in command mode,  to send data through a connected socket. 

Test command returns the range of supported values for parameter <connId>. 

Syntax 

Command 

Command type 

AT#SSEND=<connId> 

Execute 

AT#SSEND=? 

Test 

Parameters and Values 

<connId> 

Socket connection identifier.

 

1‐6 

The device responds to the command with the prompt <greater_than><space> 
and waits for the data to send. 
To complete the operation send Ctrl‐Z char (0x1A hex); to exit without writing the 
message send ESC char (0x1B hex). 
If data is successfully sent, then the response is OK. 
If data sending fails for some reason, an error code is reported. 

Notes 

„

The maximum number of bytes to send is 1500 bytes. Trying to send more data causes the surplus to be 
discarded and lost. 

„

It is possible to use #SSEND only if the connection was opened by #SD, else the ME is raising an error. 

„

A byte corresponding to BS char(0x08) is treated with its corresponding meaning; therefore previous byte is 
cancelled (and BS char itself is not sent) 

Examples 

Send data through socket number 2 

AT#SSEND=2

Advertising