Silo - Tips - at Command For Simcom Tcpip
Silo - Tips - at Command For Simcom Tcpip
General Notes
Simcom offers this information as a service to its customers, to support application and
engineering efforts that use Simcom products. The information provided is based upon
requirements specifically provided to Simcom by the customers. Simcom has not undertaken
any independent search for additional relevant information, including any information that
may be in the customer’s possession. Furthermore, system validation of this Simcom product
within a larger electronic system remains the responsibility of the customer or the customer’s
system integrator. All specifications supplied herein are subject to change.
Copyright
This document contains proprietary technical information which is the property of SIMCOM
Limited., copying of this document and giving it to others and the using or communication of
the contents thereof, are forbidden without express authority. Offenders are liable to the
payment of damages. All rights reserved in the event of grant of a patent or the registration of
a utility model or design. All specification supplied herein are subject to change without
notice at any time.
Page 1 of 18
SIMCOM At Command(TCPIP)For Simcom
SCOPE
This product has standard AT command interface, and can provide GSM call, short message and GPRS
net services, etc.
Please read this user guide carefully. You can realize the powerful function and the easy operation
method of the module.
This module is used in voice or data communication mainly. We are not charge with the duty of
personal injury and property loss for the custom abnormal operation. Please design the corresponding
product according to the technical specification and reference in the handbook. And note the general
safe item when use mobile product especially GSM product.
Page 2 of 18
SIMCOM At Command(TCPIP)For Simcom
CONTENTS
1 Overview
2 Details
2.2 AT+CIPSEND.............................................................................................................................. 5
2.3 AT+CIPCLOSE............................................................................................................................ 6
2.4 AT+CIPSHUT.............................................................................................................................. 7
2.6 AT+CSTT..................................................................................................................................... 7
2.7 AT+CIICR.................................................................................................................................... 8
2.11 AT+CDNSGIP.............................................................................................................................. 9
2.12 AT+CDNSORIP......................................................................................................................... 10
2.14 AT+CIPATS................................................................................................................................ 11
2.20 AT+CIPSRIP.............................................................................................................................. 14
2.24 AT+CIPCCFG............................................................................................................................ 17
Page 3 of 18
SIMCOM At Command(TCPIP)For Simcom
1 Overview
Command Description
AT+CIPSTART START UP TCP OR UDP CONNECTION
AT+CIPSEND SEND DATA THROUGH TCP OR UDP CONNECTION
AT+CIPCLOSE CLOSE CONNECTION
AT+CIPSHUT DEACTIVATE GPRS PDP CONTEXT
AT+CLPORT SET LOCAL PORT
AT+CSTT SET APN, USER NAME, PASSWORD
AT+CIICR BRING UP WIRELESS CONNECTION WITH GPRS OR CSD
AT+CIFSR GET LOCAL IP ADDRESS
AT+CIPSTATUS QUERY CURRENT CONNECTION STATUS
AT+CDNSCFG CONFIGURE DOMAIN NAME SERVER
AT+CDNSGIP QUERY IP ADDRESS OF GIVEN DOMAIN NAME
AT+CDNSORIP CONNECT WITH IP ADDRESS OR DOMAIN NAME SERVER
AT+CIPHEAD ADD AN IP HEADER WHEN RECEIVING DATA
AT+CIPATS SET AUTO SENDING TIMER
AT+CIPSPRT SET PROMPT OF ‘>’ WHEN SENDING DATA
AT+CIPSERVER CONFIGURE AS SERVER
AT+CIPCSGP SET CSD OR GPRS FOR CONNECTION MODE
AT+CIPCCON CHOOSE CONNECTION
AT+CIPFLP FIX LOCAL PORT
AT+CIPSRIP SHOW WHERE RECEIVED DATA FROM
AT+CIPDPDP SET WHETHER CHECK STATE OF GPRS NETWORK TIMING
AT+CIPSCONT SAVE TCPIP APPLICATION CONTEXT
AT+CIPMODE SELECT TCPIP APPLICATION MODE
AT+CIPCCFG CONFIGURE TRANSPARENT TRANSFER MODE
Page 4 of 18
SIMCOM At Command(TCPIP)For Simcom
OK
Parameter
Page 5 of 18
SIMCOM At Command(TCPIP)For Simcom
This command is used to send data on the TCP or UDP connection that has
been established already. Ctrl-Z is used as a termination symbol. There are
at most 1024 bytes that can be sent at a time.
Set command Response
1. There are at most 1024 bytes that can be sent each time.
2. Set the time that send data automatically with the command of
AT+CIPATS.
3. Only send data at the status of established connection, otherwise
Response ERROR
+CIPCLOSE=? OK
Execution command Response
Page 6 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPSHUT=? OK
Execution command Response
+CLPORT? <mode>:<port>
<CR><LF><mode>:<port>
OK
Parameter
+CLPORT=<mod OK
e>,<port> ERROR
Parameter
Page 7 of 18
SIMCOM At Command(TCPIP)For Simcom
OK
Parameter
+CSTT=<apn>,< OK
user ERROR
id>,<password> Parameter
<apn> a string parameter which indicates the GPRS access point name
<user id> a string parameter which indicates the GPRS user name
<password> a string parameter which indicates the GPRS password
Execution Command Response
+CSTT OK
ERROR
+CIICR OK
STATE: <state>
ERROR
Parameter
+CIFSR? OK
Execution command Response
Page 8 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPSTATUS=? OK
Execution command Response
+CIPSTATUS OK
STATE: <state>
Parameter
+CDNSCFG=? OK
Set command Response
+CDNSCFG=<pri OK
_dns>,<sec_dns> ERROR
Parameter
+CDNSGIP=? OK
Set command Response
+CDNSGIP=<do OK
main name> ERROR
If successful, return:
<IP address>
If fail, return:
ERROR: <error code>
STATE: <state>
Parameter
Page 9 of 18
SIMCOM At Command(TCPIP)For Simcom
+CDNSORIP=<m OK
ode> ERROR
Parameter
Page 10 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPHEAD=<mo OK
de> ERROR
Parameter
+CIPATS=<mode OK
>,<time> ERROR
Parameter
Page 11 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPSPRT=<send OK
prompt> ERROR
Parameter
+CIPSERVER OK
ERROR
If configuration as server success, return:
SERVER OK
If configuration as server fail, return:
STATE:<state>
CONNECT FAIL
Parameter
Page 12 of 18
SIMCOM At Command(TCPIP)For Simcom
Parameter
+CIPCSGP=<mo OK
de>,[(<apn>, ERROR
<user name >, Parameter
+CIPCCON=<co OK
nnection> ERROR
Parameter
Page 13 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPFLP=<mode OK
> ERROR
Parameter
2.20 AT+CIPSRIP Set whether display IP address and port of sender when receive data
AT+CIPSRIP Set whether display IP address and port of sender when receive data
Test command Response
Page 14 of 18
SIMCOM At Command(TCPIP)For Simcom
+CIPSRIP=<mod OK
e> ERROR
Parameter
+CIPDPDP? +CIPDPDP:<mode>,<interval>,<timer>
OK
Parameter
+CIPDPDP=<mo OK
de>,<interval>,<ti ERROR
mer> Parameter
<mode>
0 not set detect PDP
1 set detect PDP
<interval>
0<interval<=180(ms)
<timer>
0<timer<=255
Reference Note
Page 15 of 18
SIMCOM At Command(TCPIP)For Simcom
AT+CIPSCONT? TA returns TCPIP Application Context, which consists of the following AT Command
parameters.
Page 16 of 18
SIMCOM At Command(TCPIP)For Simcom
AT+CIPSCONT TA saves TCPIP Application Context which consist of following AT command parameters, and
when system is rebooted, the parameters will be loaded automatically:
OK
+CIPMODE=<m OK
ode > ERROR
Parameter
+CIPMODE ERROR
+CIPCCFG=<Nm OK
Page 17 of 18
SIMCOM At Command(TCPIP)For Simcom
Retry>,<WaitTm> ERROR
,<SendSz>,<esc> Parameter
<NmRetry> number of retries to be made for an IP packet.
<WaitTm> number of 200ms intervals to wait for serial input
before sending the packet.
<SendSz> size in bytes of data block to be received from serial
port before sending.
<esc> whether turn on the escape sequence, default is
TRUE.
Execution Command Response
+CIPCCFG ERROR
Page 18 of 18