Record the reusable pitfalls from the Sound Sentry release under docs/experiences/y2lin/ as bilingual entry pairs: - serial-screenshot-protocol: the FAP_SCREENSHOT_V1 implementation lessons (install the USB-serial-JTAG driver, substring-match the command, render into a statically reserved full-screen buffer, chunk payload writes to the tx ring buffer, mute logs during the binary window, fail silently). - meter-ui-smoothing-and-layout: the meter-page UI lessons (asymmetric EMA readout smoothing, fixed-width numeric boxes, creation-time animation anchors, stray-block triage, LVGL pool exhaustion as a white-screen cause). Link both entries from the experiences archive index and the development experience-notes index, in both languages.
57 lines
4.8 KiB
Markdown
57 lines
4.8 KiB
Markdown
<p align="right">
|
|
<a href="experience-notes.zh_CN.md">简体中文</a> · <strong>English</strong>
|
|
</p>
|
|
|
|
# Development Experience Notes
|
|
|
|
This page is the index for reusable development experience captured after each
|
|
firmware release — focused on the fork's own `docs/` differences from upstream:
|
|
the documents the developer created or changed on this fork. Individual entries
|
|
are stored as separate files under [`../experiences/`](../experiences/), grouped
|
|
by the contributing developer's username, one file per entry, named after the
|
|
entry's content summary in lowercase-kebab-case. The `experience-pr` skill writes
|
|
new entries there and links them from the index below.
|
|
|
|
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`](../fork-guide.md).
|
|
|
|
Before starting a new development, check here for previously recorded, reusable
|
|
experience — alongside [`plays/`](../../plays/README.md) for reference
|
|
applications.
|
|
|
|
## How to add an 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.
|
|
|
|
Each entry is a single `.md` file with its paired `.zh_CN.md`, stored under
|
|
`docs/experiences/<username>/` and named after the entry's content summary in
|
|
lowercase-kebab-case (for example `audio-compression-trade-offs.md`), so the
|
|
filename describes the topic instead of an opaque timestamp. `<username>` is the
|
|
contributing developer's GitHub username (lowercase-kebab-case, e.g.
|
|
`shinku-chen`), and groups that developer's entries together instead of
|
|
flattening them directly under `docs/experiences/`.
|
|
|
|
A developer is not limited to a single entry. The archive holds **one or more
|
|
entries per developer**, each as its own file (with its paired `.zh_CN.md`) under
|
|
that developer's folder, and each linked from the index below. Add a new entry
|
|
for each reusable, post-release learning rather than folding it into an existing
|
|
one, so each record stays a single, self-contained topic.
|
|
|
|
## Entries
|
|
|
|
See [`../experiences/`](../experiences/), and its
|
|
[`INDEX.md`](../experiences/INDEX.md) for the archived-entry table, for the
|
|
stored entries. The index below lists each entry once it is added.
|
|
|
|
- **Audio Compression Trade-offs on ESP32-C3** (Shinku-Chen) — how a voice-playback codec was chosen on limited flash (IMA-ADPCM vs Opus vs MP3), with measured capacity and decoder cost. See [`../experiences/shinku-chen/audio-compression-trade-offs.md`](../experiences/shinku-chen/audio-compression-trade-offs.md).
|
|
- **Post-Release Follow-up for the AI Passport Publishing Flow** (Shinku-Chen) — confirm the publish destination, include the data partition in a release, and the consent gates for the post-release tracks. See [`../experiences/shinku-chen/post-release-follow-up.md`](../experiences/shinku-chen/post-release-follow-up.md).
|
|
- **Display Refresh and Deep-sleep on ESP32-C3 (No PSRAM)** (Shinku-Chen) — direct panel refresh of a single image rect, RTC-GPIO deep-sleep wakeup, and the LVGL object-type misuse crash signature. See [`../experiences/shinku-chen/display-refresh-and-deep-sleep.md`](../experiences/shinku-chen/display-refresh-and-deep-sleep.md).
|
|
- **Network Audio Streaming and Memory Budgeting on AI Passport** (PhoenixZHC) — bounded HTTP audio streaming, ES8311/I2S ownership, and joint memory budgeting for decoding, JSON, DMA, and LVGL. See [`../experiences/phoenixzhc/network-audio-streaming-and-memory.md`](../experiences/phoenixzhc/network-audio-streaming-and-memory.md).
|
|
- **SoftAP Provisioning and Resource Budgets on AI Passport** (PhoenixZHC) — DHCP state, captive-portal compatibility, bounded forms and uploads, and no-PSRAM resource planning. See [`../experiences/phoenixzhc/softap-provisioning-and-resource-budget.md`](../experiences/phoenixzhc/softap-provisioning-and-resource-budget.md).
|
|
- **Implementing the FAP_SCREENSHOT_V1 Serial Screenshot Protocol** (Y2Lin) — 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. See [`../experiences/y2lin/serial-screenshot-protocol.md`](../experiences/y2lin/serial-screenshot-protocol.md).
|
|
- **Sound-Meter UI: Smoothing, Anchors, and Stray Blocks** (Y2Lin) — 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. See [`../experiences/y2lin/meter-ui-smoothing-and-layout.md`](../experiences/y2lin/meter-ui-smoothing-and-layout.md).
|