Commit Graph

28 Commits

Author SHA1 Message Date
237e392c02 Make IEC 62056-21 meter input non-blocking
- Add RX state machine with frame buffer, timeouts, and debug counters

- Expose meter_poll_frame/meter_parse_frame and reuse existing OBIS parsing

- Use cached last-valid frame at 1 Hz sampling to avoid blocking

- Document non-blocking meter handling in README
2026-02-02 22:03:58 +01:00
8e6c64a18e Reduce sender power draw (RX windows + CPU/WiFi/ADC/pins)
- Add LoRa idle/sleep/receive-window helpers and use short RX windows for ACK/time sync

- Schedule sender time-sync windows (fast/slow) and track RX vs sleep time in debug

- Lower sender power (80 MHz CPU, WiFi/BT off, reduced ADC sampling, unused pins pulldown)

- Make SERIAL_DEBUG_MODE a build flag, add prod envs with debug off, and document changes
2026-02-02 21:44:04 +01:00
a4d9be1903 Harden history device ID validation and SD download filename 2026-02-02 21:19:44 +01:00
0e12b406de Harden web UI auth, input handling, and SD path validation
- Add optional Basic Auth with NVS-backed credentials and STA/AP flags; protect status, wifi, history, and download routes

- Stop pre-filling WiFi/MQTT/Web UI password fields; keep stored secrets on blank and add clear-password checkboxes

- Add HTML escaping + URL encoding helpers and apply to user-controlled strings; add unit test

- Harden /sd/download path validation (prefix, length, dotdot, slashes) and log rejections

- Enforce protocol version in LoRa receive and release GPIO14 before SD init

- Update README security, SD, and GPIO sharing notes
2026-02-02 21:08:05 +01:00
b5477262ea Add SD history UI and pin remap
- Add SD history chart + download listing to web UI
- Use HSPI for SD and fix SD pin mapping
- Swap role/OLED control pins and update role detection
- Update README pin mapping and SD/history docs
2026-02-02 01:43:54 +01:00
d32ae30014 Move AP credentials to config and clarify STA UI access 2026-02-02 00:23:52 +01:00
f3af5b3f1c Add SD logging and update docs
- Add optional microSD CSV logging per sender/day on receiver
- Wire logger into receiver packet handling
- Document new batch header fields, build envs, and SD logging
- Make sender links open in a new tab
2026-02-02 00:22:35 +01:00
13f2f02e42 Tidy sender page layout and use SF12 2026-02-01 23:38:43 +01:00
16c1b90b1e Add payload codec test envs and enable serial debug 2026-02-01 22:54:07 +01:00
e5c4e04ff9 Update README for binary batch payload and SF11 2026-02-01 22:42:26 +01:00
01f4494f00 expand web ui with batch table and manual 2026-02-01 21:04:34 +01:00
50436cd0bb document batching updates and restore bat_v in batches 2026-02-01 20:59:45 +01:00
a0080b249d increase lora throughput and improve receiver display 2026-02-01 20:09:44 +01:00
13b4025443 add lora send bypass for debugging 2026-02-01 19:34:28 +01:00
660d1cde94 prevent watchdog from killing while printing json 2026-02-01 18:59:12 +01:00
f9bcfbd5f2 serial debugging console implemented, enable via config.h 2026-02-01 18:43:06 +01:00
22ed41b55c Add sender queue display and batch timing 2026-02-01 17:46:26 +01:00
430b0d7054 Update ESP32 platform and LoRa batching 2026-02-01 17:03:08 +01:00
8fba67fcf3 Update batch schema and add ACK handling 2026-01-31 01:53:02 +01:00
8ba7675a1c Add LoRa telemetry, fault counters, and time sync status 2026-01-30 13:00:16 +01:00
ce0ee77f77 optional RTC 3231 integration 2026-01-29 22:15:50 +01:00
e480677b49 Add IEC62056 parsing, OLED timing, and batch LoRa send 2026-01-28 01:23:45 +01:00
449fff1f06 Keep sender OLED on longer; faster page cycle 2026-01-27 22:56:37 +01:00
ae6e7b3192 Power down OLED before deep sleep 2026-01-23 17:14:16 +01:00
770a021eca Sleep LoRa before sender deep sleep 2026-01-23 17:00:51 +01:00
5f42575b10 Add 868MHz envs, fix MAC id, offset timesync 2026-01-21 21:14:48 +01:00
8c9520f7e5 feat(battery): round bat_v and derive bat_pct locally 2026-01-20 22:58:56 +01:00
6f308ad590 Initial commit 2026-01-20 01:39:06 +01:00