Expose MessageType 24 with protobuf response (success, x, y, z in raw LSB),
firmware handler with mutex-safe I2C read, goTool `accel` CLI, and docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Each node saves its local deadzone on UART or ESP-NOW set; pod_settings loads and applies it after BMA456 init.
Co-authored-by: Cursor <cursoragent@cursor.com>
Default brightness is ~5%; UART blink mode and green/red pulses mark OTA success or failure. Failed UART uploads skip ESP-NOW distribution.
Co-authored-by: Cursor <cursoragent@cursor.com>
Stop the main-loop digit demo so host-driven display persists; expose
clear/progress/digit modes with RGB and intensity via protobuf and goTool.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose OTA_SLAVE_PROGRESS on the master, track per-slave state during
distribution, run ESP-NOW OTA in a background task so the host can poll
while slaves update, and show master/slave progress in the dashboard
with table layout and faster WebSocket refresh during uploads.
Co-authored-by: Cursor <cursoragent@cursor.com>
Describe master-to-slave distribution after UART OTA, partial final block, reboot, and goTool /api/ota behaviour.
Co-authored-by: Cursor <cursoragent@cursor.com>
After UART OTA the master reads the staged partition in 4 KiB blocks (200 B ESP-NOW chunks), waits for per-slave block ACKs, and fixes the final partial block. Slaves reuse ota_uart; send pacing and logging improve reliability.
Co-authored-by: Cursor <cursoragent@cursor.com>
Firmware buffers 200-byte chunks into 4 KiB blocks for esp_ota_write; goTool
uploads with per-block ACK flow control and larger UART buffers to avoid stalls.
Co-authored-by: Cursor <cursoragent@cursor.com>
TODO: Hardware pinning in powerpod.h (TASTER_GPIO, V_LIPO_1/2_GPIO) does not
match final hardware yet — verify against schematic before production.
Co-authored-by: Cursor <cursoragent@cursor.com>
Register slaves from recv src_addr instead of protobuf mac bytes, add
ESPNOW_UNICAST_TEST for path verification, restore unicast deadzone, and
expose unicast-test in goTool.
Co-authored-by: Cursor <cursoragent@cursor.com>
Filter BMA456 logs by configurable LSB threshold; master can set deadzone
for local sensor or slaves using ACCEL_DEADZONE (UART) and ESP-NOW broadcast
until unicast delivery is restored.
Co-authored-by: Cursor <cursoragent@cursor.com>
Probe and configure the sensor when present; log and continue boot if
init fails so boards without BMA456 still run normally.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add esp_now_messages.proto with EspNowMessage types, encode/decode helpers,
and Makefile targets to regenerate firmware and UART schemas together.
Co-authored-by: Cursor <cursoragent@cursor.com>
Slaves send HEARTBEAT every 1s; the master marks clients inactive after
3s without traffic and reactivates on reconnect. CLIENT_INFO reports
last_ping as milliseconds since the last packet, not uptime.
Co-authored-by: Cursor <cursoragent@cursor.com>
Track ESP-NOW slaves in a shared registry and respond to CLIENT_INFO
with protobuf ClientInfoResponse; ESP-NOW path upserts registry entries.
Co-authored-by: Cursor <cursoragent@cursor.com>
Slave responds and logs only on first discover from a given master MAC;
subsequent broadcasts on the same network are silently ignored.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expand main/README with master/slave overview, boot config, protocols,
and build notes; point goTool README at the full system doc.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use TX=GPIO3 and RX=GPIO2 at 921600 to match the terminal adapter wiring;
log received message id and which handler command is triggered.
Co-authored-by: Cursor <cursoragent@cursor.com>
Centralize command dispatch over a FreeRTOS queue so UART and future
ESP-NOW transports can register handlers; implement the protobuf VERSION
command with framed nanopb responses including build git hash.
Co-authored-by: Cursor <cursoragent@cursor.com>