Specifications
Chapter 18 – TCP/IP App AT Commands
Multi-Tech Systems, Inc. CDMA AT Commands Reference Guide (PN S000294K) 137
Display Connection Status +WGSS
Description: This command is used to display the current status of the specified socket type. This information includes
the PPP link state, the receive data mode, and the connection state of each potential socket. 20.6.2
Values: <type>
0 TCP
1 UDP
Response Values
<type>
0 TCP
1 UDP
<PPPstate>
0 PPP Closed
1 PPP Initializing
2 PPP Open
<RxMode>
0 Polled; received data must be read using the +WSRX command.
1 Unsolicited; the +WSRX response is sent when socket data is received.
<SocketState>
0 Socket Closed
1 Socket Initializing
2 Socket Open
Syntax: Command syntax: AT+WGSS=<type>
Immediate response: +WGSS: <type>,<PPPstate>,<RxMode>,<SocketState>[,<SocketState>, …]
Command Possible responses
AT+WGSS=?
Note: Display command parameter ranges.
+WGSS: (0-1)
OK
Note: Parameter ranges displayed.
AT+WGSS=0
Note: Display the TCP connection status.
+WGSS: 0,2,1,2,1,0,0
OK
Note: PPP layer is open, unsolicited receive data
mode, TCP socket zero is open, TCP socket one is
initializing, TCP sockets 3 and 4 are closed.
AT+WGSS=1
Note: Display the UDP connection status.
+WGSS: 1,2,0,2,0,0,0
OK
Note: PPP layer is open, polled receive data mode,
UDP socket zero is open.
Configure Socket Transmit Timeout +WTMO
Description: This command is used to configure the socket transmit timeout value. This value is used whenever the
AT+WSTX command is issued by the host application. The timeout value specifies the maximum amount of
time to wait for the data portion of the AT+WSTX command. An ERROR is returned to the host application if
the timer expires.
Values: <time> The number of milliseconds to wait. Default 500 milliseconds.
Syntax Command syntax: AT+WTMO=<time>
Command Possible responses
AT+WTMO=?
Note: Display command parameter ranges.
+WTMO: (500-65535)
OK
Note: Parameter ranges displayed.
AT+WTMO=1000
Note: Set timeout value to 1 second.
OK
Note: Command accepted.
AT+WTMO?
Note: Show configured timeout value.
+WTMO: 1000
OK
Note: Timeout value set to 1 second.