Wiki source code of Debug NB-IoT Connection
Last modified by Xiaoling on 2024/08/19 16:09
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
10.1 | 1 | (% class="wikigeneratedid" %) |
2 | **Table of Contents:** | ||
3 | |||
4 | {{toc/}} | ||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
![]() |
6.1 | 10 | = **For BC95-G** = |
![]() |
1.1 | 11 | |
![]() |
7.4 | 12 | ---- |
![]() |
7.1 | 13 | |
![]() |
7.4 | 14 | |
![]() |
10.1 | 15 | == (% style="color:blue" %)**1. Check the reason why you can't access the network**(%%) == |
![]() |
1.1 | 16 | |
![]() |
7.6 | 17 | (% style="color:#037691" %)**1) AT+CEREG=5** |
![]() |
1.1 | 18 | |
![]() |
7.6 | 19 | (% style="color:#037691" %)**2) AT+CEREG?** (%%) ~/~/ This process may be longer, please repeat the input |
![]() |
1.1 | 20 | |
![]() |
7.7 | 21 | (% style="color:#037691" %)**3) Mainly check the two parameters **(% style="color:red" %)**cause_type and reject_case** |
![]() |
1.1 | 22 | |
23 | |||
![]() |
6.1 | 24 | [[image:image-20220530093747-3.png]] |
![]() |
1.1 | 25 | |
![]() |
6.1 | 26 | |
![]() |
10.1 | 27 | == (% style="color:blue" %)**2. Network access operation:**(%%) == |
![]() |
6.1 | 28 | |
![]() |
7.7 | 29 | (% style="color:#037691" %)**1) AT+CFUN=0** |
![]() |
1.1 | 30 | |
![]() |
7.7 | 31 | (% style="color:#037691" %)**2) AT+NBAND=X** (%%) ~/~/ X means the local frequency band number |
![]() |
1.1 | 32 | |
![]() |
7.7 | 33 | (% style="color:#037691" %)**3) AT+NRB** |
![]() |
1.1 | 34 | |
![]() |
7.7 | 35 | (% style="color:#037691" %)**4) After waiting for a period of time, you can use **(% style="color:red" %)**AT+CSQ **(%%)**to query the network access** |
![]() |
1.1 | 36 | |
![]() |
7.3 | 37 | |
![]() |
6.1 | 38 | [[image:image-20220530093821-4.png]] |
![]() |
1.1 | 39 | |
40 | |||
![]() |
7.2 | 41 | (% style="color:blue" %)**Remarks:** |
![]() |
6.1 | 42 | |
![]() |
7.7 | 43 | ~1. The operating voltage of the SIM card used must be less than 3.0V. |
![]() |
1.1 | 44 | |
![]() |
7.7 | 45 | 2. The network access time varies with the signal strength. |
![]() |
1.1 | 46 | |
![]() |
7.7 | 47 | 3. If you have not been able to access the network, please try to access the network manually. |
![]() |
8.1 | 48 | |
49 | |||
![]() |
10.1 | 50 | == (% style="color:blue" %)**3. Check the PS Attach or Detach **(%%) == |
![]() |
8.1 | 51 | |
![]() |
9.1 | 52 | (% style="color:#037691" %)**1) AT+CGATT?** |
53 | |||
54 | (% style="color:#037691" %)**Response | ||
55 | +CGATT: <state> | ||
56 | OK** | ||
57 | |||
58 | (% style="color:#037691" %)**Write Command | ||
59 | AT+CGATT=<state>** | ||
60 | |||
61 | (% style="color:#037691" %)**<state> Integer type. Indicates the state of PS attachment. | ||
62 | 0 Detached | ||
63 | 1 Attached**(%%) | ||
64 | |||
65 | |||
66 | **Note:Generally, when registering with an operator, attaching GPRS is automatic, and CGATT can manually attach the network.** | ||
67 | |||
68 | |||
![]() |
10.1 | 69 | == (% style="color:blue" %)**4. Check the signaling connection status:**(%%) == |
![]() |
9.1 | 70 | |
![]() |
8.1 | 71 | (% style="color:#037691" %)**1) AT+CSCON?** |
72 | |||
73 | (% style="color:#037691" %)**Response | ||
74 | +CSCON: <n>,<mode> | ||
75 | OK** | ||
76 | |||
77 | (% style="color:#037691" %)**<n> Enable/disable the URC. | ||
78 | 0 Disable the URC | ||
79 | 1 Enable URC +CSCON: <mode> | ||
80 | <mode>Signaling connection status. | ||
81 | 0 Idle | ||
82 | 1 Connected** | ||
83 | |||
84 | |||
![]() |
10.1 | 85 | == (% style="color:blue" %)**5. Check the PDP Context Activate/Deactivate**(%%) == |
![]() |
8.1 | 86 | |
87 | (% style="color:#037691" %)**1) AT+CGACT?** | ||
88 | |||
89 | (% style="color:#037691" %)**Response | ||
90 | [+CGACT: <cid>,<state>]** | ||
91 | |||
92 | (% style="color:#037691" %)**[+CGACT: <cid>,<state>] | ||
93 | […] | ||
94 | OK** | ||
95 | |||
96 | (% style="color:#037691" %)**<state> Integer type. The state of PDP context activation. | ||
97 | 0 Deactivated | ||
98 | 1 Activated | ||
99 | <cid> Integer type. A numeric parameter which specifies a particular PDP context definition (see | ||
100 | AT+CGDCONT).**(%%) | ||
101 | |||
102 | |||
![]() |
10.1 | 103 | (% style="color:red" %)**Note: Note that having a cell ID attached to the network does not necessarily mean successful activation. For data exchange, such as initiating HTTP requests, activation is necessary to use them.** |