LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 192 of 273
#SLASTCLOSURE – Detect the cause of a socket disconnection
Note: if more consecutive closure causes are received,
the original disconnection cause is saved.
(For instance: if a TCP FIN is received from remote
and later a TCP RST because we continue to send data,
FIN cause is saved and not overwritten)
Note: also in case of
<closureType>
(
#SD
) set to 255, if the socket has
not yet been closed by user after the escape sequence,
#SLASTCLOSURE
indicates remote disconnection cause if it has been
received.
Note: in case of UDP, cause 2 indicates abnormal(local)
disconnection. Cause 3 and 4 are still possible.
(Cause 1 is obviously never possible)
Note: in case of command mode connection and remote closure with
subsequent inactivity timeout closure without
retrieval of all available data(#SRECV or SRING mode 2),
it is indicated cause 1 for both possible FIN and RST from remote.
AT#SLASTCLOSUR
E=?
Test command reports the supported range for parameter
<connId>
#SRECV – Received Data in Command Mode
AT#SRECV=
<connId>,
<maxByte>
[,<UDPInfo>]
Execution 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.
Parameters:
<connId>
- socket connection identifier
1..6
<maxByte>
- max number of bytes to read
1..1500
<UDPInfo>
0 – UDP information disabled ( default )
1 – UDP information enabled: data are read just until the end of the UDP
datagram and the response carries information about the remote IP address and
port and about the remaining bytes in the datagram.
AT#SRECV=<connId>,<maxBytes>,1
#SRECV: <sourceIP>,<sourcePort><connId>,<recData>,
<dataLeft>
data
Note: issuing
#SRECV
when there’s no buffered data raises an error.
Содержание LE910-SKG
Страница 1: ......