Files
esp-idf/tools
Zhou Xiao 956f4b1b69 feat(ble_log_console): add backend with frame parser, stats, and data models
Modular backend for the BLE log console rewrite:

- Frame parser with sync state machine and checksum auto-detection
  (4 modes: XOR/Sum x Full/Header-only); handles incomplete frames
  during re-sync search when previously synced
- Internal frame decoder (INIT_DONE, ENH_STAT, FLUSH, INFO)
- Data models: SourceCode, FrameByteCount, FunnelSnapshot, LossType
- Stats package with composition-root StatsAccumulator orchestrating:
  - TransportMetrics (RX bytes, lifetime-average throughput)
  - FirmwareLossTracker / FirmwareWrittenTracker (ENH_STAT deltas
    with first-report absolute value initialization)
  - SNGapTracker (sliding window reorder-tolerant SN gap detection)
  - PeakBurstTracker (per-source sliding window burst density)
  - TrafficSpikeDetector (wire utilization spike detection)
  - Wall-clock burst tracker for non-timestamped sources (REDIR)
- Torn-read guard on ENH_STAT reports (baudrate-based plausibility)
  with prev-state update on discard to prevent cascading drops
- Console-local metrics (TransportMetrics, PeakBurstTracker) preserved
  across INIT_DONE resets; only ENH_STAT-coupled components reset
- UART transport with port validation and exclusive serial access
- Comprehensive test suite (17 test files, 223 tests)
2026-04-07 12:28:59 +08:00
..
2022-08-01 15:52:21 +08:00
2026-02-25 11:38:38 +01:00
2025-06-11 10:56:38 +02:00
2025-06-11 10:56:38 +02:00
2025-06-11 10:56:38 +02:00
2025-06-11 10:56:38 +02:00
2025-06-11 10:56:38 +02:00
2024-11-12 17:02:26 +08:00
2023-09-27 08:43:45 +02:00
2025-08-01 10:15:04 +02:00
2025-03-27 12:30:23 +01:00