Last modified by Xiaoling on 2025/04/09 17:53
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -36,9 +36,9 @@ 36 36 37 37 * LoRaWAN 1.0.3 Class A 38 38 * Ultra-low power consumption 39 -* 1 ~~ 3ExternalTemperatureProbesr39 +* External 3 meters SHT31 probe (For S31-LB) 40 40 * Measure range -55°C ~~ 125°C 41 -* Temperature alarm 41 +* Temperature & Humidity 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,10 +56,18 @@ 56 56 57 57 (% style="color:#037691" %)**Temperature Sensor:** 58 58 59 -* Dallas DS18B20 60 -* Range: -55 to + 125°C 61 -* Accuracy ±0.5°C (max ±2.0 °C). 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 62 62 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 + 63 63 (% style="color:#037691" %)**LoRa Spec:** 64 64 65 65 * Frequency Range, Band 1 (HF): 862 ~~ 1020 Mhz ... ... @@ -91,7 +91,7 @@ 91 91 == 1.5 Button & LEDs == 92 92 93 93 94 -[[image:1675071855856-879.png]] 102 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]] 95 95 96 96 97 97 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -105,7 +105,7 @@ 105 105 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 106 106 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. 107 107 ))) 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-LBis in Deep Sleep Mode.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 device is in Deep Sleep Mode. 109 109 110 110 == 1.6 BLE connection == 111 111 ... ... @@ -127,30 +127,19 @@ 127 127 128 128 (% border="1" cellspacing="10" style="background-color:#f7faff; width:510px" %) 129 129 |=(% style="width: 102px;" %)Model|=(% style="width: 190px;" %)Photo|=(% style="width: 297px;" %)Probe Info 130 -|(% style="width:102px" %)** D20-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((131 -1 x DS28B20Probe138 +|(% style="width:102px" %)**S31-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 139 +1 x SHT31 Probe 132 132 133 133 Cable Length : 2 meters 134 134 135 135 136 136 ))) 137 -|(% style="width:102px" %)** D22-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((138 - 2xDS28B20Probes145 +|(% style="width:102px" %)**S31B-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 146 +1 x SHT31 Probe 139 139 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]] 148 +Installed in device. 143 143 ))) 144 -|(% style="width:102px" %)((( 145 - **D23-LB** 146 -)))|(% style="width:190px" %) |(% style="width:297px" %)((( 147 -3 x DS28B20 Probes 148 148 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 - 154 154 (% style="display:none" %) 155 155 156 156 ... ... @@ -158,21 +158,21 @@ 158 158 == 1.8 Mechanical == 159 159 160 160 161 -[[image:1675143884058-338.png]] 158 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]] 162 162 163 163 164 -[[image:1675143899218-599.png]] 161 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]] 165 165 166 166 167 -[[image:1675143909447-639.png]] 164 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]] 168 168 169 169 170 -= 2. Configure D2x-LB to connect to LoRaWAN network =167 += 2. Configure S31x-LB to connect to LoRaWAN network = 171 171 172 172 == 2.1 How it works == 173 173 174 174 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 theD2x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.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 the S31x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes. 176 176 177 177 178 178 == 2.2 Quick guide to connect to LoRaWAN server (OTAA) == ... ... @@ -187,9 +187,9 @@ 187 187 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. 188 188 189 189 190 -(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from D2x-LB.187 +(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from S31x-LB. 191 191 192 -Each D2x-LB is shipped with a sticker with the default device EUI as below:189 +Each S31x-LB is shipped with a sticker with the default device EUI as below: 193 193 194 194 [[image:image-20230131134744-2.jpeg]] 195 195 ... ... @@ -218,11 +218,12 @@ 218 218 219 219 [[image:1675144157838-392.png]] 220 220 221 -(% style="color:blue" %)**Step 2:**(%%) Activate on D2x-LB 222 222 219 +(% style="color:blue" %)**Step 2:**(%%) Activate on S31x-LB 223 223 224 -Press the button for 5 seconds to activate the D2x-LB. 225 225 222 +Press the button for 5 seconds to activate the S31x-LB. 223 + 226 226 (% 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. 227 227 228 228 After join success, it will start to upload messages to TTN and you can see the messages in the panel. ... ... @@ -233,7 +233,7 @@ 233 233 === 2.3.1 Device Status, FPORT~=5 === 234 234 235 235 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.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. 237 237 238 238 The Payload format is as below. 239 239 ... ... @@ -248,7 +248,7 @@ 248 248 [[image:image-20230415153147-2.png||height="220" width="1120"]] 249 249 250 250 251 -(% style="color:#037691" %)**Sensor Model**(%%): For D2x-LB, this value is 0x19249 +(% style="color:#037691" %)**Sensor Model**(%%): For S31x-LB, this value is 0x0A 252 252 253 253 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version 254 254 ... ... @@ -304,52 +304,28 @@ 304 304 === 2.3.2 Sensor Data. FPORT~=2 === 305 305 306 306 307 -D 2x-LBwilluplinkbelow payloadvia FPORT=2after Joined LoRaWAN Network.305 +Sensor Data is uplink via FPORT=2 308 308 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:"]] 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:]] 320 +))) 325 325 326 326 327 -))) 328 328 329 - **Payloadper each model.**324 + 330 330 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"]] 332 332 333 - 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 - 353 353 ==== (% style="color:#4472c4" %)**Battery:**(%%) ==== 354 354 355 355 Sensor Battery Level. ... ... @@ -360,10 +360,8 @@ 360 360 361 361 362 362 363 -==== (% style="color:#4472c4" %)**Temperature RED or Temperature White:**(%%) ====337 +==== (% style="color:#4472c4" %)**Temperature:**(%%) ==== 364 364 365 -**This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White** 366 - 367 367 **Example**: 368 368 369 369 If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree ... ... @@ -373,42 +373,15 @@ 373 373 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 374 374 375 375 348 +==== **Humidity:** ==== 376 376 377 -==== (% style="color:#4472c4" %)**Temperature White:**(%%) ==== 378 378 351 +Read:0x(0197)=412 Value: 412 / 10=41.2, So 41.2% 379 379 380 -**This point to the Red probe in D22-LB/D23-LB** 381 381 354 +==== **Alarm Flag& MOD:** ==== 382 382 383 -**Example**: 384 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 - 409 -==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ==== 410 - 411 - 412 412 **Example:** 413 413 414 414 If payload & 0x01 = 0x01 **~-~->** This is an Alarm Message ... ... @@ -415,11 +415,11 @@ 415 415 416 416 If payload & 0x01 = 0x00 **~-~->** This is a normal uplink message, no alarm 417 417 363 +If payload >> 2 = 0x00 **~-~->** means MOD=1, This is a sampling uplink message 418 418 365 +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. 419 419 420 -==== ==== 421 421 422 - 423 423 == 2.4 Payload Decoder file == 424 424 425 425 ... ... @@ -428,7 +428,7 @@ 428 428 ))) 429 429 430 430 ((( 431 -In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: 376 +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]] 432 432 ))) 433 433 434 434