EasyManua.ls Logo

Quectel BG95 Series - Close a TCP Server; TCP Server Works in Buffer Access Mode under Ipv6 Network; Start a TCP Server; Accept TCP Incoming Connection

Quectel BG95 Series
57 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
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 46 / 56
3.6.4. Close a TCP Server
3.7. TCP Server Works in Buffer Access Mode under IPv6 Network
3.7.1. Start a TCP Server
3.7.2. Accept TCP Incoming Connection
3.7.3. Retrieve Data from Incoming Connection
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
//Context is 1 and <connectID> is 1. Before using AT+QIOPEN, the host should activate the context
with AT+QIACT first.
AT+QIOPEN=1,1,"TCP LISTENER","0:0:0:0:0:0:0:1",0,12345,0
OK
+QIOPEN: 1,0 //TCP server is opened successfully.
AT+QISTATE=0,1 //Query the connection status of context 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 //A new TCP connection is accepted.
The <service_type> is "TCP incoming",
and <connectID> is 11.
+QIURC: "recv",11 //Received 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.

Table of Contents

Other manuals for Quectel BG95 Series

Related product manuals