2 configuring the embedded tcp/ip stack, 3 request gsm context to be activated – Rainbow Electronics GM862-QUAD-PY User Manual

Page 47

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

3.2.2 Configuring the embedded TCP/IP stack


The context identifier reserved to the GSM context is 0.
To use GSM carrier, and before activating the context, you have to configure at least one socket on
the connection identifier 0, through the command #SCFG.

3.2.3 Request GSM context to be activated


GSM context activation is done through the same command #SGACT used for GPRS, with 0 as
context identifier.
We cannot activate more than one GSM context at the same time.
The activation may require also in this case two Authentication parameters: User Name and
Password, depending on the Internet Service Provider that we want to connect to.

So the command syntax is the same as for GPRS:

#SGACT= 0,<Status>, [<Username>],[<Password>]

Where:

0 is the context that we want to activate/deactivate.

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


Example:

We want to activate GSM context defined with #GSMCONT.

Command:

AT#SGACT = 0,1

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

ERROR if activation fails.

The response code to the AT#SGACT=0,1 command reports the IP address obtained from the
network, allowing the user to report it to his server or application.
Deactivating the context implies freeing the network resources previously allocated to the device.

Advertising