EasyManuals Logo
Home>Quectel>Control Unit>BG96 TCP/IP

Quectel BG96 TCP/IP User Manual

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
Page #47 background imageLoading...
Page #47 background image
LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 46 / 52
3.9. UDP Service under IPv6
3.9.1. Start a UDP Service
3.9.2. Send UDP Data to Remote
3.9.3. Receive Data from Remote
AT+QIOPEN=1,2,"UDP SERVICE","0:0:0:0:0:0:0:1",0,12345,0 //Start a UDP service, <connectID>
is 2 and <context> is 1. Before using
AT+QIOPEN, the host should activate the
context with AT+QIACT first.
OK
+QIOPEN: 2,0 //UDP service is opened successfully.
AT+QISTATE=0,1 //Query if the connection status of
<contextID> is 1.
+QISTATE: 2,"UDP SERVICE","2001:468:2100:1:2001:468:2100:1",0,12345,2,1,2,0,"usbmodem"
OK
AT+QISEND=2,10,"2001:468:2100:1:0:0:0:0",5001 //Send 10 bytes data to remote whose IP is
2001:468:2100:1:0:0:0:0 and remote port is
5001.
>1234567890
SEND OK
+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,"2001:468:2100:1:0:0:0:0",5001 //Data length is 4. The remote IP address is
2001:468:2100:1:0:0:0:0 and remote port is
5001.
AAAA
OK
AT+QIRD=2 //Read data.
+QIRD: 0 //No data in buffer.
OK

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Quectel BG96 TCP/IP and is the answer not in the manual?

Quectel BG96 TCP/IP Specifications

General IconGeneral
BrandQuectel
ModelBG96 TCP/IP
CategoryControl Unit
LanguageEnglish

Related product manuals