Specifications
HE863 family AT commands reference guide
80377ST10083a Rev.4 – 2012-02-01
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved. Page 210 of
228
#SRECV – Received Data in Command Mode
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’s
no necessary to issue #SRECV to read the data; no data
remain in the buffer after this URC
SRING: 3,15, stringa di test
3.5.5.2.12. Send Data In Command Mode - #SSEND
#SSEND – Send Data in Command Mode
AT#SSEND=
<connId>
Execution command permits, while the module is in command mode, to send data
through a connected socket.
Parameters:
<connId> - socket connection identifier
1..6
The device responds to the command with the prompt ‘>’ 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 are successfully sent, then the response is OK.
If data sending fails for some reason, an error code is reported
Note: the maximum number of bytes to send is 1500; trying to send more
data will cause ERROR and discarded input data. And then it is possible to input
new data.
Note: it’s possible to use #SSEND only if the connection was opened by
#SD, else the ME is raising an error
Note: a byte corresponding to BS char(0x08) is treated with its corresponding
meaning; therefore previous byte will be cancelled(and BS char itself will not be
sent)
Example
Send data through socket number 2
AT#SSEND=2
>Test<CTRL-Z>