Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set GPRS Commands
10-8
AT +CGATT=1 OK
Defined values: <state>: indicates the state of GPRS attachment
• 0: detached
• 1: attached
• 2: combined detach (GPRS and GSM detach in the same network request)
• Other values are reserved and will result in an ERROR response to the execution
command.
PDP Context Activate or Deactivate: +CGACT
Description: The execution command is used to activate or deactivate the specified PDP
context(s). After the command has completed, the MT remains in V.25ter command state. If any
PDP context is already in the requested state, the state for that context remains unchanged. If the
requested state for any specified context cannot be achieved, an ERROR or +CME ERROR
response is returned. Extended error responses are enabled by the +CMEE command. If the MT is
not GPRS attached when the activation form of the command is executed, the MT first performs a
GPRS attach and then attempts to activate the specified contexts. If the attach fails then the MT
responds with ERROR, or if extended error responses are enabled, with the appropriate
failure-to-attach error message. If no <cid>s are specified the activation form of the command
activates the first possible within the defined contexts. If no <cid>s is specified the deactivation
form of the command deactivates all active contexts. One PDP contexts can be activated through
MOXA software at the same time. The read command returns the current activation states for all
the defined PDP contexts. The test command is used for requesting information on the supported
PDP context activation states.
Command syntax:
Command Possible responses
AT+CGACT=[<state> [,<cid>[,<cid>[,…]]]] OK
ERROR
AT+CGACT? +CGACT: <cid>, <state>
[<CR><LF>+CGACT: <cid>, <state>
[...]]
OK
AT+CGACT=? +CGACT: (list of supported <state>s)
OK
AT +CGACT=1,1 OK
AT+CGACT? +CGACT: 1, 1
OK
AT+CGACT=? +CGACT: (0-1)
OK
Defined values:
<state>: indicates the state of PDP context activation
0: deactivated
1: activated
Other values are reserved and will result in an ERROR response to the execution
command.
<cid>: a numeric parameter that specifies a particular PDP context. Before the activation of the
context, the MT has to attach itself to the GPRS network if necessary.
Note: if a GPRS PPP session is already running, the setting of a CSD (GSM data call) is not
supported.