WisMesh Ethernet MQTT Gateway
The WisMesh MQTT Ethernet Gateway connects your Meshtastic devices to the Cloud, enabling communication with the Meshtastic or your own MQTT Broker. It supports sending sensor data, location information, and text messages.
Besides LoRa connectivity, the device is integrated with the RAK13800 Ethernet module to connect to the internet, all mounted on the RAK19007 Base Board.
Pre-assembled and pre-flashed with the original Meshtastic firmware-rak4631_eth_gw
, the WisMesh Ethernet MQTT Gateway supports JSON over MQTT for efficient communication.
For added option, the gateway can be powered via the Ethernet cable using the optional RAK19018 PoE module.
This guide covers the basics for the RAKwireless Meshtastic devices that are not covered by the Meshtastic documentation.
For detailed instructions how to configure the devices for the Meshtastic network, follow the Meshtastic Getting Started guide.
To ensure you are running the latest version of the Meshtastic firmware, it is advised to download the latest Meshtastic firmware and upload it to your RAKwireless device to make it compatible with the Meshtastic network.
For Firmware 1.3 and 2.0 (from November 1, 2022), the WisBlock Base board is autodetected. Besides JSON output to the MQTT broker, there's a special firmware for the WisMesh Ethernet MQTT Gateway. Make sure to update the device with this Meshtastic firmware.
- Meshtastic Ethernet MQTT Gateway with RAK4631:
firmware-rak4631_eth_gw-w.x.yy.zzzzzzz.uf2
Prerequisite​
Before going through each and every step on using WisMesh Ethernet MQTT Gateway, make sure to prepare the necessary items listed below:
Hardware​
Software​
The WisBlock Core module of the WisMesh Ethernet MQTT Gateway comes pre-flashed with the Meshtastic firmware.
However, to connect the device to the Meshtastic network, you will have to configure it. The recommended way to configure the WisMesh Ethernet MQTT Gateway is using a mobile phone via a BLE connection with either of these configurations:
Alternatively, the WisMesh Ethernet MQTT Gateway has an USB connector inside. With the USB connection, you can use either of these configurations:
Make sure that you have installed one of these applications, as they are required for the configuration of the Meshtastic network.
To access the connector, unscrew the mounting plate inside the enclosure and lift it until you gain access to the USB connector.
Product Configuration​
Hardware Setup​
The WisMesh Ethernet MQTT Gateway comes fully assembled. Due to its dimensions, this WisBlock assembly is not compatible with the smaller Unify Enclosure. However, it can be mounted using a custom plate with the Unify Enclosure 150x100x45Â mm.
Connect the Ethernet Cable​
Connect the Ethernet cable to the RAK13800 Ethernet module, as shown in Figure 3
Use PoE to Supply the Device​
If you have an PoE injector connected to the Ethernet cable, the device can be power through it with the RAK19018 PoE module.
The RAK19018 is a Power-over-Ethernet module used together with the RAK13800 Ethernet Interface module to draw power from CAT5/CAT6 cables. This PoE module is based on the Silvertel Ag9905MT converter board and compatible with the IEEE 802.3af PoE standard.
More details can be found in the RAK19018 datasheet.
Antennas​
The WisMesh Ethernet MQTT Gateway comes with a PCB BLE antenna and a PCB LoRa antenna. Make sure the antennas are plugged in properly before powering up the unit.
You can improve the range of the device by replacing the PCB LoRa antenna to a WisMesh Antenna.
Software Setup​
To ensure you are running the latest version of the Meshtastic firmware, it is advised to download the latest Meshtastic firmware and upload it to your RAKwireless device to make it compatible with the Meshtastic network.
For Firmware 1.3 and 2.0 (from November 1, 2022), the WisBlock Base board is autodetected. Besides JSON output to the MQTT broker, there's a special firmware for the WisMesh Ethernet MQTT Gateway. Make sure to update the device with this Meshtastic firmware.
- Meshtastic Ethernet MQTT Gateway with RAK4631:
firmware-rak4631_eth_gw-w.x.yy.zzzzzzz.uf2
The WisMesh Ethernet MQTT Gateway comes pre-flashed with the Meshtastic firmware. If problems occur, update the Meshtastic firmware to the latest version.
To set up the WisMesh Ethernet MQTT Gateway for the Meshtastic network, follow the configuration guide in the Meshtastic documentation.
Tutorial - Meshtastic MQTT Gateway Setup​
Device Setup​
The Meshtastic MQTT Gateway comes pre-flashed with Meshtastic firmware, but its device setup differs from other Meshtastic nodes.
- If JSON over MQTT output is required, make sure to flash the
firmware-rak4631_eth_gw-w.x.yy.zzzzzzz.uf2
firmware. - Other RAK4631 Meshtastic firmware do not support JSON over MQTT.
To set up the device, connect the Meshtastic Gateway by selecting it on the Meshtastic app.
- Set all your devices to the same Region and Channel.
- Since the Meshtastic Gateway does not have a GNSS location module, a fixed location can be set up if desired.
Gateway Connections​
- Connect the gateway to the internet. In this case, the RAK4631 with the RAK13800 Ethernet Module will be used.
Below are the options for connecting the gateway through Ethernet:
- For this setup, connect the device via BLE, then configure the Ethernet connection.
- Alternatively, configure the connection settings using the Meshtastic app, via USB, or through the Meshtastic Web GUI or command-line utility.
- Set up the connection to the MQTT broker.
- The MQTT broker used here is the free MQTT broker provided by Meshtastic. You can find the URL, address, username, and password in the Meshtastic documentation
- To make parsing of the data easier, enable the JSON output.
- To avoid too much traffic, create a custom root topic. If the root topic already existed, it will be more difficult to filter out the devices later at your end.
- If you prefer to see the devices on the public Meshtastic maps (e.g. MeshMap.net), enable Map reporting and set a Map reporting interval.
A more comprehensive guide for the Meshtastic Gateway can be found in the Meshtastic-Sensor-Network PoC. This includes setting up multiple sensor nodes, retrieving the sensor data from the MQTT broker, and visualizing the data in Grafana.