<
From version < 43.45 >
edited by Xiaoling
on 2023/05/16 15:37
To version < 43.52 >
edited by Xiaoling
on 2023/05/16 16:10
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -41,8 +41,6 @@
41 41  * Downlink to change configure
42 42  * 8500mAh Battery for long term use
43 43  
44 -
45 -
46 46  == 1.3 Specification ==
47 47  
48 48  
... ... @@ -80,8 +80,6 @@
80 80  * Sleep Mode: 5uA @ 3.3v
81 81  * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
82 82  
83 -
84 -
85 85  == 1.4 Sleep mode and working mode ==
86 86  
87 87  
... ... @@ -109,8 +109,6 @@
109 109  )))
110 110  |(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode.
111 111  
112 -
113 -
114 114  == 1.6 BLE connection ==
115 115  
116 116  
... ... @@ -296,8 +296,6 @@
296 296  1. All modes share the same Payload Explanation from HERE.
297 297  1. By default, the device will send an uplink message every 20 minutes.
298 298  
299 -
300 -
301 301  ==== 2.3.2.1  MOD~=1 (Default Mode) ====
302 302  
303 303  
... ... @@ -619,6 +619,7 @@
619 619  
620 620  [[image:image-20230512180718-8.png||height="538" width="647"]]
621 621  
614 +
622 622  (% style="color:blue" %)**Example**:
623 623  
624 624  If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -630,6 +630,7 @@
630 630  
631 631  ==== 2.3.3.3 Digital Input ====
632 632  
626 +
633 633  The digital input for pin PB15,
634 634  
635 635  * When PB15 is high, the bit 1 of payload byte 6 is 1.
... ... @@ -639,11 +639,14 @@
639 639  (((
640 640  When the digital interrupt pin is set to AT+INTMODx=0, this pin is used as a digital input pin.
641 641  
642 -(% 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 +
643 643  )))
644 644  
645 645  ==== 2.3.3.4  Analogue Digital Converter (ADC) ====
646 646  
643 +
647 647  The measuring range of the ADC is only about 0V to 1.1V The voltage resolution is about 0.24mv.
648 648  
649 649  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.
... ... @@ -650,11 +650,12 @@
650 650  
651 651  [[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"]]
652 652  
653 -(% 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.**
654 654  
655 655  
656 656  ==== 2.3.3.5 Digital Interrupt ====
657 657  
655 +
658 658  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.
659 659  
660 660  (% style="color:blue" %)** Interrupt connection method:**
... ... @@ -661,6 +661,7 @@
661 661  
662 662  [[image:image-20230513105351-5.png||height="147" width="485"]]
663 663  
662 +
664 664  (% style="color:blue" %)**Example to use with door sensor :**
665 665  
666 666  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.
... ... @@ -669,8 +669,9 @@
669 669  
670 670  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.
671 671  
672 -(% style="color:blue" %)** Below is the installation example:**
673 673  
672 +(% style="color:blue" %)**Below is the installation example:**
673 +
674 674  Fix one piece of the magnetic sensor to the door and connect the two pins to SN50_v3 as follows:
675 675  
676 676  * (((
... ... @@ -682,7 +682,7 @@
682 682  
683 683  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.
684 684  
685 -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.
686 686  
687 687  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.
688 688  
... ... @@ -700,6 +700,7 @@
700 700  
701 701  [[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"]]
702 702  
703 +
703 703  In MOD=1, user can use byte 6 to see the status for door open or close. TTN V3 decoder is as below:
704 704  
705 705  door= (bytes[6] & 0x80)? "CLOSE":"OPEN";
... ... @@ -707,6 +707,7 @@
707 707  
708 708  ==== 2.3.3.6 I2C Interface (SHT20 & SHT31) ====
709 709  
711 +
710 710  The SDA and SCK are I2C interface lines. You can use these to connect to an I2C device and get the sensor data.
711 711  
712 712  We have made an example to show how to use the I2C interface to connect to the SHT20/ SHT31 Temperature and Humidity Sensor.
... ... @@ -735,11 +735,13 @@
735 735  
736 736  ==== 2.3.3.7  ​Distance Reading ====
737 737  
740 +
738 738  Refer [[Ultrasonic Sensor section>>||anchor="H2.3.3.8UltrasonicSensor"]].
739 739  
740 740  
741 741  ==== 2.3.3.8 Ultrasonic Sensor ====
742 742  
746 +
743 743  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]]
744 744  
745 745  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.
... ... @@ -750,6 +750,7 @@
750 750  
751 751  [[image:image-20230512173903-6.png||height="596" width="715"]]
752 752  
757 +
753 753  Connect to the SN50_v3 and run (% style="color:blue" %)**AT+MOD=2**(%%) to switch to ultrasonic mode (ULT).
754 754  
755 755  The ultrasonic sensor uses the 8^^th^^ and 9^^th^^ byte for the measurement value.
... ... @@ -759,14 +759,15 @@
759 759  Distance:  Read: 0C2D(Hex) = 3117(D)  Value:  3117 mm=311.7 cm
760 760  
761 761  
762 -
763 763  ==== 2.3.3.9  Battery Output - BAT pin ====
764 764  
769 +
765 765  The BAT pin of SN50v3 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 will run out very soon.
766 766  
767 767  
768 768  ==== 2.3.3.10  +5V Output ====
769 769  
775 +
770 770  SN50v3 will enable +5V output before all sampling and disable the +5v after all sampling. 
771 771  
772 772  The 5V output time can be controlled by AT Command.
... ... @@ -778,18 +778,20 @@
778 778  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.
779 779  
780 780  
781 -
782 782  ==== 2.3.3.11  BH1750 Illumination Sensor ====
783 783  
789 +
784 784  MOD=1 support this sensor. The sensor value is in the 8^^th^^ and 9^^th^^ bytes.
785 785  
786 786  [[image:image-20230512172447-4.png||height="416" width="712"]]
787 787  
794 +
788 788  [[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"]]
789 789  
790 790  
791 791  ==== 2.3.3.12  Working MOD ====
792 792  
800 +
793 793  The working MOD info is contained in the Digital in & Digital Interrupt byte (7^^th^^ Byte).
794 794  
795 795  User can use the 3^^rd^^ ~~ 7^^th^^  bit of this byte to see the working mod:
... ... @@ -807,6 +807,7 @@
807 807  * 8: MOD9
808 808  
809 809  
818 +
810 810  == 2.4 Payload Decoder file ==
811 811  
812 812  
... ... @@ -817,7 +817,6 @@
817 817  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/SN50_v3-LB>>https://github.com/dragino/dragino-end-node-decoder/tree/main/SN50_v3-LB]]
818 818  
819 819  
820 -
821 821  == 2.5 Frequency Plans ==
822 822  
823 823  
... ... @@ -837,6 +837,8 @@
837 837  * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
838 838  * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
839 839  
848 +
849 +
840 840  == 3.2 General Commands ==
841 841  
842 842  
... ... @@ -858,6 +858,7 @@
858 858  
859 859  === 3.3.1 Set Transmit Interval Time ===
860 860  
871 +
861 861  Feature: Change LoRaWAN End Node Transmit Interval.
862 862  
863 863  (% style="color:blue" %)**AT Command: AT+TDC**
... ... @@ -884,8 +884,10 @@
884 884  * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
885 885  
886 886  
898 +
887 887  === 3.3.2 Get Device Status ===
888 888  
901 +
889 889  Send a LoRaWAN downlink to ask the device to send its status.
890 890  
891 891  (% style="color:blue" %)**Downlink Payload:  **(%%)0x26 01
... ... @@ -895,6 +895,7 @@
895 895  
896 896  === 3.3.3 Set Interrupt Mode ===
897 897  
911 +
898 898  Feature, Set Interrupt mode for GPIO_EXIT.
899 899  
900 900  (% style="color:blue" %)**AT Command: AT+INTMOD1,AT+INTMOD2,AT+INTMOD3**
... ... @@ -932,8 +932,10 @@
932 932  * Example 4: Downlink Payload: 06000201  **~-~-->**  AT+INTMOD3=1
933 933  
934 934  
949 +
935 935  === 3.3.4 Set Power Output Duration ===
936 936  
952 +
937 937  Control the output duration 5V . Before each sampling, device will
938 938  
939 939  ~1. first enable the power output to external sensor,
... ... @@ -964,8 +964,10 @@
964 964  * Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
965 965  
966 966  
983 +
967 967  === 3.3.5 Set Weighing parameters ===
968 968  
986 +
969 969  Feature: Working mode 5 is effective, weight initialization and weight factor setting of HX711.
970 970  
971 971  (% style="color:blue" %)**AT Command: AT+WEIGRE,AT+WEIGAP**
... ... @@ -989,8 +989,10 @@
989 989  * Example 3: Downlink Payload: 08020FA0  **~-~-->**  AT+WEIGAP=400.0
990 990  
991 991  
1010 +
992 992  === 3.3.6 Set Digital pulse count value ===
993 993  
1013 +
994 994  Feature: Set the pulse count value.
995 995  
996 996  Count 1 is PA8 pin of mode 6 and mode 9. Count 2 is PA4 pin of mode 9.
... ... @@ -1012,8 +1012,10 @@
1012 1012  * Example 2: Downlink Payload: 0902000003E8  **~-~-->**  AT+SETCNT=2,1000
1013 1013  
1014 1014  
1035 +
1015 1015  === 3.3.7 Set Workmode ===
1016 1016  
1038 +
1017 1017  Feature: Switch working mode.
1018 1018  
1019 1019  (% style="color:blue" %)**AT Command: AT+MOD**
... ... @@ -1036,6 +1036,7 @@
1036 1036  * Example 2: Downlink Payload: 0A04  **~-~-->**  AT+MOD=4
1037 1037  
1038 1038  
1061 +
1039 1039  = 4. Battery & Power Consumption =
1040 1040  
1041 1041  
... ... @@ -1062,13 +1062,18 @@
1062 1062  * (Recommanded way) OTA firmware update via wireless:   [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
1063 1063  * Update through UART TTL interface.**[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
1064 1064  
1088 +
1089 +
1065 1065  = 6. FAQ =
1066 1066  
1067 1067  == 6.1 Where can i find source code of SN50v3-LB? ==
1068 1068  
1094 +
1069 1069  * **[[Hardware Source Files>>https://github.com/dragino/Lora/tree/master/LSN50/v3.0]].**
1070 1070  * **[[Software Source Code & Compile instruction>>https://github.com/dragino/SN50v3]].**
1071 1071  
1098 +
1099 +
1072 1072  = 7. Order Info =
1073 1073  
1074 1074  
... ... @@ -1092,8 +1092,11 @@
1092 1092  * (% style="color:red" %)**20**(%%): With M20 waterproof cable hole
1093 1093  * (% style="color:red" %)**NH**(%%): No Hole
1094 1094  
1123 +
1124 +
1095 1095  = 8. ​Packing Info =
1096 1096  
1127 +
1097 1097  (% style="color:#037691" %)**Package Includes**:
1098 1098  
1099 1099  * SN50v3-LB LoRaWAN Generic Node
... ... @@ -1105,6 +1105,8 @@
1105 1105  * Package Size / pcs : cm
1106 1106  * Weight / pcs : g
1107 1107  
1139 +
1140 +
1108 1108  = 9. Support =
1109 1109  
1110 1110  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0