Syntax, Parameters and values, Notes – Synaccess Networks NP-0801DTM User Manual
Page 258: Examples

ENHANCED IP STACK EXTENSION AT
COMMANDS
HSPA+ AT Commands Reference Guide
258
Syntax
Command
Command type
AT#GPRS=[
Execute
AT#GPRS?
Read
AT#GPRS=?
Test
Parameters and Values
PDP context activation mode.
0
PDP context #1 deactivation request.
1
PDP context #1 activation request.
If the PDP context #1 is activated, the result code OK is preceded by the
intermediate result code:
+IP:
reporting the local IP address obtained from the network.
Notes
It is recommended you use the same command—for example #GPRS—to activate the context, deactivate it and
interrogate its status.
You must associate at least a socket identifier with PDP context #1 so that every #GPRS action can be effective.
By default the PDP context #1 is associated with socket identifiers 1, 2 and 3, but it is possible to modify these
associations through #SCFG. Trying to issue a #GPRS action when no socket identifier is associated with PDP
context #1 raises an error.
This command is not allowed if GSM context is activated. See AT#SGACT=0,1.
If the PDP context #1 is activated issuing AT#GPRS=1, then if you request to deactivate the PDP context #1
during a call issuing AT#GPRS=0 and then, after the call termination, you want to activate the PDP context #1
again through #GPRS, you need to issue the following sequence of three commands
AT#GPRS=1
OK
AT#GPRS=0
OK
AT#GPRS=1
OK
Examples
PDP Context #1 is activated, IP is 129.137.1.1
AT#GPRS=1
+IP: 129.137.1.1
OK
Now PDP Context #1 is deactivated, IP is lost.
AT#GPRS=0
OK