Changes for page wiki_test

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

From version 101.11
edited by Xiaoling
on 2023/10/10 14:02
Change comment: There is no comment for this version
To version 101.21
edited by Xiaoling
on 2023/10/10 15:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -397,10 +397,10 @@
397 397  === 2.3.1 Sensor Configuration, FPORT~=4 ===
398 398  
399 399  
400 -SW3L-LB will only send this command after getting the downlink command **(0x26 02)** from the server.
400 +SW3L-NB will only send this command after getting the downlink command **(0x26 02)** from the server.
401 401  
402 402  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
403 -|(% style="background-color:#d9e2f3; color:#0070c0; width:70px" %) **Size(bytes)**|(% style="background-color:#d9e2f3; color:#0070c0; width:105px" %)**3**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:96px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:105px" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0; width:74px" %)**1**
403 +|(% style="background-color:#4F81BD;color:white; width:70px" %) **Size(bytes)**|(% style="background-color:#4F81BD;color:white; width:105px" %)**3**|(% style="background-color:#4F81BD;color:white; width:60px" %)**1**|(% style="background-color:#4F81BD;color:white; width:96px" %)**1**|(% style="background-color:#4F81BD;color:white; width:105px" %)**2**|(% style="background-color:#4F81BD;color:white; width:74px" %)**1**
404 404  |**Value**|(% style="width:104px" %)TDC(unit:sec)|(% style="width:43px" %)N/A|(% style="width:91px" %)Stop Timer|(% style="width:100px" %)Alarm Timer|(% style="width:69px" %)Reserve
405 405  
406 406  Example parse in TTNv3
... ... @@ -415,7 +415,7 @@
415 415  
416 416  * (% style="color:blue" %)**STOP Duration & Alarm Timer**
417 417  
418 -Shows the configure value of [[Alarm for continuously water flow>>||anchor="H3.3.4Alarmforcontinuouslywaterflow"]]
418 +Shows the configure value of [[Alarm for continuously water flow>>||anchor="H2.7Alarmforcontinuouslywaterflow"]]
419 419  
420 420  
421 421  === 2.3.2 Water Flow Value, Uplink FPORT~=2 ===
... ... @@ -422,11 +422,11 @@
422 422  
423 423  
424 424  (((
425 -SW3L-LB will send this uplink **after** Device Status once join the LoRaWAN network successfully. And SW3L-LB will:
425 +SW3L-NB will send this uplink **after** Device Status once join the NB-IoT network successfully. And SW3L-NB will:
426 426  )))
427 427  
428 428  (((
429 -periodically send this uplink every 20 minutes, this interval [[can be changed>>||anchor="H3.3.1SetTransmitIntervalTime"]].
429 +periodically send this uplink every 20 minutes, this interval [[can be changed>>||anchor="H2.10SetTransmitIntervalTime"]].
430 430  )))
431 431  
432 432  (((
... ... @@ -434,9 +434,9 @@
434 434  )))
435 435  
436 436  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
437 -|=(% colspan="6" style="width: 515px; background-color:#D9E2F3;color:#0070C0" %)**Water Flow Value,  FPORT=2**
437 +|=(% colspan="6" style="width: 515px; background-color:#4F81BD;color:white" %)**Water Flow Value,  FPORT=2**
438 438  |(% style="width:50px" %)**Size(bytes)**|(% style="width:110px" %)**1**|(% style="width:120px" %)**4**|(% style="width:110px" %)**1**|(% style="width:55px" %)**1**|(% style="width:70px" %)**4**
439 -|(% style="width:110px" %)**Value**|(% style="width:81px" %)Calculate Flag & [[Alarm>>||anchor="H3.3.4Alarmforcontinuouslywaterflow"]]|(% style="width:95px" %)(((
439 +|(% style="width:110px" %)**Value**|(% style="width:81px" %)Calculate Flag & [[Alarm>>||anchor="H2.7Alarmforcontinuouslywaterflow"]]|(% style="width:95px" %)(((
440 440  Total pulse Or Last Pulse
441 441  )))|(% style="width:78px" %)(((
442 442  MOD & PA4_status & PB15_status
... ... @@ -445,13 +445,13 @@
445 445  **Calculate Flag & Alarm:**
446 446  
447 447  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
448 -|(% style="background-color:#d9e2f3; color:#0070c0; width:70px" %)**Size(bit)**|(% style="background-color:#d9e2f3; color:#0070c0; width:70px" %)**[bit7:bit6]**|(% style="background-color:#d9e2f3; color:#0070c0; width:90px" %)**[bit5:bit2]**|(% style="background-color:#d9e2f3; color:#0070c0; width:140px" %)**bit1**|(% style="background-color:#d9e2f3; color:#0070c0; width:130px" %)**bit0**
448 +|(% style="background-color:#4F81BD;color:white; width:70px" %)**Size(bit)**|(% style="background-color:#4F81BD;color:white; width:70px" %)**[bit7:bit6]**|(% style="background-color:#4F81BD;color:white; width:90px" %)**[bit5:bit2]**|(% style="background-color:#4F81BD;color:white; width:140px" %)**bit1**|(% style="background-color:#4F81BD;color:white; width:130px" %)**bit0**
449 449  |(% style="width:88px" %)**Value**|(% style="width:117px" %)Reserve|(% style="width:117px" %)Calculate Flag|(% style="width:169px" %)Alarm: 0: No Alarm; 1: Alarm|(% style="width:150px" %)TDC flag 0:No;1:Yes
450 450  
451 451  **MOD & PA4_status & PB15_status:**
452 452  
453 453  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:230px" %)
454 -|(% style="background-color:#d9e2f3; color:#0070c0; width:50px" %)**Size(bit)**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**bit7**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**bit6**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**[bit5:bit0]**
454 +|(% style="background-color:#4F81BD;color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4F81BD;color:white; width:60px" %)**bit7**|(% style="background-color:#4F81BD;color:white; width:60px" %)**bit6**|(% style="background-color:#4F81BD;color:white; width:60px" %)**[bit5:bit0]**
455 455  |(% style="width:88px" %)**Value**|(% style="width:117px" %)PA4_status|(% style="width:117px" %)PB15_status|(% style="width:118px" %)MOD
456 456  
457 457  (% style="color:#037691" %)** **[[image:image-20230626093242-1.png||height="276" width="892"]]
... ... @@ -463,8 +463,6 @@
463 463  
464 464  (((
465 465  The calculate flag is a user defined field, IoT server can use this flag to handle different meters with different pulse factors. For example, if there are 100 Flow Sensors, meters 1 ~~50 are 1 liter/pulse and meters 51 ~~ 100 has 1.5 liter/pulse.
466 -
467 -
468 468  )))
469 469  
470 470  (((
... ... @@ -509,7 +509,7 @@
509 509  )))
510 510  
511 511  (((
512 -See [[Alarm for continuously water flow>>||anchor="H3.3.4Alarmforcontinuouslywaterflow"]]
510 +See [[Alarm for continuously water flow>>||anchor="H2.7Alarmforcontinuouslywaterflow"]]
513 513  )))
514 514  
515 515  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SW3L%20LoRaWAN%20Outdoor%20Flow%20Sensor/WebHome/image-20220519095946-4.png?width=724&height=65&rev=1.1||alt="image-20220519095946-4.png"]]
... ... @@ -611,7 +611,7 @@
611 611  
612 612  
613 613  (((
614 -SW3L-LB stores sensor values and users can retrieve these history values via the [[downlink command>>||anchor="H2.5DatalogFeature"]].
612 +SW3L-NB stores sensor values and users can retrieve these history values via the [[downlink command>>||anchor="H2.5DatalogFeature"]].
615 615  )))
616 616  
617 617  (((
... ... @@ -618,9 +618,9 @@
618 618  The historical payload includes one or multiplies entries and every entry has the same payload as Real-Time water flow status.
619 619  
620 620  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
621 -|=(% colspan="6" style="width: 515px; background-color:#D9E2F3;color:#0070C0" %)**Water Flow Value,  FPORT=3**
619 +|=(% colspan="6" style="width: 515px; background-color:#4F81BD;color:white" %)**Water Flow Value,  FPORT=3**
622 622  |(% style="width:50px" %)**Size(bytes)**|(% style="width:110px" %)**1**|(% style="width:120px" %)**4**|(% style="width:110px" %)**1**|(% style="width:55px" %)**1**|(% style="width:70px" %)**4**
623 -|(% style="width:110px" %)**Value**|(% style="width:81px" %)Calculate Flag & [[Alarm>>||anchor="H3.3.4Alarmforcontinuouslywaterflow"]]|(% style="width:95px" %)(((
621 +|(% style="width:110px" %)**Value**|(% style="width:81px" %)Calculate Flag & [[Alarm>>||anchor="H2.7Alarmforcontinuouslywaterflow"]]|(% style="width:95px" %)(((
624 624  Total pulse Or Last Pulse
625 625  )))|(% style="width:78px" %)(((
626 626  MOD & PA4_status & PB15_status
... ... @@ -629,7 +629,7 @@
629 629  **Calculate Flag & Alarm:**
630 630  
631 631  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
632 -|(% style="background-color:#d9e2f3; color:#0070c0; width:50px" %)**Size(bit)**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**bit7**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**bit6**|(% style="background-color:#d9e2f3; color:#0070c0; width:69px" %)**[bit5:bit2]**|(% style="background-color:#d9e2f3; color:#0070c0; width:129px" %)**bit1**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**bit0**
630 +|(% style="background-color:#4F81BD;color:white; width:50px" %)**Size(bit)**|(% style="background-color:#4F81BD;color:white; width:89px" %)**bit7**|(% style="background-color:#4F81BD;color:white; width:89px" %)**bit6**|(% style="background-color:#4F81BD;color:white; width:69px" %)**[bit5:bit2]**|(% style="background-color:#4F81BD;color:white; width:129px" %)**bit1**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**bit0**
633 633  |(% style="width:88px" %)**Value**|(% style="width:96px" %)(((
634 634  No ACK message
635 635  )))|(% style="width:94px" %)Poll Message Flag|(% style="width:115px" %)Calculate Flag|(% style="width:136px" %)Alarm: 0: No Alarm; 1: Alarm|(% style="width:120px" %)TDC flag 0:No;1:Yes
... ... @@ -637,12 +637,12 @@
637 637  **MOD & PA4_status & PB15_status:**
638 638  
639 639  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:240px" %)
640 -|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**Size(bit)**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**bit7**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**bit6**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**[bit5:bit0]**
638 +|(% style="background-color:#4F81BD;color:white; width:60px" %)**Size(bit)**|(% style="background-color:#4F81BD;color:white; width:60px" %)**bit7**|(% style="background-color:#4F81BD;color:white; width:60px" %)**bit6**|(% style="background-color:#4F81BD;color:white; width:60px" %)**[bit5:bit0]**
641 641  |(% style="width:88px" %)**Value**|(% style="width:117px" %)PA4_status|(% style="width:117px" %)PB15_status|(% style="width:118px" %)MOD
642 642  )))
643 643  
644 644  * (((
645 -Each data entry is 11 bytes and has the same structure as [[real time water flow status>>||anchor="H2.3.3A0WaterFlowValue2CUplinkFPORT3D2"]], to save airtime and battery, SW3L will send max bytes according to the current DR and Frequency bands.
643 +Each data entry is 11 bytes and has the same structure as [[real time water flow status>>||anchor="H2.3.2A0WaterFlowValue2CUplinkFPORT3D2"]], to save airtime and battery, SW3L will send max bytes according to the current DR and Frequency bands.
646 646  )))
647 647  
648 648  (((
... ... @@ -666,7 +666,7 @@
666 666  )))
667 667  
668 668  (((
669 -If SW3L-LB doesn't have any data in the polling time. It will uplink 11 bytes of 0
667 +If SW3L-NB doesn't have any data in the polling time. It will uplink 11 bytes of 0
670 670  
671 671  
672 672  )))
... ... @@ -762,6 +762,158 @@
762 762  
763 763  * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
764 764  
763 +== 2.7 Alarm for continuously water flow ==
764 +
765 +
766 +(((
767 +This feature is to monitor and send Alarm for continuously water flow.
768 +)))
769 +
770 +(((
771 +Example case is for Toilet water monitoring, if some one push toilet button, the toilet will have water flow. If the toilet button has broken and can't returned to original state, the water flow will keep for hours or days which cause huge waste for water.
772 +)))
773 +
774 +(((
775 +To monitor this faulty and send alarm, there are two settings:
776 +)))
777 +
778 +* (((
779 +(% style="color:blue" %)**Stop Duration: Unit: Second**
780 +)))
781 +
782 +(((
783 +Default: 15s, If SW3L-NB didn't see any water flow in 15s, SW3L-NB will consider stop of water flow event.
784 +)))
785 +
786 +* (((
787 +(% style="color:blue" %)**Alarm Timer: Units: Minute; Default 0 minutes (means Alarm disable)**
788 +)))
789 +
790 +(((
791 +**Example:** 3 minutes, if SW3L-NB detect a start of water flow event and didn't detect a stop event within Alarm timer, SW3L-NB will send an Alarm to indicate a water flow abnormal alarm.
792 +)))
793 +
794 +(((
795 +So for example, If we set stop duration=15s and Alarm Timer=3minutes. If the toilet water flow continuously for more than 3 minutes, Sensor will send an alarm (in Confirmed MODE) to platform.
796 +)))
797 +
798 +(((
799 +(% style="color:red" %)**Note:** **After this alarm is send, sensor will consider a stop of water flow and count for another new event. So if water flow waste last for 1 hour, Sensor will keep sending alarm every 3 minutes.**
800 +)))
801 +
802 +(((
803 +(% style="color:blue" %)**AT Command to configure:**
804 +)))
805 +
806 +* (((
807 +AT+PTRIG=15,3  ~-~-> Set Stop duration: 15s, Alarm Timer: 3 minutes.
808 +)))
809 +
810 +* (((
811 +AT+ PTRIG=15,0  ~-~-> Default Value, disable water waste Alarm.
812 +)))
813 +
814 +(((
815 +(% style="color:blue" %)**Downlink Command to configure:** 
816 +)))
817 +
818 +(((
819 +Command: **0xAA aa bb cc**
820 +)))
821 +
822 +(((
823 +AA: Command Type Code
824 +)))
825 +
826 +(((
827 +aa: Stop duration
828 +)))
829 +
830 +(((
831 +bb cc: Alarm Timer
832 +)))
833 +
834 +(((
835 +If user send 0xAA 0F 00 03: equal to AT+PTRIG=15,3
836 +)))
837 +
838 +
839 +== 2.8 Set the calculate flag ==
840 +
841 +
842 +Feature: Set the calculate flag
843 +
844 +(% style="color:blue" %)**AT Command: AT+CALCFLAG**
845 +
846 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:461px" %)
847 +|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 193px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 110px;background-color:#4F81BD;color:white" %)**Response**
848 +|(% style="width:158px" %)AT+CALCFLAG =1|(% style="width:192px" %)Set the calculate flag to 1.|(% style="width:109px" %)OK
849 +|(% style="width:158px" %)AT+CALCFLAG =2|(% style="width:192px" %)Set the calculate flag to 2.|(% style="width:109px" %)OK
850 +
851 +(% style="color:blue" %)**Downlink Command:**
852 +
853 +* **Example**: 0XA501  ~/~/  Same as AT+CALCFLAG =1
854 +
855 +== 2.9 Set count number ==
856 +
857 +
858 +Feature: Manually set the count number
859 +
860 +(% style="color:blue" %)**AT Command: AT+SETCNT**
861 +
862 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:479px" %)
863 +|=(% style="width: 160px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 223px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 96px;background-color:#4F81BD;color:white" %)**Response**
864 +|(% style="width:160px" %)AT+ SETCNT =0|(% style="width:221px" %)Set the count number to 0.|(% style="width:95px" %)OK
865 +|(% style="width:160px" %)AT+ SETCNT =100|(% style="width:221px" %)Set the count number to 100.|(% style="width:95px" %)OK
866 +
867 +(% style="color:blue" %)**Downlink Command:**
868 +
869 +* **Example**: 0xA6000001  ~/~/  Same as AT+ SETCNT =1
870 +
871 +* **Example**: 0xA6000064  ~/~/  Same as AT+ SETCNT =100
872 +
873 +== 2.10 Set Transmit Interval Time ==
874 +
875 +
876 +(((
877 +Feature: Change NB-IoT End Node Transmit Interval.
878 +)))
879 +
880 +(((
881 +(% style="color:blue" %)**AT Command: AT+TDC**
882 +)))
883 +
884 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
885 +|=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
886 +|(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
887 +30000
888 +OK
889 +the interval is 30000ms = 30s
890 +)))
891 +|(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
892 +OK
893 +Set transmit interval to 60000ms = 60 seconds
894 +)))
895 +
896 +(((
897 +(% style="color:blue" %)**Downlink Command: 0x01**
898 +)))
899 +
900 +(((
901 +Format: Command Code (0x01) followed by 3 bytes time value.
902 +)))
903 +
904 +(((
905 +If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
906 +)))
907 +
908 +* (((
909 +Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
910 +)))
911 +* (((
912 +Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
913 +)))
914 +
765 765  = 3. Configure SW3L-NB =
766 766  
767 767  == 3.1 Configure Methods ==