Sierra Wireless WISMO218 User Manual Page 59

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 58
WA_DEV_W228_UGD_002 Rev 003 Page 59 of 78
WISMO228 TCP/IP AT Commands
Manual
7. Examples of Application
TCP Socket
TCP Server Socket
Using GPRS Bearer
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 (<login>)
AT+WIPBR=2,6,1,”passwd”
OK
//set password (<password>)
AT+WIPBR=4,6,0
OK
//start GPRS bearer
AT+WIPCREATE=3,1,80,5,8
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, 6, 7 and 8.
//It will accept connection request until it has no more
//sockets left.
+WIPACCEPT: 1,5
//unsolicited: the server accepted a connection resulting
//TCP client on idx 5.
AT+WIPDATA=2,5,1
CONNECT
//exchange data on socket index 5
//read, write
+++
//switch to AT mode
OK
AT+WIPCLOSE=2,5
OK
//close the TCP client socket index 5
Page view 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 78 79

Comments to this Manuals

No comments