docs(wiki): park-2 event-loop stall incident + bounded-request-cost decision; Dingtian firmware retired, dev-board pinout, edge-controller memo
- concepts/park-2-event-loop-stall: /api/sessions/active ~2 s synchronous (quote() per open unpaid transient x664, unindexed ledger scans) froze the loop; Node runs expired timers before queued UDP replies, so healthy Dingtian pulses reported "timeout" and signed entries lost their snapshot/session row. Standing decision: bounded request cost whatever the operator data. - Dingtian: custom firmware retired (2026-10-23), runbook shelved, vendor pinout in raw/, relay-proxy PoC marked retired; edge-controller hardware memo (open).
This commit is contained in:
+37
@@ -3579,3 +3579,40 @@ configured the board (relay_pw, udp2 off, login rotated, Digest push to 10.0.10.
|
||||
Board registered through park-lab setup; assign flow applied every step; FLASH press → Digest push
|
||||
accepted by the booth (401→200, "input 1 on (push)") and mirrored to the cloud stand-in with
|
||||
booth_status 200. See [[relay-proxy-firmware]].
|
||||
|
||||
## [2026-10-22] query | Edge controller hardware: SBC-class options for the resilient core
|
||||
|
||||
Owner's conclusion after the relay-proxy PoC: the controller must process events alone, so it fronts
|
||||
every device (readers, printer, relays) and takes over at **one** missed 1 s probe; the PC power-cycle
|
||||
stays slow and ICMP-gated. Web survey filed as [[edge-controller-hardware]] (requirements R1–R9;
|
||||
Pi 5 + Sequent HAT for the lab; Sfera Iono Pi Max v2 the only unit with relays NO+NC, UPS, independent
|
||||
watchdog, RTC and ATECC608 on board, from €695; Strato Pi Max CM5 if a relay X2 board exists; Seeed
|
||||
reComputer, RevPi; ODROID-M2/M1S, Orange Pi 5 Plus (software a gamble), NanoPi R3S-LTS (~$60, eMMC,
|
||||
LTS), Radxa; Olimex LIME2 industrial to 2036; Teltonika only as the LTE router; ODROID-H4+ as the
|
||||
x86 no-rebuild path). Recommendation: order an Iono Pi Max v2, port the proxy to Node on a Pi 5 now.
|
||||
Also recorded: takeover needs asymmetric ledger signing ([[open-questions]]); index line for
|
||||
[[relay-proxy-firmware]] corrected (integration verified, not blocked).
|
||||
|
||||
## [2026-10-23] ingest | Dingtian dev-board pinout (vendor repo dtlzp/relay_dev_demo → raw/dingtian_dev_pinout/)
|
||||
|
||||
DT-R004 debug header is the unlabelled row next to the ESP32: GND, IO3(RX), IO1(TX), NRST, IO0,
|
||||
3.3V (+IO4/IO5 on V2). No BOOT switch exists — FACTORY (IO34) is a firmware button; download mode =
|
||||
IO0 to GND + reset. 2/4ch boards are direct-GPIO (no shift registers). Runbook
|
||||
[[esp32-flashability-test]] and [[dingtian-relay]] corrected.
|
||||
|
||||
## [2026-10-23] decision | Custom Dingtian firmware retired; booth resilience via mini PCs
|
||||
|
||||
User: no UART wiring, not worth pursuing. [[standing-decisions]] entry added; [[relay-proxy-firmware]]
|
||||
marked retired (kept as a bench emulator); [[esp32-flashability-test]] shelved; [[dingtian-relay]]
|
||||
section annotated.
|
||||
|
||||
## [2026-10-24] query | Why did a park-2 subscriber's entries have no snapshot? → event-loop stall
|
||||
|
||||
Traced on park-2 (read-only DB queries + container logs): 4 signed entries with no snapshot/session
|
||||
row all coincided with Dingtian pulse "timeouts"; the relay answered 60/60 probes in ~50 ms. Root
|
||||
cause: `GET /api/sessions/active` ~2 s synchronous (quote() per open unpaid transient, 664 rows,
|
||||
unindexed ledger scans), 2234 calls/day; Node runs expired timers before queued UDP replies. Filed
|
||||
[[park-2-event-loop-stall]]; standing decision "Bounded request cost"; notes on [[dingtian-relay]]
|
||||
and [[booth-exit-flow]]. Code fix on stage (uncommitted): fold-once pricing in `pay-station.ts`,
|
||||
migration 0032 indexes, `setImmediate` timeout in `access-dingtian.ts`, snapshot/cache before pulse
|
||||
in `subscription-flow.ts`. 390/390 server tests, 6/6 Dingtian tests pass.
|
||||
|
||||
Reference in New Issue
Block a user