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.1
edited by Karry Zhuang
on 2024/09/21 09:30
on 2024/09/21 09:30
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 (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,13 +1,16 @@ 1 - 1 +**Table of Contents:** 2 2 3 +{{toc/}} 3 3 4 4 5 5 6 6 7 -== 1.RS485-LB connects to third-party sensors == 8 8 9 -= =Howto connectRS485-LBnode toUART distancesensor?==9 += 1. RS485-LB connects to third-party sensors = 10 10 11 +== 1.1 How to connect RS485-LB node to UART distance sensor? == 12 + 13 + 11 11 Take the A16-15 as an example, but the same setup can support different distance sensors, compare specifications see this [[link>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DDS04-LB_LoRaWAN_4-Channels_Distance_Detection_Sensor_User_Manual/#H1.4ProbeOptions]] to DDS04-LB. 12 12 13 13 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240703151202-1.png?rev=1.1||alt="image-20240703151202-1.png"]] ... ... @@ -31,20 +31,20 @@ 31 31 32 32 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240703161941-4.png?width=1357&height=619&rev=1.1||alt="image-20240703161941-4.png" height="619" width="1357"]] 33 33 34 -== 2.SN50v3-LB connects to third-party sensors == 35 35 36 - 38 += 2. SN50v3-LB connects to third-party sensors = 37 37 38 -== =2.3.2Working Modes & Sensor Data. Uplink via FPORT~=2 ===40 +== 2.1 Working Modes & Sensor Data. Uplink via FPORT~=2 == 39 39 42 + 40 40 SN50v3-LB/LS has different working mode for the connections of different type of sensors. This section describes these modes. Use can use the AT Command (% style="color:blue" %)**AT+MOD**(%%) to set SN50v3-LB/LS to different working modes. 41 41 42 42 For example: 43 43 44 - 47 +(% style="color:blue" %)**AT+MOD=2 ** (%%) ~/~/ will set the SN50v3 to work in MOD=2 distance mode which target to measure distance via Ultrasonic Sensor. 45 45 46 46 47 -(% style="color:red" %) 50 +(% style="color:red" %)**Important Notice:** 48 48 49 49 ~1. Some working modes has payload more than 12 bytes, The US915/AU915/AS923 frequency bands' definition has maximum 11 bytes in (% style="color:blue" %)**DR0**(%%). Server sides will see NULL payload while SN50v3-LB/LS transmit in DR0 with 12 bytes payload. 50 50 ... ... @@ -52,8 +52,10 @@ 52 52 53 53 3. By default, the device will send an uplink message every 20 minutes. 54 54 55 -==== 2.3.2.1 MOD~=1 (Default Mode) ==== 56 56 59 +=== 2.1.1 MOD~=1 (Default Mode) === 60 + 61 + 57 57 In this mode, uplink payload includes in total 11 bytes. Uplink packets use FPORT=2. 58 58 59 59 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -72,8 +72,10 @@ 72 72 73 73 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220627150949-6.png?rev=1.1||alt="image-20220627150949-6.png"]] 74 74 75 -==== 2.3.2.2 MOD~=2 (Distance Mode) ==== 76 76 81 +=== 2.1.2 MOD~=2 (Distance Mode) === 82 + 83 + 77 77 This mode is target to measure the distance. The payload of this mode is totally 11 bytes. The 8^^th^^ and 9^^th^^ bytes is for the distance. 78 78 79 79 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -128,9 +128,10 @@ 128 128 129 129 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230610170047-1.png?width=799&height=452&rev=1.1||alt="image-20230610170047-1.png"]] 130 130 131 -==== 2.3.2.3 MOD~=3 (3 ADC + I2C) ==== 132 132 139 +=== 2.1.3 MOD~=3 (3 ADC + I2C) === 133 133 141 + 134 134 This mode has total 12 bytes. Include 3 x ADC + 1x I2C 135 135 136 136 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -150,10 +150,10 @@ 150 150 )))|(% style="width:163px" %)((( 151 151 Humidity(SHT20 or SHT31) 152 152 )))|(% style="width:53px" %)Bat 153 -[[image:image-20230513110214-6.png]] 154 154 155 -=== =2.3.2.4=162 +=== 2.1.4 MOD~=4 (3 x DS18B20) === 156 156 164 + 157 157 This mode has total 11 bytes. As shown below: 158 158 159 159 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -171,8 +171,10 @@ 171 171 172 172 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513134006-1.png?width=736&height=559&rev=1.1||alt="image-20230513134006-1.png"]] 173 173 174 -==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 175 175 183 +=== 2.1.5 MOD~=5 (Weight Measurement by HX711) === 184 + 185 + 176 176 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512164658-2.png?width=729&height=532&rev=1.1||alt="image-20230512164658-2.png"]] 177 177 178 178 Each HX711 need to be calibrated before used. User need to do below two steps: ... ... @@ -182,7 +182,6 @@ 182 182 1. ((( 183 183 Weight has 4 bytes, the unit is g. 184 184 185 - 186 186 187 187 ))) 188 188 ... ... @@ -208,8 +208,10 @@ 208 208 209 209 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220820120036-2.png?width=1003&height=469&rev=1.1||alt="image-20220820120036-2.png" height="469" width="1003"]] 210 210 211 -==== 2.3.2.6 MOD~=6 (Counting Mode) ==== 212 212 221 +=== 2.1.6 MOD~=6 (Counting Mode) === 222 + 223 + 213 213 In this mode, the device will work in counting mode. It counts the interrupt on the interrupt pins and sends the count on TDC time. 214 214 215 215 Connection is as below. The PIR sensor is a count sensor, it will generate interrupt when people come close or go away. User can replace the PIR sensor with other counting sensors. ... ... @@ -232,8 +232,10 @@ 232 232 233 233 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656378441509-171.png?rev=1.1||alt="1656378441509-171.png"]] 234 234 235 -==== 2.3.2.7 MOD~=7 (Three interrupt contact modes) ==== 236 236 247 +=== 2.1.7 MOD~=7 (Three interrupt contact modes) === 248 + 249 + 237 237 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) 238 238 |=(% style="width: 50px;background-color:#4F81BD;color:white" %)((( 239 239 **Size(bytes)** ... ... @@ -249,8 +249,10 @@ 249 249 250 250 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513111203-7.png?width=975&height=324&rev=1.1||alt="image-20230513111203-7.png"]] 251 251 252 -==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 253 253 266 +=== 2.1.8 MOD~=8 (3ADC+1DS18B20) === 267 + 268 + 254 254 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) 255 255 |=(% style="width: 50px;background-color:#4F81BD;color:white" %)((( 256 256 **Size(bytes)** ... ... @@ -270,8 +270,10 @@ 270 270 271 271 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513111231-8.png?width=900&height=335&rev=1.1||alt="image-20230513111231-8.png"]] 272 272 273 -==== 2.3.2.9 MOD~=9 (3DS18B20+ two Interrupt count mode) ==== 274 274 289 +=== 2.1.9 MOD~=9 (3DS18B20+ two Interrupt count mode) === 290 + 291 + 275 275 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) 276 276 |=(% style="width: 50px;background-color:#4F81BD;color:white" %)((( 277 277 **Size(bytes)** ... ... @@ -312,8 +312,9 @@ 312 312 When AA is 2, set the count of PA4 pin to BB Corresponding downlink:09 02 bb bb bb bb 313 313 314 314 315 -=== =2.3.2.10=332 +=== 2.1.10 MOD~=10 (PWM input capture and output mode,Since firmware v1.2) === 316 316 334 + 317 317 (% style="color:red" %)**Note: Firmware not release, contact Dragino for testing.** 318 318 319 319 In this mode, the uplink can perform PWM input capture, and the downlink can perform PWM output. ... ... @@ -321,8 +321,9 @@ 321 321 [[It should be noted when using PWM mode.>>||anchor="H2.3.3.12A0PWMMOD"]] 322 322 323 323 324 -==== =2.3.2.10.aUplink, PWM input capture =====342 +==== 2.1.10.1 Uplink, PWM input capture ==== 325 325 344 + 326 326 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 327 327 328 328 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %) ... ... @@ -360,11 +360,11 @@ 360 360 361 361 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230818092200-1.png?width=627&height=344&rev=1.1||alt="image-20230818092200-1.png"]] 362 362 363 -===== 2.3.2.10.b Uplink, PWM output ===== 364 364 383 +==== 2.1.10.2 Uplink, PWM output ==== 384 + 365 365 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 366 366 367 - 368 368 (% style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial; color:blue; font-family:Arial,sans-serif" %)**AT+PWMOUT=a,b,c** 369 369 370 370 a is the time delay of the output, the unit is ms. ... ... @@ -386,11 +386,11 @@ 386 386 387 387 The oscilloscope displays as follows: 388 388 389 - 390 390 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 391 391 392 -===== 2.3.2.10.c Downlink, PWM output ===== 393 393 411 +===== 2.1.10.3 Downlink, PWM output ===== 412 + 394 394 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817173800-3.png?width=685&height=412&rev=1.1||alt="image-20230817173800-3.png"]] 395 395 396 396 Downlink: (% style="color:#037691" %)**0B xx xx xx yy zz zz** ... ... @@ -408,8 +408,10 @@ 408 408 409 409 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817173858-5.png?width=843&height=634&rev=1.1||alt="image-20230817173858-5.png"]] 410 410 411 -==== 2.3.2.11 MOD~=11 (TEMP117) ==== 412 412 431 +==== 2.1.11 MOD~=11 (TEMP117) ==== 432 + 433 + 413 413 In this mode, uplink payload includes in total 11 bytes. Uplink packets use FPORT=2. 414 414 415 415 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -436,8 +436,10 @@ 436 436 437 437 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717141528-2.jpeg?width=654&height=430&rev=1.1||alt="image-20240717141528-2.jpeg"]] 438 438 439 -==== 2.3.2.12 MOD~=12 (Count+SHT31) ==== 440 440 461 +==== 2.1.12 MOD~=12 (Count+SHT31) ==== 462 + 463 + 441 441 This mode has total 11 bytes. As shown below: 442 442 443 443 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:517px" %) ... ... @@ -458,8 +458,10 @@ 458 458 459 459 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717152224-6.jpeg?width=680&height=359&rev=1.1||alt="image-20240717152224-6.jpeg"]] 460 460 461 -=== 2.3.3 Decode payload === 462 462 485 +== 2.2 Decode payload == 486 + 487 + 463 463 While using TTN V3 network, you can add the payload format to decode the payload. 464 464 465 465 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656378466788-734.png?rev=1.1||alt="1656378466788-734.png"]] ... ... @@ -471,8 +471,9 @@ 471 471 SN50v3-LB/LS TTN V3 Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]] 472 472 473 473 474 -=== =2.3.3.1=499 +=== 2.2.1 Battery Info === 475 475 501 + 476 476 Check the battery voltage for SN50v3-LB/LS. 477 477 478 478 Ex1: 0x0B45 = 2885mV ... ... @@ -480,7 +480,7 @@ 480 480 Ex2: 0x0B49 = 2889mV 481 481 482 482 483 -=== =2.3.3.2=509 +=== 2.2.2 Temperature (DS18B20) === 484 484 485 485 486 486 If there is a DS18B20 connected to PC13 pin. The temperature will be uploaded in the payload. ... ... @@ -497,10 +497,10 @@ 497 497 498 498 If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 499 499 500 - (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)526 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 501 501 502 502 503 -=== =2.3.3.3=529 +=== 2.2.3 Digital Input === 504 504 505 505 506 506 The digital input for pin PB15, ... ... @@ -517,7 +517,7 @@ 517 517 518 518 ))) 519 519 520 -==== 2. 3.3.4546 +==== 2.2.4 Analogue Digital Converter (ADC) ==== 521 521 522 522 523 523 The measuring range of the ADC is only about 0.1V to 1.1V The voltage resolution is about 0.24mv. ... ... @@ -531,11 +531,12 @@ 531 531 532 532 The position of PA5 on the hardware after **LSN50 v3.3** is changed to the position shown in the figure below, and the collected voltage becomes one-sixth of the original. 533 533 534 - 535 535 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230811113449-1.png?width=608&height=370&rev=1.1||alt="image-20230811113449-1.png"]] 536 536 537 -==== 2.3.3.5 Digital Interrupt ==== 538 538 563 +=== 2.2.5 Digital Interrupt === 564 + 565 + 539 539 Digital Interrupt refers to pin PA8, and there are different trigger methods. When there is a trigger, the SN50v3-LB/LS will send a packet to the server. 540 540 541 541 (% style="color:blue" %)** Interrupt connection method:** ... ... @@ -587,7 +587,7 @@ 587 587 door= (bytes[6] & 0x80)? "CLOSE":"OPEN"; 588 588 589 589 590 -=== =2.3.3.6 I2C Interface (SHT20 & SHT31) ====617 +=== 2.2.6 I2C Interface (SHT20 & SHT31) === 591 591 592 592 593 593 The SDA and SCK are I2C interface lines. You can use these to connect to an I2C device and get the sensor data. ... ... @@ -616,13 +616,13 @@ 616 616 If you want to use other I2C device, please refer the SHT20 part source code as reference. 617 617 618 618 619 -=== =2.3.3.7Distance Reading ====646 +=== 2.2.7 Distance Reading === 620 620 621 621 622 622 Refer [[Ultrasonic Sensor section>>||anchor="H2.3.3.8UltrasonicSensor"]]. 623 623 624 624 625 -=== =2.3.3.8=652 +=== 2.2.8 Ultrasonic Sensor === 626 626 627 627 628 628 This Fundamental Principles of this sensor can be found at this link: [[https:~~/~~/wiki.dfrobot.com/Weather_-_proof_Ultrasonic_Sensor_with_Separate_Probe_SKU~~_~~__SEN0208>>url:https://wiki.dfrobot.com/Weather_-_proof_Ultrasonic_Sensor_with_Separate_Probe_SKU___SEN0208]] ... ... @@ -644,13 +644,13 @@ 644 644 Distance: Read: 0C2D(Hex) = 3117(D) Value: 3117 mm=311.7 cm 645 645 646 646 647 -=== =2.3.3.9=674 +=== 2.2.9 Battery Output - BAT pin === 648 648 649 649 650 650 The BAT pin of SN50v3-LB/LS is connected to the Battery directly. If users want to use BAT pin to power an external sensor. User need to make sure the external sensor is of low power consumption. Because the BAT pin is always open. If the external sensor is of high power consumption. the battery of SN50v3-LB/LS will run out very soon. 651 651 652 652 653 -=== =2.3.3.10=680 +=== 2.2.10 +5V Output === 654 654 655 655 656 656 SN50v3-LB/LS will enable +5V output before all sampling and disable the +5v after all sampling. ... ... @@ -664,7 +664,7 @@ 664 664 By default the **AT+5VT=500**. If the external sensor which require 5v and require more time to get stable state, user can use this command to increase the power ON duration for this sensor. 665 665 666 666 667 -=== =2.3.3.11=694 +=== 2.2.11 BH1750 Illumination Sensor === 668 668 669 669 670 670 MOD=1 support this sensor. The sensor value is in the 8^^th^^ and 9^^th^^ bytes. ... ... @@ -673,8 +673,10 @@ 673 673 674 674 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220628110012-12.png?rev=1.1||alt="image-20220628110012-12.png" height="361" width="953"]] 675 675 676 -==== 2.3.3.12 PWM MOD ==== 677 677 704 +=== 2.2.12 PWM MOD === 705 + 706 + 678 678 * ((( 679 679 The maximum voltage that the SDA pin of SN50v3 can withstand is 3.6V, and it cannot exceed this voltage value, otherwise the chip may be burned. 680 680 ))) ... ... @@ -700,7 +700,7 @@ 700 700 b) If the output duration is more than 30 seconds, better to use external power source. 701 701 ))) 702 702 703 -=== =2.3.3.13=732 +=== 2.2.13 Working MOD === 704 704 705 705 706 706 The working MOD info is contained in the Digital in & Digital Interrupt byte (7^^th^^ Byte). ... ... @@ -722,24 +722,114 @@ 722 722 723 723 724 724 725 -= =3.PS-LB-NA connects to third-party sensors ==754 += 3. PS-LB-NA connects to third-party sensors = 726 726 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. 727 727 728 728 759 +**For example.** 729 729 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 730 730 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. 731 731 732 732 770 +=== 2.3.5 0~~20mA value (IDC_IN) === 733 733 734 734 773 +(% style="color:#037691" %)**Payload Example**: 735 735 775 +27AE(H) = 10158 (D)/1000 = 10.158mA. 736 736 737 737 778 +[[image:image-20230821150704-1.png||height="180" width="609"]] 738 738 780 +**Connect to a 2 wire 4~~20mA sensor.** 739 739 782 +[[image:image-20230225154759-1.png||height="408" width="741"]] 740 740 741 741 785 +=== 2.3.6 0~~30V value ( pin VDC_IN) === 742 742 743 743 788 +Measure the voltage value. The range is 0 to 30V. 744 744 790 +(% style="color:#037691" %)**Example**: 745 745 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 + 864 +