Tcp Client Works In Direct Push Mode; Set Up A Tcp Client Connection And Enter Direct Push Mode; Send Data In Direct Push Mode; Retrieve Data From Remote Server In Direct Push Mode - Quectel BG96 TCP/IP Application Note

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

Advertisement

3.5. TCP Client Works in Direct Push Mode

3.5.1. Set up a TCP Client Connection and Enter Direct Push Mode

AT+QIOPEN=1,0,"TCP","220.180.239.212",8009,0,1
OK
+QIOPEN: 0,0
AT+QISTATE=1,0
+QISTATE: 0,"TCP","220.180.239.201",8705,65344,2,1,0,1,"usbmodem"
OK

3.5.2. Send Data in Direct Push Mode

AT+QISEND=0
>test1<ctrl+Z>
SEND OK
AT+QISEND=0,5
>test2
SEND OK
AT+QISEND=0,0
+QISEND: 10,10,0
OK

3.5.3. Retrieve Data from Remote Server in Direct Push Mode

+QIURC: "recv",0,4
test
BG96_TCP/IP_Application_Note
//Context is 1 and <connectID> is 0. Before
using AT+QIOPEN, the host should activate the
context via AT+QIACT first.
//TCP
client
suggested to wait for 150 seconds for the URC
+QIOPEN: <connectID>,<err>. If the URC
cannot be received in 150 seconds, the host
could use AT+QICLOSE to close the socket.
//Query the connection state of socket service 0.
//Send variable-length data..
//SEND OK does not mean the data has been sent to the
server successfully. The host can query whether the
data has reached the server via AT+QISEND=0,0.
//Send fixed-length data and the data length is 5 bytes.
//Query the length of sent data, acknowledged data and
unacknowledged data.
//A total of 10 bytes data has been sent, and all the
10-byte data has been acknowledged.
//Retrieve data from remote server.
LPWA Module Series
BG96 TCP/IP Application Note
connected
successfully.
It
is
41 / 52

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BG96 TCP/IP and is the answer not in the manual?

Table of Contents

Save PDF