Last modified by Mengting Qiu on 2024/05/31 17:45
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -148,7 +148,6 @@ 148 148 149 149 150 150 151 - 152 152 == 1.7 BLE connection == 153 153 154 154 ... ... @@ -415,7 +415,7 @@ 415 415 == 2.3 Sensor Data. FPORT~=2 == 416 416 417 417 418 -D2x- LB will uplink below payload via FPORT=2 after Joined LoRaWAN Network.417 +D2x-NB will uplink below payload via FPORT=2 after Joined LoRaWAN Network. 419 419 420 420 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:520px" %) 421 421 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( ... ... @@ -442,7 +442,7 @@ 442 442 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/image-20220916152530-2.png?rev=1.1||alt="图片-20220916152530-2.png" height="240" width="901"]] 443 443 444 444 445 -[[image:image-20230524160233-2.png ||height="184" width="1173"]]444 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/image-20230524160233-2.png?width=1173&height=184&rev=1.1||alt="image-20230524160233-2.png"]] 446 446 447 447 448 448 ==== (% style="color:blue" %)**Decode corresponding probe color:**(%%) ==== ... ... @@ -476,7 +476,7 @@ 476 476 ==== (% style="color:blue" %)**Temperature RED or Temperature White :**(%%) ==== 477 477 478 478 479 -(% style="color:red" %)**This point to the Red probe in D20- LB or the probe of D22-LB/D23-LB White**478 +(% style="color:red" %)**This point to the Red probe in D20-NB or the probe of D22-NB/D23-NB White** 480 480 481 481 **Example**: 482 482 ... ... @@ -491,9 +491,9 @@ 491 491 ==== (% style="color:blue" %)**Temperature White:**(%%) ==== 492 492 493 493 494 -(% style="color:red" %)**This point to the Red probe in D22- LB/D23-LB.**493 +(% style="color:red" %)**This point to the Red probe in D22-NB/D23-NB.** 495 495 496 -(% style="color:red" %)**If it is D20- LB, the value is 0x7FFF, which is 327.67.**495 +(% style="color:red" %)**If it is D20-NB, the value is 0x7FFF, which is 327.67.** 497 497 498 498 499 499 **Example**: ... ... @@ -509,9 +509,9 @@ 509 509 ==== (% style="color:blue" %)**Temperature Black:**(%%) ==== 510 510 511 511 512 -(% style="color:red" %)**This point to the BLACK probe in D23- LB**511 +(% style="color:red" %)**This point to the BLACK probe in D23-NB** 513 513 514 -(% style="color:red" %)**If it is D20- LB/D22-LB, the value is 0x7FFF, which is 327.67.**513 +(% style="color:red" %)**If it is D20-NB/D22-NB, the value is 0x7FFF, which is 327.67.** 515 515 516 516 517 517 **Example**: ... ... @@ -543,7 +543,7 @@ 543 543 544 544 545 545 546 -== 2. 3Test Uplink and Change Update Interval ==545 +== 2.4 Test Uplink and Change Update Interval == 547 547 548 548 549 549 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8 ... ... @@ -555,7 +555,7 @@ 555 555 User can also push the button for more than 1 seconds to activate an uplink. 556 556 557 557 558 -== 2. 4Multi-Samplings and One uplink ==557 +== 2.5 Multi-Samplings and One uplink == 559 559 560 560 561 561 To save battery life, S31-NB will sample temperature & humidity data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by: ... ... @@ -569,33 +569,94 @@ 569 569 [[image:1692424376354-959.png]] 570 570 571 571 572 -== 2. 5Humidity andTemperaturealarmfunction==571 +== 2.6 Temperature Alarm Feature == 573 573 574 574 575 - Oneachsampling define by AT+TR ( default 900sor 15 minutes),whenthe value exceed the range, itwilltriggeranAlarmand immediately sends auplink.574 +D2x-NB work flow with Alarm feature. 576 576 576 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/image-20220623090437-1.png?rev=1.1||alt="图片-20220623090437-1.png"]] 577 577 578 -(% style="color:blue" %)**AT Commands:** 579 579 580 - (%style="color:#037691"%)**AT+ SHHUM=min,max**579 +=== 3.3.3 Set Alarm Thredhold === 581 581 582 -Example: AT+ SHHUM=50,80 ~/~/ Alarm when humidity lower than 50 or higher than 80. 583 583 582 +(% style="color:blue" %)**1. Set for All Probes:** 584 584 585 -(% style="color:#037691" %)**AT+ SHTEMP=min,max**584 +(% style="color:#037691" %)**AT+18ALARM=min,max** 586 586 587 -Example: AT+ SHTEMP=20,30 ~/~/ Alarm when temperature lower than 20 or higher than 30 586 +* When min=0, and max≠0, Alarm trigger when higher than max 587 +* When min≠0, and max=0, Alarm trigger when lower than min 588 +* When min≠0 and max≠0, Alarm trigger when higher than max or lower than min 588 588 590 +**Example:** 589 589 590 - (%style="color:red"%)**Notice:**592 + AT+18ALARM=-10,30 ~/~/ Alarm when < -10 or higher than 30. 591 591 592 -* To disable Alarm, user can set min and max to same value , such as (% style="color:#037691" %)**AT+SHTEMP=0,0.** 593 593 594 -* If user only want to send only min or max, user can set the alarm to a value that device won’t reach. For example:(% style="color:#037691" %)**AT+SHTEMP=-80,0.**595 +* (% style="color:blue" %)**Downlink Payload:** 595 595 596 - ==2.6Trggieranuplink by external interrupt==597 +0x(0B F6 1E) ~/~/ Same as AT+18ALARM=-10,30 597 597 599 +(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10) 598 598 601 + 602 +(% style="color:blue" %)**2. Set for Separate Probe:** 603 + 604 +(% style="color:#037691" %)**AT+18ALARM=min,max,index** 605 + 606 +Index: 607 + 608 +* 1: Temperature_Red 609 +* 2: Temperature_White 610 +* 3: Temperature_Black 611 + 612 +**Example:** 613 + 614 + AT+18ALARM=-10,30,1 ~/~/ Alarm when temperature_red < -10 or higher than 30. 615 + 616 + 617 +* (% style="color:blue" %)**Downlink Payload:** 618 + 619 +0x(0B F6 1E 01) ~/~/ Same as AT+18ALARM=-10,30,1 620 + 621 +(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10) 622 + 623 + 624 +=== 3.3.4 Set Alarm Interval === 625 + 626 + 627 +The shortest time of two Alarm packet. (unit: min) 628 + 629 +* (% style="color:blue" %)**AT Command:** 630 + 631 +AT+ATDC=30 ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes. 632 + 633 + 634 +* (% style="color:blue" %)**Downlink Payload:** 635 + 636 +0x(0D 00 1E) **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes 637 + 638 + 639 +=== 3.3.5 Get Alarm settings === 640 + 641 + 642 +Send a LoRaWAN downlink to ask device send Alarm settings. 643 + 644 +* (% style="color:#037691" %)**Downlink Payload: **(%%)0x0E 01 645 + 646 +**Example:** 647 + 648 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/1655948182791-225.png?rev=1.1||alt="1655948182791-225.png"]] 649 + 650 + 651 +**Explain:** 652 + 653 +* Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message. 654 + 655 + 656 +== 2.7 Trggier an uplink by external interrupt == 657 + 658 + 599 599 S31-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets. 600 600 601 601 (% style="color:blue" %)**AT command:** ... ... @@ -610,6 +610,9 @@ 610 610 611 611 * (% style="color:#037691" %)**AT+INTMOD=3 **(%%) ~/~/ Trigger by rising edge 612 612 673 + 674 + 675 + 613 613 = 3. Configure D2x-NB = 614 614 615 615 == 3.1 Configure Methods ==