Last modified by Mengting Qiu on 2025/07/01 15:58

From version 7.1
edited by Edwin Chen
on 2023/04/16 13:42
Change comment: There is no comment for this version
To version 1.1
edited by Edwin Chen
on 2023/04/16 12:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -12,24 +12,24 @@
12 12  
13 13  = 1. Introduction =
14 14  
15 -== 1.1 What is S31x-LB LoRaWAN Temperature & Humidity Sensor ==
15 +== 1.1 What is D2x-LB LoRaWAN Temperature Sensor ==
16 16  
17 17  
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.
18 +The Dragino D2x-LB is a (% style="color:blue" %)**LoRaWAN Temperature Sensor**(%%) for Internet of Things solution. D2x-LB has 5v and 12v output , 4~~20mA, 0~~30v input interface to power and get value from Analog Sensor. D2x-LB will convert the Analog Value to LoRaWAN wireless data and send to IoT platform via LoRaWAN gateway.
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 LoRa wireless technology used in D2x-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.
21 21  
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.
22 +The temperature sensor used in D2x-LB can (% style="color:blue" %)**measure -55°C ~~ 125°C with accuracy ±0.5°C (max ±2.0 °C)**(%%).
23 23  
24 -S31x-LB supports (% style="color:blue" %)**Temperature & Humdity alarm feature,**(%%) user can set temperature alarm for instant notice. S31x-LB supports Datalog feature, it can save the data when there is no LoRaWAN network and uplink when network recover.
24 +D2x-LB supports (% style="color:blue" %)**temperature alarm feature,**(%%) user can set temperature alarm for instant notice. D2x-LB supports Datalog feature, it can save the data when there is no LoRaWAN network and uplink when network recover.
25 25  
26 -S31x-LB has max 3 probes which measure maximum 3 temperature points.
26 +D2x-LB has max 3 probes which measure maximum 3 temperature points.
27 27  
28 -S31x-LB (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
28 +D2x-LB (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
29 29  
30 -S31x-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years.
30 +D2x-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years.
31 31  
32 -Each S31x-LB 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.
32 +Each D2x-LB 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.
33 33  
34 34  
35 35  == 1.2 ​Features ==
... ... @@ -36,9 +36,9 @@
36 36  
37 37  * LoRaWAN 1.0.3 Class A
38 38  * Ultra-low power consumption
39 -* External 3 meters SHT31 probe (For S31-LB)
39 +* 1 ~~ 3 External Temperature Probesr
40 40  * Measure range -55°C ~~ 125°C
41 -* Temperature & Humidity alarm
41 +* 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 device is 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 SHT31 Probe
130 +|(% 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 -1 x SHT31 Probe
137 +|(% 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 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.
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 0x0A
251 +(% 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,28 +302,52 @@
302 302  === 2.3.2  Sensor Data. FPORT~=2 ===
303 303  
304 304  
305 -Sensor Data is uplink via FPORT=2
307 +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:]]
320 -)))
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:"]]
321 321  
322 322  
327 +)))
323 323  
324 -
329 +**Payload per each model.**
325 325  
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"]]
326 326  
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 +
327 327  ==== (% style="color:#4472c4" %)**Battery:**(%%) ====
328 328  
329 329  Sensor Battery Level.
... ... @@ -334,8 +334,10 @@
334 334  
335 335  
336 336  
337 -==== (% style="color:#4472c4" %)**Temperature:**(%%) ====
363 +==== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ====
338 338  
365 +**This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White**
366 +
339 339  **Example**:
340 340  
341 341  If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -345,15 +345,42 @@
345 345  (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
346 346  
347 347  
348 -==== **Humidity:** ====
349 349  
377 +==== (% style="color:#4472c4" %)**Temperature White:**(%%) ====
350 350  
351 -Read:0x(0197)=412    Value:  412 / 10=41.2, So 41.2%
352 352  
380 +**This point to the Red probe in D22-LB/D23-LB**
353 353  
354 -==== **Alarm Flag& MOD:** ====
355 355  
383 +**Example**:
356 356  
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 +
357 357  **Example:**
358 358  
359 359  If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message
... ... @@ -360,11 +360,11 @@
360 360  
361 361  If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm
362 362  
363 -If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
364 364  
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.
366 366  
420 +==== ====
367 367  
422 +
368 368  == 2.4 Payload Decoder file ==
369 369  
370 370  
... ... @@ -373,7 +373,7 @@
373 373  )))
374 374  
375 375  (((
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]]
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]]
377 377  )))
378 378  
379 379  
... ... @@ -728,7 +728,8 @@
728 728  == 6.3 How to change the LoRa Frequency Bands/Region? ==
729 729  
730 730  
731 -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. ​
732 732  
733 733  
734 734  = 7. Order Info =