<
From version < 43.44 >
edited by Xiaoling
on 2023/05/16 15:31
To version < 43.49 >
edited by Xiaoling
on 2023/05/16 15:49
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -312,8 +312,10 @@
312 312  [[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"]]
313 313  
314 314  
315 +
315 315  ==== 2.3.2.2  MOD~=2 (Distance Mode) ====
316 316  
318 +
317 317  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.
318 318  
319 319  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
... ... @@ -331,10 +331,12 @@
331 331  
332 332  [[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/1656324539647-568.png?rev=1.1||alt="1656324539647-568.png"]]
333 333  
336 +
334 334  (% style="color:blue" %)**Connection of LIDAR-Lite V3HP:**
335 335  
336 336  [[image:image-20230512173758-5.png||height="563" width="712"]]
337 337  
341 +
338 338  (% style="color:blue" %)**Connection to Ultrasonic Sensor:**
339 339  
340 340  Need to remove R1 and R2 resistors to get low power,otherwise there will be 240uA standby current.
... ... @@ -341,6 +341,7 @@
341 341  
342 342  [[image:image-20230512173903-6.png||height="596" width="715"]]
343 343  
348 +
344 344  For the connection to TF-Mini or TF-Luna , MOD2 payload is as below:
345 345  
346 346  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
... ... @@ -359,6 +359,7 @@
359 359  
360 360  [[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/1656376779088-686.png?rev=1.1||alt="1656376779088-686.png"]]
361 361  
367 +
362 362  **Connection to [[TF-Mini plus>>url:http://en.benewake.com/product/detail/5c345cd0e5b3a844c472329b.html]] LiDAR(UART version):**
363 363  
364 364  Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current.
... ... @@ -365,6 +365,7 @@
365 365  
366 366  [[image:image-20230512180609-7.png||height="555" width="802"]]
367 367  
374 +
368 368  **Connection to [[TF-Luna>>url:http://en.benewake.com/product/detail/5e1c1fd04d839408076b6255.html]] LiDAR (UART version):**
369 369  
370 370  Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current.
... ... @@ -374,6 +374,7 @@
374 374  
375 375  ==== 2.3.2.3  MOD~=3 (3 ADC + I2C) ====
376 376  
384 +
377 377  This mode has total 12 bytes. Include 3 x ADC + 1x I2C
378 378  
379 379  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
... ... @@ -418,8 +418,10 @@
418 418  [[image:image-20230513134006-1.png||height="559" width="736"]]
419 419  
420 420  
429 +
421 421  ==== 2.3.2.5  MOD~=5(Weight Measurement by HX711) ====
422 422  
432 +
423 423  [[image:image-20230512164658-2.png||height="532" width="729"]]
424 424  
425 425  Each HX711 need to be calibrated before used. User need to do below two steps:
... ... @@ -455,8 +455,10 @@
455 455  [[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"]]
456 456  
457 457  
468 +
458 458  ==== 2.3.2.6  MOD~=6 (Counting Mode) ====
459 459  
471 +
460 460  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.
461 461  
462 462  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.
... ... @@ -463,7 +463,7 @@
463 463  
464 464  [[image:image-20230512181814-9.png||height="543" width="697"]]
465 465  
466 -(% style="color:red" %)**Note:** LoRaWAN wireless transmission will infect the PIR sensor. Which cause the counting value increase +1 for every uplink. User can change PIR sensor or put sensor away of the SN50_v3 to avoid this happen.
478 +(% style="color:red" %)**Note:** **LoRaWAN wireless transmission will infect the PIR sensor. Which cause the counting value increase +1 for every uplink. User can change PIR sensor or put sensor away of the SN50_v3 to avoid this happen.**
467 467  
468 468  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
469 469  |=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**Size(bytes)**|=(% style="width: 20px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 220px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 80px;background-color:#D9E2F3;color:#0070C0" %)**4**
... ... @@ -480,8 +480,10 @@
480 480  [[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"]]
481 481  
482 482  
495 +
483 483  ==== 2.3.2.7  MOD~=7 (Three interrupt contact modes) ====
484 484  
498 +
485 485  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
486 486  |=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)(((
487 487  **Size(bytes)**
... ... @@ -497,8 +497,10 @@
497 497  
498 498  [[image:image-20230513111203-7.png||height="324" width="975"]]
499 499  
514 +
500 500  ==== 2.3.2.8  MOD~=8 (3ADC+1DS18B20) ====
501 501  
517 +
502 502  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
503 503  |=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)(((
504 504  **Size(bytes)**
... ... @@ -521,6 +521,7 @@
521 521  
522 522  ==== 2.3.2.9  MOD~=9 (3DS18B20+ two Interrupt count mode) ====
523 523  
540 +
524 524  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
525 525  |=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)(((
526 526  **Size(bytes)**
... ... @@ -561,9 +561,9 @@
561 561  When AA is 2, set the count of PA4 pin to BB Corresponding downlink:09 02 bb bb bb bb
562 562  
563 563  
564 -
565 565  === 2.3.3  ​Decode payload ===
566 566  
583 +
567 567  While using TTN V3 network, you can add the payload format to decode the payload.
568 568  
569 569  [[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"]]
... ... @@ -575,6 +575,7 @@
575 575  
576 576  ==== 2.3.3.1 Battery Info ====
577 577  
595 +
578 578  Check the battery voltage for SN50v3.
579 579  
580 580  Ex1: 0x0B45 = 2885mV
... ... @@ -584,14 +584,16 @@
584 584  
585 585  ==== 2.3.3.2  Temperature (DS18B20) ====
586 586  
605 +
587 587  If there is a DS18B20 connected to PC13 pin. The temperature will be uploaded in the payload.
588 588  
589 -More DS18B20 can check the [[3 DS18B20 mode>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/#2.3.4MOD3D4283xDS18B2029]]
608 +More DS18B20 can check the [[3 DS18B20 mode>>||anchor="H2.3.2.4MOD3D4283xDS18B2029"]]
590 590  
591 591  (% style="color:blue" %)**Connection:**
592 592  
593 593  [[image:image-20230512180718-8.png||height="538" width="647"]]
594 594  
614 +
595 595  (% style="color:blue" %)**Example**:
596 596  
597 597  If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -603,6 +603,7 @@
603 603  
604 604  ==== 2.3.3.3 Digital Input ====
605 605  
626 +
606 606  The digital input for pin PB15,
607 607  
608 608  * When PB15 is high, the bit 1 of payload byte 6 is 1.
... ... @@ -612,11 +612,14 @@
612 612  (((
613 613  When the digital interrupt pin is set to AT+INTMODx=0, this pin is used as a digital input pin.
614 614  
615 -(% style="color:red" %)**Note:**The maximum voltage input supports 3.6V.
636 +(% style="color:red" %)**Note: The maximum voltage input supports 3.6V.**
637 +
638 +
616 616  )))
617 617  
618 618  ==== 2.3.3.4  Analogue Digital Converter (ADC) ====
619 619  
643 +
620 620  The measuring range of the ADC is only about 0V to 1.1V The voltage resolution is about 0.24mv.
621 621  
622 622  When the measured output voltage of the sensor is not within the range of 0V and 1.1V, the output voltage terminal of the sensor shall be divided The example in the following figure is to reduce the output voltage of the sensor by three times If it is necessary to reduce more times, calculate according to the formula in the figure and connect the corresponding resistance in series.
... ... @@ -623,11 +623,12 @@
623 623  
624 624  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220628150112-1.png?width=285&height=241&rev=1.1||alt="image-20220628150112-1.png" height="241" width="285"]]
625 625  
626 -(% style="color:red" %)**Note:**If the ADC type sensor needs to be powered by SN50_v3, it is recommended to use +5V to control its switch.Only sensors with low power consumption can be powered with VDD.
650 +(% style="color:red" %)**Note: If the ADC type sensor needs to be powered by SN50_v3, it is recommended to use +5V to control its switch.Only sensors with low power consumption can be powered with VDD.**
627 627  
628 628  
629 629  ==== 2.3.3.5 Digital Interrupt ====
630 630  
655 +
631 631  Digital Interrupt refers to pin PA8, and there are different trigger methods. When there is a trigger, the SN50v3 will send a packet to the server.
632 632  
633 633  (% style="color:blue" %)** Interrupt connection method:**
... ... @@ -634,6 +634,7 @@
634 634  
635 635  [[image:image-20230513105351-5.png||height="147" width="485"]]
636 636  
662 +
637 637  (% style="color:blue" %)**Example to use with door sensor :**
638 638  
639 639  The door sensor is shown at right. It is a two wire magnetic contact switch used for detecting the open/close status of doors or windows.
... ... @@ -642,8 +642,9 @@
642 642  
643 643  When the two pieces are close to each other, the 2 wire output will be short or open (depending on the type), while if the two pieces are away from each other, the 2 wire output will be the opposite status. So we can use SN50_v3 interrupt interface to detect the status for the door or window.
644 644  
645 -(% style="color:blue" %)** Below is the installation example:**
646 646  
672 +(% style="color:blue" %)**Below is the installation example:**
673 +
647 647  Fix one piece of the magnetic sensor to the door and connect the two pins to SN50_v3 as follows:
648 648  
649 649  * (((
... ... @@ -655,7 +655,7 @@
655 655  
656 656  Install the other piece to the door. Find a place where the two pieces will be close to each other when the door is closed. For this particular magnetic sensor, when the door is closed, the output will be short, and PA8 will be at the VCC voltage.
657 657  
658 -Door sensors have two types: ** NC (Normal close)** and **NO (normal open)**. The connection for both type sensors are the same. But the decoding for payload are reverse, user need to modify this in the IoT Server decoder.
685 +Door sensors have two types: (% style="color:blue" %)** NC (Normal close)**(%%) and (% style="color:blue" %)**NO (normal open)**(%%). The connection for both type sensors are the same. But the decoding for payload are reverse, user need to modify this in the IoT Server decoder.
659 659  
660 660  When door sensor is shorted, there will extra power consumption in the circuit, the extra current is 3v3/R14 = 3v3/1Mohm = 3uA which can be ignored.
661 661  
... ... @@ -673,6 +673,7 @@
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/1656379339508-835.png?rev=1.1||alt="1656379339508-835.png"]]
675 675  
703 +
676 676  In MOD=1, user can use byte 6 to see the status for door open or close. TTN V3 decoder is as below:
677 677  
678 678  door= (bytes[6] & 0x80)? "CLOSE":"OPEN";
... ... @@ -680,6 +680,7 @@
680 680  
681 681  ==== 2.3.3.6 I2C Interface (SHT20 & SHT31) ====
682 682  
711 +
683 683  The SDA and SCK are I2C interface lines. You can use these to connect to an I2C device and get the sensor data.
684 684  
685 685  We have made an example to show how to use the I2C interface to connect to the SHT20/ SHT31 Temperature and Humidity Sensor.
... ... @@ -708,11 +708,13 @@
708 708  
709 709  ==== 2.3.3.7  ​Distance Reading ====
710 710  
740 +
711 711  Refer [[Ultrasonic Sensor section>>||anchor="H2.3.3.8UltrasonicSensor"]].
712 712  
713 713  
714 714  ==== 2.3.3.8 Ultrasonic Sensor ====
715 715  
746 +
716 716  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]]
717 717  
718 718  The SN50_v3 detects the pulse width of the sensor and converts it to mm output. The accuracy will be within 1 centimeter. The usable range (the distance between the ultrasonic probe and the measured object) is between 24cm and 600cm.
... ... @@ -779,7 +779,6 @@
779 779  * 7: MOD8
780 780  * 8: MOD9
781 781  
782 -
783 783  == 2.4 Payload Decoder file ==
784 784  
785 785  
... ... @@ -856,7 +856,6 @@
856 856  * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
857 857  * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
858 858  
859 -
860 860  === 3.3.2 Get Device Status ===
861 861  
862 862  Send a LoRaWAN downlink to ask the device to send its status.
... ... @@ -904,7 +904,6 @@
904 904  * Example 3: Downlink Payload: 06000102  **~-~-->**  AT+INTMOD2=2
905 905  * Example 4: Downlink Payload: 06000201  **~-~-->**  AT+INTMOD3=1
906 906  
907 -
908 908  === 3.3.4 Set Power Output Duration ===
909 909  
910 910  Control the output duration 5V . Before each sampling, device will
... ... @@ -936,7 +936,6 @@
936 936  * Example 1: Downlink Payload: 070000  **~-~-->**  AT+5VT=0
937 937  * Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
938 938  
939 -
940 940  === 3.3.5 Set Weighing parameters ===
941 941  
942 942  Feature: Working mode 5 is effective, weight initialization and weight factor setting of HX711.
... ... @@ -961,7 +961,6 @@
961 961  * Example 2: Downlink Payload: 08020FA3  **~-~-->**  AT+WEIGAP=400.3
962 962  * Example 3: Downlink Payload: 08020FA0  **~-~-->**  AT+WEIGAP=400.0
963 963  
964 -
965 965  === 3.3.6 Set Digital pulse count value ===
966 966  
967 967  Feature: Set the pulse count value.
... ... @@ -984,7 +984,6 @@
984 984  * Example 1: Downlink Payload: 090100000000  **~-~-->**  AT+SETCNT=1,0
985 985  * Example 2: Downlink Payload: 0902000003E8  **~-~-->**  AT+SETCNT=2,1000
986 986  
987 -
988 988  === 3.3.7 Set Workmode ===
989 989  
990 990  Feature: Switch working mode.
... ... @@ -1008,7 +1008,6 @@
1008 1008  * Example 1: Downlink Payload: 0A01  **~-~-->**  AT+MOD=1
1009 1009  * Example 2: Downlink Payload: 0A04  **~-~-->**  AT+MOD=4
1010 1010  
1011 -
1012 1012  = 4. Battery & Power Consumption =
1013 1013  
1014 1014  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0