Wiki source code of Debug NB-IoT Connection
Version 8.1 by David Huang on 2023/09/28 15:58
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
6.1 | 1 | = **For BC95-G** = |
![]() |
1.1 | 2 | |
![]() |
7.4 | 3 | ---- |
![]() |
7.1 | 4 | |
![]() |
7.4 | 5 | |
![]() |
7.2 | 6 | (% style="color:blue" %)**1. Check the reason why you can't access the network:** |
![]() |
1.1 | 7 | |
![]() |
7.6 | 8 | (% style="color:#037691" %)**1) AT+CEREG=5** |
![]() |
1.1 | 9 | |
![]() |
7.6 | 10 | (% style="color:#037691" %)**2) AT+CEREG?** (%%) ~/~/ This process may be longer, please repeat the input |
![]() |
1.1 | 11 | |
![]() |
7.7 | 12 | (% style="color:#037691" %)**3) Mainly check the two parameters **(% style="color:red" %)**cause_type and reject_case** |
![]() |
1.1 | 13 | |
14 | |||
![]() |
6.1 | 15 | [[image:image-20220530093747-3.png]] |
![]() |
1.1 | 16 | |
![]() |
6.1 | 17 | |
![]() |
7.2 | 18 | (% style="color:blue" %)**2. Network access operation:** |
![]() |
6.1 | 19 | |
![]() |
7.7 | 20 | (% style="color:#037691" %)**1) AT+CFUN=0** |
![]() |
1.1 | 21 | |
![]() |
7.7 | 22 | (% style="color:#037691" %)**2) AT+NBAND=X** (%%) ~/~/ X means the local frequency band number |
![]() |
1.1 | 23 | |
![]() |
7.7 | 24 | (% style="color:#037691" %)**3) AT+NRB** |
![]() |
1.1 | 25 | |
![]() |
7.7 | 26 | (% 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 | 27 | |
![]() |
7.3 | 28 | |
![]() |
6.1 | 29 | [[image:image-20220530093821-4.png]] |
![]() |
1.1 | 30 | |
31 | |||
![]() |
7.2 | 32 | (% style="color:blue" %)**Remarks:** |
![]() |
6.1 | 33 | |
![]() |
7.7 | 34 | ~1. The operating voltage of the SIM card used must be less than 3.0V. |
![]() |
1.1 | 35 | |
![]() |
7.7 | 36 | 2. The network access time varies with the signal strength. |
![]() |
1.1 | 37 | |
![]() |
7.7 | 38 | 3. If you have not been able to access the network, please try to access the network manually. |
![]() |
8.1 | 39 | |
40 | |||
41 | (% style="color:blue" %)**3. Check the signaling connection status:** | ||
42 | |||
43 | (% style="color:#037691" %)**1) AT+CSCON?** | ||
44 | |||
45 | (% style="color:#037691" %)**Response | ||
46 | +CSCON: <n>,<mode> | ||
47 | OK** | ||
48 | |||
49 | (% style="color:#037691" %)**<n> Enable/disable the URC. | ||
50 | 0 Disable the URC | ||
51 | 1 Enable URC +CSCON: <mode> | ||
52 | <mode>Signaling connection status. | ||
53 | 0 Idle | ||
54 | 1 Connected** | ||
55 | |||
56 | |||
57 | (% style="color:blue" %)**4. Check the PDP Context Activate/Deactivate** | ||
58 | |||
59 | (% style="color:#037691" %)**1) AT+CGACT?** | ||
60 | |||
61 | (% style="color:#037691" %)**Response | ||
62 | [+CGACT: <cid>,<state>]** | ||
63 | |||
64 | (% style="color:#037691" %)**[+CGACT: <cid>,<state>] | ||
65 | […] | ||
66 | OK** | ||
67 | |||
68 | (% style="color:#037691" %)**<state> Integer type. The state of PDP context activation. | ||
69 | 0 Deactivated | ||
70 | 1 Activated | ||
71 | <cid> Integer type. A numeric parameter which specifies a particular PDP context definition (see | ||
72 | AT+CGDCONT).**(%%) | ||
73 | |||
74 | |||
75 |