AT Commands for TCP/IP Application Toolkit
No | Command | Description |
C0801 | AT+CIPMUX | Start up multi-IP connection |
C0802 | AT+CIPSTART | Start up TCP or UDP connection |
C0803 | AT+CIPSEND | Send data through TCP or UDP connection |
C0804 | AT+CIPQSEND | Select data transmitting mode |
C0805 | AT+CIPACK | Query previous connection data transmitting state |
C0806 | AT+CIPCLOSE | Close TCP or UDP connection |
C0807 | AT+CIPSHUT | Deactivate GPRS PDP context |
C0808 | AT+CLPORT | Set local port |
C0809 | AT+CSTT | Start task and set APN, user name, password |
C0810 | AT+CIICR | Bring up wireless connection with GPRS |
C0811 | AT+CIFSR | Get local IP address |
C0812 | AT+CIFSREX | Get Local IP Address extend |
C0813 | AT+CIPSTATUS | Query current connection status |
C0814 | AT+CDNSCFG | Configure domain name server |
C0815 | AT+CDNSGIP | Query the IP address of given domain name |
C0816 | AT+CIPHEAD | Add an IP head at the beginning of a package received |
C0817 | AT+CIPATS | Set auto sending timer |
C0818 | AT+CIPSPRT | Set prompt of ‘>’ when module sends data |
C0819 | AT+CIPSERVER | Configure module as server |
C0820 | AT+CIPCSGP | Set GPRS for connection mode |
C0821 | AT+CIPSRIP | Show remote IP address and port when received data |
C0822 | AT+CIPDPDP | Set whether to check state of GPRS network timing |
C0823 | AT+CIPMODE | Select TCPIP application mode |
C0824 | AT+CIPCCFG | Configure transparent transfer mode |
C0825 | AT+CIPSHOWTP | Display transfer protocol in IP head when received data |
C0826 | AT+CIPUDPMODE | UDP extended mode |
C0827 | AT+CIPRXGET | Get data from network manually |
C0828 | AT+CIPRDTIMER | Set remote delay timer |
C0829 | AT+CIPSGTXT | Select GPRS PDP context |
C0830 | AT+CIPSENDHEX | Set CIPSEND Data Format to HEX |
C0831 | AT+CIPHEXS | Set Output-data Format with suffix |
C0832 | AT+CIPTKA | Set TCP keepalive parameters |
C0833 | AT+CIPOPTION | Enable or Disable TCP nagle algorithm |
C0801 | AT+CIPMUX | Start up multi-IP connection |
C0802 | AT+CIPSTART | Start up TCP or UDP connection |
C0803 | AT+CIPSEND | Send data through TCP or UDP connection |
C0804 | AT+CIPQSEND | Select data transmitting mode |
C0805 | AT+CIPACK | Query previous connection data transmitting state |
C0806 | AT+CIPCLOSE | Close TCP or UDP connection |
C0807 | AT+CIPSHUT | Deactivate GPRS PDP context |
C0808 | AT+CLPORT | Set local port |
C0809 | AT+CSTT | Start task and set APN, user name, password |
C0810 | AT+CIICR | Bring up wireless connection with GPRS |
C0811 | AT+CIFSR | Get local IP address |
C0812 | AT+CIFSREX | Get Local IP Address extend |
C0813 | AT+CIPSTATUS | Query current connection status |
C0814 | AT+CDNSCFG | Configure domain name server |
C0815 | AT+CDNSGIP | Query the IP address of given domain name |
C0816 | AT+CIPHEAD | Add an IP head at the beginning of a package received |
C0817 | AT+CIPATS | Set auto sending timer |
C0818 | AT+CIPSPRT | Set prompt of ‘>’ when module sends data |
C0819 | AT+CIPSERVER | Configure module as server |
C0820 | AT+CIPCSGP | Set GPRS for connection mode |
C0821 | AT+CIPSRIP | Show remote IP address and port when received data |
C0822 | AT+CIPDPDP | Set whether to check state of GPRS network timing |
C0823 | AT+CIPMODE | Select TCPIP application mode |
C0824 | AT+CIPCCFG | Configure transparent transfer mode |
C0825 | AT+CIPSHOWTP | Display transfer protocol in IP head when received data |
C0826 | AT+CIPUDPMODE | UDP extended mode |
C0827 | AT+CIPRXGET | Get data from network manually |
C0828 | AT+CIPRDTIMER | Set remote delay timer |
C0829 | AT+CIPSGTXT | Select GPRS PDP context |
C0830 | AT+CIPSENDHEX | Set CIPSEND Data Format to HEX |
C0831 | AT+CIPHEXS | Set Output-data Format with suffix |
C0832 | AT+CIPTKA | Set TCP keepalive parameters |
C0833 | AT+CIPOPTION | Enable or Disable TCP nagle algorithm |
C0801 AT+CIPMUX Start Up Multi-IP Connection
T) AT+CIPMUX=? |
+CIPMUX: (0,1)
OK |
Parameters See Write Command |
|
R) AT+CIPMUX? |
+CIPMUX: <n>
OK |
Parameters See Write Command |
|
W) AT+CIPMUX=<n> | OK |
Parameters <n> 0 Single IP connection 1 Multi IP connection |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note Only in IP initial state, AT+CIPMUX=1 is effective; Only when multi IP connection and GPRS application are both shut down, AT+CIPMUX=0 is effective. |
C0802 AT+CIPSTART Start Up TCP Or UDP Connection
T) AT+CIPSTART=? |
1) If AT+CIPMUX=0 +CIPSTART: (list of supported <mode>),(<IP address>),(<port>) +CIPSTART: (list of supported <mode>),(<domain name>),(<port>)
OK
2) If AT+CIPMUX=1 +CIPSTART: (list of supported <n>),(list of supported <mode>),(<IP address>),(<port>) +CIPSTART: (list of supported <n>),(list of supported <mode>),(<domain name>),(<port>)
OK |
Parameters See Write Command |
|
W) 1) If single IP connection (+CIPMUX=0) AT+CIPSTART=<mode>,<IP address>,<port> or AT+CIPSTART=<mode>,<domain name>,<port>
2) If multi-IP connection (+CIPMUX=1) AT+CIPSTART=<n>,<mode>,<address>,<port> or AT+CIPSTART=<n>,<mode>,<domain name>,<port> |
1) If single IP connection (+CIPMUX=0) If format is right response OK otherwise response If error is related to ME functionality: +CME ERROR <err> Response when connection exists ALREADY CONNECT Response when connection is successful CONNECT OK Otherwise STATE: <state>
CONNECT FAIL
2) If multi-IP connection (+CIPMUX=1) If format is right OK, otherwise response If error is related to ME functionality: +CME ERROR <err> Response when connection exists <n>,ALREADY CONNECT If connection is successful <n>,CONNECT OK Otherwise <n>,CONNECT FAIL |
Parameters <n> 0..7 A numeric parameter which indicates the connection number <mode> A string parameter which indicates the connection type “TCP” Establish a TCP connection “UDP” Establish a UDP connection <IP address> A string parameter which indicates remote server IP address <port> Remote server port <domain name> A string parameter which indicates remote server domain name <state> A string parameter which indicates the progress of connecting 0 IP INITIAL 1 IP START 2 IP CONFIG 3 IP GPRSACT 4 IP STATUS 5 TCP CONNECTING/UDP CONNECTING/SERVER LISTENING 6 CONNECT OK 7 TCP CLOSING/UDP CLOSING 8 TCP CLOSED/UDP CLOSED 9 PDP DEACT In Multi-IP state: 0 IP INITIAL 1 IP START 2 IP CONFIG 3 IP GPRSACT 4 IP STATUS 5 IP PROCESSING 9 PDP DEACT |
|
Parameter Saving Mode | NO_SAVE |
Max Response Time |
When mode is multi-IP state, the max response time75 seconds. When mode is single state, and the state is IP INITIAL, the max response time is 160 seconds. |
Reference |
Note This command allows establishment of a TCP/UDP connection only when the state is IP INITIAL or IP STATUS when it is in single state. In multi-IP state, the state is in IP STATUS only. So it is necessary to process “AT+CIPSHUT” before user establishes a TCP/UDP connection with this command when the state is not IP INITIAL or IP STATUS. When module is in multi-IP state, before this command is executed, it is necessary to process “AT+CSTT, AT+CIICR, AT+CIFSR“. |
C0803 AT+CIPSEND Send Data Through TCP Or UDP Connection
T) AT+CIPSEND=? |
1) For single IP connection (+CIPMUX=0) +CIPSEND: <length>
OK
2) For multi IP connection (+CIPMUX=1) +CIPSEND: (0-7),<length>
OK |
Parameters See Write Command |
|
R) AT+CIPSEND? |
1) For single IP connection (+CIPMUX=0) +CIPSEND: <size>
OK
2) For multi IP connection (+CIPMUX=1) +CIPSEND: <n>,<size>
OK |
Parameters <n> A numeric parameter which indicates the connection number <size> A numeric parameter which indicates the data length sent at a time |
|
W) 1) If single IP connection (+CIPMUX=0) AT+CIPSEND=<length>
2) If multi IP connection (+CIPMUX=1) AT+CIPSEND=<n>[,<length>] |
This Command is used to send changeable length data If single IP is connected (+CIPMUX=0) If connection is not established or module is disconnected: If error is related to ME functionality: +CME ERROR <err> If sending is successful: When +CIPQSEND=0 SEND OK When +CIPQSEND=1 DATA ACCEPT: <length> If sending fails: SEND FAIL If multi IP connection is established (+CIPMUX=1) If connection is not established or module is disconnected: If error is related to ME functionality: +CME ERROR <err> If sending is successful: When +CIPQSEND=0 <n>,SEND OK When +CIPQSEND=1 DATA ACCEPT: <n>,<length> If sending fails: <n>,SEND FAIL |
Parameters <n> A numeric parameter which indicates the connection number <length> A numeric parameter which indicates the length of sending data, it must be less than <size> |
|
E) AT+CIPSEND Response “>”, then type data for send, tap CTRL+Z to send, tap ESC to cancel the operation |
This Command is used to send changeable length data. If single IP connection is established (+CIPMUX=0) If connection is not established or module is disconnected: If error is related to ME functionality: +CME ERROR <err> If sending is successful: When +CIPQSEND=0 SEND OK When +CIPQSEND=1 DATA ACCEPT: <length> If sending fails: SEND FAIL
Note This Command can only be used in single IP connection mode (+CIPMUX=0) and to send data on the TCP or UDP connection that has been established already. Ctrl-Z is used as a termination symbol. ESC is used to cancel sending data. There are at most <size> bytes which can be sent at a time. |
Parameter Saving Mode | NO_SAVE |
Max Response Time | When +CIPQSEND=0 and the remote server no response, after 645 seconds, “CLOSE” will be reported. |
Reference |
Note The data length which can be sent depends on network status. Set the time that send data automatically with the Command of AT+CIPATS. Only send data at the status of established connection. |
C0804 AT+CIPQSEND Select Data Transmitting Mode
T) AT+CIPQSEND=? |
+CIPQSEND: (0,1)
OK |
Parameters See Write Command |
|
R) AT+CIPQSEND? |
+CIPQSEND: <n>
OK |
Parameter See Write Command |
|
W) AT+CIPQSEND=<n> | OK |
Parameters <n> 0 Normal mode – when the server receives TCP data, it will response SEND OK. 1 Quick send mode – when the data is sent to module, it will response DATA ACCEPT: <length> (For single IP connection (+CIPMUX=0)) or DATA ACCEPT: <n>,<length> (For multi IP connection (+CIPMUX=1)) while not responding SEND OK. |
|
Parameter Saving Mode | NO_SAVE |
C0805 AT+CIPACK Query Previous Connection Data Transmitting State
T) AT+CIPACK=? | OK |
W) If multi IP connection (+CIPMUX=1) AT+CIPACK=<n> |
+CIPACK: <txlen>,<acklen>,<nacklen>
OK |
Parameters <n> A numeric parameter which indicates the connection number <txlen> The data amount which has been sent <acklen> The data amount confirmed successfully by the server <nacklen> The data amount without confirmation by the server |
|
E) If single IP connection (+CIPMUX=0) AT+CIPACK |
+CIPACK: <txlen>,<acklen>,<nacklen>
OK |
Parameters See Write Command |
|
Parameter Saving Mode | NO_SAVE |
C0806 AT+CIPCLOSE Close TCP Or UDP Connection
T) AT+CIPCLOSE=? | OK |
W) 1) If single IP connection (+CIPMUX=0) AT+CIPCLOSE=<n> 2) If multi IP connection (+CIPMUX=1) AT+CIPCLOSE=<id>,[<n>] |
1) For single IP connection (+CIPMUX=0) CLOSE OK
2) For multi IP connection (+CIPMUX=1) <id>,CLOSE OK |
Parameters <n> 0 Slow close 1 Quick close <id> A numeric parameter which indicates the connection number |
|
E) AT+CIPCLOSE |
If close is successfully: CLOSE OK If close fails: ERROR |
Parameter Saving Mode | NO_SAVE |
Reference |
Note AT+CIPCLOSE only closes connection at corresponding status of TCP/UDP stack. To see the status use AT+CIPSTATUS command. Status should be: TCP CONNECTING, UDP CONNECTING, SERVER LISTENING or CONNECT OK in single-connection mode (see <state> parameter); CONNECTING or CONNECTED in multi-connection mode (see <client state>); OPENING or LISTENING in multi-connection mode (see <server state>). Otherwise it will return “ERROR”. |
C0807 AT+CIPSHUT Deactivate GPRS PDP Context
T) AT+CIPSHUT=? | OK |
E) AT+CIPSHUT |
If close is successful: SHUT OK If close fails: ERROR |
Parameter Saving Mode | NO_SAVE |
Max Response Time | 65 seconds |
Reference |
Note If this command is executed in multi-connection mode, all of the IP connection will be shut. User can close gprs pdp context by AT+CIPSHUT. After it is closed, the status is IP INITIAL. If “+PDP: DEACT” urc is reported which means the gprs is released by the network, then user still needs to execute “AT+CIPSHUT” command to make PDP context come back to original state. |
C0808 AT+CLPORT Set Local Port
T) AT+CLPORT=? |
1) For single IP connection (+CIPMUX=0) +CLPORT: (“TCP”,”UDP”),(0-65535)
OK
2) For multi IP connection (+CIPMUX=1) +CLPORT: (0-7),(“TCP”,”UDP”),(0-65535)
OK |
Parameters See Write Command |
|
R) AT+CLPORT? |
1) For single IP connection (+CIPMUX=0) +CLPORT: <TCP port>,<UDP port>
OK
2) For multi IP connection (+CIPMUX=1) +CLPORT: 0,<TCP port>,<UDP port> +CLPORT: 1,<TCP port>,<UDP port> +CLPORT: 2,<TCP port>,<UDP port> +CLPORT: 3,<TCP port>,<UDP port> +CLPORT: 4,<TCP port>,<UDP port> +CLPORT: 5,<TCP port>,<UDP port> +CLPORT: 6,<TCP port>,<UDP port> +CLPORT: 7,<TCP port>,<UDP port>
OK |
Parameters See Write Command |
|
W) 1) For single IP connection (+CIPMUX=0) AT+CLPORT=<mode>,<port>
2) For multi IP connection (+CIPMUX=1) AT+CLPORT=<n>,<mode>,<port> |
OK or ERROR |
Parameters <n> 0..7 A numeric parameter which indicates the connection number this used in multi IP connection <mode> A string parameter which indicates the connection type “TCP” TCP local port “UDP” UDP local port <port> 0-65535 A numeric parameter which indicates the local port. Default value is 0, a port can be dynamically allocated a port. |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command will be effective when module is set as a Client. |
C0809 AT+CSTT Start Task And Set APN, USER NAME, PASSWORD
T) AT+CSTT=? |
+CSTT: “APN”,”USER”,”PWD”
OK |
Parameters See Write Command |
|
R) AT+CSTT? |
+CSTT: <apn>,<user name>,<password>
OK |
Parameters See Write Command |
|
W) AT+CSTT=<apn>,<user name>,<password> |
OK or ERROR |
Parameters <apn> A string parameter which indicates the GPRS access point name. The max length is 50 bytes.Defautl value is “CMNET“. <user name> A string parameter which indicates the GPRS user name. The max length is 50 bytes. <password> A string parameter which indicates the GPRS password. The max length is 50 bytes. |
|
Parameter Saving Mode | NO_SAVE |
E) AT+CSTT |
OK or ERROR |
Reference |
Note The write command and execution command of this command is valid only at the state of IP INITIAL. After this command is executed, the state will be changed to IP START. |
C0810 AT+CIICR Bring Up Wireless Connection With GPRS
T) AT+CIICR=? | OK |
E) AT+CIICR |
OK or ERROR |
Parameter Saving Mode | NO_SAVE |
Max Response Time | 85 seconds |
Reference |
Note AT+CIICR only activates moving scene at the status of IP START, after operating this Command is executed, the state will be changed to IP CONFIG. After module accepts the activated operation, if it is activated successfully, module state will be changed to IP GPRSACT, and it responds OK, otherwise it will respond ERROR. |
C0811 AT+CIFSR Get Local IP Address
T) AT+CIFSR=? | OK |
E) AT+CIFSR |
<IP address> or ERROR |
Parameter <IP address> A string parameter which indicates the IP address assigned from GPRS |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note Only after PDP context is activated, local IP address can be obtained by AT+CIFSR, otherwise it will respond ERROR. To see the status use AT+CIPSTATUS command. Status should be: IP GPRSACT, TCP CONNECTING, UDP CONNECTING, SERVER LISTENING, IP STATUS, CONNECT OK, TCP CLOSING, UDP CLOSING, TCP CLOSED, UDP CLOSED in single-connection mode (see <state> parameter); IP STATUS, IP PROCESSING in multi-connection mode (see <state> parameter). |
C0812 AT+CIFSREX Get Local IP Address Extend
T) AT+CIFSREX=? | OK |
E) AT+CIFSREX |
+CIFSREX: <IP address>
OK |
Parameter <IP address> A string parameter which indicates the IP address assigned from GPRS |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note Only after PDP context is activated, local IP address can be obtained by AT+CIFSR, otherwise it will respond ERROR. To see the status use AT+CIPSTATUS command. Status should be: IP GPRSACT, TCP CONNECTING, UDP CONNECTING, SERVER LISTENING, IP STATUS, CONNECT OK, TCP CLOSING, UDP CLOSING, TCP CLOSED, UDP CLOSED in single-connection mode (see <state> parameter); IP STATUS, IP PROCESSING in multi-connection mode (see <state> parameter). |
C0813 AT+CIPSTATUS Query Current Connection Status
T) AT+CIPSTATUS=? | OK |
W) If multi IP connection mode (+CIPMUX=1) AT+CIPSTATUS=<n> |
+CIPSTATUS: <n>,<bearer>,<TCP/UDP>,<IP address>,<port>,<client state>
OK |
Parameters See Execution Command |
|
E) AT+CIPSTATUS |
1) If in single connection mode (+CIPMUX=0) OK
STATE: <state>
2) If in multi-connection mode (+CIPMUX=1) OK
STATE: <state> If the module is set as server S: 0,<bearer>,<port>,<server state> C: <n>,<bearer>,<TCP/UDP>,<IP address>,<port>,<client state> |
Parameters <n> 0-7 A numeric parameter which indicates the connection number <bearer> 0-1 GPRS bearer, default is 0 <server state> OPENING LISTENING CLOSING <client state> INITIAL CONNECTING CONNECTED REMOTE CLOSING CLOSING CLOSED <state> A string parameter which indicates the progress of connecting 0 IP INITIAL 1 IP START 2 IP CONFIG 3 IP GPRSACT 4 IP STATUS 5 TCP CONNECTING/UDP CONNECTING/SERVER LISTENING 6 CONNECT OK 7 TCP CLOSING/UDP CLOSING 8 TCP CLOSED/UDP CLOSED 9 PDP DEACT In Multi-IP state: 0 IP INITIAL 1 IP START 2 IP CONFIG 3 IP GPRSACT 4 IP STATUS 5 IP PROCESSING 9 PDP DEACT |
|
Parameter Saving Mode | NO_SAVE |
C0814 AT+CDNSCFG Configure Domain Name Server
T) AT+CDNSCFG=? |
+CDNSCFG: (“Primary DNS”),(“Secondary DNS”)
OK |
Parameters See Write Command |
|
R) AT+CDNSCFG? |
PrimaryDns: <pri_dns> SecondaryDns: <sec_dns>
OK |
Parameter See Write Command |
|
W) AT+CDNSCFG=<pri_dns>[,<sec_dns>] |
OK or ERROR |
Parameters <pri_dns> A string parameter which indicates the IP address of the primary domain name server. Default value is 0.0.0.0. <sec_dns> A string parameter which indicates the IP address of the secondary domain name server. Default value is 0.0.0.0. |
|
Parameter Saving Mode | NO_SAVE |
C0815 AT+CDNSGIP Query The IP Address Of Given Domain Name
T) AT+CDNSGIP=? | OK |
W) AT+CDNSGIP=<domain name> |
OK or ERROR If successful, return: +CDNSGIP: 1,<domain name>,<IP1>[,<IP2>] If fail, return: +CDNSGIP:0,<dns error code> |
Parameters <domain name> A string parameter which indicates the domain name <IP1> A string parameter which indicates the first IP address corresponding to the domain name <IP2> A string parameter which indicates the second IP address corresponding to the domain name <dns error code> A numeric parameter which indicates the error code 8 DNS COMMON ERROR 3 NETWORK ERROR There are some other error codes as well. |
|
Parameter Saving Mode | NO_SAVE |
C0816 AT+CIPHEAD Add An IP Head At The Beginning Of A Package Received
T) AT+CIPHEAD=? |
+CIPHEAD: (list of supported <mode>s)
OK |
Parameter See Write Command |
|
R) AT+CIPHEAD? |
+CIPHEAD: <mode>
OK |
Parameters See Write Command |
|
W) AT+CIPHEAD=<mode> |
OK or ERROR |
Parameters <mode> A numeric parameter which indicates whether an IP header is added to the received data or not. 0 Not add IP header 1 Add IP header, the format is:
1) For single IP connection (+CIPMUX=0) +IPD,<data length>:
2) For multi IP connection (+CIPMUX=1) +RECEIVE,<n>,<data length>: |
|
Parameter Saving Mode | NO_SAVE |
C0817 AT+CIPATS Set Auto Sending Timer
T) AT+CIPATS=? |
+CIPATS: (list of supported <mode>s),(list of supported <time>)
OK |
Parameters See Write Command |
|
R) AT+CIPATS? |
+CIPATS: <mode>,<time>
OK |
Parameters See Write Command |
|
W) AT+CIPATS=<mode>[,<time>] |
OK or ERROR |
Parameters <mode> A numeric parameter which indicates whether set timer when module is sending data 0 Not set timer when module is sending data 1 Set timer when module is sending data <time> 1..100 A numeric parameter which indicates the seconds after which the data will be sent |
|
Parameter Saving Mode | NO_SAVE |
C0818 AT+CIPSPRT Set Prompt Of ‘>’ When Module Sends Data
T) AT+CIPSPRT=? |
+CIPSPRT: (list of supported <send prompt>s)
OK |
Parameters See Write Command |
|
R) AT+CIPSPRT? |
+CIPSPRT: <send prompt>
OK |
Parameters See Write Command |
|
W) AT+CIPSPRT=<send prompt> |
OK or ERROR |
Parameters <send prompt> A numeric parameter which indicates whether to echo prompt ‘>’ after module issues AT+CIPSEND command. 0 It shows “send ok” but does not prompt echo ‘>’ when sending is successful. 1 It prompts echo ‘>’ and shows “send ok” when sending is successful. 2 It neither prompts echo ‘>’ nor shows “send ok” when sending is successful. |
|
Parameter Saving Mode | NO_SAVE |
C0819 AT+CIPSERVER Configure Module As Server
T) AT+CIPSERVER=? |
+CIPSERVER: (0-CLOSE SERVER, 1-OPEN SERVER),(1-65535)
OK |
Parameters See Write Command |
|
R) AT+CIPSERVER? |
+CIPSERVER: <mode>[,<port>,<channel id>,<bearer>]
OK |
Parameters See Write Command |
|
W) AT+CIPSERVER=<mode>[,<port>] |
OK or ERROR |
Parameters <mode> 0 Close server 1 Open server <port> 1..65535 Listening port <channel id> Channel id <bearer> GPRS bearer |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command is allowed to establish a TCP server only when the state is IP INITIAL or IP STATUS when it is in single state. In multi-IP state, the state is in IP STATUS only. |
C0820 AT+CIPCSGP Set GPRS For Connection Mode
T) AT+CIPCSGP=? |
+CIPCSGP: 1-GPRS,APN,USER NAME,PASSWORD
OK |
Parameters See Write Command |
|
R) AT+CIPCSGP? |
+CIPCSGP: <mode>,<apn>,<user name>,<password>[,<rate>]
OK |
Parameters See Write Command |
|
W) AT+CIPCSGP=<mode> [,(<apn>,<user name>,<password>)] |
OK or ERROR |
Parameters <mode> A numeric parameter which indicates the wireless connection mode 1 set GPRS as wireless connection mode <apn> A string parameter which indicates the access point name <user name> A string parameter which indicates the user name <password> A string parameter which indicates the password |
|
Parameter Saving Mode | NO_SAVE |
C0821 AT+CIPSRIP Show Remote IP Address And Port When Received Data
T) AT+CIPSRIP=? |
+CIPSRIP: (list of supported <mode>s)
OK |
Parameters See Write Command |
|
R) AT+CIPSRIP? |
+CIPSRIP: <mode>
OK |
Parameters See Write Command |
|
W) AT+CIPSRIP=<mode> |
OK or ERROR |
Parameters <mode> A numeric parameter which shows remote IP address and port. 0 Do not show the prompt 1 Show the prompt, the format is as follows:
1) For single IP connection (+CIPMUX=0) RECV FROM:<IP ADDRESS>:<PORT>
1) For multi IP connection (+CIPMUX=1) +RECEIVE,<n>,<data length>,<IP ADDRESS>:<PORT> |
|
Parameter Saving Mode | NO_SAVE |
C0822 AT+CIPDPDP Set Whether To Check State Of GPRS Network Timing
T) AT+CIPDPDP=? |
+CIPDPDP: (list of supported<mode>s, list of supported <interval>,list of supported <timer>)
OK |
Parameters See Write Command |
|
R) AT+CIPDPDP? |
+CIPDPDP: <mode>,<interval>,<timer>
OK |
Parameters See Write Command |
|
W) AT+CIPDPDP=<mode> [,<interval>,<timer>] |
OK or ERROR |
Parameters <mode> 0 Not set detect PDP 1 Set detect PDP <interval> 1<=interval<=180(s), default value is 10. <timer> 1<=timer<=10, default value is 3. |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note If “+PDP: DEACT” urc is reported because of module not attaching to gprs for a certain time or other reasons, user still needs to execute “AT+CIPSHUT” command makes PDP context come back to original state. |
C0823 AT+CIPMODE Select TIPIP Application Mode
T) AT+CIPMODE=? |
+CIPMODE: (0-NORMAL MODE,1-TRANSPARENT MODE)
OK |
Parameters See Write Command |
|
R) AT+CIPMODE? |
+CIPMODE: <mode>
OK |
Parameters See Write Command |
|
W) AT+CIPMODE=<mode> |
OK or ERROR |
Parameters <mode> 0 Normal mode 1 Transparent mode |
|
Parameter Saving Mode | NO_SAVE |
C0824 AT+CIPCCFG Configure Transparent Transfer Mode
T) AT+CIPCCFG=? |
+CIPCCFG: (NmRetry:3-8),(WaitTm:1-10),(SendSz:1-1460),(esc:0,1) ,(Rxmode:0,1),( RxSize:50-1460) ,(Rxtimer:20-1000)
OK |
Parameters See Write Command |
|
R) AT+CIPCCFG? |
+CIPCCFG: <NmRetry>,<WaitTm>,<SendSz>,<esc>,<Rxmode>,<RxSize>,<Rxtimer>
OK |
Parameters See Write Command |
|
W) AT+CIPCCFG=<NmRetry>,<WaitTm>, <SendSz>,<esc>[,<Rxmode>,< RxSize>,<Rxtimer>] |
OK or ERROR |
Parameters <NmRetry> Number of retries to be made for an IP packet.Default value is 5. <WaitTm> Number of 100ms intervals to wait for serial input before sending the packet. Default value is 2. <SendSz> Size in bytes of data block to be received from serial port before sending. Default value is 1024. <esc> Whether turn on the escape sequence, default is TRUE. 0 Turn off the escape sequence 1 Turn on the escape sequence <Rxmode> Whether to set time interval during output data from serial port. 0 output data to serial port without interval 1 output data to serial port within <Rxtimer> interval. <RxSize> Output data length for each time. Default value is 1460. <Rxtimer> Time interval (ms) to wait for serial port to output data again. Default value: 50ms |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command will be effective only in single connection mode (+CIPMUX=0) |
C0825 AT+CIPSHOWTP Display Transfer Protocol In IP Head When Received Data
T) AT+CIPSHOWTP=? |
+CIPSHOWTP: (list of supported <mode>s)
OK |
Parameters See Write Command |
|
R) AT+CIPSHOWTP? |
+CIPSHOWTP: <mode>
OK |
Parameters See Write Command |
|
W) AT+CIPSHOWTP=<mode> |
OK or ERROR Parameters <mode> A numeric parameter which indicates whether to display transfer protocol in IP header to received data or not 0 Not display transfer protocol 1 Display transfer protocol, the format is “+IPD, <data size>,<TCP/UDP>:<data>” |
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command will be effective only in single connection mode (+CIPMUX=0). Only when +CIPHEAD is set to 1, the setting of this command will work. |
C0826 AT+CIPUDPMODE UDP Extended Mode
T) AT+CIPUDPMODE=? |
1) For single IP connection (+CIPMUX=0) +CIPUDPMODE: (0-2),(“(0-255).(0-255).(0-255).(0-255)”),(1-65535)
OK
2) For multi IP connection (+CIPMUX=1) +CIPUDPMODE: (0-5),(0-2),(“(0-255).(0-255).(0-255).(0-255)”),(1-65535)
OK |
Parameters See Write Command |
|
R) AT+CIPUDPMODE? |
1) For single IP connection (+CIPMUX=0) +CIPUDPMODE: <mode>[,<IP address>,<Port>]
OK
2) For multi IP connection (+CIPMUX=1) +CIPUDPMODE: 0,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 1,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 2,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 3,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 4,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 5,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 6,<mode>[,<IP address>,<Port>] +CIPUDPMODE: 7,<mode>[,<IP address>,<Port>]
OK |
Parameter See Write Command |
|
W) 1) For single IP connection (+CIPMUX=0) AT+CIPUDPMODE=<mode>[,<IP address>,<Port>] 2) For multi IP connection (+CIPMUX=1) AT+CIPUDPMODE=<n>,<mode>[,<IP address>,<Port>] |
OK or ERROR |
<n> 0-7 A numeric parameter which indicates the connection number <mode> 0 UDP Normal Mode 1 UDP Extended Mode 2 Set UDP address to be sent <IP address> A string parameter which indicates remote IP address <port> Remote port |
|
Parameter Saving Mode | NO_SAVE |
C0827 AT+CIPRXGET Get Data From Network Manually
T) AT+CIPRXGET=? |
If single IP connection (+CIPMUX=0) +CIPRXGET: (list of supported <mode>s),(list of supported <reqlength>)
OK If multi IP connection (+CIPMUX=1) +CIPRXGET: (list of supported <mode>s), (list of supported <id>s) , (list of supported <reqlength>)
OK |
Parameters See Write Command |
|
R) AT+CIPRXGET? |
+CIPRXGET: <mode>
OK |
Parameters See Write Command |
|
W) 1) If single IP connection (+CIPMUX=0)
AT+CIPRXGET=<mode>[,<reqlength>] 2) If multi IP connection (+CIPMUX=1)
AT+CIPRXGET=<mode>[,<id>,<reqlength>] |
OK or ERROR
1)For single IP connection If “AT+CIPSRIP=1” is set, IP address and port are contained. if <mode>=1 +CIPRXGET: 1[,<IP ADDRESS>:<PORT>] if <mode>=2 +CIPRXGET: 2,<reqlength>,<cnflength>[,<IP ADDRESS>:<PORT>] 1234567890… OK if <mode>=3 +CIPRXGET: 3,<reqlength>,<cnflength>[,<IP ADDRESS>:<PORT>] 5151… OK if <mode>=4 +CIPRXGET: 4,<cnflength>
OK
2)For multi IP connection If “AT+CIPSRIP=1” is set, IP address and port is contained. if <mode>=1 +CIPRXGET: 1[,<id>,<IP ADDRESS>:<PORT>] if <mode>=2 +CIPRXGET: 2,<id>,<reqlength>,<cnflength>[,<IP ADDRESS>:<PORT>] 1234567890… OK if <mode>=3 +CIPRXGET: 3,<id>,<reqlength>,<cnflength>[,<IP ADDRESS>:<PORT>] 5151… OK if <mode>=4 +CIPRXGET: 4,<id>,<cnflength>
OK
If error is related to ME functionality: +CME ERROR: <err> |
Parameters <mode> 0 Disable getting data from network manually, the module is set to normal mode, data will be pushed to TE directly. 1 Enable getting data from network manually. 2 The module can get data, but the length of output data can not exceed 1460 bytes at a time. 3 Similar to mode 2, but in HEX mode, which means the module can get 730 bytes maximum at a time. 4 Query how many data are not read with a given ID. <id> A numeric parameter which indicates the connection number <reqlength> Requested number of data bytes (1-1460 bytes)to be read. If <mode>=4, the range of <reqlength> is 0-2920bytes. <cnflength> Confirmed number of data bytes to be read, which may be less than <length>. 0 indicates that no data can be read. |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note To enable this function, parameter <mode> must be set to 1 before connection. |
C0828 AT+CIPRDTIMER Set Remote Delay Timer
T) AT+CIPRDTIMER=? |
+CIPRDTIMER: (100-4000),(100-7000)
OK |
Parameters See Write Command |
|
R) AT+CIPRDTIMER? |
+CIPRDTIMER: <rdsigtimer>,<rdmuxtimer>
OK |
Parameters See Write Command |
|
W) AT+CIPRDTIMER=<rdsigtimer>,<rdmuxtimer> |
OK If error is related to ME functionality: +CME ERROR: <err> |
Parameters <rdsigtimer> Remote delay timer of single connection. Default value is 2000. <rdmuxtimer> Remote delay timer of multi-connections. Default value is 3500. |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command is used to shorten the disconnect time locally when the remote server has been disconnected. |
C0829 AT+CIPSGTXT Select GPRS PDP Context
T) AT+CIPSGTXT=? |
+CIPSGTXT: (0,1)
OK |
Parameters See Write Command |
|
W) AT+CIPSGTXT=<mode> |
OK If error is related to ME functionality: +CME ERROR: <err> |
Parameters <mode> 0 Select first PDP context 1 Select second PDP context |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note This command is used to select pdp context, only for multi IP connection (+CIPMUX=1). |
C0830 AT+CIPSENDHEX Set CIPSEND Data Format To Hex
T) AT+CIPSENDHEX=? |
+ CIPSENDHEX: (0,1)
OK |
Parameters See Write Command |
|
W) AT+CIPSENDHEX=<mode> |
OK If error is related to ME functionality: +CME ERROR: <err> |
Parameters <mode> 0 The default format of output data in AT+CIPSEND. 1 Set the input data in HEX format when using CIPSEND command to send data. |
|
Parameter Saving Mode | NO_SAVE |
C0831 AT+CIPHEXS Set Output-Data Format With Suffix
T) AT+CIPHEXS=? |
+CIPHEXS: (list of supported <mode>s)
OK |
Parameters See Write Command |
|
W) AT+CIPHEXS=<mode> |
OK If error is related to ME functionality: +CME ERROR: <err> |
Parameters <mode> 0 The default format of output data 1 Set the output data with suffix “0d 0a” 2 Set the output data in HEX format with suffix “0d 0a”. |
|
Parameter Saving Mode | NO_SAVE |
Reference |
Note: This command is only available when “AT+CIPHEAD=1”. |
C0832 AT+CIPTKA Set TCP Keepalive Parameters
T) AT+CIPTKA=? |
+CIPTKA: (list of supported <mode>s),(list of supported <keepIdle>s) ,(list of supported <keepInterval>),(list of supported <keepCount>s)
OK |
Parameters See Write Command |
|
R) AT+CIPTKA? |
+CIPTKA: <mode>,<keepIdle>,<keepInterval>,<keepCount>
OK |
Parameters See Write Command |
|
W) AT+CIPTKA=<mode>[, <keepIdle>[,<keepInter val>[,<keepCount>]]] |
OK If error is related to ME functionality: ERROR |
Parameters <mode> Set TCP keepalive option. 0 Disable TCP keep alive mechanism 1 Enable TCP keep alive mechanism <keepIdle> Integer type; Idle time (in second) before TCP send the initial keepalive probe. 30-7200 <keepInterval> Interval time (in second) between keepalive probes retransmission. 30-75-600 <keepCount> Integer type; Maximum number of keepalive probes to be sent. 1-9 |
|
Parameter Saving Mode | NO_SAVE |
C0833 AT+CIPOPTION Enable Or Disable TCP Nagle Algorithm
T) AT+CIPOPTION=? |
+CIPOPTION: (list of supported <mode>s)
OK |
Parameters See Write Command |
|
R) AT+CIPOPTION? |
+CIPOPTION: <mode>
OK |
Parameters See Write Command |
|
W) AT+CIPOPTION=<mode> |
OK If error is related to ME functionality: ERROR |
Parameters <mode> Config to enable or disable TCP nagle algorithm 0 Enable TCP nagle algorithm 1 Disable TCP nagle algorithm |
|
Parameter Saving Mode | NO_SAVE |