1 configuring the gprs access, 2 configuring the embedded tcp/ip stack – Rainbow Electronics GM862-QUAD-PY User Manual

Page 21

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

2.1.1.1 Configuring the GPRS access


The GPRS access configuration is done by setting:

• the GPRS context number 1 parameters (see +CGDCONT command)

• the Authentication parameters: User Name and Password (see command #SGACT)

2.1.1.2 Configuring the embedded TCP/IP stack


The TCP/IP stack behaviour must be configured by setting:

• the packet default size

• the data sending timeout
• the socket inactivity timeout


Before opening a connection we have to set the socket parameters with the new #SCFG command. It
is possible to set all the timeout values and packet size for each socket connection with a single AT
command. The command syntax is:

AT#SCFG = <Conn Id>, <Cntx Id>, <Pkt sz>, <Global To>, <Conn To>, <Tx To>

Where:

Conn Id -the connection identifier

Cntx Id -the context identifier

Pkt sz -the minimum data packet sent to the net (default 300 bytes)
Global To -inactivity timeout (default 90 sec.)

Conn To -connection timeout (default 60 sec, expressed in tenths of second)

Tx To -data sending timeout (default 5 sec, expressed in tenths of second)

The first two parameters are new and they represent the association between the socket connection
and the context set with +CGDCONT. It means that we can have socket connection working on
different IP addresses.
The other parameters replace the old IP Easy commands #DSTO, #SKTTO, #SKTCT and #PKTSZ.

If we try to modify the socket configuration of an online connection an error will appear. So it’s
recommended to set the socket configuration at the beginning. It is strongly recommended to leave
the first Connection Id associated to context one to allow simultaneous FTP, SMTP and IPEasy
services.
The values set with this command are saved in NVM.




Advertising