Last modified by Mengting Qiu on 2025/07/01 15:58
From version 76.9
edited by Xiaoling
on 2024/01/15 09:33
on 2024/01/15 09:33
Change comment:
There is no comment for this version
To version 78.1
edited by Bei Jinggeng
on 2024/12/05 11:36
on 2024/12/05 11:36
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -33,7 +33,7 @@ 33 33 34 34 S31x-LB/LS (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use. 35 35 36 -S31x-LB/LS is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%) or (% style="color:blue" %)**solar powered + li-on battery**(%%) it is designed for long term use up to 5 years.36 +S31x-LB/LS is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%) or (% style="color:blue" %)**solar powered + Li-ion battery**(%%) it is designed for long term use up to 5 years. 37 37 38 38 Each S31x-LB/LS is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on. 39 39 ... ... @@ -51,8 +51,8 @@ 51 51 * Support wireless OTA update firmware 52 52 * Uplink on periodically 53 53 * Downlink to change configure 54 -* 8 8500mAh Li/SOCl2 Battery (S31/S31B-LB)55 -* Solar panel + 3000mAh Li-on battery (S31/S31B-LS) 54 +* 8500mAh Li/SOCl2 Battery (S31/S31B-LB) 55 +* Solar panel + 3000mAh Li-ion battery (S31/S31B-LS) 56 56 57 57 == 1.3 Specification == 58 58 ... ... @@ -109,8 +109,8 @@ 109 109 110 110 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240103160425-4.png?rev=1.1||alt="image-20240103160425-4.png"]] 111 111 112 -(% border="1" cellspacing=" 4" style="background-color:#f2f2f2; width:510px" %)113 -|=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 22 5px;background-color:#4F81BD;color:white" %)**Action**112 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 113 +|=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action** 114 114 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)((( 115 115 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. 116 116 Meanwhile, BLE module will be active and user can connect via BLE to configure device. ... ... @@ -139,13 +139,15 @@ 139 139 140 140 == 1.7 Pin Definitions == 141 141 142 -[[image:http://8.211.40.43/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230610163213-1.png?width=699&height=404&rev=1.1||alt="image-20230610163213-1.png"]] 143 143 144 144 144 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/image-20240926134323-1.png?rev=1.1||alt="image-20240926134323-1.png"]] 145 + 146 + 145 145 == 1.8 Hardware Variant == 146 146 147 147 148 -(% border="1" cellspacing=" 5" style="width:461.818px" %)150 +(% border="1" cellspacing="3" style="width:460px" %) 149 149 |=(% style="width: 102px;background-color:#4F81BD;color:white" %)Model|=(% style="width: 182px; background-color:#4F81BD;color:white" %)Photo|=(% style="width: 176px; background-color:#4F81BD;color:white" %)Probe Info 150 150 |(% style="width:102px" %)((( 151 151 S31-LB/LS ... ... @@ -239,10 +239,8 @@ 239 239 240 240 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-6.png?width=744&height=485&rev=1.1||alt="图片-20220611161308-6.png"]] 241 241 242 - 243 243 (% style="color:blue" %)**Step 2:**(%%) Activate on S31x-LB/LS 244 244 245 - 246 246 Press the button for 5 seconds to activate the S31x-LB/LS. 247 247 248 248 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. ... ... @@ -259,8 +259,7 @@ 259 259 260 260 The Payload format is as below. 261 261 262 - 263 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 262 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 264 264 |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)** 265 265 |(% style="width:103px" %)**Size (bytes)**|(% style="width:72px" %)**1**|**2**|(% style="width:91px" %)**1**|(% style="width:86px" %)**1**|(% style="width:44px" %)**2** 266 266 |(% style="width:103px" %)Value|(% style="width:72px" %)Sensor Model|Firmware Version|(% style="width:91px" %)Frequency Band|(% style="width:86px" %)Sub-band|(% style="width:44px" %)BAT ... ... @@ -328,7 +328,7 @@ 328 328 329 329 Sensor Data is uplink via FPORT=2 330 330 331 -(% border="1" cellspacing=" 5" style="background-color:#f2f2f2; width:500px" %)330 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %) 332 332 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( 333 333 **Size(bytes)** 334 334 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)2|=(% style="width: 90px;background-color:#4F81BD;color:white" %)4|=(% style="width: 150px; background-color: #4F81BD;color:white" %)1|=(% style="width: 80px; background-color: #4F81BD;color:white" %)**2**|=(% style="width: 80px; background-color: #4F81BD;color:white" %)2 ... ... @@ -364,18 +364,16 @@ 364 364 365 365 If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 366 366 367 -(FF3F & 8000 :Judge whether the highest bit is 1, when the highest bit is 1, it is negative)366 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 368 368 369 369 370 370 ==== (% style="color:#4472c4" %)**Humidity**(%%) ==== 371 371 372 - 373 373 Read:0x(0197)=412 Value: 412 / 10=41.2, So 41.2% 374 374 375 375 376 376 ==== (% style="color:#4472c4" %)**Alarm Flag & MOD & Level of PA8**(%%) ==== 377 377 378 - 379 379 **Example:** 380 380 381 381 If payload & 0x01 = 0x01 **~-~->** This is an Alarm Message.It means that the temperature and humidity exceed the alarm value or trigger an interrupt. ... ... @@ -410,7 +410,7 @@ 410 410 === 2.5.1 Ways to get datalog via LoRaWAN === 411 411 412 412 413 -Set [[PNACKMD=1>>||anchor="H2.5.4DatalogUplinkpayload28FPORT3D329"]], S31x-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network,S31x-LB/LS will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.410 +Set PNACKMD=1, S31x-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network,S31x-LB/LS will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery. 414 414 415 415 * ((( 416 416 a) S31x-LB/LS will do an ACK check for data records sending to make sure every data arrive server. ... ... @@ -419,11 +419,6 @@ 419 419 b) S31x-LB/LS will send data in **CONFIRMED Mode** when PNACKMD=1, but S31x-LB/LS won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if S31x-LB/LS gets a ACK, S31x-LB/LS will consider there is a network connection and resend all NONE-ACK messages. 420 420 ))) 421 421 422 -Below is the typical case for the auto-update datalog feature (Set PNACKMD=1) 423 - 424 -[[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-20220703111700-2.png?width=1119&height=381&rev=1.1||alt="图片-20220703111700-2.png" height="381" width="1119"]] 425 - 426 - 427 427 === 2.5.2 Unix TimeStamp === 428 428 429 429 ... ... @@ -458,7 +458,7 @@ 458 458 459 459 **Retrieval data payload:** 460 460 461 -(% border="1" cellspacing=" 5" style="background-color:#f2f2f2; width:500px" %)453 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %) 462 462 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( 463 463 **Size(bytes)** 464 464 )))|=(% style="width: 40px; background-color:#4F81BD;color:white" %)**2**|=(% style="width: 55px; background-color:#4F81BD;color:white" %)**2**|=(% style="width: 65px; background-color:#4F81BD;color:white" %)**2**|=(% style="width: 180px; background-color:#4F81BD;color:white" %)**1**|=(% style="width: 100px; background-color:#4F81BD;color:white" %)**4** ... ... @@ -468,10 +468,6 @@ 468 468 ((( 469 469 Humidity 470 470 ))) 471 - 472 -((( 473 - 474 -))) 475 475 )))|(% style="width:87px" %)((( 476 476 Temperature 477 477 )))|(% style="width:178px" %)((( ... ... @@ -613,7 +613,7 @@ 613 613 614 614 (% style="color:blue" %)**AT Command: AT+TDC** 615 615 616 -(% border="1" cellspacing=" 4" style="background-color:#f2f2f2; width:510px" %)604 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 617 617 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response** 618 618 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|((( 619 619 30000 ... ... @@ -726,7 +726,7 @@ 726 726 727 727 (% style="color:blue" %)**AT Command: AT+INTMOD** 728 728 729 -(% border="1" cellspacing=" 4" style="background-color:#f2f2f2; width:510px" %)717 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 730 730 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response** 731 731 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)((( 732 732 0 ... ... @@ -763,7 +763,7 @@ 763 763 764 764 (% style="color:blue" %)**AT Command: AT+5VT** 765 765 766 -(% border="1" cellspacing=" 4" style="background-color:#f2f2f2; width:510px" %)754 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 767 767 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response** 768 768 |(% style="width:154px" %)AT+5VT=?|(% style="width:196px" %)Show 5V open time.|(% style="width:157px" %)0 (default) 769 769 OK ... ... @@ -778,6 +778,91 @@ 778 778 * Example 1: Downlink Payload: 070000 **~-~-->** AT+5VT=0 779 779 * Example 2: Downlink Payload: 0701F4 **~-~-->** AT+5VT=500 780 780 769 +=== 3.3.9 Print data entries base on page === 770 + 771 + 772 +Feature: Print the sector data from start page to stop page (max is 416 pages). 773 + 774 +(% style="color:#4f81bd" %)**AT Command: AT+PDTA** 775 + 776 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 777 +|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 778 +|(% style="width:156px" %)((( 779 +AT+PDTA=1,3 780 +Print page 1 to 3 781 +)))|(% style="width:311px" %)((( 782 +8019500 19/6/26 16:48 1 2992 sht temp=28.21 sht hum=71.5 ds temp=27.31 783 +8019510 19/6/26 16:53 1 2994 sht temp=27.64 sht hum=69.3 ds temp=26.93 784 +8019520 19/6/26 16:58 1 2996 sht temp=28.39 sht hum=72.0 ds temp=27.06 785 +8019530 19/6/26 17:03 1 2996 sht temp=27.97 sht hum=70.4 ds temp=27.12 786 +8019540 19/6/26 17:08 1 2996 sht temp=27.80 sht hum=72.9 ds temp=27.06 787 +8019550 19/6/26 17:13 1 2998 sht temp=27.30 sht hum=72.4 ds temp=26.68 788 +8019560 19/6/26 17:22 1 2992 sht temp=26.27 sht hum=62.3 ds temp=26.56 789 +8019570 790 +8019580 791 +8019590 792 +80195A0 793 +80195B0 794 +80195C0 795 +80195D0 796 +80195E0 797 +80195F0 798 + 799 +OK 800 +))) 801 + 802 +(% style="color:#4f81bd" %)**Downlink Command:** 803 + 804 +No downlink commands for feature 805 + 806 + 807 +=== 3.3.10 Print last few data entries === 808 + 809 + 810 +Feature: Print the last few data entries 811 + 812 +(% style="color:#4f81bd" %)**AT Command: AT+PLDTA** 813 + 814 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 815 +|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 816 +|(% style="width:156px" %)((( 817 +AT+PLDTA=5 818 +Print last 5 entries 819 +)))|(% style="width:311px" %)((( 820 +Stop Tx and RTP events when read sensor data 821 +1 19/6/26 13:59 1 3005 sht temp=27.09 sht hum=79.5 ds temp=26.75 822 +2 19/6/26 14:04 1 3007 sht temp=26.65 sht hum=74.8 ds temp=26.43 823 +3 19/6/26 14:09 1 3007 sht temp=26.91 sht hum=77.9 ds temp=26.56 824 +4 19/6/26 14:15 1 3007 sht temp=26.93 sht hum=76.7 ds temp=26.75 825 +5 19/6/26 14:20 1 3007 sht temp=26.78 sht hum=76.6 ds temp=26.43 826 +Start Tx and RTP events 827 +OK 828 +))) 829 + 830 +(% style="color:#4f81bd" %)**Downlink Command:** 831 + 832 +No downlink commands for feature 833 + 834 + 835 +== 4.13 Clear Flash Record == 836 + 837 + 838 +Feature: Clear flash storage for data log feature. 839 + 840 +(% style="color:#4f81bd" %)**AT Command: AT+CLRDTA** 841 + 842 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %) 843 +|(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:137px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:209px" %)**Response** 844 +|(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)((( 845 +Clear all stored sensor data… 846 + 847 +OK 848 +))) 849 + 850 +(% style="color:#4f81bd" %)**Downlink Command: 0xA3** 851 + 852 +* Example: 0xA301 ~/~/ Same as AT+CLRDTA 853 + 781 781 = 4. Battery & Power Consumption = 782 782 783 783