|
| 1 | +--- |
| 2 | +title: 'Getting Started with WisGate Edge Gateway' |
| 3 | +description: 'Tutorial for setting up the WisGate Edge Lo-Ra Gateway' |
| 4 | +difficulty: easy |
| 5 | +tags: [Getting Started, Setup] |
| 6 | +author: 'Pablo Marquínez' |
| 7 | +hardware: |
| 8 | + - hardware/04.pro/miscellaneous/wisgate-edge-lite-2 |
| 9 | + - hardware/04.pro/miscellaneous/wisgate-edge-pro |
| 10 | +--- |
| 11 | + |
| 12 | +## Introduction |
| 13 | + |
| 14 | +This tutorial will show you how to get started with your **WisGate Edge** gateway and how it can be utilized by itself. It will showcase the connection to **The Things Network<sup>TM</sup>**. We will go through the local and online setup. |
| 15 | + |
| 16 | +## Goals |
| 17 | + |
| 18 | +The goals of this article are: |
| 19 | + |
| 20 | +- Setup the hardware |
| 21 | +- Connect locally to the Gateway |
| 22 | +- Open the dashboard panel |
| 23 | +- Create a Gateway on The Things Network<sup>TM</sup>(TTN) |
| 24 | +- Setup the credentials on the device from TTN |
| 25 | +- Test the Gateway (optional) |
| 26 | + |
| 27 | +## Hardware & Software Needed |
| 28 | + |
| 29 | +- [WisGate Edge Pro or WisGate Edge Lite 2](https://store.arduino.cc/pages/wisgate-lora-gateways) |
| 30 | +- x2 Ethernet Cable |
| 31 | + |
| 32 | +## What's Included in the Box |
| 33 | + |
| 34 | +The package includes: |
| 35 | +* LoRa Gateway |
| 36 | +* PoE Injector (with its power cable, IEC) |
| 37 | +* Pole mounting mechanical pieces |
| 38 | + |
| 39 | +## Instructions |
| 40 | + |
| 41 | +### Setup the Hardware |
| 42 | + |
| 43 | +The device can be supplied from 37 to 57 VDC with a PoE or with a Solar panel (12 VDC). |
| 44 | +You can supply it through the Solar Panel cable (12V cable) or with an ethernet cable with PoE. |
| 45 | + |
| 46 | +In case of the PoE, you can use the PoE Injector included with the kit by connecting your LAN to the `LAN` port and the `PoE` port to the Gateway. |
| 47 | + |
| 48 | + |
| 49 | +### Connect to the WisGate Dashboard |
| 50 | + |
| 51 | +There are different ways to access the WisGate: |
| 52 | +* Connecting to its Wi-Fi Access Point (dashboard IP: `192.168.230.1`) |
| 53 | +* Ethernet cable from your Computer to the Gateway (dashboard IP: `192.168.230.1`) |
| 54 | +* Connecting your Gateway to your LAN, getting its DHCP IP (You will need to discover the device's IP) |
| 55 | + |
| 56 | +Once you got the IP of your Gateway you can type it in your browser to access the dashboard. |
| 57 | + |
| 58 | +The first time you attempt to login it will require you to set up the password of your dashboard, set your password, click set password and save it. |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +Once the password is set, you will now be able to see and interact with the dashboard panel. |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +***The WiFi Access Point that is running, by default it is open, we recommend you to set a password with WPA2-PSK encryption to secure your device, you can do that by accessing the Wi-Fi settings going to network > LAN > Wi-Fi > Settings*** |
| 67 | + |
| 68 | +### Create the Gateway on TTN Dashboard |
| 69 | + |
| 70 | +Go to https://cloud.thethings.network and pick your region's cluster, in our case we pick Europe. |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +Now chose the gateway button. |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +It will open the Gateways page, click the create gateway button |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +Fill the required forms. |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +Fill the information: |
| 87 | +* Gateway ID: unique ID for your gateway inside the things network platform. |
| 88 | +* Gateway EUI: The EUI of your WisGate Gateway (Get it on the overview page on the WisGate dashboard) |
| 89 | +* Gateway name: Name of the Gateway on your TTN's profile |
| 90 | +* Gateway Server Address: the Address of the LoRa network (format: `wss://<cloudServer>`) |
| 91 | +* LoRaWAN options, Frequency plan: select the recommended plan or the one that fits your project |
| 92 | + |
| 93 | +Click the "Create gateway" button at the end of the page. |
| 94 | + |
| 95 | +You will see the new gateway added to your list. |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +### Setup Your Gateway with the TTN Credentials |
| 100 | + |
| 101 | +Access to the Network configuration by clicking on its button. |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +On the configuration tab select the work mode to "Basic station" |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +Then at the "Basic station server setup" section pick the "LNS Server" as a type. |
| 110 | + |
| 111 | +Fill the Server URL with `wss://eu1.cloud.thethings.network` (for EU) and the port `8887` |
| 112 | + |
| 113 | +The authentication Mode "TLS Server & Client token Authentication" |
| 114 | + |
| 115 | +Choose the file with the certificates that you can download from [here](https://letsencrypt.org/certs/isrgrootx1.pem) |
| 116 | + |
| 117 | +And the client token that you can get inside the TTN Gateway's dashboard panel. |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +Click the API key on the top right and create a new one. |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | +Set the "Rights" to individual ones and chose the "Link as gateway to a Gateway Server for traffic exchange" |
| 126 | + |
| 127 | +Then paste it on the WisGate dashboard form as `Authorization: <YOUR_API_KEY>` |
| 128 | + |
| 129 | +Click "Save changes". |
| 130 | + |
| 131 | +After finishing the setup you could see the Gateway status being "Connected" |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | +### Test (Optional) |
| 136 | + |
| 137 | +Follow this tutorial to connect to the GateWay [Connecting MKR WAN 1300 to The Things Network (TTN)](https://docs.arduino.cc/tutorials/mkr-wan-1300/the-things-network) |
| 138 | + |
| 139 | +## Next Step |
| 140 | + |
| 141 | + |
| 142 | +## Conclusion |
| 143 | + |
| 144 | +In this tutorial you learned how to setup the LoRa Gateway |
0 commit comments