Commit Graph

12 Commits

Author SHA1 Message Date
Robert McMahon 0311ad21a1 Fix telemetry dropped counter and improve SD card list display
- Fix dropped telemetry calculation to account for bytes in batch buffer
- Add human-readable file sizes to sdcard list output (bytes with human-readable in parentheses)
- Update monitor status to show SD card status inline with telemetry label
- Add pending bytes display when telemetry is in batch buffer

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 10:05:13 -08:00
Robert McMahon 74eb6cb553 Fix telemetry: snprintf truncation, open/write for SD, append NDJSON, capture LED
- mcs_telemetry: fix snprintf truncation in to_json (advance offset by actual
  bytes written, reserve tail for closing brackets)
- sd_card: use open/write/close instead of fwrite to bypass stdio buffering
- wifi_controller: append telemetry as NDJSON (one object per line)
- status_led: blink blue only when frames captured in monitor mode

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-07 21:39:57 -08:00
Robert McMahon 1eb04acd25 Add HTTP/serial file transfer, broadcast beacon, SD telemetry
- HTTP server on port 8080: GET /sdcard/<path> for SD file download
- Serial: sdcard send <file> streams hex-encoded; tools/sdcard_recv.py receives
- Broadcast beacon (UDP 5555): advertise IP, MAC, fiwi-telemetry for discovery
- tools/beacon_listen.py: listen and optionally download fiwi-telemetry per device
- SD commands: list, send, delete; status shows fiwi-telemetry and telemetry-status
- Monitor start: MCS telemetry -> fiwi-telemetry on SD by default (every 10s)
- telemetry-status on SD: persist download stats across reboots
- Kconfig: BEACON_INTERVAL_SEC, TELEMETRY_AUTO_DELETE_AFTER_DOWNLOAD

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-07 12:30:04 -08:00
Robert McMahon 4ed4391068 final fixes for commands 2025-12-22 16:57:51 -08:00
Robert McMahon b769dbc356 more on gps time 2025-12-22 13:06:05 -08:00
Robert McMahon 969abb5ae4 update license 2025-12-19 18:13:49 -08:00
Robert McMahon e5baa7cec5 fix gps sync 2025-12-19 12:10:35 -08:00
Robert McMahon ca8b382a40 more on console 2025-12-19 10:21:08 -08:00
Robert McMahon 0f1c5b3079 more on console 2025-12-19 10:12:32 -08:00
Robert McMahon 796ef43497 more command & console work, including save and reload 2025-12-18 21:43:18 -08:00
Bob 960bfc49c1 if def work 2025-12-11 09:35:32 -08:00
Bob 251d936f35 refactore component wifi_controller 2025-12-08 17:18:46 -08:00