Changes for page Notes for ChirpStack
Last modified by Edwin Chen on 2025/01/30 09:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -125,10 +125,10 @@ 125 125 126 126 127 127 128 -= 3. Gateway Registration for Basics Station = 128 += 3. Gateway Registration for Basics Station = 129 129 130 130 131 -== 3.1 Introduction == 131 +== 3.1 Introduction == 132 132 133 133 134 134 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. ... ... @@ -141,9 +141,6 @@ 141 141 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]] 142 142 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/]] 143 143 144 - 145 - 146 - 147 147 (% style="color:blue" %)**How to set up chirpStack Basic Station** 148 148 149 149 Users can check out the ChirpStack Basic Station [[link>>https://www.chirpstack.io/gateway-bridge/backends/basic-station/]] and [[forum>>https://forum.chirpstack.io/search?q=basic%20station]] ... ... @@ -155,17 +155,20 @@ 155 155 156 156 157 157 158 -== 3.2 Add Gateway == 155 +== 3.2 Add Gateway == 159 159 157 + 160 160 [[image:image-20220524164205-10.png]] 161 161 162 162 163 -== 3.3 Access the gateway GUI == 161 +== 3.3 Access the gateway GUI == 164 164 163 + 165 165 Access the gateway GUI interface of LoRaWAN~-~->LoRaWAN ~-~- Basic Station 166 166 167 167 [[image:image-20220524164319-11.png]] 168 168 168 + 169 169 User need to Choose the ChirpStack/Senet ~-~- Basic Station , input Server URI and Upload the TLS Certificate 170 170 171 171 (% class="box" %) ... ... @@ -181,20 +181,24 @@ 181 181 [[image:image-20220524164341-12.png]] 182 182 183 183 184 -== 3.4 Start Station == 184 +== 3.4 Start Station == 185 185 186 + 186 186 When the user has finished the configuration, Please click Sace&Apply to start station to connect ChirpStack 187 187 188 188 189 -== 3.5 Successful Connection == 190 +== 3.5 Successful Connection == 190 190 192 + 191 191 If user completes the above steps, which will see live date in the ChirpStack. 192 192 193 193 [[image:image-20220524164448-13.png]] 194 194 195 195 196 -== 3.6 Trouble Shooting == 197 197 199 +== 3.6 Trouble Shooting == 200 + 201 + 198 198 User can check the station log in the logread/system log page. 199 199 200 200 [[image:image-20220531172837-8.png]] ... ... @@ -205,10 +205,12 @@ 205 205 [[image:image-20220531172857-9.png]] 206 206 207 207 212 + 208 208 = 4. Downlink = 209 209 210 210 == 4.1 Chirpstack Downlink Note == 211 211 217 + 212 212 [[image:image-20220601102543-2.png]] 213 213 214 214 Convert the data to Base64 ... ... @@ -224,12 +224,14 @@ 224 224 Make sure the RX2DR is the same in the end node 225 225 226 226 227 -== 4.2 Loraserver Downlink Note == 228 228 234 +== 4.2 Loraserver Downlink Note == 235 + 236 + 229 229 User can use MQTT to send downlink payload to ChirpStack to perform downstream to LoRaWAN End 230 230 231 231 ((( 232 -Below is examples: 240 +**Below is examples:** 233 233 ))) 234 234 235 235 (% class="box" %) ... ... @@ -245,11 +245,12 @@ 245 245 ((( 246 246 MQTT Connect to ChirpStack 247 247 256 + 248 248 249 249 ))) 250 250 251 251 ((( 252 -After connect 261 +**After connect** 253 253 ))) 254 254 255 255 (% class="box" %) ... ... @@ -273,7 +273,7 @@ 273 273 274 274 275 275 ((( 276 -(% 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/]] 285 +(% 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/]]** 277 277 ))) 278 278 279 279 [[image:image-20220531173601-13.png]] ... ... @@ -281,10 +281,12 @@ 281 281 Choose to Use Hex for Encode 282 282 283 283 293 + 284 284 If we want send downstream hex 030101 to end node, the BASE64 payload is AwEB 285 285 286 286 [[image:image-20220531173658-14.png]] 287 287 298 + 288 288 ((( 289 289 Downlink payload encode javescript code: 可以在网站上运行以下Javsscript代码: 290 290 ))) ... ... @@ -347,8 +347,10 @@ 347 347 ))) 348 348 349 349 350 -== 4.3 Add the decode function in Chirpstack for the payload == 351 351 362 +== 4.3 Add the decode function in Chirpstack for the payload == 363 + 364 + 352 352 User enters the payload code according to the steps. 353 353 354 354 [[image:image-20220531173754-15.png]] ... ... @@ -362,8 +362,10 @@ 362 362 [[image:image-20220531174046-19.png]] 363 363 364 364 365 -= 5. Multiply Uplink in ChirpStack = 366 366 379 += 5. Multiply Uplink in ChirpStack = 380 + 381 + 367 367 ((( 368 368 nbtrans field is the value to determine the re-transmission time for unconfirmed uplink data. 369 369 ))) ... ... @@ -370,12 +370,17 @@ 370 370 371 371 ((( 372 372 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]] 388 + 389 + 373 373 ))) 374 374 375 375 [[image:image-20220526091912-7.png]] 376 376 394 + 377 377 ((( 378 378 nbtrans is a field of ADR message, in unconfirm mode, it tells end node how many time it needs to transmit for every frame. 397 + 398 + 379 379 ))) 380 380 381 381 [[image:image-20220525104359-21.png]] ... ... @@ -382,6 +382,8 @@ 382 382 383 383 ((( 384 384 Above behaviour will cause the platform shows below two cases of error: 405 + 406 + 385 385 ))) 386 386 387 387 ((( ... ... @@ -391,29 +391,36 @@ 391 391 [[image:image-20220525104437-22.png]] 392 392 393 393 416 + 394 394 Duplicate transmission in short time 395 395 396 396 [[image:image-20220601102430-1.png]] 397 397 398 398 399 -== 5.1 Solution == 400 400 423 +== 5.1 Solution == 424 + 425 + 401 401 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]] 402 402 428 + 403 403 ((( 404 -~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. 430 +(% 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.** 431 + 432 + 405 405 ))) 406 406 407 407 [[image:image-20220525104532-24.png]] 408 408 409 409 410 -installation path: 438 +**installation path:** 411 411 412 412 [[image:image-20220525104554-25.png]] 413 413 414 414 443 + 415 415 ((( 416 -2. Environment variable settings: .445 +(% style="color:blue" %)**2. Environment variable settings:** 417 417 ))) 418 418 419 419 ((( ... ... @@ -421,13 +421,13 @@ 421 421 ))) 422 422 423 423 ((( 424 -2)Set the variable name GOROOT and the variable value C:\Go\ (installation directory) 453 +2) Set the variable name GOROOT and the variable value C:\Go\ (installation directory) 425 425 ))) 426 426 427 427 [[image:image-20220524165433-33.png]] 428 428 429 429 430 -3)Modify the system variable Path and add C:\Go\bin\: 459 +3) Modify the system variable Path and add C:\Go\bin\: 431 431 432 432 [[image:image-20220524165452-34.png]] 433 433 ... ... @@ -437,8 +437,9 @@ 437 437 [[image:image-20220524165517-35.png]] 438 438 439 439 440 -3. Modify the ADR configuration file according to your own needs, adr.setting.go is an example of the ADR configuration file. 441 441 470 +(% style="color:blue" %)**3. Modify the ADR configuration file according to your own needs, adr.setting.go is an example of the ADR configuration file.** 471 + 442 442 The name of the plugin: Example ADR plugin: 443 443 444 444 [[image:image-20220524165540-36.png]] ... ... @@ -448,8 +448,9 @@ 448 448 [[image:image-20220524165557-37.png]] 449 449 450 450 451 -4. Compile the ADR configuration file and generate the exe file. 452 452 482 +(% style="color:blue" %)**4. Compile the ADR configuration file and generate the exe file.** 483 + 453 453 1) Create a folder named adr-setting 454 454 455 455 2) Open the adr-setting folder ... ... @@ -473,8 +473,9 @@ 473 473 [[image:image-20220524165623-38.png]] 474 474 475 475 476 -5. Add the plugin and run the plugin. 477 477 508 +(% style="color:blue" %)**5. Add the plugin and run the plugin.** 509 + 478 478 ((( 479 479 The exe file generated in the previous step is placed in the same root directory as chirpstack-network-server.toml, and the ADR plugin is added to the toml file. The location of the addition is as follows: 480 480 ))) ... ... @@ -510,10 +510,12 @@ 510 510 Finish. 511 511 512 512 513 -= 6. Trouble Shooting = 514 514 515 -= =6.1MICMismatchr MIC Failed==546 += 6. Trouble Shooting = 516 516 548 +== 6.1 MIC Mismatch or MIC Failed == 549 + 550 + 517 517 ((( 518 518 When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs. 519 519 )))