Changes for page Notes for ChirpStack
Last modified by Edwin Chen on 2025/01/30 09:53
Change comment:
Uploaded new attachment "image-20231108165128-3.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Kilight1 +XWiki.ting - Content
-
... ... @@ -37,24 +37,28 @@ 37 37 ))) 38 38 ))) 39 39 40 + 40 40 = 2. Node usage introduction = 41 41 42 42 == 2.1 Register Node == 43 43 44 -Step 1: Add application 45 45 46 +**Step 1: Add application** 47 + 46 46 [[image:image-20230702094608-1.png||height="537" width="1015"]] 47 47 48 -Step 2:Fill name 49 49 51 +**Step 2:Fill name** 52 + 50 50 [[image:image-20230702094852-2.png]] 51 51 52 -Step4 :Add device profile 53 53 56 +**Step3 :Add device profile** 57 + 54 54 [[image:image-20230702095114-4.png||height="448" width="1061"]] 55 55 56 56 57 -Step 5:Configure your device profile61 +**Step4 :Configure your device profile** 58 58 59 59 [[image:image-20230702095557-5.png||height="648" width="1121"]] 60 60 ... ... @@ -67,20 +67,21 @@ 67 67 [[image:image-20230702095827-7.png||height="490" width="1138"]] 68 68 69 69 70 -Step 6:add device74 +**Step5 :add device** 71 71 72 72 [[image:image-20230702094944-3.png||height="439" width="1153"]] 73 73 74 74 79 +[[image:image-20230702100312-8.png||height="550" width="1106"]] 75 75 76 -[[image:image-20230702100312-8.png||height="585" width="1176"]] 77 77 78 78 [[image:image-20230702100543-10.png||height="313" width="1099"]] 79 79 84 + 80 80 [[image:image-20230702100930-11.png||height="613" width="1098"]] 81 81 82 82 83 -= 3. Semtech UDP = 88 += 3. Semtech UDP for ChirpStack v3 = 84 84 85 85 == 3.1 Step 1. Add the Network-servers == 86 86 ... ... @@ -96,7 +96,6 @@ 96 96 97 97 (% style="color:red" %)**If the user cannot add network-Servers, re-check the ChirpStack code or the server building process.** 98 98 99 - 100 100 [[image:image-20220531171609-1.png||height="638" width="1268"]](% style="display:none" %) 101 101 102 102 Add the Network-servers ... ... @@ -132,8 +132,6 @@ 132 132 133 133 ((( 134 134 (% style="color:red" %)**Note : The Gateway EUI and server addresses must match the ChirpStack configuration.** 135 - 136 - 137 137 ))) 138 138 139 139 [[image:image-20220531171923-4.png||height="745" width="1253"]](% style="display:none" %) ... ... @@ -141,7 +141,6 @@ 141 141 Add the gateway 142 142 143 143 144 - 145 145 [[image:image-20220531172031-5.png]] 146 146 147 147 Configure the gateway ... ... @@ -161,11 +161,26 @@ 161 161 gateway Status 162 162 163 163 164 -= 4. GatewayRegistrationforBasicsStation=165 += 4. Semtech UDP for ChirpStack v4 = 165 165 166 -== 4.1 Introduction==167 +== 4.1 Step 1. Add the gateway == 167 167 168 168 170 +[[image:image-20230926092907-1.png||height="598" width="1007"]] 171 + 172 + 173 +[[image:image-20230926093057-2.png||height="541" width="1002"]] 174 + 175 + 176 +== 4.2 Step 2. Checking gateway Status == 177 + 178 +[[image:image-20230926093233-3.png||height="581" width="1018"]] 179 + 180 += 5. Gateway Registration for Basics Station = 181 + 182 +== 5.1 Introduction == 183 + 184 + 169 169 The [[Semtech Basic Station>>url:https://doc.sm.tc/station/]] backend implements the [[LNS protocol>>url:https://doc.sm.tc/station/tcproto.html]]. It exposes a WebSocket handler to which Basic Station powered gateways can connect. 170 170 171 171 ChirpStack Open-Source LoRaWAN® Network Server needs to set up a configuration that can use Semtech BasicStation. ... ... @@ -186,13 +186,13 @@ 186 186 A gateway that can access the internet normally 187 187 188 188 189 -== 4.2 Add Gateway ==205 +== 5.2 Add Gateway == 190 190 191 191 192 192 [[image:image-20220524164205-10.png]] 193 193 194 194 195 -== 4.3 Access the gateway GUI ==211 +== 5.3 Access the gateway GUI == 196 196 197 197 198 198 Access the gateway GUI interface of LoRaWAN~-~->LoRaWAN ~-~- Basic Station ... ... @@ -215,13 +215,13 @@ 215 215 [[image:image-20220524164341-12.png]] 216 216 217 217 218 -== 4.4 Start Station ==234 +== 5.4 Start Station == 219 219 220 220 221 221 When the user has finished the configuration, Please click **Sace&Apply** to start station to connect ChirpStack. 222 222 223 223 224 -== 4.5 Successful Connection ==240 +== 5.5 Successful Connection == 225 225 226 226 227 227 If user completes the above steps, which will see live date in the ChirpStack. ... ... @@ -229,7 +229,7 @@ 229 229 [[image:image-20220524164448-13.png]] 230 230 231 231 232 -== 4.6 Trouble Shooting ==248 +== 5.6 Trouble Shooting == 233 233 234 234 235 235 User can check the station log in the logread/system log page. ... ... @@ -242,7 +242,7 @@ 242 242 [[image:image-20220531172857-9.png]] 243 243 244 244 245 -= 5. How the gateway connects to Chirpstack v3 via gateway-bridge =261 += 6. How the gateway connects to Chirpstack v3 via gateway-bridge = 246 246 247 247 248 248 (% style="color:blue" %)**Below list the support products and Requirements:** ... ... @@ -263,7 +263,7 @@ 263 263 The following example does not have configuration certificates: 264 264 265 265 266 -== 5.1 Configure Packet Forwarder ==282 +== 6.1 Configure Packet Forwarder == 267 267 268 268 269 269 In the Dragino gateway web interface, you need to configure the Packet Forwarder so that it forwards its data to the port. localhost:1700 or 127.0.0.1:1700 ... ... @@ -281,7 +281,7 @@ 281 281 [[image:image-20221222114220-2.png||height="748" width="931"]] 282 282 283 283 284 -== 5.2 Configuring gateway frequency ==300 +== 6.2 Configuring gateway frequency == 285 285 286 286 287 287 (% style="color:red" %)**Note: Gateway frequencies must match** ... ... @@ -289,7 +289,7 @@ 289 289 [[image:image-20221222134830-3.png||height="408" width="923"]] 290 290 291 291 292 -== 5.3 Generate and modify the gateway-bridge configuration file ==308 +== 6.3 Generate and modify the gateway-bridge configuration file == 293 293 294 294 295 295 **1)Generate the gateway-bridge configuration file** ... ... @@ -316,7 +316,7 @@ 316 316 [[image:image-20230415165254-1.png||height="583" width="956"]] 317 317 318 318 319 -== 5.4 Debug ==335 +== 6.4 Debug == 320 320 321 321 322 322 After the above configuration is completed, the user can enter the command to debug the gateway-bridge connection ... ... @@ -339,7 +339,7 @@ 339 339 More information can be found on the **[[ChirpStack website>>https://www.chirpstack.io/docs/]]**or **[[Forum>>url:https://forum.chirpstack.io/]]** 340 340 341 341 342 -== 5.5 (Re)start and stop gateway-bridge ==358 +== 6.5 (Re)start and stop gateway-bridge == 343 343 344 344 345 345 Use the following commands to (re)start and stop the ChirpStack Gateway Bridge Service: ... ... @@ -360,7 +360,7 @@ 360 360 ))) 361 361 362 362 363 -= 6. How the gateway connects to Chirpstack v4 via gateway-bridge =379 += 7. How the gateway connects to Chirpstack v4 via gateway-bridge = 364 364 365 365 366 366 (% style="color:blue" %)**Below list the support products and Requirements:** ... ... @@ -378,7 +378,7 @@ 378 378 A gateway that can access the internet normally 379 379 380 380 381 -== 6.1 Configure Packet Forwarder ==397 +== 7.1 Configure Packet Forwarder == 382 382 383 383 384 384 In the Dragino gateway web interface, you need to configure the Packet Forwarder so that it forwards its data to the port. localhost:1700 or 127.0.0.1:1700 ... ... @@ -396,7 +396,7 @@ 396 396 [[image:image-20221222114220-2.png||height="748" width="931"]] 397 397 398 398 399 -== 6.2 Configuring gateway frequency ==415 +== 7.2 Configuring gateway frequency == 400 400 401 401 402 402 (% style="color:red" %)**Note: Gateway frequencies must match** ... ... @@ -404,7 +404,7 @@ 404 404 [[image:image-20221222134830-3.png||height="408" width="923"]] 405 405 406 406 407 -== 6.3 Modify the gateway-bridge configuration file ==423 +== 7.3 Modify the gateway-bridge configuration file == 408 408 409 409 410 410 Run the gateway command line command to modify the gateway-bridge configuration file: ... ... @@ -419,6 +419,7 @@ 419 419 420 420 [[image:image-20221222140203-4.png||height="875" width="806"]] 421 421 438 + 422 422 [[image:image-20221230094246-1.png||height="768" width="783"]] 423 423 424 424 (% class="wikigeneratedid" id="H" %) ... ... @@ -425,7 +425,7 @@ 425 425 After the modification, run the following command: **/etc/init.d/chirpstack-gateway-bridge restart** 426 426 427 427 428 -== 6.4 (Re)start and stop gateway-bridge ==445 +== 7.4 (Re)start and stop gateway-bridge == 429 429 430 430 431 431 Use the following commands to (re)start and stop the ChirpStack Gateway Bridge Service: ... ... @@ -446,7 +446,7 @@ 446 446 ))) 447 447 448 448 449 -== 6.5 Successful Connection ==466 +== 7.5 Successful Connection == 450 450 451 451 452 452 [[image:image-20221222141754-5.png||height="488" width="1150"]] ... ... @@ -455,27 +455,24 @@ 455 455 [[image:image-20221222141830-6.png||height="582" width="1153"]] 456 456 457 457 458 -= 7. Downlink =475 += 8. Downlink = 459 459 460 -== 7.1onvertHEX toBase64==477 +=== 8.1 Chirpstack Downlink Note === 461 461 479 +==== 8.1.1 Select HEX format for downlink ==== 462 462 463 -(% style="color:red" %)**Note: Chirpstack uses base64 to downlink, the end node user manual provides HEX format of the downlink commands. So user needs to convert the HEX to Base64.** 464 464 465 -** [[Online HEX toBase64Converter>>https://base64.guru/converter/encode/hex]]:**482 +(% style="color:red" %)**Note: The end node user manual provides HEX format of the downlink commands, so users can directly select HEX format downlink.** 466 466 467 -[[image:image-202 21010193350-1.png]]484 +[[image:image-20231108140540-1.png||height="502" width="973"]] 468 468 469 469 470 470 471 -**[[Online Base64 to Hex converter>>https://base64.guru/converter/decode/hex]]** 472 472 473 -[[image:image-20221010193621-2.png]] 474 474 490 +== 8.2 Chirpstack Downlink Note == 475 475 476 -== 7.2 Chirpstack Downlink Note == 477 477 478 - 479 479 [[image:image-20220601102543-2.png]] 480 480 481 481 **Convert the data to Base64** ... ... @@ -494,7 +494,7 @@ 494 494 **Make sure the RX2DR is the same in the end node** 495 495 496 496 497 -== 7.3 Loraserver Downlink Note ==511 +== 8.3 Loraserver Downlink Note == 498 498 499 499 500 500 User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End ... ... @@ -544,13 +544,11 @@ 544 544 **MQTT Connect to ChirpStack** 545 545 546 546 547 -**If we want to send downstream hex 030101 to end node, the BASE64 payload is AwEB** 548 548 549 -[[image:image-20220531173658-14.png]] 550 - 551 - 552 552 ((( 553 -Downlink payload encode javescript code: 可以在网站上运行以下Javsscript代码: 563 +Downlink payload encode javescript code. 564 + 565 +We can run the following Javsscript code on the site: 554 554 ))) 555 555 556 556 (% class="box" %) ... ... @@ -611,7 +611,7 @@ 611 611 ))) 612 612 613 613 614 -== 7.4 Add the decode function in Chirpstack for the payload ==626 +== 8.4 Add the decode function in Chirpstack for the payload == 615 615 616 616 617 617 User enters the payload code according to the steps. ... ... @@ -629,7 +629,7 @@ 629 629 [[image:image-20220531174046-19.png]] 630 630 631 631 632 -= 8. Multiply Uplink in ChirpStack =644 += 9. Multiply Uplink in ChirpStack = 633 633 634 634 635 635 ((( ... ... @@ -669,19 +669,16 @@ 669 669 670 670 **Duplicate transmission in short time** 671 671 672 -[[image:image-20220601102430-1.png||height="5 98" width="1319"]]684 +[[image:image-20220601102430-1.png||height="508" width="1120"]] 673 673 674 674 675 -== 8.1 Solution ==687 +== 9.1 Solution == 676 676 677 677 678 678 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]] 679 679 680 - 681 681 ((( 682 682 (% style="color:blue" %)**1. Install the GO compilation environment: Download the corresponding version of the Go compiler at [[https:~~/~~/go.dev/dl/>>url:https://go.dev/dl/]] and install it.** 683 - 684 - 685 685 ))) 686 686 687 687 [[image:image-20220525104532-24.png]] ... ... @@ -794,7 +794,7 @@ 794 794 Finish. 795 795 796 796 797 -= 9. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. =806 += 10. How to store/get all data traffic for a specific sensor, including raw payload, and uplink/ downlink history. = 798 798 799 799 800 800 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. ... ... @@ -804,7 +804,7 @@ 804 804 (% style="color:blue" %)**//1). Chirpstack ~-~-> Node-red//** 805 805 806 806 807 -[[image:image-20221012184501-1.png]] 816 +[[image:image-20221012184501-1.png||height="608" width="1041"]] 808 808 809 809 810 810 Use MQTT in Nore-red to subscribe to topics published by the chirpstack-application and then continuously write to a file ... ... @@ -840,11 +840,12 @@ 840 840 **mosquitto_sub -h IPADDRESS -p 8883 ~-~-insecure ~-~-cafile ca.pem ~-~-cert cert.pem ~-~-key key.pem -t "application/#" -v** 841 841 ))) 842 842 843 -[[image:image-20221012173639-1.png]] 852 +[[image:image-20221012173639-1.png||height="273" width="1206"]] 844 844 845 -= 10. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 = 846 846 855 += 11. Example: Use Local Server ChirpStack and Node-Red in LPS8v2 = 847 847 857 + 848 848 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: 849 849 850 850 * LHT65N register on LPS8v2 Built-In ChirpStack server already ... ... @@ -853,7 +853,7 @@ 853 853 Below are the steps to plot the sensor data on LPS8v2 Node-Red. 854 854 855 855 856 -== 1 0.1 Link Node-Red to Local ChirpStack ==866 +== 11.1 Link Node-Red to Local ChirpStack == 857 857 858 858 859 859 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"]]** ... ... @@ -880,7 +880,7 @@ 880 880 [[image:image-20230527144206-2.png||height="590" width="1136"]] 881 881 882 882 883 -(% style="color:blue" %)3. **Finally, click "Update" and Deploy** 893 +(% style="color:blue" %)**3.** **Finally, click "Update" and Deploy** 884 884 885 885 "Connected" indicates that the Link Node-red to Local Chirpstack is normal. 886 886 ... ... @@ -887,7 +887,7 @@ 887 887 [[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"]] 888 888 889 889 890 -== 1 0.2 Check result. ==900 +== 11.2 Check result. == 891 891 892 892 893 893 Users can check logs by adding debug. ... ... @@ -897,9 +897,9 @@ 897 897 [[image:image-20230529150923-1.png||height="424" width="1118"]] 898 898 899 899 900 -= 1 1. Trouble Shooting =910 += 12. Trouble Shooting = 901 901 902 -== 1 1.1 MIC Mismatch or MIC Failed ==912 +== 12.1 MIC Mismatch or MIC Failed == 903 903 904 904 905 905 ((( ... ... @@ -910,8 +910,9 @@ 910 910 Under normal circumstances, users need to change the APPKEY to solve this problem. 911 911 912 912 913 -== 1 1.2 The node is very close to the gateway, but the signal is poor ==923 +== 12.2 The node is very close to the gateway, but the signal is poor == 914 914 925 + 915 915 If you are using US915 or AU915, you found the frequency points of different subband ranges in your uplink 916 916 917 917 Like that:Both 905.1Mhz and 902.3Mhz appear on uplink ... ... @@ -935,5 +935,7 @@ 935 935 936 936 [[image:image-20230821113618-3.png]] 937 937 938 -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]] 949 +**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]]** 950 + 951 + 939 939 )))
- image-20231108140540-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +46.3 KB - Content
- image-20231108164914-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +37.2 KB - Content
- image-20231108165128-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +43.3 KB - Content