feat(firmware): relay-proxy PoC — NodeMCU as a Dingtian DT-R004 + cloud proxy/watchdog
A NodeMCU v3 (ESP8266) that speaks the Dingtian wire contract (binary UDP 60000 with relay_pw, string UDP 60001, config CGI incl. the setconfig gotcha, userset.cgi, Digest input push) so the booth's existing driver needs no change, plus a heartbeat/command/ watchdog path to an ephemeral cloud stand-in (poc/cloud-standin.mjs). Verified at park-lab: the booth's assign flow configured it like real hardware and a button press reached the booth (401→Digest→200) and the cloud with the booth's status. Watchdog probes /health and power-cycles the PC via a spare relay with backoff. IO behind one interface for the ESP32/ Dingtian port. wiki: relay-proxy-firmware page; esp32-flashability-test runbook (esptool lock test); dingtian-relay "can we flash our own firmware" (vendor locks the standard SKU); site-device-installation: booth ufw must allow device-net → 3000 (push targets PORT, not Caddy's 80); open-questions: cloud takeover vs signed ledger (parked). .gitignore: firmware venv/.pio/secrets.h.
This commit is contained in:
+32
@@ -3547,3 +3547,35 @@ set via dell-wmi-sysman; no BIOS admin password on the replacement yet. Ledger c
|
||||
after two unclean stops. [[appliance-provisioning]] §1/§8 + gotchas 7–8.
|
||||
|
||||
## [2026-10-20] ingest | park-lab back on a dedicated 7070 (server = park-lab, all modules entitled); GRUB CLASS line clarified in appliance-provisioning §5
|
||||
|
||||
## [2026-10-22] query | Dingtian DT-R0xx: can we flash our own firmware?
|
||||
|
||||
ESP32-WROOM-32D board; community ESPHome (`dtr0xx_io`) / Tasmota support exists, but the vendor
|
||||
locks the standard SKU — only the "Development Board Version" (GPIO test firmware) is flashable.
|
||||
Our bench DT-R004 is the standard SKU → assume not flashable. Filed under [[dingtian-relay]]
|
||||
"Can we flash our own firmware?"; custom firmware stays deferred ([[esp32-custom-controller]]).
|
||||
|
||||
## [2026-10-22] built | Runbook: ESP32 flashability test for the Dingtian DT-R0xx
|
||||
|
||||
New [[esp32-flashability-test]] (concepts/): wiring, boot-mode entry, `esptool chip_id` +
|
||||
`espefuse summary`, how to read locked vs open vs inconclusive. Linked from [[dingtian-relay]] and index.
|
||||
|
||||
## [2026-10-22] built | relay-proxy PoC firmware (NodeMCU as a Dingtian DT-R004 + cloud proxy/watchdog)
|
||||
|
||||
New [[relay-proxy-firmware]]: flashed, on Wi-Fi at 10.0.10.101, every Dingtian surface verified
|
||||
from the dev PC, cloud→relay command verified. Blocked: park-lab ufw drops 80/3000 from the device
|
||||
net (also blocks a real Dingtian push) — needs root. Bench fix: clone CH340 needs WCH driver 3.4.
|
||||
Parked the ledger question in [[open-questions]].
|
||||
|
||||
## [2026-10-22] query | Booth firewall vs device push: the push targets PORT 3000, not Caddy's 80
|
||||
|
||||
park-lab ufw let the NodeMCU reach /health on 80 after the first rule, and the booth assign flow
|
||||
configured the board (relay_pw, udp2 off, login rotated, Digest push to 10.0.10.198:3000) — but
|
||||
3000 is still dropped from the device net, so pushes would time out. Documented in
|
||||
[[site-device-installation]] "Booth host firewall"; rule set belongs in [[appliance-provisioning]].
|
||||
|
||||
## [2026-10-22] built | relay-proxy: booth integration verified end to end at park-lab
|
||||
|
||||
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]].
|
||||
|
||||
Reference in New Issue
Block a user