beautypg.com

2 socket info - #si – Rainbow Electronics GM862-QUAD-PY User Manual

Page 316

background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 316 of 434

#SS - Socket Status

SELINT 2

- socket connection identifier
1..6
- actual state of the socket:
0 - Socket Closed.
1 - Socket with an active data transfer connection.
2 - Socket suspended.
3 - Socket suspended with pending data.
4 - Socket listening.
5 - Socket with an incoming connection. Waiting for the user accept or

shutdown command.

- IP address associated by the context activation to the socket.
- two meanings:

- the listening port if we put the socket in listen mode.
- the local port for the connection if we use the socket to connect to a

remote machine.

- when we are connected to a remote machine this is the remote

IP address.

- it is the port we are connected to on the remote machine.

AT#SS=?

Test command returns the OK result code.

3.5.7.3.2 Socket Info - #SI

#SI - Socket Info

SELINT 2

AT#SI[=]

Execution command is used to get information about socket data traffic.

Parameters:
- socket connection identifier
1..6

The response format is:

#SI: ,,,,

where:

-

socket connection identifier, as before

- total amount (in bytes) of sent data since the last time the socket

connection identified by has been opened

- total amount (in bytes) of received data since the last time the

socket connection identified by has been opened

- total amount (in bytes) of data just arrived through the socket

connection identified by and currently buffered, not
yet read

- total amount (in bytes) of sent and not yet acknowledged

data since the last time the socket connection identified by
has been opened


Note: not yet acknowledged data are available only for TCP connections;