Klobber / Home Lab
MeshCore, LoRa and building a mesh that is actually useful
Lessons from a Breaking Bread Boards session on LoRa, MeshCore and engineering a small, useful resilient network.
I recently gave a Breaking Bread Boards session on MeshCore, partly because I had fallen rather further down the LoRa rabbit hole than originally intended.
The starting point was much less ambitious. I wanted to collect data from my allotment and get it roughly 1 km to my daughter’s flat or 2.5 km back home in Hove. That led through LoRaWAN, the apparently rather quiet local Things Network, Meshtastic and eventually MeshCore.
What interested me was not simply another clever radio gadget. It was the possibility of building a small communications network that could continue doing something useful after we remove much of the infrastructure we normally take for granted.
The presentation
The published slides from the Breaking Bread Boards session are available below.
Watch the session
The complete recording includes my MeshCore segment from 49:14. The embed below starts at that point.
First: LoRa is not LoRaWAN
This is probably the most useful distinction to get out of the way.
- LoRa is the radio modulation. It trades bandwidth and airtime for useful range and low power consumption.
- LoRaWAN builds an IoT architecture around LoRa, with end devices, gateways and network or application servers.
- MeshCore and Meshtastic also use LoRa radios, but build packet-radio messaging systems instead.
These are not interchangeable names for the same thing.
LoRa is not tiny Wi-Fi either. You are dealing with small packets, low data rates and shared radio airtime. Voice, video and file transfers are very much somebody else’s problem.
Or, as I put it in the talk:
Long range is paid for with airtime, bandwidth and patience.
Why MeshCore got interesting
MeshCore makes an architectural distinction that I particularly like. There are three useful roles:
- Companions are user devices.
- Repeaters are deliberate pieces of radio infrastructure.
- Room Servers provide store-and-forward messaging.
A companion does not automatically become infrastructure simply because somebody happens to walk around carrying it. Repeaters can instead be deliberately positioned somewhere useful, preferably high, powered and equipped with a decent antenna.
A Room Server works rather like a small radio post office. Messages can wait there until somebody comes back into range and retrieves them.
I rather like that separation. It encourages you to engineer a network, rather than merely accumulate radios.
The boring engineering still wins
An effective node does not need to look particularly impressive. My own observer and repeater experiments have involved a Heltec S3, an aerial hanging from a beam and USB power borrowed from a server. Hardly a BT exchange.
Yet that is enough to learn a great deal about placement, radio paths and what the local RF environment actually looks like.
The basic deployment rules remain reassuringly boring:
- Height matters.
- Antenna choice matters.
- Power matters.
- Weatherproofing matters.
- Documenting the thing matters.
The antenna is not decoration.
Neither is the administration password.
Routing without making every radio a router
Another interesting part of MeshCore is its routing model. Initial discovery can involve flooding, but after path information has been learned, subsequent direct traffic can make use of that path rather than repeatedly involving every possible repeater.
Group traffic has different requirements, but for point-to-point messaging the idea is attractive: discover broadly when necessary, then avoid wasting scarce RF airtime where possible.
That matters because airtime is the resource being managed. More range is not free. Increasing the spreading factor, sending longer messages or having lots of nodes talking all consume more of a shared and highly constrained channel.
The BlackBerry of LoRa
Then there is the LILYGO T-Deck style of device. Put a screen, keyboard and LoRa radio together and something interesting happens: messaging stops feeling like an Arduino experiment and starts feeling like an actual communications device.
My slightly tongue-in-cheek description was the “BlackBerry of LoRa.”
That is about the interaction model, not its capability. It still is not broadband, enterprise email or a smartphone replacement. But when you want to type a short message without involving a phone, the form factor suddenly makes quite a lot of sense.
Could it provide useful resilient communications?
This was the part I found most interesting.
Imagine cellular networks are overloaded, local Internet connectivity has disappeared or power failures have taken out some conventional infrastructure. MeshCore is not going to recreate the Internet.
Perhaps that is asking the wrong question.
A functioning local network carrying messages such as these could still be surprisingly valuable:
- I’m OK.
- Meet here.
- We need somebody at this location.
- The generator is running.
- Try channel X.
- I’m heading towards you.
The sensible mental model is a resilient noticeboard and pager network, not an Internet in a lunchbox.
That is a more useful engineering proposition because it sets an achievable requirement.
Security and governance matter too
A LoRa mesh should not automatically be treated like Signal just because messages are not immediately readable on somebody else’s screen.
Packets can be captured and stored. Implementations evolve, and both cryptography and firmware provenance need to form part of the threat model. If you are sending genuinely sensitive information, use something designed and assessed against that requirement.
The project has also provided a reminder about open-source governance. Once something starts moving from hobby project towards infrastructure, questions such as these stop being community politics and become part of the engineering decision:
- Who controls releases?
- Who owns names and domains?
- Where did the firmware come from?
- Who is responsible for security fixes?
That is a lesson considerably broader than MeshCore.
MeshCore or Meshtastic?
I do not think this requires joining a radio religion.
Meshtastic has a large ecosystem and is attractive for mobile and more ad-hoc groups. MeshCore’s deliberate separation between companions, repeaters and Room Servers appeals to me for a more engineered network.
Testing both is reasonable.
Changing firmware every weekend and calling the resulting confusion comparative research probably is not.
Where I have landed
I am still experimenting, but my takeaway from putting the talk together is fairly simple:
Build a small useful mesh, test it honestly, and write down the assumptions.
MeshCore is interesting precisely because it is constrained. It is not trying to build another Internet. It gives you a small amount of bandwidth over surprisingly useful distances using inexpensive, low-power hardware.
Once you accept those limitations, you can start asking the more interesting question:
What useful services can we build with it?
The answer might be allotment telemetry.
It might be a community network around Hove.
Or it might simply be a resilient little communications path which, on the day the comfortable infrastructure is not there, turns out to be worth considerably more than the collection of £30 radios it was built from.