
Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
51
Format
AT+UDPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>: Link number, ranging from 0 to 4
<ip>: Destination IP address, in
xx.xx.xx.xx
format
<port>: Destination port ID in decimal ASCII code
Return
Value
See the Example.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
+UDPSETUP:1,OK
The link to 220.199.66.560.7000 is
successfully set up on link 1.
AT+UDPSETUP=1,192.168.20.6,7000
OK
+UDPSETUP:0,FAIL
Failed to set up the link to
192.168.20.6,7000 on link 1 because link
0 is unavailable.
AT+UDPSETUP=5,192.168.20.6,6800
+UDPSETUP: ERROR
The format or the AT command is
incorrect or the link number is incorrect.
Remarks
Use the
AT+XIIC=1
command to set up a PPP link before running this command.
9.8 Sending UDP Data: +UDPSEND
Description
To send UDP data
The module will returns > after this command is sent. Send UDP data 50 ms to 100 ms
later.
Format
AT+UDPSEND=<n>,<length><CR>
Parameter
<n>: Link number, ranging from
0
to 4. A UDP connection is established on the link.
<length>: The length of the data to be sent, ranging from 1 to 1024, unit: byte.
Return
Value
If the AT command is input in correct format, the module returns >.
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
>11
OK
+UDPSEND:0,2
Send 2-byte data on link 0. Then send the
characters to be sent 50 ms to 100 ms
after the module returns >.
The UDP data is sent successfully.
Remarks
N/A