5 socket information command – Rainbow Electronics GM862-QUAD-PY User Manual

Page 57

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 4 - 16/07/08

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

page 57 of 63



Where :

• <connId> is the connection Id of the socket with data pending

• <maxbytes> is the number of pending bytes we want to extract (maximum value is 1500).


Example:

We receive a SRING data amount and then we extract all the five bytes pending with SRECV.

SRING: 1,5

at#srecv=1,5
#SRECV: 1,5
hello

OK

4.2.5 Socket Information command


It is possible to have additional information on every socket with the AT#SI command.
The command syntax is:

AT#SI [= <connId>]

Where connId is an optional parameter, we can see info on a specific socket or for all sockets.
The information shown by the command are:

• Data sent on the socket.
• Data extracted from the socket buffer.

• Data pending on the socket buffer.

• Data not acknowledged by the remote.

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.

Advertising