how to connect rak gateway to chirpstack v3 using basics™ station (lns)

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

  1. Log in to the gateway's Web UI.

图形用户界面, 文本, 应用程序

描述已自动生成
  1. Go to LoRa > Configuration, and set Work Mode to Basics station.

Changing the working mode
  1. 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)

🗒️
NOTE
  • Use ws:// for non-encrypted WebSocket connections.
  • Use 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. 

    1. 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)
    • Verify ChirpStack server IP/port is reachable from gateway
    • Ensure TCP port 3001 is open on the ChirpStack firewall
      GatewayEUI mismatch
    • Check gateway EUI in WebUI > Dashboard > Overview
    • Make sure the same EUI is used when registering the gateway in ChirpStack
      Wrong WebSocket protocol (ws:// vs wss://)
    • Use wss:// when TLS is enabled, and upload valid tc.cert, tc.key, tc.trust files
    • Use ws:// for non-TLS connections
      Gateway bridge still set to semtech_udp
    • Update the ChirpStack Gateway Bridge config to use basic_station
      1. Access the ChirpStack server via SSH.
      2. Open /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml.
      3. Change the gateway backend type from semtech_udp to basic_station.
      4. Uncomment the Concentrator configuration section.
      5. Save the file and restart the service.
        sudo systemctl restart chirpstack-gateway-bridge.service
      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
    • Allow port 8080 through firewall/security group
    • Access via http://<your-server-ip>:8080

    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