> 11.5 | AT+CGDATA Enter data state

> Syntax

> Test Command AT+CGDATA=?
> Response(s)
> +CGDATA: (list of supported <L2P>s)
> OK

> Write Command AT+CGDATA=[<L2P>[, <cid>[, <cid>]]]
> Response(s)
> CONNECT
> NO CARRIER
> ERROR
> +CME ERROR

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.07 |  | + |  | + | + | + | + | + | + |  |  | - | - | +

> Command Description
> The test command is used for requesting information on the supported layer 2 protocols to be used between the TE and MT.
> The write command causes the MT to perform all actions which are necessary to establish communication between the TE and the network using one or more GPRS PDP types. This may include performing a GPRS attach and one or more PDP context activations. Commands following the AT+CGDATA command in the AT command line will not be processed by the MT.
> If no <cid> is given or if there is no matching context definition, the MT will attempt to activate the context with PDP type IP and all other context parameters set to their default values (see AT+CGDCONT, AT+CGQREQ, AT+CGQMIN).
> If the <L2P> parameter is omitted, the layer 2 protocol is unspecified and PPP will be used.
> If the write command is successful, the MT issues the intermediate result code CONNECT and enters V.250 online data state.
> After data transfer is complete, and the layer 2 protocol termination procedure has completed successfully, the command state is reentered and the MT returns the final result code OK.
> If the <L2P> parameter value is unacceptable to the MT, the MT returns ERROR or +CME ERROR.
> In the event of erroneous termination or a failure to start up, the command state is reentered and the MT returns NO CARRIER, or if enabled +CME ERROR.
> Parameter Description

> <L2P>(str)

> Layer 2 protocol to be used between the TE and MT.
> [“PPP“]
> layer 2 protocol PPP

> <cid>(num)

> Parameter specifies a particular PDP context definition. The parameter is local to the TE-MT interface and is used in other PDP context-related commands.
> 1...2
> Notes

> • | If the MT is in dedicated mode, write command returns "+CME ERROR: operation temporary not allowed".

> • | It is possible to leave the GPRS data mode and enter the command mode by using the V.250 command +++. By using the command AT+CGDATA again, the data mode is reentered. Which context is used to return to data mode, depends on the supplied parameter <cid>. If no <cid> is specified, this is equivalent to using the V.250 command ATO, which is usable for GPRS connections too. In this case the first context will be used, which is active and already in data mode since it has been activated. It is possible to use AT+CGDATA to enter the data mode for a context, which is not yet in data mode since it has been activated. With ATO this is not possible.