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 191 of 273
#SA - Socket Accept
AT#SA=?
Test command reports the range of values for all the parameters.
#SLASTCLOSURE – Detect the cause of a socket disconnection
AT#SLASTCLOSUR
E[=<connId>]
Execution command reports socket disconnection cause
Parameters:
<connId> -
socket connection identifier
1..6
The response format is:
#SLASTCLOSURE: <connId>,<cause>
where:
<connId>
- socket connection identifier, as before
<cause>
- socket disconnection cause:
0 – not available(socket has not yet been closed)
1.- remote host TCP connection close due to FIN/END: normal remote
disconnection decided by the remote application
2 -.remote host TCP connection close due to RST, all others cases in
which the socket is aborted without indication from peer (for instance
because peer doesn't send ack after maximum number of
retransmissions/peer is no more alive).
All these cases include all the "FATAL" errors after recv or send on the
TCP socket(named as different from EWOULDBLOCK)
3.- socket inactivity timeout
4.- network deactivation(PDP context deactivation
from network)
Note: any time socket is re-opened, last disconnection
cause is reset. Command report 0(not available).
Note: user closure cause(
#SH
) is not considered and
if a user closure is performed after remote disconnection,
remote disconnection cause remains saved and is not
overwritten.
Summary of Contents for LE910-SKG
Page 1: ......