LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 15 / 56
Parameter
Example
2.3.2. AT+QIACT Activate a PDP Context
Before activating a PDP context with
AT+QIACT
, the context should be configured by
AT+QICSGP
. After
activation, the IP address can be queried with
AT+QIACT?
.
Although the range of
<contextID>
is 1
–16, the module supports maximum three PDP contexts activated
simultaneously under LTE Cat M/EGPRS and maximum two under LTE Cat NB2. Depending on the
network, it may take at most 150 seconds to return
OK
or
ERROR
after executing
AT+QIACT
. Before the
response is returned, other AT commands cannot be executed.
<contextID>
Integer type. Context ID. Range: 1
–16.
<context_type>
Integer type. Protocol type.
1
IPv4
2
IPv6
3
IPv4v6
<APN>
String type. Access Point Name.
<username>
String type. Username.
<password>
String type. Password.
<authentication>
Integer type. Authentication methods.
0
None
1
PAP
2
CHAP
3
PAP or CHAP
AT+QICSGP=1
//Query the configuration of context 1.
+QICSGP: 1,"","","",0
OK
AT+QICSGP=1,1,"CMNBIOT","","",1
//Configure context 1. APN is "CMNBIOT" for China Mobile
NB-IoT network.
OK
AT+QIACT Activate a PDP Context
Test Command
AT+QIACT=?
Response
+QIACT: (
range of supported
<contextID>
s
)
OK