Specifications

Chapter 18 – TCP/IP App AT Commands
Multi-Tech Systems, Inc. CDMA AT Commands Reference Guide (PN S000294K) 140
Socket State Change +WSKS
Description: This unsolicited response indicates a change in a socket state. This response is used to report socket
“Receive data is available” only when the corresponding socket type receive data mode is set to ‘polled’
(+WCRX command).
Response Values:
<type> The socket type associated with this state change.
0 TCP
1 UDP
<socket> The socket number associated with this state change.
<status> The current socket state;
1 Socket is open.
2 Receive data is available.
4 Socket is closed.
Syntax: Response syntax: +WSKS: <type>,<socket>,<state>
Possible responses
+WSKS: 0,0,1
Note: TCP socket zero has opened.
+WSKS: 0,0,2
Note: TCP socket zero has received data available.
+WSKS: 1,0,2
Note: UDP socket zero has received data
available.
+WSKS: 1,1,4
Note: UDP socket one has closed.
Socket Open/Close Error +WSKE
Description: This unsolicited response indicates that an error has occurred during a socket open or close operation.
Response Values:
<type> The socket type associated with this error.
0 TCP
1 UDP
<socket> The socket number associated with this error.
<error> The error indication of the socket. See sections 21.12 and 21.13 for a list of the returned codes
and their meanings.
Syntax: Response syntax: +WSKE: <type>,<socket>,<error>
Possible responses
+WSKE: 0,0,100
Note: Invalid descriptor for TCP socket zero.
+WSKE: 1,1,117
Note: Connection reset on UDP socket one.
Socket Data Transmission Status +WSTX
Description: This unsolicited response indicates the number of bytes transmitted for the most recently used +WSTX
command on the indicated socket.
Response Values:
<type> The socket type associated with this transmission status.
0 TCP
1 UDP
<socket> The socket number associated with this transmission status.
<length> The number of bytes transmitted. This value is an ASCII character decimal number.
Syntax: Response syntax: +WSTX: <type>,<socket>,<length>
Possible responses
+WSTX: 0,0,536
Note: 536 bytes sent on TCP socket zero.
+WSTX: 1,1,600
Note: 600 bytes sent on UDP socket one.