Sierra Wireless WISMO218 User Manual Page 66

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 65
WA_DEV_W228_UGD_002 Rev 003 Page 66 of 78
WISMO228 TCP/IP AT Commands
Manual
Creating a TCP Server, Spawning the Maximum
TCP Sockets (for the Configured Server)
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,1,80,5,6
OK
//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.
+WIPACCEPT: 1,5
//unsolicited: the server accepted a connection
//resulting TCP client on idx 5.
+WIPACCEPT: 1,6
//unsolicited: the server accepted a connection
//resulting TCP client on idx 6.
AT+WIPCLOSE=2,5
//close the spawned TCP client socket index 5.
OK
//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)
Page view 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 78 79

Comments to this Manuals

No comments