This guide explains how to connect a RAK gateway to ChirpStack v3 using Basics™ Station with LNS for secure TLS-based LoRaWAN® data communication.
Prerequisites
Before configuring the connection, make sure the following conditions are met:
A deployed ChirpStack v3 Network Server with Gateway Bridge configured for Basics™ Station (LNS).
-
Open the following ports on your ChirpStack server:
TCP 3001 for LoRaWAN packet forwarding
HTTP 8080 for ChirpStack Web UI access
A RAK Gateway with internet access
Register the Gateway in ChirpStack v3
This section provides step-by-step instructions for registering a RAK gateway in ChirpStack v3. For detailed instructions, refer to: How to Register a RAK Gateway in ChirpStack v3
Configure the Gateway
Log in to the gateway's Web UI.
Go to LoRa > Configuration, and set Work Mode to Basics station.
Click Configure Basics Station server setup to expand the relevant settings panel. Configure the following parameters:
Basics Station Server Type: LNS Server
Server URL: Enter the WebSocket address of your ChirpStack server. Example: ws://18.156.176.220 (replace with your actual IP)
ws:// for non-encrypted WebSocket connections.
wss:// if you are using TLS, along with appropriate
certificates
(tc.cert, tc.key, tc.trust).
Server Port: 3001
Authentication Mode: Authentication for the ChirpStack server. Select None for this setup.
Click Save changes to apply the configuration.
Once everything is set up correctly, your gateway will appear in the ChirpStack web interface under Gateways, with the Last seen field updating to a recent timestamp (e.g., “a few seconds ago”).
Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| Gateway not showing as online | Gateway cannot reach ChirpStack server (network issue or wrong IP/port) |
|
| GatewayEUI mismatch |
|
|
| Wrong WebSocket protocol (ws:// vs wss://) |
|
|
| Gateway bridge still set to semtech_udp |
|
|
| Region mismatch | Check chirpstack-network-server.toml and ensure the [network_server.band] parameter matches the hardware band of your gateway | |
| ChirpStack Web UI not accessible | Port 8080 blocked |
|
FAQs
1. Where can I find my Gateway EUI?
It's printed on the device labeled as “GWEUI”, or available in the WisGate Web UI under Dashboard > Overview.
2. What WebSocket URL format should I use for ChirpStack LNS?
- Use ws://<IP> for unsecured connections (dev/test)
- Use wss://<IP> for production (with TLS + certs)
3. Can I use a private IP for a server address?
Yes, if both server and gateway are on the same LAN. Otherwise, use a public IP.
Changelog
-
Version 1 - How to Connect RAK Gateway to ChirpStack v3 Using Basics™
Station (LNS)
- Date Published: 11/01/2025
Updated