DE910-DUAL AT commands reference guide
80392ST10102A Rev.2 – 2012-07-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 160 of 261
#SI - Socket Info
AT#SI[=<connId>]
Execution command is used to get information about socket data traffic.
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,
Содержание DE910-DUAL
Страница 1: ...80392ST10102A Rev 2 2012 07 03...