Running MQTT in local PC and Gateway status is Offline

Hi

I am using Raspberry Pi 4 ,accessing it through ssh and configured it as LoRaWAN gateway.Installed chirpstack and Chirpstack gateway bridge in Raspberry pi.
I installed MQTT broker in my local pc.

So i expect

  1. the data from LoRa Node will be sent to the Gateway.
  2. Gateway via UDP packet forwarder sents data to MQTT broker (pc) through chirpstack gateway Bridge
    3.MQTT broker send data to the Chirpstack(installed in raspberry pi)

But the communication between MQTT broker and the chirpstack is not working.I am not getting gateway status Online in chirpstack ui.will this setup work?

please provide some logs.

If you want to have a setup where the MQTT broker is on your pc rather than local to the Pi, you have to configure the Pi with the server information on your computer. If you did a default Ubuntu/docker install (not using CS GW OS on the pi) then you can configure Chirpstacks MQTT backend in the regional.toml files.

As long as your gateway’s UDP forwarder points to your gateway bridge, your gateway bridge points to your MQTT broker, and chirpstacks backend is configured for your MQTT brokers server. Everything should work. Although I would recommend moving your gateway bridge to the same machine as your MQTT broker, rather than going gateway->pi->pc->pi.

Thankyou

      [regions.gateway.backend.mqtt]

        # Topic prefix.
        #
        # The topic prefix can be used to define the region of the gateway.
        # Note, there is no need to add a trailing '/' to the prefix. The trailing
        # '/' is automatically added to the prefix if it is configured.
        topic_prefix = "in865"

        # Shared subscription name.
        #
        # In case there are multiple ChirpStack instances sharing the same
        # subscription name, then the MQTT broker will deliver a gateway event
        # only to one subscriber. In case you have a production and
        # test-environment connected to the same MQTT broker, make sure that
        # each environment has its own subscription name, for example:
        # chirpstack_prod and chirpstack_tst.
        share_name = "chirpstack"

        # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
        server = "tcp://localhost:1883"

Edited “region_IN865.toml” file and inserted the local pc ip addess and its working.