Specifications

Table Of Contents
Chapter 19 Host Application Scenarios
Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide 117
on-line data mode, allowing the single serial channel to carry both AT commands and application data. The
device allows both TCP and UDP connections.
TCP Client Socket Connection
Example, establishes a TCP connection with a remote echo server application.
AT+WIPBR=4,6 // open PPP bearer
OK
+WORG: #777
+WCNT: 33
+WIPBR: 6,1
+WEND: 25
AT+WIPCREATE=2,1,"1.2.3.4",5009 // open TCP connection 1
OK
+WORG: #777
+WCNT: 33
+WIPREADY: 2,1 // connection 1 is open
+WIPDATA: 2,1,35 // data available on connection 1
+WEND: 25
AT+WIPDATA=2,1,2 // enter on-line data mode on connection 1
CONNECT
Welcome to echo server, port 5009
// +++ entered to escape on-line data mode
OK
AT+WIPCLOSE=2,1 // close connection 1
OK
+WORG: #777
+WCNT: 33
+WEND: 25
AT+WIPBR=5,6 // close PPP bearer
OK
+WORG: #777
+WCNT: 33
+WIPBR: 6,0
+WEND: 29
TCP Server Example
The device can also act as a server and wait for incoming connections. In this example, a listening socket is
opened. When a connection is established from a client, the module receives an unsolicited response. When the
client sends data, another unsolicited response is received. The application switches the module to on-line data
mode to read the received data. The client closes the connection and the module receives another unsolicited
response.
Example: