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:
@@ -2,11 +2,16 @@
|
||||
type: entity
|
||||
tags: [parking, hardware, firmware, esp8266, dingtian, cloud, watchdog, poc]
|
||||
sources: []
|
||||
updated: 2026-10-22
|
||||
status: poc
|
||||
updated: 2026-10-23
|
||||
status: retired
|
||||
---
|
||||
|
||||
# relay-proxy — Dingtian emulator + cloud proxy/watchdog firmware (PoC)
|
||||
# relay-proxy — Dingtian emulator + cloud proxy/watchdog firmware (PoC, retired)
|
||||
|
||||
> **Retired 2026-10-23.** The Dingtian-firmware path this PoC seeded is dropped (user decision:
|
||||
> focus on mini PCs for booth resilience). The code stays in `firmware/relay-proxy/` as a working
|
||||
> Dingtian protocol emulator — still useful as a **bench stand-in when no real relay board is on
|
||||
> hand** — and the watchdog/heartbeat ideas carry over to whatever runs beside the booth PC.
|
||||
|
||||
Code: `firmware/relay-proxy/` (PlatformIO, Arduino framework; NodeMCU v3 / ESP8266 now, ESP32
|
||||
env planned for the real [[dingtian-relay]]). Throwaway cloud stand-in: `poc/cloud-standin.mjs`.
|
||||
@@ -63,6 +68,11 @@ watchdog flipped to `booth UP` the moment port 80 opened.
|
||||
or `STATIC_IP`.
|
||||
- ESP8266 limits (Wi-Fi only, ~40 KB heap, blocking HTTP) are PoC-only; the target is the ESP32
|
||||
on the Dingtian with Ethernet. Camera traffic is never proxied by the microcontroller.
|
||||
- **Superseded as a hardware target (2026-10-22):** the takeover only works if the controller also
|
||||
fronts the readers and the printer, which needs a Linux box with a Node runtime; the microcontroller
|
||||
cannot. Hardware options and the watchdog policy (take over at one missed probe, power-cycle only when
|
||||
the PC is dead at every layer) are on [[edge-controller-hardware]]. The emulation and watchdog logic
|
||||
here carry over to the port.
|
||||
|
||||
## Bench note: NodeMCU v3 clone CH340 vs WCH driver
|
||||
|
||||
|
||||
Reference in New Issue
Block a user