Sierra Wireless WISMO218 User Manual Page 74

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 73
WA_DEV_W228_UGD_002 Rev 003 Page 74 of 78
WISMO228 TCP/IP AT Commands
Manual
Creating TCP Client and Server Sockets in the Same WISMO
®
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 requests on port 80.
//Spawned sockets will be given the index 1 or 2. It
//will accept connection request until it has nor more
//sockets 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
abc+++
OK
//data sent to socket index 1 and switched to AT
//mode by giving +++
AT+WIPDATA=2,1,1
CONNECT
//exchange data on socket index 1
Page view 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79

Comments to this Manuals

No comments