
Chapter 17 – TCP App AT Commands
Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide 107
TCP/IP Service Option Handling +WIPOPT
Description: The +WIPOPT command is used to read and/or configure different parameters on sockets.
Syntax: AT+WIPOPT=<protocol>,<idx>,<action>,<optnum>[,<optval>]
AT+WIPOPT=2,1,1,0
Note: Display local port number for connection on TCP
socket 1
+WIPOPT: 2,0,56228
OK
Note: Display is +WIPOPT:
<protocol>,<optnum>,<result>
AT+WIPOPT=2,1,1,2
Note: Display peer IP address of the connection on TCP
socket 1
+WIPOPT: 2,2,"192.168.13.34"
OK
AT+WIPOPT=1,2,1,6
Note: Display bytes available to be read on UDP socket 2
AT+WIPOPT=2,2,2,8,32
Note: Set Time to Live for TCP socket 2 to value of 32
Values: <protocol>
1 UDP
2 TCP client
3 TCP server
<idx>
1-8 Socket or session identifier
<action>
1 Read (<optval> not allowed)
2 Write (<optval> required)
<optnum> Option to read or write (see Options and Values listed next)
<optval> Value of option to write (see Options and Values listed next)
Options and
Values:
Local port number of the socket
Address of the peer socket
Specifies whether the socket is bound to a peer
socket or not. See notes below.
default: 1
Size in bytes of the local transmit buffer.
default: 10240
Size in bytes of the local receive buffer.
default: 16384
Number of bytes that can currently be read on
the socket
When set to TRUE, TCP packets are sent
immediately, even if the buffer is not full
enough.
Commentaires sur ces manuels