LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 12 / 52
Example
2.2.2. AT+QIACT Activate a PDP Context
Before activating a PDP context via AT+QIACT, the context should be configured by AT+QICSGP. After
activation, the IP address can be queried via 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 NB1. 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.
<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,"UNINET","","",1 //Configure context 1. APN is "UNINET" for China Unicom.
OK
AT+QIACT Activate a PDP Context
Response
+QIACT: (range of supported <contextID>s)
OK
Response
Return the list of the current activated contexts and their IP
addresses:
+QIACT: 1,<context_state>,<context_type>,<IP_address>
[.....
+QIACT: 16,<context_state>,<context_type>,<IP_addres
s>]
OK
Write Command
Activate a specified PDP context
AT+QIACT=<contextID>