Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
63
Value
If the command is input in incorrect format, the module returns
ERROR
.
If the link has not been set up, the module returns
+UDPSEND:ERROR
.
After entering the command, input the data to be sent until the module returns >.
If the UDP data is sent successfully, the module returns
+UDPSEND:<n>,<length>
.
<length>
indicates the length of data already sent.
Example
AT+UDPSEND=0,2
>12
OK
+UDPSEND:0,2
Send 2-byte data on socket 0. Then send
the characters to be sent 50 ms to 100 ms
after the module returns >.
The UDP data is sent successfully.
AT+UDPSEND=1,10
>
+UDPSEND:Error!TimeOut
10 seconds timed out. No data is input.
The module returns ERROR.
Remarks
Ensure that the UDP link has been set up before sending UDP data.
9.10 Receiving UDP Data: +UDPRECV
Description
To receive UDP data
Format
+UDPRECV:<n>,<length>,<data><CR>
Parameter
<n>: Socket number, ranging from
0
to
5
<length>: The length of the data received
<data>: The data received
Add
0x0d 0x0a
to the end of the data. You can identify the end based on <
length
>.
Return
Value
N/A
Example
+UDPRECV: 0,10,1234567890
10-byte data is successfully received on
socket 0. The data is 1234567890.
Remarks
N/A
9.11 Closing UDP Connection: +UDPCLOSE
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
AT+UDPCLOSE=?<CR>
Parameter
<n>: Socket number, ranging from
0
to
5
Return
Value
If
<n>
is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns
+UDPCLOSE:<n>,OK
.
Example
AT+UDPCLOSE=1
OK
The TCP connection on socket 1 is closed
successfully.