Sierra Wireless WISMO218 User Manual Page 67

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 66
WA_DEV_W228_UGD_002 Rev 003 Page 67 of 78
WISMO228 TCP/IP AT Commands
Manual
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
//start IP stack
AT+WIPBR=1,6
OK
//open GPRS bearer
AT+WIPBR=2,6,11,APN name
OK
//set APN name of GPRS bearer
AT+WIPBR=2,6,0,user name
OK
//set user name
AT+WIPBR=2,6,1,passwd
OK
//set password
AT+WIPBR=4,6,0
OK
//start GPRS bearer
AT+WIPCREATE=3,2,80,1,2
OK
//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.
AT+WIPCREATE=2,3,”198.168.0.1”,80
//create a TCP client towards peer IP device @
//“198.168.0.1”, port 80,
OK
//all parameters and IP stack behavior are OK.
+WIPREADY: 2,3
//unsolicited: the TCP client socket is connected to the
//peer.
+WIPACCEPT: 2,1
//unsolicited: the server index accepted a connection;
//resulting TCP client on idx 1
AT+WIPDATA=2,3,1
CONNECT
//exchange data on socket index 3
AT+WIPDATA=2,1,1
CONNECT
//exchange data on socket index 1
[ETX]
//send unescaped ETX character
Page view 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 78 79

Comments to this Manuals

No comments