EasyManua.ls Logo

Quectel BG95 Series - 3 Examples; Configure and Activate a Context; Configure a Context; Activate a Context

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 39 / 56
3 Examples
3.1. Configure and Activate a Context
3.1.1. Configure a Context
3.1.2. Activate a Context
3.1.3. Deactivate a Context
3.2. TCP Client Works in Buffer Access Mode under IPv4
3.2.1. Set up a TCP Client Connection and Enter Buffer Access Mode
AT+QICSGP=1,1,"CMNBIOT","","",1 //Configure context 1. APN is "CMNBIOT" for China Mobile
NB-IoT network.
OK
AT+QIACT=1 //Activate context 1. Depending on the network, the maximum
response time is 150 s.
OK //Activated the context successfully.
AT+QIACT? //Query the context state, protocol type and IP address of context 1.
+QIACT: 1,1,1,"10.7.157.1"
OK
AT+QIDEACT=1 //Deactivate context 1.
OK //Deactivated the context successfully. Depending on the
network, the maximum response time is 40s.
//Context is 1 and <connectID> is 0. Before using AT+QIOPEN, the host should activate the context
with AT+QIACT first.
AT+QIOPEN=1,0,"TCP","220.180.239.212",8009,0,0

Table of Contents

Other manuals for Quectel BG95 Series

Related product manuals