Changes for page Notes for TTN

Last modified by Xiaoling on 2025/08/04 14:58

From version 184.2
edited by Xiaoling
on 2022/09/14 15:38
Change comment: There is no comment for this version
To version 173.2
edited by Xiaoling
on 2022/09/14 09:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -353,7 +353,7 @@
353 353  )))
354 354  )))
355 355  
356 -== 4.1  Step 1 ==
356 +== 4.1  Step1 ==
357 357  
358 358  
359 359  (((
... ... @@ -381,7 +381,7 @@
381 381  
382 382  
383 383  
384 -== 4.2  Step 2 ==
384 +== 4.2  Step2 ==
385 385  
386 386  
387 387  (((
... ... @@ -396,7 +396,7 @@
396 396  
397 397  
398 398  
399 -== 4.3  Step 3 ==
399 +== 4.3  Step3 ==
400 400  
401 401  
402 402  Add APP EUI in the application:
... ... @@ -406,7 +406,7 @@
406 406  
407 407  
408 408  
409 -== 4.4  Step 4 ==
409 +== 4.4  Step4 ==
410 410  
411 411  
412 412  **Add APP KEY and DEV EUI:**
... ... @@ -616,7 +616,6 @@
616 616  downlink
617 617  
618 618  
619 -
620 620  = 6.  Route TTN data to Node-Red =
621 621  
622 622  
... ... @@ -623,10 +623,9 @@
623 623  Users can create an MQTT integration by following the steps described in "[[5.TTN V3 Integrated into MQTT Server>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H5.A0TTNV3integratedintoMQTTserver]]"
624 624  
625 625  
625 +== 6.1 Edit mqtt-broker node ==
626 626  
627 -== 6.1  Edit mqtt-broker node ==
628 628  
629 -
630 630  Users need to configure the TTN MQTT server address and port, Such as:
631 631  
632 632  (% class="box infomessage" %)
... ... @@ -644,19 +644,17 @@
644 644  [[image:image-20220829164358-188.png||height="570" width="1130"]]
645 645  
646 646  
645 +== 6.2 Debug ==
647 647  
648 -== 6.2  Debug ==
649 649  
650 -
651 651  Users can check logs by adding debug.
652 652  
653 653  [[image:image-20220829164652-189.png||height="572" width="1134"]]
654 654  
655 655  
653 +== 6.3 Example: Use Local Server TTN and Node-Red in LPS8v2 ==
656 656  
657 -== 6.3  Example: Use Local Server TTN and Node-Red in LPS8v2 ==
658 658  
659 -
660 660  LPS8v2 includes a local TTN Server and Node-Red. This example shows how to configure LHT65N to use with the local Node-Red server. This example assumes users already have:
661 661  
662 662  * LHT65N register on LPS8v2 Built-In TTN server already
... ... @@ -665,67 +665,25 @@
665 665  Below are the steps to plot the sensor data on LPS8v2 Node-Red.
666 666  
667 667  
664 +=== 6.3.1 Link Node-Red to Local TTN ===
668 668  
669 -=== 6.3.1  Link Node-Red to Local TTN ===
670 670  
667 +Users can download the Node-Red decoder from this link and import it into the Node-Red platform:  [[dragino-end-node-decoder/LHT65N.json at main · dragino/dragino-end-node-decoder (github.com)>>url:https://github.com/dragino/dragino-end-node-decoder/blob/main/Node-RED/LHT65N.json]]
671 671  
672 -Users can download the Node-Red decoder from this link and import it into the Node-Red platform:  **[[dragino-end-node-decoder/LHT65N.json (github.com)>>url:https://github.com/dragino/dragino-end-node-decoder/blob/main/Node-RED/LHT65N.json]]**
673 673  
674 -For more information on importing Input Flow, check out this link: **[[Import Input Flow for Dragino Sensors>>http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0ImportInputFlowforDraginoSensors||style="background-color: rgb(255, 255, 255);"]]**
670 +[[image:image-20220913134247-1.png||height="445" width="425"]]
675 675  
672 +[[image:image-20220913153442-2.png||height="555" width="926"]]
676 676  
677 -After importing the Input Flow is complete, the user needs to edit the MQTT in the node
678 678  
679 679  
680 -(% style="color:blue" %)**1. Change the Topic**
676 +6.3.2 Add input flow for device.
681 681  
678 +6.3.3 Check result.
682 682  
683 -Topic modifies it to the following format:
684 684  
685 -**v3/(% style="color:red" %)Application ID(%%)@ttn/devices/(% style="color:red" %)End device ID(%%)/up**
686 686  
687 -[[image:image-20220914101543-1.png||height="632" width="1134"]]
688 688  
689 -
690 -
691 -(% style="color:blue" %)**2. Enter the MQTT configuration information**
692 -
693 -
694 -[[image:image-20220914103142-2.png||height="568" width="1125"]]
695 -
696 -
697 -[[image:image-20220914103303-3.png||height="566" width="1125"]]
698 -
699 -
700 -(% class="wikigeneratedid" %)
701 -(% style="color:blue" %)**Finally, click "Update" and Deploy**
702 -
703 -
704 -(% class="wikigeneratedid" %)
705 -"Connected" indicates that the Link Node-red to Local TTN is normal.
706 -
707 -(% class="wikigeneratedid" %)
708 -[[image:image-20220914140918-5.png||height="602" width="1121"]]
709 -
710 -
711 -
712 -=== 6.3.2 Check result. ===
713 -
714 -
715 -Users can check logs by adding debug.
716 -
717 -[[image:image-20220914140841-4.png||height="600" width="1119"]]
718 -
719 -
720 -
721 -In addition,Users can access the lps8v2 gateway's built-in as server of **Node-Red Chart UI **via the URL((% style="background-color:yellow" %)__**//http:~/~/<hostname>:1880/ui or http:~/~/<local-IPV4-address>:1880/ui//**__(%%)) in your browser.
722 -
723 -
724 -
725 -[[image:image-20220914142021-7.png||height="517" width="1346"]]
726 -
727 -
728 -
729 729  = 7.  Request Remote Support =
730 730  
731 731  
image-20220914101543-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -148.7 KB
Content
image-20220914103142-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -174.7 KB
Content
image-20220914103303-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -159.0 KB
Content
image-20220914140841-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -283.8 KB
Content
image-20220914140918-5.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -284.6 KB
Content
image-20220914141502-6.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -87.7 KB
Content
image-20220914142021-7.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Kilight
Size
... ... @@ -1,1 +1,0 @@
1 -81.3 KB
Content