## What
Archives the two M1 board photos into the evidence set at
`poc/evidence/m1-20260831/photos/` (full-resolution JPEGs, 3024x4032, no
recompression)
and registers both in the run manifest. Same pattern as the status-page
photo in #7.
## What the photos show
- `board_front_20260831.jpg` — front/button face; silkscreen BOOT / KEY
/ PWR visible
(the buttons driven in the M1 assist windows).
- `board_back_module_20260831.jpg` — back face with the module shield:
ESPRESSIF logo and
marking lines ESP32-S3-WROOM-1 / N16R8 / FCC ID:2AC7Z-ESP32S3WROOM1 /
IC:21008-ESP32S3WROOM1 / CMIIT ID:20220P20920 (uncertain reading).
## Cross-check
Module marking N16R8 (16 MiB flash, 8 MiB PSRAM) matches the M1-002
boot-log assertions
flash=16777216 bytes and psram=8388608 bytes. With this PR the M1-008
photo requirements
are complete: status page + board front + module marking.
## Hashes
- Front JPEG sha256:
`87d232943d4328a15f3d6047fc25d2acd53fea210e29889836df47c44b8c9dcf`
(verified byte-identical after copy); HEIC source
`20260831_083817376_iOS.heic` sha256:
`a849979c49cfcf4c94805309019ce75f39e071f047ff012ec8da9bc068e7deb7`.
- Back JPEG sha256:
`6576c98d54097f85554f013c34f96922082de96cb7413f654d074d04fe376b60`
(verified byte-identical after copy); HEIC source
`20260831_083821798_iOS.heic` sha256:
`67b0e24720c263653202b92515a15f1bd1e5b4dd3ac8151f64ebac05516d9da2`.
The HEIC sources stay out of the repository; filenames and hashes are
recorded in the
artifact notes.
Co-authored-by: ania-lain <[email protected]>
Co-authored-by: ania-lain <[email protected]>
## What
Archives the M1 status-page photo into the evidence set at
`poc/evidence/m1-20260831/photos/status_page_20260831.jpg`
(full-resolution JPEG, 4032x3024,
no recompression) and registers it in the run manifest.
## What the photo shows
The live Frame status page on the Waveshare ESP32-S3-RLCD-4.2 after the
M1 soak: the UTC+8
time line, KEY/BOOT/RST counters, WiFi `CONNECTED 192.168.50.178`, and
TF `READY` / log OK.
The on-screen timestamp 16:28:52 UTC+8 correlates with the capture
filename epoch
2026-08-31T08:29:02.935Z.
## Hashes
- Archived JPEG sha256:
`03817e0424452eba786768960645aa9e369bdfef08fe1da9883a7b9b035e82ec`
(verified byte-identical after copy)
- Original HEIC source `20260831_082902935_iOS.HEIC` sha256:
`62b86a8c0316fcd4ef5fbcc3ca59e308982627db5ef18d9b71bf9409cc446b9e` — the
HEIC itself
stays out of the repository; filename and hash are recorded in the
artifact note.
## Schema change (minimal additive)
`poc/evidence/schema.json` artifact items gain an optional `note` string
so provenance
(source file, screen-content summary, timestamp correlation) can travel
with the artifact
entry; `frame-evidence` needed no code change (generic jsonschema
validation) and one test
covers the new field.
## Remaining
Board and module photos remain TODO for M1-008; this PR only adds the
status-page photo.
Co-authored-by: ania-lain <[email protected]>
## Summary
Two M1 firmware enhancements on the Waveshare ESP32-S3-RLCD-4.2:
**Local-time display (UTC+8, fixed offset — China has no DST).**
Internal time stays strictly
UTC (RTC chip, JSONL `utc`, console `--json` keep the `Z`-suffixed
machine format). Only
human-facing surfaces convert via the new
`board::kLocalUtcOffsetSeconds`:
- display RTC line renders `unix + 8*3600` labeled `UTC+8` (split after
the date: measured
montserrat16 widths 157px + 119px fit the 179px status column; the old
one-line layout was
already 223px and overflowed)
- text `status` and `rtc status` show the labeled UTC+8 line and keep
both the raw unix and a
UTC line
- `rtc set` now takes UTC+8 local time (validates the local calendar
round-trip, converts
-8h before `set_rtc_time`); help/usage/README updated
**Three buttons.**
- KEY (GPIO18) unchanged (short <1s / long 1-3s / >=3s portal).
- BOOT (GPIO0, strapping pin — input + pull-up, runtime read only):
mirrors the KEY 30ms
debounce and release bands (short <1s, long >=1s), new
`boot_short_presses` /
`boot_long_presses`, no portal binding.
- RST is hardwired to chip reset, so it is tracked as a persistent boot
counter: NVS
namespace `frame`, key `rst_cnt`, incremented once per boot after
`nvs_flash_init`, exposed
as `reset_count`.
- Surfaces: display `KEY:a/b BOOT:c/d` + `RST:e` lines, console text +
`--json`
(`boot_short`, `boot_long`, `reset_count`), JSONL
`boot_short`/`boot_long` only — measured
594B worst observed line vs the 640B buffer (46B headroom, gate was
>=40B); `reset_count`
is static per boot so it is `--json`-only.
## On-device verification (34/34 deterministic asserts PASS + user
assist)
Evidence:
`.omo/evidence/m1wp/tz-buttons-finish-m1-wifi-provisioning.log`
- Build 0 warnings; clang-format 18.1.8 clean on whole `main/`.
- `rtc status`/text status UTC+8 lines match host `date` +8h (<=3s
skew); `rtc set` with a
UTC+8 local time round-trips (`1788157541 = 14:25:41 local - 8h`).
- JSONL `utc` unchanged UTC-with-Z, crc32c intact, max line 594B < 640.
- KEY short press: +1 with BOOT unchanged (user-assisted). BOOT short:
+2 (user-assisted).
BOOT long: not physically exercised this session — code path is the
device-proven KEY band
logic (same constants); noted in `.omo/notepads` for the next bench
session.
- RST/reset_count: host RTS-pulse reboot 3->4 with boot banner; `--json`
agrees.
- Regressions: wifi auto-connect CONNECTED, tf_logging true, selftest
`wifi_config: ok` +
`bad ignored`, `prov status` three-state.
Co-authored-by: ania-lain <[email protected]>
## Summary
Fixes three user-reported M1 defects (root causes pre-diagnosed):
1. **RTC permanently invalid** (`-` on screen, `"utc":""` in JSONL, 228x
`ESP_ERR_INVALID_CRC`):
nothing ever wrote the PCF85063, so after power loss its OS (oscillator
stopped) bit stays set.
- `board_service::set_rtc_time(int64_t)`: gmtime_r -> BCD -> multi-byte
I2C write of registers
0x04-0x0A with seconds bit7=0 (clears OS), then re-read confirms; I2C
access serialized
against `read_rtc` with a FreeRTOS mutex (console/SNTP context safe).
- `time_sync` service: on Wi-Fi CONNECTED starts `esp_netif_sntp`
(ntp.aliyun.com +
pool.ntp.org, `CONFIG_LWIP_SNTP_MAX_SERVERS=2`), and once `time()`
passes 2020-01-01 writes
the RTC once per sync (`rtc synced from sntp`).
- Console: `rtc status` (valid/unix/utc/OS bit), `rtc raw` (0x00-0x0A
hex + decode),
`rtc set YYYY-MM-DD HH:MM:SS` (strptime, UTC, range + calendar
round-trip validation).
2. **KEY feels slow**: display rendering was throttled to 10 s.
`display_service::run` now keeps
the 10 s full-render heartbeat (with memory refresh) but adds a 500 ms
fast path that
re-renders as soon as a signature over volatile fields (key counters,
key_pressed, wifi/storage
state, tf_logging_ok, ap_active, ssid_configured, rtc valid+minute)
changes. KEY counter now
appears within ~0.5-1 s.
3. **Which button?**: README now documents that only KEY (GPIO18) is
monitored; RST reboots and
BOOT (GPIO0) does nothing, plus the `rtc` commands, SNTP behavior, and
the CR1220 coin-cell
note (without a battery every power loss clears the clock again).
## On-device evidence
Single-session serial on /dev/ttyACM0 (see
`.omo/evidence/m1wp/rtc-render-fix-finish-m1-wifi-provisioning.log`):
- Post-flash boot auto-connected Wi-Fi and SNTP-synced the RTC before
the console attached
(pre-manual-set `rtc status` already showed real UTC 2026-08-31
05:17:55, OS bit clear).
- `rtc set 2026-08-31 12:00:00` -> `ESP_OK`; `rtc status` valid and
advancing across polls
(12:14:59 -> 12:15:49); JSONL `utc_valid:true` + non-empty `utc` with 10
s cadence and crc32c.
- Explicit RTS reset round captured live: `frame-time: sntp started
(ntp.aliyun.com,
pool.ntp.org)` and `frame-time: rtc synced from sntp (unix 1788154496)`
7.8 s after reset;
device-vs-host time delta 4 s.
- Pre-fix invalid state (OS bit set -> ESP_ERR_INVALID_CRC) is
documented in the prior soak
evidence (F3 log); the fix clears it on the first SNTP sync.
- KEY latency: no user press within the two assist windows;
console-observer polling at 500 ms
shows counters served immediately from the shared snapshot the display
fast path renders
(CITED: `volatile_signature` + 500 ms check in `display_service.cc`), 10
s heartbeat captured
via memory-metric refresh.
- Regression: `status --json` tf_logging=true, wifi=CONNECTED, selftest
`wifi_config: ok`.
Build 0 warnings; clang-format 18 clean;
pytest/ruff/frame-evidence/frame-doc-links green.
Co-authored-by: ania-lain <[email protected]>
## Fix
The M1 soak (m1-20260831, PR #3) found console `wifi reconnect` never
returns to CONNECTED: **0/5 soak cycles + 0/1 controlled repro = 0/6**.
Root cause: `wifi_service.cc reconnect()` called `esp_wifi_connect()`
while the STA was still associated — IDF v6 rejects it (`sta is
connected, disconnect before connecting to new ap`), no
`WIFI_EVENT_STA_DISCONNECTED` fires, so the event-driven retry never
engaged and the app stayed CONNECTING indefinitely.
`reconnect()` now calls `esp_wifi_disconnect()`; the existing disconnect
handler drives `esp_wifi_connect()` while `configured_`. Already-idle
(`ESP_ERR_WIFI_NOT_CONNECT`) keeps a direct connect.
`connect_sta`/`initialize`/portal paths unchanged (already disconnect
first).
## On-device re-verify (fixed build, /dev/ttyACM0)
- **3/3 cycles** `wifi reconnect` → CONNECTED again in **~10s**, same IP
restored (192.168.50.178); telemetry `CONNECTED→DISCONNECTED→CONNECTED`
per cycle proves the handler path (DISCONNECTED state is only set by the
event handler); IDF log shows `state: init→auth→assoc→run` → `connected`
→ `sta ip:`; zero `Reconnect failed:` warnings. [PASS-fix-cycle-1..3]
- Boot regression: auto-connect GOT_IP, JSONL `ap_setup:false`,
`tf_logging:true`. [PASS-fix-boot]
## Evidence amendment
`poc/evidence/m1-20260831/manifest.json`: verdict FAIL → **PASS** with
the fix commit recorded (`d084276`) and re-verify stats added to
metrics; soak artifacts and the historical FAIL notes kept unchanged.
`frame-evidence` green.
Diff: 5 insertions / 1 deletion in `wifi_service.cc` + manifest note.
---------
Co-authored-by: ania-lain <[email protected]>
- bound-check the portal option row snprintf against truncation
- guard the pending-credential handoff with the provision mutex
- selftest now restores (or clears) the saved wifi config instead of wiping it
- mark the two conscious error-code ignores
Add the M1 milestone tree under poc/ (m1_hardware + poc_a apps,
shared common components, evidence schema). Merges the plan's
'm1 baseline+fixes' and 'wifi provisioning' batches: the poc/ tree is
entirely untracked and both concerns share files.
M1 hardware baseline:
- landscape ST7305 RIP display via LVGL I1 driver
- TF-card status log: JSONL telemetry with CRC32C per line; append
buffer widened to line[640] after the 512-byte truncation defect
(payload ~550B with real values) was root-caused on-device
- PCF85063 RTC read, SHTC3 temperature/humidity with plausibility
checks, KEY input with short/long/portal press thresholds
- boot-time partition identity check and M1-002 boot record fields
(device_id, image_sha256, reset_reason, services status)
WiFi web provisioning:
- softAP portal Frame-Setup-xxxx with HTTP endpoints /scan, /connect,
/clear; httpd handlers never call httpd_stop (deadlock hazard) — a
1s monitor task executes stop/start/connect actions
- credentials persist to system_fs wifi.json (littlefs) per the
SEC-010 development exception (plaintext, documented in _doc)
- fallback: 5 disconnects without IP or 60s no-IP -> stop retry,
portal returns; GOT_IP tears the AP down
- KEY >=3s hold requests the portal; prov start/stop/status console
commands; ap_active/ap_mode_requested surfaces in status JSON/text
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
Retire the product-firmware skeleton until the v4.2 architecture is
signed off (README marks the repo draft/PoC):
- main/ reduced to a no-op stub (main.cc + CMakeLists registering only
main.cc; idf_component.yml with the cjson managed dependency), root
app builds clean under both dev and prod presets (IDF v6.0.2)
- delete the 13 product components/ files (app_framework, and the
display/network/ota/startup_ui/storage service stubs)
- freeze root build/layout: CMakeLists.txt, CMakePresets.json,
partitions.csv (16 MiB custom layout), sdkconfig.defaults,
dependencies.lock, cmake/ helpers
- add tooling config: .clang-format, .clang-tidy, .clangd,
.devcontainer/, .vscode/
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
Append .omo/ and .opencode/ (local coding-agent harness state) to
.gitignore so session data can never be staged. Also carries pending
hygiene entries (.pytest_cache, .ruff_cache, .mypy_cache, .coverage,
coverage/, .venv-idf/) and restores the trailing newline.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>