Changes for page SN50v3-LB/LS -- LoRaWAN Sensor Node User Manual
Last modified by Bei Jinggeng on 2025/01/10 15:51
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -41,6 +41,7 @@ 41 41 * Downlink to change configure 42 42 * 8500mAh Battery for long term use 43 43 44 + 44 44 == 1.3 Specification == 45 45 46 46 ... ... @@ -78,6 +78,7 @@ 78 78 * Sleep Mode: 5uA @ 3.3v 79 79 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm 80 80 82 + 81 81 == 1.4 Sleep mode and working mode == 82 82 83 83 ... ... @@ -105,6 +105,7 @@ 105 105 ))) 106 106 |(% 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. 107 107 110 + 108 108 == 1.6 BLE connection == 109 109 110 110 ... ... @@ -290,6 +290,7 @@ 290 290 1. All modes share the same Payload Explanation from HERE. 291 291 1. By default, the device will send an uplink message every 20 minutes. 292 292 296 + 293 293 ==== 2.3.2.1 MOD~=1 (Default Mode) ==== 294 294 295 295 ... ... @@ -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 319 + 315 315 ==== 2.3.2.2 MOD~=2 (Distance Mode) ==== 316 316 322 + 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 340 + 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 345 + 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 352 + 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 371 + 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 378 + 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 388 + 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 433 + 421 421 ==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 422 422 436 + 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 472 + 458 458 ==== 2.3.2.6 MOD~=6 (Counting Mode) ==== 459 459 475 + 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. 482 +(% 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 499 + 483 483 ==== 2.3.2.7 MOD~=7 (Three interrupt contact modes) ==== 484 484 502 + 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 518 + 500 500 ==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 501 501 521 + 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 544 + 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 587 + 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 599 + 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 609 + 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]]612 +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 618 + 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 630 + 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. 640 +(% style="color:red" %)**Note: The maximum voltage input supports 3.6V.** 641 + 642 + 616 616 ))) 617 617 618 618 ==== 2.3.3.4 Analogue Digital Converter (ADC) ==== 619 619 647 + 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.654 +(% 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 659 + 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 666 + 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 676 +(% style="color:blue" %)**Below is the installation example:** 677 + 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. 689 +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 ... ... @@ -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