Changes for page Notes for ChirpStack
Last modified by Xiaoling on 2025/07/31 17:18
From version 241.1
edited by Kilight Cao
on 2024/09/23 15:26
on 2024/09/23 15:26
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Kilight1 +XWiki.Xiaoling - Content
-
... ... @@ -32,7 +32,8 @@ 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]], [[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]] 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 + 36 36 (% 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 37 37 ))) 38 38 ))) ... ... @@ -189,8 +189,8 @@ 189 189 190 190 (% style="color:blue" %)**Below list the support products and Requirements:** 191 191 192 -1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[L G308>>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]]PS8>>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/]] 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 : [[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/]] 194 194 195 195 (% style="color:blue" %)**How to set up chirpStack Basic Station** 196 196 ... ... @@ -204,10 +204,8 @@ 204 204 205 205 == 5.2 Add Gateway == 206 206 207 - 208 208 [[image:image-20220524164205-10.png]] 209 209 210 - 211 211 == 5.3 Access the gateway GUI == 212 212 213 213 ... ... @@ -263,8 +263,8 @@ 263 263 264 264 (% style="color:blue" %)**Below list the support products and Requirements:** 265 265 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]]267 -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/]] 265 +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]] 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/||style="background-color: rgb(255, 255, 255);"]] 268 268 269 269 (% style="color:blue" %)**What do you need to prepare** 270 270 ... ... @@ -273,7 +273,6 @@ 273 273 274 274 The following example does not have configuration certificates: 275 275 276 - 277 277 == 6.1 Configure Packet Forwarder == 278 278 279 279 ... ... @@ -376,7 +376,7 @@ 376 376 377 377 (% style="color:blue" %)**Below list the support products and Requirements:** 378 378 379 -1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]], [[L G308>>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]]377 +1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.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]] 380 380 1. Firmware version since: [[Chirpstack-Bridge-V4>>https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/Chirpstack-gateway-bridge/Chirpstack-Bridge-V4--build-v5.4.1670655072-20221210-1452/]] 381 381 382 382 (% style="color:blue" %)**What do you need to prepare** ... ... @@ -466,25 +466,18 @@ 466 466 467 467 = 8. Downlink = 468 468 467 +== 8.1 Schedule Downlink via Web UI == 469 469 470 -=== 8.1 Chirpstack Downlink Note === 471 471 470 +=== Select HEX format for downlink === 472 472 473 -==== Select HEX format for downlink ==== 474 - 475 - 476 476 (% style="color:red" %)**Note: The end node user manual provides HEX format of the downlink commands, so users can directly select HEX format downlink.** 477 477 478 - 479 479 [[image:image-20231108171112-5.png||height="629" width="1117"]] 480 480 481 - 482 482 [[image:image-20231108171145-6.png||height="497" width="1101"]] 483 483 484 484 485 - 486 - 487 - 488 488 [[image:image-20220531173236-10.png||height="597" width="1215"]] 489 489 490 490 **Check ChripStack downlink DataRate** ... ... @@ -496,10 +496,10 @@ 496 496 **Make sure the RX2DR is the same in the end node** 497 497 498 498 499 -== 8. 3LoraserverDownlinkNote==490 +== 8.2 Schedule Downlink via API == 500 500 501 501 502 -User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End 493 +User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End Node 503 503 504 504 ((( 505 505 **Below is examples:** ... ... @@ -518,7 +518,6 @@ 518 518 ((( 519 519 **MQTT Connect to ChirpStack** 520 520 521 - 522 522 523 523 ))) 524 524 ... ... @@ -546,7 +546,6 @@ 546 546 **MQTT Connect to ChirpStack** 547 547 548 548 549 - 550 550 ((( 551 551 Downlink payload encode javescript code. 552 552 ... ... @@ -611,27 +611,12 @@ 611 611 ))) 612 612 613 613 614 -== 8. 4Addthedecode function in Chirpstack forthepayload==603 +== 8.3 Add decoder function in Chirpstack for downlink message == 615 615 616 616 617 -User enters the payload code according to the steps. 618 618 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 - 632 632 = 9. Chirpstack Multicast Configuration = 633 633 634 - 635 635 == 9.1 Introduction == 636 636 637 637 ChirpStack has support for creating multicast-groups to which devices can be assigned. When enqueueing a downlink payload for a multicast-group, ChirpStack will analyze which gateways must be used for broadcasting to cover the complete multicast-group. This means that potentially, a single multicast downlink payload will be emitted multiple times. ... ... @@ -643,27 +643,32 @@ 643 643 644 644 == 9.2 Example to configure chirpstack Multicast == 645 645 646 - 647 647 This section illustrates how to configure ChirpStack Multicast. Below is the network structure, we use our LPS8v2 as the LoRaWAN gateway and two SN50v3-LB as the LoRaWAN end-node here. 648 648 649 649 [[image:image-20240923105725-1.png]] 650 650 651 651 652 -This example assumes user salready have:625 +This example assumes that the user already has the prerequisites: 653 653 654 -* SN50v3-LB terhirpStackveralready655 -* Theuser isabletoseethe dataon theChirpStackserverdevicepage.627 +* (% 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. 628 +* (% style="color:blue" %)**SN50v3-LB Configure: **(%%)Enable CLASS C and DISFCNTCHECK(The downlink fcnt is not compared with the fcnt of the node). 656 656 657 657 (% class="wikigeneratedid" %) 658 -(% style="color: red" %)**Note: **(%%)SN50v3-LB must enableCLASSand DISFCNTCHECK(The downlink fcnt is not compared with the fcnt of the node).631 + **AT command:** (% style="color:blue" %)**AT+CLASS=C** 659 659 660 660 (% class="wikigeneratedid" %) 661 - ATcommand:CLASS=C**634 + (% style="color:blue" %)**AT+DISFCNTCHECK=1** 662 662 663 663 (% class="wikigeneratedid" %) 664 - T+DISFCNTCHECK=1**637 +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]]** 665 665 639 +* (% style="color:blue" %)**Chirpstack Configuration: **(%%)LPS8v2 gateway and SN50v3-LB register on ChirpStack server already 666 666 641 +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]] 642 + 643 +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]] 644 + 645 + 667 667 === Step 1. Create the multicast group === 668 668 669 669 ... ... @@ -759,7 +759,7 @@ 759 759 [[image:image-20240923151814-23.png||height="563" width="1255"]] 760 760 761 761 762 -= 9. Multiply Uplink in ChirpStack =741 += 10. Multiply Uplink in ChirpStack = 763 763 764 764 765 765 ((( ... ... @@ -802,7 +802,7 @@ 802 802 [[image:image-20220601102430-1.png||height="508" width="1120"]] 803 803 804 804 805 -== 9.1 Solution ==784 +== 10.1 Solution == 806 806 807 807 808 808 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]] ... ... @@ -921,7 +921,7 @@ 921 921 Finish. 922 922 923 923 924 -= 1 0. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. =903 += 11. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. = 925 925 926 926 927 927 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. ... ... @@ -970,14 +970,15 @@ 970 970 [[image:image-20221012173639-1.png||height="273" width="1206"]] 971 971 972 972 973 -= 1 1. How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server =952 += 12. How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server = 974 974 954 + 975 975 The following example is based on the built-in ChirpStack server for LPS8V2 976 976 977 977 [[image:image-20231201174640-1.png||height="584" width="1148"]] 978 978 979 979 980 -== **1 1.1 Generate API Tokens** ==960 +== **12.1 Generate API Tokens** == 981 981 982 982 Access the built-in chirpstack , click "**API Key**" and "**Add API Key**". 983 983 ... ... @@ -990,7 +990,7 @@ 990 990 [[image:image-20231204104802-1.png]] 991 991 992 992 993 -== **1 1.2 Template file** ==973 +== **12.2 Template file** == 994 994 995 995 996 996 Click on **"Template File Download"**, the user will download a **register.csv** template file, ... ... @@ -1011,9 +1011,8 @@ 1011 1011 [[image:image-20231204112107-10.png||height="621" width="1203"]] 1012 1012 1013 1013 994 +== **12.3 Batch Register** == 1014 1014 1015 -== **11.3 Batch Register** == 1016 - 1017 1017 [[image:image-20231204113136-11.png||height="362" width="1062"]] 1018 1018 1019 1019 ... ... @@ -1024,10 +1024,9 @@ 1024 1024 [[image:image-20231204113237-13.png||height="558" width="1081"]] 1025 1025 1026 1026 1006 += 13. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 = 1027 1027 1028 -= 12. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 = 1029 1029 1030 - 1031 1031 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: 1032 1032 1033 1033 * LHT65N register on LPS8v2 Built-In ChirpStack server already ... ... @@ -1036,7 +1036,7 @@ 1036 1036 Below are the steps to plot the sensor data on LPS8v2 Node-Red. 1037 1037 1038 1038 1039 -== 1 2.1 Link Node-Red to Local ChirpStack ==1017 +== 13.1 Link Node-Red to Local ChirpStack == 1040 1040 1041 1041 1042 1042 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"]]** ... ... @@ -1057,7 +1057,6 @@ 1057 1057 [[image:image-20230527143923-1.png||height="588" width="1132"]] 1058 1058 1059 1059 1060 - 1061 1061 (% style="color:blue" %)**2. Enter the MQTT configuration information** 1062 1062 1063 1063 [[image:image-20230527144206-2.png||height="590" width="1136"]] ... ... @@ -1070,7 +1070,7 @@ 1070 1070 [[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"]] 1071 1071 1072 1072 1073 -== 1 2.2 Check result. ==1050 +== 13.2 Check result. == 1074 1074 1075 1075 1076 1076 Users can check logs by adding debug. ... ... @@ -1080,9 +1080,9 @@ 1080 1080 [[image:image-20230529150923-1.png||height="424" width="1118"]] 1081 1081 1082 1082 1083 -= 1 3. Trouble Shooting =1060 += 14. Trouble Shooting = 1084 1084 1085 -== 1 3.1 MIC Mismatch or MIC Failed ==1062 +== 14.1 MIC Mismatch or MIC Failed == 1086 1086 1087 1087 1088 1088 ((( ... ... @@ -1093,17 +1093,17 @@ 1093 1093 Under normal circumstances, users need to change the APPKEY to solve this problem. 1094 1094 1095 1095 1096 -== 1 3.2 The node is very close to the gateway, but the signal is poor ==1073 +== 14.2 The node is very close to the gateway, but the signal is poor == 1097 1097 1098 1098 1099 1099 If you are using US915 or AU915, you found the frequency points of different subband ranges in your uplink 1100 1100 1101 1101 Like that:Both 905.1Mhz and 902.3Mhz appear on uplink 1102 - But they belong to Subband1 and Subband2 of US915 respectively 1079 + But they belong to Subband1 and Subband2 of US915 respectively 1103 1103 1104 1104 Cause: The server and the gateway use different frequency bands (the server uses Subband1, and the gateway uses Subband2) 1105 1105 1106 - In server side, it shows the frequency is 905.1Mhz, which is sub-band2. But the RSSI is very low, Because this is not a signal in 905.1Mhz, it is on 902.3Mhz, the signal is too strong and appear a noise in 905.1Mhz. 1083 + In server side, it shows the frequency is 905.1Mhz, which is sub-band2. But the RSSI is very low, Because this is not a signal in 905.1Mhz, it is on 902.3Mhz, the signal is too strong and appear a noise in 905.1Mhz. 1107 1107 1108 1108 How to check the frequency band used by the server: 1109 1109 ... ... @@ -1122,7 +1122,7 @@ 1122 1122 **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]]** 1123 1123 1124 1124 1125 -== 1 3.3 ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" ==1102 +== 14.3 ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" == 1126 1126 1127 1127 1128 1128 This is because the node's packets are retransmitted, and the Fcnt of these packets is the same. ... ... @@ -1153,7 +1153,7 @@ 1153 1153 [[image:image-20240717092428-4.jpeg]] 1154 1154 1155 1155 1156 -== 1 3.4 How to get the log information of the node? ==1133 +== 14.4 How to get the log information of the node? == 1157 1157 1158 1158 1159 1159 ~1. Get information about a single node. ... ... @@ -1179,7 +1179,6 @@ 1179 1179 [[image:image-20240117175009-3.png||height="524" width="1076"]] 1180 1180 1181 1181 1182 - 1183 1183 After the data collection is completed, you can send this file directly to our technical support personnel for analysis. 1184 1184 1185 1185
- SN50v3-LB_协议008(AU915)(1).bin
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +89.2 KB - Content