User guide

Developers guidelines | AT commands
195 June 2010
AT+CGDATA Enter data state
Test command
response: +CGACT: (list of supported <state>s)
Parameters:
<state>:
<state> Description
0 PDP context activation deactivated
1 PDP context activation activated
<cid>: Integer. Specifies the particular PDP context definition. See the
AT+CGDCONT command.
Description: Causes the ME to perform whatever actions are necessary to establish
communication between the TE and the network using one or more GPRS/
Packet Domain PDP types. This may include performing a GPRS/Packet
Domain attach and one or more PDP context activations.
Commands following +CGDATA command in the AT command line are not
processed by the ME.
During each PDP startup procedure the ME may have access to some or
all of the following information:
The command may have provided an <L2P> parameter value.
The TE may provide a PDP type and/or PDP address to the ME during
in the PDP startup procedure.
If any of this information is in conflict, the command will fail.
Any PDP type and/or PDP address present in the above information are
compared with the PDP type and/or PDP address in any context defini-
tions specified in the command in the order in which their <cid>s appear.
For a context definition to match:
The PDP type must match exactly.
The PDP addresses are considered to match if they are identical or if
either or both addresses are unspecified. For example, a PPP NCP
request specifying PDP type = IP and no PDP address would cause
the ME to search through the specified context definitions for one with
PDP type = IP and any PDP address.
The context is activated using the matched value for PDP type and a static
PDP address, if available, together with the other information found in the
PDP context definition. If a static PDP address is not available then a
dynamic address is requested.
If no <cid> is given or if there is no matching context definition, the ME will
attempt to activate the context with whatever information is available to
the ME. The other context parameters will be set to their default values.
If the activation is successful, data transfer may proceed.
After data transfer is complete and the layer 2 protocol termination proce-
dure has completed successfully, the V.25ter command state is re-entered
and the ME returns the final result code OK.
In the event of an erroneous termination or a failure to start up, the V.25ter
command state is re-entered and the ME returns the final result code NO
CARRIER or, if enabled, +CME ERROR. Attach, activate and other errors
may be reported.
Set command: AT+CGDATA=[<L2p>[,<cid>[,<cid>[,...]]]]