<
From version < 144.1 >
edited by Kilight Cao
on 2023/05/27 14:42
To version < 149.1 >
edited by Kilight Cao
on 2023/05/31 16:35
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -569,7 +569,7 @@
569 569  )))
570 570  
571 571  
572 -== 6.3  Add the decode function in Chirpstack for the payload ==
572 +== 6.4  Add the decode function in Chirpstack for the payload ==
573 573  
574 574  
575 575  User enters the payload code according to the steps.
... ... @@ -798,9 +798,19 @@
798 798  
799 799  [[image:image-20221012173639-1.png]]
800 800  
801 += 9.  Add Payload codec =
801 801  
802 -= 9.  Example: Use Local Server ChirpStack and Node-Red in LPS8v2 =
803 803  
804 +First, you need to create the Device profiles, and then Click on "Codec" and select "JavaScript function" from the Device profiles interface.
805 +
806 +Add the node device decoder you are using. The decoder for each node device is different. The decoder is found in this link: **[[decoder for dragino end node>>https://github.com/dragino/dragino-end-node-decoder]]**
807 +
808 +[[image:image-20230531162943-1.png||height="604" width="1130"]]
809 +
810 +
811 += 10.  Example: Use Local Server ChirpStack and Node-Red in LPS8v2 =
812 +
813 +
804 804  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:
805 805  
806 806  * LHT65N register on LPS8v2 Built-In ChirpStack server already
... ... @@ -808,27 +808,54 @@
808 808  
809 809  Below are the steps to plot the sensor data on LPS8v2 Node-Red.
810 810  
811 -=== 9.1 Link Node-Red to Local ChirpStack ===
812 812  
813 -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]]**
822 +== 10.1 Link Node-Red to Local ChirpStack ==
814 814  
824 +
825 +Users can download the Node-Red decoder from this link and import it into the Node-Red platform:  **[[attach:LHT65N-ChirpStack-node-red.json||target="_blank"]]**
826 +
815 815  For more information on importing Input Flow, check out this link: **[[Import Input Flow for Dragino Sensors>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0ImportInputFlowforDraginoSensors]]**
816 816  
817 817  After importing the Input Flow is complete, the user needs to edit the MQTT in the node
818 818  
819 -**~1. Change the Topic**
820 820  
832 +(% style="color:blue" %)**1. Change the Topic**
833 +
821 821  Topic modifies it to the following format:
822 822  
823 -**v3/Application ID/devices/End device ID/up**
836 +**application/(% style="color:red" %)Application ID(%%)/device/(% style="color:red" %)End device ID(%%)/event/up**
824 824  
838 +[[image:image-20230527143923-1.png||height="588" width="1132"]]
825 825  
826 826  
827 -= 10.  Trouble Shooting =
828 828  
829 -== 10.1  MIC Mismatch or MIC Failed ==
842 +(% style="color:blue" %)**2Enter the MQTT configuration information**
830 830  
844 +[[image:image-20230527144206-2.png||height="590" width="1136"]]
831 831  
846 +
847 +(% style="color:blue" %)3. **Finally, click "Update" and Deploy**
848 +
849 +"Connected" indicates that the Link Node-red to Local Chirpstack is normal.
850 +
851 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/Notes%20for%20TTN/WebHome/image-20220914140918-5.png?width=1121&height=602&rev=1.1||alt="image-20220914140918-5.png"]]
852 +
853 +
854 +== 10.2 Check result. ==
855 +
856 +
857 +Users can check logs by adding debug.
858 +
859 +Browser access: **Node-Red-Server-Address:1880/ui**
860 +
861 +[[image:image-20230529150923-1.png||height="424" width="1118"]]
862 +
863 +
864 += 11.  Trouble Shooting =
865 +
866 +== 11.1  MIC Mismatch or MIC Failed ==
867 +
868 +
832 832  (((
833 833  When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs.
834 834  )))
image-20230529150923-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +87.2 KB
Content
image-20230531162943-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +84.6 KB
Content
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0