Repository navigation
P3.W2 (firmware half): waste bin-node reference firmware - #24
Merged
Merged
Conversation
ESP32/PlatformIO implementation of the full platform envelope (docs/TELEMETRY.md), compiled to a real image (verified locally and now in CI with a cached toolchain): - Ed25519 identity generated on first boot, held in NVS; one-time-code enrollment against /devices/enroll - median-of-5 ultrasonic fill sampling with per-bin EMPTY/FULL calibration, clamped to 0-100% - canonical-JSON signing with JSON.stringify-compatible number formatting (2dp, trailing zeros stripped) — the signature-breaking sharp edge, documented in the firmware README - strictly monotonic seq in NVS; store-and-forward buffer in RTC memory across deep sleep; 409-after-lost-ack treated as accepted - BENCH_MODE (WiFi + NTP, 30s cycle) for desk testing against the compose stack; field builds hit a deliberate #error at the marked TinyGSM cellular swap point so the bench transport cannot ship - battery/tilt/temp left as marked hooks for the chosen board Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap item
P3.W2, firmware half — the per-bin node that replaces the shared-gateway framing of P2.7 for this vertical. Compiles to a real ESP32 image (verified locally via PlatformIO in a sandboxed toolchain — 73 % flash, 14.5 % RAM — and now in CI with a cached toolchain).
What it implements
JSON.stringify-compatible number formatting (the sharp edge that would silently break signatures, documented), strictly monotonicseq, store-and-forward in RTC memory across deep sleep, and 409-after-lost-ack correctly treated as 'batch accepted'.#errorat the cellular swap point (TinyGSM/SIM70xx documented) so a bench transport can't silently ship to the field.Remaining for M4
Hardware procurement (runbook BOM), board-specific battery/tilt/temp hooks, install, 30-day run.
🤖 Generated with Claude Code