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

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

Summary

Details

Page properties
Content
... ... @@ -86,7 +86,6 @@
86 86  
87 87  
88 88  
89 -
90 90  == ​1.3  Features ==
91 91  
92 92  * LoRaWAN v1.0.3 Class A
... ... @@ -147,7 +147,6 @@
147 147  
148 148  
149 149  
150 -
151 151  == 1.6  Pin Definitions and Switch ==
152 152  
153 153  (% class="wikigeneratedid" %)
... ... @@ -184,7 +184,6 @@
184 184  1. Send an uplink packet
185 185  
186 186  
187 -
188 188  == 1.7  Hardware Change log ==
189 189  
190 190  LSN50v2-D20 v1.0:  Release.
... ... @@ -275,9 +275,13 @@
275 275  
276 276  == 2.3  ​Uplink Payload ==
277 277  
275 +(((
278 278  Normal Upload Payload:
277 +)))
279 279  
279 +(((
280 280  LSN50v2-D2x use the same payload as LSn50v2 mod1, as below.
281 +)))
281 281  
282 282  
283 283  (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:709px" %)
... ... @@ -334,10 +334,11 @@
334 334  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
335 335  
336 336  
337 -=== **Temperature Black:** ===
338 +=== (% style="color:#4472c4" %)**Temperature Black:**(%%) ===
338 338  
339 339  **This point to the BLACK probe in LSN50 v2-D23**
340 340  
342 +
341 341  **Example**:
342 342  
343 343  If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -345,182 +345,32 @@
345 345  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
346 346  
347 347  
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 -(((
392 392  **Example:**
393 -)))
394 394  
395 -(((
396 -(0x0D4A & 0x8000) >>15 = 0: Normal uplink packet.
397 -)))
354 +If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message
398 398  
399 -(((
400 -(0x8D41 & 0x8000) >>15 = 1: Interrupt Uplink Packet.
401 -)))
356 +If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm
402 402  
358 +If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
403 403  
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.
404 404  
405 -=== 2.4.3  Distance ===
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" %)​
406 406  
407 -(((
408 -(((
409 -The measuring distance of the four distance measuring modules, the default unit is cm.
410 -)))
411 411  
412 -(((
413 -
414 -)))
365 +=== 2.3.2  Decode payload in The Things Network ===
415 415  
416 -(((
417 -**Example**:
418 -)))
367 +In TTN, use can add a custom payload so it shows friendly.
419 419  
420 -(((
421 -Uplink Payload: 0D 4A 03 16 03 18 03 1A 03 15 01
422 -)))
369 +In the page Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder to add the decoder from:
423 423  
424 -(((
425 -
426 -)))
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/]]
427 427  
428 -(((
429 -Data analysis:
430 -)))
431 431  
432 -(((
433 -Distance of UT sensor1 : 0316(H) = 790 (D)/10 = 79cm.
434 -)))
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" %)​
435 435  
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 -
524 524  == 2.5  Uplink Interval ==
525 525  
526 526  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"]]