Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
68
9.16 Setting Local TCP Port: +TCPPORT
Description
To set the local TCP port
Format
AT+TCPPORT=<n>,<port> <CR>
Parameter
<n>: Socket ID on the client, ranging from
0
to
5
<port>: Port ID, ranging from
1024
to
65535
Return
Value
N/A
Example
AT+TCPPORT=0,5500
OK
Set the locate TCP port of
socket 0 to 5500.
AT+TCPPORT=1,1023
+CME ERROR: 3
The port number is incorrect.
AT+TCPPORT=1,1026
+TCPPORT:ERROR,USED
The port has been occupied
by other links and the link is
opened.
AT+TCPPORT=0,1066
+TCPPORT:ERROR,OPENED
The link has been opened
and does not allow new port
number.
Remarks
This command should have been executed before the
AT+TCPSETUP
command is
executed.
If you do not use this command, the local port ID will be allocated dynamically every
time the UDP link is set up.
9.17 Setting Local UDP Port: +UDPPORT
Description
To set the local UDP port
Format
AT+UDPPORT=<n>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
<port>: Port ID, ranging from 1024 to 65535
Return
Value
N/A
Example
AT+UDPPORT=2,5500
OK
Set the locate UDP port of socket 2
to 5500.
AT+UDPPORT=1,1023
+CME ERROR: 3
The port number is incorrect.
AT+UDPPORT=1,1026
+UDPPORT:ERROR, USED
The port has been occupied by
other links and the link is opened.
AT+UDPPORT=0,1026
+UDPPORT:ERROR, OPENED
The link has been opened and does
not allow new port number.