AT Command Manual for Firmware L23
9.7.
Examples of Application
9.7.1.
TCP Socket
9.7.1.1.
TCP Server Socket
9.7.1.1.1.
AT+WIPCFG=1
OK
AT+WIPBR=1,6
OK
AT+WIPBR=2,6,11,"APN name"
OK
AT+WIPBR=2,6,0,"user name"
OK
AT+WIPBR=2,6,1,"passwd"
OK
AT+WIPBR=4,6,0
OK
AT+WIPCREATE=3,1,80,5,8
OK
+WIPACCEPT: 1,5
AT+WIPDATA=2,5,1
CONNECT
...
+++
OK
AT+WIPCLOSE=2,5
OK
WA_DEV_WISMO_UGD_012
Using GPRS Bearer
Rev 004
//start IP stack
//open GPRS bearer
//set APN name of GPRS bearer
//set user name (<login>)
//set password (<password>)
//start GPRS bearer
//create the server on port 80, idx = 1. The server is
// listening for connection request on port 80.
//Spawned sockets will be given the index 5, 6, 7 and 8.
//It will accept connection request until it has no more
//sockets left.
//unsolicited: the server accepted a connection resulting
//TCP client on idx 5.
//exchange data on socket index 5
//read, write
//switch to AT mode
//close the TCP client socket index 5
November 3, 2011
TCP/IP Commands
201