Creating A Server And Trying To Create A Tcp Client/Server On A Reserved Index (Reserved By The Server) Will Fail - Sierra Wireless AirPrime WS Series At Command Manual

For firmware l23
Table of Contents

Advertisement

AT Command Manual for Firmware L23
9.7.6.
Creating a Server and Trying to Create a TCP
Client/Server on a Reserved Index (reserved by the
Server) will Fail
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,2,80,1,2
OK
AT+WIPCREATE=2,3,"198.168.0.1",80
OK
+WIPREADY: 2,3
+WIPACCEPT: 2,1
AT+WIPDATA=2,3,1
CONNECT
AT+WIPDATA=2,1,1
CONNECT
[ETX]
+WIPPEERCLOSE: 2,3
AT+WIPCLOSE=3,1
OK
WA_DEV_WISMO_UGD_012
Rev 004
//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=2. The server is
//listening for connection request on port 80. Spawned
//sockets will be given the index 1 or 2.It will accept
//connection request until has nor more socket left.
//create a TCP client towards peer IP device @
//"198.168.0.1", port 80,
//all parameters and IP stack behavior are OK.
//unsolicited: the TCP client socket is connected to the
//peer.
//unsolicited: the server index accepted a connection;
//resulting TCP client on idx 1
//exchange data on socket index 3
//exchange data on socket index 1
//send unescaped ETX character
//unsolicited: peer socket is closed
//close TCP server socket index 1
November 3, 2011
TCP/IP Commands
207

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wismo218Wismo228

Table of Contents