LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 147 / 231
Example
AT+CGATT=1
//Attach to PS service
OK
AT+CGATT=0
//Detach from PS service
OK
AT+CGATT?
//Query the current PS service state
+CGATT: 0
OK
10.2. AT+CGDCONT Define PDP Context
The command specifies PDP context parameters for a specific context
<cid>
. A special form of the Write
Command (
AT+CGDCONT=<cid>
) causes the values for context
<cid>
to become undefined. It is not
allowed to change the definition of an already activated context.
The Read Command returns the current settings for each defined PDP context.
AT+CGDCONT Define PDP Context
Test Command
AT+CGDCONT=?
Response
+CGDCONT:
(range of supported
<cid>
s)
,<PDP_type>,
<APN>,<PDP_addr>,
(list of supported
<data_comp>
s)
,
(list
of supported
<head_comp>
s)
OK
Read Command
AT+CGDCONT?
Response
+CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<data_comp>,<h
ead_comp>[
…]
OK
Write Command
AT+CGDCONT=<cid>[,<PDP_type>[,<
APN>[,<PDP_addr>[,<data_comp>[,<
head_comp>]]]]]
Response
OK
ERROR
Maximum Response Time
300ms
Reference
3GPP TS 27.007