<
From version < 4.1 >
edited by Xiaoling
on 2022/11/12 11:46
To version < 7.2 >
edited by Xiaoling
on 2022/11/12 11:59
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -13,7 +13,6 @@
13 13  
14 14  = 1. Introduction =
15 15  
16 -
17 17  == 1.1 ​What is NDS01 NB-IoT Door Sensor ==
18 18  
19 19  
... ... @@ -32,7 +32,6 @@
32 32  
33 33  
34 34  
35 -
36 36  == 1.2 Specifications ==
37 37  
38 38  
... ... @@ -41,7 +41,6 @@
41 41  * Supply Voltage: 2.1v ~~ 3.6v
42 42  * Operating Temperature: -10 ~~ 50°C
43 43  
44 -
45 45  **NB-IoT Spec:**
46 46  
47 47  * - B1 @H-FDD: 2100MHz
... ... @@ -51,7 +51,6 @@
51 51  * - B20 @H-FDD: 800MHz
52 52  * - B28 @H-FDD: 700MHz
53 53  
54 -
55 55  **Power Consumption**
56 56  
57 57  * IDEL Mode: 10uA @ 3.3v
... ... @@ -72,8 +72,6 @@
72 72  * Micro SIM card slot for NB-IoT SIM
73 73  * 2 x AAA LR03 Batteries
74 74  
75 -
76 -
77 77  == 1.4  ​Applications ==
78 78  
79 79  
... ... @@ -82,22 +82,16 @@
82 82  * Smart Cities
83 83  * Smart Factory
84 84  
85 -
86 -
87 87  = 2. Use NDS01 to communicate with IoT Server =
88 88  
89 -
90 90  == 2.1 How it works ==
91 91  
92 92  
93 93  The NDS01 is equipped with a NB-IoT module, the pre-loaded firmware in NDS01 will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module.  The NB-IoT network will forward this value to IoT server via the protocol defined by NDS01.
94 94  
95 -
96 96  The diagram below shows the working flow in default firmware of NDS01:
97 97  
98 98  
99 -
100 -
101 101  == 2.2 Configure the NDS01 ==
102 102  
103 103  === 2.2.1 Test Requirement ===
... ... @@ -111,95 +111,99 @@
111 111  
112 112  Below figure shows our testing structure. Here we have NB-IoT network coverage by China Mobile, the band they use is B8.  The NDS01 will use UDP(120.24.4.116:5601) or TCP(120.24.4.116:5600)protocol to send data to IoT server.
113 113  
114 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]]
115 115  
103 +[[image:1668224789474-811.png]]
116 116  
117 117  
118 118  === 2.2.1 Insert SIM card ===
119 119  
108 +
120 120  Insert the NB-IoT Card get from your provider.
121 121  
122 -
123 123  User need to take out the NB-IoT module and insert the SIM card like below:
124 124  
125 125  
126 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]]
114 +[[image:1668224846067-276.png]]
127 127  
128 128  
129 129  === 2.2.3 Configure NDS01 ===
130 130  
119 +
131 131  User need to configure NDS01 via serial port to set the **Server Address** / **Uplink Topic** to define where and how-to uplink packets. NDS01 support AT Commands, user can use a USB to TTL adapter to connect to NDS01 and use AT Commands to configure it, NDS01 needs to be in the wake-up state when using AT commands,as below.
132 132  
133 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]]
134 134  
123 +[[image:1668224930349-417.png]]
135 135  
136 136  
137 -Connection:
126 +(% style="color:blue" %)**Connection:**
138 138  
139 -USB TTL GND <~-~-~-~-> GND
128 +**~ (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND(%%)**
140 140  
141 -USB TTL TXD <~-~-~-~-> UART_RXD
130 +**~ (% style="background-color:yellow" %)USB TTL TXD  <~-~-~-~-> UART_RXD(%%)**
142 142  
143 -USB TTL RXD <~-~-~-~-> UART_TXD
132 +**~ (% style="background-color:yellow" %)USB TTL RXD  <~-~-~-~-> UART_TXD(%%)**
144 144  
145 145  
146 -
147 147  In the PC, use below serial tool settings:
148 148  
149 -* Baud: **115200**
150 -* Data bits:** 8**
151 -* Stop bits: **1**
152 -* Parity: **None**
153 -* Flow Control: **None**
137 +* Baud:  (% style="color:green" %)**9600**
138 +* Data bits:**  (% style="color:green" %)8(%%)**
139 +* Stop bits:  (% style="color:green" %)**1**
140 +* Parity:  (% style="color:green" %)**None**
141 +* Flow Control: (% style="color:green" %)**None**
154 154  
155 155  After powering on the NDS01, the following information will be printed
156 156  
157 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]]
145 +[[image:1668225099789-919.png]]
158 158  
159 -AT command set
160 160  
161 -1. Set and query the communication protocol
148 +(% style="color:blue" %)**AT command set**
162 162  
150 +(% style="color:green" %)**1. Set and query the communication protocol**
151 +
163 163   Send:  AT+PRO=<val>  Val: 0:TCP 1:UDP
164 164  
165 165   Reply: OK
166 166  
167 - Send:  AT+PRO? ~/~/Inquire
156 + Send:  AT+PRO?  ~/~/ Inquire
168 168  
169 169   Reply: +PRO:0
170 170  
171 171  OK
172 172  
173 -1. Set and query the server address
174 174  
163 +(% style="color:green" %)**2. Set and query the server address**
164 +
175 175  Send: AT+SERVADDR=<server>,<port>        
176 176  
177 - Reply: OK
167 +Reply: OK
178 178  
179 -Send: AT+SERVADDR? ~/~/Inquire
169 +Send: AT+SERVADDR?  ~/~/ Inquire
180 180  
181 181  Reply: +SERVADDR:<server>,<port>
182 182  
183 183  OK
184 184  
185 -1. Set and query the TDC
186 186  
187 -Send:AT+TDC=<value>~/~/Heartbeat time, in seconds, the default is 86400s,which is 24 hours
176 +(% style="color:green" %)**3. Set and query the TDC**
188 188  
189 -Reply:OK
178 +Send:AT+TDC=<value>  ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours
190 190  
191 -Send:AT+TDC?       ~/~/Inquire
180 +Reply: OK
192 192  
182 +Send: AT+TDC?       ~/~/ Inquire
183 +
193 193  Reply: +TDC:<value>
194 194  
195 195  OK
196 196  
197 -1. Query parameters
198 198  
199 -Send:AT+CFG?            
189 +(% style="color:green" %)**4. Query parameters**
200 200  
201 -Reply:+PRO:0
191 +Send: AT+CFG?            
202 202  
193 +Reply: +PRO:0
194 +
203 203  +SERVADDR:120.27.12.119,2023
204 204  
205 205  +TDC:86400
... ... @@ -214,22 +214,24 @@
214 214  
215 215  OK
216 216  
217 -1. Set and query the APN
218 218  
219 -Send: AT+APN="<apn>"             ~/~/Set APN          
210 +(% style="color:green" %)**5. Set and query the APN**
220 220  
212 +Send: AT+APN="<apn>"  ~/~/ Set APN          
213 +
221 221   Reply: OK
222 222  
223 -Send: AT+APN?     ~/~/Inquire
216 +Send: AT+APN?  ~/~/ Inquire
224 224  
225 225  Reply: +APN:"cmiot"
226 226  
227 227  OK
228 228  
229 -1. Alarm and Silencer
230 230  
231 -Send:AT+ALARM=<value>  ~/~/0~~1,0: mute 1: buzzer alarm (note that no data will be reported, only the buzzer and the red light are on, if it is in silent mode, only the red light is on)
223 +(% style="color:green" %)**6. Alarm and Silencer**
232 232  
225 +Send: AT+ALARM=<value>  ~/~/ 0~~1,0: mute 1: buzzer alarm (note that no data will be reported, only the buzzer and the red light are on, if it is in silent mode, only the red light is on)
226 +
233 233  Reply: OK
234 234  
235 235  
... ... @@ -237,8 +237,8 @@
237 237  
238 238  === 2.2.4 Use UDP protocol to uplink data (Default protocol) ===
239 239  
240 -* **AT+PRO=1   ** ~/~/ Set to use UDP protocol to uplink
241 -* **AT+SERVADDR=119.91.62.30,1999   **~/~/ to set UDP server address and port
234 +* (% style="color:blue" %)**AT+PRO=1   **(%%) ~/~/ Set to use UDP protocol to uplink
235 +* (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,1999   ** (%%) ~/~/ to set UDP server address and port
242 242  
243 243  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]]
244 244  
... ... @@ -246,8 +246,8 @@
246 246  
247 247  === 2.2.5 Use TCP protocol to uplink data ===
248 248  
249 -* **AT+PRO=0   ** ~/~/ Set to use TCP protocol to uplink
250 -* **AT+SERVADDR=119.91.62.30,2002   **~/~/ to set TCP server address and port
243 +* (% style="color:blue" %)**AT+PRO=0   ** (%%) ~/~/ Set to use TCP protocol to uplink
244 +* (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,2002   **(%%) ~/~/ to set TCP server address and port
251 251  
252 252  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]
253 253  
... ... @@ -256,12 +256,12 @@
256 256  
257 257  === 2.2.6 Change Update Interval ===
258 258  
259 -User can use below command to change the **uplink interval**.
253 +User can use below command to change the (% style="color:blue" %)**uplink interval**.
260 260  
261 -**AT+TDC=86400      **~/~/ Set Update Interval to 86400s
255 +(% style="color:blue" %)**AT+TDC=86400      ** (%%)~/~/ Set Update Interval to 86400s
262 262  
263 263  
264 -**NOTE:**
258 +(% style="color:red" %)**NOTE:**
265 265  
266 266  1. By default, the device will send an uplink message every 24 hour (86400s).
267 267  
... ... @@ -391,8 +391,6 @@
391 391  
392 392  * Tail:0x494F54(fixed)
393 393  
394 -
395 -
396 396  == 2.4 Node-Red Example ==
397 397  
398 398  Please refer to this link for the use of Node-RED:
1668224846067-276.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +761.6 KB
Content
1668224930349-417.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +712.3 KB
Content
1668225099789-919.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +131.4 KB
Content
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0