Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
77
AT+TCPLISTEN=?
+TCPLISTEN: (1-65535),(0-1)
OK
Query the value range of the listening
port.
AT+TCPLISTEN?
+TCPLISTEN:listening status
Query the listening status. Here the
server is in the listening status.
AT+TCPLISTEN?
+TCPLISTEN:not listening
Query the listening status. Here the
server is not in the listening status.
Connect AcceptSocket=1,ClientAddr=119.123.77.133
Receive the connection request from the client.
AcceptSocket
indicates the socket ID on
the module, and
119.123.77.133
is the IP address of the client.
Remarks
This command is valid only after a PPP link is set up succesfully.
Only the SIM cards with fixed IP addresses can be used as servers.
Parameter
<recv_mode>
is supported by E9C33424 and later versions.
<recv_mode>
specified in this command controls the data receiving mode of the
connection set up by
Connect AcceptSocket
.
12.3 Closing the Listening Link: +CLOSELISTEN
Description
To close the listening connection and the listened links with the client
Format
AT+CLOSELISTEN<CR>
Parameter
<Socket>: Socket number
Return
Value
<CR><LF>+CLOSECLIENT:<socket>,remote link closed<CR><LF>
<CR><LF>+CLOSECLIENT:<socket>,local link closed<CR><LF>
Example
AT+CLOSELISTEN
+CLOSELISTEN:0,local link closed
+CLOSECLIENT:1,remote link closed
Abnormalities might occur on the network.
The local link will be closed if there is any link
to the client.
Remarks
N/A
12.4 Closing Connections with the Client: +CLOSECLIENT
Description
To close all connections with the client
Format
AT+CLOSECLIENT[=<socket>]<CR>
Parameter
<Socket>: Socket ID