Changes for page PS-LB/LS -- LoRaWAN Air Water Pressure Sensor User Manual
Last modified by Xiaoling on 2025/04/27 10:31
Change comment:
Uploaded new attachment "image-20250117104847-4.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -626,133 +626,32 @@ 626 626 627 627 === 2.6.3 Poll sensor value === 628 628 629 + 629 629 Users can poll sensor values based on timestamps. Below is the downlink command. 630 630 631 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:470px" %) 632 -|=(% colspan="4" style="width: 160px; background-color:#4F81BD;color:white" %)**Downlink Command to poll Open/Close status (0x31)** 633 -|(% style="background-color:#f2f2f2; width:67px" %)**1byte**|(% style="background-color:#f2f2f2; width:145px" %)**4bytes**|(% style="background-color:#f2f2f2; width:133px" %)**4bytes**|(% style="background-color:#f2f2f2; width:163px" %)**1byte** 634 -|(% style="background-color:#f2f2f2; width:67px" %)31|(% style="background-color:#f2f2f2; width:145px" %)Timestamp start|(% style="background-color:#f2f2f2; width:133px" %)((( 635 -Timestamp end 636 -)))|(% style="background-color:#f2f2f2; width:163px" %)Uplink Interval 637 - 638 -Timestamp start and Timestamp end-use Unix TimeStamp format as mentioned above. Devices will reply with all data logs during this period, using the uplink interval. 639 - 640 -For example, downlink command[[image:image-20250117104812-1.png]] 641 - 642 -Is to check 2024/12/20 09:34:59 to 2024/12/20 14:34:59's data 643 - 644 -Uplink Internal =5s,means PS-LB will send one packet every 5s. range 5~~255s. 645 - 646 - 647 -=== 2.6.4 Datalog Uplink payload (FPORT~=3) === 648 - 649 - 650 -The Datalog uplinks will use below payload format. 651 - 652 -**Retrieval data payload:** 653 - 654 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %) 655 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( 656 -**Size(bytes)** 657 -)))|=(% style="width: 40px; background-color:#4F81BD;color:white" %)**2**|=(% style="width: 55px; background-color:#4F81BD;color:white" %)**2**|=(% style="width: 83px; background-color: rgb(79, 129, 189); color: white;" %)**2**|=(% style="width: 201px; background-color: rgb(79, 129, 189); color: white;" %)**1**|=(% style="width: 86px; background-color: rgb(79, 129, 189); color: white;" %)**4** 658 -|(% style="width:103px" %)Value|(% style="width:68px" %)((( 659 -Probe 660 - 661 -_mod 662 -)))|(% style="width:104px" %)((( 663 -VDC 664 - 665 -_intput_mV 666 -)))|(% style="width:83px" %)((( 667 -IDC 668 - 669 -_intput_mA 670 -)))|(% style="width:201px" %)((( 671 -IN1_pin_level& IN2_pin_level& Exti_pin_level&Exti_status 672 -)))|(% style="width:86px" %)Unix Time Stamp 673 - 674 -**IN1_pin_level & IN2_pin_level & Exti_pin_level & Exti_status:** 675 - 676 -[[image:image-20250117104847-4.png]] 677 - 678 - 679 -**No ACK Message**: 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for **PNACKMD=1** feature) 680 - 681 -**Poll Message Flag**: 1: This message is a poll message reply. 682 - 683 -* Poll Message Flag is set to 1. 684 - 685 -* Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands. 686 - 687 -For example, in US915 band, the max payload for different DR is: 688 - 689 -**a) DR0:** max is 11 bytes so one entry of data 690 - 691 -**b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 692 - 693 -**c) DR2:** total payload includes 11 entries of data 694 - 695 -**d) DR3: **total payload includes 22 entries of data. 696 - 697 -If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0 698 - 699 -**Example:** 700 - 701 -If PS-LB-NA has below data inside Flash: 702 - 703 -[[image:image-20250117104837-3.png]] 704 - 705 - 706 -If user sends below downlink command: 316788D9BF6788DB6305 707 - 708 -Where : Start time: 6788D9BF = time 25/1/16 10:04:47 709 - 710 - Stop time: 6788DB63 = time 25/1/16 10:11:47 711 - 712 - 713 -**PA-LB-NA will uplink this payload.** 714 - 715 -[[image:image-20250117104827-2.png]] 716 - 632 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:470px" %) 633 +|=(% colspan="4" style="width: 154px;background-color:#4F81BD;color:white" %)**Downlink Command to poll Open/Close status (0x31)** 634 +|(% style="background-color:#f2f2f2; width:70px" %)**1byte**|(% style="background-color:#f2f2f2; width:140px" %)**4bytes**|(% style="background-color:#f2f2f2; width:140px" %)((( 717 717 ((( 718 - 00001B620000406788D9BF 00000D130000406788D9FB 00000D120000406788DA37 00000D110000406788DA73 00000D100000406788DAAF 00000D100000406788DAEB 00000D0F0000406788DB27 00000D100000406788DB63636 +**4bytes** 719 719 ))) 720 720 721 -((( 722 -Where the first 11 bytes is for the first entry : 723 -))) 724 724 725 - (((726 - 00000D100000 40 6788DB63727 -))) 640 + 641 +)))|(% style="background-color:#f2f2f2; width:150px" %)**1byte** 642 +|(% style="background-color:#f2f2f2; width:70px" %)31|(% style="background-color:#f2f2f2; width:140px" %)Timestamp start|(% style="background-color:#f2f2f2; width:140px" %)Timestamp end|(% style="background-color:#f2f2f2; width:150px" %)Uplink Interval 728 728 729 -((( 730 -**Probe_mod **= 0x0000 = 0000 731 -))) 644 +Timestamp start and Timestamp end-use Unix TimeStamp format as mentioned above. Devices will reply with all data logs during this period, using the uplink interval. 732 732 733 -((( 734 -**VDC_intput_mV **= 0x0D10/1000=3.344mV 646 +For example, downlink command[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/WebHome/image-20220518162852-1.png?rev=1.1||alt="image-20220518162852-1.png"]] 735 735 736 -**IDC_intput_mA **= 0x0000/1000=0mA 737 -))) 648 +Is to check 2021/11/12 12:00:00 to 2021/11/12 15:00:00's data 738 738 739 -((( 740 -**IN1_pin_level **= (0x40& 0x08)? "High":"Low" = 0(Low) 650 +Uplink Internal =5s,means PS-LB will send one packet every 5s. range 5~~255s. 741 741 742 -**IN2_pin_level = (**0x40& 0x04)? "High":"Low" = 0(Low) 743 743 744 - **Exti_pin_level=(**0x40&0x02)?"High":"Low"=0(Low)653 +=== 2.6.4 Decoder in TTN V3 === 745 745 746 -**Exti_status = (**0x40& 0x01)? "True":"False" = 0(False) 747 -))) 748 - 749 -((( 750 -**Unix time** is 0x6788DB63 = 1737022307s = 2025/1/16 10:11:47 751 -))) 752 - 753 - 754 -=== 2.6.5 Decoder in TTN V3 === 755 - 756 756 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/WebHome/1652862574387-195.png?width=722&height=359&rev=1.1||alt="1652862574387-195.png" height="359" width="722"]] 757 757 758 758 Please check the decoder from this link: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]