Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
58
9.3 Querying the PPP Connection Status: +PPPSTATUS
Description
To query the PPP connection status
Format
AT+PPPSTATUS
Parameter
N/A
Return
Value
+PPPSTATUS:<status>
<status>
CLOSED: No PPP link, the dialing connection is closed.
OPENED: The PPP link is activated, the dialing connection is opened.
*: Opening or closing
Example
AT+PPPSTATUS
+PPPSTATUS:CLOSED
OK
The dialing connection is closed.
AT+PPPSTATUS
+PPPSTATUS:OPENED
OK
The dialing connection is opened.
AT+PPPSTATUS
*
OK
The dialing connection is opening or closing.
Remarks
All TCP/UDP sockets are unavailable after the connection is closed. You need to
reconnect them.
This command is supported by E8C33419 and later versions.
9.4 Setting Up TCP Connection: +TCPSETUP
Description
To set up a TCP link
Format
AT+TCPSETUP=[n],<ip>,<port>[,<recv_mode>]<CR>
Parameter
[n]: Link number, ranging from 0 to 5
The TE will allocate an idle ID to set up the link if you do not set the value of
[n]
.
<ip>: Destination IP address, in
xx.xx.xx.xx
<port>: Destination port ID in decimal ASCII code, ranging from 0 to 65535
<recv_mode>: Data receiving mode. The default value is 0.
0: Indicates that the data is output directly after the socket receives it.
1: Indicates that the data received is saved in the buffer and you can run
+IPNETREAD
to
read it when necessary.
Return
See the Example.