EasyManua.ls Logo

Neoway M590E - UDP Client Data Transfer

Neoway M590E
65 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
48
7.2 Receiving Data from the Client: +FUDPRECV(S)
Description
To receive and output data from the client
Format
+FUDPRECV(S):<ip>,<port>,<length><data><CR><LF>
Parameter
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: Length of data received, byte
<data>: Data received
Return Value
See the Example.
Example
+FUDPRECV(S):10.72.170.156,38
061,10,1234567890
FUDP receives 10-byte data (1234567890) from
the client (IP: 10.72.170.156, 38061)
Remarks
N/A
7.3 Sending Data to the Client: +FUDPSENDS
Description
To send data to the client
Format
AT+FUDPSENDS=<ip>,<port>,<length><CR>
Parameter
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: The length of the data to be sent, value ranges from
1
to
1024
, unit: byte.
Return Value
See the Example.
Example
AT+FUDPSENDS=10.230.214.106,44416,10
>0123456789
OK
+FUDPSENDS:0,10
Send 10-byte data to the client (IP:
10.230.214.106, 44416).
AT+FUDPSENDS=10.230.214.106,44416,10
+FUDPSENDS:ERROR
The listening is not enabled.
AT+FUDPSENDS=10.74.2222.173,41287,10
+FUDPSENDS:IP OR PORT ERROR
The IP address is incorrect.
AT+UDPSENDS=10.74.2222.173,41287,4000
+UDPSENDS:DATA LENGTH ERROR
The length is incorrect.
Remarks
N/A
7.4 Closing Listening for UDP Server:
+CLOSEFUDPLISTEN
Description
To close listening for UDP server
Format
AT+CLOSEFUDPLISTEN<CR>

Table of Contents

Related product manuals