3 request the gprs context to be activated – Rainbow Electronics GM862-QUAD-PY User Manual

Page 22

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

Example:

We want to associate the Connection Id number 2 to the context number 3 with a minimum packet
size of 512 bytes, global timeout of 30 sec, connection timeout of 30 sec and transmission timeout of
10 sec.

Command:

AT#SCFG = 2, 3, 512, 30, 300,100

Answer:

OK if command execution is correct
ERROR if a parameter is wrong or the connection Id is working online

2.1.1.3 Request the GPRS context to be activated


This command allows activation of one of the contexts defined with AT command +CGDCONT. With
multisocket it is possible to activate simultaneously two context of the five that have been set. We can
write username and password directly from command line (if required). At least one Connection Id
must be associated to the context we want to activate otherwise an error will be appear.

The command syntax is:

#SGACT

=

<Cntx Id>,<Status>, [<Username>],[<Password>]


Where:

Cntx Id is the context that we want to activate/deactivate.

Status is the context status (0 means deactivation, 1 activation).


Example:

We want to activate context number two defined with +CGDCONT.

Command:

AT#SGACT = 2,1

Answer:
#SGACT: “212.195.45.65”
OK if activation success.

ERROR if activation fails.

Advertising