Beruflich Dokumente
Kultur Dokumente
TCP/IP APP_V1.01
Document Title:
Version:
1.01
Date:
2005-10-20
Created
Release
TCP/IP APP_V1.01
General Notes
Simcom offers this information as a service to its customers, to support application and
engineering efforts that use the products designed by Simcom. 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 customers possession. Furthermore, system validation of this
product designed by Simcom within a larger electronic system remains the responsibility of
the customer or the customers 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.
Copyright SIMCOM Limited. 2005
TCP/IP APP_V1.01
20.10.2005
SCOPE
TCP/IP APP_V1.01
20.10.2005
Revision History
Chapter
Page
12
14
What is new
How to establish a Point to Point connection of TCP with TCP module, and
send data. Delete this chapter.
14
TCP/IP APP_V1.01
20.10.2005
Content
TCP/IP APP_V1.01
20.10.2005
You can establish TCP connection between the module and the server by AT command
( AT+CIPSTART=TCP, IP address of server, port number of the server), if the connection
established successfully, response CONNECT OK will come up from the module.
TCP/IP APP_V1.01
20.10.2005
If the connection established successfully, the IP address and port number of client (module) will
appeared below TCP-Client.
Then you can send data to server with AT+CIPSEND, AT+CIPSEND will response >, then type
TCP/IP APP_V1.01
20.10.2005
the data, press CTRL+Z to send. If send successfully, it will response SEND OK.
If server needs to send data to module, you can type the data in the sending frame, and then
choose the TCP client (module), press send button, the data will be sent.
TCP/IP APP_V1.01
20.10.2005
The data from server will be received and directly displayed at module serial port.
20.10.2005
10
20.10.2005
The reconnection will faster after server close connection or module close connection
(AT+CIPCLOSE). If modules communicate with each other, you must not set this.
11
20.10.2005
If the client connects to the server successfully, it will display the IP address and port of remote
client at server side. And the server can receive the TCP data (not include TCP header) from
remote client. Also you can set the AT+CIPCCON=2, and then use AT+CIPSEND to send data
back to the remote client.
Note: TCP server only supports one TCP connection at present.
TCP/IP APP_V1.01
12
20.10.2005
TCP/IP APP_V1.01
13
20.10.2005
14
20.10.2005
15
20.10.2005
16
20.10.2005
14.6 How to handle incoming call and short message in data mode
RI pin of serial port will give a 50ms low pulse when a call is incoming during data mode.
RI pin will give a 120ms low pulse when a short message is received.
To handle the incoming call or SMS, you need to enter command mode first (using DTR or +++),
and then the module will give the normal unsolicited responses as following:
RING (incoming call)
+CMTISM17 (short message)
And then it is able to answer the call or read the short message.
OK
TCP/IP APP_V1.01
17
20.10.2005
AT&D1
//DTR pin is allowed to switch serial port from data mode to command mode
OK
AT+CIPSTART=TCP,222.66.38.187,5000 //startup a TCP connection
OK
CONNECT
+++
OK
ATO
CONNECT
OK
+CMTISM17
ATO
CONNECT
+++
OK
AT+CIPSHUT
SHUT OK
Example II
AT+CIPMODE=1
OK
AT+CIPCCFG=5,2,1024,1
OK
AT&D1
OK
AT+CIPSCONT
//save parameters of AT+CIPMODE and AT+CIPCCFG
OK
AT&W
//save AT&D1 to profile
OK
AT+CIPSTART=TCP,222.66.38.187,5000
OK
CONNECT
TCP/IP APP_V1.01
20.10.2005
TCP ERROR18
AT+CIPSHUT
SHUT OK
TCP/IP APP_V1.01
19
20.10.2005
Contact us:
Shanghai SIMCom Ltd.
Add: SIM Technology Building, No. 700, Yishan Road, Shanghai,P. R. China 200233
Tel: +86 21 5427 8900
Fax: +86 21 5427 6035
URL: www.sim.com