Last modified by Mengting Qiu on 2025/06/04 10:46

From version 254.12
edited by Xiaoling
on 2022/06/23 09:03
Change comment: There is no comment for this version
To version 254.9
edited by Xiaoling
on 2022/06/23 08:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -86,6 +86,7 @@
86 86  
87 87  
88 88  
89 +
89 89  == ​1.3  Features ==
90 90  
91 91  * LoRaWAN v1.0.3 Class A
... ... @@ -146,6 +146,7 @@
146 146  
147 147  
148 148  
150 +
149 149  == 1.6  Pin Definitions and Switch ==
150 150  
151 151  (% class="wikigeneratedid" %)
... ... @@ -182,6 +182,7 @@
182 182  1. Send an uplink packet
183 183  
184 184  
187 +
185 185  == 1.7  Hardware Change log ==
186 186  
187 187  LSN50v2-D20 v1.0:  Release.
... ... @@ -272,13 +272,9 @@
272 272  
273 273  == 2.3  ​Uplink Payload ==
274 274  
275 -(((
276 276  Normal Upload Payload:
277 -)))
278 278  
279 -(((
280 280  LSN50v2-D2x use the same payload as LSn50v2 mod1, as below.
281 -)))
282 282  
283 283  
284 284  (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:709px" %)
... ... @@ -335,11 +335,10 @@
335 335  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
336 336  
337 337  
338 -=== (% style="color:#4472c4" %)**Temperature Black:**(%%) ===
337 +=== **Temperature Black:** ===
339 339  
340 340  **This point to the BLACK probe in LSN50 v2-D23**
341 341  
342 -
343 343  **Example**:
344 344  
345 345  If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -347,32 +347,182 @@
347 347  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
348 348  
349 349  
348 +
349 +
350 350  === (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ===
351 351  
352 +Example:
353 +
354 +If payload & 0x01 = 0x01  à This is an Alarm Message
355 +
356 +If payload & 0x01 = 0x00  à This is a normal uplink message, no alarm
357 +
358 +If payload >> 2 = 0x00 à means MOD=1, This is a sampling uplink message
359 +
360 +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:#Poll_Alarm]] for detail.
361 +
362 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
363 +
364 +
365 +
366 +=== 2.4.1  Battery Info ===
367 +
368 +
369 +Check the battery voltage for LDDS45.
370 +
371 +Ex1: 0x0B45 = 2885mV
372 +
373 +Ex2: 0x0B49 = 2889mV
374 +
375 +
376 +
377 +=== 2.4.2  Interrupt Pin ===
378 +
379 +(((
380 +This data field shows if this packet is generated by interrupt or not. [[Click here>>||anchor="H3.2A0SetInterruptMode"]] for the hardware and software set up.
381 +)))
382 +
383 +(((
384 +**Note: **The Internet Pin is a separate pin in the screw terminal. See [[pin mapping>>||anchor="H1.4A0Pinmappingandpoweron"]].
385 +)))
386 +
387 +(((
388 +
389 +)))
390 +
391 +(((
352 352  **Example:**
393 +)))
353 353  
354 -If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message
395 +(((
396 +(0x0D4A & 0x8000) >>15 = 0: Normal uplink packet.
397 +)))
355 355  
356 -If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm
399 +(((
400 +(0x8D41 & 0x8000) >>15 = 1: Interrupt Uplink Packet.
401 +)))
357 357  
358 -If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
359 359  
360 -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:#Poll_Alarm]] for detail.
361 361  
362 -(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
405 +=== 2.4.3  Distance ===
363 363  
407 +(((
408 +(((
409 +The measuring distance of the four distance measuring modules, the default unit is cm.
410 +)))
364 364  
365 -=== 2.3.2  Decode payload in The Things Network ===
412 +(((
413 +
414 +)))
366 366  
367 -In TTN, use can add a custom payload so it shows friendly.
416 +(((
417 +**Example**:
418 +)))
368 368  
369 -In the page Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder to add the decoder from:
420 +(((
421 +Uplink Payload: 0D 4A 03 16 03 18 03 1A 03 15 01
422 +)))
370 370  
371 -[[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Decoder/]]
424 +(((
425 +
426 +)))
372 372  
428 +(((
429 +Data analysis:
430 +)))
373 373  
374 -(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​
432 +(((
433 +Distance of UT sensor1 : 0316(H) = 790 (D)/10 = 79cm.
434 +)))
375 375  
436 +(((
437 +Distance of UT sensor2 : 0318(H) = 792 (D)/10 = 79.2cm.
438 +)))
439 +
440 +(((
441 +Distance of UT sensor3 : 031A(H) = 794 (D)/10 = 79.4cm.
442 +)))
443 +
444 +(((
445 +Distance of UT sensor4 : 0315(H) = 789 (D)/10 = 78.9cm.
446 +)))
447 +
448 +
449 +)))
450 +
451 +
452 +=== 2.4.4  Message Type ===
453 +
454 +(((
455 +For a normal uplink payload, the message type is always 0x01.
456 +)))
457 +
458 +(((
459 +Valid Message Type:
460 +)))
461 +
462 +
463 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:499px" %)
464 +|=(% style="width: 160px;" %)**Message Type Code**|=(% style="width: 163px;" %)**Description**|=(% style="width: 173px;" %)**Payload**
465 +|(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)[[Normal Uplink Payload>>||anchor="H2.4A0200BUplinkPayload"]]
466 +|(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)[[Configure Info Payload>>||anchor="H3.3A0GetFirmwareVersionInfo"]]
467 +
468 +(% aria-label="1654936589640-122.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654936589640-122.png||data-widget="image" height="248" width="806"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
469 +
470 +
471 +
472 +=== 2.4.5  Decode payload in The Things Network ===
473 +
474 +While using TTN network, you can add the payload format to decode the payload.
475 +
476 +(% aria-label="1654936675588-151.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654936675588-151.png||data-widget="image" height="379" width="762"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
477 +
478 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
479 +
480 +The payload decoder function for TTN is here:
481 +
482 +LDDS04 TTN Payload Decoder: [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS04/Decoder/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LLDS12/Decoder/]]
483 +
484 +
485 +**//function Decoder(bytes, port) {//**
486 +
487 +**// var decode = {};//**
488 +
489 +**// var value=(bytes[0]<<8 | bytes[1]) & 0x3FFF;//**
490 +
491 +**// decode.BatV= value/1000;//**
492 +
493 +**// decode.EXTI_Trigger=(bytes[0] & 0x80)? "TRUE":"FALSE";//**
494 +
495 +**// decode.distance1_cm=(bytes[2]<<8 | bytes[3])/10;//**
496 +
497 +**// decode.distance2_cm=(bytes[4]<<8 | bytes[5])/10;//**
498 +
499 +**// decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10//**
500 +
501 +**// decode.distance4_cm=(bytes[8]<<8 | bytes[9])/10;//**
502 +
503 +**// decode.mes_type= bytes[10];//**
504 +
505 +
506 +**// if(!((bytes[0]==0x03)&&(bytes[10]==0x02~)~)~)//**
507 +
508 +**// {//**
509 +
510 +**// return decode;//**
511 +
512 +**// }//**
513 +
514 +**//}//**
515 +
516 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​​
517 +
518 +(((
519 +
520 +)))
521 +
522 +
523 +
376 376  == 2.5  Uplink Interval ==
377 377  
378 378  The LDDS04 by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: [[Change Uplink Interval>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H4.1ChangeUplinkInterval"]]