A Tiny LoRa BBS Running on Linux on My Old Android Phone
A Tiny BBS Running on Android over LoRa
I recently got a question on Mastodon from someone wondering whether I’d actually built a BBS running on Android and if they could try it.
The short answer is yes! And since someone asked, I thought I’d share a little more about how it works.
A BBS in my pocket
The whole thing runs on my Google Pixel 7 Pro, with a LilyGO T-Echo connected over USB. The T-Echo handles radio communication using Meshtastic, while the phone runs the BBS and stores the messages.
My node, !ac81bba0, is connected to Göteborgsmeshen, the local Meshtastic network around Gothenburg, Sweden.
Other nodes can reach it directly or through multiple hops across the mesh. No internet connection is needed for the basic BBS functions.
It’s a bit like running a tiny dial-up BBS, except there are no phone lines, no modems, and everything travels over LoRa radio.
What can you do with it?
The interface is deliberately simple. You send a direct message to my node with a command, and the BBS replies.
Here’s what’s currently available:
hj— Show the help menu.läs— Read the three latest messages on the public bulletin board.skriv Hello everyone!— Leave a message on the board.post NAME Hello!— Send private mail to another node using its short name.dikt— Get the daily poem.nytt— Get the latest news.
You can also send ordinary text and receive a conversational response.
The commands are in Swedish, mostly because I built this for our local mesh. But they’re simple enough to learn!
Store-and-forward mail
One of my favourite features is private mail.
You can write a message to another node even if it isn’t currently reachable. The BBS saves the message in its SQLite database and delivers it when that node is heard again.
It’s a small and simple mail system, but I like the idea of messages waiting for someone to come back on the air.
A little help from my home server
The basic BBS runs locally on the Pixel, but it also has a connection to my Debian home server, named jelly.
The server provides a few extras, including news, poetry and conversational responses. Those features require a working connection to my home server, but the bulletin board and private mail don’t.
I also have a Matrix bridge so I can monitor the mesh, see which nodes are active, check signal quality and send messages without sitting next to the radio.
Everything is stored in SQLite, including messages, known nodes, radio packets and GPS tracks.
The BBS doesn’t broadcast messages to the public channel on its own. It only responds when someone sends it a direct message.
Can you try it?
Absolutely — if you can reach my node!
The catch is that LoRa is a radio network, so being on a Meshtastic mesh somewhere else in the world doesn’t automatically mean you can reach Göteborgsmeshen in Sweden.
If you’re within radio range, or connected through a suitable network bridge, you can send a direct message to !ac81bba0 and try hj.
73 from Gothenburg!
A more technical overview
PiewPiew BBS on the Pixel — How it works
Hardware and transport
- A LilyGO T-Echo (Meshtastic LoRa radio) is connected to the Pixel over USB and appears as
/dev/ttyACM0. - Only one process can hold a Meshtastic serial connection at a time. A single daemon,
mesh-link, runs as a service via/etc/pixel/tjanstand has exclusive access to the port. Logging, the Matrix bridge and the BBS all run inside that process. - The node identifies itself on Göteborgsmeshen as
!ac81bba0. Other radios can reach it directly or through multiple hops via repeater nodes.mesh-linktracks RSSI, SNR and hop count for every node it hears.
Storage — SQLite
Everything is stored in a single SQLite database at ~/mesh/mesh.db.
The daemon maintains a write connection, while CLI and reporting commands use read-only connections.
The database contains five main tables:
paket(packets) — Stores every packet received, including timestamp, packet ID, source and destination nodes, channel, type, RSSI, SNR, hop count, MQTT origin, deduplication flag, message text and acknowledgement status. Indexed by timestamp.noder(nodes) — Stores information about known nodes, including ID, short and long names, hardware, role, first and last contact, active days, packet count, best RSSI/SNR, hop count, last known GPS coordinates and information source.spar(tracks) — Stores the Pixel’s GPS track, including timestamp, latitude, longitude and altitude. Used to generate a Leaflet map throughmesh-link karta.tavla(bulletin board) — Stores public posts with an ID, timestamp, sender node and message text.post(mail) — Stores private messages, including sender, recipient, message text and delivery status. Indexed by recipient and delivery status for efficient delivery when a node reconnects.
Accessing the BBS
Any Meshtastic radio that can reach the node can send it a direct message.
The BBS recognises the following commands, handled by kommando():
hj,?,meny— Display the help menu.läs— Read the three most recent bulletin board posts.skriv TEXT— Publish a new post on the bulletin board.post NAME TEXT— Queue a private message for a node identified by its short name. The message is delivered when that node is heard again. Each sender can have up to five pending messages.dikt— Retrieve the daily poem from JellyPoOp, a helper running on my home server. The poem is fetched once per day over SSH using a forced command and cached in memory.nytt— Retrieve news through the same JellyPoOp connection.- Any other text — Forward the message to JellyPoOp for a conversational response. Only nodes on a trusted allow-list can receive factual information about my home lab.
The BBS never sends unsolicited messages on the public channel. It responds only to direct messages.
Matrix integration
I manage the system through a Matrix room called 📡 Mesh.
Messages written in this room can be transmitted to the public LongFast channel, with rate limits of three messages of up to 200 bytes each and a maximum of 20 messages per hour.
The room also supports owner-only commands, handled by rum_kommando():
!dm NAME TEXT— Send a direct message to another node.!noder— List recently heard nodes.!status— Display radio and Matrix connection status.!test— Run a health check covering the radio, mesh, network and phone.!paus [MIN]— Pause transmissions for a specified number of minutes.!fortsatt— Resume transmissions.!update— Generate a BBS status report in English.
Phone monitoring
A separate bot, fraga-bot.py, runs through JellyPoOp and listens in another Matrix room called Status.
The !pixel command provides information about:
- Phone battery level
- T-Echo connection status
mesh-linkservice health- BBS statistics
- Running services
This monitoring bot is separate from the BBS itself.