<
From version < 10.3 >
edited by Xiaoling
on 2022/11/12 13:56
To version < 10.4 >
edited by Xiaoling
on 2022/11/12 14:19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -234,8 +234,6 @@
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 -
238 -
239 239  [[image:1668231759500-524.png]]
240 240  
241 241  === 2.2.5 Use TCP protocol to uplink data ===
... ... @@ -277,40 +277,42 @@
277 277  )))|(% 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**
278 278  |(% 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
279 279  
280 -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 +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:#0020b0" %)3839383631313230323234303134333938373632 (% style="color:#420042" %)1E (% style="color:#663300" %)15 (% style="color:#660066" %)494F54(%%)**
281 281  
282 -* (% style="color:#037691" %)Head: (%%)0x4B57(fixed)
280 +**where:**
283 283  
284 -* (% style="color:#037691" %)Version: (%%)0x10=”V1.0”
282 +* (% style="color:#037691" %)**Head:** (%%)0x4B57(fixed)
285 285  
286 -* (% style="color:#037691" %)Data type: (%%)0x01=1(1:register,2:data sending)
284 +* (% style="color:#037691" %)**Version:** (%%)0x10=”V1.0”
287 287  
288 -* (% style="color:#037691" %)Data length: (%%)0x34=52(Valid data is 52 bytes)
286 +* (% style="color:#037691" %)**Data type:** (%%)0x01=1(1:register,2:data sending)
289 289  
290 -* (% style="color:#037691" %)Device type:(%%) 0x01 = 1(Representative NDS01)
288 +* (% style="color:#037691" %)**Data length:** (%%)0x34=52(Valid data is 52 bytes)
291 291  
292 -* (% style="color:#037691" %)Device ID: (%%)0x383639393735303334343431303832=869975034441082(ASCII)
290 +* (% style="color:#037691" %)**Device type:**(%%) 0x01 = 1(Representative NDS01)
293 293  
294 -* (% style="color:#037691" %)IMSI:(%%) 0x343630313133313138373433373332 = 460113118743732(ASCII)
292 +* (% style="color:#037691" %)**Device ID:** (%%)0x383639393735303334343431303832=869975034441082(ASCII)
295 295  
296 -* (% style="color:#037691" %)ICCID:(%%) 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII)
294 +* (% style="color:#037691" %)**IMSI:**(%%) 0x343630313133313138373433373332 = 460113118743732(ASCII)
297 297  
298 -* (% style="color:#037691" %)Bat: (%%)0x1E = 30/10=3.0V
296 +* (% style="color:#037691" %)**ICCID:**(%%) 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII)
299 299  
300 -* (% style="color:#037691" %)Signal:(%%) 0x15=21
298 +* (% style="color:#037691" %)**Bat: **(%%)0x1E = 30/10=3.0V
301 301  
302 -**(% style="color:red" %)0**(%%) -113dBm or less
300 +* (% style="color:#037691" %)**Signal:**(%%) 0x15=21
303 303  
304 -**(% style="color:red" %)1** (%%)-111dBm
302 +(% style="color:red" %)**0**(%%) -113dBm or less
305 305  
306 -**(% style="color:red" %)2...30**(%%) -109dBm... -53dBm
304 +(% style="color:red" %)**1** (%%)-111dBm
307 307  
308 -**(% style="color:red" %)31** (%%)-51dBm or greater
306 +(% style="color:red" %)**2...30**(%%) -109dBm... -53dBm
309 309  
310 -**(% style="color:red" %)99** (%%)Not known or not detectable
308 +(% style="color:red" %)**31** (%%)-51dBm or greater
311 311  
312 -* (% style="color:#037691" %)Tail: 0x494F54(fixed)
310 +(% style="color:red" %)**99** (%%)Not known or not detectable
313 313  
312 +* (% style="color:#037691" %)**Tail: **(%%)0x494F54(fixed)
313 +
314 314  data upload, uplink payload includes in total 32 bytes
315 315  
316 316  |(((
... ... @@ -334,69 +334,72 @@
334 334  decimal
335 335  )))|tail
336 336  
337 -The payload is ASCII string, representative same HEX: 0x4B5710021401383639393735303334343431303832010020151c552312494F54 where:
337 +The payload is ASCII string, representative same HEX: 0x (% style="color:red" %)4B57 (% style="color:blue" %)10 (% style="color:green" %)02 (% style="color:#00b0f0" %)14 (% style="color:#7030a0" %)01 (% style="color:#d60093" %)383639393735303334343431303832 (% style="color:#a14d07" %)01 (% style="color:#0020b0" %)00 (% style="color:#420042" %)20 (% style="color:#663300" %)15 (% style="color:#660066" %)1c (% style="color:#aaaa40" %)55 (% style="color:#abaa70" %)23 (% style="color:#ba5a70" %)12 (% style="color:#acaab0" %)494F54
338 338  
339 -* Head: 0x4B57(fixed)
339 +**where:**
340 340  
341 -* Version: 0x10=”V1.0”
342 -* Data type: 0x02=2(1:register,2:data sending)
341 +* (% style="color:#037691" %)**Head:** (%%)0x4B57(fixed)
343 343  
344 -* Data length: 0x14=20(Valid data is 20 bytes)
343 +* (% style="color:#037691" %)**Version:** (%%)0x10=”V1.0
345 345  
346 -* Device type: 0x01 = 1(Representative NDS01)
345 +* (% style="color:#037691" %)**Data type:** (%%)0x02=2(1:register,2:data sending)
347 347  
348 -* Device ID:0x383639393735303334343431303832=869975034441082(ASCII)
349 -* Event type:0x01
347 +* (% style="color:#037691" %)**Data length:** (%%)0x14=20(Valid data is 20 bytes)
350 350  
351 - 01:TDC
349 +* (% style="color:#037691" %)**Device type: **(%%)0x01 = 1(Representative NDS01)
352 352  
353 - 02:alarm
351 +* (% style="color:#037691" %)**Device ID:** (%%)0x383639393735303334343431303832=869975034441082(ASCII)
354 354  
355 - 03:remove alarm
353 +* (% style="color:#037691" %)**Event type:** (%%)0x01
356 356  
357 - 04:dismantling alarm
355 +(% style="color:red" %)** 01:**(%%) TDC
358 358  
359 - 05:remove demolition alarm
357 +(% style="color:red" %)** 02:**(%%)** **alarm
360 360  
361 - 06:low voltage
359 +(% style="color:red" %)** 03:**(%%) remove alarm
362 362  
363 - 07:remove low voltage
361 + (% style="color:red" %)**04: **(%%)dismantling alarm
364 364  
365 -* Door magnetic state: 0x00
363 + (% style="color:red" %)**05:** (%%)remove demolition alarm
366 366  
367 - 00:Door sensor is close
365 + (% style="color:red" %)**06:** (%%)low voltage
368 368  
369 - 01:Door sensor is open
367 +**~ (% style="color:red" %)07: (%%)**remove low voltage
370 370  
371 -* Bat: 0x20 = 32/10=3.2V
369 +* (% style="color:#037691" %)**Door magnetic state:** (%%)0x00
372 372  
373 -* Signal: 0x15=21
371 + (% style="color:red" %)**00:**(%%) Door sensor is close
374 374  
375 -**0** -113dBm or less
373 + (% style="color:red" %)**01:** (%%)Door sensor is open
376 376  
377 -**1** -111dBm
375 +* (% style="color:#037691" %)**Bat:**(%%)** **0x20 = 32/10=3.2V
378 378  
379 -**2...30** -109dBm... -53dBm
377 +* (% style="color:#037691" %)**Signal:**(%%)** **0x15=21
380 380  
381 -**31** -51dBm or greater
379 +(% style="color:red" %)** 0**  (%%)-113dBm or less
382 382  
383 -**99** Not known or not detectable
381 +(% style="color:red" %)** 1**  (%%)-111dBm
384 384  
385 -* Temp integer:0x1c=28
383 +(% style="color:red" %)** 2...30**(%%) -109dBm... -53dBm
386 386  
387 -* Temp decimal:0x55=85
385 +(% style="color:red" %)** 31**  (%%)-51dBm or greater
388 388  
387 +(% style="color:red" %)** 99**  (%%)Not known or not detectable
388 +
389 +* (% style="color:#037691" %)**Temp integer:**(%%) 0x1c=28
390 +
391 +* (% style="color:#037691" %)**Temp decimal:** (%%)0x55=85
392 +
389 389   Temp =Temp integer+(Temp decimal)/100=28+85/100=28.85℃
390 390  
391 -* Hum integer:0x23=35
395 +* (% style="color:#037691" %)**Hum integer:  **(%%)0x23=35
392 392  
393 -* Hum decimal:0x12=18
397 +* (% style="color:#037691" %)**Hum decimal:** (%%)0x12=18
394 394  
395 395   Hum =Hum integer+(Hum decimal)/100=35+18/100=35.18**%rh**
396 396  
397 -* Tail:0x494F54(fixed)
401 +* (% style="color:#037691" %)**Tail:** (%%)0x494F54(fixed)
398 398  
399 -
400 400  == 2.4 Node-Red Example ==
401 401  
402 402  Please refer to this link for the use of Node-RED:
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0