페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages
AT Commands for GPRS Support 

 

 

No Command        Description
C0601 AT+CGATT Attach or detach from GPRS service
C0602 AT+CGDCONT Define PDP context
C0603 AT+CGACT PDP context activate or deactivate
C0604 AT+CGPADDR Show PDP address
C0605 AT+CGREG Network registration status
C0606 AT+CGSMS Select service for MO SMS messages
C0607 AT+CEREG EPS Network Registration Status

 

 

 

 

C0601      AT+CGATT      Attach Or Detach From GPRS Service

  

T) AT+CGATT=?

+CGATT: (list of supported <state>s)

 

OK

Parameters

See Write Command

R) AT+CGATT?

+CGATT: <state>

 

OK

Parameters

See Write Command

W) AT+CGATT=<state>

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<state>     Indicates the state of GPRS attachment

0     Detached

1     Attached

Other values are reserved and will result in an ERROR response to the Write Command.

Parameter Saving Mode NO_SAVE
Max Response Time 75 seconds

 

 

 

 

C0602      AT+CGDCONT     Define PDP Context

 

T) AT+CGDCONT=?

+CGDCONT: (range of supported <cid>s),<PDP_type>,,,(list of supported

<d_comp>s),(list of supported    <h_comp>s)(list of <ipv4_ctrl>s),(list of

<emergency_flag>s)

 

OK

Parameters

See Write Command

R) AT+CGDCONT?

+CGDCONT:

[<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<ipv4_ctrl>,<emergency_flag>

[<CR><LF>+CGDCONT:

<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<ipv4_ctrl>,<emergency_flag>

[…]]]

 

OK

Parameters

See Write Command

W) AT+CGDCONT=<cid>[,<PDP_type>[,<APN>[,<PDP_addr>[,<d_comp>[,<h_comp>][,<ipv4_c trl>[,<emergency_flag>]]]]]]

OK

or

ERROR

Parameters

<cid>             

(PDP Context Identifier) a numeric parameter which specifies a particular PDP context

definition.

The parameter is local to the TE-MT interface and is used in other PDP context-related

commands.

The range of permitted values (minimum value=1) is returned by the test form of the command.

1…24

<PDP_type>   

(Packet Data Protocol type) A string parameter which specifies the type of packet data protocol.

IP     Internet Protocol (IETF STD 5)

PPP     Point to Point Protocol

IPV6     Internet Protocol Version 6

IPV4V6     Dual PDN Stack

<APN>            

(Access Point Name) A string parameter (string should be included in quotation marks) which is

a logical name that is used to select the GGSN or the external packet data network.

If the value is null or omitted, then the subscription value will be requested.

The default value is NULL.

<PDP_addr>

A string parameter that identifies the MT in the address space applicable to the PDP.

Format: “<n>.<n>.<n>.<n>” where <n>=0..255

If the value is null or equals 0.0.0.0 a dynamic address will be requested.

The allocated address may be read using the +CGPADDR command.

<d_comp>     A numeric parameter that controls PDP data compression

0     Off (default if value is omitted)

1     On

2     V.42bis

<h_comp>     A numeric parameter that controls PDP head compression

0     Off (default if value is omitted)

1     On

2     RFC1144

3     RFC2507

4     RFC3095

<ipv4_ctrl>     Parameter that controls how the MT/TA requests to get the IPv4 address information:

0     Address Allocation through NAS Signaling

1     on

<emergency_flag>     Emergency_flag:

0     Off (default if value is omitted)

1     On

Parameter Saving Mode AUTO_SAVE
Reference

Note

<cid> values 17 to 24 are supported from MPSS JO 1.0+ onwards.

 

 

 

 

C0603      AT+CGACT     PDP Context Activate Or Deactivate

  

T) AT+CGACT=?

+CGACT: (list of supported <state>s)

 

OK

Parameters

See Write Command

R) AT+CGACT?

+CGACT: <cid>,<state>[<CR><LF>+CGACT: <cid>,<state>…]

 

OK

Parameters

See Write Command

W) AT+CGACT=<state>[,<cid>[,<cid>[,…]]]

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<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 Write Command.

<cid>        

A numeric parameter which specifies a particular PDP context definition (see +CGDCONT Command).

If the <cid> is omitted, it only affects the first cid.

<cid> values 17 to 24 are supported from MPSS JO 1.0+ onwards.

1…24

Parameter Saving Mode NO_SAVE
Max Response Time 150 seconds
Reference

Note

This command is used to test PDPs with network simulators.

Successful activation of PDP on real network is not guaranteed.

 

 

 

 

C0604      AT+CGPADDR     Show PDP Address

   

T) AT+CGPADDR=?

+CGPADDR: (list of defined <cid>s)

OK

Parameters

See Write Command

W) AT+CGPADDR=<cid>[,<cid>[,…]]

+CGPADDR: <cid>,<PDP_addr> [<CR><LF>+CGPADDR: <cid>,<PDP_addr>[…]]

 

OK

 

If SIM card supports IPV4V6 type and the PDP_type of the command “AT+CGDCONT” defined is

ipv4v6 :

[+CGPADDR: <cid>,<PDP_addr_IPV4>,<PDP_addr_IPV6>]

+CGPADDR: <cid>,<PDP_addr_IPV4>,<PDP_addr_IPV6>[…]]]

 

OK

or

ERROR

Parameters

<cid>      

A numeric parameter which specifies a particular PDP context definition

(see +CGDCONT Command)

1…24

<PDP_addr>   

String type, IP address

Format: <n>.<n>.<n>.<n> where <n>=0..255

<PDP_addr_IPV4>

A string parameter that identifies the MT in the address space applicable to the PDP.

<PDP_addr_IPV6>

A string parameter that identifies the MT in the address space applicable to the PDP when the

sim_card supports ipv6.

The pdp type must be set to “ipv6” or “ipv4v6” by the AT+CGDCONT command.

 

E) AT+CGPADDR

[+CGPADDR: <cid>,<PDP_addr>]

+CGPADDR: <cid>,<PDP_addr>[…]]]

 

OK

If error is related to ME functionality:

+CME ERROR: <err>

 

If SIM card supports IPV4V6 type and the PDP_type of the command “AT+CGDCONT” defined is ipv4v6 :

[+CGPADDR: <cid>,<PDP_addr_IPV4>,<PDP_addr_IPV6>]

+CGPADDR: <cid>,<PDP_addr_IPV4>,<PDP_addr_IPV6>[…]]]

OK

Parameters

See Write Command

Parameter Saving Mode NO_SAVE
Reference

Note

<cid> values 17 to 24 are supported from MPSS JO 1.0+ onwards.

Write command returns address provided by the network if a connection has been established.

 

 

 

 

C0605      AT+CGREG     Network Registration Status

 

T) AT+CGREG=?

+CGREG: (list of supported <n>s)

 

OK

Parameters

See Write Command

R) AT+CGREG?

+CGREG:

<n>,<stat>[,<lac>,<ci>,<netact>[,[<Active-Time>],[<Periodic-RAU>],[<GPRS-READY-timer>]]]

 

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

See Write Command

W) AT+CGREG[=<n>]

OK

ERROR

Parameters

<n>          

0     Disable network registration unsolicited result code

1     Enable network registration unsolicited result code

+CGREG: <stat>

2     Enable network registration and location information unsolicited result code

+CGREG: <stat>[,<lac>,<ci>,<netact>]

4     Enable display gprs time and periodic RAU

<stat>

0     Not registered, MT is not currently searching an operator to register to.The

GPRS service is disabled, the UE is allowed to attach for GPRS if requested by the user.

1     Registered, home network.

2     Not registered, but MT is currently trying to attach or searching an operator to register

to.

The GPRS service is enabled, but an allowable PLMN is currently not available.

The UE will start a GPRS attach as soon as an allowable PLMN is available.

3     Registration denied, The GPRS service is disabled, the UE is not allowed to attach for

GPRS if it is requested by the user.

4     Unknown

5     Registered, roaming

<lac>     String type (string should be included in quotation marks); two byte location area

code in hexadecimal format (e.g. “00C3” equals 195 in decimal)

<ci>     String type (string should be included in quotation marks); two bytes cell ID in

hexadecimal format

<netact>     

0     User-specified GSM access technology

1     GSM compact

3     GSM EGPRS

7     User-specified LTE M1 A GB access technology

9     User-specified LTE NB S1 access technology

<Active-Time>

String type; one byte in an 8 bit format.

Requested Active Time value (T3324) to be allocated to the UE.

The requested Active Time value is coded as one byte (octet 3) of the GPRS Timer 2 information

