Gateway sending stats, but not connecting.

Have a single VM in Azure running mosquitto, chirpstack and chirpstack-gateway-bridge.

Using mosquitto dynamic security, so 1883 is not exposed publicly. chirpstack passes to mosquitto on 1883-localhost.

Confirmed that 1700 UDP is exposed and operational.

Confirmed that the gateway is sending to the bridge, which is responding.

Set up our gateway, (packet forwarder) using Semtech UDP GWMP protocol, which is sending stats every thirty seconds.

Problem is that the gateway is still reporting as “never seen”, so have been unable to connect a device.

At first glance, is there something that I’ve missed? I’m feeling that 1883 might need to be available as well, but that counteracts what I’m trying to do with dynamic security on mqtt.

You likely need to configure your gateway bridge / MQTT forwarder with your MQTT broker security info to have it connect. Unless it is using localhost as well and confirmed working.

If so share your Chirpstack logs.

We’ve tried connecting as Liam suggests, but still can’t seem to get the gateway to connect to Chripstack using the MQTT connection. While it’s blurred, the Broker Address is that of our VM running both MQTT and Chirpstack.

I tested those credentials using MQTTX using the same settings without issue.

What gateway is this? I would be surprised if it’s MQTT forwarder was compatible, although it does state it is specifically for v4.

I meant the chirpstack-gateway-bridge (the newer version is called the MQTT forwarder), set your gateway to send UDP packets to the chirpstack gateway bridge, then ensure the gateway bridge is properly connecting to your MQTT Broker.

If the gateway bridge already has the right credentials, or is using localhost and should have no security issues. Then share your chirpstack logs so we can properly diagnose the issue. Or atleast any errors you can see in the logs (ideally restart your Chirpstack then view the logs for errors).

This is a RAK7268CV2 running WisGateOS_2.2.10_RAK.

I set the RAK back to use UDP 1700.

I restarted the chirpstack-gateway-bridge, and it appears to be connecting to the mqtt broker. Also notice that the second highlighted portion is the gateway ID of the RAK that we registered in Chripstack UI.

I restarted the chirpstack service, but don’t see errors, only the warnings toward the bottom.

I believe your issue is that you must specify the subband in your region_prefix for the gateway bridge. I.E us915_0 not just us915. You can see in the stats messages, the gateway is posting to us915, but in the MQTT subscription loop parts of the Chirpstack logs, Chirpstack only subscribes to us915_0, not us915. Try changing the region prefix in your gateway bridge and I think that will solve the issue.

@Liam_Philipp - Thank you so much for taking the time to assist. You caught the golden goose, and I’m appreciative of your efforts.

Best to you for the upcoming Holidays.

1 Like