
GSM Module
2.8
GPRS Command
2.8.1
+CGDCONT: set PDP format
Description
This command is used to set GPRS PDP format;
Format
AT + CGDCONT=cid, type, APN[,PDP_ADDR]
Example
At + CGDCONT=1, "IP","CMNET"
ATD*99#
……
Connect
Parameters
cid: used to mark the number of PDP, minimum 1;
type: type pf PDP package;
IP: use TCP/IP package;
APN: access point network
PDP_ADDR: user designated IP address (optional)
2.8.2
+CGACT: activate/deactivate PDP
Description
This command is used to activate/deactivate PDP settings.
Format AT+CGACT=
[<state>
[, <cid> [, <cid> [,..]]]]
Example
At + CGDCONT=1,"IP","CMNET"
OK
AT+CGACT=1,1
OK
Parameters
cid: used to mark PDP parameter;
state: used to indicate PDP status;
0
:
deactivate;
1
:
activate;
2.8.3
+CGATT: set GPRS service
Description
This command is used to set GPRS service.
Format AT+CGATT=[<state>]
Example AT+CGATT?
+CGATT:0
OK
AT+CGATT=1
OK
Check GPRS service status
Set GPRS service status
Parameter
state:
0
:
detach
1
:
attach
47