2 configuring extended socket parameters – Rainbow Electronics GM862-QUAD-PY User Manual

Page 55

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 55 of 63

In “classic” online mode, if the connection is successful we have a CONNECT message, in this case
we have only an OK message in case of success and we are still in command mode.

To check if the connection is really established we ca use the AT#SS command to control socket
status.

AT#SS

#SS: 1,2,217.202.12.22,38158,88.37.127.146,10510
#SS: 2,0
#SS: 3,0
#SS: 4,0
#SS: 5,0
#SS: 6,0


We can see that connection Id 1 is opened in suspended state.

4.2.2 Configuring extended socket parameters


Before opening socket connections it is possible to set extended configuration parameters on each of
six sockets available with multisocket.
The main feature regards SRING unsolicited messages. These messages inform the user that there
are pending data on a specific connection Id.
We have three modes:

Classic SRING: only one message (SRING: <connId> ) when some new data arrive on a

socket connection ( like it was for a socket connection of multisocket). This message is
received also when there’s an incoming connection on listening connection Id.

Data amount SRING: an unsolicited message is raised for every new packet received on a

socket connection. The message gives information on the connection id and on the number of
bytes pending in the socket buffer.

View data SRING: in this message we have connection Id, amount of buffered data by the

socket and a string (up to 64 chars) with the dump of data extracted from the socket buffer. An
unsolicited is raised until the socket buffer is empty. In this specific case we can decide to see
data as text or as hex using the <dataMode> parameter (default value is 0 – text).


Note: the data amount is updated until the maximum TCP windows size for reception is reached.

The command syntax is:

AT#SCFGEXT = <connId>,<srMode>,<dataMode>,<keepalive>

Where:

• <connId> is the connection identifier.

Advertising