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 37 / 52
3.2.2. Send Data in Buffer Access Mode
3.2.3. Retrieve Data from Remote Server in Buffer Access Mode
OK
+QIOPEN: 0,0 //TCP client is connected successfully. It is
suggested to wait for 150 seconds for the
URC +QIOPEN: <connectID>,<err>. If the
URC cannot be received in 150 seconds,
the host can use AT+QICLOSE to close the
socket.
AT+QISTATE=1,0 //Query the connection status of socket
service 1.
+QISTATE: 0,"TCP","220.180.239.201",8705,65514,2,1,0,0,"usbmodem"
OK
AT+QISEND=0 //Send variable-length data.
>test1<ctrl+Z>
SEND OK //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.
AT+QISEND=0,4 //Send fixed-length data and the data length is 4 bytes.
>test
SEND OK
AT+QISEND=0,0 //Query the length of sent data, acknowledged data and
unacknowledged data.
+QISEND: 9,9,0
OK
AT+QISENDEX=0,"3132333435" //Send Hex string data.
SEND OK
AT+QISEND=0,0 //Query the length of the sent data, acknowledged data and
unacknowledged data..
+QISEND: 14,14,0
OK
+QIURC: "recv",0 //<connectID> 0 has received data.
AT+QIRD=0,1500 //Retrieve the data. The maximum length of data to be retrieved is 1500
bytes.

Table of Contents

Related product manuals