WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
87
of
[n]
.
<ip>: Destination IP address, in
xx.xx.xx.xx
format
<port>: Destination port ID in decimal ASCII code
<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 Value
After you input correct AT command, the module will return OK immediately.
If the input command is not correct or the socket is occupied, the module will
UDPSETUP: ERROR.
If the AT command is input correctly (the module returns OK), the module
returns
+UDPSETUP:<n>,OK
after UDP connection is set up successfully.
<n> indicates the socket number.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
+UDPSETUP:1,OK
The
connection
to
220.199.66.560.7000 is successfully
set up on socket 1.
AT+UDPSETUP=0,58.60.184.213,1040
5,1
OK
+UDPSETUP:0,OK
+IPURCREAD:0
AT+IPNETREAD=0,1024
+IPREAD:0,10
1234567890
OK
Set
up
a
connection
to
58.60.184.213,10405 on socket 0.
Socket 0 receives data.
Read data buffered in socket 0.
AT+UDPSETUP=1,220.199.66.56,6000
+UDPSETUP:ERROR
Socket 1 is in use.
AT+UDPSETUP=55,192.168.20.6,6800
+UDPSETUP:ERROR
The format or the AT command is
incorrect or the socket number is
incorrect.
Remarks
Parameter
<recv_mode>
is applicable to E9C33424 and later versions.
The buffer size is 10K for each socket when you set data receiving mode to
manual reading.