Changes for page PG1302 -- LoRaWAN Concentrator User Manual
Last modified by Kilight Cao on 2024/06/22 10:43
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -326,64 +326,48 @@ 326 326 We got the ether (eth0 MAC) address is b8:27:eb:49:62:bc). Add ffff at the end and remove “:” to get the gateway ID: b827ebxxxxbcffff. Input this to TTN v3. Make sure to select legacy packet forwarder. 327 327 ))) 328 328 329 -(% style="text-align:center" %) 330 330 [[image:1651745267862-321.png||height="526" width="621"]] 331 331 332 - 333 - 334 -(% style="text-align:center" %) 335 335 [[image:1651745306744-481.png||height="478" width="621"]] 336 336 337 337 After set up, the status should show not connected as below: 338 338 339 -(% style="text-align:center" %) 340 340 [[image:1651745366987-458.png||height="363" width="621"]] 341 341 342 342 343 343 ===== 5.2.1 Download and install LoRaWAN packet forwarder ===== 344 344 345 - 340 +Enable SPI and I2C first: 346 346 347 - 342 +a)SPI needs to be enabled on the Raspberry Pi 348 348 349 - 344 +Run sudo raspi-config to open the config window 350 350 351 -(% style="text-align:center" %) 352 352 [[image:1651745476754-240.png||height="235" width="631"]] 353 353 354 - 355 -(% style="text-align:center" %) 356 356 [[image:image-20220505181135-1.png]] 357 357 358 -(% style="text-align:center" %) 359 359 [[image:image-20220505181135-2.png]] 360 360 352 +In RPI , Fist: Enter root account: 361 361 362 - 363 - 364 - In RPI , Fist: Enter root account: 365 - 366 -(% style="text-align:center" %) 367 367 [[image:1651745583363-614.png]] 368 368 369 369 370 - 357 +and then run: 371 371 372 - 359 +wget [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_Gateway/PG1302/software/auto_install.sh>>url:https://www.dragino.com/downloads/downloads/LoRa_Gateway/PG1302/software/auto_install.sh]] 373 373 374 - 361 +chmod +x ./auto_install.sh 375 375 376 - 363 +./auto_install.sh 377 377 378 -(% style="text-align:center" %) 379 379 [[image:1651745611629-818.png]] 380 380 367 +This will download the packet forwarder package from Dragino Server to RPI, and start install the package. 381 381 382 - This will downloadthe packet forwarderpackagefrom Dragino ServertoRPI, and start install the package.369 +You can get these output: 383 383 384 - You can get these output: 385 - 386 -(% style="text-align:center" %) 387 387 [[image:1651745657252-173.png||height="426" width="621"]] 388 388 389 389 ... ... @@ -390,52 +390,36 @@ 390 390 ===== 5.2.2 Config Gateway ID, Frequency Band and Server address ===== 391 391 392 392 ((( 393 - 377 +After installation, user can find the configuration file in** /etc/lora/ **Replace the gateway ID we got above to the **gateway_ID** in file **local_conf.json.** 394 394 ))) 395 395 396 396 ((( 397 - **~gateway_ID**in file **local_conf.json**381 +The default LoRaWAN server points to localhost, user need to put the correct server address to the server_address field in file **local_conf.json**, like below. 398 398 ))) 399 399 400 -((( 401 - The default LoRaWAN server points to localhost, user need to put the correct server address to the 402 -))) 403 - 404 -((( 405 - server_address field in file **local_conf.json**, like below. 406 -))) 407 - 408 -(% style="text-align:center" %) 409 409 [[image:1651745709709-887.png||height="820" width="621"]] 410 410 386 +User can find the TTN v3 server address from: 411 411 412 - Usercan findTTN v3serverfrom:388 +[[Server Addresses ~| The Things Stack for LoRaWAN (thethingsindustries.com)>>url:https://www.thethingsindustries.com/docs/getting-started/server-addresses/#deployments]] 413 413 414 - [[Server Addresses ~| The Things Stack for LoRaWAN (thethingsindustries.com)>>url:https://www.thethingsindustries.com/docs/getting-started/server-addresses/#deployments]] 415 415 391 +And the default frequency band is US915 in **global_conf.json** file. 416 416 417 - And the default frequency band is US915 in **global_conf.json** file. 418 - 419 -(% style="text-align:center" %) 420 420 [[image:1651745838008-820.png||height="650" width="621"]] 421 421 422 - 423 423 * If user want to change to other frequency bands, User can copy the file from **/etc/lora/cfg-302 **and put it into** /etc/lora/global_conf.json.** 424 424 425 - 397 + 1).Chose your need the name of region frequency. 426 426 427 -(% style="text-align:center" %) 428 428 [[image:1651745867516-322.png]] 429 429 430 - 431 431 2). Use this command to copy it. 432 432 433 433 cp /etc/lora/cfg-302/EU-global_conf.json /etc/lora/global_conf.json 434 434 435 -(% style="text-align:center" %) 436 436 [[image:1651745984006-868.png]] 437 437 438 - 439 439 * If user wants to change to other LoRaWAN server, modify the **global_conf.json** file. 440 440 441 441 (% class="wikigeneratedid" %) ... ... @@ -446,32 +446,36 @@ 446 446 ===== 5.2.3 Check result ===== 447 447 448 448 ((( 449 - 417 +Run below command to restart the dragino_fwd: 450 450 ))) 451 451 452 452 ((( 453 - sudo systemctl stop draginofwd 421 +(% class="box infomessage" %) 422 +((( 423 +sudo systemctl stop draginofwd 454 454 ))) 455 455 426 +(% class="box infomessage" %) 456 456 ((( 457 - 428 +sudo systemctl start draginofwd 458 458 ))) 430 +))) 459 459 460 460 ((( 461 - 433 +debug check the ruing status of fwd: 462 462 ))) 463 463 464 464 ((( 465 - sudo systemctl status draginofwd 437 +(% class="box infomessage" %) 438 +((( 439 +sudo systemctl status draginofwd 466 466 ))) 441 +))) 467 467 468 -(% style="text-align:center" %) 469 469 [[image:1651746045057-414.png]] 470 470 445 +The dragino_fwd will start with the new gateway ID and TTN v3 should show the connection ok: 471 471 472 - The dragino_fwd will start with the new gateway ID and TTN v3 should show the connection ok: 473 - 474 -(% style="text-align:center" %) 475 475 [[image:1651746078253-168.png||height="372" width="621"]] 476 476 477 477