Changes for page Notes for ChirpStack
Last modified by Xiaoling on 2025/07/31 17:18
From version 246.3
edited by Xiaoling
on 2025/07/31 17:04
on 2025/07/31 17:04
Change comment:
There is no comment for this version
To version 238.1
edited by Kilight Cao
on 2024/09/23 15:12
on 2024/09/23 15:12
Change comment:
Uploaded new attachment "image-20240923151236-22.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 2 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Kilight - Content
-
... ... @@ -32,8 +32,7 @@ 32 32 ((( 33 33 ((( 34 34 Semtech UDP : **All Model** 35 -Basic Station : [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[LOS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/225-dlos8n.html]], [[LPS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]], [[LG308N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]] 36 - 35 +Basic Station : [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 37 37 (% style="color:red" %)**Note** (%%): the firmware needs >[[lgw~~-~~-build-v5.4.1640315898>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] if use the Bais station 38 38 ))) 39 39 ))) ... ... @@ -190,8 +190,8 @@ 190 190 191 191 (% style="color:blue" %)**Below list the support products and Requirements:** 192 192 193 -1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[ DLOS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/225-dlos8n.html]], [[LPS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]],[[LG308N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]]194 -1. Firmware version since : 192 +1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] ,[[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 193 +1. Firmware version since :[[lgw~~-~~-build-v5.4.1651822913>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Test_Firmware/lgw--build-v5.4.1651822913-20220506-1543/]] 195 195 196 196 (% style="color:blue" %)**How to set up chirpStack Basic Station** 197 197 ... ... @@ -205,8 +205,10 @@ 205 205 206 206 == 5.2 Add Gateway == 207 207 207 + 208 208 [[image:image-20220524164205-10.png]] 209 209 210 + 210 210 == 5.3 Access the gateway GUI == 211 211 212 212 ... ... @@ -262,7 +262,7 @@ 262 262 263 263 (% style="color:blue" %)**Below list the support products and Requirements:** 264 264 265 -1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] ,[[LPS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]],[[LG308N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]],[[DLOS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/225-dlos8n.html]] 266 +1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] ,[[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]],[[LPS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]],[[LG308N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]],[[DLOS8N>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/225-dlos8n.html]] 266 266 1. Firmware version since: [[Chirpstack-Bridge-V3.14.6>>https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/Chirpstack-gateway-bridge/Chirpstack-Bridge-V3.14.6-Bridge--build-v5.4.1679487778-20230322-2024/]] 267 267 268 268 (% style="color:blue" %)**What do you need to prepare** ... ... @@ -465,12 +465,13 @@ 465 465 466 466 = 8. Downlink = 467 467 468 -== 8.1 Schedule Downlink via Web UI == 469 469 470 +=== 8.1 Chirpstack Downlink Note === 470 470 471 -=== Select HEX format for downlink === 472 472 473 +==== Select HEX format for downlink ==== 473 473 475 + 474 474 (% style="color:red" %)**Note: The end node user manual provides HEX format of the downlink commands, so users can directly select HEX format downlink.** 475 475 476 476 ... ... @@ -494,10 +494,10 @@ 494 494 **Make sure the RX2DR is the same in the end node** 495 495 496 496 497 -== 8. 2Schedule DownlinkviaAPI==499 +== 8.3 Loraserver Downlink Note == 498 498 499 499 500 -User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End Node502 +User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End 501 501 502 502 ((( 503 503 **Below is examples:** ... ... @@ -516,6 +516,7 @@ 516 516 ((( 517 517 **MQTT Connect to ChirpStack** 518 518 521 + 519 519 520 520 ))) 521 521 ... ... @@ -608,10 +608,24 @@ 608 608 ))) 609 609 610 610 611 -== 8. 3Add decoderfunction in Chirpstack fordownlink message==614 +== 8.4 Add the decode function in Chirpstack for the payload == 612 612 613 613 617 +User enters the payload code according to the steps. 614 614 619 +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]]** 620 + 621 +[[image:image-20220531173754-15.png||height="474" width="1334"]] 622 + 623 + 624 +[[image:image-20220531173856-16.png]] 625 + 626 + 627 +[[image:image-20220531174120-20.png]] 628 + 629 +[[image:image-20220531174046-19.png]] 630 + 631 + 615 615 = 9. Chirpstack Multicast Configuration = 616 616 617 617 ... ... @@ -627,131 +627,21 @@ 627 627 == 9.2 Example to configure chirpstack Multicast == 628 628 629 629 630 -This section illustrates how to configure ChirpStack Multicast. Below is the network structure, we use our LPS8v2 as the LoRaWAN gateway and twoSN50v3-LB as the LoRaWAN end-node here.647 +This section illustrates how to configure ChirpStack Multicast. Below is the network structure, we use our LPS8v2 as the LoRaWAN gateway and SN50v3-LB as the LoRaWAN end-node here. 631 631 632 632 [[image:image-20240923105725-1.png]] 633 633 651 +The LPS8V2 is already set to connect to Chirpstack. So what we need to do now is only configure register these devices to Chirpstack: 634 634 635 -This example assumes that the user already has the prerequisites: 636 636 637 -* (% style="color:blue" %)**SN50v3-LB Software Location: **(%%)**[[SN50v3-LB_protocol_008(AU915).bin>>attach:https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/#H3.ConfigureSN50v3-LB2FLS||target="_blank"]] .**Users need to flash them with the firmware support Multicast. 638 -* (% style="color:blue" %)**SN50v3-LB Configure: **(%%)Enable CLASS C and DISFCNTCHECK(The downlink fcnt is not compared with the fcnt of the node). 639 - 640 -(% class="wikigeneratedid" %) 641 - **AT command:** (% style="color:blue" %)**AT+CLASS=C** 642 - 643 -(% class="wikigeneratedid" %) 644 - (% style="color:blue" %)**AT+DISFCNTCHECK=1** 645 - 646 -(% class="wikigeneratedid" %) 647 -For details on how to configure the SN50v3-LB, please refer to the link:** [[Configure SN50v3-LB>>https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/#H3.ConfigureSN50v3-LB2FLS]]** 648 - 649 -* (% style="color:blue" %)**Chirpstack Configuration: **(%%)LPS8v2 gateway and SN50v3-LB register on ChirpStack server already 650 - 651 -Register LPS8v2 gateway to Chirpstack. See section :[[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.A0SemtechUDPforChirpStackv4>>https://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.A0SemtechUDPforChirpStackv4]] 652 - 653 -Register SN50v3-LB to Chirpstack. See section :[[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H2.A0Nodeusageintroduction>>https://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H2.A0Nodeusageintroduction]] 654 - 655 - 656 656 === Step 1. Create the multicast group === 657 657 658 658 659 -Create the multicast group on the corresponding **Application~-~->multicast groups~-~->Add multicast-group** interface, For example, multicast_test01_au915 660 660 661 - [[image:image-20240923141847-3.png||height="620"width="1207"]]658 += 9. Multiply Uplink in ChirpStack = 662 662 663 663 664 -Enter the Multicast address,Multicast network session key,Multicast application session key. 665 - 666 -Use the default LoRaWAN settings, as below: 667 - 668 -* EU868: 869525000hz, DR0 669 - 670 -* US915: 923300000hz, DR8 671 - 672 -* CN470: 505300000hz, DR0 673 - 674 -* AU915: 923300000hz, DR8 675 - 676 -* AS923: 923200000hz, DR2 677 - 678 -* KR920: 921900000hz, DR0 679 - 680 -* IN865: 866550000hz, DR2 681 - 682 -* RU864: 869100000hz, DR0 683 - 684 -Group type: **Class-C** 685 - 686 -Class-C scheduling type : **Delay** 687 - 688 -[[image:image-20240923142446-5.png||height="720" width="1208"]] 689 - 690 - 691 -=== Step 2. Add gateways and devices to the multicast group === 692 - 693 - 694 -Select a gateway on the "**Gateways**" screen, click "**selected gateways"**, and click "**Add to multicast-group**" to add the gateway to the corresponding multicast group, for example, **multicast_test01_au915**. 695 - 696 -[[image:image-20240923144335-6.png||height="619" width="1209"]] 697 - 698 -[[image:image-20240923144418-7.png||height="572" width="1206"]] 699 - 700 - 701 -On the **Application->Devices** interface, select two SN50v3-LB nodes registered with multicast support, and then click "**Selected devices**". and click "**Add to multicast-group**" to add the node to the corresponding multicast group 702 - 703 -[[image:image-20240923144749-9.png||height="623" width="1211"]] 704 - 705 - 706 -Access the multicast group to check whether two SN50V3-LBs and gateways are added successfully 707 - 708 -[[image:image-20240923145148-10.png||height="601" width="1218"]] 709 - 710 - 711 -=== Step 3. Use the API for multicast Downlink === 712 - 713 - 714 -To use API Downlink, user first need to generate an API key 715 - 716 -[[image:image-20240923145624-18.png||height="429" width="1211"]] 717 - 718 -[[image:image-20240923145520-16.png||height="422" width="1212"]] 719 - 720 - 721 -For example:**[[https:~~/~~/www.chirpstack.io/docs/chirpstack/api/index.html>>url:https://www.chirpstack.io/docs/chirpstack/api/index.html]]** 722 - 723 -[[image:image-20240923145953-21.png||height="808" width="1222"]] 724 - 725 - 726 -Users can access the Linux console of the gateway via SSH, and then use the curl command to multicast Downlink 727 - 728 -The format is as follows: 729 - 730 -(% class="box infomessage" %) 731 731 ((( 732 -curl -X POST 'http:~/~/**Chirpstack_Server_Address**:8090/api/multicast-groups/**Multicast_Groups_ID**/queue' -H "Content-Type: application/json" -H "Authorization: Bearer **eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjaGlycHN0YWNrIiwiaXNzIjoiY2hpcnBzdGFjayIsInN1YiI6IjM3YmRiNzBjLTNjODgtNDFjMi04YmQ2LTgyMDI4ZjdkNzY3NyIsInR5cCI6ImtleSJ9.p1xvRP1PAdwLnLAJn9w6ef612KM8oPZSa_2v4UYPV0w**" -d '{ 733 - "queueItem": { 734 - "data": "EjRWeA==", 735 - "fCnt": 0, 736 - "fPort": 123 737 - } 738 -}' 739 -))) 740 - 741 -In the command,eyJ........._2v4UYPV0w is the API key, which can be obtained from the Chirpstack server and the data format is base64, 742 - 743 - 744 -=== Result === 745 - 746 -Connecting to the SN50v3-LB using the serial USB-TTL port can check that two SN50v3-LBs are receiving Downlink at the same time 747 - 748 -[[image:image-20240923151814-23.png||height="563" width="1255"]] 749 - 750 - 751 -= 10. Multiply Uplink in ChirpStack = 752 - 753 - 754 -((( 755 755 nbtrans field is the value to determine the re-transmission time for unconfirmed uplink data. 756 756 ))) 757 757 ... ... @@ -791,7 +791,7 @@ 791 791 [[image:image-20220601102430-1.png||height="508" width="1120"]] 792 792 793 793 794 -== 10.1 Solution ==701 +== 9.1 Solution == 795 795 796 796 797 797 This example uses the Windows version as a template, other versions can refer to this. Similiar reference: [[https:~~/~~/confluence.alitecs.de/plugins/servlet/mobile?contentId=79790102#content/view/79790102>>url:https://confluence.alitecs.de/plugins/servlet/mobile?contentId=79790102#content/view/79790102]] ... ... @@ -910,7 +910,7 @@ 910 910 Finish. 911 911 912 912 913 -= 1 1. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. =820 += 10. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. = 914 914 915 915 916 916 All data is published to the MQTT topics. if you want to store/get the data, you would have to create an MQTT handler and store the data yourself. ... ... @@ -959,7 +959,7 @@ 959 959 [[image:image-20221012173639-1.png||height="273" width="1206"]] 960 960 961 961 962 -= 1 2. How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server =869 += 11. How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server = 963 963 964 964 The following example is based on the built-in ChirpStack server for LPS8V2 965 965 ... ... @@ -966,7 +966,7 @@ 966 966 [[image:image-20231201174640-1.png||height="584" width="1148"]] 967 967 968 968 969 -== **1 2.1 Generate API Tokens** ==876 +== **11.1 Generate API Tokens** == 970 970 971 971 Access the built-in chirpstack , click "**API Key**" and "**Add API Key**". 972 972 ... ... @@ -979,7 +979,7 @@ 979 979 [[image:image-20231204104802-1.png]] 980 980 981 981 982 -== **1 2.2 Template file** ==889 +== **11.2 Template file** == 983 983 984 984 985 985 Click on **"Template File Download"**, the user will download a **register.csv** template file, ... ... @@ -1001,7 +1001,7 @@ 1001 1001 1002 1002 1003 1003 1004 -== **1 2.3 Batch Register** ==911 +== **11.3 Batch Register** == 1005 1005 1006 1006 [[image:image-20231204113136-11.png||height="362" width="1062"]] 1007 1007 ... ... @@ -1014,7 +1014,7 @@ 1014 1014 1015 1015 1016 1016 1017 -= 1 3. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 =924 += 12. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 = 1018 1018 1019 1019 1020 1020 LPS8v2 includes a local ChirpStack 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: ... ... @@ -1025,7 +1025,7 @@ 1025 1025 Below are the steps to plot the sensor data on LPS8v2 Node-Red. 1026 1026 1027 1027 1028 -== 1 3.1 Link Node-Red to Local ChirpStack ==935 +== 12.1 Link Node-Red to Local ChirpStack == 1029 1029 1030 1030 1031 1031 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"]]** ... ... @@ -1059,7 +1059,7 @@ 1059 1059 [[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"]] 1060 1060 1061 1061 1062 -== 1 3.2 Check result. ==969 +== 12.2 Check result. == 1063 1063 1064 1064 1065 1065 Users can check logs by adding debug. ... ... @@ -1069,9 +1069,9 @@ 1069 1069 [[image:image-20230529150923-1.png||height="424" width="1118"]] 1070 1070 1071 1071 1072 -= 1 4. Trouble Shooting =979 += 13. Trouble Shooting = 1073 1073 1074 -== 1 4.1 MIC Mismatch or MIC Failed ==981 +== 13.1 MIC Mismatch or MIC Failed == 1075 1075 1076 1076 1077 1077 ((( ... ... @@ -1082,7 +1082,7 @@ 1082 1082 Under normal circumstances, users need to change the APPKEY to solve this problem. 1083 1083 1084 1084 1085 -== 1 4.2 The node is very close to the gateway, but the signal is poor ==992 +== 13.2 The node is very close to the gateway, but the signal is poor == 1086 1086 1087 1087 1088 1088 If you are using US915 or AU915, you found the frequency points of different subband ranges in your uplink ... ... @@ -1111,7 +1111,7 @@ 1111 1111 **Note: lorawan's protocol link——[[LoRaWAN® Regional Parameters v1.0.3revA (lora-alliance.org)>>url:https://resources.lora-alliance.org/document/lorawan-regional-parameters-v1-0-3reva]]** 1112 1112 1113 1113 1114 -== 1 4.3 ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" ==1021 +== 13.3 ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" == 1115 1115 1116 1116 1117 1117 This is because the node's packets are retransmitted, and the Fcnt of these packets is the same. ... ... @@ -1142,7 +1142,7 @@ 1142 1142 [[image:image-20240717092428-4.jpeg]] 1143 1143 1144 1144 1145 -== 1 4.4 How to get the log information of the node? ==1052 +== 13.4 How to get the log information of the node? == 1146 1146 1147 1147 1148 1148 ~1. Get information about a single node.
- SN50v3-LB_协议008(AU915)(1).bin
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -89.2 KB - Content
- image-20240923151814-23.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -115.8 KB - Content