Last modified by Xiaoling on 2025/04/24 17:18

From version 218.3
edited by Xiaoling
on 2022/06/11 16:39
Change comment: There is no comment for this version
To version 218.1
edited by Xiaoling
on 2022/06/11 16:37
Change comment: Uploaded new attachment "1654936675588-151.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -549,55 +549,23 @@
549 549  
550 550  
551 551  
552 +
552 552  === 2.4.5  Decode payload in The Things Network ===
553 553  
554 554  While using TTN network, you can add the payload format to decode the payload.
555 555  
556 -[[image:1654936675588-151.png||height="379" width="762"]]
557 557  
558 -(% 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" %)​
558 +(% aria-label="1654850829385-439.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654850829385-439.png||data-widget="image"]](% 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" %)​(% 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" %)​
559 559  
560 -The payload decoder function for TTN is here:
560 +(((
561 +The payload decoder function for TTN V3 is here:
562 +)))
561 561  
562 -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/]]
563 -
564 -
565 -**//function Decoder(bytes, port) {//**
566 -
567 -**// var decode = {};//**
568 -
569 -**// var value=(bytes[0]<<8 | bytes[1]) & 0x3FFF;//**
570 -
571 -**// decode.BatV= value/1000;//**
572 -
573 -**// decode.EXTI_Trigger=(bytes[0] & 0x80)? "TRUE":"FALSE";//**
574 -
575 -**// decode.distance1_cm=(bytes[2]<<8 | bytes[3])/10;//**
576 -
577 -**// decode.distance2_cm=(bytes[4]<<8 | bytes[5])/10;//**
578 -
579 -**// decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10//**
580 -
581 -**// decode.distance4_cm=(bytes[8]<<8 | bytes[9])/10;//**
582 -
583 -**// decode.mes_type= bytes[10];//**
584 -
585 -
586 -**// if(!((bytes[0]==0x03)&&(bytes[10]==0x02~)~)~)//**
587 -
588 -**// {//**
589 -
590 -**// return decode;//**
591 -
592 -**// }//**
593 -
594 -**//}//**
595 -
596 -(% 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" %)​(% title="Click and drag to resize" %)​
597 -
598 598  (((
599 -
565 +(((
566 +LDDS45 TTN V3 Payload Decoder: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS75/Payload_Decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSE01/Payload_Decoder/]]
600 600  )))
568 +)))
601 601  
602 602  
603 603