This guide shows how to connect a RAK gateway to ChirpStack v3 using the MQTT Bridge protocol with Protobuf encoding.
Prerequisites
Before configuring the connection, make sure the following conditions are met:
A deployed ChirpStack v3 Network Server with Gateway Bridge configured for MQTT
-
The following ports are open on your ChirpStack server:
MQTT 1883 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 Packet forwarder.
- In the Protocol field, click the dropdown. Then configure the following parameters.
- Protocol: Select LoRa® Gateway MQTT Bridge.
- MQTT Protocol: Select MQTT ChirpStack 3.x (Protobuf).
- MQTT Broker Address: Enter the public IP address of your ChirpStack server, for example: 18.156.176.220
- MQTT Broker Port: 1883
- Click Save changes to apply the configuration.
Verify the Gateway Status
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 Offline |
|
|
| Gateway Offline | Gateway registered in ChirpStack with wrong EUI |
|
| Gateway Offline | Region mismatch | Check chirpstack-network-server.toml and ensure the [network_server.band] parameter matches the hardware band of your gateway |
| Gateway Offline | Gateway not connected to the Internet | Confirm the gateway has Internet access or can reach the server IP. |
| ChirpStack Web UI not accessible | Port 8080 blocked |
|
| Authentication failure (if enabled) | Wrong username/password or missing TLS certs |
|
FAQs
1. Where can I find my Gateway EUI?
It’s printed on the gateway label as “GWEUI” or available in the WisGate Web UI > Dashboard > Overview.
2. What’s the difference between JSON and Protobuf?
- JSON: Human-readable, easy for debugging, but larger in size.
- Protobuf: More compact and faster, recommended for production deployments. For ChirpStack v3, both formats are supported.
3. Can I use a private IP as the MQTT Broker address?
Yes, if the gateway and ChirpStack server are on the same LAN. Otherwise, use a public IP or domain name.
Changelog
-
Version 1 - How to Connect RAK Gateways to ChirpStack v3 via MQTT
(Protobuf)
- Date Published: 10/30/2025
Updated