element coded as bit format (e.g. “00100100” equals 4 minutes).

<Periodic-RAU>

String type; one byte in an 8 bit format.

Requested extended periodic TAU value (T3412) to be allocated to the UE in E-UTRAN.

The requested extended periodic TAU value is coded as one byte (octet 3) of the GPRS Timer 3

information element coded as bit format (e.g. “01000111” equals 70 hours).

<GPRS-READY-timer>

String type; one byte in an 8 bit format.

Requested GPRS READY timer value (T3314) to be allocated to the UE in GERAN/UTRAN.

The requested GPRS READY timer value is coded as one byte (octet 2) of the GPRS Timer

information element coded as bit format (e.g. “01000011” equals 3 decihours or 18 minutes).

 

 

 

 

C0606      AT+CGSMS     Select Service For MO SMS Messages

 

T) AT+CGSMS=?

+CGSMS: (list of currently available <service>s)

 

OK

Parameters

See Write Command

R) AT+CGSMS?

+CGSMS: <service>

 

OK

Parameters

See Write Command

W) AT+CGSMS=<service>

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<service>     A numeric parameter which indicates the service or service preference to be used

0     Packet Domain(value is not really supported and is internally mapped to 2)

1     Circuit switched(value is not really supported and is internally mapped to 3)

2     Packet Domain preferred (use circuit switched if GPRS not available)

3     Circuit switched preferred (use Packet Domain if circuit switched not available)

Parameter Saving Mode AUTO_SAVE

 

 

 

 

C0607      AT+CEREG     Network Registration Status

   

T) AT+CEREG=?

+CEREG: (list of supported <n>s)

OK

Parameters

See Write Command

R) AT+CEREG?

when <n>=0, 1, 2   and command successful:

+CEREG: <n>,<stat>[,[<tac>],[<rac>],[<ci>],[<AcT>]]

 

OK

when <n>=4 and command successful:

+CEREG: <n>,<stat>[,[<tac>],[<rac>],[<ci>],[<AcT>][,,[,[<Active-Time>]

,[<Periodic-TAU>]]]]

 

OK

If error is related to wrong AT syntax or operation not allowed:

+CME ERROR: <err>

Parameters

See Write Command

W) AT+CEREG[=<n>]

OK

or

ERROR

Parameters

<n>          

0     Disable network registration unsolicited result code

1     Enable network registration unsolicited result code +CEREG: <stat>

2     Enable network registration and location information unsolicited result code

+CEREG: <stat>[,[<tac>],[<rac>],[<ci>],[<AcT>]]

4    For a UE that wants to apply PSM, enable network registration and location information

unsolicited result code

+CEREG: <stat>[,[<tac>],[<rac>],[<ci>],[<AcT>][,,[,[<Active- Time>],[<Periodic-RAU>]]]]

<stat>

0     Not registered, MT is not currently searching an operator to register to.The GPRS service is

disabled, the UE is allowed to attach for GPRS if requested by the user.

1     Registered, home network.

2     Not registered, but MT is currently trying to attach or searching an operator to register

to.

The GPRS service is enabled, but an allowable PLMN is currently not available.

The UE will start a GPRS attach as soon as an allowable PLMN is available.

3     Registration denied, The GPRS service is disabled, the UE is not allowed to attach for

GPRS if it is requested by the user.

4     Unknown

5     Registered, roaming

<tac>     String type (string should be included in quotation marks); two byte location area

code in hexadecimal format (e.g. “00C3” equals 195 in decimal)

<ci>     String type (string should be included in quotation marks); two bytes cell ID in

hexadecimal format

<AcT>       

0     User-specified GSM access technology

7     User-specified LTE M1 A GB access technology

9     User-specified LTE NB S1 access technology

<Active-Time>

String type; one byte in an 8 bit format.

Requested Active Time value (T3324) to be allocated to the UE.

The requested Active Time value is coded as one byte (octet 3) of the GPRS Timer 2 information

element coded as bit format (e.g. “00100100” equals 4 minutes).

<Periodic-RAU>

String type; one byte in an 8 bit format.

Requested extended periodic TAU value (T3412) to be allocated to the UE in E-UTRAN.

The requested extended periodic TAU value is coded as one byte (octet 3) of the GPRS Timer 3

information element coded as bit format (e.g. “01000111” equals 70 hours).

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT/GNSS

 

www.simcom.com

 

Viewed Page List