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)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -292,13 +292,12 @@ 292 292 293 293 In this mode, uplink payload includes in total 11 bytes. Uplink packets use FPORT=2. 294 294 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" %)((( 295 +|**Size(bytes)**|**2**|**2**|**2**|(% style="width:216px" %)**1**|(% style="width:342px" %)**2**|(% style="width:171px" %)**2** 296 +|**Value**|Bat|((( 298 298 Temperature(DS18B20) 299 299 300 300 (PC13) 301 -)))|( % style="width:78px" %)(((300 +)))|((( 302 302 ADC 303 303 304 304 (PA4) ... ... @@ -308,11 +308,11 @@ 308 308 Digital Interrupt(PA8) 309 309 310 310 311 -)))|(% style="width:3 08px" %)(((310 +)))|(% style="width:342px" %)((( 312 312 Temperature 313 313 314 314 (SHT20 or SHT31 or BH1750 Illumination Sensor) 315 -)))|(% style="width:1 54px" %)(((314 +)))|(% style="width:171px" %)((( 316 316 Humidity 317 317 318 318 (SHT20 or SHT31) ... ... @@ -325,26 +325,25 @@ 325 325 326 326 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. 327 327 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" %)((( 327 +|**Size(bytes)**|**2**|**2**|**2**|**1**|**2**|**2** 328 +|**Value**|BAT|((( 331 331 Temperature(DS18B20) 332 332 333 333 (PC13) 334 -)))|( % style="width:87px" %)(((332 +)))|((( 335 335 ADC 336 336 337 337 (PA4) 338 -)))|( % style="width:189px" %)(((336 +)))|((( 339 339 Digital in(PB15) & 340 340 341 341 Digital Interrupt(PA8) 342 -)))|( % style="width:208px" %)(((340 +)))|((( 343 343 Distance measure by: 344 344 1) LIDAR-Lite V3HP 345 345 Or 346 346 2) Ultrasonic Sensor 347 -)))| (% style="width:117px" %)Reserved345 +)))|Reserved 348 348 349 349 [[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"]] 350 350 ... ... @@ -360,25 +360,24 @@ 360 360 361 361 For the connection to TF-Mini or TF-Luna , MOD2 payload is as below: 362 362 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" %)((( 361 +|**Size(bytes)**|**2**|**2**|**1**|**2**|**2**|**2** 362 +|**Value**|BAT|((( 366 366 Temperature(DS18B20) 367 367 368 368 (PC13) 369 -)))|( % style="width:173px" %)(((366 +)))|((( 370 370 Digital in(PB15) & 371 371 372 372 Digital Interrupt(PA8) 373 -)))|( % style="width:84px" %)(((370 +)))|((( 374 374 ADC 375 375 376 376 (PA4) 377 -)))|( % style="width:323px" %)(((374 +)))|((( 378 378 Distance measure by:1)TF-Mini plus LiDAR 379 379 Or 380 380 2) TF-Luna LiDAR 381 -)))| (% style="width:188px" %)Distance signal strength378 +)))|Distance signal strength 382 382 383 383 [[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"]] 384 384 ... ... @@ -432,6 +432,7 @@ 432 432 433 433 ==== 2.3.2.4 MOD~=4 (3 x DS18B20) ==== 434 434 432 +[[image:image-20230512170701-3.png||height="565" width="743"]] 435 435 436 436 This mode has total 11 bytes. As shown below: 437 437 ... ... @@ -454,9 +454,7 @@ 454 454 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/1656377606181-607.png?rev=1.1||alt="1656377606181-607.png"]] 456 456 457 -[[image:image-20230513134006-1.png||height="559" width="736"]] 458 458 459 - 460 460 ==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 461 461 462 462 [[image:image-20230512164658-2.png||height="532" width="729"]] ... ... @@ -477,25 +477,25 @@ 477 477 478 478 Check the response of this command and adjust the value to match the real value for thing. 479 479 480 -(% style="width: 767px" %)476 +(% style="width:982px" %) 481 481 |=((( 482 482 **Size(bytes)** 483 -)))|=**2**|=(% style="width: 193px;" %)**2**|=(% style="width:85px;" %)**2**|=(% style="width:186px;" %)**1**|=(% style="width: 100px;" %)**4**484 -|**Value**|BAT|(% style="width: 193px" %)(((479 +)))|=**2**|=(% style="width: 282px;" %)**2**|=(% style="width: 119px;" %)**2**|=(% style="width: 279px;" %)**1**|=(% style="width: 106px;" %)**4** 480 +|**Value**|BAT|(% style="width:282px" %)((( 485 485 Temperature(DS18B20) 486 486 487 487 (PC13) 488 488 489 489 490 -)))|(% style="width: 85px" %)(((486 +)))|(% style="width:119px" %)((( 491 491 ADC 492 492 493 493 (PA4) 494 -)))|(% style="width: 186px" %)(((490 +)))|(% style="width:279px" %)((( 495 495 Digital in(PB15) & 496 496 497 497 Digital Interrupt(PA8) 498 -)))|(% style="width:10 0px" %)Weight494 +)))|(% style="width:106px" %)Weight 499 499 500 500 [[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"]] 501 501 ... ... @@ -535,30 +535,29 @@ 535 535 536 536 ==== 2.3.2.7 MOD~=7 (Three interrupt contact modes) ==== 537 537 538 -(% style="width:1108px" %) 539 539 |=((( 540 540 **Size(bytes)** 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;" %)2542 -|**Value**|BAT|( % style="width:188px" %)(((536 +)))|=**2**|=**2**|=**2**|=**1**|=**1**|=1|=2 537 +|**Value**|BAT|((( 543 543 Temperature(DS18B20) 544 544 545 545 (PC13) 546 -)))|( % style="width:83px" %)(((541 +)))|((( 547 547 ADC 548 548 549 549 (PA5) 550 -)))|( % style="width:184px" %)(((545 +)))|((( 551 551 Digital Interrupt1(PA8) 552 -)))| (% style="width:186px" %)Digital Interrupt2(PA4)|(% style="width:197px" %)Digital Interrupt3(PB15)|(% style="width:100px" %)Reserved547 +)))|Digital Interrupt2(PA4)|Digital Interrupt3(PB15)|Reserved 553 553 554 554 [[image:image-20230513111203-7.png||height="324" width="975"]] 555 555 556 556 ==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 557 557 558 -(% style="width:9 22px" %)553 +(% style="width:917px" %) 559 559 |=((( 560 560 **Size(bytes)** 561 -)))|=**2**|=(% style="width: 207px;" %)**2**|=(% style="width: 94px;" %)**2**|=(% style="width: 198px;" %)**1**|=(% style="width: 84px;" %)**2**|=(% style="width: 82px;" %)2556 +)))|=**2**|=(% style="width: 207px;" %)**2**|=(% style="width: 94px;" %)**2**|=(% style="width: 198px;" %)**1**|=(% style="width: 84px;" %)**2**|=(% style="width: 79px;" %)2 562 562 |**Value**|BAT|(% style="width:207px" %)((( 563 563 Temperature(DS18B20) 564 564 ... ... @@ -573,7 +573,7 @@ 573 573 ADC2 574 574 575 575 (PA5) 576 -)))|(% style="width: 82px" %)(((571 +)))|(% style="width:79px" %)((( 577 577 ADC3 578 578 579 579 (PA8) ... ... @@ -751,14 +751,14 @@ 751 751 752 752 The SDA and SCK are I2C interface lines. You can use these to connect to an I2C device and get the sensor data. 753 753 754 -We have made an example to show how to use the I2C interface to connect to the SHT20 /SHT31 Temperature and Humidity Sensor.749 +We have made an example to show how to use the I2C interface to connect to the SHT20 Temperature and Humidity Sensor. 755 755 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 /SHT31code in SN50_v3 will be a good reference.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. 757 757 758 758 Below is the connection to SHT20/ SHT31. The connection is as below: 759 759 760 760 761 -[[image:image-20230513103633-3.png||height=" 448" width="716"]]756 +[[image:image-20230513103633-3.png||height="636" width="1017"]] 762 762 763 763 The device will be able to get the I2C sensor data now and upload to IoT Server. 764 764 ... ... @@ -825,9 +825,9 @@ 825 825 826 826 MOD=1 support this sensor. The sensor value is in the 8^^th^^ and 9^^th^^ bytes. 827 827 828 -[[image:image-20230512172447-4.png||height=" 416" width="712"]]823 +[[image:image-20230512172447-4.png||height="593" width="1015"]] 829 829 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"]]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"]] 831 831 832 832 833 833 ==== 2.3.3.12 Working MOD ==== ... ... @@ -855,11 +855,9 @@ 855 855 856 856 In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from: 857 857 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]]853 +[[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B >>https://github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B]] 859 859 860 - 861 861 862 - 863 863 864 864 == 2.5 Frequency Plans == 865 865 ... ... @@ -901,6 +901,7 @@ 901 901 902 902 === 3.3.1 Set Transmit Interval Time === 903 903 897 + 904 904 Feature: Change LoRaWAN End Node Transmit Interval. 905 905 906 906 (% style="color:blue" %)**AT Command: AT+TDC** ... ... @@ -926,12 +926,9 @@ 926 926 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 927 927 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 928 928 929 -(% class="wikigeneratedid" %) 930 -=== === 931 - 932 932 === 3.3.2 Get Device Status === 933 933 934 -Send a LoRaWAN downlink to ask thedevicetosenditsstatus.925 +Send a LoRaWAN downlink to ask device send Alarm settings. 935 935 936 936 (% style="color:blue" %)**Downlink Payload: **(%%)0x26 01 937 937 ... ... @@ -940,6 +940,7 @@ 940 940 941 941 === 3.3.3 Set Interrupt Mode === 942 942 934 + 943 943 Feature, Set Interrupt mode for GPIO_EXIT. 944 944 945 945 (% style="color:blue" %)**AT Command: AT+INTMOD1,AT+INTMOD2,AT+INTMOD3** ... ... @@ -977,8 +977,6 @@ 977 977 * Example 4: Downlink Payload: 06000201 **~-~-->** AT+INTMOD3=1 978 978 979 979 (% class="wikigeneratedid" %) 980 -=== === 981 - 982 982 === 3.3.4 Set Power Output Duration === 983 983 984 984 Control the output duration 5V . Before each sampling, device will ... ... @@ -1008,45 +1008,34 @@ 1008 1008 1009 1009 The first and second bytes are the time to turn on. 1010 1010 1011 -* Example 1: Downlink Payload: 070000 1012 -* Example 2: Downlink Payload: 0701F4 1001 +* Example 1: Downlink Payload: 070000 **~-~-->** AT+5VT=0 1002 +* Example 2: Downlink Payload: 0701F4 **~-~-->** AT+5VT=500 1013 1013 1014 1014 (% class="wikigeneratedid" %) 1015 -=== === 1016 - 1017 1017 === 3.3.5 Set Weighing parameters === 1018 1018 1019 -Feature: Working mode 5 is effective, weightinitializationandweight factorsettingof HX711.1007 +Feature: Working mode 5 is effective, hair removal and setting of weight factor of HX711. 1020 1020 1021 1021 (% style="color:blue" %)**AT Command: AT+WEIGRE,AT+WEIGAP** 1022 1022 1023 1023 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 1024 1024 |=(% style="width: 154px;background-color:#D9E2F3" %)**Command Example**|=(% style="width: 196px;background-color:#D9E2F3" %)**Function**|=(% style="width: 157px;background-color:#D9E2F3" %)**Response** 1025 -|(% style="width:154px" %)AT+WEIGRE|(% style="width:196px" %)Weight is initialized to 0.|(% style="width:157px" %)OK 1026 -|(% style="width:154px" %)AT+WEIGAP=?|(% style="width:196px" %)400.0|(% style="width:157px" %)OK(default) 1027 -|(% style="width:154px" %)AT+WEIGAP=400.3|(% style="width:196px" %)Set the factor to 400.3.|(% style="width:157px" %)OK 1013 +|(% style="width:154px" %) |(% style="width:196px" %) |(% style="width:157px" %) 1014 +|(% style="width:154px" %) |(% style="width:196px" %) |(% style="width:157px" %) 1028 1028 1016 + 1029 1029 (% style="color:blue" %)**Downlink Command: 0x08** 1030 1030 1031 -Format: Command Code (0x08) followed by 2 bytes or 4 bytes. 1032 1032 1033 - UseAT+WEIGRE whenthefirstbyte is 1,only1byte.When it is2,use AT+WEIGAP, there are 3bytes.1020 +Format: Command Code (0x07) followed by 2 bytes. 1034 1034 1035 -The s econdandthird bytes aremultipliedby 10timestobethe AT+WEIGAP value.1022 +The first and second bytes are the time to turn on. 1036 1036 1037 -* Example 1: Downlink Payload: 0801 **~-~-->** AT+WEIGRE 1038 -* Example 2: Downlink Payload: 08020FA3 **~-~-->** AT+WEIGAP=400.3 1039 -* Example 3: Downlink Payload: 08020FA0 **~-~-->** AT+WEIGAP=400.0 1040 1040 1041 -(% class="wikigeneratedid" %) 1042 -=== === 1043 - 1044 1044 === 3.3.6 Set Digital pulse count value === 1045 1045 1046 1046 Feature: Set the pulse count value. 1047 1047 1048 -Count 1 is PA8 pin of mode 6 and mode 9. Count 2 is PA4 pin of mode 9. 1049 - 1050 1050 (% style="color:blue" %)**AT Command: AT+SETCNT** 1051 1051 1052 1052 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) ... ... @@ -1054,21 +1054,20 @@ 1054 1054 |(% style="width:154px" %)AT+SETCNT=1,100|(% style="width:196px" %)Initialize the count value 1 to 100.|(% style="width:157px" %)OK 1055 1055 |(% style="width:154px" %)AT+SETCNT=2,0|(% style="width:196px" %)Initialize the count value 2 to 0.|(% style="width:157px" %)OK 1056 1056 1036 + 1057 1057 (% style="color:blue" %)**Downlink Command: 0x09** 1058 1058 1039 + 1059 1059 Format: Command Code (0x09) followed by 5 bytes. 1060 1060 1061 1061 The first byte is to select which count value to initialize, and the next four bytes are the count value to be initialized. 1062 1062 1063 1063 * Example 1: Downlink Payload: 090100000000 **~-~-->** AT+SETCNT=1,0 1064 -* Example 2: Downlink Payload: 090200000 3E8**~-~-->**SETCNT=2,10001045 +* Example 2: Downlink Payload: 090200000000 **~-~-->** AT+5VT=500 1065 1065 1066 -(% class="wikigeneratedid" %) 1067 -=== === 1068 - 1069 1069 === 3.3.7 Set Workmode === 1070 1070 1071 -Feature: Switch working mode.1049 +Feature: switch working mode. 1072 1072 1073 1073 (% style="color:blue" %)**AT Command: AT+MOD** 1074 1074 ... ... @@ -1083,16 +1083,15 @@ 1083 1083 Attention:Take effect after ATZ 1084 1084 ))) 1085 1085 1064 + 1086 1086 (% style="color:blue" %)**Downlink Command: 0x0A** 1087 1087 1067 + 1088 1088 Format: Command Code (0x0A) followed by 1 bytes. 1089 1089 1090 1090 * Example 1: Downlink Payload: 0A01 **~-~-->** AT+MOD=1 1091 1091 * Example 2: Downlink Payload: 0A04 **~-~-->** AT+MOD=4 1092 1092 1093 -(% class="wikigeneratedid" %) 1094 -= = 1095 - 1096 1096 = 4. Battery & Power Consumption = 1097 1097 1098 1098
- image-20230513134006-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Saxer - Size
-
... ... @@ -1,1 +1,0 @@ 1 -1.9 MB - Content