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 43 / 52
3.6.4. Close a TCP Server
3.7. TCP Server Works in Buffer Access Mode under IPv6
3.7.1. Start a TCP Server
3.7.2. Accept TCP Incoming Connection
OK
AT+QIRD=11,0 //Query the total length of retrieved 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,1,"TCP LISTENER","0:0:0:0:0:0:0:1",0,12345,0 //Context is 1 and <connectID> is 1.
Before using AT+QIOPEN, the host should
activate the context with AT+QIACT first.
OK
+QIOPEN: 1,0 //TCP server is opened successfully.
AT+QISTATE=0,1 //Query whether the connection state of
<contextID> is 1.
+QISTATE: 1,"TCP LISTENER","2001:468:2100:1:2001:468:2100:1",0,12345,3,1,1,0,"usbmodem"
OK
+QIURC: "incoming",11,1,"2001:468:2100:1:0:0:0:0",54091 //Accept a TCP connection,
<service_type> is "TCP incoming", and
<connectID> is 11.

Table of Contents

Related product manuals