Integrations
A Raspberry Pi gateway with meshtasticd
Run Meshtastic natively on a Raspberry Pi or Linux machine with a LoRa HAT or USB radio: what meshtasticd is, install routes, config.yaml, MQTT and UK pitfalls.
- Difficulty
- Advanced
- Time
- 1-2 h
- Cost
- Free (software); a Raspberry Pi plus a SPI LoRa HAT or USB radio. Prices not sourced.
Updated 4 Nov 2026
Overview
Most Meshtastic nodes are small boards that run the firmware directly. meshtasticd is a different build of the same software. Meshtastic's documentation describes it as "the native binary for running Meshtastic on devices with SPI or USB radios. Supported on MacOS and Linux." The use cases it lists are "Always-on base stations, Network gateways, MQTT bridges, Integration with home automation systems, Remote monitoring nodes".
In practice that means a Raspberry Pi (or another small Linux machine) with a LoRa HAT or a USB radio becomes a Meshtastic node that is always on, has proper storage and networking, and can be reached from other software on your network.
What it is not:
- It is not a way to join a mesh without a radio. You still need the LoRa radio, and neighbours with nodes.
- It has no Bluetooth. The docs say: "Bluetooth is currently unsupported and not functional on MeshtasticD devices." You reach it through its network API and web client instead.
- It is not a power-cut device by default. A Pi on a mains adapter goes down with the mains; see the power section below.
This page follows the Meshtastic docs as read on 2026-11-04. They change, so use the linked pages for exact commands.
Choose a radio: SPI HAT or USB
The hardware page lists what has been tested. We repeat only what it says.
| Type | Documented examples | Notes from the docs |
|---|---|---|
| SPI HAT on a Raspberry Pi | MeshAdv-Pi v1.1, Adafruit RFM9x, Elecrow Lora RFM95 IoT; the RAK6421 WisMesh Pi HAT with RAK13300 or RAK13302 modules has its own page | "Tested Raspberry Pi LoRa hats include..." Stacking HATs can cause "potential pin conflicts". |
| USB radio | MeshStick (Semtech SX1262 with TCXO, up to 22 dBm) and Pinedio | Any Linux device with a USB port can use a CH341-based USB radio. "USB support via the CH341 was added in Meshtastic 2.5.18." |
Things the docs say do not work or are not recommended:
- "UART HATs and SX1302/SX1303 chip-based HATs are not supported. Only hats that use a SPI radio can work."
- The Waveshare SX1262 LoRaWAN Hat and the Pine64 Pinedio are listed as "not recommended for deployment"; the page suggests the
CLIENT_MUTErole if you must use them. - Several CH341 USB radios on one machine need a unique EEPROM serial each. The page notes the Pinedio v1 lacks one.
What you need on the Pi
The Raspberry Pi page says "meshtasticd is supported on all Raspberry Pi models". It splits them by architecture:
- 32-bit armhf: Pi 1, Zero (original), Pi 2 v1.0 and v1.1.
- 64-bit arm64: Pi 3, Zero 2, CM3, Pi 2 v1.2, Pi 4, 400, CM4, Pi 5, 500 and CM5.
For SPI HATs, the page tells you to enable SPI. Its lines for /boot/firmware/config.txt are dtparam=spi=on and dtoverlay=spi0-0cs, and it also gives raspi-config commands. I2C needs dtparam=i2c_arm=on, and a GPS on the serial port is enabled through raspi-config. Your HAT's own page may need different overlays, so follow the page for your HAT rather than copying these lines blindly.
meshtasticd needs "root access or a user with permissions to access GPIO, SPI" to run.
Install
The installation page has a separate route per operating system: macOS (Homebrew), Debian, Raspbian (32-bit armhf), Ubuntu (PPA), Fedora (COPR), Red Hat EPEL, Docker, Flatpak, OpenWrt and NixOS. Start at meshtastic.org/docs/meshtasticd/installation and follow the page for your system.
We deliberately do not paste the install commands. The Debian and Raspbian routes add a package repository whose address depends on your OS release and on the beta or alpha channel you choose, so a copied script goes stale quickly.
Points to check before you pick a route:
- Raspberry Pi OS 64-bit: the Raspbian installation page says its builds are "only suitable for 32-bit armhf Raspberry Pi OS installations. For 64-bit Raspberry Pi OS installations, please use the Debian packages."
- Radio support by route: the installation page's feature matrix shows USB and SPI radios on Debian, Raspbian, Ubuntu, Fedora, EPEL, NixOS and Docker; USB only on macOS and Flatpak; and USB on OpenWrt, with a pause symbol (⏸️) for SPI. The usage page's Docker example passes a USB device through with
--device=/dev/bus/usb/.... - Prebuilt images: the installation page also points to mPWRD-OS images if you would rather not build a system. We have not tested them.
config.yaml
From the meshtasticd usage page, read 2026-11-04:
- The configuration is at
/etc/meshtasticd/config.yamlby default. Aconfig.yamlin the current directory takes precedence over that, and a file given with-cor--confighas the highest precedence. - Radio presets are in
/etc/meshtasticd/available.d. Copy the one for your radio into/etc/meshtasticd/config.d/. The pages namelora-MeshAdv-900M30S.yamlfor one HAT andlora-usb-meshstick-1262.yamlfor the MeshStick as examples of the naming. - "The
config.yamlfile is sensitive to spacing", so edit it carefully and keep the indentation the example files use. - Restart after changes with
sudo systemctl restart meshtasticd. - Other command-line options the page lists include
-d(virtual filesystem directory),-e(erase the virtual filesystem),-h(set the MAC address) and-p(TCP port). - Node state is kept under
/var/lib/meshtasticd/.portduino/default/prefs/.
To check that it is running, the docs show a Meshtastic API client talking to it on the local machine: meshtastic --host localhost:4404 --info. The usage page's example starts meshtasticd with -p 4404 ("Exposes the Meshtastic API on a non-default port 4404"), and that is the only reason the client command names port 4404. The default API port is 4403, so on a default install the check is meshtastic --host localhost --info. Both commands apply to the documentation as read on 2026-11-04; the Python CLI page explains the client.
Set the region to EU_868
The default region is UNSET, so the radio will not transmit usefully until you choose one. Set the region to EU_868 from any Meshtastic client: the web client below, a phone app that can reach the node over the network, or the Python CLI. The CLI pattern is meshtastic --set lora.region <value>, and EU_868 is among the values the LoRa page accepts. We did not find the exact EU_868 command in a code block in the docs, so check the LoRa configuration page for the current wording.
Meshtastic's region table lists the United Kingdom as EU_868 (and EU_433), citing Ofcom IR 2030. Do not choose a US or ANZ region for a UK node. See the region glossary entry.
The web client
The docs say meshtasticd "has web server support starting with release 2.3.0". The usage page shows a Webserver: block in the configuration with a Port of 9443 and a RootPath of /usr/share/meshtasticd/web. Copy the exact block, indentation included, from the usage page, because the file is sensitive to spacing and we did not want to reproduce the indentation from memory.
Once it is running, the web client gives you a browser interface to the node without Bluetooth. The general web client is described on Meshtastic's web client page.
Keep the web interface on your home network. We did not read anything about authentication on this web server, so do not expose its port to the internet.
The MQTT gateway role
meshtasticd's use-case list includes "MQTT bridges", which is the main reason people run a Pi like this: it can sit on a stable connection and pass packets between the radio mesh and an MQTT broker. For what that does and the risks, read MQTT bridges and privacy first, and the MQTT section of zero-hardware start.
What we can confirm and what we cannot:
- The Meshtastic MQTT module and its settings are documented generically. They apply to nodes that forward packets to an MQTT server over Wi-Fi or Ethernet, with uplink or downlink enabled per channel.
- The meshtasticd docs list MQTT bridges as a use case but give no meshtasticd-specific MQTT configuration page. We did not find a statement that meshtasticd's own network connection counts as the Wi-Fi or Ethernet connection in the way an ESP32 node's does. Treat it as untested until you have verified it on your setup.
- The documented route is a node that is "connected to Internet via Wi-Fi or ethernet", configured as the MQTT pages describe; the quick-start there sets Wi-Fi or Ethernet options on the node. The module page also describes a proxy mode that lets a node use a connected client's (for example a phone's) network connection.
If you do bridge, the main points from the Meshtastic MQTT docs (read 2026-11-04) are:
- Encryption of the MQTT payload is off unless
encryption_enabledis set, even when your channels have keys. JSON output and map reports are unencrypted. - The public broker
mqtt.meshtastic.orgapplies a zero-hop policy and filters traffic on the default key. Do not use the default key on a private broker; the integration page warns it can flood the mesh. - "OK to MQTT" is a polite request enforced by the official firmware, not a cryptographic control.
Connecting it to Home Assistant
A Pi that is always on is a natural place for home automation. Home Assistant has no built-in Meshtastic support; the route is a community integration or the MQTT JSON feed. See Meshtastic in Home Assistant. We have not confirmed that the integration accepts a meshtasticd gateway as its network target. For reading metrics from nodes, see telemetry and sensor nodes; for scripting, see Python and CLI automation. If you want a Pi for practice with Wi-Fi mesh routing instead, see Raspberry Pi mesh lab.
Power
We have no sourced current figure for a Raspberry Pi with a HAT or USB radio, so we do not give one; measure your own setup with a USB or mains power meter. The general points on USB supplies, power banks that cut out and batteries are on the power guide.
For a power cut, remember this machine is a computer. A Pi on a mains adapter stops when the mains stops, and so does your router unless it is on a battery. See a power-cut communications plan. A small battery-backed supply for the Pi is an option, but we have not sourced a specific product or run time. A plain Meshtastic board with a small battery is a simpler fallback node alongside it.
Common pitfalls
| Problem | What the docs suggest |
|---|---|
| Nothing transmits | The region is UNSET by default; set it to EU_868. |
| Config changes are ignored or the service fails | config.yaml is sensitive to spacing, and a file in the current directory or given with -c overrides the default one. |
| HAT does not respond | SPI not enabled; pin conflicts from stacked HATs; the HAT is a UART or SX1302/SX1303 type, which is unsupported. |
| Two USB radios clash | CH341 devices need unique EEPROM serials. |
| Wrong band | The module is a 900 MHz variant. Check the frequency range before you buy. |
| Using Bluetooth | Not supported on meshtasticd. Use the network API or web client. |
What we could not confirm
- Which HATs and modules are sold in an 868 MHz variant. The Meshtastic hardware pages do not say.
- Whether meshtasticd acts as an MQTT gateway over its host's network connection exactly as an ESP32 node does. The docs list "MQTT bridges" as a use case without a configuration page.
- The literal
meshtastic --set lora.region EU_868command as a documented code block. - How to limit transmit power on a given HAT under meshtasticd.
- Power draw of a Pi plus radio, and run times on battery.
- Whether meshtasticd's web server has authentication.
- Anything about the mPWRD-OS images beyond the installation page's link to them.
Install commands, repository addresses and package names are deliberately left to the Meshtastic installation pages, which are the current source for them.
FAQ
Can I use a Raspberry Pi Zero?
The Raspberry Pi page says meshtasticd is supported on all Raspberry Pi models, and lists the original Zero as 32-bit armhf and the Zero 2 as arm64. We did not test any model.
Do I need a HAT?
No. A CH341-based USB radio such as the MeshStick works on any Linux machine with a USB port, per the hardware page, from Meshtastic 2.5.18.
Can I pair my phone by Bluetooth?
No. The docs say Bluetooth is unsupported on meshtasticd devices. Use the web client or another network connection.
Is a gateway legal in the UK?
Within IR 2030's 869.40 to 869.65 MHz slot at up to 500 mW e.r.p. and a 10% duty cycle (or spectrum access techniques), no licence is needed. The radio module and antenna you choose decide whether you stay within it.
Sources
- Meshtastic: meshtasticd
- Meshtastic: meshtasticd installation
- Meshtastic: meshtasticd usage
- Meshtastic: meshtasticd on Raspbian (32-bit)
- Meshtastic: getting started (antenna warning)
- Meshtastic: meshtasticd supported hardware
- Meshtastic: meshtasticd on Raspberry Pi
- Meshtastic: MeshStick USB radio
- Meshtastic: MQTT module configuration
- Meshtastic: MQTT integration
- Meshtastic: LoRa configuration
- Meshtastic: region by country
- Meshtastic: Python CLI
- Ofcom IR 2030 v1.17 (published 23 October 2026)