The Connect Four release on the fork's feature branch produced four reusable notes and one application archive, all under docs/reference/shinku-chen/: - two-device-ble-link: symmetric peer discovery with an address tiebreak instead of a host/join choice, the measured heap cost of the link on a part without PSRAM and its collision with a static screenshot buffer, two NimBLE traps that compile cleanly and only fail on hardware, the NVS requirement behind RF calibration caching, and the stop-and-wait layer a turn-based application needs. - landscape-rotation-and-deep-sleep-key-wake: rotating a portrait panel into a 320 x 240 landscape screen through LVGL, why the corner mask must follow the logical resolution, and how an ADC-owned pin makes a low-level deep-sleep wake fire at sleep entry. - on-device-game-ai-wall-clock-budget: why node-count limits misfire on this board (about 15k nodes per second), iterative deepening against a time budget, yielding to keep the idle task fed, and difficulty as a blunder rate. - release-artifact-verification: sizing a static buffer from the panel rather than guessing, reading the startup log of the published merged image, and replacing a release that shipped wrong rather than following it up. - connect-four: the functional summary of the published application. Both language versions are added together and the reference index lists all five entries. Documentation only: no code, configuration, partition table, or repository rule is touched, and the runtime two-device BLE transport this work informed is split into its own change.
简体中文 · English
Reference
This area holds reference material for AI Passport development that is not a
binding requirement: reusable development experience and archived application
playbooks. These are consulted when developing something new, not enforced as
rules. Reference is organized by contributing developer's GitHub username: under
each repository-relative docs/reference/<username>/ folder, experience entries
are stored as flat files and application playbooks as subdirectories.
The engineering rules themselves live under
../development/; the collaboration conventions under
../contribution/.
Contributors
Shinku-Chen
Experience entries:
- Audio Compression Trade-offs on ESP32-C3 — how a voice-playback codec was chosen on limited flash (IMA-ADPCM vs Opus vs MP3), with measured capacity and decoder cost.
- Post-Release Follow-up for the AI Passport Publishing Flow — confirm the publish destination, include the data partition in a release, and the consent gates for the post-release tracks.
- Display Refresh and Deep-sleep on ESP32-C3 (No PSRAM) — direct panel refresh of a single image rect, RTC-GPIO deep-sleep wakeup, and the LVGL object-type misuse crash signature.
- Shutting Down On-Board Peripherals Before Deep-Sleep — verified register shutdown, shared-bus ordering, terminal GPIO states, LCD deep-sleep holds, the
esp_codec_dev_close()opened-state trap, and remaining hardware loads. - Landscape Rotation and a Deep-sleep Key Wake — rotating a portrait panel to a 320 × 240 landscape screen through LVGL, why the corner mask must follow the logical resolution, and how an ADC-owned pin makes a low-level deep-sleep wake fire at sleep entry.
- Wall-clock Budgets for On-Device Game AI — why node-count limits misfire on this board (about 15k nodes per second), iterative deepening against a time budget, yielding to keep the idle task fed, and difficulty as a blunder rate.
- Size Static Buffers from the Panel, and Verify the Release Artifact — a 51 KB buffer mistake that left 8 KB of free heap, reading the startup log of the published merged image, and replacing a just-published release instead of shipping a follow-up.
- Two-Device BLE Link Between AI Passport Boards (No PSRAM) — symmetric peer discovery with an address tiebreak instead of host/join, measured link heap on a no-PSRAM part and its conflict with a static screenshot buffer, two hardware-only NimBLE GATT traps (missing
access_cb,EDONEafter a successful subscribe), NVS for RF calibration, and a stop-and-wait layer for turn-based play.
Application playbooks:
- Voice Keychain — a sound-effects keychain that turns the AI Passport into a pocket audio player.
- What to Eat Today — a button-driven food roulette that turns the AI Passport into a "what should I eat?" spinner.
- Connect Four — a landscape 10 × 7 four-in-a-row game with three computer difficulty levels, a two-player mode, synthesized sound, and an idle deep sleep.
PhoenixZHC
Experience entries:
- Network Audio Streaming and Memory Budgeting on AI Passport — bounded HTTP audio streaming, ES8311/I2S ownership, and joint memory budgeting for decoding, JSON, DMA, and LVGL.
- SoftAP Provisioning and Resource Budgets on AI Passport — DHCP state, captive-portal compatibility, bounded forms and uploads, and no-PSRAM resource planning.
Y2Lin
Experience entries:
- Implementing the FAP_SCREENSHOT_V1 Serial Screenshot Protocol — install the USB-serial-JTAG driver first, substring-match the command, snapshot into a statically reserved full-screen buffer, chunk payload writes to the tx ring buffer, and mute logs during the binary window.
- Sound-Meter UI: Smoothing, Anchors, and Stray Blocks — an asymmetric EMA for live readouts, creation-time anchors for mascot animations, the usual suspects behind stray screen blocks, and LVGL pool exhaustion as a white-screen cause.
sunny0826
Application playbooks:
- Offline Pokédex — a fully offline Pokédex that embeds all 1,025 Pokémon, their sprites, and cries in the firmware.
Adding an experience entry
Each release may produce one or more reusable, post-release learnings; each is
added as its own entry (with the release tag or commit as context). Follow the
repository language rule: keep the default .md path in English and the paired
.zh_CN.md in Simplified Chinese, aligned in the same change.
An entry is a single .md file (with its .zh_CN.md peer) stored flat under
docs/reference/<username>/ and named after the entry's content summary in
lowercase-kebab-case (e.g. audio-compression-trade-offs.md), describing the
topic rather than an opaque timestamp. Each entry is routed before submission:
general, upstream-benefiting experience goes to the upstream
FoloToy/ai-passport as a PR; fork-specific customization stays in the fork per
docs/fork-guide.md.
Archiving an application
When an application is published, archive it under the repository-relative
docs/reference/<username>/<app-name>/
with an AI-generated bilingual functional summary (README.md / .zh_CN.md) and
optionally a how-to guide. The archive is text-only — record the cover image
by file name and format only, and do not store the firmware .bin. The plays-archive
skill drives the archive and its convention. Add the application to this index
and its Simplified Chinese peer in the same change.
Related
- Repository overview and demo branches:
../README.md