UWB Q1

MQTT Server (Mosquitto) Installation and UWB Gateway Connection

This guide shows how to connect the GrowSpace Gateway Q1 to a private Mosquitto MQTT broker, receive tag and anchor position data directly, and check it in MQTT-Studio.

MQTT server setup, Mosquitto installation screen 1

About this article

This article explains how to connect the GrowSpace Gateway Q1 to a private MQTT broker (Mosquitto), receive real-time position data from tags and anchors directly, and check it visually in MQTT-Studio.

By default, the gateway connects to the GrowSpace server.
For internal tests or integration with an external system, you can set up the environment easily with Mosquitto.


What is Mosquitto?

Mosquitto is an open-source message broker that works on the MQTT (Message Queuing Telemetry Transport) protocol.

MQTT is a lightweight communication protocol widely used in IoT (Internet of Things) environments. It handles real-time messaging between devices very efficiently.

Mosquitto has these characteristics:

The GrowSpace Gateway Q1 sends data over the MQTT protocol by default. With Mosquitto, you can receive and process the data in your own server environment, without a separate cloud.


Install and configure the Mosquitto MQTT broker

Install Mosquitto

MQTT server setup, Mosquitto installation screen 1

C:\Program Files\mosquitto

Edit the configuration file

C:\Program Files\mosquitto\mosquitto.conf

listener 1883 0.0.0.0
\* Search for the #allow_anonymous entry, then add the following line under it:

allow_anonymous true

🔸 The listener entry sets the port that accepts connections from external devices.
🔸 allow_anonymous true allows connections without user authentication.

⚠️ This is a test configuration. In production, set up user authentication and access restrictions.

Leave the existing #listener and #allow_anonymous false lines as they are, still commented out (#).
The settings that take effect are the two lines you just added.

With this setting, external devices (such as the GrowSpace gateway) can connect to the Mosquitto broker.


Open the MQTT port in Windows Firewall

For the Mosquitto broker to communicate with external devices (such as the GrowSpace gateway), TCP port 1883 must be allowed in the firewall.

Add an inbound rule with the following steps.

How to add a firewall rule

Click the Start button → type firewall → open Windows Defender Firewall

MQTT server setup, adding a firewall rule, screen 2

Select Advanced settings in the left menu

MQTT server setup, adding a firewall rule, screen 3

Click Inbound Rules in the left menu → select New Rule on the right

MQTT server setup, adding a firewall rule, screen 4

Select Port as the rule type → Next

MQTT server setup, adding a firewall rule, screen 5

Protocol and Ports

Protocol: TCP
Specific local ports: 1883 → Next

MQTT server setup, adding a firewall rule, screen 6

Action

Select Allow the connection → Next

MQTT server setup, adding a firewall rule, screen 7

Profile

Check all of Domain / Private / Public → Next

MQTT server setup, adding a firewall rule, screen 8

Name

Allow Mosquitto MQTT → Finish

MQTT server setup, adding a firewall rule, screen 9

When the setup is complete, restart the computer to apply it.

If the port is not open correctly, the gateway cannot send data to the MQTT broker.
If the connection fails during testing, check the firewall settings again.


Install MQTT-Studio and connect to the broker

Why do you need this tool?

MQTT-Studio is a visualization tool that connects to the Mosquitto broker so you can check in real time whether position data is being sent correctly.


Installation steps

Open the Microsoft Store from the Windows taskbar

MQTT server setup, installation steps, screen 10

Type "MQTT-Studio" in the search box at the top

MQTT server setup, installation steps, screen 11

Select MQTT-Studio from the list and click [Install]

When the installation is complete, run the program.

Broker connection settings

Run MQTT-Studio, then click the [New Project] button in the left menu.
Enter the following items:

MQTT server setup, broker connection settings, screen 12

ItemDescription
Project nameAny name you like (example: growspace-test)
MQTT BrokerThe IP address of the PC where Mosquitto is installed (Windows CMD → ipconfig → check the IPv4 address)
Port1883 (keep the default)
Client IDAny ID that is not used elsewhere (example: testclient1)
Username / PasswordYou can leave these empty if you made no separate setting

In a setup behind the same router (internal network), entering the IP address is enough to connect.
To connect from an external network (the internet), you need to set up port forwarding on the router of the PC where the broker is installed:
forward TCP 1883 → internal IP

Check the connection

After entering all items, click the [Connect] button.
When the connection succeeds, the CONNECT button at the top of the screen becomes active.

MQTT server setup, checking the connection, screen 13


Environment setup complete

You have now installed the Mosquitto broker, set up the port, and visualized data with MQTT-Studio. With this, your environment can receive the UWB position data collected by the GrowSpace Gateway Q1 on your own broker.

In the next step, set up the gateway device and continue with sending position data.