Multitech MTCBA-C-IP-N12 Reference Manual page 177

Cdma modems multimodem, mmcmodem, socketmodem series
Table of Contents

Advertisement

TCP Connection, Polled Bi-Directional Data Transfer
AT+CMEE=1
OK
AT+WGSS=0
+WGSS: 0,0,1,0,0,0,0
OK
AT+WCRX=0,0
OK
AT+WGSS=0
+WGSS: 0,0,0,0,0,0,0
OK
AT+WPPP=0
OK
+WPPP: 201
+WPPP: 200
AT+WGSS=0
+WGSS: 0,2,0,0,0,0,0
OK
AT+WIPC
+WIPC: 68.25.209.28
OK
AT+WOSK=0,12,57,125,2,24
+WOSK: 0,0
OK
+WSKS: 0,0,1
AT+WGSS=0
+WGSS: 0,2,0,2,0,0,0
OK
AT+WSTX=0,0,5,<cr>HELLO
OK
+WSTX: 0,0,5
...
+WSKS: 0,0,2
AT+WSRX=0,0
+WSRX: 0,0,5:WORLD
OK
...
AT+WCSK=0,0
OK
+WSKS: 0,0,4
AT+WPPP=2
OK
+WPPP: 203
+WPPP: 202
TCP Connection, Unsolicited Received Data
For this example, we'll assume that TCP socket zero has been previously opened for some other non-related purpose and TCP
"Unsolicited" receive mode is set.
AT+WOSK=0,168,0,0,2,42
+WOSK: 0,1
OK
+WSKS: 0,1,1
AT+WGSS=0
+WGSS: 0,2,1,2,2,0,0
OK
AT+WSTX=0,1,5,<cr>HELLO
OK
+WSTX: 0,1,5
...
+WSRX: 0,1,5:WORLD
AT+WCSK=0,1
OK
+WSKS: 0,1,4
AT+WGSS=0
+WGSS: 0,2,1,2,0,0,0
OK
Multi-Tech Systems, Inc. CDMA Wireless AT Commands (PN S000294J)
Enable detailed reporting of mobile equipment errors.
Display TCP connection status.
TCP status, PPPstate "closed", RxMode "Unsolicited", All sockets "closed".
Set TCP receive mode; polled received data.
Display TCP connection status.
TCP status, PPPstate "closed", RxMode "Polled", All sockets "closed".
Start a MIP data call and open a PPP session.
Unsolicited response; PPP session startup in progress.
Unsolicited response; PPP session established and available.
Display TCP connection status.
TCP status, PPPstate "open", RxMode "Polled", All sockets "closed".
Display module IP address.
Open a TCP socket to IP address 12.57.125.2 port 24.
TCP socket zero allocated.
Unsolicited response; TCP socket zero is open.
Display TCP connection status.
TCP status, PPPstate "open", RxMode "Polled", Socket zero "open".
Send "HELLO" to TCP socket zero.
Unsolicited response; five bytes transmitted on TCP socket zero.
Unsolicited response; Received data available on socket zero.
Read and clear TCP socket zero data buffer.
Socket zero data "WORLD".
Close TCP socket zero.
Unsolicited response; TCP socket zero is closed.
Close the PPP session and end the data call.
Unsolicited response; PPP session shutdown in progress.
Unsolicited response; PPP session closed.
Open a TCP socket to IP address 168.0.0.2 port 42.
TCP socket one allocated.
Unsolicited response; TCP socket one is open.
Display TCP connection status.
TCP status, PPPstate "open", RxMode "Unsolicited", Socket zero "open",
Socket one "open".
Send "HELLO" to TCP socket one.
Unsolicited response; five bytes transmitted on TCP socket one.
Unsolicited response; 5 bytes of data received on TCP socket one.
"WORLD"
Close TCP socket one.
Unsolicited response; TCP socket one is closed.
Display TCP connection status.
TCP status, PPPstate "open", RxMode "Unsolicited", Socket zero "open",
Socket one "closed".
Chapter 22 – AT Command Examples
177

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MTCBA-C-IP-N12 and is the answer not in the manual?

Questions and answers

Table of Contents