Hello friends,
I have been trying to simulate a real-world situation by running the following test:
I have a BC660K-GL NB IoT device. It has an active PDP context/“bearer” and is connected to a PDN. It’s able to send data via QISEND and that data is received on a server.
At some point, I delete the PDP context/“bearer” through a button on the dashboard of the network provider.
How can the NB IoT device determine that the PDP context/“bearer” on the network side is now deactivated/deleted? What AT commands would be able to give information about this? The commands CGACT, CGDCONT, CGATT, QISTATE, CGPADDR are of no use. They only say something about the PDP context/“bearer” on the side of the device, not the network.
AT+QIACT is also of no use, since it is not available for BC660K-GL.
Firmware BC660KGLAAR01A05_01.001.01.001
See logs and network provider dashboard overview below.
[2023-07-20_14:13:34:202]ATi
[2023-07-20_14:13:34:202]Quectel_Ltd
[2023-07-20_14:13:34:202]Quectel_BC660K-GL
[2023-07-20_14:13:34:202]Revision: BC660KGLAAR01A05
[2023-07-20_14:13:34:202]OK
[2023-07-20_14:13:38:803]AT+CGPADDR?
[2023-07-20_14:13:38:803]+CGPADDR: 0,"XX.XXX.XXX.XXX"
[2023-07-20_14:13:38:803]OK
[2023-07-20_14:13:44:237]AT+CGDCONT?
[2023-07-20_14:13:44:237]+CGDCONT: 0,"IP","IOT.1NCE.NET","XX.XXX.XXX.XXX"
[2023-07-20_14:13:44:237]OK
[2023-07-20_14:13:45:243]AT+CGACT?
[2023-07-20_14:13:45:243]+CGACT: 0,1
[2023-07-20_14:13:45:243]OK
[2023-07-20_14:13:55:235]AT+QIOPEN=0,0,"UDP","XX.XXX.XXX.XXX",YYYY,YYYY
[2023-07-20_14:13:55:235]OK
[2023-07-20_14:13:55:235]+QIOPEN: 0,0
[2023-07-20_14:15:35:721]AT+QISEND=0,5,"5bf03b1d55"
[2023-07-20_14:15:35:721]OK
[2023-07-20_14:15:35:721]SEND OK <------ after the SEND OK, the PDP context is deleted from the network side (by the user).
[2023-07-20_14:16:39:467]AT+QISTATE?
[2023-07-20_14:16:39:467]+QISTATE: 0,"UDP","XX.XXX.XXX.XXX",YYYY,YYYY,2,0,1
[2023-07-20_14:16:39:467]OK
[2023-07-20_14:16:44:540]AT+CGACT?
[2023-07-20_14:16:44:540]+CGACT: 0,1
[2023-07-20_14:16:44:540]OK
[2023-07-20_14:16:46:772]AT+CGDCONT?
[2023-07-20_14:16:46:772]+CGDCONT: 0,"IP","IOT.1NCE.NET","XX.XXX.XXX.XXX"
[2023-07-20_14:16:46:772]OK
[2023-07-20_14:16:49:374]AT+CGPADDR?
[2023-07-20_14:16:49:374]+CGPADDR: 0,"XX.XXX.XXX.XXX"
[2023-07-20_14:16:49:374]OK
[2023-07-20_14:19:43:887]AT+QISTATE?
[2023-07-20_14:19:43:887]+QISTATE: 0,"UDP","XX.XXX.XXX.XXX",YYYY,YYYY,2,0,1
[2023-07-20_14:19:43:887]OK
[2023-07-20_14:56:06:351]AT+QISEND=0,5,"5bf03b1d55"
[2023-07-20_14:56:06:351]OK
[2023-07-20_14:56:06:351]SEND OK
[2023-07-20_14:56:15:725]
[2023-07-20_14:56:15:725]+IP: XX.XXX.XXX.XXX <--- New IP address is shown, which indicates that there has been a change in PDP contexts.