Changes for page Notes for ChirpStack

Last modified by Xiaoling on 2025/03/22 09:21

From version 239.1
edited by Kilight Cao
on 2024/09/23 15:18
Change comment: Uploaded new attachment "image-20240923151814-23.png", version {1}
To version 246.1
edited by Xiaoling
on 2025/03/22 09:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Kilight
1 +XWiki.Xiaoling
Content
... ... @@ -466,13 +466,12 @@
466 466  
467 467  = 8.  Downlink =
468 468  
469 +== 8.1 Schedule Downlink via Web UI ==
469 469  
470 -=== 8.1 Chirpstack Downlink Note ===
471 471  
472 +=== Select HEX format for downlink ===
472 472  
473 -==== Select HEX format for downlink ====
474 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 478  
... ... @@ -496,10 +496,10 @@
496 496  **Make sure the RX2DR is the same in the end node**
497 497  
498 498  
499 -== 8. Loraserver Downlink Note ==
498 +== 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
501 +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  
... ... @@ -611,24 +611,10 @@
611 611  )))
612 612  
613 613  
614 -== 8.4  Add the decode function in Chirpstack for the payload ==
612 +== 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 634  
... ... @@ -644,21 +644,131 @@
644 644  == 9.2  Example to configure chirpstack Multicast ==
645 645  
646 646  
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 +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 -The LPS8V2 is already set to connect to Chirpstack. So what we need to do now is only configure register these devices to Chirpstack:
652 652  
636 +This example assumes that the user already has the prerequisites:
653 653  
638 +* (% 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.
639 +* (% style="color:blue" %)**SN50v3-LB Configure:   **(%%)Enable CLASS C and DISFCNTCHECK(The downlink fcnt is not compared with the fcnt of the node).
640 +
641 +(% class="wikigeneratedid" %)
642 + **AT command:** (% style="color:blue" %)**AT+CLASS=C**
643 +
644 +(% class="wikigeneratedid" %)
645 + (% style="color:blue" %)**AT+DISFCNTCHECK=1**
646 +
647 +(% class="wikigeneratedid" %)
648 +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]]**
649 +
650 +* (% style="color:blue" %)**Chirpstack Configuration: **(%%)LPS8v2 gateway and SN50v3-LB register on ChirpStack server already
651 +
652 +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]]
653 +
654 +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]]
655 +
656 +
654 654  === Step 1. Create the multicast group ===
655 655  
656 656  
660 +Create the multicast group on the corresponding **Application~-~->multicast groups~-~->Add multicast-group** interface, For example, multicast_test01_au915
657 657  
658 -= 9.  Multiply Uplink in ChirpStack =
662 +[[image:image-20240923141847-3.png||height="620" width="1207"]]
659 659  
660 660  
665 +Enter the Multicast address,Multicast network session key,Multicast application session key.
666 +
667 +Use the default LoRaWAN settings, as below:
668 +
669 +* EU868: 869525000hz, DR0
670 +
671 +* US915: 923300000hz, DR8
672 +
673 +* CN470: 505300000hz, DR0
674 +
675 +* AU915: 923300000hz, DR8
676 +
677 +* AS923: 923200000hz, DR2
678 +
679 +* KR920: 921900000hz, DR0
680 +
681 +* IN865: 866550000hz, DR2
682 +
683 +* RU864: 869100000hz, DR0
684 +
685 +Group type: **Class-C**
686 +
687 +Class-C scheduling type : **Delay**
688 +
689 +[[image:image-20240923142446-5.png||height="720" width="1208"]]
690 +
691 +
692 +=== Step 2. Add gateways and devices to the multicast group ===
693 +
694 +
695 +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**.
696 +
697 +[[image:image-20240923144335-6.png||height="619" width="1209"]]
698 +
699 +[[image:image-20240923144418-7.png||height="572" width="1206"]]
700 +
701 +
702 +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
703 +
704 +[[image:image-20240923144749-9.png||height="623" width="1211"]]
705 +
706 +
707 +Access the multicast group to check whether two SN50V3-LBs and gateways are added successfully
708 +
709 +[[image:image-20240923145148-10.png||height="601" width="1218"]]
710 +
711 +
712 +=== Step 3. Use the API for multicast Downlink ===
713 +
714 +
715 +To use API Downlink, user first need to generate an API key
716 +
717 +[[image:image-20240923145624-18.png||height="429" width="1211"]]
718 +
719 +[[image:image-20240923145520-16.png||height="422" width="1212"]]
720 +
721 +
722 +For example:**[[https:~~/~~/www.chirpstack.io/docs/chirpstack/api/index.html>>url:https://www.chirpstack.io/docs/chirpstack/api/index.html]]**
723 +
724 +[[image:image-20240923145953-21.png||height="808" width="1222"]]
725 +
726 +
727 +Users can access the Linux console of the gateway via SSH, and then use the curl command to multicast Downlink
728 +
729 +The format is as follows:
730 +
731 +(% class="box infomessage" %)
661 661  (((
733 +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 '{
734 + "queueItem": {
735 + "data": "EjRWeA==",
736 + "fCnt": 0,
737 + "fPort": 123
738 + }
739 +}'
740 +)))
741 +
742 +In the command,eyJ........._2v4UYPV0w is the API key, which can be obtained from the Chirpstack server and the data format is base64,
743 +
744 +
745 +=== Result ===
746 +
747 +Connecting to the SN50v3-LB using the serial USB-TTL port can check that two SN50v3-LBs are receiving Downlink at the same time
748 +
749 +[[image:image-20240923151814-23.png||height="563" width="1255"]]
750 +
751 +
752 += 10.  Multiply Uplink in ChirpStack =
753 +
754 +
755 +(((
662 662  nbtrans field is the value to determine the re-transmission time for unconfirmed uplink data.
663 663  )))
664 664  
... ... @@ -698,7 +698,7 @@
698 698  [[image:image-20220601102430-1.png||height="508" width="1120"]]
699 699  
700 700  
701 -== 9.1  Solution ==
795 +== 10.1  Solution ==
702 702  
703 703  
704 704  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]]
... ... @@ -817,7 +817,7 @@
817 817  Finish.
818 818  
819 819  
820 -= 10.  How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. =
914 += 11.  How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. =
821 821  
822 822  
823 823  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.
... ... @@ -866,7 +866,7 @@
866 866  [[image:image-20221012173639-1.png||height="273" width="1206"]]
867 867  
868 868  
869 -= 11.  How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server =
963 += 12.  How to use Chirpstack API to batch register Sensor Node/Gateway in Chistapstack Server =
870 870  
871 871  The following example is based on the built-in ChirpStack server for LPS8V2
872 872  
... ... @@ -873,7 +873,7 @@
873 873  [[image:image-20231201174640-1.png||height="584" width="1148"]]
874 874  
875 875  
876 -== **11.1 Generate API Tokens** ==
970 +== **12.1 Generate API Tokens** ==
877 877  
878 878  Access the built-in chirpstack , click "**API Key**" and "**Add API Key**".
879 879  
... ... @@ -886,7 +886,7 @@
886 886  [[image:image-20231204104802-1.png]]
887 887  
888 888  
889 -== **11.2 Template file** ==
983 +== **12.2 Template file** ==
890 890  
891 891  
892 892  Click on **"Template File Download"**, the user will download a **register.csv** template file,
... ... @@ -908,7 +908,7 @@
908 908  
909 909  
910 910  
911 -== **11.3 Batch Register** ==
1005 +== **12.3 Batch Register** ==
912 912  
913 913  [[image:image-20231204113136-11.png||height="362" width="1062"]]
914 914  
... ... @@ -921,7 +921,7 @@
921 921  
922 922  
923 923  
924 -= 12.  Example: Use Local Server ChirpStack and Node-Red in LPS8v2 =
1018 += 13.  Example: Use Local Server ChirpStack and Node-Red in LPS8v2 =
925 925  
926 926  
927 927  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:
... ... @@ -932,7 +932,7 @@
932 932  Below are the steps to plot the sensor data on LPS8v2 Node-Red.
933 933  
934 934  
935 -== 12.1 Link Node-Red to Local ChirpStack ==
1029 +== 13.1 Link Node-Red to Local ChirpStack ==
936 936  
937 937  
938 938  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"]]**
... ... @@ -966,7 +966,7 @@
966 966  [[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"]]
967 967  
968 968  
969 -== 12.2 Check result. ==
1063 +== 13.2 Check result. ==
970 970  
971 971  
972 972  Users can check logs by adding debug.
... ... @@ -976,9 +976,9 @@
976 976  [[image:image-20230529150923-1.png||height="424" width="1118"]]
977 977  
978 978  
979 -= 13.  Trouble Shooting =
1073 += 14.  Trouble Shooting =
980 980  
981 -== 13.1  MIC Mismatch or MIC Failed ==
1075 +== 14.1  MIC Mismatch or MIC Failed ==
982 982  
983 983  
984 984  (((
... ... @@ -989,7 +989,7 @@
989 989  Under normal circumstances, users need to change the APPKEY to solve this problem.
990 990  
991 991  
992 -== 13.2  The node is very close to the gateway, but the signal is poor ==
1086 +== 14.2  The node is very close to the gateway, but the signal is poor ==
993 993  
994 994  
995 995  If you are using US915 or AU915, you found the frequency points of different subband ranges in your uplink
... ... @@ -1018,7 +1018,7 @@
1018 1018  **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]]**
1019 1019  
1020 1020  
1021 -== 13.3  ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" ==
1115 +== 14.3  ChirpStackv4 node device displays "UPLINK_F_CNT_RETRANSMISSION" ==
1022 1022  
1023 1023  
1024 1024  This is because the node's packets are retransmitted, and the Fcnt of these packets is the same.
... ... @@ -1049,7 +1049,7 @@
1049 1049  [[image:image-20240717092428-4.jpeg]]
1050 1050  
1051 1051  
1052 -== 13.4  How to get the log information of the node? ==
1146 +== 14.4  How to get the log information of the node? ==
1053 1053  
1054 1054  
1055 1055  ~1. Get information about a single node.
SN50v3-LB_协议008(AU915)(1).bin
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +89.2 KB
Content