Last modified by Xiaoling on 2024/09/24 15:37

From version 5.2
edited by Xiaoling
on 2024/09/23 17:27
Change comment: There is no comment for this version
To version 8.1
edited by Karry Zhuang
on 2024/09/23 18:44
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +XWiki.karry
Content
... ... @@ -159,7 +159,6 @@
159 159  Humidity(SHT20 or SHT31)
160 160  )))|(% style="width:53px" %)Bat
161 161  
162 -
163 163  === 2.1.4 MOD~=4 (3 x DS18B20) ===
164 164  
165 165  
... ... @@ -730,7 +730,6 @@
730 730  b) If the output duration is more than 30 seconds, better to use external power source. 
731 731  )))
732 732  
733 -
734 734  === 2.2.13 Working MOD ===
735 735  
736 736  
... ... @@ -755,22 +755,97 @@
755 755  
756 756  = 3. PS-LB-NA connects to third-party sensors =
757 757  
756 +PS-LB-NA might connect to different kind of probes, 4~~20mA represent the full scale of the measuring range. So a 12mA output means different meaning for different probe. 
758 758  
759 759  
759 +**For example.**
760 760  
761 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
762 +|(% style="background-color:#4f81bd; color:white; width:150px" %)**Probe Type**|(% style="background-color:#4f81bd; color:white; width:150px" %)**4~~20mA scale for this probe**|(% style="background-color:#4f81bd; color:white; width:200px" %)**Example: 12mA actually meaning for this probe**
763 +|(% style="background-color:#f2f2f2; width:206px" %)PH Combination Electrodes|(% style="background-color:#f2f2f2; width:222px" %)0 ~~ 14 pH|(% style="background-color:#f2f2f2; width:356px" %)PH Value: 7
764 +|(% style="background-color:#f2f2f2; width:206px" %)Water Pressure Sensor|(% style="background-color:#f2f2f2; width:222px" %)0~~5 meters|(% style="background-color:#f2f2f2; width:356px" %)2.5 meters pure water
765 +|(% style="background-color:#f2f2f2; width:206px" %)Pressure transmitter probe|(% style="background-color:#f2f2f2; width:222px" %)0~~1MPa|(% style="background-color:#f2f2f2; width:356px" %)0.5MPa air / gas or water pressure
761 761  
767 +User can set different probe model for above probes. So IoT server is able to se identical how it should parse the 4~~20mA or 0~~30v sensor value and get the correct value.
762 762  
763 763  
770 +=== 2.3.5 0~~20mA value (IDC_IN) ===
764 764  
765 765  
773 +(% style="color:#037691" %)**Payload Example**:
766 766  
775 +27AE(H) = 10158 (D)/1000 = 10.158mA.
767 767  
768 768  
778 +[[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-20230821150704-1.png?width=609&height=180&rev=1.1||alt="image-20230821150704-1.png"]]
769 769  
780 +**Connect to a 2 wire 4~~20mA sensor.**
770 770  
782 +[[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-20230225154759-1.png?width=741&height=408&rev=1.1||alt="image-20230225154759-1.png"]]
771 771  
784 +=== 2.3.6 0~~30V value ( pin VDC_IN) ===
772 772  
773 773  
787 +Measure the voltage value. The range is 0 to 30V.
774 774  
789 +(% style="color:#037691" %)**Example**:
775 775  
776 -
791 +138E(H) = 5006(D)/1000= 5.006V
792 +
793 +
794 +=== 2.3.7 IN1&IN2&INT pin ===
795 +
796 +
797 +IN1 and IN2 are used as digital input pins.
798 +
799 +(% style="color:#037691" %)**Example**:
800 +
801 +09 (H): (0x09&0x08)>>3=1    IN1 pin is high level.
802 +
803 +09 (H): (0x09&0x04)>>2=0    IN2 pin is low level.
804 +
805 +
806 +This data field shows if this packet is generated by (% style="color:blue" %)**Interrupt Pin** (%%)or not. [[Click here>>||anchor="H3.3.2SetInterruptMode"]] for the hardware and software set up. Note: The Internet Pin is a separate pin in the screw terminal.
807 +
808 +(% style="color:#037691" %)**Example:**
809 +
810 +09 (H): (0x09&0x02)>>1=1    The level of the interrupt pin.
811 +
812 +09 (H): 0x09&0x01=1              0x00: Normal uplink packet.
813 +
814 +0x01: Interrupt Uplink Packet.
815 +
816 +
817 +=== 2.3.8 Sensor value, FPORT~=7 ===
818 +
819 +
820 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:504px" %)
821 +|(% style="background-color:#4f81bd; color:white; width:94px" %)(((
822 +**Size(bytes)**
823 +)))|(% style="background-color:#4f81bd; color:white; width:43px" %)**2**|(% style="background-color:#4f81bd; color:white; width:367px" %)**n**
824 +|(% style="background-color:#f2f2f2; width:94px" %)Value|(% style="background-color:#f2f2f2; width:43px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="background-color:#f2f2f2; width:367px" %)(((
825 +Voltage value, each 2 bytes is a set of voltage values.
826 +)))
827 +
828 +[[image:image-20230220171300-1.png||height="207" width="863"]]
829 +
830 +Multiple sets of data collected are displayed in this form:
831 +
832 +[voltage value1], [voltage value2], [voltage value3],…[voltage value n/2]
833 +
834 +
835 +=== 2.3.9 ​Decode payload in The Things Network ===
836 +
837 +
838 +While using TTN network, you can add the payload format to decode the payload.
839 +
840 +
841 +[[image:1675144839454-913.png]]
842 +
843 +
844 +PS-LB-NA TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decode>>url:https://github.com/dragino/dragino-end-node-decoder]]
845 +
846 +
847 +
848 +
849 +