The Ghost Engine is the operational paradigm that defines Pisces Moon OS. It runs on Core 0. Always. You cannot stop it by using the device — because it does not run on the core the device uses. It wardrives while you play a game. It logs BLE beacons while you use the AI terminal. It maintains GPS fix while you browse files. The wardrive count increments while you do anything else. The operator never has to initiate it, manage it, or think about it. It just runs.
No previous ESP32-S3 project implemented this architecture. Every previous project was single-function firmware — the device did one thing because the entire processor was dedicated to that one thing. The Ghost Engine is the first implementation of persistent Core 0 background intelligence collection on this hardware class. The device is always collecting. The operator is never interrupted. That is the use case that makes Pisces Moon OS different from every other ESP32-S3 OS that exists.
"The Ghost Engine never stops. The SPI Bus Treaty is why."
The SPI Bus Treaty is the contribution this project produced that belongs to the field. It is not a bug fix. It is the first named architectural standard for shared-bus arbitration on the ESP32-S3 hardware class — a formal behavioral protocol that governs how all OS components and third-party developers must interact with the SPI bus when running concurrent multi-subsystem workloads. It did not exist before this project. It now belongs to the public technical literature.
The Treaty is what makes persistent dual-core background tasking possible on this hardware. Without it, concurrent SD card and LoRa radio operation under sustained load causes non-deterministic fatal exceptions. With it, Core 0 runs the Ghost Engine continuously — wardriving, BLE scanning, GPS logging — while Core 1 serves the operator without interruption. The device is always collecting. The operator never knows it.
The historical lineage: Unix filesystem locking conventions (1970s), the Apollo AGC priority scheduling protocol (1969), Nintendo's N64 RSP time budget (1996). In each case the solution to competing subsystems sharing a hardware resource was not a patch — it was a protocol. A named standard. The SPI Bus Treaty is that standard for the ESP32-S3.
"Any developer who builds concurrent multi-subsystem software on this hardware and encounters this problem now has a reference. They did not have one before."
Pisces Moon OS is an operating system for handheld ESP32 field devices: a launcher, roughly 80 apps, and a persistent background collector, on hardware that is sold as single-purpose. It began on the LilyGO T-Deck Plus, a $50 device with a screen, a QWERTY keyboard, WiFi, Bluetooth LE, LoRa, GPS and a MicroSD slot. It now builds for a fleet from one codebase.
The radio side is a passive survey instrument. It listens and logs Wi-Fi access points, Bluetooth advertisers and LoRa nodes with a GPS position, in WiGLE format. It does not inject, join or interfere with networks the operator does not own. The Ghost Partition splits the SD card into a public side and a PIN-gated hidden side with a decoy mode and a wipe.
"The forge didn't need VC funding to build the Saturn V. It just needed focus and the right raw materials."
Version 1.2.1 (May 27, 2026) runs on six devices. Device differences live behind compile-time guards, and every screen reads its size at runtime.
| DEVICE | CHIP | WHAT IT IS |
|---|---|---|
| T-Deck Plus | ESP32-S3, 8 MB PSRAM | The origin device. Keyboard and trackball, LoRa, GPS. Runs the full suite. |
| T-LoRa Pager | ESP32-S3, 8 MB PSRAM | Pager-style mesh device with a rotary encoder. |
| Cardputer ADV | ESP32-S3, no PSRAM | Four concurrent radios on 320 KB of RAM. The proof that the architecture scales down. |
| C28P | ESP32-S3, 8 MB PSRAM | 2.8" touch kiosk with full-duplex audio. |
| Maxine | ESP32-S3 | 5" 800×480 wall display. |
| NM-CYD-C5 | ESP32-C5 (RISC-V) | The only 5 GHz radio in the fleet. Dual-band Wi-Fi 6. |
A T-Embed CC1101 target adds sub-GHz, nRF24 and NFC tools that receive and measure. It builds, and a first hardware boot showed the radios responding; broader RF behaviour is unverified.
The OS has been ported to the ESP32-P4, a much faster dual-core RISC-V chip with 32 MB of PSRAM, paired with an ESP32-C6 for Wi-Fi and Bluetooth. Three boards build from one tree: the LilyGO T-Display-P4 and the Elecrow CrowPanel 7" and 5".
| AREA | STATE ON THE T-DISPLAY-P4 |
|---|---|
| Core platform | Confirmed on hardware: portrait touch UI, panel auto-detect, SD, GPS and clock, and Wi-Fi and BLE after a one-time on-device install of the C6 radio firmware. |
| Camera and gallery | Confirmed on hardware: live preview, hardware-JPEG photos to SD, and a gallery with zoom, rotate and delete. |
| Audio, games, tools | Built, not yet confirmed: MP3/WAV player and recorder, 16 games plus Chess, file browser, calendar, hash tool, QR scanner. |
| Radio and dev tools | Built, not yet confirmed: BLE GATT explorer, network scanner, a swept sub-GHz spectrum view on the SX1262, an agent terminal for local models, MicroPython and an SSH client. |
The P4 edition is unreleased working code. One open fault remains on the T-Display: switching repeatedly between camera and gallery eventually whites the screen.
In November 2026 every wardrive log the fleet had written since March was audited as one dataset: 4.3 million observations from two recorders. The Signals Atlas found that the logs recorded a position and nothing about how good it was, and it documented one twelve-minute stretch where a parked T-Deck reported itself 556 km away while still hearing the networks around it.
WarDrive was changed in response. It now records satellites, dilution of precision and per-satellite signal strength, writes a GNSS quality log beside each session, and estimates its own accuracy in metres. A location guard refuses stale, estimated and impossible fixes, and holds any sudden jump that the surrounding Wi-Fi contradicts: if the networks did not change, the device did not move. A single locked GPS feed removes a fault that tore coordinates in half on the Cardputer.
This work compiles for the T-Deck Plus, T-LoRa Pager and Cardputer ADV and passes host tests, including a replay of the 556 km event that the guard holds for all 720 seconds. It has not been flashed to a device or released.
The analysis side of the same work is The Clinician.
Every previous ESP32-S3 project was single-function firmware. Pisces Moon OS is the first platform where you launch applications, switch between them, and the device's identity is not defined by what is currently running.
Enterprise field intelligence hardware costs $500–$2,000 per unit. Pisces Moon OS on a $50 T-Deck Plus exceeds the capabilities of commercial alternatives at a fraction of the cost. The sunk hardware cost is already paid.
AI inference runs on-device via the Gemini API with user-supplied tokens — no data leaving the hardware in offline mode. LoRa mesh radio operates without cell towers or internet infrastructure. The Ghost Partition protects sensitive data without cloud key management.
These six came from the T-Deck Plus. Five more surfaced porting to the T-LoRa Pager and the Cardputer; all eleven are written up in the white paper.
MicroSD and LoRa radio share the ESP32-S3's SPI bus. Simultaneous operation under sustained load causes non-deterministic Guru Meditation crashes. No documented solution existed for this hardware platform.
A named architectural standard. Four rules: hit and run (open, write, close, release immediately), no extended holds, radio traffic management via shared boolean flag, metadata-only destructive operations. Every component in the OS obeys them. Every third-party ELF module developer is required to obey them. The Treaty is a platform contract, not an implementation detail — and the first documented instance of this solution class on the ESP32-S3.
Running wardriving, AI client, BLE scanner, GPS, LoRa, and 60fps UI simultaneously exhausts 320KB internal SRAM. Crashes appeared as different bugs in different subsystems.
Single compiler flag -DCONFIG_SPIRAM_USE_MALLOC=1 transparently routes large heap allocations to 8MB PSRAM. First application in a general-purpose OS context for this hardware.
Core 0 Ghost Engine and Core 1 UI concurrent SD card access corrupts SdFat data structures. Only manifests at high WiFi network density — invisible in lab, near-certain in downtown Los Angeles.
Mutex created before either core starts. Every SD operation acquires, executes, releases. Radio state flag prevents simultaneous AI client and wardriving scanner operation. Zero crashes post-implementation in field testing.
150+ simultaneous BLE advertising devices cause callback stack overflow. GPS timeouts, display corruption, and random reboots were all the same root cause — impossible to reproduce in a lab.
All three fixes required simultaneously. Validated in downtown Los Angeles: sustained operation, no crashes, GPS fix maintained throughout.
AES encryption — the standard solution for the Ghost Partition — holds the SPI bus long enough to crash the device via the same mechanism as Problem 1.
The wipe deletes the Ghost Partition index files and the session files on both partitions, inside the SPI Bus Treaty budget. It does not overwrite sectors, so recovery tools and chip-off forensics can still read deleted data. It protects against inspection of the device, not against a laboratory. A threat model that needs guaranteed destruction should destroy the card.
LilyGO manufactured two production batches with different GPS modules at different baud rates. Undocumented. Silent failure — no error output. No fix in any community forum.
Attempts initialization at each supported rate, latches to first valid NMEA output. First documented solution to this hardware variation problem.
Dual-core architecture on the S3: Core 1 (UI + applications) / Core 0 (Ghost Engine wardriving). The P4 edition is ESP-IDF, component-based. Applications across: Security Tools, AI Terminal, Communications, Games, Utilities, CYBER Tools, Field Reference. ELF module runtime for SD card app deployment without reflashing.
T-Deck Plus hardware: $96 · MicroSD: $8 · Cloud AI (Claude Sonnet): $40 · Total: $144
Enterprise equivalent: Ruggedized edge device with GPS and LoRa: $500–$2,000. Security licensing and MDM overhead: thousands per seat per year. Engineering team to solve the same problems: tens of thousands in payroll. The gap is the argument.