EasyManua.ls Logo

Quectel BG96 TCP/IP

Quectel BG96 TCP/IP
53 pages
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...
LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 45 / 52
3.8.2. Send UDP Data to Remote
3.8.3. Receive Data from Remote
+QIURC: "recv",2 //Receive data from remote.
AT+QIRD=2 //Read UDP data. One whole UDP packet will be
outputted. There is no need to specify the read
length.
+QIRD: 4,"10.7.76.34",7687 //Data length is 4. The remote IP address is
10.7.76.34 and remote port is 7687.
AAAA
OK
AT+QIRD=2 //Read data.
+QIRD: 0 //No data in buffer.
OK
AT+QISEND=2,10,"10.7.76.34",7687 //Send data to remote whose IP is 10.7.76.34 and
remote port is 7687.
>1234567890
SEND OK
3.8.4. Close a UDP Service
+QISTATE: 2,"UDP SERVICE","10.7.157.1",0,3030,2,1,2,0,"usbmodem"
OK
AT+QISEND=2,10,"10.7.89.10",6969 //Send 10 bytes data to remote whose IP is
10.7.89.10 and remote port is 6969.
>1234567890
SEND OK
AT+QICLOSE=2 //Close the service.
OK

Table of Contents

Related product manuals