Receive Data From Incoming Connection; Close A Tcp Server; Udp Service Under Ipv4; Start A Udp Service - Quectel BG96 TCP/IP Application Note

Lpwa module
Hide thumbs Also See for BG96 TCP/IP:
Table of Contents

Advertisement

3.7.3. Receive Data from Incoming Connection

+QIURC: "recv",11
AT+QIRD=11,1500
+QIRD: 4
test
OK
AT+QIRD=11,1500
+QIRD: 0
OK
AT+QIRD=11,0
+QIRD: 4,4,0
OK

3.7.4. Close a TCP Server

AT+QICLOSE=11
OK
AT+QICLOSE=1
OK

3.8. UDP Service under IPv4

3.8.1. Start a UDP Service

AT+QIOPEN=1,2,"UDP SERVICE","127.0.0.1",0,3030,0
OK
+QIOPEN: 2,0
AT+QISTATE=0,1
BG96_TCP/IP_Application_Note
BG96 TCP/IP Application Note
//Receive data from remote incoming connection.
//Retrieve
the
data
connection.
//Actually retrieved data length is 4 bytes.
//No data in buffer.
//Query the total length of received data, including
read and unread data.
//Close the incoming connection. Depending on the
network, the maximum response time is 10 seconds.
//Close TCP server listening.
//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.
//UDP service is opened successfully.
//Query
if
<contextID> is 1.
LPWA Module Series
received
from
incoming
the
connection
status
of
44 / 52

Advertisement

Table of Contents
loading

Table of Contents