Changes for page NDS01 - NB-IoT Door Sensor User Manual
Last modified by Xiaoling on 2024/01/18 18:04
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13,6 +13,7 @@ 13 13 14 14 = 1. Introduction = 15 15 16 + 16 16 == 1.1 What is NDS01 NB-IoT Door Sensor == 17 17 18 18 ... ... @@ -31,6 +31,7 @@ 31 31 32 32 33 33 35 + 34 34 == 1.2 Specifications == 35 35 36 36 ... ... @@ -39,6 +39,7 @@ 39 39 * Supply Voltage: 2.1v ~~ 3.6v 40 40 * Operating Temperature: -10 ~~ 50°C 41 41 44 + 42 42 **NB-IoT Spec:** 43 43 44 44 * - B1 @H-FDD: 2100MHz ... ... @@ -48,6 +48,7 @@ 48 48 * - B20 @H-FDD: 800MHz 49 49 * - B28 @H-FDD: 700MHz 50 50 54 + 51 51 **Power Consumption** 52 52 53 53 * IDEL Mode: 10uA @ 3.3v ... ... @@ -68,6 +68,8 @@ 68 68 * Micro SIM card slot for NB-IoT SIM 69 69 * 2 x AAA LR03 Batteries 70 70 75 + 76 + 71 71 == 1.4 Applications == 72 72 73 73 ... ... @@ -76,8 +76,11 @@ 76 76 * Smart Cities 77 77 * Smart Factory 78 78 85 + 86 + 79 79 = 2. Use NDS01 to communicate with IoT Server = 80 80 89 + 81 81 == 2.1 How it works == 82 82 83 83 ... ... @@ -88,6 +88,7 @@ 88 88 89 89 == 2.2 Configure the NDS01 == 90 90 100 + 91 91 === 2.2.1 Test Requirement === 92 92 93 93 ... ... @@ -103,95 +103,92 @@ 103 103 [[image:1668224789474-811.png]] 104 104 105 105 116 + 106 106 === 2.2.1 Insert SIM card === 107 107 108 - 109 109 Insert the NB-IoT Card get from your provider. 110 110 121 + 111 111 User need to take out the NB-IoT module and insert the SIM card like below: 112 112 113 113 114 -[[image: 1668224846067-276.png]]125 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]] 115 115 116 116 117 117 === 2.2.3 Configure NDS01 === 118 118 119 - 120 120 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. 121 121 132 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 122 122 123 -[[image:1668224930349-417.png]] 124 124 125 125 126 - (% style="color:blue" %)**Connection:**136 +Connection: 127 127 128 - **~ (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND(%%)**138 +USB TTL GND <~-~-~-~-> GND 129 129 130 - **~ (% style="background-color:yellow" %)USB TTL TXD(%%)**140 +USB TTL TXD <~-~-~-~-> UART_RXD 131 131 132 - **~ (% style="background-color:yellow" %)USB TTL RXD(%%)**142 +USB TTL RXD <~-~-~-~-> UART_TXD 133 133 134 134 145 + 135 135 In the PC, use below serial tool settings: 136 136 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**148 +* Baud: **115200** 149 +* Data bits:** 8** 150 +* Stop bits: **1** 151 +* Parity: **None** 152 +* Flow Control: **None** 142 142 143 143 After powering on the NDS01, the following information will be printed 144 144 145 -[[image: 1668225099789-919.png]]156 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]] 146 146 158 +AT command set 147 147 148 - (%style="color:blue"%)**ATcommandset**160 +1. Set and query the communication protocol 149 149 150 -(% style="color:#037691" %)**1. Set and query the communication protocol** 151 - 152 152 Send: AT+PRO=<val> Val: 0:TCP 1:UDP 153 153 154 154 Reply: OK 155 155 156 - Send: AT+PRO? 166 + Send: AT+PRO? ~/~/Inquire 157 157 158 158 Reply: +PRO:0 159 159 160 160 OK 161 161 172 +1. Set and query the server address 162 162 163 -(% style="color:#037691" %)**2. Set and query the server address** 164 - 165 165 Send: AT+SERVADDR=<server>,<port> 166 166 167 -Reply: OK 176 + Reply: OK 168 168 169 -Send: AT+SERVADDR? 178 +Send: AT+SERVADDR? ~/~/Inquire 170 170 171 171 Reply: +SERVADDR:<server>,<port> 172 172 173 173 OK 174 174 184 +1. Set and query the TDC 175 175 176 - (% style="color:#037691" %)**3. SetandquerytheTDC**186 +Send:AT+TDC=<value>~/~/Heartbeat time, in seconds, the default is 86400s,which is 24 hours 177 177 178 - Send:AT+TDC=<value> ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours188 +Reply:OK 179 179 180 - Reply:OK190 +Send:AT+TDC? ~/~/Inquire 181 181 182 -Send: AT+TDC? ~/~/ Inquire 183 - 184 184 Reply: +TDC:<value> 185 185 186 186 OK 187 187 196 +1. Query parameters 188 188 189 - (% style="color:#037691"%)**4. Query parameters**198 +Send:AT+CFG? 190 190 191 - Send:AT+CFG?200 +Reply:+PRO:0 192 192 193 -Reply: +PRO:0 194 - 195 195 +SERVADDR:120.27.12.119,2023 196 196 197 197 +TDC:86400 ... ... @@ -206,33 +206,31 @@ 206 206 207 207 OK 208 208 216 +1. Set and query the APN 209 209 210 - (% style="color:#037691"%)**5.Setand query theAPN**218 +Send: AT+APN="<apn>" ~/~/Set APN 211 211 212 - Send:AT+APN="<apn>"~/~/SetAPN220 + Reply: OK 213 213 214 - **Reply:**OK222 +Send: AT+APN? ~/~/Inquire 215 215 216 - **Send:**AT+APN? ~/~/ Inquire224 +Reply: +APN:"cmiot" 217 217 218 -**Reply:** +APN:"cmiot" 219 - 220 220 OK 221 221 228 +1. Alarm and Silencer 222 222 223 - (% style="color:#037691"%)**6.Alarm andSilencer**230 +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) 224 224 225 - **Send: **AT+ALARM=<value> ~/~/ 0~~1,0: mute 1: buzzer alarm (note that no data will be reported, onlythe buzzer and the red light are on, if it is in silent mode, only the red light is on)232 +Reply: OK 226 226 227 -**Reply:** OK 228 228 229 229 230 230 231 - 232 232 === 2.2.4 Use UDP protocol to uplink data (Default protocol) === 233 233 234 -* (% style="color:blue" %)**AT+PRO=1 **(%%)~/~/ Set to use UDP protocol to uplink235 -* (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,1999 **(%%)~/~/ to set UDP server address and port239 +* **AT+PRO=1 ** ~/~/ Set to use UDP protocol to uplink 240 +* **AT+SERVADDR=119.91.62.30,1999 **~/~/ to set UDP server address and port 236 236 237 237 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 238 238 ... ... @@ -240,8 +240,8 @@ 240 240 241 241 === 2.2.5 Use TCP protocol to uplink data === 242 242 243 -* (% style="color:blue" %)**AT+PRO=0 **(%%)~/~/ Set to use TCP protocol to uplink244 -* (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,2002 **(%%)~/~/ to set TCP server address and port248 +* **AT+PRO=0 ** ~/~/ Set to use TCP protocol to uplink 249 +* **AT+SERVADDR=119.91.62.30,2002 **~/~/ to set TCP server address and port 245 245 246 246 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]] 247 247 ... ... @@ -250,12 +250,12 @@ 250 250 251 251 === 2.2.6 Change Update Interval === 252 252 253 -User can use below command to change the (% style="color:blue" %)**uplink interval**.258 +User can use below command to change the **uplink interval**. 254 254 255 - (% style="color:blue" %)**AT+TDC=86400 **(%%)~/~/ Set Update Interval to 86400s260 +**AT+TDC=86400 **~/~/ Set Update Interval to 86400s 256 256 257 257 258 - (% style="color:red" %)**NOTE:**263 +**NOTE:** 259 259 260 260 1. By default, the device will send an uplink message every 24 hour (86400s). 261 261 ... ... @@ -385,6 +385,8 @@ 385 385 386 386 * Tail:0x494F54(fixed) 387 387 393 + 394 + 388 388 == 2.4 Node-Red Example == 389 389 390 390 Please refer to this link for the use of Node-RED: