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
-
... ... @@ -292,12 +292,13 @@ 292 292 293 293 In this mode, uplink payload includes in total 11 bytes. Uplink packets use FPORT=2. 294 294 295 -|**Size(bytes)**|**2**|**2**|**2**|(% style="width:216px" %)**1**|(% style="width:342px" %)**2**|(% style="width:171px" %)**2** 296 -|**Value**|Bat|((( 295 +(% style="width:1110px" %) 296 +|**Size(bytes)**|**2**|(% style="width:191px" %)**2**|(% style="width:78px" %)**2**|(% style="width:216px" %)**1**|(% style="width:308px" %)**2**|(% style="width:154px" %)**2** 297 +|**Value**|Bat|(% style="width:191px" %)((( 297 297 Temperature(DS18B20) 298 298 299 299 (PC13) 300 -)))|((( 301 +)))|(% style="width:78px" %)((( 301 301 ADC 302 302 303 303 (PA4) ... ... @@ -307,11 +307,11 @@ 307 307 Digital Interrupt(PA8) 308 308 309 309 310 -)))|(% style="width:3 42px" %)(((311 +)))|(% style="width:308px" %)((( 311 311 Temperature 312 312 313 313 (SHT20 or SHT31 or BH1750 Illumination Sensor) 314 -)))|(% style="width:1 71px" %)(((315 +)))|(% style="width:154px" %)((( 315 315 Humidity 316 316 317 317 (SHT20 or SHT31) ... ... @@ -324,25 +324,26 @@ 324 324 325 325 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. 326 326 327 -|**Size(bytes)**|**2**|**2**|**2**|**1**|**2**|**2** 328 -|**Value**|BAT|((( 328 +(% style="width:1011px" %) 329 +|**Size(bytes)**|**2**|(% style="width:196px" %)**2**|(% style="width:87px" %)**2**|(% style="width:189px" %)**1**|(% style="width:208px" %)**2**|(% style="width:117px" %)**2** 330 +|**Value**|BAT|(% style="width:196px" %)((( 329 329 Temperature(DS18B20) 330 330 331 331 (PC13) 332 -)))|((( 334 +)))|(% style="width:87px" %)((( 333 333 ADC 334 334 335 335 (PA4) 336 -)))|((( 338 +)))|(% style="width:189px" %)((( 337 337 Digital in(PB15) & 338 338 339 339 Digital Interrupt(PA8) 340 -)))|((( 342 +)))|(% style="width:208px" %)((( 341 341 Distance measure by: 342 342 1) LIDAR-Lite V3HP 343 343 Or 344 344 2) Ultrasonic Sensor 345 -)))|Reserved 347 +)))|(% style="width:117px" %)Reserved 346 346 347 347 [[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"]] 348 348 ... ... @@ -358,24 +358,25 @@ 358 358 359 359 For the connection to TF-Mini or TF-Luna , MOD2 payload is as below: 360 360 361 -|**Size(bytes)**|**2**|**2**|**1**|**2**|**2**|**2** 362 -|**Value**|BAT|((( 363 +(% style="width:1113px" %) 364 +|**Size(bytes)**|**2**|(% style="width:183px" %)**2**|(% style="width:173px" %)**1**|(% style="width:84px" %)**2**|(% style="width:323px" %)**2**|(% style="width:188px" %)**2** 365 +|**Value**|BAT|(% style="width:183px" %)((( 363 363 Temperature(DS18B20) 364 364 365 365 (PC13) 366 -)))|((( 369 +)))|(% style="width:173px" %)((( 367 367 Digital in(PB15) & 368 368 369 369 Digital Interrupt(PA8) 370 -)))|((( 373 +)))|(% style="width:84px" %)((( 371 371 ADC 372 372 373 373 (PA4) 374 -)))|((( 377 +)))|(% style="width:323px" %)((( 375 375 Distance measure by:1)TF-Mini plus LiDAR 376 376 Or 377 377 2) TF-Luna LiDAR 378 -)))|Distance signal strength 381 +)))|(% style="width:188px" %)Distance signal strength 379 379 380 380 [[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"]] 381 381 ... ... @@ -429,7 +429,6 @@ 429 429 430 430 ==== 2.3.2.4 MOD~=4 (3 x DS18B20) ==== 431 431 432 -[[image:image-20230512170701-3.png||height="565" width="743"]] 433 433 434 434 This mode has total 11 bytes. As shown below: 435 435 ... ... @@ -452,7 +452,9 @@ 452 452 453 453 [[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/1656377606181-607.png?rev=1.1||alt="1656377606181-607.png"]] 454 454 457 +[[image:image-20230513134006-1.png||height="559" width="736"]] 455 455 459 + 456 456 ==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 457 457 458 458 [[image:image-20230512164658-2.png||height="532" width="729"]] ... ... @@ -473,25 +473,25 @@ 473 473 474 474 Check the response of this command and adjust the value to match the real value for thing. 475 475 476 -(% style="width: 982px" %)480 +(% style="width:767px" %) 477 477 |=((( 478 478 **Size(bytes)** 479 -)))|=**2**|=(% style="width: 282px;" %)**2**|=(% style="width:119px;" %)**2**|=(% style="width:279px;" %)**1**|=(% style="width: 106px;" %)**4**480 -|**Value**|BAT|(% style="width: 282px" %)(((483 +)))|=**2**|=(% style="width: 193px;" %)**2**|=(% style="width: 85px;" %)**2**|=(% style="width: 186px;" %)**1**|=(% style="width: 100px;" %)**4** 484 +|**Value**|BAT|(% style="width:193px" %)((( 481 481 Temperature(DS18B20) 482 482 483 483 (PC13) 484 484 485 485 486 -)))|(% style="width: 119px" %)(((490 +)))|(% style="width:85px" %)((( 487 487 ADC 488 488 489 489 (PA4) 490 -)))|(% style="width: 279px" %)(((494 +)))|(% style="width:186px" %)((( 491 491 Digital in(PB15) & 492 492 493 493 Digital Interrupt(PA8) 494 -)))|(% style="width:10 6px" %)Weight498 +)))|(% style="width:100px" %)Weight 495 495 496 496 [[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"]] 497 497 ... ... @@ -531,29 +531,30 @@ 531 531 532 532 ==== 2.3.2.7 MOD~=7 (Three interrupt contact modes) ==== 533 533 538 +(% style="width:1108px" %) 534 534 |=((( 535 535 **Size(bytes)** 536 -)))|=**2**|=**2**|=**2**|=**1**|=**1**|=1|=2 537 -|**Value**|BAT|((( 541 +)))|=**2**|=(% style="width: 188px;" %)**2**|=(% style="width: 83px;" %)**2**|=(% style="width: 184px;" %)**1**|=(% style="width: 186px;" %)**1**|=(% style="width: 197px;" %)1|=(% style="width: 100px;" %)2 542 +|**Value**|BAT|(% style="width:188px" %)((( 538 538 Temperature(DS18B20) 539 539 540 540 (PC13) 541 -)))|((( 546 +)))|(% style="width:83px" %)((( 542 542 ADC 543 543 544 544 (PA5) 545 -)))|((( 550 +)))|(% style="width:184px" %)((( 546 546 Digital Interrupt1(PA8) 547 -)))|Digital Interrupt2(PA4)|Digital Interrupt3(PB15)|Reserved 552 +)))|(% style="width:186px" %)Digital Interrupt2(PA4)|(% style="width:197px" %)Digital Interrupt3(PB15)|(% style="width:100px" %)Reserved 548 548 549 549 [[image:image-20230513111203-7.png||height="324" width="975"]] 550 550 551 551 ==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 552 552 553 -(% style="width:9 17px" %)558 +(% style="width:922px" %) 554 554 |=((( 555 555 **Size(bytes)** 556 -)))|=**2**|=(% style="width: 207px;" %)**2**|=(% style="width: 94px;" %)**2**|=(% style="width: 198px;" %)**1**|=(% style="width: 84px;" %)**2**|=(% style="width: 79px;" %)2561 +)))|=**2**|=(% style="width: 207px;" %)**2**|=(% style="width: 94px;" %)**2**|=(% style="width: 198px;" %)**1**|=(% style="width: 84px;" %)**2**|=(% style="width: 82px;" %)2 557 557 |**Value**|BAT|(% style="width:207px" %)((( 558 558 Temperature(DS18B20) 559 559 ... ... @@ -568,7 +568,7 @@ 568 568 ADC2 569 569 570 570 (PA5) 571 -)))|(% style="width: 79px" %)(((576 +)))|(% style="width:82px" %)((( 572 572 ADC3 573 573 574 574 (PA8) ... ... @@ -746,14 +746,14 @@ 746 746 747 747 The SDA and SCK are I2C interface lines. You can use these to connect to an I2C device and get the sensor data. 748 748 749 -We have made an example to show how to use the I2C interface to connect to the SHT20 Temperature and Humidity Sensor. 754 +We have made an example to show how to use the I2C interface to connect to the SHT20/ SHT31 Temperature and Humidity Sensor. 750 750 751 -Notice: Different I2C sensors have different I2C commands set and initiate process, if user want to use other I2C sensors, User need to re-write the source code to support those sensors. SHT20 code in SN50_v3 will be a good reference. 756 +Notice: Different I2C sensors have different I2C commands set and initiate process, if user want to use other I2C sensors, User need to re-write the source code to support those sensors. SHT20/ SHT31 code in SN50_v3 will be a good reference. 752 752 753 753 Below is the connection to SHT20/ SHT31. The connection is as below: 754 754 755 755 756 -[[image:image-20230513103633-3.png||height=" 636" width="1017"]]761 +[[image:image-20230513103633-3.png||height="448" width="716"]] 757 757 758 758 The device will be able to get the I2C sensor data now and upload to IoT Server. 759 759 ... ... @@ -820,9 +820,9 @@ 820 820 821 821 MOD=1 support this sensor. The sensor value is in the 8^^th^^ and 9^^th^^ bytes. 822 822 823 -[[image:image-20230512172447-4.png||height=" 593" width="1015"]]828 +[[image:image-20230512172447-4.png||height="416" width="712"]] 824 824 825 -[[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"]] 830 +[[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"]] 826 826 827 827 828 828 ==== 2.3.3.12 Working MOD ==== ... ... @@ -850,9 +850,11 @@ 850 850 851 851 In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from: 852 852 853 -[[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/ LSN50v2-S31%26S31BLSN50v2-S31%26S31B]]858 +[[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]] 854 854 860 + 855 855 862 + 856 856 857 857 == 2.5 Frequency Plans == 858 858 ... ... @@ -894,7 +894,6 @@ 894 894 895 895 === 3.3.1 Set Transmit Interval Time === 896 896 897 - 898 898 Feature: Change LoRaWAN End Node Transmit Interval. 899 899 900 900 (% style="color:blue" %)**AT Command: AT+TDC** ... ... @@ -920,9 +920,12 @@ 920 920 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 921 921 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 922 922 929 +(% class="wikigeneratedid" %) 930 +=== === 931 + 923 923 === 3.3.2 Get Device Status === 924 924 925 -Send a LoRaWAN downlink to ask device send Alarmsettings.934 +Send a LoRaWAN downlink to ask the device to send its status. 926 926 927 927 (% style="color:blue" %)**Downlink Payload: **(%%)0x26 01 928 928 ... ... @@ -931,7 +931,6 @@ 931 931 932 932 === 3.3.3 Set Interrupt Mode === 933 933 934 - 935 935 Feature, Set Interrupt mode for GPIO_EXIT. 936 936 937 937 (% style="color:blue" %)**AT Command: AT+INTMOD1,AT+INTMOD2,AT+INTMOD3** ... ... @@ -968,6 +968,9 @@ 968 968 * Example 3: Downlink Payload: 06000102 **~-~-->** AT+INTMOD2=2 969 969 * Example 4: Downlink Payload: 06000201 **~-~-->** AT+INTMOD3=1 970 970 979 +(% class="wikigeneratedid" %) 980 +=== === 981 + 971 971 === 3.3.4 Set Power Output Duration === 972 972 973 973 Control the output duration 5V . Before each sampling, device will ... ... @@ -997,9 +997,12 @@ 997 997 998 998 The first and second bytes are the time to turn on. 999 999 1000 -* Example 1: Downlink Payload: 070000 1001 -* Example 2: Downlink Payload: 0701F4 1011 +* Example 1: Downlink Payload: 070000 **~-~-->** AT+5VT=0 1012 +* Example 2: Downlink Payload: 0701F4 **~-~-->** AT+5VT=500 1002 1002 1014 +(% class="wikigeneratedid" %) 1015 +=== === 1016 + 1003 1003 === 3.3.5 Set Weighing parameters === 1004 1004 1005 1005 Feature: Working mode 5 is effective, weight initialization and weight factor setting of HX711. ... ... @@ -1014,7 +1014,6 @@ 1014 1014 1015 1015 (% style="color:blue" %)**Downlink Command: 0x08** 1016 1016 1017 - 1018 1018 Format: Command Code (0x08) followed by 2 bytes or 4 bytes. 1019 1019 1020 1020 Use AT+WEIGRE when the first byte is 1, only 1 byte. When it is 2, use AT+WEIGAP, there are 3 bytes. ... ... @@ -1025,6 +1025,9 @@ 1025 1025 * Example 2: Downlink Payload: 08020FA3 **~-~-->** AT+WEIGAP=400.3 1026 1026 * Example 3: Downlink Payload: 08020FA0 **~-~-->** AT+WEIGAP=400.0 1027 1027 1041 +(% class="wikigeneratedid" %) 1042 +=== === 1043 + 1028 1028 === 3.3.6 Set Digital pulse count value === 1029 1029 1030 1030 Feature: Set the pulse count value. ... ... @@ -1040,7 +1040,6 @@ 1040 1040 1041 1041 (% style="color:blue" %)**Downlink Command: 0x09** 1042 1042 1043 - 1044 1044 Format: Command Code (0x09) followed by 5 bytes. 1045 1045 1046 1046 The first byte is to select which count value to initialize, and the next four bytes are the count value to be initialized. ... ... @@ -1048,6 +1048,9 @@ 1048 1048 * Example 1: Downlink Payload: 090100000000 **~-~-->** AT+SETCNT=1,0 1049 1049 * Example 2: Downlink Payload: 0902000003E8 **~-~-->** AT+SETCNT=2,1000 1050 1050 1066 +(% class="wikigeneratedid" %) 1067 +=== === 1068 + 1051 1051 === 3.3.7 Set Workmode === 1052 1052 1053 1053 Feature: Switch working mode. ... ... @@ -1067,12 +1067,14 @@ 1067 1067 1068 1068 (% style="color:blue" %)**Downlink Command: 0x0A** 1069 1069 1070 - 1071 1071 Format: Command Code (0x0A) followed by 1 bytes. 1072 1072 1073 1073 * Example 1: Downlink Payload: 0A01 **~-~-->** AT+MOD=1 1074 1074 * Example 2: Downlink Payload: 0A04 **~-~-->** AT+MOD=4 1075 1075 1093 +(% class="wikigeneratedid" %) 1094 += = 1095 + 1076 1076 = 4. Battery & Power Consumption = 1077 1077 1078 1078