Wiki source code of Debug NB-IoT Connection
Last modified by Xiaoling on 2024/08/19 16:09
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="wikigeneratedid" %) | ||
2 | **Table of Contents:** | ||
3 | |||
4 | {{toc/}} | ||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | = **For BC95-G** = | ||
11 | |||
12 | ---- | ||
13 | |||
14 | |||
15 | == (% style="color:blue" %)**1. Check the reason why you can't access the network**(%%) == | ||
16 | |||
17 | (% style="color:#037691" %)**1) AT+CEREG=5** | ||
18 | |||
19 | (% style="color:#037691" %)**2) AT+CEREG?** (%%) ~/~/ This process may be longer, please repeat the input | ||
20 | |||
21 | (% style="color:#037691" %)**3) Mainly check the two parameters **(% style="color:red" %)**cause_type and reject_case** | ||
22 | |||
23 | |||
24 | [[image:image-20220530093747-3.png]] | ||
25 | |||
26 | |||
27 | == (% style="color:blue" %)**2. Network access operation:**(%%) == | ||
28 | |||
29 | (% style="color:#037691" %)**1) AT+CFUN=0** | ||
30 | |||
31 | (% style="color:#037691" %)**2) AT+NBAND=X** (%%) ~/~/ X means the local frequency band number | ||
32 | |||
33 | (% style="color:#037691" %)**3) AT+NRB** | ||
34 | |||
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** | ||
36 | |||
37 | |||
38 | [[image:image-20220530093821-4.png]] | ||
39 | |||
40 | |||
41 | (% style="color:blue" %)**Remarks:** | ||
42 | |||
43 | ~1. The operating voltage of the SIM card used must be less than 3.0V. | ||
44 | |||
45 | 2. The network access time varies with the signal strength. | ||
46 | |||
47 | 3. If you have not been able to access the network, please try to access the network manually. | ||
48 | |||
49 | |||
50 | == (% style="color:blue" %)**3. Check the PS Attach or Detach **(%%) == | ||
51 | |||
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 | |||
69 | == (% style="color:blue" %)**4. Check the signaling connection status:**(%%) == | ||
70 | |||
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 | |||
85 | == (% style="color:blue" %)**5. Check the PDP Context Activate/Deactivate**(%%) == | ||
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 | |||
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.** |