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 #43 background imageLoading...
Page #43 background image
LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 42 / 52
3.5.4. Close a TCP Client
3.6. TCP Server Works in Buffer Access Mode under IPv4
3.6.1. Start a TCP Server
3.6.2. Accept TCP Incoming Connection
3.6.3. Receive Data from Incoming Connection
AT+QICLOSE=0 //Close the connection whose <connectID> is 0.
Depending on the network, the maximum response time
is 10 seconds.
OK
AT+QIOPEN=1,1,"TCP LISTENER","127.0.0.1",0,2020,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","10.7.157.1",0,2020,3,1,1,0,"usbmodem"
OK
+QIURC: "incoming",11,1,"172.31.242.222",54091 //Accept a TCP connection, <service_type> is
"TCP incoming", and <connectID> is 11.
+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.

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