Changes for page PS-LB/LS -- LoRaWAN Air Water Pressure Sensor User Manual
Last modified by Xiaoling on 2025/04/19 17:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -739,14 +739,22 @@ 739 739 === 2.8.2 Set the Report on Change === 740 740 741 741 742 -Feature: Set the detection interval and threshold to monitor whether the IDC/VDC variable exceeds the threshold. If the threshold is exceeded, an ROC uplink is sent. 742 +Feature: Get or Set the Report on Change. 743 + 744 + 745 +==== 2.8.2.1 Wave alarm mode ==== 746 + 747 +Feature: By setting the detection period and a change value, the IDC/VDC variable is monitored whether it exceeds the set change value. If this change value is exceeded, the ROC uplink is sent and the comparison value is flushed. 748 + 749 +* (% style="color:#037691" %)**Change value: **(%%)The amount by which the next detection value increases/decreases relative to the previous detection value. 750 +* (% style="color:#037691" %)**Comparison value:**(%%) A parameter to compare with the latest ROC test. 751 + 743 743 (% style="color:blue" %)**AT Command: AT+ROC** 744 744 745 -(% border="1" cellspacing=" 4" style="background-color:#f2f2f2; width:510px" %)746 -|=(% style="width: 1 43px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 197px; background-color: rgb(79, 129, 189); color: white;" %)**Parameters**|=(% style="width: 170px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**747 -|(% style="width:143px" %)AT+ROC=?|(% style="width:1 97px" %)Show current ROC setting|(% style="width:168px" %)(((754 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 755 +|=(% style="width: 163px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 154px; background-color: rgb(79, 129, 189); color: white;" %)**Parameters**|=(% style="width: 197px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation** 756 +|(% style="width:143px" %)AT+ROC=?|(% style="width:154px" %)Show current ROC setting|(% style="width:197px" %)((( 748 748 0,0,0,0(default) 749 - 750 750 OK 751 751 ))) 752 752 |(% colspan="1" rowspan="4" style="width:143px" %)((( ... ... @@ -755,36 +755,50 @@ 755 755 756 756 757 757 AT+ROC=a,b,c,d 758 -)))|(% style="width:1 97px" %)**a**: Enable or disable the ROC|(% style="width:168px" %)(((759 - 0:off766 +)))|(% style="width:154px" %)((( 767 + 760 760 761 -1: on 769 + 770 + 771 + 772 + 773 +**a**: Enable or disable the ROC 774 +)))|(% style="width:197px" %)((( 775 +**0:** off 776 +**1:** Turn on the wave alarm mode, send the ROC uplink when the increment exceeds the set parameter and refresh the comparison value. 777 + 778 +**2: **Turn on the wave alarm mode, send the ROC uplink when the increment exceeds the set parameter and refresh the comparison value. In addition, the comparison value is refreshed when the device sends packets ([[TDC>>||anchor="H3.3.1SetTransmitIntervalTime"]] or [[ACT>>||anchor="H1.7Button26LEDs"]]). 762 762 ))) 763 -|(% style="width:197px" %)**b**: Set the detection interval|(% style="width:168px" %)Unit: second 764 -|(% style="width:197px" %)**c**: Setting the IDC change threshold|(% style="width:168px" %)Unit: uA 765 -|(% style="width:197px" %)**d**: Setting the VDC change threshold|(% style="width:168px" %)Unit: mV 780 +|(% style="width:154px" %)**b**: Set the detection interval|(% style="width:197px" %)((( 781 +Range: 0~~65535s 782 +))) 783 +|(% style="width:154px" %)**c**: Setting the IDC change value|(% style="width:197px" %)Unit: uA 784 +|(% style="width:154px" %)**d**: Setting the VDC change value|(% style="width:197px" %)Unit: mV 766 766 767 767 **Example:** 768 768 769 -* AT+ROC=1,60,3000, 500 ~/~/ Check value every 60 seconds. lf there is change in IDC (>3mA) or VDC (>500mV), sends an ROC uplink. 770 -* AT+ROC=1,60,3000,0 ~/~/ Check value every 60 seconds. lf there is change in IDC (>3mA), send an ROC uplink. 0 Means doesn't monitor Voltage. 788 +* AT+ROC=0,0,0,0 ~/~/The ROC function is not used. 789 +* AT+ROC=1,60,3000, 500 ~/~/ Check value every 60 seconds. lf there is change in IDC (>3mA) or VDC (>500mV), sends an ROC uplink, and the comparison value is refreshed. 790 +* AT+ROC=1,60,3000,0 ~/~/ Check value every 60 seconds. lf there is change in IDC (>3mA), send an ROC uplink and the comparison value of IDC is refreshed. dd=0 Means doesn't monitor Voltage. 791 +* AT+ROC=2,60,3000,0 ~/~/ Check value every 60 seconds. lf there is change in IDC (>3mA), send an ROC uplink and the comparison value of IDC is refreshed. dd=0 Means doesn't monitor Voltage. In addition, if the change in the IDC does not exceed 3mA, then the ROC uplink is not sent, and the comparison value is not refreshed by the ROC uplink packet. However, if the device TDC time arrives, or if the user manually sends packets, then the IDC comparison value is also refreshed. 771 771 772 772 (% style="color:blue" %)**Downlink Command: 0x09 aa bb cc dd** 773 773 774 774 Format: Function code (0x09) followed by 4 bytes. 775 775 776 -(% style="color:blue" %)**aa: **(%%) Enable/Disable theROC.797 +(% style="color:blue" %)**aa: **(% style="color:#037691" %)**1 byte;**(%%) Set the wave alarm mode. 777 777 778 -(% style="color:blue" %)**bb: **(%%)Set the detection interval. (second) 799 +(% style="color:blue" %)**bb: **(% style="color:#037691" %)**2 bytes;**(%%) Set the detection interval. (second) 779 779 780 -(% style="color:blue" %)**cc: **(%%)Setting the IDC change threshold. (uA) 801 +(% style="color:blue" %)**cc: **(% style="color:#037691" %)**2 bytes;**(%%) Setting the IDC change threshold. (uA) 781 781 782 -(% style="color:blue" %)**dd: **(%%)Setting the VDC change threshold. (mV) 803 +(% style="color:blue" %)**dd: **(% style="color:#037691" %)**2 bytes;**(%%) Setting the VDC change threshold. (mV) 783 783 784 784 **Example:** 785 785 786 -* Downlink Payload: **09 01 00 3C 0B B8 01 F4 ** ~/~/ Equal to AT+ROC=1,60,3000, 500 787 -* Downlink Payload: **09 01 00 3C 0B B8 00 00 ** ~/~/ AT+ROC=1,60,3000,0 807 +* Downlink Payload: **09 01 00 3C 0B B8 01 F4 ** ~/~/Equal to AT+ROC=1,60,3000, 500 808 +* Downlink Payload: **09 01 00 3C 0B B8 00 00 ** ~/~/Equal to AT+ROC=1,60,3000,0 809 +* Downlink Payload: **09 02 00 3C 0B B8 00 00 ** ~/~/Equal to AT+ROC=2,60,3000,0 788 788 789 789 (% style="color:blue" %)**Screenshot of parsing example in TTN:** 790 790 ... ... @@ -793,6 +793,73 @@ 793 793 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/image-20241019170902-1.png?width=1454&height=450&rev=1.1||alt="image-20241019170902-1.png"]] 794 794 795 795 818 +==== 2.8.2.2 Over-threshold alarm mode ==== 819 + 820 +Feature: Monitors whether the IDC/VDC exceeds the threshold by setting the detection period and threshold. Alarm if the threshold is exceeded. 821 + 822 +(% style="color:blue" %)**AT Command: AT+ROC=3,a,b,c,d,e** 823 + 824 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 825 +|=(% style="width: 163px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 160px; background-color: rgb(79, 129, 189); color: white;" %)**Parameters**|=(% style="width: 185px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation** 826 +|(% style="width:143px" %)AT+ROC=?|(% style="width:160px" %)Show current ROC setting|(% style="width:185px" %)((( 827 +0,0,0,0(default) 828 +OK 829 +))) 830 +|(% colspan="1" rowspan="5" style="width:143px" %)((( 831 + 832 + 833 + 834 + 835 +AT+ROC=(% style="color:blue" %)**3**(%%),a,b,c,d,e 836 +)))|(% style="width:160px" %)((( 837 +**a: **Set the detection interval 838 +)))|(% style="width:185px" %)((( 839 +Range: 0~~65535s 840 +))) 841 +|(% style="width:160px" %)**b**: Set the IDC alarm trigger condition|(% style="width:185px" %)((( 842 +**0:** Less than the set IDC threshold, Alarm 843 + 844 +**1:** Greater than the set IDC threshold, Alarm 845 +))) 846 +|(% style="width:160px" %)**c**: Set the VDC alarm trigger condition|(% style="width:185px" %)((( 847 +**0:** Less than the set VDC threshold, Alarm 848 + 849 +**1:** Greater than the set VDC threshold, Alarm 850 +))) 851 +|(% style="width:160px" %)**d**: IDC alarm threshold|(% style="width:185px" %)Unit: uA 852 +|(% style="width:160px" %)**e:** VDC alarm threshold|(% style="width:185px" %)Unit: mV 853 + 854 +**Example:** 855 + 856 +* AT+ROC=3,60,0,0,3000,500 ~/~/The data is checked every 60 seconds. If the IDC is less than 3mA or the VDC is less than 500mV, an alarm is generated. 857 +* AT+ROC=3,180,1,1,3000,500 ~/~/The data is checked every 180 seconds. If the IDC is greater than 3mA or the VDC is greater than 500mV, an alarm is generated. 858 +* AT+ROC=3,300,0,1,3000,500 ~/~/The data is checked every 300 seconds. If the IDC is less than 3mA or the VDC is greater than 500mV, an alarm is generated. 859 + 860 +(% style="color:blue" %)**Downlink Command: 0x09 03 aa bb cc dd ee** 861 + 862 +Format: Function code (0x09) followed by 03 and the remaining 5 bytes. 863 + 864 +(% style="color:blue" %)**aa: **(% style="color:#037691" %)**2 bytes;**(%%) Set the detection interval.(second) 865 + 866 +(% style="color:blue" %)**bb: **(% style="color:#037691" %)**1 byte; **(%%)Set the IDC alarm trigger condition. 867 + 868 +(% style="color:blue" %)**cc: **(% style="color:#037691" %)**1 byte;**(%%) Set the VDC alarm trigger condition. 869 + 870 +(% style="color:blue" %)**dd: **(% style="color:#037691" %)**2 bytes;**(%%) IDC alarm threshold.(uA) 871 + 872 +(% style="color:blue" %)**ee: **(% style="color:#037691" %)**2 bytes; **(%%)VDC alarm threshold.(mV) 873 + 874 +**Example:** 875 + 876 +* Downlink Payload: **09 03 00 3C 00 00 0B B8 01 F4** ~/~/Equal to AT+ROC=3,60,0,0,3000,500 877 +* Downlink Payload: **09 03 00 b4 01 01 0B B8 01 F4** ~/~/Equal to AT+ROC=3,180,1,1,3000,500 878 +* Downlink Payload: **09 03 01 2C 00 01 0B B8 01 F4** ~/~/Equal to AT+ROC=3,300,0,1,3000,500 879 + 880 +(% style="color:blue" %)**Screenshot of parsing example in TTN:** 881 + 882 + 883 + 884 + 796 796 == 2.9 Firmware Change Log == 797 797 798 798