Specifications
Chapter 18 – TCP/IP App AT Commands
Multi-Tech Systems, Inc. CDMA AT Commands Reference Guide (PN S000294K) 134
Start/End PPP Connection +WPPP
Description: This command is used to open or close a PPP session with the carrier. This includes the starting or stopping
of the associated CDMA 1xRTT data call. The module must be in the idle state (no call in progress) when a
new PPP session is requested; otherwise, an error will be returned. When closing the PPP session, all open
sockets are also closed.
Values: <mode>
0 Initiates a 1xRTT data call, either MIP or SIP, with no userID or password. If SIP is used, then the
userID and password provisioned in the module NVRAM are used.
1 Initiates a 1xRTT data call, either MIP or SIP, using the specified userID and password. If SIP is
used, then the specified userID and password is used.
2 Closes the PPP session and ends the data call. All open TCP/UDP sockets must be closed prior to
issuing this command.
<userID> The user identification string to be used to authenticate the SIP connection.
<password> The password string to be used to authenticate the SIP connection.
Note: A MIP data call does not require a userID or password.
Syntax: Command syntax: AT+WPPP=<mode>,<userID>,<password>
Command Possible responses
AT+WPPP=0
Note: Start a data call and initiate a PPP
session.
OK
+WPPP:201 (negotiating)
+WPPP:200 (connected)
Note: PPP session started.
AT+WPPP=2
Note: End the PPP session.
OK
+WPPP:203 (closing)
+WPPP:202 (disconnected)
Note: PPP session ended.
AT+WPPP=1,”johndoe”,”mypassword”
Note: Start a PPP session using the
specified account information.
OK
+WPPP:201 (negotiating)
+WPPP:202 (disconnected)
Note: PPP session failed. Possible invalid account.
AT+WPPP?
Note: Show last used command parameters.
+WPPP: 1,”johndoe”,”mypassword”
OK
Note: Last used command parameters displayed.
Open Socket +WOSK
Description: This command is used to open a socket connection to a server. A PPP session must be established prior to
issuing this command using the AT+WPPP=0 command. The socket connection type, IP address, and IP
port number must be specified. The +WOSK command returns an immediate response that indicates the
socket number that will be associated with the connection request.
A total of four concurrent open socket connections are supported. Any combination of the supported socket
types are permitted. The +WSKE unsolicited response is used to report errors associated with opening
socket connections.
For TCP sockets, once the connection with the server is actually established or has failed, the +WSKS
unsolicited response will be returned to the host application.
For UDP sockets, the +WSKS unsolicited response is returned immediately to the host application following
socket initialization. UDP socket connections are open ended and connectivity with the target server is not
verified as part of the open socket command. A subsequent application layer step is necessary to verify
socket connectivity.
Values: <type>
0 TCP confidential © Page : 247/ 313 This document is the sole and exclusive property of WAVECOM.
Not to be distributed or divulged without prior written agreement. Ce document est la propriété
exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation
préalable.
1 UDP
<ip1 – ip4> The IP address to use for this socket connection. The valid range for each portion of the IP
address is 0 – 255. Ip1 is the MSB and ip4 is the LSB of the IP address. Note that the four IP
address parts must be comma separated.
<port> The port number to be used for this socket connection. Valid port number values are in the
range 0 to 65535.
Response Values
<type>
0 TCP
1 UDP
<socket> The socket number of the potential connection.