LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 40 / 52
3.3.4. Close a Connection
3.4. TCP Client Works in Transparent Access Mode
3.4.1. Set up a TCP Client Connection and Enter Transparent Access Mode
3.4.2. Send Data in Transparent Access Mode
All data got from COM port will be sent to internet directly.
3.4.3. Receive Data from Remote Server in Transparent Access Mode
3.4.4. Close a TCP Client
AT+QICLOSE=0 //Close a connection whose <connectID> is 0. Depending on the
network, the maximum response time is 10 seconds.
OK
AT+QIOPEN=1,0,"TCP","220.180.239.212",8009,0,2 //Context is 1 and <connectID> is 0. Before
using AT+QIOPEN, the host should activate the
context with AT+QIACT first.
CONNECT //TCP client connected successfully. It is
suggested to wait for 150 seconds for the URC
CONNECT. If the URC cannot be received in
150 seconds, the host could use AT+QICLOSE
to close the socket.
Test 1 //All data received from internet will be outputted via
COM port directly.
AT+QICLOSE=0 //After using +++ to exit from the transparent access
mode, the host could use AT+QICLOSE to close the
TCP link. Depending on the network, the maximum
response time is 10 seconds.
OK