Creating A Tcp Server, Spawning The Maximum Tcp Sockets (For The Configured Server) - Sierra Wireless AirPrime WS Series At Command Manual

For firmware l23
Table of Contents

Advertisement

AT Command Manual for Firmware L23
AT+WIPBR=2,6,0,"user name"
OK
AT+WIPBR=2,6,1,"passwd"
OK
AT+WIPBR=4,6,0
OK
AT+WIPPING="192.168.0.1"
OK
+WIPPING:0,0,224
9.7.5.
Creating a TCP Server, Spawning the Maximum
TCP Sockets (for the Configured Server)
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,6
OK
+WIPACCEPT: 1,5
+WIPACCEPT: 1,6
AT+WIPCLOSE=2,5
OK
WA_DEV_WISMO_UGD_012
Rev 004
//set user name
//set password
//start GPRS bearer
//start PING session
//start IP stack
//open GPRS bearer
//set APN name of GPRS bearer
//set user name
//set 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 or 6. It will accept
//connection request until it has no more socket left.
//unsolicited: the
server
//resulting TCP client on idx 5.
//unsolicited: the
server
//resulting TCP client on idx 6.
//close the spawned TCP client socket index 5.
//now if the peer device try to connect to the server it
//shall receive an accept () immediately followed by an
shutdown() (connection reset by peer)
November 3, 2011
TCP/IP Commands
accepted
a
connection
accepted
a
connection
206

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wismo218Wismo228

Table of Contents