Day 41 in the bunker: how twenty ESP-01 modules gave us our voice back (BunkerNet)

#esp-now #esp8266 #mesh

No replies · 0 views · started 42 minutes ago · 5 min read

GumSlone Administrator Principal · 1,698 posts #1

Day 41 underground.

Everyone down here still has a phone. They charge fine — we have solar panels on the vent shaft and a stack of power banks. They just can't reach anyone. Under metres of concrete there is no mobile signal, no internet, no radio, no landline. Calls fail, messengers spin forever. Forty-three people in a bunker built for twenty, spread over three levels and a long service tunnel, each holding a perfectly good phone that can't talk to the phone in the next room. The only way to tell the medic on level three that someone was hurt on level one was to run.

Down on level two, behind the water tanks, there was a room nobody had touched since we arrived: an electronics workshop. Soldering station, a crate of jumper wires, a few dusty Arduinos, a bench power supply — and a plastic tray with a label in marker: ESP-01 x20.

Twenty tiny Wi-Fi modules, each the size of a postage stamp. No router to talk to. No internet to connect to. But they could talk to each other.

The first night at the bench

We had a laptop with a copy of the firmware someone had pulled down long before the lights went out: BunkerNet. We generated our own secret key, flashed the first module with a USB-serial adapter set to 3.3 V, held GPIO0 to ground on power-up, and watched the upload bar crawl.

./tools/new-psk.sh
pio run -t upload

Then we plugged it into a USB charger, and on a phone a new network appeared: BunkerNet. Tap it — and a chat page opened by itself. No app, no install. It asked for a name. Somebody typed Workshop. The first message in the bunker's new history was simply: "anyone there?"

Spreading the mesh

By morning we had eight modules flashed. We taped them along the stairwells and down the tunnel, each one on a phone charger or a power bank:

 phone ──Wi-Fi──► node A ◄──ESP-NOW (encrypted)──► node B ──Wi-Fi──► laptop
                     ▲                                  ▲
                     └──────────── node C ──────────────┘

Every node has the same network name and address, so your phone just jumps to the nearest one as you walk. Messages hop from module to module over ESP-NOW, encrypted with ChaCha20-Poly1305. When the generator room's node went dark after a power surge, nobody even noticed: the messages simply took another path. No routing tables, nothing to break.

Two modules we flashed as relay-only — no access point, no web page, just range — and pushed them deep into the tunnel toward the east hatch.

How the bunker used it

  • The watch room. Someone tapped + Room and typed watch. From then on, everyone on guard duty shared their own channel, separate from the general chatter.
  • The medic's inbox. The medic slept six hours a day. Private messages sent while she was offline waited in the mesh — marked ⏳ stored — and appeared the moment she opened the page, on any node, with ✓✓ when delivered.
  • The water board. A sensor in the tank wrote water_level = 40% to the shared data board over the HTTP API. Everyone could see it. Rationing arguments got shorter.
  • The red button. On the module by the east hatch we soldered a push button. Hold it two seconds and every phone on every level lights up with a red banner, beeps and vibrates — repeated for five minutes so nobody misses it. We tested it once. Nobody slept for an hour afterwards, but we knew it worked.
  • The clock. None of the modules has a real-time clock, so they agree on time from the phones connected to them — the majority wins. One kid's phone was stuck in 2019. The mesh politely told him.
  • The node map. It shows every module, how many hops away it is, and its supply voltage — which is how we caught a dying power bank in the tunnel before it went flat.

When the generator failed for a whole night, the nodes ran on power banks, and in the morning every stored message was still there: they save to flash.

Day 60

The bunker is quieter now. Not because there's less to say, but because nobody has to run up three flights of stairs to say it. The workshop has become the busiest room on level two: people bring broken chargers, old phones, bits of wire. There's a sign on the door in marker: MESH OPS.

Same phones as on day one. Still no signal, still no internet. Twenty ESP-01s, a soldering iron, and an open-source firmware were all it took to let those phones talk to each other again.


The real project

The story is fiction, but the firmware is real: BunkerNet on GitHub — an offline, self-healing, encrypted mesh for cheap ESP-01 / ESP8266 modules.

  • Group chat, private messages with delivery ticks, rooms and priority messages
  • Store-and-forward for people who are offline
  • Emergency alerts, with an optional hardware SOS button
  • Shared data board with an HTTP API for sensors and scripts
  • Node map with hop count and supply voltage
  • ChaCha20-Poly1305 encryption, replay protection, survives power cuts
  • English, German and Ukrainian interface; zero external dependencies

It works just as well for a cabin, a festival, a camping trip or a blackout. Always generate your own key before flashing — the default one is public.

What would you build at that workshop bench with a tray of ESP modules? And where would you use an offline mesh like this?

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close