<
From version < 108.8 >
edited by Xiaoling
on 2022/07/23 14:06
To version < 108.9 >
edited by Xiaoling
on 2022/07/23 14:21
>
Change comment: There is no comment for this version

Summary

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.
... ... @@ -142,8 +142,6 @@
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 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 ==
156 +== 3.2  Add Gateway ==
159 159  
158 +
160 160  [[image:image-20220524164205-10.png]]
161 161  
162 162  
163 -== 3.3 Access the gateway GUI ==
162 +== 3.3  Access the gateway GUI ==
164 164  
164 +
165 165  Access the gateway GUI interface of LoRaWAN~-~->LoRaWAN ~-~- Basic Station
166 166  
167 167  [[image:image-20220524164319-11.png]]
168 168  
169 +
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 ==
185 +== 3.4  Start Station ==
185 185  
187 +
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 ==
191 +== 3.5  Successful Connection ==
190 190  
193 +
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  
200 +== 3.6  Trouble Shooting ==
201 +
202 +
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  
213 +
208 208  = 4. Downlink =
209 209  
210 210  == 4.1 Chirpstack Downlink Note ==
211 211  
218 +
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  
235 +== 4.2  Loraserver Downlink Note ==
236 +
237 +
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:
241 +**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  
257 +
248 248  
249 249  )))
250 250  
251 251  (((
252 -After connect
262 +**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/]]
286 +(% 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  
294 +
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  
299 +
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  
363 +== 4.3  Add the decode function in Chirpstack for the payload ==
364 +
365 +
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  
380 += 5.  Multiply Uplink in ChirpStack =
381 +
382 +
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]]
389 +
390 +
373 373  )))
374 374  
375 375  [[image:image-20220526091912-7.png]]
376 376  
395 +
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.
398 +
399 +
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:
406 +
407 +
385 385  )))
386 386  
387 387  (((
... ... @@ -391,29 +391,36 @@
391 391  [[image:image-20220525104437-22.png]]
392 392  
393 393  
417 +
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  
424 +== 5.1  Solution ==
425 +
426 +
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  
429 +
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.
431 +(% 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.**
432 +
433 +
405 405  )))
406 406  
407 407  [[image:image-20220525104532-24.png]]
408 408  
409 409  
410 -installation path:
439 +**installation path:**
411 411  
412 412  [[image:image-20220525104554-25.png]]
413 413  
414 414  
444 +
415 415  (((
416 -2. Environment variable settings:.
446 +(% 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)
454 +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\:
460 +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  
471 +(% 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.**
472 +
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  
483 +(% style="color:blue" %)**4. Compile the ADR configuration file and generate the exe file.**
484 +
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  
509 +(% style="color:blue" %)**5. Add the plugin and run the plugin.**
510 +
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  
546 +
513 513  = 6. Trouble Shooting =
514 514  
515 515  == 6.1 MIC Mismatch or MIC Failed ==
516 516  
551 +
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  )))
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0