Meshtastic: An open source, off-grid, decentralized, mesh network
meshtastic.org
meshtastic.org
Disclaimer: I'm the author. The concept is similar to Meshtastic, but the goal was to make more documented and clear choices at protocol level, to have a much simpler to hack and adapt implementation, and so forth.
If you happen to understand Italian, I gave a talk about it here: https://talks.codemotion.com/introduzione-alla-tecnologia-rf...
~ 500 - 1km: urban landscape, tons of buildings in the middle. Like opposite sides of a very crowded block.
~ 5 km: open landscape, some small hills in the middle, no good optical contact.
~ 50 / 80 km: direct optical contact, especially if CRC is disabled.
I also made a fork of a modified firmware that gives you your playa location
Seemed much harder than the process of setting up an APRS iGate and viewing my location on aprs.fi
I'd like to try again sometime though, but feel like I need a good getting started guide to motivate me!
At double digit bits per second, it has to be like a few characters per second at best or even less with packet headers, error correction, etc.
Wee bit sexist...
EDIT: Yes I know it's a proverb, I'm not blaming the parent post.
EDIT: 4 downvotes? Nice.
Similarly, for everything that you transmit packets towards another specific node, 99% of your RF signal is going in azimuth directions that you don't want and don't need, but because it's an omni it goes everywhere. Raising the noise floor for all other nearby nodes of similar hardware configuration.
I would encourage people who want to do something like this on a very tight budget to look into the designed for purpose point-to-point (primarily parabolic reflector based) 802.11ac/ax based radio systems that exist to form L2 ethernet bridges between two locations. And some newer very low cost 24 GHz and 60 GHz based stuff also designed for exclusively line-of-sight (and line-of-fresnel-zone-clearance) point-to-point bridges.
LoRA stuff is also much better if have fixed-link needs between two spots in bands far below the typical 2.4 or 5.x GHz, working in VHF/UHF-like bands (or generally anywhere below 1300 MHz), and can point a few yagi-uda or dipole type antennas at each other instead of having two omnidirectional antennas talk to each other.
If you have sites which are not mobile and do not move around or change location relative to each other, and you want better link reliability and data rates, I would strongly encourage people to look into using just about anything else that isn't an omni to form network links between nodes.
randomly chosen example in 5 seconds of googling, note gain pattern in one specific direction:
https://www.elprocus.com/design-of-yagi-uda-antenna/
One of the cool things being done with LoRA-type chipsets and RF modules these days is ExpressLRS, which implements a serial UART bridge between remote controller and UAV (or unmanned boat, ground vehicle, etc) for link between human and onboard flight controller. Evolution of the same general idea as TBS Crossfire for RC applications.
https://www.google.com/search?client=firefox-b-d&q=expresslr...
There's so much possibility to bypass ISPs...
It's text messaging with channels, some provisions for nodes transmitting sensor data, and some location data.
It's not intended to provide TCP/IP networking.
DIY things capable of a few hundred kbps and text only are a very niche application. "Mesh" at very low data rates and duty cycles has very good purposes when purchased in a fully packaged single purpose industrial/embedded system from a vendor with support, such as how electrical grid operators implement some forms of smart meters.
> building a wireless village/town scale IP network
This was never its goal. You can build a simple messaging network for text that has a pretty good range and low bandwidth. That is all.
I want a global mesh network to replace the internet
What are your design criteria you have in mind? There are tough tradeoffs around discoverability, latency, availability, security.
A search for "Is Taco Express open right now?" should not resolve a globally unique name to a globally unique address and then ask some distant server which will then ask for your location info so that it can figure out which taco express you mean. That's so fragile.
Instead the search should propagate through whichever meshes happen to be in range until it encounters a node which is authoritative on Taco Express hours (which is probably a raspberry pi at the Taco Express). You get local results because they're local to the query.
The problem of bridging these meshes is interesting, but it's just not that useful until we have an app ecosystem that doesn't rely on stable addresses for individual nodes.
We need context addressing and pub/sub, not server addressing and request/response. It's going to require a pretty big conceptual shift. Sadly, I don't see that shift happening until some disaster convinces us that it's necessary.
of course, this doesn't include the very real technical challenges of building a scalable mesh protocol. which are nontrivial in themselves.
> its difficult to position a company in a place where they can capture a significant portion of the generated value
That's why I want to make the change. Companies tend to wane in trustworthiness over time, but maybe not if they were painfully aware that their relevance depends on explicit trust configs which could be altered by the end user at any moment and with minimal pain on the user's part.
Eventually things will get bad enough that a market emerges for businesses that create handcuffs for other businesses... the spiritual successor to VPN's or somesuch. Until then, it's hobbyist stuff.
That, or it'll be the big solar flare which gives first-mover-advantage to whoever can better operate in the aftermath. But until then... still hobbyist stuff.
Just my 0.02$ but I don’t see this happening. One, the content rights of media would preclude meaningful distribution and content addresses of commercial media, which is what most care about. After 2023, I think it’s far more likely that generalized human knowledge is captured in an LLM to (somewhat accurately) spew out. That LLM would be distributed and localized - Google already wants to ship a small LLM on each phone.
I also don’t see global pub/sub - I think that’s just too many trade-offs for real use cases. Latency/partition-ability etc. I do see everyone’s smarthome/phone ecosystem providing a basic and localized event service.
The pendulum does seem to be swinging back to local-first, but I think that will mean personal-scale not web scale.
I was a Product Manager for a mesh based personnel tracking system on construction sites. We licensed Wirepas's tech for our solution... wound up learning a lot about the nuances of meshes.
I thought I heard about mesh networks being used in protests years ago...?
Do we still not have something viable?
Check https://openwrt.org/docs/guide-user/network/wifi/mesh/start
Dang it!
Manyverse can use WiFi for decentralised social networking - https://www.manyver.se/. They're currently in the middle of a rewrite of the backend and a protocol switch away from Secure Scuttlebutt to their own protocol currently named PPPPP.
Reticulum/Sideband offers a P2P messaging system over WiFi or other mediums - https://github.com/markqvist/sideband
And it was discontinued in 2018 and not open source.
I signed up to go to “offline camp” in Oregon (anyone else?) but it was canceled due to a large forest fire (probably related to Camp Fire) so I wound up camping near a river instead.
I’ve spent $1 million and over a decade to build open source community software that can run on any commodity servers — on a plane, on a cruise ship like Norwegian Cruise Lines, in rural villages, etc.
We want to help local education (including Afghan girls, but we are also in touch w the RohingyaProject.com and others to help stateless refugees).
Anyway, these mesh networks exist and our cellphone hardware is great, what’s missing is great backend software to wean people off Big Tech (Twitter, Facebook) the way the Web did for AOL, MSN, and the way Wordpress did for Web 1.0
If anyone wants to get involved, or knows a good “decentralized web” or “indieweb” movement that actually thrives, comment below and let me know how to get in touch.
https://qbix.com/blog/2021/01/15/open-source-communities/
Recent article covering the platform:
In crowded places like college campuses, we could run campus IM on it for instance
All these mesh networks have a max hop limit, to prevent messages from bouncing around the network repeatably, but also not guaranteeing messages reach their destination. Meshtastic defaults to 3. Gotenna I believe is also Lora and is also 3. Bridgefy is bluetooth and has a 250 max hop limit, but also a 7d TTL, basically not close to real-time.
It could be made better by having statically position nodes that keep track of the nodes it can reach. And then having all these statically positioned nodes communicate with each other on a different wireless spectrum so you don't interfere with regular nodes. Since that topology isn't changing, you can efficiently route message between them. Now that's basically just regular wifi mesh.
https://yggdrasil-network.github.io/ https://github.com/matrix-org/pinecone
So if you're using internet anyways, at high-density locations like a college campus, just deploy more wireless APs in the area instead of building an inefficient wireless mesh network. The wireless mesh part of those protocols is only useful for areas with no internet, but somehow enough people to build a chain to an internet connected device.
Reading Pinecone's documentation: "The only requirements for a peering today are that it is stream-oriented and reliable" [0]. I don't think a phone that's constantly moving around and battery operated (so you want to power-save by transmitting less) is considered reliable.
Pinecone's offline protocol also will not route to devices that haven't been seen in the last 10 seconds [1]. Basically preventing phones from sleeping or going into a low power state. That's also the kind of protocol that only works for small wireless mesh networks. A huge wireless mesh network would quickly be filled with "I'm here" broadcasts if a device is expected to do it every 10 seconds and it has to be repeated for everyone else on the mesh.
[0] https://matrix-org.github.io/pinecone/introduction
[1] https://matrix-org.github.io/pinecone/virtual_snake/maintena...
Both protocols are also designed with mobility events in mind and measure far better than many other routing protocols on route convergence in highly mobile environments.
Also interpret “stream-oriented and reliable” as link-layer characteristics, i.e. a peering over TCP even if it is link-local satisfies these requirements. Not “reliable” as in “never goes away”.
I'm reading that as why Pinecone has the virtual snake topology. But they define that as a public key-based routing, which doesn't take into account optimal routing in the network. Nodes are ordered by public key [1]. It's good for P2P mesh, not wireless offgrid meshes.
And their SNEK routing does prefer the internet over Bluetooth [2]:
> we can further refine the path to use either the faster or lower latency link type to route to that peer:
> If the Best candidate has a slower peer connection type (Multicast > Remote > Bluetooth) than the connected peer
[0] https://github.com/matrix-org/pinecone#does-pinecone-work-on...
[1] https://matrix-org.github.io/pinecone/snake
[2] https://matrix-org.github.io/pinecone/virtual_snake/nexthop
As the original author of that documentation, it's quite entertaining to have it quoted back to me. :-) In any case the routing "prefers" links labelled as the internet when there is a tiebreak between two peerings between the same pair of nodes, i.e. you are connected to some other device via Wi-Fi and Bluetooth simultaneously.
And while it is true that Pinecone cannot necessarily always make the best routing decision based on public keys alone, aggressive queue management attempts to provide the best QoS for all flows and it scales very well because nodes maintain only a small amount of state about their position in the spanning tree and their position in the SNEK. Importantly, shortcuts can and often are taken when Pinecone switches to tree-based routing as the geometric distance to the destination on the tree is evaluated at each hop. Routing "by the SNEK" is used primarily to find the remote node and as a fallback in case the tree routing fails.
[1] https://github.com/mwarning/meshnet-lab [2] https://pinecone.matrix.org or https://github.com/matrix-org/pinecone/tree/main/cmd/pinecon...
If so, what was its purpose and why this technology over others?
The scenarios are:
1. Your country is invaded, and you are building a resistance.
2. Your government becomes a dictatorship. You want to fight back.
3. Natural disasters: the grid and mobile network are down. You want to organize and work together to help each other.
Meshtastic nicely blends into the existing IoT LoRa traffic. And give you some sort of invisibility.Other scenarios are similar to ham radio - asking other dudes about the weather.
Not everything prepper-like is for prepper-only usage
These would also be handy in construction when you're deep in the bowels of a new building and can't get any reception whatsoever (cell, CB, etc.)
The extreme event scenarios have pretty obvious applications but are also very rare.