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
-
... ... @@ -149,13 +149,13 @@ 149 149 150 150 (% style="color:#037691" %)**1. Set and query the communication protocol** 151 151 152 - 152 +**Send: ** AT+PRO=<val> Val: 0:TCP 1:UDP 153 153 154 - 154 +**Reply: **OK 155 155 156 - 156 +**Send: ** AT+PRO? ~/~/ Inquire 157 157 158 - 158 +**Reply:** +PRO:0 159 159 160 160 OK 161 161 ... ... @@ -162,13 +162,13 @@ 162 162 163 163 (% style="color:#037691" %)**2. Set and query the server address** 164 164 165 -Send: AT+SERVADDR=<server>,<port> 165 +**Send:** AT+SERVADDR=<server>,<port> 166 166 167 -Reply: OK 167 +**Reply:** OK 168 168 169 -Send: AT+SERVADDR? ~/~/ Inquire 169 +**Send:** AT+SERVADDR? ~/~/ Inquire 170 170 171 -Reply: +SERVADDR:<server>,<port> 171 +**Reply: **+SERVADDR:<server>,<port> 172 172 173 173 OK 174 174 ... ... @@ -175,13 +175,13 @@ 175 175 176 176 (% style="color:#037691" %)**3. Set and query the TDC** 177 177 178 -Send:AT+TDC=<value> ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours 178 +**Send:** AT+TDC=<value> ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours 179 179 180 -Reply: OK 180 +**Reply:** OK 181 181 182 -Send: AT+TDC? ~/~/ Inquire 182 +**Send:** AT+TDC? ~/~/ Inquire 183 183 184 -Reply: +TDC:<value> 184 +**Reply:** +TDC:<value> 185 185 186 186 OK 187 187 ... ... @@ -188,9 +188,9 @@ 188 188 189 189 (% style="color:#037691" %)**4. Query parameters** 190 190 191 -Send: AT+CFG? 191 +**Send:** AT+CFG? 192 192 193 -Reply: +PRO:0 193 +**Reply:** +PRO:0 194 194 195 195 +SERVADDR:120.27.12.119,2023 196 196 ... ... @@ -209,7 +209,7 @@ 209 209 210 210 (% style="color:#037691" %)**5. Set and query the APN** 211 211 212 -Send: AT+APN="<apn>" ~/~/ Set APN 212 +**Send:** AT+APN="<apn>" ~/~/ Set APN 213 213 214 214 **Reply:** OK 215 215 ... ... @@ -228,28 +228,31 @@ 228 228 229 229 230 230 231 - 232 232 === 2.2.4 Use UDP protocol to uplink data (Default protocol) === 233 233 233 + 234 234 * (% style="color:blue" %)**AT+PRO=1 **(%%) ~/~/ Set to use UDP protocol to uplink 235 235 * (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,1999 ** (%%) ~/~/ to set UDP server address and port 236 236 237 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 238 238 239 239 239 +[[image:1668231759500-524.png]] 240 240 241 + 242 + 241 241 === 2.2.5 Use TCP protocol to uplink data === 242 242 245 + 243 243 * (% style="color:blue" %)**AT+PRO=0 ** (%%) ~/~/ Set to use TCP protocol to uplink 244 244 * (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,2002 **(%%) ~/~/ to set TCP server address and port 245 245 246 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]249 +[[image:1668231789502-211.png]] 247 247 248 248 249 249 250 - 251 251 === 2.2.6 Change Update Interval === 252 252 255 + 253 253 User can use below command to change the (% style="color:blue" %)**uplink interval**. 254 254 255 255 (% style="color:blue" %)**AT+TDC=86400 ** (%%)~/~/ Set Update Interval to 86400s ... ... @@ -257,59 +257,63 @@ 257 257 258 258 (% style="color:red" %)**NOTE:** 259 259 260 -1. By default, the device will send an uplink message every 24 hour (86400s). 263 +~1. By default, the device will send an uplink message every 24 hour (86400s). 261 261 262 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.png]] 263 263 266 +[[image:1668231824288-204.png]] 264 264 265 265 266 266 267 267 == 2.3 Uplink Payload == 268 268 272 + 269 269 registration package, uplink payload includes in total 61 bytes 270 270 271 271 272 -|((( 273 -**Size** 276 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:520px" %) 277 +|(% style="width:94px" %)((( 278 +**Size(bytes)** 279 +)))|(% style="width:51px" %)**2**|(% style="width:68px" %)**1**|(% style="width:81px" %)**1**|(% style="width:96px" %)**1**|(% style="width:94px" %)**1**|(% style="width:80px" %)**15**|(% style="width:49px" %)**15**|(% style="width:57px" %)**20**|(% style="width:43px" %)**1**|(% style="width:59px" %)**1**|(% style="width:41px" %)**3** 280 +|(% style="width:94px" %)**Value**|(% style="width:51px" %)head|(% style="width:68px" %)Version|(% style="width:81px" %)data type|(% style="width:96px" %)Data length|(% style="width:94px" %)device type|(% style="width:80px" %)device ID|(% style="width:49px" %)IMSI|(% style="width:57px" %)ICCID|(% style="width:43px" %)BAT|(% style="width:59px" %)Signal|(% style="width:41px" %)tail 274 274 275 -**(bytes)** 276 -)))|**2**|**1**|**1**|**1**|**1**|**15**|**15**|**20**|**1**|**1**|**3** 277 -|**Value**|head|Version|data type|Data length|device type|device ID|IMSI|ICCID|BAT|Signal|tail 282 +The payload is ASCII string, representative same HEX: 0x (% style="color:red" %)4B57 (% style="color:blue" %)10 (% style="color:green" %)01 (% style="color:#00b0f0" %)34 (% style="color:#7030a0" %) 01 (% style="color:#d60093" %)383639393735303334343431303832 (% style="color:#a14d07" %343630313133313138373433373332 (% style="color:#0020b0" %)3839383631313230323234303134333938373632 (% style="color:#420042" %)1E (% style="color:#663300" %)15 (% style="color:#660066" %)494F54 where: 278 278 279 - ThepayloadisASCII string, representativesameHEX: 0x4B5710013401383639393735303334343431303832343630313133313138373433373332284 +* (% style="color:#037691" %)Head: (%%)0x4B57(fixed) 280 280 281 - 38393836313132303232343031343339383736321E15494F54where:286 +* (% style="color:#037691" %)Version: (%%)0x10=”V1.0” 282 282 283 -* Head: 0x4B57(fixed) 284 -* Version: 0x10=”V1.0” 285 -* Data type: 0x01=1(1:register,2:data sending) 286 -* Data length: 0x34=52(Valid data is 52 bytes) 288 +* (% style="color:#037691" %)Data type: (%%)0x01=1(1:register,2:data sending) 287 287 288 -* Device type: 0x01 = 1(Representative NDS01) 289 -* Device ID:0x383639393735303334343431303832=869975034441082(ASCII) 290 -* IMSI: 0x343630313133313138373433373332 = 460113118743732(ASCII) 291 -* ICCID: 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII) 292 -* Bat: 0x1E = 30/10=3.0V 293 -* Signal: 0x15=21 290 +* (% style="color:#037691" %)Data length: (%%)0x34=52(Valid data is 52 bytes) 294 294 295 -* *0**-113dBmorless292 +* (% style="color:#037691" %)Device type:(%%) 0x01 = 1(Representative NDS01) 296 296 297 -* *1**-111dBm294 +* (% style="color:#037691" %)Device ID: (%%)0x383639393735303334343431303832=869975034441082(ASCII) 298 298 299 -* *2...30**-109dBm...-53dBm296 +* (% style="color:#037691" %)IMSI:(%%) 0x343630313133313138373433373332 = 460113118743732(ASCII) 300 300 301 -* *31**-51dBmor greater298 +* (% style="color:#037691" %)ICCID:(%%) 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII) 302 302 303 -* *99**Notknownornotdetectable300 +* (% style="color:#037691" %)Bat: (%%)0x1E = 30/10=3.0V 304 304 305 -* Tail:0x494F54(fixed)302 +* (% style="color:#037691" %)Signal:(%%) 0x15=21 306 306 304 +**(% style="color:red" %)0**(%%) -113dBm or less 305 + 306 +**(% style="color:red" %)1** (%%)-111dBm 307 + 308 +**(% style="color:red" %)2...30**(%%) -109dBm... -53dBm 309 + 310 +**(% style="color:red" %)31** (%%)-51dBm or greater 311 + 312 +**(% style="color:red" %)99** (%%)Not known or not detectable 313 + 314 +* (% style="color:#037691" %)Tail: 0x494F54(fixed) 315 + 307 307 data upload, uplink payload includes in total 32 bytes 308 308 309 309 |((( 310 -**Size** 311 - 312 -**(bytes)** 319 +**Size(bytes)** 313 313 )))|**2**|**1**|**1**|**1**|**1**|**15**|**1**|**1**|**1**|**1**|**1**|**1**|**1**|**1**|**3** 314 314 |**Value**|head|Version|data type|Data length|device type|device ID|event type|Door magnetic state|BAT|Signal|((( 315 315 Temp ... ... @@ -332,12 +332,17 @@ 332 332 The payload is ASCII string, representative same HEX: 0x4B5710021401383639393735303334343431303832010020151c552312494F54 where: 333 333 334 334 * Head: 0x4B57(fixed) 342 + 335 335 * Version: 0x10=”V1.0” 344 + 336 336 * Data type: 0x02=2(1:register,2:data sending) 346 + 337 337 * Data length: 0x14=20(Valid data is 20 bytes) 338 338 339 339 * Device type: 0x01 = 1(Representative NDS01) 350 + 340 340 * Device ID:0x383639393735303334343431303832=869975034441082(ASCII) 352 + 341 341 * Event type:0x01 342 342 343 343 01:TDC ... ... @@ -361,6 +361,7 @@ 361 361 01:Door sensor is open 362 362 363 363 * Bat: 0x20 = 32/10=3.2V 376 + 364 364 * Signal: 0x15=21 365 365 366 366 **0** -113dBm or less ... ... @@ -374,11 +374,13 @@ 374 374 **99** Not known or not detectable 375 375 376 376 * Temp integer:0x1c=28 390 + 377 377 * Temp decimal:0x55=85 378 378 379 379 Temp =Temp integer+(Temp decimal)/100=28+85/100=28.85℃ 380 380 381 381 * Hum integer:0x23=35 396 + 382 382 * Hum decimal:0x12=18 383 383 384 384 Hum =Hum integer+(Hum decimal)/100=35+18/100=35.18**%rh** ... ... @@ -385,6 +385,7 @@ 385 385 386 386 * Tail:0x494F54(fixed) 387 387 403 + 388 388 == 2.4 Node-Red Example == 389 389 390 390 Please refer to this link for the use of Node-RED: