<
From version < 8.1 >
edited by Edwin Chen
on 2023/04/16 13:43
To version < 6.1 >
edited by Edwin Chen
on 2023/04/16 13:24
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -115,6 +115,7 @@
115 115  )))
116 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.
117 117  
118 +
118 118  == 1.6 BLE connection ==
119 119  
120 120  
... ... @@ -302,26 +302,52 @@
302 302  === 2.3.2  Sensor Data. FPORT~=2 ===
303 303  
304 304  
305 -Sensor Data is uplink via FPORT=2
306 +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:]]
308 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:500px" %)
309 +|=(% style="width: 62.5px;" %)(((
310 +**Size (bytes)**
311 +)))|=(% style="width: 60px;" %)2|=(% style="width: 120px;" %)2|=(% style="width: 60px;" %)2|=(% style="width: 65px;" %)1|=(% style="width: 65px;" %)**2**|=(% style="width: 65px;" %)2
312 +|(% style="width:65px" %)**Value**|(((
313 +[[Battery>>||anchor="HBattery:"]]
314 +)))|(% style="width:91px" %)(((
315 +[[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]]
316 +)))|(% style="width:61px" %)(((
317 +ignore
318 +)))|(% style="width:91px" %)(((
319 +[[Alarm Flag>>||anchor="HAlarmFlag26MOD:"]]
320 +)))|(% style="width:99px" %)(((
321 +[[Temp_White>>||anchor="HTemperatureWhite:"]]
322 +)))|(% style="width:97px" %)(((
323 +[[Temp_Black>>||anchor="HTemperatureBlack:"]]
324 +
325 +
320 320  )))
321 321  
328 +**Payload per each model.**
322 322  
330 +[[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  
333 +[[image:image-20230415154139-3.png||height="215" width="1179"]]
334 +
335 +
336 +==== (% style="color:#4472c4" %)**Decode corresponding probe color:**(%%) ====
337 +
338 +**D20:**
339 +
340 +Red <~-~-> C1
341 +
342 +**D22:**
343 +
344 +White <~-~-> C1 Red <~-~-> C2
345 +
346 +**D23:**
347 +
348 +White <~-~->C1 Red <~-~-> C2 Black <~-~-> C3
349 +
350 +
351 +
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:**(%%) ====
362 +==== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ====
336 336  
364 +**This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White**
365 +
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  
376 +==== (% style="color:#4472c4" %)**Temperature White:**(%%) ====
348 348  
349 -Read:0x(0197)=412    Value:  412 / 10=41.2, So 41.2%
350 350  
379 +**This point to the Red probe in D22-LB/D23-LB**
351 351  
381 +
382 +**Example**:
383 +
384 +If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
385 +
386 +If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
387 +
388 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
389 +
390 +
391 +
392 +==== (% style="color:#4472c4" %)**Temperature Black:**(%%) ====
393 +
394 +
395 +**This point to the BLACK probe in D23-LB**
396 +
397 +
398 +**Example**:
399 +
400 +If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
401 +
402 +If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
403 +
404 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
405 +
406 +
407 +
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  
419 +==== ====
365 365  
421 +
366 366  == 2.4 Payload Decoder file ==
367 367  
424 +
425 +(((
368 368  In TTN, use can add a custom payload so it shows friendly. 
427 +)))
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]]
429 +(((
430 +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]]
431 +)))
371 371  
372 372  
373 373  == 2.5 Datalog Feature ==
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0