How to Connect UG8x Gateway to TTN
Introduction
The Things Network provides two types of TTN packet forwarders that can be running on UG8x LoRaWAN® gateway:
- Packet forwarders that connect using the Semtech UDP protocol (such as the Semtech UDP Packet Forwarder). This protocol is not encrypted, less reliable (UDP-based), but its simplicity makes it work on a large number of gateways.
- Packet forwarders that connect using the new TTN Gateway Connector protocol (such as the TTN Packet Forwarder). This protocol is more secure, reliable and safer.
Requirements
- UG8x LoRaWAN® Gateway
- The Things Network Account
Contents
- Connecting via Semtech UDP Packet Forwarder
- Connecting via TTN Packet Forwarder
- Trouble Shooting & FAQ
Connecting via Semtech UDP Packet Forwarder
Gateway Configuration(Firmware version: 80.0.0.49 or above)
1. Go to “Packet Forwarder”-> “General” and click to create a network server to Multi-Destination list.
2. Select “Semtech” type and configure the server address to forward the correct one for your region. Reference address for the region: https://www.thethingsnetwork.org/docs/gateways/packet-forwarder/semtech-udp.html
3. Enable this server and save the configuration.
Gateway Configuration (Firmware version: 87.1.0.x or below 80.0.0.49)
Go to “LoRaWAN®”-> “Packet Forwarder” -> “General” and configure server address to forward the correct one for your region. Reference address for the region: https://www.thethingsnetwork.org/docs/gateways/packet-forwarder/semtech-udp.html
TTN Configuration
1. Go to the “Console”->“GATEWAYS” page and click “register gateway” to register.
- Check “I’m using the legacy Semtech packet forwarder”.
- Copy and paste gateway EUI (8bytes) from UG8x web GUI.
- Select the frequency plan the gateway uses.
- Select the router address that is suitable for your region.
- Click “Register Gateway” to finish.
2. Gateway has successfully connected to TTN.
TTN Packet Forwarder
TTN Configuration
1. Go to “Console”-> “GATEWAYS” page and click “register gateway” to register.
- Create a unique Gateway ID with lower case, alphanumeri ccharacters and nonconsecutive – and _ .
- Select the frequency plan the gateway uses.
- Select the router address that is suitable for your region.
- Click “Register Gateway” to finish.
Gateway Configuration
1. Go to “Packet Forwarder” -> “General” and click to create a network server to Multi-Destination list.
2. Select “TTN” type, copy and paste gateway key from TTN, then save the configuration.
3. Copy and paste TTN gateway ID to “Gateway ID” and save changes.
4. Gateway has successfully connected to TTN.
Trouble Shooting & FAQ
1. Cannot register gateway
If you switch back to the Gateways page without seeing the newly register gateway, you will probably also see the following error at the top right:
This means someone else has already registered with this Gateway ID or EUI. Please change a new ID or EUI in the web GUI of UG8x gateway.
2. Could not see the gateway GPS location
UG8x-G model gateway updates GPS location data to a network server every 10 minutes if it receives GPS signal. Please check if GPS antenna is installed correctly and the gateway is placed outdoors or beside the windows that can receive GPS signal.
3. Could not connect via TTN packet forwarder
Discovery server address “discover.thethingsnetwork.org:1900” for TTN packet forwarder server is restricted to access by some Internet Service Providers. Please contact your ISP and TTN for more information about it.