AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page149of233
#SI - Socket Info
Parameters:
<connId> - socket connection identifier
1..6
The response format is:
#SI: <connId>,<sent>,<received>,<buff_in>,<ack_waiting>
where:
<connId> - socket connection identifier, as before
<sent> - total amount (in bytes) of sent data since the last time the socket connection
identified by
<connId> has been opened <received> - total amount (in bytes) of
received data since the last time the socket connection identified by
<connId> has
been opened
<buff_in> - total amount (in bytes) of data just arrived through the
socket
connection identified by
<connId> and currently buffered, not yet read
<ack_waiting> - total amount (in bytes) of sent and not yet acknowledged data since
the last time the socket connection identified by
<connId> has been opened
Note: not yet acknowledged data are available only for TCP connections. The value
<ack_waiting> is always 0 for UDP connections.
Note: issuing #SI<CR> causes getting information about data traffic of all the
sockets, the response format is:
#SI: <connId1>,<sent1>,<received1>,<buff_in1>,<ack_waiting1>
<CR><LF>…
#SI: <connId6>,<sent6>,<received6>,<buff_in6>,<ack_waiting6>
AT#SI=? Test command reports the range for parameter <connId>.
Example
AT#SI
#SI: 1,123,400,10,50
#SI: 2,0,100,0,0
#SI: 3,589,100,10,100
#SI: 4,0,0,0,0
#SI: 5,0,0,0,0
#SI: 6,0,98,60,0
OK
Sockets 1,2,3,6 are opened with some data traffic.
For example socket 1 has 123 bytes sent, 400 bytes received,
10 byte waiting to be read and 50 bytes waiting to be
acknowledged from the remote side.
AT#SI=1
#SI: 1,123,400,10,50
OK
We have information only about socket number 1