Multi-Tech Systems GPRS (MTMMC-G) Network Router User Manual


 
Chapter 15 – GPRS Commands
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 165
Manual Response to a Network Request for PDP
Context Activation +CGANS
Description: The execution command requests the modem to respond to a network request for GPRS PDP context
activation which has been signalled to the DTE by the RING or +CRING: unsolicited result code. The
<response> parameter allows the DTE to accept or reject the request.
If <response> is 0, the request is rejected and the modem returns OK to the DTE.
If <response> is 1, the following procedure is followed by the modem.
PDP context activation procedures take place prior to or during the PDP startup.
One <cid> may be specified in order to provide the values needed for the context activation request.
During the PDP startup procedure the modem has the PDP type and the PDP address provided by the
network in the Request PDP Context Activation message.
If a <cid> is given his informations must matching with the PDP type and PDP address in the network
request as follows -
The PDP type must match exactly.
The PDP addresses are considered to match if they are identical or if the address in the context
definition is unspecified. If any of this information is in conflict, the command will fail.
The context is activated using the values for PDP type and PDP address provided by the network,
together with the other information found in the PDP context definition. An APN may or may not be
required, depending on the application.
If no <cid> is given, the modem will attempt to activate the context using the values for PDP type and
PDP address provided by the network, together with any other relevant information known to the
modem. 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 procedure has completed
successfully, the V.25ter command state is re-entered and the modem returns the final result code OK.
In the event of an erroneous termination or a failure to startup, the V.25ter command state is re-entered
and the modem returns the final result code NO CARRIER or, if enabled, +CME ERROR. Attach,
activate and other errors may be reported. It is also an error to issue the +CGANS command when
there is no outstanding network request.
This command may be used in both normal and modem compatibility modes.
Values: <response> A numeric parameter which specifies how the request should be responded to.
0 reject the request
1 accept and request that the PDP context be activated
If <response> is omitted it is assumed to be 0. Other values are reserved and will result in the
ERROR response.
<cid>: a numeric parameter which specifies a particular PDP context definition.
Syntax: Command Syntax: AT+CGANS
Command Possible response(s)
AT+CGANS=[<response>,
[<cid>]]
OK
ERROR
AT+CGANS=? +CGANS: (list of supported <response>s), (list of supported <L2P>s)
OK
Example:
+CRING: GPRS "IP", "122.41.74.238"
AT+CGANS=1
CONNECT
AT+CGANS=?
+CGANS= (0-1)
OK