Last modified by Mengting Qiu on 2025/07/01 15:58
From version 8.1
edited by Edwin Chen
on 2023/04/16 13:43
on 2023/04/16 13:43
Change comment:
There is no comment for this version
To version 2.1
edited by Edwin Chen
on 2023/04/16 13:05
on 2023/04/16 13:05
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -17,7 +17,7 @@ 17 17 18 18 The Dragino S31x-LB is a (% style="color:blue" %)**LoRaWAN Temperature and Humidity Sensor**(%%) for Internet of Things solution. It is used to measure the (% style="color:blue" %)**surrounding environment temperature and relative air humidity precisely**(%%), and then upload to IoT server via LoRaWAN wireless protocol. 19 19 20 -The temperature & humidity sensor used in S31x-LB is SHT31, which is fully calibrated, linearized, and temperature compensated digital output from Sensirion, it provides a strong reliability and long-term stability. The SHT31 is fixed in a (% style="color:blue" %)**waterproof anti-condensation casing**(%%)for long term use.20 +The temperature & humidity sensor used in S31x-LB is SHT31, which is fully calibrated, linearized, and temperature compensated digital output from Sensirion, it provides a strong reliability and long-term stability. The SHT31 is fixed in a **waterproof anti-condensation casing **for long term use. 21 21 22 22 The LoRa wireless technology used in S31x-LB allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. 23 23 ... ... @@ -36,9 +36,9 @@ 36 36 37 37 * LoRaWAN 1.0.3 Class A 38 38 * Ultra-low power consumption 39 -* External 3metersSHT31 probe(ForS31-LB)39 +* 1 ~~ 3 External Temperature Probesr 40 40 * Measure range -55°C ~~ 125°C 41 -* Temperature & Humidityalarm41 +* Temperature alarm 42 42 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 43 43 * Support Bluetooth v5.1 and LoRaWAN remote configure 44 44 * Support wireless OTA update firmware ... ... @@ -56,18 +56,10 @@ 56 56 57 57 (% style="color:#037691" %)**Temperature Sensor:** 58 58 59 -* Range: -40 to + 80°C 60 -* Accuracy: ±0.2 @ 0-90 °C 61 -* Resolution: 0.1°C 62 -* Long Term Shift: <0.03 °C/yr 59 +* Dallas DS18B20 60 +* Range: -55 to + 125°C 61 +* Accuracy ±0.5°C (max ±2.0 °C). 63 63 64 -(% style="color:#037691" %)**Humidity Sensor: ** 65 - 66 -* Range: 0 ~~ 99.9% RH 67 -* Accuracy: ± 2%RH ( 0 ~~ 100%RH) 68 -* Resolution: 0.01% RH 69 -* Long Term Shift: <0.25 %RH/yr 70 - 71 71 (% style="color:#037691" %)**LoRa Spec:** 72 72 73 73 * Frequency Range, Band 1 (HF): 862 ~~ 1020 Mhz ... ... @@ -99,7 +99,7 @@ 99 99 == 1.5 Button & LEDs == 100 100 101 101 102 -[[image: Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]94 +[[image:1675071855856-879.png]] 103 103 104 104 105 105 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -113,7 +113,7 @@ 113 113 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 114 114 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network. 115 115 ))) 116 -|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means deviceis in Deep Sleep Mode.108 +|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means D2x-LB is in Deep Sleep Mode. 117 117 118 118 == 1.6 BLE connection == 119 119 ... ... @@ -135,19 +135,30 @@ 135 135 136 136 (% border="1" cellspacing="10" style="background-color:#f7faff; width:510px" %) 137 137 |=(% style="width: 102px;" %)Model|=(% style="width: 190px;" %)Photo|=(% style="width: 297px;" %)Probe Info 138 -|(% style="width:102px" %)** S31-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((139 -1 x S HT31Probe130 +|(% style="width:102px" %)**D20-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 131 +1 x DS28B20 Probe 140 140 141 141 Cable Length : 2 meters 142 142 143 143 144 144 ))) 145 -|(% style="width:102px" %)** S31B-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((146 - 1x SHT31Probe137 +|(% style="width:102px" %)**D22-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 138 +2 x DS28B20 Probes 147 147 148 -Installed in device. 140 +Cable lengths total 1.5meters per probe 141 + 142 +Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K21G-210811.pdf]] 149 149 ))) 144 +|(% style="width:102px" %)((( 145 + **D23-LB** 146 +)))|(% style="width:190px" %) |(% style="width:297px" %)((( 147 +3 x DS28B20 Probes 150 150 149 +Cable lengths total 1.5meters per probe 150 + 151 +Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K31G-210811.pdf]] 152 +))) 153 + 151 151 (% style="display:none" %) 152 152 153 153 ... ... @@ -155,21 +155,21 @@ 155 155 == 1.8 Mechanical == 156 156 157 157 158 -[[image: Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]]161 +[[image:1675143884058-338.png]] 159 159 160 160 161 -[[image: Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]]164 +[[image:1675143899218-599.png]] 162 162 163 163 164 -[[image: Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]]167 +[[image:1675143909447-639.png]] 165 165 166 166 167 -= 2. Configure S31x-LB to connect to LoRaWAN network =170 += 2. Configure D2x-LB to connect to LoRaWAN network = 168 168 169 169 == 2.1 How it works == 170 170 171 171 172 -The S31x-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate theS31x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.175 +The D2x-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the D2x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes. 173 173 174 174 175 175 == 2.2 Quick guide to connect to LoRaWAN server (OTAA) == ... ... @@ -184,9 +184,9 @@ 184 184 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server. 185 185 186 186 187 -(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from S31x-LB.190 +(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from D2x-LB. 188 188 189 -Each S31x-LB is shipped with a sticker with the default device EUI as below:192 +Each D2x-LB is shipped with a sticker with the default device EUI as below: 190 190 191 191 [[image:image-20230131134744-2.jpeg]] 192 192 ... ... @@ -215,12 +215,11 @@ 215 215 216 216 [[image:1675144157838-392.png]] 217 217 221 +(% style="color:blue" %)**Step 2:**(%%) Activate on D2x-LB 218 218 219 -(% style="color:blue" %)**Step 2:**(%%) Activate on S31x-LB 220 220 224 +Press the button for 5 seconds to activate the D2x-LB. 221 221 222 -Press the button for 5 seconds to activate the S31x-LB. 223 - 224 224 (% 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. 225 225 226 226 After join success, it will start to upload messages to TTN and you can see the messages in the panel. ... ... @@ -231,7 +231,7 @@ 231 231 === 2.3.1 Device Status, FPORT~=5 === 232 232 233 233 234 -Users can use the downlink command(**0x26 01**) to ask S31x-LB to send device configure detail, include device configure status.S31x-LB will uplink a payload via FPort=5 to server.236 +Users can use the downlink command(**0x26 01**) to ask D2x-LB to send device configure detail, include device configure status. D2x-LB will uplink a payload via FPort=5 to server. 235 235 236 236 The Payload format is as below. 237 237 ... ... @@ -246,7 +246,7 @@ 246 246 [[image:image-20230415153147-2.png||height="220" width="1120"]] 247 247 248 248 249 -(% style="color:#037691" %)**Sensor Model**(%%): For S31x-LB, this value is 0x0A251 +(% style="color:#037691" %)**Sensor Model**(%%): For D2x-LB, this value is 0x19 250 250 251 251 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version 252 252 ... ... @@ -302,26 +302,52 @@ 302 302 === 2.3.2 Sensor Data. FPORT~=2 === 303 303 304 304 305 - SensorDataisuplink via FPORT=2307 +D2x-LB will uplink below payload via FPORT=2 after Joined LoRaWAN Network. 306 306 307 -|=((( 308 -**Size(bytes)** 309 -)))|=2|=4|=1|=**2**|=2 310 -|**Value**|((( 311 -[[Battery>>path:#HBattery:]] 312 -)))|((( 313 -[[Unix TimeStamp>>path:#H2.4.1UnixTimeStamp]] 314 -)))|((( 315 -[[Alarm Flag>>path:#HAlarmFlag26MOD:]] 316 -)))|((( 317 -[[Temperature>>path:#HTemperature:]] 318 -)))|((( 319 -[[Humidity>>path:#HHumidity:]] 309 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:500px" %) 310 +|=(% style="width: 62.5px;" %)((( 311 +**Size (bytes)** 312 +)))|=(% style="width: 60px;" %)2|=(% style="width: 120px;" %)2|=(% style="width: 60px;" %)2|=(% style="width: 65px;" %)1|=(% style="width: 65px;" %)**2**|=(% style="width: 65px;" %)2 313 +|(% style="width:65px" %)**Value**|((( 314 +[[Battery>>||anchor="HBattery:"]] 315 +)))|(% style="width:91px" %)((( 316 +[[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]] 317 +)))|(% style="width:61px" %)((( 318 +ignore 319 +)))|(% style="width:91px" %)((( 320 +[[Alarm Flag>>||anchor="HAlarmFlag26MOD:"]] 321 +)))|(% style="width:99px" %)((( 322 +[[Temp_White>>||anchor="HTemperatureWhite:"]] 323 +)))|(% style="width:97px" %)((( 324 +[[Temp_Black>>||anchor="HTemperatureBlack:"]] 325 + 326 + 320 320 ))) 321 321 329 +**Payload per each model.** 322 322 331 +[[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="image-20220916152530-2.png" height="240" width="901"]] 323 323 324 324 334 +[[image:image-20230415154139-3.png||height="215" width="1179"]] 335 + 336 + 337 +==== (% style="color:#4472c4" %)**Decode corresponding probe color:**(%%) ==== 338 + 339 +**D20:** 340 + 341 +Red <~-~-> C1 342 + 343 +**D22:** 344 + 345 +White <~-~-> C1 Red <~-~-> C2 346 + 347 +**D23:** 348 + 349 +White <~-~->C1 Red <~-~-> C2 Black <~-~-> C3 350 + 351 + 352 + 325 325 ==== (% style="color:#4472c4" %)**Battery:**(%%) ==== 326 326 327 327 Sensor Battery Level. ... ... @@ -332,8 +332,10 @@ 332 332 333 333 334 334 335 -==== (% style="color:#4472c4" %)**Temperature:**(%%) ==== 363 +==== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ==== 336 336 365 +**This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White** 366 + 337 337 **Example**: 338 338 339 339 If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree ... ... @@ -343,12 +343,39 @@ 343 343 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 344 344 345 345 346 -==== (% style="color:#4472c4" %)**Humidity:**(%%) ==== 347 347 377 +==== (% style="color:#4472c4" %)**Temperature White:**(%%) ==== 348 348 349 -Read:0x(0197)=412 Value: 412 / 10=41.2, So 41.2% 350 350 380 +**This point to the Red probe in D22-LB/D23-LB** 351 351 382 + 383 +**Example**: 384 + 385 +If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree 386 + 387 +If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 388 + 389 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 390 + 391 + 392 + 393 +==== (% style="color:#4472c4" %)**Temperature Black:**(%%) ==== 394 + 395 + 396 +**This point to the BLACK probe in D23-LB** 397 + 398 + 399 +**Example**: 400 + 401 +If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree 402 + 403 +If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 404 + 405 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 406 + 407 + 408 + 352 352 ==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ==== 353 353 354 354 ... ... @@ -358,16 +358,21 @@ 358 358 359 359 If payload & 0x01 = 0x00 **~-~->** This is a normal uplink message, no alarm 360 360 361 -If payload >> 2 = 0x00 **~-~->** means MOD=1, This is a sampling uplink message 362 362 363 -If payload >> 2 = 0x31 **~-~->** means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#HPolltheAlarmsettings:]] for detail. 364 364 420 +==== ==== 365 365 422 + 366 366 == 2.4 Payload Decoder file == 367 367 425 + 426 +((( 368 368 In TTN, use can add a custom payload so it shows friendly. 428 +))) 369 369 370 -In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: [[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]] 430 +((( 431 +In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]] 432 +))) 371 371 372 372 373 373 == 2.5 Datalog Feature == ... ... @@ -721,7 +721,8 @@ 721 721 == 6.3 How to change the LoRa Frequency Bands/Region? == 722 722 723 723 724 -Each LoRaWAN frequency bands has different firmware. User can update the device's firmware to the corresponding frequency band to change region. 786 +You can follow the instructions for [[how to upgrade image>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]. 787 +When downloading the images, choose the required image file for download. 725 725 726 726 727 727 = 7. Order Info =