Changes for page Notes for ChirpStack
Last modified by Kilight Cao on 2024/09/24 15:23
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 26 removed)
- image-20220525104554-25.png
- image-20220525104647-26.png
- image-20220526085155-1.png
- image-20220526085310-2.png
- image-20220526090446-3.png
- image-20220526090748-4.png
- image-20220526091602-5.png
- image-20220526091801-6.png
- image-20220526091912-7.png
- image-20220531171609-1.png
- image-20220531171651-2.png
- image-20220531171809-3.png
- image-20220531171923-4.png
- image-20220531172031-5.png
- image-20220531172158-6.png
- image-20220531172304-7.png
- image-20220531172837-8.png
- image-20220531172857-9.png
- image-20220531173236-10.png
- image-20220531173419-11.png
- image-20220531173519-12.png
- image-20220531173601-13.png
- image-20220531173658-14.png
- image-20220531173754-15.png
- image-20220531173856-16.png
- image-20220531173939-17.png
Details
- Page properties
-
- Content
-
... ... @@ -2,9 +2,6 @@ 2 2 3 3 {{toc/}} 4 4 5 - 6 - 7 - 8 8 = 1. Introduction = 9 9 10 10 (% style="color:black" %)The ChirpStack open-source LoRaWAN Network Server stack provides open-source components for LoRaWAN networks And the Chirpstack supports the users in building a private LoRaWAN Server. For more info please refer to this [[link>>url:https://www.chirpstack.io/]] ... ... @@ -33,8 +33,6 @@ 33 33 ))) 34 34 ))) 35 35 36 - 37 - 38 38 = 2. Semtech UDP = 39 39 40 40 == 2.1 Step 1. Add the Network-servers == ... ... @@ -49,32 +49,28 @@ 49 49 50 50 If the user cannot add network-Servers, re-check the ChirpStack code or the server building process. 51 51 52 -[[image:image-202205 31171609-1.png]]47 +[[image:image-20220525100158-2.png]] 53 53 54 54 Add the Network-servers 55 55 56 - 57 57 == 2.2 Step 2. Create Gateway-profiles == 58 58 59 -[[image:image-202205 31171651-2.png]]53 +[[image:image-20220525100255-3.png]] 60 60 61 61 Create Gateway-profiles 62 62 63 - 64 64 == 2.3 Step 3. Create Service-profiles == 65 65 66 -[[image:image-202205 31171809-3.png]]59 +[[image:image-20220525100322-4.png]] 67 67 68 68 Create Service-profiles 69 69 70 - 71 71 In Step 3. Create Service-profiles, the above parameters can be set. If necessary, you can set them by yourself. This is only an example. 72 72 73 73 (% style="color:red" %)**Note : Before add the gateway, the user needs to complete the preceding three steps.** 74 74 75 -If the user has completed the preceding steps, proceed to the next step. (% style="display:none" %)67 +If the user has completed the preceding steps, proceed to the next step. 76 76 77 - 78 78 == 2.4 Step 4. Add the gateway == 79 79 80 80 The example gateway id is: a840411e96744150 ... ... @@ -83,31 +83,27 @@ 83 83 (% style="color:red" %)**Note : The Gateway EUI and server addresses must match the ChirpStack configuration.** 84 84 ))) 85 85 86 -[[image:image-202205 31171923-4.png]](% style="display:none" %)77 +[[image:image-20220525100350-5.png]] 87 87 88 - 89 89 Add the gateway 90 90 91 -[[image:image-202205 31172031-5.png]]81 +[[image:image-20220525100417-6.png]] 92 92 93 93 Configure the gateway 94 94 95 - 96 96 == 2.5 Step 5. Checking gateway Status == 97 97 98 -[[image:image-202205 31172158-6.png]](% style="display:none" %)87 +[[image:image-20220525100448-7.png]] 99 99 100 - 101 101 gateway Status 102 102 103 -[[image:image-202205 31172304-7.png]]91 +[[image:image-20220525100516-8.png]] 104 104 105 105 gateway Status 106 106 107 - 108 108 = 3. Gateway Registration for Basics Station = 109 109 110 -== 3.1Introduction ==97 +== Introduction == 111 111 112 112 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. 113 113 ... ... @@ -126,14 +126,12 @@ 126 126 127 127 A gateway that can access the internet normally 128 128 116 +== 3.1 Add Gateway == 129 129 130 -== 3.2 Add Gateway == 131 - 132 132 [[image:image-20220524164205-10.png]] 133 133 120 +== 3.2 Access the gateway GUI == 134 134 135 -== 3.3 Access the gateway GUI == 136 - 137 137 Access the gateway GUI interface of LoRaWAN~-~->LoRaWAN ~-~- Basic Station 138 138 139 139 [[image:image-20220524164319-11.png]] ... ... @@ -152,31 +152,26 @@ 152 152 (% class="wikigeneratedid" %) 153 153 [[image:image-20220524164341-12.png]] 154 154 140 +== 3.3 Start Station == 155 155 156 -== 3.4 Start Station == 157 - 158 158 When the user has finished the configuration, Please click Sace&Apply to start station to connect ChirpStack 159 159 144 +== 3.4 Successful Connection == 160 160 161 -== 3.5 Successful Connection == 162 - 163 163 If user completes the above steps, which will see live date in the ChirpStack. 164 164 165 165 [[image:image-20220524164448-13.png]] 166 166 150 +== 3.5 Trouble Shooting == 167 167 168 -== 3.6 Trouble Shooting == 169 - 170 170 User can check the station log in the logread/system log page. 171 171 172 -[[image:image-202205 31172837-8.png]]154 +[[image:image-20220524164514-14.png]] 173 173 174 - 175 175 and recode the station log in the system/Recode log page. 176 176 177 -[[image:image-202205 31172857-9.png]]158 +[[image:image-20220524164541-15.png]] 178 178 179 - 180 180 = 4. Downlink = 181 181 182 182 == 4.1 Chirpstack Downlink Note == ... ... @@ -185,17 +185,14 @@ 185 185 186 186 Convert the data to Base64 187 187 168 +[[image:image-20220525101247-10.png]] 188 188 189 -[[image:image-20220531173236-10.png]] 190 - 191 191 Check ChripStack downlink DataRate 192 192 193 - 194 194 [[image:image-20220525101326-11.png]] 195 195 196 196 Make sure the RX2DR is the same in the end node 197 197 198 - 199 199 == 4.2 Loraserver Downlink Note == 200 200 201 201 User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End ... ... @@ -212,12 +212,10 @@ 212 212 User name: User name Password: password 213 213 ))) 214 214 215 -[[image:image-202205 31173419-11.png]]192 +[[image:image-20220525101401-12.png]] 216 216 217 217 ((( 218 218 MQTT Connect to ChirpStack 219 - 220 - 221 221 ))) 222 222 223 223 ((( ... ... @@ -239,23 +239,21 @@ 239 239 Payload: {"confirmed":true,"fPort":2,"data":"AwEB"} 240 240 ))) 241 241 242 -[[image:image-202205 31173519-12.png]]217 +[[image:image-20220525101436-13.png]] 243 243 244 244 MQTT Connect to ChirpStack 245 245 246 - 247 247 ((( 248 248 (% style="color:red" %)Note: Chirpstack use base64 to downlink, so need to convert the downlink payload from HEX to base64 [[https:~~/~~/base64.us/>>url:https://base64.us/]] 249 249 ))) 250 250 251 -[[image:image-202205 31173601-13.png]]225 +[[image:image-20220525101505-14.png]] 252 252 253 253 Choose to Use Hex for Encode 254 254 255 - 256 256 If we want send downstream hex 030101 to end node, the BASE64 payload is AwEB 257 257 258 -[[image:image-202205 31173658-14.png]]231 +[[image:image-20220525104025-15.png]] 259 259 260 260 ((( 261 261 Downlink payload encode javescript code: 可以在网站上运行以下Javsscript代码: ... ... @@ -318,22 +318,18 @@ 318 318 AwAA is 0x030000's base 64 Encode. 319 319 ))) 320 320 321 - 322 322 == 4.3 Add the decode function in Chirpstack for the payload == 323 323 324 324 User enters the payload code according to the steps. 325 325 326 -[[image:image-202205 31173754-15.png]]298 +[[image:image-20220525104051-16.png]] 327 327 300 +[[image:image-20220525104155-17.png]] 328 328 329 -[[image:image-202205 31173856-16.png]]302 +[[image:image-20220525104223-18.png]] 330 330 304 +[[image:image-20220525104258-19.png]] 331 331 332 -[[image:image-20220526091602-5.png]] 333 - 334 -[[image:image-20220526091801-6.png]] 335 - 336 - 337 337 = 5. Multiply Uplink in ChirpStack = 338 338 339 339 ((( ... ... @@ -344,7 +344,7 @@ 344 344 ChirpStack will auto adjust nbtrans according to uplink rssi. [[link to source>>url:https://github.com/brocaar/chirpstack-network-server/blob/master/internal/adr/adr.go]] 345 345 ))) 346 346 347 -[[image:image-2022052 6091912-7.png]]316 +[[image:image-20220525104328-20.png]] 348 348 349 349 ((( 350 350 nbtrans is a field of ADR message, in unconfirm mode, it tells end node how many time it needs to transmit for every frame. ... ... @@ -362,12 +362,10 @@ 362 362 363 363 [[image:image-20220525104437-22.png]] 364 364 365 - 366 366 Duplicate transmission in short time 367 367 368 368 [[image:image-20220525104502-23.png]] 369 369 370 - 371 371 == 5.1 Solution == 372 372 373 373 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]] ... ... @@ -376,14 +376,12 @@ 376 376 ~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. 377 377 ))) 378 378 379 -[[image:image-2022052 5104532-24.png]]346 +[[image:image-20220524165339-31.png]] 380 380 381 - 382 382 installation path: 383 383 384 -[[image:image-2022052 5104554-25.png]]350 +[[image:image-20220524165400-32.png]] 385 385 386 - 387 387 ((( 388 388 2. Environment variable settings:. 389 389 ))) ... ... @@ -398,7 +398,6 @@ 398 398 399 399 [[image:image-20220524165433-33.png]] 400 400 401 - 402 402 3)Modify the system variable Path and add C:\Go\bin\: 403 403 404 404 [[image:image-20220524165452-34.png]] ... ... @@ -407,7 +407,6 @@ 407 407 408 408 [[image:image-20220524165517-35.png]] 409 409 410 - 411 411 3. Modify the ADR configuration file according to your own needs, adr.setting.go is an example of the ADR configuration file. 412 412 413 413 The name of the plugin: Example ADR plugin: ... ... @@ -418,7 +418,6 @@ 418 418 419 419 [[image:image-20220524165557-37.png]] 420 420 421 - 422 422 4. Compile the ADR configuration file and generate the exe file. 423 423 424 424 1) Create a folder named adr-setting ... ... @@ -443,7 +443,6 @@ 443 443 444 444 [[image:image-20220524165623-38.png]] 445 445 446 - 447 447 5. Add the plugin and run the plugin. 448 448 449 449 ((( ... ... @@ -476,11 +476,10 @@ 476 476 ))) 477 477 ))) 478 478 479 -[[image:image-2022052 5104647-26.png]]440 +[[image:image-20220524165659-40.png]] 480 480 481 481 Finish. 482 482 483 - 484 484 = 6. Trouble Shooting = 485 485 486 486 == 6.1 MIC Mismatch or MIC Failed ==
- image-20220525104554-25.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -24.5 KB - Content
- image-20220525104647-26.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -23.9 KB - Content
- image-20220526085155-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -116.8 KB - Content
- image-20220526085310-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -141.7 KB - Content
- image-20220526090446-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -342.8 KB - Content
- image-20220526090748-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -214.7 KB - Content
- image-20220526091602-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -129.2 KB - Content
- image-20220526091801-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -88.1 KB - Content
- image-20220526091912-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -94.9 KB - Content
- image-20220531171609-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -79.4 KB - Content
- image-20220531171651-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -86.3 KB - Content
- image-20220531171809-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -126.4 KB - Content
- image-20220531171923-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -113.1 KB - Content
- image-20220531172031-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -62.4 KB - Content
- image-20220531172158-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -108.7 KB - Content
- image-20220531172304-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -162.5 KB - Content
- image-20220531172837-8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -67.9 KB - Content
- image-20220531172857-9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -36.6 KB - Content
- image-20220531173236-10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -160.2 KB - Content
- image-20220531173419-11.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -104.3 KB - Content
- image-20220531173519-12.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -63.9 KB - Content
- image-20220531173601-13.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -67.6 KB - Content
- image-20220531173658-14.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -59.3 KB - Content
- image-20220531173754-15.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -41.7 KB - Content
- image-20220531173856-16.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -46.7 KB - Content
- image-20220531173939-17.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -41.4 KB - Content