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,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,11 +82,8 @@ 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 ... ... @@ -97,7 +97,6 @@ 97 97 98 98 == 2.2 Configure the NDS01 == 99 99 100 - 101 101 === 2.2.1 Test Requirement === 102 102 103 103 ... ... @@ -113,92 +113,95 @@ 113 113 [[image:1668224789474-811.png]] 114 114 115 115 116 - 117 117 === 2.2.1 Insert SIM card === 118 118 108 + 119 119 Insert the NB-IoT Card get from your provider. 120 120 121 - 122 122 User need to take out the NB-IoT module and insert the SIM card like below: 123 123 124 124 125 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]]114 +[[image:1668224846067-276.png]] 126 126 127 127 128 128 === 2.2.3 Configure NDS01 === 129 129 119 + 130 130 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. 131 131 132 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 133 133 123 +[[image:1668224930349-417.png]] 134 134 135 135 136 -Connection: 126 +(% style="color:blue" %)**Connection:** 137 137 138 -USB TTL GND <~-~-~-~-> GND 128 +**~ (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND(%%)** 139 139 140 -USB TTL TXD <~-~-~-~-> UART_RXD 130 +**~ (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD(%%)** 141 141 142 -USB TTL RXD <~-~-~-~-> UART_TXD 132 +**~ (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD(%%)** 143 143 144 144 145 - 146 146 In the PC, use below serial tool settings: 147 147 148 -* Baud: ** 115200**149 -* Data bits:** 8** 150 -* Stop bits: **1** 151 -* Parity: **None** 152 -* 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** 153 153 154 154 After powering on the NDS01, the following information will be printed 155 155 156 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]]145 +[[image:1668225099789-919.png]] 157 157 158 -AT command set 159 159 160 - 1.Setand query the communicationprotocol148 +(% style="color:blue" %)**AT command set** 161 161 150 +(% style="color:green" %)**1. Set and query the communication protocol** 151 + 162 162 Send: AT+PRO=<val> Val: 0:TCP 1:UDP 163 163 164 164 Reply: OK 165 165 166 - Send: AT+PRO? ~/~/Inquire 156 + Send: AT+PRO? ~/~/ Inquire 167 167 168 168 Reply: +PRO:0 169 169 170 170 OK 171 171 172 -1. Set and query the server address 173 173 163 +(% style="color:green" %)**2. Set and query the server address** 164 + 174 174 Send: AT+SERVADDR=<server>,<port> 175 175 176 - 167 +Reply: OK 177 177 178 -Send: AT+SERVADDR? ~/~/Inquire 169 +Send: AT+SERVADDR? ~/~/ Inquire 179 179 180 180 Reply: +SERVADDR:<server>,<port> 181 181 182 182 OK 183 183 184 -1. Set and query the TDC 185 185 186 - Send:AT+TDC=<value>~/~/Heartbeat time, inseconds,thedefaultis 86400s,whichis 24 hours176 +(% style="color:green" %)**3. Set and query the TDC** 187 187 188 - Reply:OK178 +Send:AT+TDC=<value> ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours 189 189 190 - Send:AT+TDC?~/~/Inquire180 +Reply: OK 191 191 182 +Send: AT+TDC? ~/~/ Inquire 183 + 192 192 Reply: +TDC:<value> 193 193 194 194 OK 195 195 196 -1. Query parameters 197 197 198 - Send:AT+CFG?189 +(% style="color:green" %)**4. Query parameters** 199 199 200 - Reply:+PRO:0191 +Send: AT+CFG? 201 201 193 +Reply: +PRO:0 194 + 202 202 +SERVADDR:120.27.12.119,2023 203 203 204 204 +TDC:86400 ... ... @@ -213,22 +213,24 @@ 213 213 214 214 OK 215 215 216 -1. Set and query the APN 217 217 218 - Send:AT+APN="<apn>"~/~/Set APN210 +(% style="color:green" %)**5. Set and query the APN** 219 219 212 +Send: AT+APN="<apn>" ~/~/ Set APN 213 + 220 220 Reply: OK 221 221 222 -Send: AT+APN? 216 +Send: AT+APN? ~/~/ Inquire 223 223 224 224 Reply: +APN:"cmiot" 225 225 226 226 OK 227 227 228 -1. Alarm and Silencer 229 229 230 - Send:AT+ALARM=<value>~/~/0~~1,0: mute 1: buzzer alarm (notethat nodata will be reported, only thebuzzer andtheredlightareon,if it is in silent mode, only thered light is on)223 +(% style="color:green" %)**6. Alarm and Silencer** 231 231 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 + 232 232 Reply: OK 233 233 234 234 ... ... @@ -236,8 +236,8 @@ 236 236 237 237 === 2.2.4 Use UDP protocol to uplink data (Default protocol) === 238 238 239 -* **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 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 241 241 242 242 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 243 243 ... ... @@ -245,8 +245,8 @@ 245 245 246 246 === 2.2.5 Use TCP protocol to uplink data === 247 247 248 -* **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 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 250 250 251 251 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]] 252 252 ... ... @@ -255,12 +255,12 @@ 255 255 256 256 === 2.2.6 Change Update Interval === 257 257 258 -User can use below command to change the **uplink interval**. 253 +User can use below command to change the (% style="color:blue" %)**uplink interval**. 259 259 260 -**AT+TDC=86400 **~/~/ Set Update Interval to 86400s 255 +(% style="color:blue" %)**AT+TDC=86400 ** (%%)~/~/ Set Update Interval to 86400s 261 261 262 262 263 -**NOTE:** 258 +(% style="color:red" %)**NOTE:** 264 264 265 265 1. By default, the device will send an uplink message every 24 hour (86400s). 266 266 ... ... @@ -390,8 +390,6 @@ 390 390 391 391 * Tail:0x494F54(fixed) 392 392 393 - 394 - 395 395 == 2.4 Node-Red Example == 396 396 397 397 Please refer to this link for the use of Node-RED: