> 2.10.1 | GPRS initialization

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.10.1.1 | Description

> This chapter describes initial settings suggested for using GPRS.
> You can query the status of GPRS network registration with AT+CGREG. With AT+CGSMS you can specify the service or service preferences the MT shall use when sending MO SMS messages.
> The authentication type for the PPP connection will be set with AT^SGAUTH. The default value is 3 (PAP and CHAP). To configure the LLC-PDU-length and the GPRS multislot class use AT^SGCONF
> If supported by your product you can use the AT^SCFG command for the following GPRS related settings. See [2] to find out whether AT^SCFG is available and includes settings for GPRS. Note that AT^SCFG settings illustrated in the examples are valid only if GSM character set is active.

> • | ”GPRS/ATS0/withAttach” (<gaa>) Specifies whether or not ME will automatically attempt to perform a GPRS attach after receiving the command ATS0=<n> with parameter n>0.

> • | ”GPRS/RingOnIncomingData (<groid>) Specifies if RING line shall be activated when ME receives GPRS IP packets during CYCLIC SLEEP mode AT+CFUN=7 or 8. This solution ensures that incoming GPRS IP packets will prompt the application to wake up from power saving.

> • | ”URC/Ringline/ActiveTime” (<urat>) Specifies duration of RING activation to indicate URCs or incoming GPRS IP packets.

> 2.10.1.2 | Used AT commands

> Command | Explanation
> AT+CGREG | GPRS Network registration status
> AT+CGSMS | Select Service for MO SMS messages
> AT^SGAUTH | Set type of authentication for PPP connection
> AT^SGCONF | Configuration of GPRS related parameters
> AT^SCFG | Extended Configuration setting (not supported by all products)

> For further details about the commands see [2].

> 2.10.1.3 | Flow chart

> Figure 62: GPRS initialization - part 1
> Figure 63: GPRS initialization - part 2

> 2.10.1.4 | Hints

> • | Please consider that GPRS related command parameters cannot be stored with AT&W.

> 2.10.1.5 | Example

> ***************************************
> Comment: GPRS initialization
> ***************************************
> ***************************************
> Comment: Query network registration status.
> ***************************************
> Subscr 1 Send: AT+CGREG?
> Subscr 1 Receive: AT+CGREG?
> Subscr 1 Receive: +CGREG: 0,0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Enable network registration URC.
> ***************************************
> Subscr 1 Send: AT+CGREG=1
> Subscr 1 Receive: AT+CGREG=1
> Subscr 1 Receive: OK
> ***************************************
> Comment: Query service for MO SMS messages (3 ‡ GSM preferred).
> ***************************************
> Subscr 1 Send: AT+CGSMS?
> Subscr 1 Receive: AT+CGSMS?
> Subscr 1 Receive: +CGSMS: 3
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Select service for SMS messages (0 ‡ SMS over GPRS).
> ***************************************
> Subscr 1 Send: AT+CGSMS=0
> Subscr 1 Receive: AT+CGSMS=0
> Subscr 1 Receive: OK
> ***************************************
> Comment: Query type of authentication for PPP connection (3 ‡ PAP/ CHAP)
> ***************************************
> Subscr 1 Send: AT^SGAUTH?
> Subscr 1 Receive: AT^SGAUTH?
> Subscr 1 Receive: ^SGAUTH: 3
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Set type to PAP.
> ***************************************
> Subscr 1 Send: AT^SGAUTH=1
> Subscr 1 Receive: AT^SGAUTH=1
> Subscr 1 Receive: OK
> ***************************************
> Comment: Query various ME parameter (not supported by all products).
> ***************************************
> Subscr 1 Send: AT^SCFG?
> Subscr 1 Receive: AT^SCFG?
> Subscr 1 Receive: ^SCFG: "Audio/AMR","00101"
> Subscr 1 Receive: ^SCFG: "GPRS/ATS0/withAttach","on"
> Subscr 1 Receive: ^SCFG: "GPRS/RingOnIncomingData","off"
> Subscr 1 Receive: ^SCFG: "PowerSaver/Mode9/Timeout","20"
> Subscr 1 Receive: ^SCFG: "Radio/Band/HandOver","0"
> Subscr 1 Receive: ^SCFG: "URC/CallStatus/CIEV","restricted"
> Subscr 1 Receive: ^SCFG: "URC/CallStatus/SLCC","verbose"
> Subscr 1 Receive: ^SCFG: "URC/Datamode/Ringline","off"
> Subscr 1 Receive: ^SCFG: "URC/Ringline","local"
> Subscr 1 Receive: ^SCFG: "URC/Ringline/ActiveTime","1"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Ring on incoming GPRS IP data packets (not supported by all products).
> ***************************************
> Subscr 1 Send: AT^SCFG="GPRS/RingOnIncomingData","on"
> Subscr 1 Receive: AT^SCFG="GPRS/RingOnIncomingData","on"
> Subscr 1 Receive: ^SCFG: "GPRS/RingOnIncomingData","on"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: RING line active time (not supported by all products).
> ***************************************
> Subscr 1 Send: AT^SCFG="URC/Ringline/ActiveTime","2"
> Subscr 1 Receive: AT^SCFG="URC/Ringline/ActiveTime","2"
> Subscr 1 Receive: ^SCFG: "URC/Ringline/ActiveTime","2"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Configuration of GPRS related parameters (ERROR).
> ***************************************
> Subscr 1 Send: AT^SGCONF=1521,8
> Subscr 1 Receive: AT^SGCONF=1521,8
> Subscr 1 Receive: +CME ERROR: invalid index
> ***************************************
> Comment: Configuration of GPRS related parameters.
> ***************************************
> Subscr 1 Send: AT^SGCONF=1520,8
> Subscr 1 Receive: AT^SGCONF=1520,8
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Query the parameters of the configuration (not supported by all products).
> ***************************************
> Subscr 1 Send: AT^SGCONF?
> Subscr 1 Receive: AT^SGCONF?
> Subscr 1 Receive: ^SGCONF: 1520,8
> Subscr 1 Receive:
> Subscr 1 Receive: OK