Changes for page wiki_test

Last modified by Mengting Qiu on 2024/09/05 17:35

From version 133.1
edited by Mengting Qiu
on 2023/11/15 17:57
Change comment: There is no comment for this version
To version 124.6
edited by Xiaoling
on 2023/11/15 10:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ting
1 +XWiki.Xiaoling
Content
... ... @@ -203,7 +203,6 @@
203 203  
204 204  * Wood Door: 10mm ~~ 30mm
205 205  * Iron Door: 30 ~~ 45mm
206 -(% style="display:none" %) (%%)
207 207  
208 208  = 2. Use DS03A-NB to communicate with IoT Server =
209 209  
... ... @@ -281,39 +281,24 @@
281 281  === 2.2.1 General Json Format(Type~=5) ===
282 282  
283 283  
284 -(% style="color:red" %)**This is the General Json Format. Payloads in General Json format for single-channel mode and double-channel mode have different byte lengths.**
283 +This is the General Json Format. As below:
285 285  
286 -
287 -**The General Json format payload for the single-channel mode is as follows:**
288 -
289 289  (% style="color:#4472c4" %)**{"IMEI":"866207052559857","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":0,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":0,"last open time2":0,"battery":3.48,"signal":24,"1":{1,0,0,2023/11/13 09:59:01},"2":{0,0,261,2023/11/13 03:20:00},"3":{237,9896971,263,2023/11/13 03:05:00},"4":{0,29,263,2023/11/13 02:20:12},"5":{215,9897015,268,2023/11/13 01:58:16},"6":{0,79,261,2023/11/13 01:43:16},"7":{227,9896991,5368540,2023/11/13 01:18:46},"8":{0,19,5367640,2023/11/11 08:53:57}}**
290 290  
291 -[[image:image-20231115162221-7.png]]
292 292  
288 +[[image:image-20231113180055-1.png]]
293 293  
294 -**The General Json format payload for the double-channel mode is as follows:**
295 295  
296 -(% style="color:#4472c4" %)**{"IMEI":"866207058378443","Model":"DS03A-NB","level status":1,"alarm status":0,"door open num":2,"last open time":0,"level status2":1,"alarm status2":0,"door open num2":3,"last open time2":0,"battery":3.39,"signal":25,"1":{1,4,0,1,3,0,2023/11/15 07:54:30},"2":{1,3,0,1,6,1,2023/11/15 07:10:04},"3":{0,0,0,1,1,0,2023/11/15 06:55:04},"4":{0,0,0,1,0,0,2023/11/15 06:40:04},"5":{0,0,0,1,0,0,2023/11/15 03:50:36},"6":{0,0,0,1,4,11,2023/11/15 03:28:16},"7":{0,0,0,1,4,11,2023/11/15 03:13:16},"8":{0,0,0,1,3,11,2023/11/15 02:58:25}}**
297 -
298 -[[image:image-20231115161803-6.png]]
299 -
300 -
301 301  (% style="color:red" %)**Notice, from above payload:**
302 302  
303 -* level status, alarm status, door open num, last open time, level status2, alarm status2, door open sum2, last open time2, Battery & Signal are the value at uplink time.
293 +* Distance , Battery & Signal are the value at uplink time.
304 304  
305 -* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right):
295 +* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right): Water Flow, Sampling time.
306 306  
307 - Single-channel mode: level status, door open num, last open time, Sampling time.
308 -
309 - Double-channel mode: level status, door open num, last open time, level status2, door open sum2, last open time2, Sampling time.
310 -
311 -
312 -
313 313  === 2.2.2 HEX format Payload(Type~=0) ===
314 314  
315 315  
316 -(% style="color:red" %)**This is the HEX Format. Payloads in HEX format for single-channel mode and double-channel mode have different byte lengths.**
300 +This is the HEX Format. HEX format Payload Single-channel and double-channel payload have different byte lengths.w
317 317  
318 318  
319 319  **The HEX format payload for the single-channel mode is as follows:**
... ... @@ -384,28 +384,15 @@
384 384  
385 385  Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
386 386  
387 -(% style="color:#4472c4" %)**{
388 - "IMEI": "866207058378443",
389 - "Model": "DS03A-NB",
390 - "level status": 1,
391 - "alarm status": 0,
392 - "door open num": 6,
393 - "last open time": 1,
394 - "level status2": 1,
395 - "alarm status2": 0,
396 - "door open num2": 2,
397 - "last open time2": 0,
398 - "battery": 3.4,
399 - "signal": 24
400 - }**
371 +(% style="color:#4472c4" %)** {"IMEI": "866207058378443","Model": "DS03A","flow": 502,"battery": 3.57,"signal": 23}**
401 401  
402 -[[image:image-20231115150948-1.png||height="625" width="1188"]]
373 +[[image:image-20230922094043-2.png||height="558" width="851"]]
403 403  
404 404  
405 405  === 2.2.4 ThingSpeak Payload(Type~=1) ===
406 406  
407 407  
408 -This payload meets ThingSpeak platform requirement. It includes eight fields. Form 1~~8 are:
379 +This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~3 are:
409 409  
410 410  Distance, Battery & Signal. This payload type only valid for ThingsSpeak Platform
411 411  
... ... @@ -413,15 +413,335 @@
413 413  
414 414  (% style="color:#4472c4" %)**field1=Flow value&field2=Battery value&field3=signal value**
415 415  
416 -[[image:image-20231115154757-2.png]]
387 +[[image:image-20231114165017-6.png]]
417 417  
418 -[[image:image-20231115154821-3.png||height="695" width="1119"]]
389 +[[image:image-20231114174523-8.png||height="682" width="1041"]]
419 419  
420 420  
392 +== 2.3  ​Uplink Payload ==
421 421  
422 -== 2.3 Test Uplink and Change Update Interval ==
394 +=== 2.3.1  Sensor Configuration, FPORT~=4 ===
423 423  
424 424  
397 +DS03A-NB will only send this command after getting the downlink command **(0x26 02)** from the server.
398 +
399 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
400 +|(% colspan="8" style="background-color:#4f81bd; color:white; width:515px" %)**Sensor Configuration FPORT=4**
401 +|**Size(bytes)**|(% style="width:75px" %)**3**|(% style="width:50px" %)**1**|(% style="width:100px" %)**1**|(% style="width:90px" %)**2**|(% style="width:100px" %)**1**|(% style="width:100px" %)**2**|(% style="width:98px" %)**1**
402 +|**Value**|(% style="width:75px" %)TDC (unit:sec)|(% style="width:77px" %)Disalarm|(% style="width:96px" %)(((
403 +Keep status1
404 +)))|(% style="width:99px" %)(((
405 +Keep time1(unit: sec)
406 +)))|(% style="width:87px" %)Keep status2|(% style="width:97px" %)(((
407 +Keep time2(unit: sec)
408 +)))|(% style="width:98px" %)(((
409 +Alarm interval(unit: min)
410 +)))
411 +
412 +Example parse in TTNv3
413 +
414 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155527-3.png?width=902&height=146&rev=1.1||alt="image-20230630155527-3.png"]]
415 +
416 +
417 +* (((
418 +(% style="color:blue" %)**TDC: (default: 0x001C20)**
419 +)))
420 +
421 +Uplink interval for the Open/Close Event, default value is 0x001C20 which is 7200 seconds = 2 hours.
422 +
423 +
424 +* (((
425 +(% style="color:blue" %)**Disalarm: (default: 0)**
426 +)))
427 +
428 + **If Disalarm = 1**, DS03A-NB will only send uplink at every TDC periodically. This is normally use for pulse meter application, in this application, there are many open/close event, and platform only care about the total number of pulse.
429 +
430 + **If Disalarm = 0**, DS03A-NB will send uplink at every TDC periodically and send data on each open/close event. This is useful for the application user need to monitor the open/close event in real-time.
431 +
432 +(% style="color:red" %)** Note: When Disalarm=0, a high frequently open/close event will cause lots of uplink and drain battery very fast. **
433 +
434 +
435 +* (((
436 +(% style="color:blue" %)**Keep Status1 & Keep Time1 & Keep Status2 & Keep Time2**
437 +)))
438 +
439 +Shows the configure value of [[Alarm Base on Timeout Feature>>||anchor="H2.9AlarmBaseonTimeout"]]
440 +
441 +
442 +* (((
443 +(% style="color:blue" %)**Alarm interval(default: 0)**
444 +)))
445 +
446 +When the state of the door sensor has not been changed after the timeout alarm, the device will send a uplink every alarm interval. It will stop the alarm until the state of the door sensor is changed after the timeout alarm.
447 +
448 +
449 +=== 2.3.2  Real-Time Open/Close Status, Uplink FPORT~=2 ===
450 +
451 +
452 +DS03A-NB will send this uplink **after** Device Status once join the LoRaWAN network successfully. And DS03A-NB will send uplinks when:
453 +
454 +* Every 2 hours, this interval [[can be changed>>||anchor="H2.7SetTransmitIntervalTime"]].
455 +* There is an Open/Close event.  (This info can be disabled by AT+DISALARM=1)
456 +
457 +**1) When (% style="color:blue" %)AT+TTRCHANNEL=1(%%), Uplink Payload totals (% style="color:blue" %)11 bytes. (Default mode)(%%)**
458 +
459 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
460 +|=(% colspan="5" style="background-color:#4F81BD;color:white;width:515px" %)**Real-Time Open/Close Status, FPORT=2**
461 +|(% style="width:94px" %)**Size(bytes)**|(% style="width:97px" %)**1**|(% style="width:95px" %)**3**|(% style="width:119px" %)**3**|(% style="width:107px" %)**4**
462 +|(% style="width:95px" %)**Value**|(% style="width:97px" %)(((
463 +Status & [[Alarm>>||anchor="2.10TTRIG126TTRIG2timeoutstatusalarm"]]
464 +)))|(% style="width:95px" %)Total open door events|(% style="width:119px" %)(((
465 +The last door open duration (unit: sec)
466 +)))|(% style="width:108px" %)Unix TimeStamp
467 +
468 +**Status & Alarm:**
469 +
470 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
471 +|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit4]**|(% style="background-color:#4f81bd; color:white; width:80px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:100px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:120px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:105px" %)**bit0**
472 +|(% style="width:76px" %)**Value**|(% style="width:96px" %)Reserve|(% style="width:110px" %)(((
473 +Count mod
474 +)))|(% style="width:106px" %)TDC flag 0:No;1:Yes|(% style="width:148px" %)(((
475 +Alarm 0: No Alarm; 1: Alarm
476 +)))|(% style="width:131px" %)(((
477 +Status 0: Close; 1: Open
478 +)))
479 +
480 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155451-2.png?width=928&height=246&rev=1.1||alt="image-20230630155451-2.png"]]
481 +
482 +
483 +* (((
484 +(% style="color:blue" %)**Count mod:Default=0**
485 +)))
486 +
487 +0: Uplink total open door times since factory
488 +
489 +1: Uplink total open door times since last FPORT=2 uplink.
490 +
491 +
492 +* (% style="color:blue" %)**TDC flag**
493 +
494 +When the flag is 1, it means sending packets at normal time intervals.
495 +
496 +Otherwise, it is a packet sent at non-TDC time.
497 +
498 +
499 +* (((
500 +(% style="color:#0000ff" %)**Alarm**
501 +)))
502 +
503 +See [[Alarm Base on Timeout>>||anchor="H3.3.3A0AlarmBaseonTimeout"]]
504 +
505 +
506 +* (((
507 +(% style="color:blue" %)**Status**
508 +)))
509 +
510 +This bit is 1 when the door sensor is open and 0 when it is close.
511 +
512 +
513 +* (((
514 +(% style="color:blue" %)**Total open door events**
515 +)))
516 +
517 +Total pulse/counting base on open door.
518 +
519 +Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215
520 +
521 +
522 +* (((
523 +(% style="color:blue" %)**The last door open duration**
524 +)))
525 +
526 +Door sensor last open duration.
527 +
528 +Unit: sec.
529 +
530 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230701094042-1.png?width=763&height=154&rev=1.1||alt="image-20230701094042-1.png"]]
531 +
532 +
533 +**2) When (% style="color:blue" %)AT+TTRCHANNEL=2(%%), Uplink Payload totals (% style="color:blue" %)18 bytes(%%)**(% style="color:blue" %).
534 +
535 +(When the maximum DR of some frequencies is 11 bytes, it will cause the server to receive empty packets)
536 +
537 +(% style="color:red" %)**Note:When using the AT+TTRCHANNEL=2 command, the Datalog function cannot be used.**
538 +
539 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
540 +|=(% colspan="8" style="background-color:#4F81BD;color:white; width: 515px;" %)**Real-Time Open/Close Status, FPORT=2**
541 +|(% style="width:50px" %)**Size(bytes)**|(% style="width:97px" %)**1**|(% style="width:95px" %)**3**|(% style="width:125px" %)**3**|(% style="width:100px" %)**4**|(% style="width:86px" %)**1**|(% style="width:96px" %)**3**|(% style="width:126px" %)**3**
542 +|(% style="width:95px" %)**Value**|(% style="width:97px" %)(((
543 +Status1 & Alarm1
544 +)))|(% style="width:95px" %)Total open door events1|(% style="width:125px" %)(((
545 +The last door open duration1 (unit: sec)
546 +)))|(% style="width:100px" %)Unix TimeStamp|(% style="width:86px" %)(((
547 +Status2 & Alarm2
548 +)))|(% style="width:96px" %)Total open door events2|(% style="width:126px" %)The last door open duration2 (unit: sec)
549 +
550 +**Status1 & Alarm1:**
551 +
552 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:514px" %)
553 +|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit4]**|(% style="background-color:#4f81bd; color:white; width:70px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:100px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:117px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:117px" %)**bit0**
554 +|(% style="width:76px" %)**Value**|(% style="width:96px" %)Reserve|(% style="width:99px" %)(((
555 +Count mod
556 +)))|(% style="width:103px" %)TDC flag 0:No;1:Yes|(% style="width:216px" %)(((
557 +Alarm1 0: No Alarm; 1: Alarm (PA8 of pin)
558 +)))|(% style="width:181px" %)(((
559 +Status1 0: Close; 1: Open (PA8 of pin)
560 +)))
561 +
562 +**Status2 & Alarm2:**
563 +
564 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
565 +|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[bit7:bit2]**|(% style="background-color:#4f81bd; color:white; width:200px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:200px" %)**bit0**
566 +|(% style="width:76px" %)**Value**|(% style="width:113px" %)Reserve|(% style="width:219px" %)(((
567 +Alarm2 0: No Alarm; 1: Alarm (PA4 of pin)
568 +)))|(% style="width:181px" %)(((
569 +Status2 0: Close; 1: Open (PA4 of pin)
570 +)))
571 +
572 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155908-6.png?width=927&height=295&rev=1.1||alt="image-20230630155908-6.png"]]
573 +
574 +
575 +* (((
576 +(% style="color:blue" %)**Count mod:Default=0**
577 +)))
578 +
579 +0: Uplink total open door times since factory
580 +
581 +1: Uplink total open door times since last FPORT=2 uplink.
582 +
583 +
584 +* (% style="color:blue" %)**TDC flag**
585 +
586 +When the flag is 1, it means sending packets at normal time intervals.
587 +
588 +Otherwise, it is a packet sent at non-TDC time.
589 +
590 +
591 +* (((
592 +(% style="color:#0000ff" %)**Alarm1 or Alarm2**
593 +)))
594 +
595 +See [[Alarm Base on Timeout>>||anchor="H2.9AlarmBaseonTimeout"]]
596 +
597 +
598 +* (((
599 +(% style="color:blue" %)**Status1 **(% style="color:#0000ff" %)**or **(% style="color:blue" %)**Status2**
600 +)))
601 +
602 +This bit is 1 when the door sensor is open and 0 when it is close.
603 +
604 +
605 +* (((
606 +(% style="color:blue" %)**Total open door events1 **(% style="color:#0000ff" %)**or**(% style="color:blue" %)** Total open door events2**
607 +)))
608 +
609 +Total pulse/counting base on open door.
610 +
611 +Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215
612 +
613 +
614 +* (((
615 +(% style="color:blue" %)**The last door open duration1 **(% style="color:#0000ff" %)**or**(% style="color:blue" %)** The last door open duration2**
616 +)))
617 +
618 +Door sensor last open duration.
619 +
620 +Unit: sec.
621 +
622 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230701094042-1.png?width=763&height=154&rev=1.1||alt="image-20230701094042-1.png"]]
623 +
624 +
625 +=== 2.3.3  Historical Door Open/Close Event, FPORT~=3 ===
626 +
627 +
628 +DS03A-NB stores sensor values and users can retrieve these history values via the downlink command.
629 +
630 +The historical payload includes one or multiplies entries and every entry has the same payload as Real-Time open/close status.
631 +
632 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
633 +|=(% colspan="5" style="background-color:#4F81BD;color:white;width:515px" %)**Real-Time Open/Close Status, FPORT=3**
634 +|(% style="width:60px" %)**Size(bytes)**|(% style="width:80px" %)**1**|(% style="width:120px" %)**3**|(% style="width:150px" %)**3**|(% style="width:90px" %)**4**
635 +|(% style="width:95px" %)**Value**|(% style="width:97px" %)(((
636 +Status & [[Alarm>>||anchor="H2.9A0AlarmBaseonTimeout"]]
637 +)))|(% style="width:95px" %)Total open door events|(% style="width:119px" %)(((
638 +The last door open duration (unit: sec)
639 +)))|(% style="width:108px" %)Unix TimeStamp
640 +
641 +**Status & Alarm:**
642 +
643 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
644 +|(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4f81bd; color:white; width:75px" %)**bit7**|(% style="background-color:#4f81bd; color:white; width:65px" %)**bit6**|(% style="background-color:#4f81bd; color:white; width:50px" %)**[bit5:bit4]**|(% style="background-color:#4f81bd; color:white; width:50px" %)**bit3**|(% style="background-color:#4f81bd; color:white; width:70px" %)**bit2**|(% style="background-color:#4f81bd; color:white; width:80px" %)**bit1**|(% style="background-color:#4f81bd; color:white; width:75px" %)**bit0**
645 +|(% style="width:76px" %)**Value**|(% style="width:88px" %)No ACK message|(% style="width:92px" %)Poll Message Flag|(% style="width:89px" %)Reserve|(% style="width:90px" %)(((
646 +Count mod
647 +)))|(% style="width:95px" %)(((
648 +TDC flag 0:No; 1:Yes
649 +)))|(% style="width:116px" %)(((
650 +Alarm 0: No Alarm; 1: Alarm
651 +)))|(% style="width:112px" %)(((
652 +Status 0:Close; 1: Open
653 +)))
654 +
655 +* (((
656 +Each data entry is 11 bytes and has the same structure as [[Real-Time open/close status>>||anchor="H2.3.2A0Real-TimeOpen2FCloseStatus2CUplinkFPORT3D2"]], to save airtime and battery, DS03A-NB will send max bytes according to the current DR and Frequency bands.
657 +)))
658 +
659 +For example, in the US915 band, the max payload for different DR is:
660 +
661 +(((
662 +**~1. DR0**: max is 11 bytes so one entry of data
663 +)))
664 +
665 +(((
666 +**2. DR1**: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
667 +)))
668 +
669 +(((
670 +**3. DR2**: total payload includes 11 entries of data
671 +)))
672 +
673 +(((
674 +**4. DR3**: total payload includes 22 entries of data.
675 +)))
676 +
677 +If DS03A-NB doesn't have any data in the polling time. It will uplink 11 bytes of 0
678 +
679 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630155556-4.png?width=938&height=146&rev=1.1||alt="image-20230630155556-4.png"]]
680 +
681 +**Downlink:**
682 +
683 +0x31 64 9E 7D 34 64 9E 7E 9C 05
684 +
685 +
686 +**Uplink:**
687 +
688 +45 00 00 00 00 00 00 64 9E 7D 48 40 00 00 00 00 00 63 64 9E 7D 9C 41 00 00 01 00 00 63 64 9E 7D A4 40 00 00 01 00 00 8D 64 9E 7E 31 43 00 00 02 00 00 8D 64 9E 7E 44 48 00 00 02 00 00 1F 64 9E 7E 59 4B 00 00 03 00 00 1F 64 9E 7E 6B
689 +
690 +
691 +**Parsed Value:**
692 +
693 +[COUNTMOD, TDC_FLAG, ALARM,  DOOR_STATUS, OPEN_DOOR_TIMES, LAST_DOOR_OPEN_DURATION, TIME]
694 +
695 +
696 +[SUM,YES,FALSE,OPEN,0,0,2023-06-30 06:59:20],
697 +
698 +[SUM,NO,FALSE,CLOSE,0,99,2023-06-30 07:00:44],
699 +
700 +[SUM,NO,FALSE,OPEN, 1,99,2023-06-30 07:00:52],
701 +
702 +[SUM,NO,FALSE,CLOSE,1,141,2023-06-30 07:03:13],
703 +
704 +[SUM,NO,TRUE,OPEN, 2,141,2023-06-30 07:03:32],
705 +
706 +[PART,NO,FALSE,CLOSE,2,31,2023-06-30 07:03:53],
707 +
708 +[PART,NO,TRUE,OPEN, 3,31,2023-06-30 07:04:11],
709 +
710 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DS03A-LB/WebHome/image-20230630172740-1.png?width=868&height=199&rev=1.1||alt="image-20230630172740-1.png"]]
711 +
712 +
713 +== 2.4 Test Uplink and Change Update Interval ==
714 +
715 +
425 425  By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8
426 426  
427 427  User can use below commands to change the (% style="color:blue" %)**uplink interval**.
... ... @@ -431,7 +431,7 @@
431 431  User can also push the button for more than 1 seconds to activate an uplink.
432 432  
433 433  
434 -== 2.4 Multi-Samplings and One uplink ==
725 +== 2.5 Multi-Samplings and One uplink ==
435 435  
436 436  
437 437  To save battery life, DS03A-NB will sample Water Flow data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:
... ... @@ -445,7 +445,7 @@
445 445  [[image:1692424376354-959.png]]
446 446  
447 447  
448 -== 2.5 Trggier an uplink by external interrupt ==
739 +== 2.6 Trggier an uplink by external interrupt ==
449 449  
450 450  
451 451  DS03A-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.
... ... @@ -461,9 +461,8 @@
461 461  * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
462 462  
463 463  * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
464 -(% style="display:none" %) (%%)
465 465  
466 -== 2.5 Set Transmit Interval Time ==
756 +== 2.7 Set Transmit Interval Time ==
467 467  
468 468  
469 469  (((
... ... @@ -503,11 +503,14 @@
503 503  )))
504 504  * (((
505 505  Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
506 -)))(% style="display:none" %) (%%)
507 507  
508 -== 2.7 Enable / Disable Alarm ==
509 509  
798 +
799 +)))
510 510  
801 +== 2.8 Enable / Disable Alarm ==
802 +
803 +
511 511  Feature: Enable/Disable Alarm for open/close event. Default value 0.
512 512  
513 513  (% style="color:blue" %)**AT Command: **
... ... @@ -524,7 +524,7 @@
524 524  0xA7 00  ~/~/ Same As AT+DISALARM=0
525 525  
526 526  
527 -== 2.8 Alarm Base on Timeout ==
820 +== 2.9 Alarm Base on Timeout ==
528 528  
529 529  
530 530  DS03A-NB can monitor the timeout for a status change, this feature can be used to monitor some events such as door opening too long etc. Related Parameters are:
... ... @@ -606,7 +606,7 @@
606 606  If user send 0xA9 02 00 00 1E: equal to AT+TTRIG2=0,30  **or**  0xA9 02 00 00 00: Equal to AT+TTRIG2=0,0.
607 607  
608 608  
609 -== 2.9 TTRIG1 & TTRIG2 timeout status alarm ==
902 +== 2.10 TTRIG1 & TTRIG2 timeout status alarm ==
610 610  
611 611  
612 612  It needs to be used with AT+TTRIG1 or AT+TTRIG2. When TTRIG1 or TTRIG2 times out and causes an alarm, and the status does not change subsequently, an alarm packet will be sent at the alarm interval.
... ... @@ -635,7 +635,7 @@
635 635  Example:  0C aa  => AT+TTRALARM= aa
636 636  
637 637  
638 -== 2.10 Count Mod ==
931 +== 2.11 Count Mod ==
639 639  
640 640  
641 641  Feature: Manually set the count mode.
... ... @@ -664,7 +664,7 @@
664 664  Example:  0B aa  => AT+COUNTMOD = second byte
665 665  
666 666  
667 -== 2.11 Number of channel of door sensors ==
960 +== 2.1 Number of channel of door sensors ==
668 668  
669 669  
670 670  Feature: Set the number of door sensor channels.
... ... @@ -693,7 +693,7 @@
693 693  Example:  0D aa => AT+TTRCHANNEL = second byte
694 694  
695 695  
696 -== 2.12 Clear the open door times and the duration of the last open door ==
989 +== 2.1 Clear the open door times and the duration of the last open door ==
697 697  
698 698  
699 699  (% style="color:blue" %)**AT Command:**
... ... @@ -709,7 +709,7 @@
709 709  The sensor will clear the open door times and the duration of the last open door.
710 710  
711 711  
712 -== 2.13 Set the count value of the number of open door ==
1005 +== 2.1 Set the count value of the number of open door ==
713 713  
714 714  
715 715  (% style="color:blue" %)**AT Command:**
... ... @@ -751,7 +751,6 @@
751 751  * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
752 752  
753 753  * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
754 -(% style="display:none" %) (%%)
755 755  
756 756  == 3.2 AT Commands Set ==
757 757  
... ... @@ -857,7 +857,6 @@
857 857  * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
858 858  
859 859  * Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
860 -(% style="display:none" %) (%%)
861 861  
862 862  = 6. FAQ =
863 863  
... ... @@ -901,7 +901,6 @@
901 901  * Package Size / pcs : 14.0 x 8x 5 cm
902 902  
903 903  * Weight / pcs : 180g
904 -(% style="display:none" %) (%%)
905 905  
906 906  = 9. Support =
907 907  
image-20231115150948-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -91.1 KB
Content
image-20231115154757-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -66.4 KB
Content
image-20231115154821-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -51.1 KB
Content
image-20231115161111-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -82.8 KB
Content
image-20231115161128-5.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -82.8 KB
Content
image-20231115161803-6.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -91.3 KB
Content
image-20231115162221-7.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -88.3 KB
Content