EasyManua.ls Logo

Quectel BG96 TCP/IP - UDP Service under IPv4

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 44 / 52
3.7.3. Receive Data from Incoming Connection
3.7.4. Close a TCP Server
3.8. UDP Service under IPv4
3.8.1. Start a UDP Service
+QIURC: "recv",11 //Receive data from remote incoming connection.
AT+QIRD=11,1500 //Retrieve the data received from incoming
connection.
+QIRD: 4 //Actually retrieved data length is 4 bytes.
test
OK
AT+QIRD=11,1500
+QIRD: 0 //No data in buffer.
OK
AT+QIRD=11,0 //Query the total length of received data, including
read and unread data.
+QIRD: 4,4,0
OK
AT+QICLOSE=11 //Close the incoming connection. Depending on the
network, the maximum response time is 10 seconds.
OK
AT+QICLOSE=1 //Close TCP server listening.
OK
AT+QIOPEN=1,2,"UDP SERVICE","127.0.0.1",0,3030,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.

Table of Contents

Related product manuals