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
-
... ... @@ -11,65 +11,43 @@ 11 11 12 12 **PG1302 LoRaWAN Concentrator User Manual** 13 13 14 +[[image:1651796979665-130.png]] 14 14 16 +Document Version: 1.0.0 15 15 18 +Image Version: v1.0 16 16 17 17 18 -{{toc/}} 19 19 20 20 21 21 ---- 22 22 23 -(% class="wikigeneratedid" id="H" %) 24 -((( 25 - 26 -))) 25 +{{toc/}} 27 27 28 - === 1. Introduction ===27 +---- 29 29 30 -==== 1.1 What is PG1302 LoRaWAN Concentrator? ==== 31 31 32 -((( 33 -((( 34 - The PG1302 is a multi-channel high performance transmitter/receiver designed to simultaneously receive several LoRa packets using random spreading factors on 35 -))) 36 36 31 +(% class="wikigeneratedid" id="H" %) 37 37 ((( 38 - random channels. Its goal is to enable robust connection between a central wireless data concentrator and a massive amount of wireless end-points spread over a 39 -))) 40 - 41 -((( 42 - very wide range of distances. 43 -))) 44 - 45 -((( 46 46 47 47 ))) 48 -))) 49 49 50 -((( 51 -((( 52 - The PG1302 is design to use with Raspberry Pi to build smart metering fixed networks and Internet of Things applications with up to 5000 nodes per km2 in moderately 53 -))) 36 +=== 1. Introduction === 54 54 55 -((( 56 - interfered environment. 57 -))) 38 +==== 1.1 What is PG1302 LoRaWAN Concentrator? ==== 58 58 59 59 ((( 60 - 41 +The PG1302 is a multi-channel high performance transmitter/receiver designed to simultaneously receive several LoRa packets using random spreading factors on random channels. Its goal is to enable robust connection between a central wireless data concentrator and a massive amount of wireless end-points spread over a very wide range of distances. 61 61 ))) 62 -))) 63 63 64 64 ((( 65 -((( 66 - PG1302 is fully compatible with RPi3/4, users can use the pre-build OS from Dragino to set up and easy to use the module by Web UI. Or install the raw lorawan driver 45 +The PG1302 is design to use with Raspberry Pi to build smart metering fixed networks and Internet of Things applications with up to 5000 nodes per km2 in moderately interfered environment. 67 67 ))) 68 68 69 69 ((( 70 - in the exist OS. 49 +PG1302 is fully compatible with RPi3/4, users can use the pre-build OS from Dragino to set up and easy to use the module by Web UI. Or install the raw lorawan driver in the exist OS. 71 71 ))) 72 -))) 73 73 74 74 ((( 75 75 ((( ... ... @@ -100,16 +100,16 @@ 100 100 101 101 ==== 1.5 LEDs ==== 102 102 103 - TX: Blink when transmit a packet 81 + TX: Blink when transmit a packet 104 104 105 - RX: Blink when receive a packet 83 + RX: Blink when receive a packet 106 106 107 - Config: Always ON 85 + Config: Always ON 108 108 109 109 110 110 ==== 1.6 Power Consumption ==== 111 111 112 - TBD 90 + TBD 113 113 114 114 115 115 ==== 1.7 Applications ==== ... ... @@ -125,10 +125,8 @@ 125 125 126 126 ==== 2.1 System structure ==== 127 127 128 - This example is an example to show how to set up the PG1302 + RPi as a LoRaWAN gateway to use with [[TheThingsNetwork>> url:http://www.thethingsnetwork.org/]](TTN) LoRaWAN server.106 + This example is an example to show how to set up the PG1302 + RPi as a LoRaWAN gateway to use with [[TheThingsNetwork>>http://www.thethingsnetwork.org/]](TTN) LoRaWAN server.. Set up method for other server are similar。 129 129 130 - Set up method for other server are similar. 131 - 132 132 (% style="text-align:center" %) 133 133 [[image:1651743698677-436.png||height="457" width="686"]] 134 134 ... ... @@ -161,7 +161,7 @@ 161 161 162 162 ==== 4.2 Flash the image to SD card ==== 163 163 164 - 140 + Flash the image to SD card: 165 165 166 166 (% style="text-align:center" %) 167 167 [[image:1651744119133-233.png||height="373" width="621"]] ... ... @@ -171,23 +171,12 @@ 171 171 [[https:~~/~~/www.balena.io/etcher/>>https://www.balena.io/etcher/]] 172 172 173 173 174 -==== 4.3 Access the Linux console ==== 150 +==== 4.3 Access the Linux console. ==== 175 175 176 -((( 177 -((( 178 - Connect the RPI Ethernet port to your router, RPi will obtain an IP address from your router. In the router’s management portal, you should be 179 -))) 152 + Connect the RPI Ethernet port to your router, RPi will obtain an IP address from your router. In the router’s management portal, you should be able to find what IP address the router has assigned to the RPI. You can use this IP to connect the WEB UI or SSH access of RPI. 180 180 181 -((( 182 - able to find what IP address the router has assigned to the RPI. You can use this IP to connect the WEB UI or SSH access of RPI. 183 -))) 154 + Make sure your PC and the RPI is in the same network, then use a SSH tool (such as [[putty>>url:http://www.chiark.greenend.org.uk/~~sgtatham/putty/download.html]]) to access it. Below are screenshots 184 184 185 -((( 186 - Make sure your PC and the RPI is in the same network, then use a SSH tool (such as [[putty>>url:http://www.chiark.greenend.org.uk/~~sgtatham/putty/download.html]]) to access it. Below are screenshots 187 -))) 188 -))) 189 - 190 - 191 191 (% style="text-align:center" %) 192 192 [[image:1651744193675-591.png||height="450" width="466"]] 193 193 ... ... @@ -214,14 +214,15 @@ 214 214 215 215 ===== 4.4.1 Home page ===== 216 216 217 - Open a browser on the PC and type the RPI ip address 182 + Open a browser on the PC and type the RPI ip address 218 218 219 - 184 + [[http:~~/~~/IP_ADDRESS** **>>url:http://192.168.1.xx/]] (If the IP is assigned by uplink router) 220 220 221 - You will see the login interface of RPI as shown below. 222 222 223 - Theaccountdetailsfor WebLoginare:187 + You will see the login interface of RPI as shown below. 224 224 189 + The account details for Web Login are: 190 + 225 225 **~ User Name: root** 226 226 227 227 **~ Password: dragino** ... ... @@ -262,21 +262,24 @@ 262 262 (% style="text-align:center" %) 263 263 [[image:1651744767914-283.png||height="352" width="621"]] 264 264 265 - Note *: See this instruction for how to configure TTN. 266 266 267 - [[https:~~/~~/wiki.dragino.com/index.php?title=Notes_for_TTN>>url:https://wiki.dragino.com/index.php?title=Notes_for_TTN||style="background-color: rgb(255, 255, 255);"]] 268 268 233 + Note *: See this instruction for how to configure TTN. 269 269 235 + [[https:~~/~~/wiki.dragino.com/index.php?title=Notes_for_TTN>>url:https://wiki.dragino.com/index.php?title=Notes_for_TTN]] 236 + 237 + 270 270 ====== 4.4.3.2 Basic Station ====== 271 271 272 272 (% style="text-align:center" %) 273 273 [[image:1651744890629-683.png||height="380" width="621"]] 274 274 275 - Note *: See this instruction for how to configure TTN. 276 276 277 - [[https:~~/~~/wiki.dragino.com/index.php?title=Notes_for_AWS-IoT-Core>>url:https://wiki.dragino.com/index.php?title=Notes_for_AWS-IoT-Core]]244 + Note *: See this instruction for how to configure TTN. 278 278 246 + [[https:~~/~~/wiki.dragino.com/index.php?title=Notes_for_AWS-IoT-Core>>url:https://wiki.dragino.com/index.php?title=Notes_for_AWS-IoT-Core]] 279 279 248 + 280 280 ===== 4.4.4 LogRead ===== 281 281 282 282 ====== 4.4.4.1 LoRa Log ====== ... ... @@ -284,12 +284,13 @@ 284 284 (% style="text-align:center" %) 285 285 [[image:1651744955955-452.png||height="571" width="621"]] 286 286 287 - Show the frequency for LoRa Radio and traffics. 288 288 257 + Show the frequency for LoRa Radio and traffics. 289 289 259 + 290 290 ====== 4.4.4.2 System Log ====== 291 291 292 - Show system log. 262 + Show system log. 293 293 294 294 (% style="text-align:center" %) 295 295 [[image:1651745003470-264.png||height="477" width="621"]] ... ... @@ -308,7 +308,7 @@ 308 308 309 309 ==== 5.1 OS requirement ==== 310 310 311 - RPI in this example is RPI model 4B with fresh Raspbian OS install. 281 + RPI in this example is RPI model 4B with fresh Raspbian OS install. 312 312 313 313 pi@raspberrypi:~~$ cat /etc/os-release 314 314 ... ... @@ -333,18 +333,16 @@ 333 333 334 334 ==== 5.2 Get Gateway ID in Raspberry and input this in TTN v3. ==== 335 335 336 - In RPI, run below command to get a Gateway ID 306 + In RPI, run below command to get a Gateway ID 337 337 338 - (%class="mark"%)ifconfig eth0308 + ifconfig eth0 339 339 340 340 (% style="text-align:center" %) 341 341 [[image:1651745210205-512.png||height="130" width="621"]] 342 342 343 343 344 - 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. 314 + 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. 345 345 346 - Make sure to select legacy packet forwarder. 347 - 348 348 (% style="text-align:center" %) 349 349 [[image:1651745267862-321.png||height="526" width="621"]] 350 350 ... ... @@ -406,22 +406,22 @@ 406 406 [[image:1651745657252-173.png||height="426" width="621"]] 407 407 408 408 409 -===== 5. 2.2 Config Gateway ID, Frequency Band and Server address =====377 +===== 5.5.2 Config Gateway ID, Frequency Band and Server address ===== 410 410 411 - 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** 379 + 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** 412 412 413 - 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. 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. 414 414 415 415 (% style="text-align:center" %) 416 416 [[image:1651745709709-887.png||height="820" width="621"]] 417 417 418 418 419 - User can find the TTN v3 server address from: 387 + User can find the TTN v3 server address from: 420 420 421 - [[Server Addresses ~| The Things Stack for LoRaWAN (thethingsindustries.com)>>url:https://www.thethingsindustries.com/docs/getting-started/server-addresses/#deployments]] 389 + [[Server Addresses ~| The Things Stack for LoRaWAN (thethingsindustries.com)>>url:https://www.thethingsindustries.com/docs/getting-started/server-addresses/#deployments]] 422 422 423 423 424 - And the default frequency band is US915 in **global_conf.json** file. 392 + And the default frequency band is US915 in **global_conf.json** file. 425 425 426 426 (% style="text-align:center" %) 427 427 [[image:1651745838008-820.png||height="650" width="621"]] ... ... @@ -452,39 +452,43 @@ 452 452 453 453 ===== 5.2.3 Check result ===== 454 454 455 - Run below command to restart the dragino_fwd: 423 + Run below command to restart the dragino_fwd: 456 456 457 457 sudo systemctl stop draginofwd 458 458 459 459 sudo systemctl start draginofwd 460 460 461 - debug check the ruing status of fwd: 429 + debug check the ruing status of fwd: 462 462 463 - 431 + sudo systemctl status draginofwd 464 464 465 465 (% style="text-align:center" %) 466 466 [[image:1651746045057-414.png]] 467 467 468 468 469 - The dragino_fwd will start with the new gateway ID and TTN v3 should show the connection ok: 437 + The dragino_fwd will start with the new gateway ID and TTN v3 should show the connection ok: 470 470 471 471 (% style="text-align:center" %) 472 472 [[image:1651746078253-168.png||height="372" width="621"]] 473 473 474 474 475 - We can check dragino_fwd running states in RPi by running: 476 476 477 - //**sudojournalctl-udraginofwd-f**//444 + We can check dragino_fwd running states in RPi by running: 478 478 446 + //**sudo journalctl -u draginofwd -f**// 447 + 479 479 (% style="text-align:center" %) 480 480 [[image:1651746111963-838.png]] 481 481 482 - If there are LoRaWAN nodes transmits nearby, we can see the traffic in TTN v3 –> Gateway ~-~-> Live data 483 483 452 + 453 + If there are LoRaWAN nodes transmits nearby, we can see the traffic in TTN v3 –> Gateway ~-~-> Live data 454 + 484 484 (% style="text-align:center" %) 485 485 [[image:1651746139304-966.png||height="326" width="621"]] 486 486 487 487 459 + 488 488 ===== 5.2.4 Commands to handle service ===== 489 489 490 490 * **Stop** dragino_fwd service: sudo systemctl stop draginofwd ... ... @@ -495,9 +495,9 @@ 495 495 496 496 === 6. Order Info === 497 497 498 - 470 + Part Number: **PG1302-XX** Or Part Number: **PG1302-PI-XX **(Include RPi converter board for RPI 3/4) 499 499 500 -**~ 472 +**~ XX:** 501 501 502 502 * 868 (For Bands: EU868,IN865) 503 503 * 915 (For Bands: US915,AU915,AS923,KR920) ... ... @@ -505,12 +505,12 @@ 505 505 506 506 === 7. Packing Info === 507 507 508 -**~ 480 +**~ PG1302 Package Includes**: 509 509 510 510 * PG1302 x 1 511 511 * LoRa Antenna x 1 512 512 513 -**~ 485 +**~ PG1302-PI Package Includes**: 514 514 515 515 * PG1302 x 1 516 516 * LoRa Antenna x 1