Changes for page How to connect 3rd party sensor to Dragino Wireless End Node
Last modified by Xiaoling on 2024/09/24 15:37
From version 5.2
edited by Xiaoling
on 2024/09/23 17:27
on 2024/09/23 17:27
Change comment:
There is no comment for this version
To version 6.1
edited by Karry Zhuang
on 2024/09/23 18:35
on 2024/09/23 18:35
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +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,112 @@ 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:image-20230821150704-1.png||height="180" width="609"]] 769 769 780 +**Connect to a 2 wire 4~~20mA sensor.** 770 770 782 +[[image:image-20230225154759-1.png||height="408" width="741"]] 771 771 772 772 785 +=== 2.3.6 0~~30V value ( pin VDC_IN) === 773 773 774 774 788 +Measure the voltage value. The range is 0 to 30V. 775 775 790 +(% style="color:#037691" %)**Example**: 791 + 792 +138E(H) = 5006(D)/1000= 5.006V 793 + 794 + 795 +=== 2.3.7 IN1&IN2&INT pin === 796 + 797 + 798 +IN1 and IN2 are used as digital input pins. 799 + 800 +(% style="color:#037691" %)**Example**: 801 + 802 +09 (H): (0x09&0x08)>>3=1 IN1 pin is high level. 803 + 804 +09 (H): (0x09&0x04)>>2=0 IN2 pin is low level. 805 + 806 + 807 +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. 808 + 809 +(% style="color:#037691" %)**Example:** 810 + 811 +09 (H): (0x09&0x02)>>1=1 The level of the interrupt pin. 812 + 813 +09 (H): 0x09&0x01=1 0x00: Normal uplink packet. 814 + 815 +0x01: Interrupt Uplink Packet. 816 + 817 + 818 +=== 2.3.8 Sensor value, FPORT~=7 === 819 + 820 + 821 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:504px" %) 822 +|(% style="background-color:#4f81bd; color:white; width:94px" %)((( 823 +**Size(bytes)** 824 +)))|(% style="background-color:#4f81bd; color:white; width:43px" %)**2**|(% style="background-color:#4f81bd; color:white; width:367px" %)**n** 825 +|(% style="background-color:#f2f2f2; width:94px" %)Value|(% style="background-color:#f2f2f2; width:43px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="background-color:#f2f2f2; width:367px" %)((( 826 +Voltage value, each 2 bytes is a set of voltage values. 827 +))) 828 + 829 +[[image:image-20230220171300-1.png||height="207" width="863"]] 830 + 831 +Multiple sets of data collected are displayed in this form: 832 + 833 +[voltage value1], [voltage value2], [voltage value3],…[voltage value n/2] 834 + 835 + 836 +=== 2.3.9 Decode payload in The Things Network === 837 + 838 + 839 +While using TTN network, you can add the payload format to decode the payload. 840 + 841 + 842 +[[image:1675144839454-913.png]] 843 + 844 + 845 +PS-LB-NA TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]] 846 + 847 + 848 + 849 + 850 + 851 + 852 + 853 + 854 + 855 + 856 + 857 + 858 + 859 + 860 + 861 + 862 + 863 + 776 776