Merge origin/main (27 commits from the other machine) with the Engine data screen
Firmware / build (push) Successful in 7m2s
Firmware / build (push) Successful in 7m2s
All incoming changes kept as they were. Conflicts resolved by adding the Engine-data pieces next to them: - main.cpp: StatusOverlay::tick() and EngineScreen::tick() - driveline_screen.cpp: both include sets; the old mismatch label stays removed (overlay owns it); the Engine data button moves to y 60, left of the diff-lock drawing, clear of the overlay band - CLAUDE.md: Engine data bullet added; DiagProbe paragraph keeps its text plus the live-mode sentence - wiki: all incoming log entries kept, the 2026-10-07 entry appended; open-questions #12 keeps the renamed line plus the 2026-10-07 update Built clean locally (custom_sdkconfig core rebuild). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -83,7 +83,7 @@ On BMW PT-CAN (Powertrain CAN) networks, data is divided into two categories: **
|
||||
|
||||
1\. Broadcasted Data (Why you see RPM & Temp)
|
||||
|
||||
The DDE (Engine ECU) continuously loops and broadcasts specific telemetry frames that other modules (like the Instrument Cluster, Transmission Control, and Stability Control) *absolutely need* to function.
|
||||
The DDE (Engine ECU) continuously loops and broadcasts specific telemetry frames that other modules (like the Inst. Cluster, Transmission Control, and Stability Control) *absolutely need* to function.
|
||||
|
||||
Bimmerforums.com +1
|
||||
|
||||
|
||||
+8
-3
@@ -12,15 +12,16 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
|
||||
- [[patrol-instrument-cluster]] — **what the Patrol cluster expects on its inputs**: tach = 2 pulses/rev (verified by calibration), temp = NTC sender 2.1–2.9 kΩ cold → ~250 Ω at 90 °C; the 1 kHz PWM needle-flutter problem and the mitigation ladder (fixed-duty test → 20 kHz → hardware damping)
|
||||
- [[bmw-m57n-engine]] — the 3.0L BMW diesel whose CAN bus we read; E60/E65 donor (confirmed), DDE ECU, auto box with EGS on bus
|
||||
- [[nissan-patrol-swap]] — the target vehicle: Patrol receiving the M57N + BMW auto; the tapped bus is a BMW island in a Nissan
|
||||
- [[esp32-s3-touch-lcd-5b]] — Waveshare 5" display board (Controller A); onboard TJA1051 CAN transceiver, 7–36 V input, pinout, PSRAM/LCD gotchas — **flash writes flicker the RGB panel, full-screen fades stutter, internal RAM nearly full, opening the serial port resets the board unless DTR/RTS are low; Wi-Fi scans caused the flickering dots; all screens hand-coded since 2026-09-27**
|
||||
- [[esp32-s3-touch-lcd-5b]] — Waveshare 5" display board (Main CTRL); onboard TJA1051 CAN transceiver, 7–36 V input, pinout, PSRAM/LCD gotchas — **flash writes flicker the RGB panel, full-screen fades stutter, internal RAM nearly full, opening the serial port resets the board unless DTR/RTS are low; Wi-Fi scans caused the flickering dots; all screens hand-coded since 2026-09-27**
|
||||
- [[diff-lock-inputs]] — **2026-09-29**: Patrol diff locks (+12 V = locked) on DI0 rear / DI1 front, `DI_COM` to ground; PC814 → CH422G EXIO0/EXIO5 (active low); the bank flip per read is unverified for panel flicker, so it is behind a Settings switch, default OFF
|
||||
|
||||
## Concepts
|
||||
|
||||
- [[can-bus-integration]] — the core challenge; current firmware ID map flagged as placeholder, verification plan
|
||||
- [[driveline-speed-signals]] — **engine / turbine / output-shaft speeds**: turbine speed as physical proof of gear engagement, and the output-shaft field that is our **only road-speed source** (no DSC on this bus) — the feedback variable for a future cruise-control PoC, with the safety envelope that would require
|
||||
- [[dual-controller-architecture]] — Controller A → UART1 + ESP-NOW, protocol v2 → Controller B (1.3" display + Patrol gauge outputs); A owns alerts and the gauge tunables (`cfg` console)
|
||||
- [[dual-controller-architecture]] — Main CTRL → UART1 + ESP-NOW, protocol v2 → Inst. Cluster (1.3" display + Patrol gauge outputs); A owns alerts and the gauge tunables (`cfg` console)
|
||||
- [[obd-diagnostic-polling]] — **why boost / MAF / rail / injection / DTCs never appear on the sniffer** and how a tester gets them: Route A generic OBD-II mode 01 on `0x7DF` and Route B BMW KWP on `0x6F1` → `0x612` — **BOTH VERIFIED WORKING 2026-09-23** (minimal PID set, no boost PID, mode 09 silent; `1A 86` ident identifies the donor; DTCs read via mode 03), the capture-with-Launch procedure (still wanted for the `22 D1xx` live-data identifiers), and why polling is a transmit-on-the-bus design decision
|
||||
- [[ota-updates]] — **Controller A updates itself from Gitea releases**: tag `v*` → CI builds + signs (ECDSA P-256) → Settings → Updates (confirm dialog) or `ota install` (manual, parked, Wi-Fi) pulls over HTTPS from the public repo, verifies, flashes the idle slot, 30 s confirm-or-rollback; **verified end-to-end, from the screen since 2026-09-27 (now v0.1.5)**, release with `git push --follow-tags origin main`; dual-slot partition table; plan for updating Controller B through A over ESP-NOW
|
||||
- [[ota-updates]] — **Main CTRL updates itself from Gitea releases**: tag `v*` → CI builds + signs (ECDSA P-256) → Settings → Updates (confirm dialog) or `ota install` (manual, parked, Wi-Fi) pulls over HTTPS from the public repo, verifies, flashes the idle slot, 30 s confirm-or-rollback; **verified end-to-end, from the screen since 2026-09-27 (now v0.1.5)**, release with `git push --follow-tags origin main`; dual-slot partition table; **Inst. Cluster card on the Updates page (2026-09-27)**: B pulls its own release, A pairs over the wire (`link pair`), hands over credentials in encrypted frames and triggers - details in B's wiki `controller-b-ota`
|
||||
|
||||
## Synthesis
|
||||
|
||||
@@ -37,6 +38,10 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
|
||||
- [[gear-box-can-revealings]] — **gear fully decoded & VERIFIED** (2026-07-16/17): `0x1D2` byte0 = lever, **byte1 = engaged gear 1–6**, byte4 = Drive/Sport/Manual mode; `0x0BA` = the box's own target gear incl. **reverse**; raw at `raw/gear_box_can_revealings.csv` + `raw/gearbox_engaged_gear.csv`
|
||||
- [[can-capture-2026-07-17-drive]] — **first capture with the vehicle moving** (2026-07-17): verifies `0x0BA` gears 2nd–6th directly (making it a complete gear source), catches the lockup clutch live, and produces the ×0.125 output-shaft scaling evidence; raw at `raw/log_20260717_145930.txt`
|
||||
- [[e65-reverse-engineering-repo]] — **E65 per-ID DBC-style docs (ingested 2026-07-17)** — the highest-value source yet: settled the gearbox-temp offset (raw−40) and battery layout (12-bit ×0.015), proved the engine was running in our capture, and revealed turbine speed, output shaft, pedal position and cruise state
|
||||
- [[perf-xip-ota-2026-09-27]] — **step 3 result**: core rebuilt with XIP-from-PSRAM + IRAM-safe RGB ISR; a full OTA download no longer drops a single panel frame (24/s, 41.5 ms vs 4–8/s, 0.75 s gaps); PSRAM −1.7 MB; dots still to be judged by eye
|
||||
- [[perf-dots-and-ota-2026-09-27]] — **dots are not dropped frames** (panel 24/s, 41.5 ms gap while dots visible → sub-frame DMA glitches, bounce buffers are the fix) and **OTA drops the panel to 4–8 frames/s** (flash writes blank it ~75 % of the download → XIP step needed before any progress bar)
|
||||
- [[perf-baseline-2026-09-27]] — **first display-performance baseline** (`perf` monitor, 2026-09-27): per-screen fps / ms per frame / PSRAM copy load / idle; Driveline's needless 10 Hz redraw, 140–330 ms screen-change frames, Simulation tab as the heaviest load, flash writes invisible to LVGL counters (vsync counter needed), monitor blind during OTA
|
||||
- [[esp32-s3-touch-lcd-5-schematic]] — **the board schematic** (re-downloaded 2026-09-26): VOUT = `I2C_VCC` chosen by solder jumper `H8` (3V3 default / 5V), level-shifted I2C, SY8293 2 A 5 V rail, SD pins, CAN/RS485 GPIOs confirmed
|
||||
- [[esp32-s3-touch-lcd-5-intro-photo]] — Waveshare annotated board photo (moved into `raw/` 2026-09-21): terminal-block signal order (VIN/GND/VOUT · SDA/SCL · CAN · RS485 A/B · DO0/DO1 · DI), shared CAN/RS485 120 Ω switch, IO0/IO3/IO4/IO46 strapping pads
|
||||
- [[google-ai-dde7m57-pids]] — Google AI Mode clipping on "dde7m57 pids" (ingested 2026-09-21, raw in `Clippings/`): uncited; its `0x612`-as-request claim is **contradicted**, its D1xx identifiers are `(unverified)`; kept for the Ediabas value names and the user's own observation that `0x612` appears with the Launch connected
|
||||
- [[diag-route-a-2026-09-23]] — **first live Route A probe run (2026-09-23)**: DDE serves generic OBD mode 01 on `0x7E8` (verified: rpm + coolant cross-checked against the broadcast IDs); supported-PID list; MAF/IAT values implausible (explained by Route B session: sensor faults); mode 09 silent (no VIN); **5 stored DTCs, MIL off**; raw at `raw/diag-20260923-1117*.log`
|
||||
|
||||
+88
-8
@@ -44,15 +44,15 @@ First real dump off the swap's bus, taken with the board's **own new raw-frame l
|
||||
|
||||
## [2026-09-21] update | .docs folder retired; UART spec moved to docs/; board photo ingested
|
||||
|
||||
The repo's `.docs/` folder was deleted (user decision). `CAN_BUS_INTEGRATION.md` documented the dead placeholder IDs and an external transceiver the board does not need — superseded by [[can-id-candidates]] and [[can-bus-integration]]. `UART_PROTOCOL.md` (the packet spec, shared with Controller B) moved to `docs/UART_PROTOCOL.md` as the single copy; Controller B's duplicate was removed. The annotated board photo moved to `raw/` → [[esp32-s3-touch-lcd-5-intro-photo]]: confirms the terminal-block order, that GPIO 44 exits only as the RS485 A/B pair, and that one 120 Ω switch serves both CAN and RS485. Root `CLAUDE.md` corrected: verified CAN ID list replaces the placeholders, `TWAI_MODE_NORMAL` replaces "LISTEN_ONLY", UART TX is GPIO 44 (was written as 43), dummy-data references removed.
|
||||
The repo's `.docs/` folder was deleted (user decision). `CAN_BUS_INTEGRATION.md` documented the dead placeholder IDs and an external transceiver the board does not need — superseded by [[can-id-candidates]] and [[can-bus-integration]]. `UART_PROTOCOL.md` (the packet spec, shared with Inst. Cluster) moved to `docs/UART_PROTOCOL.md` as the single copy; Inst. Cluster's duplicate was removed. The annotated board photo moved to `raw/` → [[esp32-s3-touch-lcd-5-intro-photo]]: confirms the terminal-block order, that GPIO 44 exits only as the RS485 A/B pair, and that one 120 Ω switch serves both CAN and RS485. Root `CLAUDE.md` corrected: verified CAN ID list replaces the placeholders, `TWAI_MODE_NORMAL` replaces "LISTEN_ONLY", UART TX is GPIO 44 (was written as 43), dummy-data references removed.
|
||||
|
||||
**Missing source**: the schematic PDF (`ESP32-S3-Touch-LCD-5-Sch.pdf`) was in `.docs/` at the start of the 2026-09-21 session and was not on disk by the time of this cleanup (never git-tracked). Its net list was read earlier that session and is reflected in [[esp32-s3-touch-lcd-5b]]; re-download it into `raw/` — still on the sourcing wishlist in [[open-questions]].
|
||||
|
||||
Sibling wiki instantiated today at `../../ESP32-S3-LCD-1.3/wiki/` for Controller B (link, redundancy, gauge outputs). Cross-references from there use the text form `(sibling: 5B wiki → page)`.
|
||||
Sibling wiki instantiated today at `../../ESP32-S3-LCD-1.3/wiki/` for Inst. Cluster (link, redundancy, gauge outputs). Cross-references from there use the text form `(sibling: 5B wiki → page)`.
|
||||
|
||||
## [2026-09-21] update | Link protocol v2: ESP-NOW second transport, gear/rpm/alerts on the wire, tunables console
|
||||
|
||||
Firmware (not yet committed): shared header v2 with typed DATA/CONFIG frames; `Tunables` module (gauge calibration + alert thresholds in NVS, `cfg show|set|override|reset` on the USB console); `EspNowLink` broadcasts every frame alongside UART1 (radio now stays in STA mode — WiFiManager's off no longer calls `WIFI_OFF`); CAN driver publishes lever + target/engaged gear nibbles and rpm, and evaluates coolant/gearbox/battery/cooling-demand alerts against the tunables. Bench-verified with Controller B: both transports alive, every frame deduplicated, `cfg override rpm 2000` drove B's tach output at 133.3 Hz. `docs/UART_PROTOCOL.md` rewritten for v2. [[dual-controller-architecture]] and index updated. Build note: IDF 5.5's ESP-NOW send callback takes `wifi_tx_info_t*`; and the two repos must not be built concurrently (shared penv).
|
||||
Firmware (not yet committed): shared header v2 with typed DATA/CONFIG frames; `Tunables` module (gauge calibration + alert thresholds in NVS, `cfg show|set|override|reset` on the USB console); `EspNowLink` broadcasts every frame alongside UART1 (radio now stays in STA mode — WiFiManager's off no longer calls `WIFI_OFF`); CAN driver publishes lever + target/engaged gear nibbles and rpm, and evaluates coolant/gearbox/battery/cooling-demand alerts against the tunables. Bench-verified with Inst. Cluster: both transports alive, every frame deduplicated, `cfg override rpm 2000` drove B's tach output at 133.3 Hz. `docs/UART_PROTOCOL.md` rewritten for v2. [[dual-controller-architecture]] and index updated. Build note: IDF 5.5's ESP-NOW send callback takes `wifi_tx_info_t*`; and the two repos must not be built concurrently (shared penv).
|
||||
|
||||
## [2026-09-21] update | Gauge Tuning screen
|
||||
|
||||
@@ -70,7 +70,7 @@ User clipped a Google AI Mode conversation into `Clippings/` (Obsidian Web Clipp
|
||||
|
||||
User dropped `raw/BMW 335d.csv` and clipped page 1 of the e90post/6post thread "Extended BMW 335d PIDs for Torque" (DWR, 2009 335d = M57N2 on DDE7.3/EDC17CP09) → [[dwr-335d-torque-pids]]. **Every entry is a generic SAE J1979 mode-01 PID** (DWR says so in post 21; header `Auto` = `0x7DF`); nothing BMW-proprietary, nothing broadcast. Two revisions compared: the CSV in `raw/` is the corrected 2017 one (boost ×0.3125 = the J1979 0.03125 kPa/bit; fuel rate ×0.0938 lb/hr; post-#2's ×0.296 and ×5.64 were wrong); residual typos noted (`000031` for 0.0000305, one `+33`). Decoded his table back to SI with the J1979 byte positions. Consequence for us: the generic route is the **cheapest polling experiment** — one `01 00` supported-PID query on `0x7DF` tells whether our DDE answers EOBD on the PT-CAN and which PIDs it has — but the diesel-specific PIDs he relies on for boost (`70`), exhaust pressure (`73`), EGT (`78`), DPF (`7A`), NOx (`83`) are 2007+ J1979 additions an EDC16 almost certainly lacks `(unverified)`, and PID `0B` clips at 255 kPa. [[obd-diagnostic-polling]] restructured into Route A (generic, PID table, first test) and Route B (BMW `0x6F1`/`0x612`). Wishlist: DWR's Testo parameter list (post 175 of the Testo thread). Updated [[open-questions]] #7 + wishlist, index.
|
||||
|
||||
## [2026-09-21] update | `diag` console probe: Controller A can now send OBD-II requests
|
||||
## [2026-09-21] update | `diag` console probe: Main CTRL can now send OBD-II requests
|
||||
|
||||
User decision: build the Route A probe. New module `src/modules/diag_probe.cpp` and a single sanctioned transmit function `CANDriver::transmit()` (single-shot frames, `CANTX,` console echo mirroring `CANRAW,`). Console: `diag pids` (mode-01 supported-PID bitmap scan, blocks 00/20/40…, per-responder summary with PID names), `diag pid <hex>` (one request, decoded for the Route A table incl. PID 70 boost and 78 EGT), `diag vin`, `diag ecu` (mode 09), `diag status`. ISO-TP single/first/consecutive frames reassembled with a `30 00 00` flow control to the responder's physical ID. Guards: one request in flight, refused for 3 s after any foreign tester frame (`0x7DF`/`0x7E0–7`/`0x6F1`), services 01 and 09 only. Console dispatch chained through `Tunables::setExtraCommandHandler()`. Built (1.49 MB) and flashed to COM11; bench check with no bus attached: `diag pids` sent `02 01 00` on `0x7DF`, the TWAI controller reported the single-shot frame un-ACKed, and the probe reported "not ACKed - no other node saw it" rather than blaming the ECU (the summary distinguishes un-ACKed from ACKed-but-silent). CAN-task warnings now take the serial lock so they no longer splice into `CANTX` lines. The wiki's "firmware never transmits" statements are now qualified on [[can-bus-integration]] and [[obd-diagnostic-polling]] (test-day procedure and the three possible outcomes written there). Root `CLAUDE.md` and `docs/UART_PROTOCOL.md` console section updated. Procedure rewritten as numbered steps with all four outcomes (un-ACKed / ACKed-silent / one responder / two responders) and the log-capture command.
|
||||
|
||||
@@ -80,7 +80,7 @@ First in-car test of the dual-controller rig: A reads the bus fine, B receives f
|
||||
|
||||
## [2026-09-22] query | Patrol cluster signal research - tach 2 ppr verified, temp sender curve, flutter plan
|
||||
|
||||
First day driving the real cluster from Controller B through the 2SK3069 low-side stage. Tach: needle tracked at double with ppr=4; user set ppr=2 -> tracks correctly (verified). 2 ppr matches an ECU-driven 4-cyl-style tach input (ZD30-era Y61 hint, unverified) rather than the TD42 alternator-W-terminal scheme. Temp gauge on IO8: needle flutters at temp_pwm_hz=1 kHz. Researched: stock Patrol sender is an NTC (2.1-2.9k @ 20C, 0.68-1k @ 50C, 236-260R @ 90C; patrol4x4/sensorgal), gauge is current-measuring; community PWM-gauge experience says flutter dies at ~40-50 kHz. Mitigation ladder filed: fixed-duty override test (data vs electrical), cfg set temp_hz 20000 (firmware clamp), then raise clamp / series drain resistor (~100-240R, also bounds full-on beyond-hot short) / gauge-side cap. Temp law must be re-derived after (FET inverts duty sense). Filed [[patrol-instrument-cluster]]; index updated. Earlier same day: [[canny-5-3-pico-gauge-drive]] hypothesis effectively confirmed by the needles moving through the FET; gauge-output disable bits found off during bench test (B console "disabled") - re-enabled via tuning screen.
|
||||
First day driving the real cluster from Inst. Cluster through the 2SK3069 low-side stage. Tach: needle tracked at double with ppr=4; user set ppr=2 -> tracks correctly (verified). 2 ppr matches an ECU-driven 4-cyl-style tach input (ZD30-era Y61 hint, unverified) rather than the TD42 alternator-W-terminal scheme. Temp gauge on IO8: needle flutters at temp_pwm_hz=1 kHz. Researched: stock Patrol sender is an NTC (2.1-2.9k @ 20C, 0.68-1k @ 50C, 236-260R @ 90C; patrol4x4/sensorgal), gauge is current-measuring; community PWM-gauge experience says flutter dies at ~40-50 kHz. Mitigation ladder filed: fixed-duty override test (data vs electrical), cfg set temp_hz 20000 (firmware clamp), then raise clamp / series drain resistor (~100-240R, also bounds full-on beyond-hot short) / gauge-side cap. Temp law must be re-derived after (FET inverts duty sense). Filed [[patrol-instrument-cluster]]; index updated. Earlier same day: [[canny-5-3-pico-gauge-drive]] hypothesis effectively confirmed by the needles moving through the FET; gauge-output disable bits found off during bench test (B console "disabled") - re-enabled via tuning screen.
|
||||
|
||||
## [2026-09-22] update | Temp gauge flutter resolved: temp_hz 1 kHz -> 20 kHz
|
||||
|
||||
@@ -110,9 +110,9 @@ The capture-with-Launch session, finally run (engine idling, our read-only seria
|
||||
|
||||
Tightened the live-data findings after checking the full capture: the Launch used only 1A/2C/22/23 - NO 10 (session), 27 (security), or 3E (tester-present). So self-polling a 2C value (e.g. rail pressure) needs only the 2C 10 15E0 define + 2C 10 00DF poll, no secret; the earlier 21-block NRCs (0x22/0x33) are a different mechanism and do not gate 2C. Corrected the "needs session/define handshake" wording in launch-capture-2026-09-23.md and obd-diagnostic-polling. Recorded the design decision (user, 2026-09-23): active polling, if built, lives behind a password-protected Diagnostics screen (authorized-tech gate, manual, refuses while scan tool connected, read-oriented services) - open-questions #12, and a project memory so the capability is not re-researched later.
|
||||
|
||||
## [2026-09-26] build | OTA updates for Controller A
|
||||
## [2026-09-26] build | OTA updates for Main CTRL
|
||||
|
||||
Repartitioned A to dual OTA slots (2 x 7.9 MB, SPIFFS dropped, nvs/otadata offsets kept - tunables v150 survived the one-time USB flash on COM10, verified). New src/modules/ota_update.cpp + include/config/ota_config.h: manual `ota status|check|install|rollback` console; HTTPS pull from the (now public) Gitea repo's latest release, ECDSA P-256 signature over "patrol-a|version|sha256" checked before download, image hashed while streaming, parked gate before download and before slot switch, rollback via verifyRollbackLater() override + 30 s confirm. TLS trusts ISRG Root X1 + Root YR (both verified against the server chain). CI: .gitea/workflows/firmware.yml (main -> rolling unsigned pre-release main-latest; v* tag -> signed release with manifest.txt). Decisions: manual trigger (future Diagnostics screen), public repos instead of a device token, Controller B to be updated by A over ESP-NOW (wire is one-way). Wrote pages/ota-updates.md. Pending: BMW_NISSAN_FIRMWARE_SIGNING_KEY repo secret, enable repo Actions, first v* tag to test end-to-end.
|
||||
Repartitioned A to dual OTA slots (2 x 7.9 MB, SPIFFS dropped, nvs/otadata offsets kept - tunables v150 survived the one-time USB flash on COM10, verified). New src/modules/ota_update.cpp + include/config/ota_config.h: manual `ota status|check|install|rollback` console; HTTPS pull from the (now public) Gitea repo's latest release, ECDSA P-256 signature over "patrol-a|version|sha256" checked before download, image hashed while streaming, parked gate before download and before slot switch, rollback via verifyRollbackLater() override + 30 s confirm. TLS trusts ISRG Root X1 + Root YR (both verified against the server chain). CI: .gitea/workflows/firmware.yml (main -> rolling unsigned pre-release main-latest; v* tag -> signed release with manifest.txt). Decisions: manual trigger (future Diagnostics screen), public repos instead of a device token, Inst. Cluster to be updated by A over ESP-NOW (wire is one-way). Wrote pages/ota-updates.md. Pending: BMW_NISSAN_FIRMWARE_SIGNING_KEY repo secret, enable repo Actions, first v* tag to test end-to-end.
|
||||
|
||||
## [2026-09-26] build | OTA bring-up: Wi-Fi switch, ESP-NOW, memory
|
||||
|
||||
@@ -146,7 +146,87 @@ User asked to refactor the Settings and Gauge Tuning UX, save the Wi-Fi connecti
|
||||
|
||||
`include/ui/` deleted (the SquareLine export: ui_init, placeholder screen, helpers, theme manager); its one live line, the dark LVGL theme, moved to `display_init.cpp`. User verified on `dev` (Wi-Fi forget/scan/rejoin, dialogs, keyboard) and installed v0.1.6 from the screen: "all good". SquareLine references left in `.pio/libdeps` are library examples, never compiled. Recorded the agreed display plan in open-questions #13 (baseline -> bounce buffers -> XIP_FROM_PSRAM on a branch), including why bounce buffers alone won't fix flash-write flicker, and why CAN / wire / ESP-NOW need no buffering (dropped-frame counter deferred by the user).
|
||||
|
||||
## [2026-09-26] ingest | Schematic re-downloaded; VOUT = H8 solder jumper (3V3 default / 5V)
|
||||
|
||||
User asked whether VOUT becomes 5 V by "unsoldering the resistor". Re-fetched `ESP32-S3-Touch-LCD-5-Sch.pdf` into `raw/` (closes the wishlist item) → [[esp32-s3-touch-lcd-5-schematic]]. Answer: VOUT is net `I2C_VCC`, picked by **`H8`, a 3-pad solder jumper** (1 = 3V3, 2 = VOUT, 3 = 5V; "the default paste is 3V3"): open the 1–2 bridge, bridge 2–3, never all three. The terminal-block I2C lines are level-shifted (NDC7002N, 4.7 k pull-ups to `I2C_VCC`) so they follow the choice. 5 V rail is a SY8293 buck rated 2 A ("run the line at 2A"), screen ≈550 mA, so ≈1 A spare for a load such as Inst. Cluster `(unverified estimate)`; not on USB power. Also indexed: SD SPI pins (IO11/12/13, CS EXIO4), CAN IO15/16 and RS485 IO43/44 confirmed. Updated [[esp32-s3-touch-lcd-5b]], [[open-questions]] wishlist, index.
|
||||
|
||||
## [2026-09-27] query | Open question 13 reviewed with the user: full fix committed, dots not gone
|
||||
|
||||
I argued for the cheap half only (baseline, 40-line draw buffer, time-boxed bounce buffers) and deferring XIP-from-PSRAM as cosmetic. User corrected two premises: the dots still appear occasionally on v0.1.6 (the "gone" claim on [[esp32-s3-touch-lcd-5b]] was too strong — now qualified), and a dark screen during OTA is a safety/UX defect (no feedback → driver may turn the ignition off mid-update). Decision (user): fix everything, all steps through XIP, bench time is no constraint; add an on-screen progress bar + "do not switch off" during updates. Recorded on [[open-questions]] #13. Also explained in plain terms why the coolant duty law still needs re-deriving through the FET stage ([[patrol-instrument-cluster]]); that remains the higher-priority car-facing item.
|
||||
|
||||
## [2026-09-27] build | `perf` console: the measuring stick for open question 13
|
||||
|
||||
Step 1 of the display plan. New `src/modules/perf_monitor.cpp`: LVGL `monitor_cb` (frames, ms/frame, px), a timer around `drawBitmap()` in the port's flush callback (ms per second spent writing the PSRAM framebuffer), `lv_timer_get_idle()`, FreeRTOS run-time stats for per-core idle (enabled in the Arduino core's sdkconfig), heap figures. `perf` / `perf on [sec]` / `perf off`; `PERF,` CSV lines sit next to `CANRAW` in a session log. Built and flashed COM14 (the 5B enumerates as COM14 today; the 1.3 as COM13). Idle baseline recorded on [[open-questions]] #13. Next: the provoke session (Wi-Fi scan, tuning save, OTA) with `perf on 1` logging, then bounce buffers.
|
||||
|
||||
## [2026-09-27] ingest | Display baseline session (perf log) — Driveline redraws for nothing, flash writes invisible to LVGL counters
|
||||
|
||||
`raw/perf-20260927-164620.log` (2.5 min, `perf on 1`, screens exercised: Settings, Wi-Fi scan + join, ota check, Gauge Tuning incl. hold-repeat and Simulation, ota install v0.1.6) → [[perf-baseline-2026-09-27]]. No markers were typed, timeline rebuilt from the board's log lines. Findings: (1) Driveline renders ~10 fps × 39 kpx × 30 ms with constant data — `tick()` calls `lv_label_set_text` unconditionally for rpm/torque/pedal/shaft every 100 ms `(repo)` → a third of core 1 and 51 ms/s of PSRAM writes for nothing; (2) screen switches are single 140–330 ms frames (the swipe lag) — a drawing cost, not a DMA one; (3) Simulation tab = 2 Mpx/s, 26 % of time copying to PSRAM, LVGL idle 9 %, core 1 idle 25 % — the load bounce-buffer refill must coexist with; (4) the 16:47:10 NVS save left no trace in the counters: flicker lives on the panel DMA side, so a vsync/refresh counter is needed to measure steps 2–3; (5) PERF stops during the 41 s OTA download (loop blocked). Heap flat. Plan on [[open-questions]] #13 amended (step 1b). User's visual observations for this run not recorded — asked.
|
||||
|
||||
## [2026-09-27] build | Step 1b: Driveline redraw stopped, panel vsync counter, timer-driven PERF
|
||||
|
||||
From the baseline findings. (1) `driveline_screen.cpp`: `setText()` / `setChip()` write a label or colour only when it differs — idle Driveline went from 9.7 fps, 30 ms/frame, 52 ms/s PSRAM copies, LVGL idle 68 %, core 1 idle 66 % to **0 fps, 0 ms/s, 96 %, 96 %** `(verified bench)`. (2) `perf` now counts the RGB panel's refresh-finished interrupt (attached in the port when tearing-avoidance is off): **≈24 vsync/s, longest gap 41.5 ms** = one frame at the 16 MHz pixel clock; a DMA restart will read as ≥ 83 ms — the first direct instrument for flicker and dots. (3) Periodic PERF moved from `loop()` to an esp_timer so it keeps reporting through the OTA download. Recorded on [[open-questions]] #13 and [[esp32-s3-touch-lcd-5b]]; root CLAUDE.md gained the "write only on change" rule for screen ticks. Next: provoke session with markers, then bounce buffers.
|
||||
|
||||
## [2026-09-27] ingest | Perf session with dots on screen + OTA: dots are sub-frame glitches, OTA kills 75 % of frames
|
||||
|
||||
`raw/perf-20260927-165903.log` → [[perf-dots-and-ota-2026-09-27]]. User started logging while dots/dashes were visible on the idle Driveline: LVGL 0 fps, cores 95 % idle, **panel 24–25 vsync/s with a 41.5 ms gap** — the frames were all on time, so the dots are FIFO underruns of a few pixels that the driver's restart-in-vsync never sees; only eyes can judge them, and bounce buffers (DMA from internal SRAM) are the designed cure. During `ota install` the panel fell to **4–8 vsync/s, gaps 290–747 ms** (332 ms = 8 frames recurring): each sector write disables the cache and starves the DMA — quantifies why the screen is unusable during updates and sets the step-3 target (24/s, 41.5 ms during install). Trim edits + deferred NVS save and `ota check` lost no frames. Still no markers typed — asked the user what was seen. Updated [[open-questions]] #13, [[esp32-s3-touch-lcd-5b]], index.
|
||||
|
||||
## [2026-09-27] lint | Correction: bounce buffers were on all along (10 lines, 21 MHz); the dots are late refills
|
||||
|
||||
While preparing step 2 I found the panel library reads `ESP_PANEL_BOARD_LCD_RGB_*` from its own `BOARD_WAVESHARE_ESP32_S3_TOUCH_LCD_5_B.h` — bounce buffer = width × 10, pixel clock 21 MHz (→ 24.1 Hz, matching the vsync counter exactly). The three `-DESP_PANEL_LCD_RGB_*` flags in `platformio.ini` were dead names; removed and replaced by a comment. Corrected [[esp32-s3-touch-lcd-5b]] (no more "no bounce buffer" / "16 MHz"), [[perf-dots-and-ota-2026-09-27]] (warning callout with the refined mechanism: a late 20 KB refill makes the DMA re-send the previous 10-line chunk → text-coloured dashes below each line, as in the user's photo `raw/dots-20260927_170136.jpg`), [[open-questions]] #13 (step A void; step 3 now covers dots and OTA). Contributing PSRAM traffic noted from the qio_opi sdkconfig: `CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y` (Wi-Fi buffers in PSRAM), 32 KB data cache / 32 B lines, `LCD_RGB_ISR_IRAM_SAFE` off, XIP off. pioarduino 55.03.33 supports `custom_sdkconfig` (rebuilds the core) — branch `display-xip` next.
|
||||
|
||||
## [2026-09-27] verify | Step 3 (XIP from PSRAM + IRAM-safe RGB ISR): OTA no longer blanks the panel
|
||||
|
||||
Branch `display-xip`: pioarduino `custom_sdkconfig` with `CONFIG_SPIRAM_XIP_FROM_PSRAM`/`FETCH_INSTRUCTIONS`/`RODATA` and `CONFIG_LCD_RGB_ISR_IRAM_SAFE`. First core rebuild (20 min) failed at the end on RainMaker/Insights embedding `https_server.crt`; dropping the unused components with `custom_component_remove` fixed it (rebuild ~3 min after). Flashed COM14, then a scripted `ota install force` with `perf on 1` → [[perf-xip-ota-2026-09-27]]: **24–25 vsync/s, 41.5 ms gap for the entire 33 s download** (stock core an hour earlier: 4–8/s, 290–747 ms). Flash-write blanking is fixed `(verified)`; step 4 (progress bar with the screen on) is unblocked. PSRAM free 6.6 → 4.9 MB, internal 66 → 63 KB, first full redraw 142 ms (no slow-down seen). Generated IDF files git-ignored. Open: dots by eye on the XIP build, swipe-lag comparison, CI must rebuild the core. Updated [[open-questions]] #13, [[esp32-s3-touch-lcd-5b]], index.
|
||||
|
||||
## [2026-09-27] build | Step 4: OTA keeps the screen on with a progress bar (branch display-xip)
|
||||
|
||||
`ota_update.cpp`: the full-screen notice gained an LVGL bar + percent label + amber "Do not switch off the ignition"; the download loop updates it per percent under a 50 ms LVGL try-lock; the backlight off/on around `writeImage()` is gone. Settings texts updated (confirm dialog, Updates note). Second forced install under `perf` → [[perf-xip-ota-2026-09-27]]: 24–25 panel frames/s and a 41.5 ms gap for the whole download, bar redrawing 2–3×/s. User confirmed on the screen: progress bar visible, no flicker. [[ota-updates]] rewritten for the lit screen; [[open-questions]] #13 step 4 done. Left: dots verdict by eye on the XIP build, CI core rebuild, merge + v0.1.7.
|
||||
|
||||
## [2026-09-27] release | v0.1.7: XIP from PSRAM, IRAM-safe panel refill, OTA progress bar, perf monitor, Driveline idle fix
|
||||
|
||||
User exercised the `display-xip` build (Wi-Fi scan, update check, install) and reported no flicker or other issues; decision: merge to main and tag **v0.1.7**. Contents since v0.1.6: core rebuilt with `CONFIG_SPIRAM_XIP_FROM_PSRAM` + `CONFIG_LCD_RGB_ISR_IRAM_SAFE` (pioarduino `custom_sdkconfig`, unused IDF components removed); OTA screen stays lit with a progress bar and "Do not switch off the ignition"; `perf` console + `tools/perf_session.py` (fps, PSRAM copy load, idle, panel vsync/gap); Driveline tick writes labels only on change; dead `ESP_PANEL_LCD_RGB_*` flags removed. Verified on the bench: 24–25 panel frames/s and a 41.5 ms gap throughout an OTA download (was 4–8/s). Open: dots in longer use (eyes only), CI core rebuild on the tag build. Pages: [[perf-baseline-2026-09-27]], [[perf-dots-and-ota-2026-09-27]], [[perf-xip-ota-2026-09-27]], [[ota-updates]], [[open-questions]] #13.
|
||||
|
||||
## [2026-09-27] build | v0.1.7 CI failure fixed: pioarduino core fork in the workflow, tag moved
|
||||
|
||||
Tag build died at the link step: `ModuleNotFoundError: No module named 'SCons.Tool.FortranCommon'`. Cause: CI installed upstream `platformio` via uv while the pioarduino platform pins its own SCons 4.8.1 (no Fortran tools) and, since `custom_sdkconfig`, the build runs through pioarduino's ESP-IDF path where the upstream core imports FortranCommon; locally the penv runs pioarduino's core fork (platform `penv_setup.py` pin v6.1.18), which never hit it — and v0.1.1–v0.1.6 never used that path. Workflow now installs the fork zip; documented in root CLAUDE.md and [[ota-updates]]. No release object existed for v0.1.7, so the tag was deleted on the remote and re-created on the fix commit, pushed with `--follow-tags`.
|
||||
|
||||
## [2026-09-27] verify | v0.1.7 published by CI after the core-fork fix
|
||||
|
||||
Second tag build (pioarduino core fork in the workflow) succeeded: release `v0.1.7` on Gitea at 18:28 with `firmware.bin` (1,722,464 B), `firmware.elf`, `manifest.txt` (target patrol-a, sha256 `a2949644…4c09`, ECDSA sig), built from `8e739fa`. Off-device check: downloaded binary's SHA-256 and size match the manifest. The bench board (dev build on COM14) could not `ota check` — Wi-Fi off and no saved network at that moment — so the first on-device install of v0.1.7 is the user's, from Settings → Updates. Expected on the board: "Version v0.1.7 is available", install with the screen lit and the progress bar, restart, `A v0.1.7` bottom-right; the Updates page then says up to date.
|
||||
|
||||
|
||||
## [2026-09-27] update | Inst. Cluster updates from A's screen: link_peer, two-way maintenance frames, Updates page with two cards
|
||||
|
||||
Implemented A's half of B's OTA (design in B's wiki `controller-b-ota`). Shared `automotive_data.h` (+ new `link_secure.h`, both byte-identical in the two repos): `STATUS` 0x03 B → A, `PAIR` 0x04 A → B wire-only, `SECURE` 0x05 A → B (AES-256-GCM under the pairing key; inner `OTA_CMD` / `WIFI_CREDS`), `PACKET_MAX_PAYLOAD` 64 → 160, `PACKET_VERSION` unchanged (DATA/CONFIG bytes identical). New `src/modules/link_peer.cpp`: pairing key in NVS `linkpeer`, `link pair` sends the key ×3 over UART1 only (`UARTManager::sendWire()`), B's STATUS kept + logged, automatic push of the remembered Wi-Fi network to B (hash-compared, ≥ 15 s apart, FORGET when A forgets), `requestCheck/requestInstall` for the screen behind `Ota::isParked()` + A on Wi-Fi. `EspNowLink` gained a receive callback (IDF 5.5 `esp_now_recv_info_t`) and `sendTo()`; `WiFiManager::getSavedCredentials()` (for LinkPeer only, never printed). Settings → Updates rebuilt as two cards (Main CTRL / Inst. Cluster) that fit the 484 px page without scrolling. Bench: B heard within seconds (`link status`: MAC, `dev`, heap 234 KB), refusals correct; `link pair` cannot be confirmed because **no wire is connected on the bench** (B reports `uart silent`). Build notes: `pio` from PowerShell only (idf_tools refuses MSYS); first build after the B project reinstalls Arduino 3.3.3 and may fail once with a `TypeError` - rerun.
|
||||
|
||||
## [2026-09-27] verify | Inst. Cluster updated from A's console, end to end (details in B's wiki log)
|
||||
|
||||
With the wire connected: pairing, credential push, check and install of B's first signed release `v0.1.0` all worked from A's `link` console; B rebooted and confirmed. A's side needed one cosmetic fix (missing separator in the "Inst. Cluster update: failed - <reason>" log line), rebuilt and flashed COM14. Left for the user: tap Check / Install on the Inst. Cluster card of Settings → Updates on the next B release and watch B's progress line.
|
||||
|
||||
## [2026-09-27] update | Wi-Fi chip and blinking alert banner on every screen; Driveline reds
|
||||
|
||||
User: show Wi-Fi on every screen (top-right) and give a sense of urgency when a threshold is crossed. New `status_overlay.cpp` on `lv_layer_top()`: Wi-Fi chip (fixed 150 px, LONG_DOT) top-right on all three screens - the shared header's back button moved 160 px left to make room; alert banner top-centre, red blinking at 2 Hz (colour toggle from tick, no lv_anim) naming the value (`COOLANT 104 °C HOT`, `GEARBOX OIL ...`, `GEAR MISMATCH`, `BATTERY 11.20 V LOW`), steady amber for `GEARBOX COOLING`; hidden with CAN off / ignition off. Driveline: chips row moved to y 60, crossed values and their titles go red (amber for cooling), gear mismatch turns the hero ring and gear letter red and the separate mismatch label is gone. Built and flashed COM14. Untested visually and untestable on the bench (alerts need CAN frames) - user to look at the car.
|
||||
|
||||
## [2026-09-28] update | No invented data: A starts with nothing valid and forgets everything when the bus stops
|
||||
|
||||
User: "if there is no info from CAN bus, no values should be shown". Until now `UARTManager::initializeDefaultData()` seeded 89.0 / 85.0 degC and 12.45 V with their valid flags SET, so a bench B (and a car with CAN off) showed plausible fake readings. Now the shared structure starts zeroed with `valid_flags = 0` and lever UNKNOWN; every field is valid only after a CAN frame filled it. `can_driver.cpp` gained `clearSharedData()`, called on CAN stop and on the bus-silence timeout (which already stopped the link) so stale values never come back marked valid. The `DEFAULT_*` block left the shared header (copied to B, `cmp`-identical). Driveline and B already key everything off the valid flags, so they show `--` / hidden needles. Flashed COM14; B's RX log now shows `Valid:0x00`. Released as v0.1.9 (v0.1.8, tagged minutes earlier, still carries the defaults - do not install it).
|
||||
|
||||
## [2026-09-28] update | Boards renamed Main CTRL / Inst. Cluster; "Sleep when the car is off" switch
|
||||
|
||||
User renamed Controller A → **Main CTRL** and Controller B → **Inst. Cluster** across both repos (comments, UI text, workflow names, wiki) and reworded the Updates page; committed here together with the sleep feature. New `power_manager.cpp` + Settings → System switch (NVS `sleep_en`, default OFF), see [[sleep-when-parked]]: deep sleep after 60 s of quiet CAN bus + idle touch + no update job, wake on CAN RX GPIO 16 (ext0, pull-up, TWAI stopped first). The switch travels to the Inst. Cluster as bit 7 of `out_enable` in CONFIG (no version bump). Console `sleep status | on | off | now`. Bench lesson the same evening: the switch was turned on with CAN on and no bus, so the Main CTRL slept a minute later and its USB-CDC port vanished (a deep-sleeping S3 has no USB) - only the reset button or a power cycle brings it back; touching the screen within the minute keeps it awake. Inst. Cluster side verified (see its log): sleep at 60 s of link silence, timer wake after exactly 60 s, 4 s probe with the panel dark, sleep again.
|
||||
|
||||
## [2026-09-28] update | Deep-sleep feature REMOVED (user decision) - and the lesson it left
|
||||
|
||||
The "Sleep when the car is off" switch and both power managers are gone: code, Settings row, NVS key, the `CFG_SLEEP_WHEN_SILENT` bit in the shared header, the wiki page and the cheat-sheet entries. Reason: on the bench the Main CTRL's panel showed flickering white edges after a sleep, and it stayed that way through resets and even a USB flash of release v0.1.8. Cause, understood too late: `gpio_hold_en()` on the 20 RGB panel lines (added to blank the panel in sleep) lives in the RTC domain and **survives every reset except a power cycle** - no firmware without a matching `gpio_hold_dis()` at boot can drive the panel again. Only pulling the power clears it. **Rule for the future: never use GPIO hold / deep-sleep hold on this board's panel lines, and never send a board to deep sleep from the console without the user's go-ahead** (the USB port vanishes and only reset or power brings it back). The boards stay awake whenever powered; if power saving is ever wanted again, do it in hardware (ignition-switched supply).
|
||||
|
||||
## [2026-09-29] update | Diff-lock inputs on DI0 / DI1
|
||||
|
||||
The user wants the two Patrol diff locks (+12 V while locked; the front only locks after the rear) shown on the Main CTRL. From the schematic: DI0 = CH422G EXIO0, DI1 = EXIO5, active low behind PC814. The CH422G's IO0-7 are one all-in/all-out bank shared with touch reset, backlight and LCD reset, so the firmware flips the bank to input for about 0.1 ms per read, 4 Hz. It is behind a Settings switch, default OFF, until tried on the bench for flicker. New page [[diff-lock-inputs]]; the schematic source page now carries the input circuit and the EXIO net table.
|
||||
|
||||
## [2026-09-29] update | Diff-lock polarity is inverted in the car
|
||||
|
||||
In the car the Driveline showed locked while unlocked and open while locked; the bench (12 V = locked) had been right. The likely cause is the ground-switched dash lamps (unverified). Added a per-board polarity setting: the "Inverted" switch in the Settings diff-lock row and `difflock invert on|off`, NVS `difflock_inv`. [[diff-lock-inputs]] is corrected.
|
||||
|
||||
## [2026-10-07] ingest + build | Boost / charge-air temp / battery identifiers; Engine data screen
|
||||
|
||||
Ingested three CANNY-logger captures (`raw/airtemp38-63.txt`, `raw/boost.txt`, `raw/battery12-27.txt`) -> [[launch-captures-2026-10-07]]: the Launch reads `2C 10 16A8` (charge-air temp), `0091` (boost actual), `0093` (battery), each a 2-byte `6C 10` reply. Engine off throughout, so one calibration point each: boost mbar = raw / 8 fits 1028-1034 mbar; temp and battery fits are guesses. User decision: a no-password **Engine data screen** (button on Driveline) showing rail, boost, charge-air temp, battery - polled only while shown, paused while another tester is on the bus, provisional values tagged and raw shown. Updated [[obd-diagnostic-polling]] (identifier table, decision), index.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-22
|
||||
|
||||
# CANNY 5.3 pico vs ESP32-S3: driving the Patrol cluster
|
||||
|
||||
Why the user's old CANNY-based setup moves the Patrol tach and our ESP32 (Controller B, IO7) does not. Researched 2026-09-22 after the first in-car test of the dual-controller rig: temp needle parked mid-scale, tach dead ([[dual-controller-architecture]]).
|
||||
Why the user's old CANNY-based setup moves the Patrol tach and our ESP32 (Inst. Cluster, IO7) does not. Researched 2026-09-22 after the first in-car test of the dual-controller rig: temp needle parked mid-scale, tach dead ([[dual-controller-architecture]]).
|
||||
|
||||
## The working reference setup `(verified)`
|
||||
|
||||
@@ -48,7 +48,7 @@ ESP32 IOx ──[R ~1k]── G/B N-MOSFET (logic-level, e.g. 2N7002/AO3400) o
|
||||
- If the cluster input turns out to have no internal pull-up, add an external ~4.7–10 kΩ to +12 V.
|
||||
- On hand (2026-09-22): a **2SK3069** (N-ch, 60 V / 75 A, 4 V-drive class) — hugely oversized but suitable; planned for the tach channel with 220 Ω gate series + 10 kΩ gate pulldown `(source: alltransistors.com 2SK3069)`.
|
||||
- **Never** connect the 12 V-pulled gauge line directly to an ESP32 pin, including in open-drain mode — the pin is not 12 V tolerant.
|
||||
- Grounds must be common: cluster GND ↔ Controller B GND.
|
||||
- Grounds must be common: cluster GND ↔ Inst. Cluster GND.
|
||||
|
||||
## Open items
|
||||
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
type: concept
|
||||
tags: [hardware, patrol, inputs, ch422g, wiring]
|
||||
updated: 2026-09-29
|
||||
---
|
||||
|
||||
# Diff-lock inputs (DI0 rear, DI1 front)
|
||||
|
||||
The Patrol has two differential locks. The user first described the wires as carrying **+12 V while a diff is locked**. In the car, the screen then showed the opposite (verified by the user, 2026-09-29): the wires carry current while unlocked and none once locked.
|
||||
|
||||
> [!warning] Polarity in the car is inverted
|
||||
> On the bench, 12 V on DI0 showed locked (verified). In the car, the same firmware showed locked while unlocked and open while locked (verified, 2026-09-29). The likely cause is the usual lamp wiring: the dash lamp is fed +12 V and the diff's position switch grounds it on lock. A wire tapped between the lamp and the switch then sits at about 12 V through the lamp filament while unlocked, and at 0 V once the switch closes `(unverified: wiring not traced)`. Fix: the per-board **Inverted** switch (Settings → System, diff-lock row) or `difflock invert on` `(repo)`. With it on, a broken wire reads as *locked*, which shows up as amber, not as a silent "open".
|
||||
|
||||
The front can only be locked after the rear, so the valid states are: none, rear only, rear + front (source: user). The Main CTRL shows them on the Driveline screen from its two isolated inputs.
|
||||
|
||||
## Wiring
|
||||
|
||||
| Terminal (16-way block) | Connect to |
|
||||
|---|---|
|
||||
| `DI0` | rear diff-lock wire (in the car: 12 V = UNlocked, so turn Inverted on) |
|
||||
| `DI1` | front diff-lock wire (same) |
|
||||
| `DI_COM` | vehicle ground (chassis, same ground as the board's `GND`) |
|
||||
|
||||
This is Waveshare's "PNP wet input / high-level trigger" wiring: `DI_COM` to the negative pole, 5–36 V DC on the input (source: [[esp32-s3-touch-lcd-5b-waveshare-wiki]]). Tap the wires in parallel with whatever the Patrol already drives with them (dash lamp); each input draws only ~3 mA.
|
||||
|
||||
## Circuit (source: [[esp32-s3-touch-lcd-5-schematic]], sheet 1, "DI/DO")
|
||||
|
||||
- `DINx` → PC814 LED (bidirectional, so polarity does not matter) → 3.6 kΩ (R78 / R73, 1206) → `DI_COM`. At 12 V: (12 − 1.2) / 3.6 k ≈ **3.0 mA**; at 14.4 V charging ≈ 3.7 mA.
|
||||
- 100 nF across each input (C100 / C101) filters spikes.
|
||||
- `DI_COM` is also fed from 5 V through D4 (1N5822) + R79 220 Ω. That is what makes the "dry contact" mode work (`DI_COM` left open, the input switched to ground). With `DI_COM` on ground, as here, that path draws ~20 mA from the board's 5 V rail `(unverified: read from the schematic, not measured)`.
|
||||
- Output side: the phototransistor pulls `DI0` / `DI1` (4.7 kΩ to 3V3) **low** while current flows. `DI0` = CH422G **EXIO0**, `DI1` = **EXIO5** (net table on the same sheet). So **locked = bit reads 0**.
|
||||
|
||||
## How the firmware reads them `(repo)`
|
||||
|
||||
The CH422G's IO0–7 are **one bank, all inputs or all outputs**, and the same bank drives touch reset (EXIO1), backlight (EXIO2) and LCD reset (EXIO3). The firmware switches the bank to input for about 0.1 ms per read (three I2C transactions: WR_SET 0x00, read, WR_SET 0x01), 4 times a second, under the LVGL lock. The chip keeps its output latch, so the outputs return to their previous levels. Another project does the same on a running display (source: github.com/VaAndCob/waveshare-esp32-s3-5inch-ch422g-driver, `EX_Read()`).
|
||||
|
||||
> [!warning] Not yet verified on this board
|
||||
> Whether the 0.1 ms float disturbs the panel (flicker) or touch is **unknown** until tried. That is why the feature sits behind **Settings → System → Diff lock inputs**, default OFF. A board without the wiring never flips the bank. If the panel flickers with the switch on, turn it off. The fallback is to move the inputs to spare GPIOs on the Inst. Cluster.
|
||||
|
||||
A state counts after two equal reads, so it can lag the real switch by up to 0.5 s. The Driveline draws a top view of the chassis, after the user's sketch. A locked axle turns amber: axle, tyres filled, and an X on the diff. There is no text; the drawing alone carries the state (user, 2026-09-29). Front locked without rear turns the front axle red, as a wiring or switch fault (verified on the bench by the user, 2026-09-29, with the earlier pill display: DI1 alone showed red, both inputs showed amber).
|
||||
|
||||
## Test on the bench
|
||||
|
||||
1. Settings → System → Diff lock inputs ON. The row's sub-line shows "Now: both open".
|
||||
2. Put 12 V (the board's own VIN supply) on `DI0`, with `DI_COM` on `GND`. It should show "rear LOCKED", and the rear axle in the Driveline chassis drawing turns amber with an X on the diff. Then do the same on `DI1`.
|
||||
3. Console: `difflock status` prints the raw IO byte: bit 0x01 (rear) and bit 0x20 (front) are SET while open, clear while locked.
|
||||
4. Watch the panel for flicker while the switch is on (see the warning above).
|
||||
|
||||
## Related
|
||||
|
||||
[[esp32-s3-touch-lcd-5b]] · [[esp32-s3-touch-lcd-5-schematic]] · [[patrol-instrument-cluster]]
|
||||
@@ -9,27 +9,27 @@ updated: 2026-09-27
|
||||
The system is two ESP32-S3 boards linked by UART **and ESP-NOW** (repo, protocol v2 since 2026-09-21):
|
||||
|
||||
```
|
||||
BMW M57N CAN bus ──▶ Controller A ──UART1 + ESP-NOW, 5 Hz──▶ Controller B ──▶ Patrol tach + temp gauge
|
||||
BMW M57N CAN bus ──▶ Main CTRL ──UART1 + ESP-NOW, 5 Hz──▶ Inst. Cluster ──▶ Patrol tach + temp gauge
|
||||
(this repo: (ESP32-S3-LCD-1.3,
|
||||
5" 1024×600 display) 1.3" round display, gauge outputs)
|
||||
```
|
||||
|
||||
- **Controller A** — [[esp32-s3-touch-lcd-5b]]: listens to the CAN bus, renders the main UI, and re-broadcasts a compact sensor packet over UART1 (GPIO 43/44, 115200 baud) at 5 Hz.
|
||||
- **Controller B** — ESP32-S3-Touch-LCD-1.3: a secondary display fed purely by that UART stream. Lives in a sibling repo (`bmw-patrol/` parent directory).
|
||||
- **Main CTRL** — [[esp32-s3-touch-lcd-5b]]: listens to the CAN bus, renders the main UI, and re-broadcasts a compact sensor packet over UART1 (GPIO 43/44, 115200 baud) at 5 Hz.
|
||||
- **Inst. Cluster** — ESP32-S3-Touch-LCD-1.3: a secondary display fed purely by that UART stream. Lives in a sibling repo (`bmw-patrol/` parent directory).
|
||||
|
||||
## Link protocol v2 (repo, 2026-09-21)
|
||||
|
||||
`0xAA | 0x02 | type | length | payload | XOR | 0x55`, identical on UART1 (GPIO 44 → SP3485 → `485_A`/`485_B`) and ESP-NOW broadcast (channel 1). DATA frames (lever, target/engaged gear nibbles, rpm, temps, battery, alert bitmap, valid flags) every 200 ms; CONFIG frames (`link_config_t`: Patrol gauge calibration + alert thresholds, edited on A via the `cfg` serial console and stored in NVS) on change and every 5 s. Alerts are decided here; B only renders them. Spec: `docs/UART_PROTOCOL.md`. Bench-verified with both transports live and B deduplicating every frame `(verified 2026-09-21)`.
|
||||
|
||||
**ESP-NOW and Wi-Fi share the radio** `(verified 2026-09-26)`. When A joins a Wi-Fi network (for OTA), its channel follows the AP (seen: 6, 9, 11) and B hops to find it; ESP-NOW kept running (6,410 frames, 0 failed). Until 2026-09-26 the Wi-Fi code powered the radio off on connect/disconnect (`WiFi.disconnect(true)`), which silently killed ESP-NOW and left B on the wire only — fixed, and `EspNowLink::send()` now re-initialises ESP-NOW if the driver drops it. Planned: **Controller B's firmware updates will travel from A over ESP-NOW** (bidirectional, unlike the one-way wire) → [[ota-updates]].
|
||||
**ESP-NOW and Wi-Fi share the radio** `(verified 2026-09-26)`. When A joins a Wi-Fi network (for OTA), its channel follows the AP (seen: 6, 9, 11) and B hops to find it; ESP-NOW kept running (6,410 frames, 0 failed). Until 2026-09-26 the Wi-Fi code powered the radio off on connect/disconnect (`WiFi.disconnect(true)`), which silently killed ESP-NOW and left B on the wire only — fixed, and `EspNowLink::send()` now re-initialises ESP-NOW if the driver drops it. Planned: **Inst. Cluster's firmware updates will travel from A over ESP-NOW** (bidirectional, unlike the one-way wire) → [[ota-updates]].
|
||||
|
||||
**A keeps the ESP-NOW channel stable (v0.1.5, 2026-09-27)** `(repo)`: Wi-Fi auto-reconnect is off. A tries the remembered network once at boot and once after a drop, then parks the radio back on channel 1 — an endless reconnect (e.g. driving away from home Wi-Fi) would keep hopping channels under the link to B. Scans happen only when someone opens the Wi-Fi page or taps Scan.
|
||||
|
||||
Controller B's side of this (receiver, ESP-NOW channel hopping, gauge outputs, bench wiring) is documented in the sibling wiki: `../../ESP32-S3-LCD-1.3/wiki/pages/controller-link.md` and `patrol-gauge-outputs.md`.
|
||||
Inst. Cluster's side of this (receiver, ESP-NOW channel hopping, gauge outputs, bench wiring) is documented in the sibling wiki: `../../ESP32-S3-LCD-1.3/wiki/pages/controller-link.md` and `patrol-gauge-outputs.md`.
|
||||
|
||||
## Why it matters for the wiki
|
||||
|
||||
Any change to what data we extract from the [[can-bus-integration]] ripples into this packet **and** into Controller B's parser — both ends must move together: edit `include/protocol/automotive_data.h` here, bump `PACKET_VERSION`, copy the header byte-identical to B (B rejects other versions).
|
||||
Any change to what data we extract from the [[can-bus-integration]] ripples into this packet **and** into Inst. Cluster's parser — both ends must move together: edit `include/protocol/automotive_data.h` here, bump `PACKET_VERSION`, copy the header byte-identical to B (B rejects other versions).
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-27
|
||||
|
||||
# Waveshare ESP32-S3-Touch-LCD-5B
|
||||
|
||||
Controller A of the [[dual-controller-architecture]] — the main in-cabin display. SKU 28151, the 1024×600 capacitive-touch variant of the LCD-5 family. Primary reference: [[esp32-s3-touch-lcd-5b-waveshare-wiki]].
|
||||
Main CTRL of the [[dual-controller-architecture]] — the main in-cabin display. SKU 28151, the 1024×600 capacitive-touch variant of the LCD-5 family. Primary reference: [[esp32-s3-touch-lcd-5b-waveshare-wiki]].
|
||||
|
||||
## Specs (source: waveshare-wiki)
|
||||
|
||||
@@ -21,6 +21,8 @@ Controller A of the [[dual-controller-architecture]] — the main in-cabin displ
|
||||
- Alternative inputs: USB Type-C 5 V; optional single-cell 3.7 V LiPo (CS8501 charge/boost, 580 mA)
|
||||
- Draw: ~450 mA @ 5 V (~2.3 W)
|
||||
- Remaining caveat: automotive transient/load-dump spikes (ISO 7637) can exceed 36 V `(unverified)` → [[open-questions]]
|
||||
- **Power path** (source: [[esp32-s3-touch-lcd-5-schematic]]): VIN → 1N5822 reverse diode + SMAJ36CA TVS → SY8293 buck (2 A, "run the line at 2A") → 5 V rail → 3.3 V LDO. Screen alone ≈550 mA @ 5 V.
|
||||
- **VOUT terminal = `I2C_VCC`, selected by solder jumper `H8`** (pad 1 = 3V3, pad 2 = VOUT, pad 3 = 5V; factory bridge 1–2 = 3.3 V). For 5 V: open 1–2, bridge 2–3, never all three. The external SDA/SCL are level-shifted (NDC7002N + 4.7 kΩ pull-ups to `I2C_VCC`), so the I2C lines follow. Headroom for a load on VOUT@5 V from the 12 V input ≈1 A `(unverified estimate)` — enough to power Inst. Cluster. Not on USB-only power.
|
||||
|
||||
> [!warning] Operating temperature 0–65 °C (source: waveshare-wiki)
|
||||
> Tight for a car: sub-zero winters and sun-baked dashboards both fall outside spec. → [[open-questions]]
|
||||
@@ -37,11 +39,11 @@ Controller A of the [[dual-controller-architecture]] — the main in-cabin displ
|
||||
|
||||
| Interface | Details |
|
||||
|-----------|---------|
|
||||
| RS485 | SP3485, auto TX/RX direction; terminal block used for UART1 → Controller B, GPIO 43/44, 115200 baud `(repo)` |
|
||||
| RS485 | SP3485, auto TX/RX direction; terminal block used for UART1 → Inst. Cluster, GPIO 43/44, 115200 baud `(repo)` |
|
||||
| Isolated I/O | Optocoupler digital in 5–36 V (dry/wet contact), open-drain out sinking 450 mA/ch — could read ignition-on or drive a relay later |
|
||||
| I2C | External header; CH422G expander occupies 0x20–0x27 & 0x30–0x3F, GT911 touch at 0x5D — avoid these addresses |
|
||||
| I2C | Terminal block SDA/SCL, level-shifted to `I2C_VCC` (= VOUT, 3.3 V or 5 V via `H8`); CH422G expander occupies 0x20–0x27 & 0x30–0x3F, GT911 touch at 0x5D — avoid these addresses |
|
||||
| RTC | PCF85063 + CR927 coin cell |
|
||||
| TF card | SD_CS driven via CH422G EXIO4 |
|
||||
| TF card | SPI: MOSI IO11, SCK IO12, MISO IO13; SD_CS via CH422G EXIO4 (source: schematic) |
|
||||
| USB Serial | Native USB-CDC (`Serial`, enumerates 303A:1001, ~1 MB/s), console + CANRAW `(repo)`. **Opening the port with default DTR/RTS resets the board** (`rst:0x15`) — set both low before opening (`--dtr 0 --rts 0`) to attach without a reboot `(verified 2026-09-26)` |
|
||||
|
||||
Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_CS) route through the CH422G IO expander — spare native GPIOs are scarce.
|
||||
@@ -52,13 +54,18 @@ Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_
|
||||
- LCD wants a 16 MHz pixel clock with correct PCLK polarity.
|
||||
- Backlight must be manually sequenced at boot to avoid a white flash.
|
||||
- Flashing: use the Type-C port labeled UART; hold BOOT while connecting if the port isn't recognized (source: waveshare-wiki).
|
||||
- **Flash writes flicker the screen** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache, so every flash write/erase (NVS save, OTA) briefly cuts off the PSRAM framebuffer the RGB panel streams from; there is no bounce buffer (`ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE=0`). `CONFIG_LCD_RGB_RESTART_IN_VSYNC=y` resyncs next frame → flicker, not permanent drift. Mitigated (v0.1.2): Tuning edits saved to NVS once after 3 s idle, backlight off during OTA writes. Real cure: bounce buffers + `CONFIG_SPIRAM_XIP_FROM_PSRAM` → [[open-questions]] #13.
|
||||
- **Flash writes flicker the screen** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache, so every flash write/erase (NVS save, OTA) briefly cuts off the PSRAM framebuffer that the bounce-buffer refill copies from (the "no bounce buffer" claim written here earlier was wrong — see 2026-09-27). `CONFIG_LCD_RGB_RESTART_IN_VSYNC=y` resyncs next frame → flicker, not permanent drift. Mitigated (v0.1.2): Tuning edits saved to NVS once after 3 s idle, backlight off during OTA writes. Real cure: bounce buffers + `CONFIG_SPIRAM_XIP_FROM_PSRAM` → [[open-questions]] #13.
|
||||
- **Full-screen transitions stutter** `(verified 2026-09-26)`: a fade re-renders and alpha-blends all 614k px in software every frame into the PSRAM framebuffer. Screen switches are instant (`LV_SCR_LOAD_ANIM_NONE`) since v0.1.2.
|
||||
- **Internal RAM was nearly full** `(verified 2026-09-26)`: 15.9 KB free, largest block 7.6 KB with display + Wi-Fi up. Half the cause was LVGL's own 48 KB widget pool (`LV_MEM_SIZE`) sitting in internal `.bss`. **Moved to PSRAM and enlarged to 512 KB (2026-09-27)**: internal free now **69 KB, largest block 31.7 KB** `(verified)`. The 60-line LVGL draw buffer (~120 KB) is still internal, by design (render speed).
|
||||
- **LVGL's widget pool ran out** `(verified 2026-09-27)`: Settings + its Wi-Fi list is ~15 KB; screen churn + list rebuilds took the 48 KB pool to 87% used / 31% fragmented / 4.5 KB biggest block, then a label draw failed `lv_mem_buf_get()` (backtrace decoded with addr2line). With the 512 KB PSRAM pool: 10 Settings visits + 9 list rebuilds, peak 4%, 0 crashes; swipes feel better (user).
|
||||
- **LVGL asserts used to freeze the board**: `LV_ASSERT_HANDLER` was `while(1);`, which spins inside the calling task *while it holds the LVGL lock* — UI frozen, `loop()`/console blocked on the lock, only the link task alive. Now `abort()`: backtrace on the console, core dump to flash (ELF), reboot. Decode with `xtensa-esp32s3-elf-addr2line -pfiaC -e firmware.elf <addrs>` (CI attaches `firmware.elf` to every release).
|
||||
- **Background Wi-Fi scans caused the random flickering dots** `(verified by elimination 2026-09-27)`: the Wi-Fi task scanned every 10 s forever, connected or not, on any screen; Wi-Fi buffers live in PSRAM next to the framebuffer. Scanning is now limited to "network list on screen and not connected" — the dots are gone (user).
|
||||
- **The dots came back on v0.1.4, gone on v0.1.5** `(verified 2026-09-27, user)`: v0.1.4 limited scans to "Settings open and not connected", but it forgot the network on every restart, so after the OTA restart it sat disconnected and rescanned every 10 s whenever Settings was open. v0.1.5 remembers the network and scans only when the Wi-Fi page opens or Scan is tapped. The underlying weakness remains: the RGB panel streams from PSRAM with no bounce buffer, so heavy Wi-Fi or flash traffic can still disturb the picture ([[open-questions]] #13).
|
||||
- **Panel refresh rate ≈ 24 Hz** `(verified 2026-09-27, perf vsync counter)`: **21 MHz** pixel clock (board header, not the 16 MHz once written here) over 1368 × 637 clocks incl. porches → 24.1 Hz; one frame = 41.5 ms. **Bounce buffers are on**: 2 × 10 lines (20 KB each, internal DMA RAM) set by the library's `BOARD_WAVESHARE_ESP32_S3_TOUCH_LCD_5_B.h`; the `platformio.ini` flag that said 0 was a dead name (removed 2026-09-27). A steady 41.5 ms longest-gap in `perf` means no DMA restart happened in that window; anything ≥ 83 ms is a dropped frame.
|
||||
- **Idle screens must render nothing** `(verified 2026-09-27)`: the Driveline tick used to re-set every label at 10 Hz, costing a third of core 1 and 52 ms/s of PSRAM writes with constant data; writing only on change took it to 0 fps / 96 % idle → [[perf-baseline-2026-09-27]].
|
||||
- **XIP from PSRAM cures the flash-write blanking** `(verified 2026-09-27, branch display-xip)`: with `CONFIG_SPIRAM_XIP_FROM_PSRAM` + `CONFIG_LCD_RGB_ISR_IRAM_SAFE` the panel kept 24 frames/s and a 41.5 ms gap through a whole OTA download (stock core: 4–8 frames/s). Costs ~1.7 MB of PSRAM for resident code and a core rebuild (`custom_sdkconfig`) → [[perf-xip-ota-2026-09-27]].
|
||||
- **Dots are not dropped frames** `(verified 2026-09-27)`: with dots visible on an idle Driveline the panel completed 24 frames/s with a 41.5 ms gap — they are sub-frame FIFO underruns (a few wrong pixels, frame still on time), which the driver cannot detect; bounce buffers are the fix. **OTA collapses the panel to 4–8 frames/s** (gaps to 0.75 s) for the whole download → [[perf-dots-and-ota-2026-09-27]].
|
||||
- **The dots are NOT fully gone** `(user, 2026-09-27)`: they still appear occasionally on v0.1.6 with scans limited — so scan policy only reduced the trigger; the PSRAM-streaming weakness itself is what shows. Structural fix (bounce buffers, then XIP-from-PSRAM) is now a committed job, not a nice-to-have → [[open-questions]] #13.
|
||||
- **SquareLine's screen lifecycle was the freeze risk, not LVGL**: its generated screens are deleted on leave and rebuilt on entry, so any pointer kept elsewhere dangles. Since 2026-09-27 every screen is hand-coded, built once and kept `(repo)`.
|
||||
- **Uploading over USB from a script on Windows**: esptool crashed printing its progress bar into a cp1252 pipe *in the middle of writing* and left the board frozen until a power cycle; the bootloader then fell back to the other OTA slot, so nothing was lost `(verified 2026-09-27)`. Set `PYTHONIOENCODING=utf-8` when piping upload output.
|
||||
- **Never power the Wi-Fi radio off** (`WiFi.disconnect(true)`, `WiFi.mode(WIFI_OFF)`): it de-initialises ESP-NOW, the wireless leg of the link to B → [[dual-controller-architecture]].
|
||||
@@ -66,4 +73,4 @@ Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_
|
||||
|
||||
## Related
|
||||
|
||||
[[dual-controller-architecture]] · [[can-bus-integration]] · [[ota-updates]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]]
|
||||
[[dual-controller-architecture]] · [[can-bus-integration]] · [[ota-updates]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]] · [[esp32-s3-touch-lcd-5-schematic]]
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-10-07
|
||||
|
||||
# OBD / Diagnostic Polling
|
||||
|
||||
Why some values never appear on the sniffer, how a scan tool gets them, and what it would take for Controller A to do the same. Several pages have linked here since July ([[can-id-candidates]], [[open-questions]] #7); the page was created on the [[google-ai-dde7m57-pids]] ingest, 2026-09-21.
|
||||
Why some values never appear on the sniffer, how a scan tool gets them, and what it would take for Main CTRL to do the same. Several pages have linked here since July ([[can-id-candidates]], [[open-questions]] #7); the page was created on the [[google-ai-dde7m57-pids]] ingest, 2026-09-21.
|
||||
|
||||
## Broadcast vs polled
|
||||
|
||||
@@ -59,7 +59,7 @@ The [[dwr-335d-torque-pids]] source is a worked, gauge-checked set of J1979 mode
|
||||
| `02 01 73` / `78` / `7A` / `83` | — | exhaust pressure / EGT / DPF ΔP / NOx — same caveat; DPF/SCR rows are meaningless on an M57N anyway |
|
||||
|
||||
- **First test = the `01 00` bitmap query.** One frame on `0x7DF` with the engine running (no scan tool attached) answers both open points at once: does this DDE speak EOBD on the PT-CAN at all, and which PIDs does it offer. No reply → the DDE serves EOBD on K-line (or not on this bus) and only Route B remains.
|
||||
- **Implemented on Controller A (2026-09-21) `(repo)`** as the `diag` console command — see *Firmware: the `diag` probe* below. The whole test is `diag pids` typed on the USB console.
|
||||
- **Implemented on Main CTRL (2026-09-21) `(repo)`** as the `diag` console command — see *Firmware: the `diag` probe* below. The whole test is `diag pids` typed on the USB console.
|
||||
- Route A cannot give fault codes beyond generic mode `03` DTCs (P0xxx) — BMW-specific codes need Route B.
|
||||
|
||||
## Route B — BMW proprietary (KWP2000 on `0x6F1` → `0x612`) — **VERIFIED WORKING (2026-09-23)**
|
||||
@@ -89,7 +89,7 @@ This depends on the DDE variant, which is still open ([[open-questions]] #2, [[b
|
||||
|
||||
## Firmware: the `diag` probe `(repo, 2026-09-21)`
|
||||
|
||||
Controller A now has **one** transmit path onto the PT-CAN: `CANDriver::transmit()`, called only by `src/modules/diag_probe.cpp`. It sends nothing on its own; every frame is typed by a human on the USB console.
|
||||
Main CTRL now has **one** transmit path onto the PT-CAN: `CANDriver::transmit()`, called only by `src/modules/diag_probe.cpp`. It sends nothing on its own; every frame is typed by a human on the USB console.
|
||||
|
||||
| Command | What it sends | What it prints |
|
||||
|---|---|---|
|
||||
@@ -143,7 +143,7 @@ Evidence: [[launch-capture-2026-09-23]], [[launch-captures-2026-10-07]]. Each pr
|
||||
- **The decode recipe (proven 2026-09-23):** log `CANRAW` while the Launch shows a live value → find the `2C 10 <id>` / `6C 10 <data>` pair whose data tracks the reading → calibrate scale against the display at two operating points (idle + a blip). One session per parameter. Boost, MAF, injection quantity, EGTs all reachable this way. Worked example: [[launch-capture-2026-09-23]] (rail pressure).
|
||||
- A continuous poller (Route A or B) would reuse the same transmit path with a fixed request list: one request per ≥100 ms, one identifier at a time, only while no scan tool is connected, never a session-control or write service. Still a design decision: a request storm or a malformed frame can disturb the DDE/EGS.
|
||||
- **What Route B self-polling actually requires (settled 2026-09-23):** just the `2C 10 15 E0` define then the `2C 10 <id>` poll — **no diagnostic session (`10`), no security access (`27`), no tester-present (`3E`)**, proven from the full Launch capture ([[launch-capture-2026-09-23]]). The `21`-block NRCs (0x22/0x33) that earlier looked like a session/security wall are a *different mechanism* and do not gate the `2C` path. `2C` is not strictly read-only (it writes a dynamic-identifier definition — harmless), so it stays out of the probe whitelist by policy.
|
||||
- **Design decision — the "Diagnostics" screen (2026-09-23):** if active polling is ever built, it lives behind a **password-protected Diagnostics screen** on Controller A (authorized-technician gate), triggered manually, only while no scan tool is connected, read-oriented services only. This is the deliberate on/off switch for transmit-on-the-bus — not a background poller. Not built yet; captured here so the capability and its guard rails are not re-researched later.
|
||||
- **Design decision — the "Diagnostics" screen (2026-09-23):** if active polling is ever built, it lives behind a **password-protected Diagnostics screen** on Main CTRL (authorized-technician gate), triggered manually, only while no scan tool is connected, read-oriented services only. This is the deliberate on/off switch for transmit-on-the-bus — not a background poller. Not built yet; captured here so the capability and its guard rails are not re-researched later.
|
||||
- Protocol v2 dropped the `fault_codes` field in favour of the alert bitmap ([[dual-controller-architecture]]); polled values would need new DATA fields.
|
||||
- The same request path would also be the only way to read DTCs (service `0x18`/`0x19`, variant-dependent) → [[open-questions]] #7.
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ The research frontier. Answering any of these should trigger updates across the
|
||||
|
||||
## Design decisions (parked, not blocking)
|
||||
|
||||
12. **The "Diagnostics" screen (planned 2026-09-23).** Active diagnostic polling — replaying the `2C` live-data reads we decoded ([[launch-capture-2026-09-23]]) so values like rail pressure appear on Controller A without the Launch — is now technically unblocked (no session/security needed). Intended design when built: a **password-protected Diagnostics screen**, authorized-technician access only, manual trigger, refuses while a scan tool is connected, read-oriented services only. The same gate covers the general transmit-on-the-bus decision. This is deliberately deferred, but the capability, the byte sequences, and these guard rails are recorded so the work resumes from here, not from scratch. **Update 2026-10-07:** the first live reads (rail, boost, charge-air temp, battery) ship on a no-password **Engine data screen** instead (user decision; guard rails in [[obd-diagnostic-polling]]); this password-gated screen remains the plan for anything beyond those reads. OTA check/install was meant to live here too (2026-09-26); **decided otherwise 2026-09-27**: it is on the Settings screen behind a confirm dialog ([[ota-updates]]). Whatever password this screen gets must be stored as a salted hash in NVS because the firmware is public. → [[obd-diagnostic-polling]], [[dual-controller-architecture]], [[ota-updates]]
|
||||
12. **The "Diagnostics" screen (planned 2026-09-23).** Active diagnostic polling — replaying the `2C` live-data reads we decoded ([[launch-capture-2026-09-23]]) so values like rail pressure appear on Main CTRL without the Launch — is now technically unblocked (no session/security needed). Intended design when built: a **password-protected Diagnostics screen**, authorized-technician access only, manual trigger, refuses while a scan tool is connected, read-oriented services only. The same gate covers the general transmit-on-the-bus decision. This is deliberately deferred, but the capability, the byte sequences, and these guard rails are recorded so the work resumes from here, not from scratch. **Update 2026-10-07:** the first live reads (rail, boost, charge-air temp, battery) ship on a no-password **Engine data screen** instead (user decision; guard rails in [[obd-diagnostic-polling]]); this password-gated screen remains the plan for anything beyond those reads. OTA check/install was meant to live here too (2026-09-26); **decided otherwise 2026-09-27**: it is on the Settings screen behind a confirm dialog ([[ota-updates]]). Whatever password this screen gets must be stored as a salted hash in NVS because the firmware is public. → [[obd-diagnostic-polling]], [[dual-controller-architecture]], [[ota-updates]]
|
||||
|
||||
## Project context
|
||||
|
||||
@@ -60,7 +60,7 @@ The research frontier. Answering any of these should trigger updates across the
|
||||
## Sourcing wishlist
|
||||
|
||||
- ~~Waveshare product page~~ ✅ ingested → [[esp32-s3-touch-lcd-5b-waveshare-wiki]]
|
||||
- Waveshare **schematic PDF** (linked from the product page: `ESP32-S3-Touch-LCD-5-Sch.pdf`) — would confirm CAN GPIO routing and power path
|
||||
- ~~Waveshare **schematic PDF**~~ ✅ re-downloaded into `raw/` 2026-09-26 → [[esp32-s3-touch-lcd-5-schematic]] (VOUT/H8 selection, 5 V rail budget, SD pins)
|
||||
- ~~A community DBC / CAN-ID list for the donor platform~~ ✅ ingested → [[e65-reverse-engineering-repo]]
|
||||
- ~~A real candump log from the engine running~~ ✅ → [[can-capture-2026-07-15]] (engine confirmed running, 2026-07-17)
|
||||
- **`6HP26.pdf`** — sitting in the E65 repo's `docs/`. The ZF 6HP26 manual, very likely our exact gearbox: gear ratios would let us convert output-shaft rpm → road speed and self-check the D3/D4 scaling. → [[driveline-speed-signals]]
|
||||
@@ -72,9 +72,11 @@ The research frontier. Answering any of these should trigger updates across the
|
||||
|
||||
13. **Internal RAM is nearly exhausted (found 2026-09-26) — largely relieved 2026-09-27:** LVGL's 48 KB pool moved to PSRAM (512 KB) → internal free 16 → **69 KB**, largest block 7.6 → **31.7 KB**, enough for bounce buffers to be attempted. Original finding: With display + Wi-Fi up: 15.9 KB internal free, largest block 7.6 KB (PSRAM 7.1 MB free). OTA works around it ([[ota-updates]]), but anything else that needs an internal allocation (another task, a TLS client, a bigger Wi-Fi burst) can fail. Biggest known consumer: the LVGL 60-line DMA draw buffer (~120 KB). Options: shrink it to ~30–40 lines, or measure what else lives in internal RAM first (`heap_caps_print_heap_info`). Not urgent, but it limits every future feature. **Same project as the display flicker/lag (2026-09-26):** flash writes flicker the PSRAM-fed RGB panel (no bounce buffer) and full-screen transitions stutter. Espressif's cure is bounce buffers + `CONFIG_SPIRAM_XIP_FROM_PSRAM` (needs pioarduino `custom_sdkconfig`), and bounce buffers need internal RAM — so free RAM, add bounce buffers, and measure real render FPS (LVGL perf monitor; the Debug "FPS" counts `loop()` passes, not frames) in one bench session. Quick mitigations shipped in v0.1.2 (instant screen switches, deferred NVS saves, dark screen during OTA).
|
||||
|
||||
**Decision 2026-09-27 (user): this is a must-fix, all steps through XIP, bench time is no constraint.** Two corrections to the record: (a) the flickering dots **still appear occasionally** on v0.1.6 — the scan policy reduced the trigger, it did not remove the weakness; (b) the dark screen during OTA is a **safety/UX defect**, not a mitigation: with no feedback a driver may switch the ignition off mid-update. Requirement: the screen stays on during an update with a visible progress bar and a "do not switch off" message — which needs Step B (flash writes must stop blanking the panel), plus an OTA progress callback on the Updates page. (The OTA design already survives a power cut — the new image is only confirmed after 30 s, else it rolls back — so the risk is a wasted update and a confused user, not a bricked board.)
|
||||
|
||||
**Plan agreed 2026-09-27 (next display session, bench + USB, `dev` builds only until verified):**
|
||||
1. **Baseline first**: Settings → System → Performance overlay (LVGL's perf monitor = real render FPS + CPU; never measured before). Provoke each symptom on purpose: a Wi-Fi scan (dots), a Tuning edit that gets saved (flash write), an update (flash writes). Without numbers there is no telling whether a change helped.
|
||||
2. **Step A - bounce buffers only** (`ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE`, today 0; start at 10 lines = 1024x10 px, ~20 KB each, two buffers, internal DMA-capable RAM). The panel then reads from internal RAM that the CPU refills from PSRAM, so it tolerates short PSRAM stalls. **Expected to cure the Wi-Fi-traffic dots; will NOT cure flash-write flicker**: while flash is written the cache is disabled, so the refill has nothing to read from either. RAM: 67 KB internal free but the largest block is ~32 KB, so two 20 KB buffers may not fit - if not, shrink the LVGL draw buffer 60 -> 40 lines (frees ~40 KB) and check render speed. The refill costs CPU (measure).
|
||||
1. **Baseline first**: Settings → System → Performance overlay (LVGL's perf monitor = real render FPS + CPU; never measured before). Provoke each symptom on purpose: a Wi-Fi scan (dots), a Tuning edit that gets saved (flash write), an update (flash writes). Without numbers there is no telling whether a change helped. **Tooling landed 2026-09-27 `(repo)`**: the `perf` console command (`perf on 1` streams a `PERF,` CSV line per second: fps, ms/frame, flush ms/s, LVGL idle, core idle, heap). **Idle baseline, Driveline screen, bench/USB, v0.1.6+perf**: 9.7 fps rendered (= the screen's own update rate), 30 ms per frame avg (122 ms worst in the first window), ~40 kpx/frame, 52 ms/s copying into the PSRAM framebuffer, LVGL idle 68 %, core 0 idle 94 %, core 1 idle 66 %, internal 66.9 KB free / 31.7 KB largest, PSRAM 6.6 MB free. **Provoke session logged 2026-09-27 → [[perf-baseline-2026-09-27]]**: Driveline redraws ~10×/s with nothing changing (39 kpx, 30 ms, a third of core 1 — an unconditional `lv_label_set_text` every 100 ms `(repo)`); screen changes are single 140–330 ms frames (= the swipe lag; not a bounce-buffer matter); the Simulation tab is the heaviest normal load (2 Mpx/s, 26 % of the time writing PSRAM, LVGL idle 9 %); a flash write is invisible to the LVGL counters, so the monitor needs a **panel vsync/refresh counter** to see flicker and dots directly; the monitor is blind during OTA (ticks from the blocked `loop()`). Heap flat throughout (66–67 KB internal, 31.7 KB largest, 6.6 MB PSRAM). **Plan amended**: 1b = stop the Driveline redraw + add vsync counter + timer-driven PERF, re-baseline; step 2 judged on the Simulation tab and during a scan, by the refresh counter. **Step 1b done 2026-09-27 `(verified, bench)`**: Driveline `tick()` now writes labels/chips only on change → idle Driveline 0 fps, 0 ms/s PSRAM copies, LVGL idle 96 %, core 1 idle 96 % (was 9.7 fps / 52 ms/s / 68 % / 66 %). `perf` gained the panel counters: **~24 vsync/s, longest gap 41.5 ms when healthy** — a DMA restart must show as a gap ≥ 2 frames (≈ 83 ms). Reporting runs from an esp_timer, so OTA is no longer a blind spot. **Second session 2026-09-27 → [[perf-dots-and-ota-2026-09-27]]**: (a) with dots on screen and everything idle the panel refreshed perfectly (24/s, 41.5 ms) — **dots are sub-frame DMA data glitches, invisible to the vsync counter, judged by eye only; bounce buffers are the designed fix**; (b) during `ota install` the panel drops to **4–8 refreshes/s with 290–747 ms gaps** — flash writes blank it ~75 % of the time; **no progress bar is possible before step 3**; target 24/s + 41.5 ms during an install. Tuning save and `ota check` lost no frame. **Correction the same evening**: the panel library already runs **10-line bounce buffers** and a **21 MHz** clock (the `platformio.ini` flags saying otherwise were dead names) — so the dots are *late bounce refills* re-sending the previous 10-line chunk (the photo shows text pixels echoed below each line), and step 2 as written is moot. **Step 3 (`CONFIG_SPIRAM_XIP_FROM_PSRAM` + `CONFIG_LCD_RGB_ISR_IRAM_SAFE`, pioarduino `custom_sdkconfig`, branch `display-xip`) now targets both the dots and the OTA blanking.** Fallbacks if dots remain: lower pixel clock (18 MHz), larger bounce buffers, Wi-Fi/LWIP buffers back to internal RAM (`CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=n`, costs internal RAM). **Step 3 built and measured 2026-09-27 17:46 → [[perf-xip-ota-2026-09-27]]: during a full `ota install` the panel held 24–25 refreshes/s with a 41.5 ms gap (stock core: 4–8/s, 290–747 ms). The flash-write blanking is fixed `(verified)`; a progress bar during updates is now possible (step 4). PSRAM free 6.6 → 4.9 MB (code resident there); no render slow-down seen in the one full-redraw sample. Dots on the XIP build still to be judged by eye (Wi-Fi up, idle screen).** **Step 4 done 2026-09-27**: the OTA notice keeps the screen on with a progress bar and "Do not switch off the ignition"; second forced install under `perf`: 24–25 frames/s, 41.5 ms gap throughout, bar redrawing 2–3×/s; user: "the progress bar appeared and no flickering or other issues" `(verified)`. **Merged to main and tagged v0.1.7 (2026-09-27, user decision)** after the user exercised the XIP build (Wi-Fi scan, update check and install) with no flicker or other issues reported. Whether the dots are fully gone in longer use stays open — report any sighting on v0.1.7 and the fallbacks above apply. First CI run with the core rebuild = the v0.1.7 tag build; if it fails, the release is missing until the workflow is fixed.
|
||||
2. ~~**Step A - bounce buffers only**~~ **(void — already on, 10 lines, via the board header; 2026-09-27)** (`ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE`, today 0; start at 10 lines = 1024x10 px, ~20 KB each, two buffers, internal DMA-capable RAM). The panel then reads from internal RAM that the CPU refills from PSRAM, so it tolerates short PSRAM stalls. **Expected to cure the Wi-Fi-traffic dots; will NOT cure flash-write flicker**: while flash is written the cache is disabled, so the refill has nothing to read from either. RAM: 67 KB internal free but the largest block is ~32 KB, so two 20 KB buffers may not fit - if not, shrink the LVGL draw buffer 60 -> 40 lines (frees ~40 KB) and check render speed. The refill costs CPU (measure).
|
||||
3. **Step B - `CONFIG_SPIRAM_XIP_FROM_PSRAM` (+ `CONFIG_SPIRAM_RODATA`)** via pioarduino `custom_sdkconfig`: code and constants run from PSRAM, so flash writes no longer block PSRAM. **Cures flash-write flicker** (screen could stay on during OTA with a progress bar instead of going dark). Cost/risk: `custom_sdkconfig` rebuilds the Arduino core from source (much slower builds, locally and in CI), and may not work cleanly with this platform version - do it on a branch, release only once it works.
|
||||
4. **Measure again after each step** (FPS, CPU, which symptoms still reproduce) and record the numbers here and on [[esp32-s3-touch-lcd-5b]].
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-27
|
||||
|
||||
# OTA Firmware Updates
|
||||
|
||||
How Controller A updates itself from this repo's Gitea releases, why each piece is the way it is, and what is still to do (Controller B). Built 2026-09-26. Design decisions by the user are marked **(decision)**.
|
||||
How Main CTRL updates itself from this repo's Gitea releases, why each piece is the way it is, and what is still to do (Inst. Cluster). Built 2026-09-26. Design decisions by the user are marked **(decision)**.
|
||||
|
||||
## The pipeline
|
||||
|
||||
@@ -16,7 +16,7 @@ git push tag vX.Y.Z ──► Gitea Actions (.gitea/workflows/firmware.yml, runn
|
||||
sign "patrol-a|vX.Y.Z|<sha256>" with secret BMW_NISSAN_FIRMWARE_SIGNING_KEY
|
||||
release vX.Y.Z: firmware.bin + firmware.elf + manifest.txt
|
||||
│ public repo, HTTPS, no token
|
||||
Controller A Settings → Updates → Install ◄──┘ (or `ota install`; parked, Wi-Fi joined)
|
||||
Main CTRL Settings → Updates → Install ◄──┘ (or `ota install`; parked, Wi-Fi joined)
|
||||
GET /api/v1/repos/art/ESP32-S3-Touch-LCD-5B/releases/latest → tag
|
||||
GET /releases/download/<tag>/manifest.txt → verify signature FIRST
|
||||
GET /releases/download/<tag>/firmware.bin → idle slot, hashed while streaming
|
||||
@@ -42,17 +42,19 @@ Push to `main` (no tag) builds a rolling **pre-release `main-latest`** — unsig
|
||||
|
||||
Always remember: an install is performed by the firmware that is **already running**, so a fix to the install path only takes effect on the update *after* the one that delivers it (v0.1.1 → v0.1.2 still flickered because v0.1.1 did the writing).
|
||||
|
||||
**Dark-screen writes (v0.1.2+).** Flash writes flicker the PSRAM-fed panel (cause below, and [[esp32-s3-touch-lcd-5b]]), so the backlight is off while the image is written: a full-screen notice "Updating to vX — the screen goes dark for about a minute — do not switch off" shows for 3 s first, then "Installed vX / Restarting…" or "Update failed / Still running vY". Seen by the user on the 2026-09-27 screen installs: dark for about a minute, then the restart. The running version is always shown bottom-right on every screen (`A v0.1.2`).
|
||||
**CI note (2026-09-27):** the v0.1.7 tag build failed with `ModuleNotFoundError: No module named 'SCons.Tool.FortranCommon'` — upstream PlatformIO core + pioarduino's stripped SCons 4.8.1 on the new ESP-IDF (custom_sdkconfig) build path. Fixed by installing pioarduino's core fork in the workflow (same pin the platform uses locally); the tag was moved to the fix commit and pushed again.
|
||||
|
||||
**Progress bar on screen (branch `display-xip`, 2026-09-27; supersedes the dark-screen writes of v0.1.2–v0.1.6).** With the core rebuilt to execute from PSRAM and an IRAM-safe panel refill (see [[perf-xip-ota-2026-09-27]]), flash writes no longer blank the panel, so the full-screen notice now stays lit: "Updating to vX", a bar driven per percent from the download loop, and an amber "Do not switch off the ignition". Verified 2026-09-27 by the user ("the progress bar appeared and no flickering") and by `perf`: 24–25 panel frames/s, 41.5 ms gap for the whole download. Previously (v0.1.2–v0.1.6) the backlight was off while the image was written: a full-screen notice "Updating to vX — the screen goes dark for about a minute — do not switch off" shows for 3 s first, then "Installed vX / Restarting…" or "Update failed / Still running vY". Seen by the user on the 2026-09-27 screen installs: dark for about a minute, then the restart. The running version is always shown bottom-right on every screen (`A v0.1.2`).
|
||||
|
||||
Known quirk: `ota status` shows the *other* slot's "built" date from the framework's precompiled app descriptor (e.g. "Nov 4 2025"), not our build time — ignore it.
|
||||
|
||||
## Decisions and why
|
||||
|
||||
- **Manual trigger only (decision, 2026-09-26).** An install ends in a reboot, which blanks Controller B's gauges; nothing checks or installs in the background.
|
||||
- **Manual trigger only (decision, 2026-09-26).** An install ends in a reboot, which blanks Inst. Cluster's gauges; nothing checks or installs in the background.
|
||||
- **On the Settings screen, behind a confirm dialog (decision, 2026-09-27)** — replacing the earlier plan to put it on the password-gated Diagnostics screen. Settings → Updates shows installed vs latest and a **Check for updates** button; **Install vX** appears only when the latest release differs and asks "Install vX? The screen goes dark for about a minute… only while parked". The user chose a confirm dialog over a PIN: the parked gate and the signature already guard the dangerous parts; a PIN can come with the Diagnostics screen ([[open-questions]] #12). The `ota` console stays for bench work and `rollback`.
|
||||
- **Parked gate** `(repo)`: refused if engine rpm > 0 / run state running or starting, output shaft turning, or lever in a drive gear. A silent bus (>2 s no frames: ignition off, bench) counts as parked. Checked before the download **and again** before the slot switch. `ota check` is exempt (read-only).
|
||||
- **HTTPS pull from a public repo (decision).** Both repos were made public 2026-09-26 so the device needs **no token** — the same reasoning as `parking_solution`'s public releases mirror: a read token in shipped firmware leaks with the device. History was scanned before/after going public: no secrets, no full VIN (only the 10-char prefix in ident logs), no SSIDs `(verified 2026-09-26)`.
|
||||
- **Signed images (decision).** HTTPS only proves the file came from the server; the ECDSA P-256 signature proves it came from our CI key. The signed statement is `target|version|sha256`, so a Controller B image can't be installed on A even with a shared key, and the manifest version can't be swapped. The firmware contains no secrets, so public binaries are fine — **keep it that way**: the future Diagnostics-screen password must be a salted hash in NVS, never a literal in source.
|
||||
- **Signed images (decision).** HTTPS only proves the file came from the server; the ECDSA P-256 signature proves it came from our CI key. The signed statement is `target|version|sha256`, so a Inst. Cluster image can't be installed on A even with a shared key, and the manifest version can't be swapped. The firmware contains no secrets, so public binaries are fine — **keep it that way**: the future Diagnostics-screen password must be a salted hash in NVS, never a literal in source.
|
||||
- **TLS trust = Let's Encrypt roots, not the leaf** `(verified 2026-09-26)`: the server chain is leaf (SAN `git.infra.msai.al`) → YR2 → Root YR (cross-signed by ISRG Root X1). Both ISRG Root X1 (to 2035) and Root YR (to 2045) are embedded in `include/config/ota_config.h`, and each verifies the chain alone. Leaf certs rotate ~90 days — never pin them. The framework's mbedtls has `MBEDTLS_HAVE_TIME_DATE` off, so no NTP is needed (and cert dates aren't checked; the signature is the real guarantee).
|
||||
- **Rollback**: the framework bootloader has `CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y`, but Arduino's `initArduino()` marks a new image valid *before* `setup()`. `ota_update.cpp` overrides `verifyRollbackLater()` → the image stays PENDING_VERIFY until `Ota::tick()` confirms it after 30 s. Consequence: **power off within 30 s of an update's first boot = back to the old version** (by design).
|
||||
|
||||
@@ -90,7 +92,7 @@ Wi-Fi must be joined first — Settings → Wi-Fi (remembered from then on) or `
|
||||
|
||||
- **Wi-Fi is remembered (v0.1.5+)**: one network, saved after a successful join, rejoined ~3 s after boot — including the boot that ends an update `(verified 2026-09-27)`. Before v0.1.5 every boot needed a new join.
|
||||
- **Open the console without resetting the board**: `pio device monitor -p COM10 -b 115200 --dtr 0 --rts 0 --echo` (pio lives at `%USERPROFILE%\.platformio\penv\Scripts\pio.exe`). Opening the port with default DTR/RTS resets it (`rst:0x15 USB_UART_CHIP_RESET`), which drops the Wi-Fi join `(verified 2026-09-26)`.
|
||||
- **Flicker cause** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache; every flash write stalls the PSRAM framebuffer the RGB panel streams from (no bounce buffer). Hence the dark screen above.
|
||||
- **Flicker cause** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache; every flash write stalls the PSRAM framebuffer that the panel's bounce-buffer refill copies from (the "no bounce buffer" wording here was wrong — the board header enables 10-line bounce buffers). Hence the dark screen of v0.1.2–v0.1.6; cured by XIP from PSRAM + `LCD_RGB_ISR_IRAM_SAFE` (2026-09-27) → [[perf-xip-ota-2026-09-27]].
|
||||
|
||||
## Secrets and keys
|
||||
|
||||
@@ -104,9 +106,9 @@ Wi-Fi must be joined first — Settings → Wi-Fi (remembered from then on) or `
|
||||
- **Joining Wi-Fi killed ESP-NOW**: the Wi-Fi task used `WiFi.disconnect(true)` (true = radio off), which drops ESP-NOW; B then ran on the wire only. Now `WiFi.disconnect()`, and `EspNowLink::send()` re-initialises ESP-NOW if the driver ever drops it. Verified: joined Personal1 (channel 9), ESP-NOW 195 sent / 0 failed.
|
||||
- `showConnectionResult()` took the LVGL lock with a 0 ms try-lock, ignored the result, and touched widgets that are NULL off the Settings screen — now waits for the lock and null-checks. It still showed **no success feedback** on screen (user: "a disaster UX") — resolved by the hand-coded Settings screen in v0.1.5 ([[open-questions]] #14).
|
||||
|
||||
## Controller B (not built yet)
|
||||
## Inst. Cluster (implemented 2026-09-27)
|
||||
|
||||
Plan agreed 2026-09-26: B is updated **by A over ESP-NOW**, not by the RS485 wire (the wire is one-way A→B; ESP-NOW is bidirectional and faster). A downloads B's signed image (target `patrol-b`) from B's repo releases, sends it with acks, B verifies the signature and swaps slots with the same rollback scheme. Prerequisites: B moves off the stock `default.csv` (1.25 MB slots, 1.07 MB firmware → too tight) to a 16 MB layout (confirm B's flash size first; one USB flash); ESP-NOW pairing/encryption so only A can talk to B; protocol frames for the transfer (shared `automotive_data.h` → version bump in both repos). B's repo is public since 2026-09-27 (anonymous API 200). Wire stays for gauge-data redundancy.
|
||||
The 2026-09-26 idea (A streams B's image over ESP-NOW) was dropped for a **pull design** the user chose on 2026-09-27: B downloads its own signed release (target `patrol-b`, B's repo, same key) over Wi-Fi; A only hands over the credentials and the trigger. Full design, verification state and the first-pairing procedure live in B's wiki (`../../ESP32-S3-LCD-1.3/wiki/pages/controller-b-ota.md`). A's side: `src/modules/link_peer.cpp` - `link pair` sends a random key over the UART wire once (never by radio; both repos are public), B's `STATUS` frames (version, phase, progress) arrive over ESP-NOW unicast, credentials and OTA commands go to B inside AES-256-GCM `SECURE` frames, and Settings → Updates gained a **Inst. Cluster** card (Installed / Latest / Check / Install) next to Main CTRL's. B's install is behind the same parking gate plus "A must be on Wi-Fi" (same AP ⇒ same channel ⇒ B's progress frames keep arriving). Console: `link status | pair | unpair | creds | ota check | ota install [force] | ota rollback`. **Verified end-to-end on the bench 2026-09-27**: `link pair` over the wire, automatic credential push, `link ota check` / `link ota install` from A's console took B from `dev` to `v0.1.0` (1,248,432 B in ~50 s), B rebooted, reported `v0.1.0` and confirmed itself after 30 s. The Updates-page buttons share the same request functions but have not been tapped yet.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-22
|
||||
|
||||
# Patrol instrument cluster — signal expectations
|
||||
|
||||
What the target vehicle's cluster ([[nissan-patrol-swap]]) needs on its tach and temp inputs, from the first day of driving it with Controller B's outputs through the low-side FET stage ([[canny-5-3-pico-gauge-drive]]). Patrol generation still unidentified — Y60/GQ vs Y61/GU matters for gauge internals → [[open-questions]].
|
||||
What the target vehicle's cluster ([[nissan-patrol-swap]]) needs on its tach and temp inputs, from the first day of driving it with Inst. Cluster's outputs through the low-side FET stage ([[canny-5-3-pico-gauge-drive]]). Patrol generation still unidentified — Y60/GQ vs Y61/GU matters for gauge internals → [[open-questions]].
|
||||
|
||||
## Tachometer
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 975 KiB |
@@ -0,0 +1,274 @@
|
||||
16:46:21.404 >>> perf on 1
|
||||
16:46:21.459 [perf] periodic every 1 s (columns: ts,fps,avg_ms,max_ms,kpx,flush_ms/s,lv_idle,idle0,idle1,int_free,int_largest,psram)
|
||||
16:46:22.498 PERF,12532,9.5,29.4,32,39,51,67,95,67,67472,31732,6602668
|
||||
16:46:23.195 [ 13215][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:23.515 PERF,13549,9.8,30.0,32,39,52,67,94,66,67472,31732,6602664
|
||||
16:46:23.695 [ 13710][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #50 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=55 fail=0]
|
||||
16:46:24.017 [ 14049][I][settings_screen.cpp:730] build(): [Settings] Settings screen built
|
||||
16:46:24.581 PERF,14615,5.6,46.0,148,131,85,30,93,55,67228,31732,6602552
|
||||
16:46:25.184 [ 15217][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:25.589 PERF,15623,0.0,0.0,0,0,0,92,95,94,67228,31732,6602328
|
||||
16:46:26.590 PERF,16624,0.0,0.0,0,0,0,92,96,95,67228,31732,6602328
|
||||
16:46:26.819 tworks
|
||||
16:46:26.823 [wifi] -51 dBm ArtServis
|
||||
16:46:27.598 PERF,17631,5.9,11.0,40,42,29,79,96,87,67228,31732,6602664
|
||||
16:46:28.207 [ 18227][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:28.598 PERF,18632,0.0,0.0,0,0,0,93,95,95,67228,31732,6602664
|
||||
16:46:28.976 [ 18991][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #75 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=81 fail=0]
|
||||
16:46:29.716 PERF,19750,1.7,77.0,142,334,63,94,95,81,67228,31732,6602664
|
||||
16:46:30.219 [ 20251][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:30.723 PERF,20757,1.9,4.0,4,0,0,93,96,94,67228,31732,6602664
|
||||
16:46:31.730 PERF,21764,4.9,39.2,96,150,72,0,96,76,67228,31732,6602664
|
||||
16:46:32.807 PERF,22841,3.7,75.5,104,301,122,61,96,67,67228,31732,6602664
|
||||
16:46:33.219 [ 23240][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:33.854 PERF,23887,4.7,60.4,102,232,121,53,94,67,67228,31732,6602664
|
||||
16:46:34.259 [ 24275][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #100 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=107 fail=0]
|
||||
16:46:34.900 PERF,24933,3.8,51.0,104,196,81,76,94,75,67228,31732,6602664
|
||||
16:46:35.268 [ 25301][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:35.903 PERF,25937,4.9,78.0,104,314,166,36,96,56,67228,31732,6602664
|
||||
16:46:36.968 PERF,27002,4.6,77.6,102,314,152,72,96,59,67228,31732,6602664
|
||||
16:46:37.970 PERF,28003,10.9,6.5,18,14,18,87,96,88,67228,31732,6602664
|
||||
16:46:38.233 [ 28253][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:38.970 PERF,29004,2.9,4.6,6,0,0,92,95,94,67228,31732,6602664
|
||||
16:46:39.433 [ 29470][W][STA.cpp:543] disconne[cwifti] j(oini)ng ':ArtServis'...
|
||||
16:46:39.435 STA already disconnected.
|
||||
16:46:39.543 [ 29558][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #125 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=133 fail=0]
|
||||
16:46:39.977 PERF,30010,26.8,10.6,134,26,82,56,90,64,66908,31732,6601804
|
||||
16:46:40.279 [ 30312][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:40.985 PERF,31019,49.5,4.7,12,0,12,70,94,70,66908,31732,6601708
|
||||
16:46:41.187 l 1
|
||||
16:46:41.199 [wifi] 'ArtServis' remembered - joins automatically at boot
|
||||
16:46:42.062 PERF,32096,24.1,7.5,66,12,38,60,94,75,66908,31732,6601744
|
||||
16:46:43.075 PERF,33109,0.9,10.0,10,19,2,88,95,93,66908,31732,6601744
|
||||
16:46:43.256 [ 33276][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:44.081 PERF,34114,2.9,44.0,114,165,58,87,94,81,66752,31732,6601744
|
||||
16:46:44.806 [ 34821][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #150 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=159 fail=0]
|
||||
16:46:45.092 PERF,35125,3.9,8.0,10,22,12,92,94,91,66752,31732,6601744
|
||||
16:46:45.163 [ota] working - console and screen values pause until done
|
||||
16:46:46.806 [ota] running dev | latest release v0.1.6 (1709280 bytes, signature OK) - `ota install` to update
|
||||
16:46:46.813 [ota] loop stack headroom after job: 3640 B
|
||||
16:46:46.908 [ 36941][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:46.915 PERF,36947,5.4,11.4,34,32,24,91,92,25,66256,31732,6601556
|
||||
16:46:47.917 PERF,37951,2.9,8.0,8,22,8,91,95,92,66256,31732,6601556
|
||||
16:46:48.273 [ 38293][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:48.924 PERF,38958,0.0,0.0,0,0,0,91,94,94,66256,31732,6601556
|
||||
16:46:49.926 PERF,39962,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:46:50.093 [ 40108][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #175 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=185 fail=0]
|
||||
16:46:50.969 PERF,41002,2.8,46.6,120,163,56,71,94,81,66256,31732,6601556
|
||||
16:46:51.999 [ 42032][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:52.006 PERF,42038,0.9,22.0,22,66,7,88,96,92,66256,31732,6601556
|
||||
16:46:53.028 PERF,43061,7.8,39.0,116,110,100,48,95,64,66256,31732,6601556
|
||||
16:46:53.287 [ 43307][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:53.729 [ 43761][I][tuning_screen.cpp:558] build(): [Tuning] Gauge tuning screen built
|
||||
16:46:54.055 PERF,44088,6.8,71.1,312,121,97,29,92,35,66256,31732,6601556
|
||||
16:46:55.052 PERF,45089,0.9,6.0,6,5,0,92,96,94,66256,31732,6601556
|
||||
16:46:55.369 [ 45392][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #200 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=211 fail=0]
|
||||
16:46:56.055 PERF,46089,0.0,0.0,0,0,0,92,94,95,66256,31732,6601556
|
||||
16:46:57.055 [ 47090][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:46:57.060 PERF,47097,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:46:58.060 PERF,48097,0.0,0.0,0,0,0,93,96,94,66256,31732,6601556
|
||||
16:46:58.294 [ 48318][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v183 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:46:59.061 PERF,49098,0.0,0.0,0,0,0,92,95,95,66256,31732,6601556
|
||||
16:47:00.061 PERF,50099,0.0,0.0,0,0,0,94,96,95,66256,31732,6601556
|
||||
16:47:00.658 [ 50673][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #225 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=237 fail=0]
|
||||
16:47:01.066 PERF,51100,0.0,0.0,0,0,0,91,94,94,66256,31732,6601556
|
||||
16:47:02.072 [ 52103][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:02.079 PERF,52109,0.0,0.0,0,0,0,94,96,94,66256,31732,6601556
|
||||
16:47:03.077 PERF,53110,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:03.214 [ 53239][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v184 (changed): ppr=2 trim=-12 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:03.384 [ 53404][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v185 (changed): ppr=2 trim=-11 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:03.540 [ 53568][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v186 (changed): ppr=2 trim=-10 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:03.683 [ 53703][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v187 (changed): ppr=2 trim=-9 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:03.811 [ 53837][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v188 (changed): ppr=2 trim=-8 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:03.951 [ 53971][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v189 (changed): ppr=2 trim=-7 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:04.078 PERF,54111,25.9,5.5,12,9,30,74,87,77,66256,31732,6601556
|
||||
16:47:04.110 [ 54136][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v190 (changed): ppr=2 trim=-6 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:04.250 [ 54269][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v191 (changed): ppr=2 trim=-5 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:04.440 [ 54464][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v192 (changed): ppr=2 trim=-4 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:05.080 PERF,55113,24.9,4.9,10,7,25,68,91,80,66256,31732,6601556
|
||||
16:47:05.178 [ 55198][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v193 (changed): ppr=2 trim=-5 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:05.312 [ 55331][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v194 (changed): ppr=2 trim=-6 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:05.475 [ 55496][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v195 (changed): ppr=2 trim=-7 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:05.670 [ 55689][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v196 (changed): ppr=2 trim=-8 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:05.893 [ 55913][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v197 (changed): ppr=2 trim=-9 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:06.033 [ 56048][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #250 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=276 fail=0]
|
||||
16:47:06.081 PERF,56114,28.9,5.2,10,8,30,76,86,76,66256,31732,6601556
|
||||
16:47:06.105 [ 56124][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v198 (changed): ppr=2 trim=-10 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:06.300 [ 56318][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v199 (changed): ppr=2 trim=-11 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:06.853 [ 56873][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v200 (changed): ppr=2 trim=-12 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:07.083 [ 57115][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:07.092 PERF,57126,19.7,4.7,10,7,16,85,91,84,66256,31732,6601556
|
||||
16:47:07.196 [ 57217][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v201 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:08.097 PERF,58130,7.9,4.7,10,7,7,86,94,91,66256,31732,6601556
|
||||
16:47:09.099 PERF,59132,0.0,0.0,0,0,0,93,96,94,66256,31732,6601556
|
||||
16:47:10.100 PERF,60133,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:11.115 PERF,61148,0.9,8.0,8,9,1,92,95,93,66256,31732,6601556
|
||||
16:47:11.327 [ 61342][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #19 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=305 fail=0]
|
||||
16:47:12.117 [ 62149][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:12.124 PERF,62155,0.0,0.0,0,0,0,92,94,93,66256,31732,6601556
|
||||
16:47:12.209 [ 62228][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v201 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:13.144 PERF,63177,6.8,24.5,136,83,67,60,94,78,66256,31732,6601556
|
||||
16:47:14.144 [ 64164][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v202 (changed): ppr=2 trim=-13 temp_hz=20000 slope=145 offset=50 min=40 override=0
|
||||
16:47:14.150 PERF,64179,6.9,6.5,18,9,8,86,94,90,66256,31732,6601556
|
||||
16:47:14.339 [ 64358][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v203 (changed): ppr=2 trim=-13 temp_hz=20000 slope=140 offset=50 min=40 override=0
|
||||
16:47:14.503 [ 64523][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v204 (changed): ppr=2 trim=-13 temp_hz=20000 slope=135 offset=50 min=40 override=0
|
||||
16:47:14.698 [ 64717][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v205 (changed): ppr=2 trim=-13 temp_hz=20000 slope=130 offset=50 min=40 override=0
|
||||
16:47:14.862 [ 64881][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v206 (changed): ppr=2 trim=-13 temp_hz=20000 slope=125 offset=50 min=40 override=0
|
||||
16:47:14.996 [ 65016][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v207 (changed): ppr=2 trim=-13 temp_hz=20000 slope=120 offset=50 min=40 override=0
|
||||
16:47:15.147 PERF,65180,34.9,4.8,10,7,33,70,88,75,66256,31732,6601556
|
||||
16:47:15.761 [ 65781][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v208 (changed): ppr=2 trim=-13 temp_hz=20000 slope=125 offset=50 min=40 override=0
|
||||
16:47:15.955 [ 65976][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v209 (changed): ppr=2 trim=-13 temp_hz=20000 slope=130 offset=50 min=40 override=0
|
||||
16:47:16.114 [ 66141][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v210 (changed): ppr=2 trim=-13 temp_hz=20000 slope=135 offset=50 min=40 override=0
|
||||
16:47:16.150 PERF,66183,18.9,5.2,10,7,22,68,91,82,66256,31732,6601556
|
||||
16:47:16.286 [ 66305][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v211 (changed): ppr=2 trim=-13 temp_hz=20000 slope=140 offset=50 min=40 override=0
|
||||
16:47:16.691 [ 66709][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v212 (changed): ppr=2 trim=-13 temp_hz=20000 slope=145 offset=50 min=40 override=0
|
||||
16:47:16.769 [ 66784][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #44 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=342 fail=0]
|
||||
16:47:17.140 [ 67161][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v213 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:17.154 [ 67186][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:17.157 PERF,67193,29.7,4.8,12,7,28,76,89,77,66256,31732,6601556
|
||||
16:47:18.157 PERF,68193,4.9,4.0,4,5,4,90,95,92,66256,31732,6601556
|
||||
16:47:19.156 PERF,69193,0.0,0.0,0,0,0,90,96,94,66256,31732,6601556
|
||||
16:47:20.171 PERF,70204,0.0,0.0,0,0,0,91,95,94,66256,31732,6601556
|
||||
16:47:21.172 PERF,71205,0.9,8.0,8,9,1,92,96,94,66256,31732,6601556
|
||||
16:47:22.051 [ 72065][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #69 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=368 fail=0]
|
||||
16:47:22.153 [ 72172][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v213 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:22.172 [ 72206][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:22.177 PERF,72213,0.0,0.0,0,0,0,93,93,94,66256,31732,6601556
|
||||
16:47:23.202 PERF,73235,8.8,16.0,98,68,61,91,95,80,66256,31732,6601556
|
||||
16:47:24.208 [ 74228][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v214 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:24.215 PERF,74243,4.9,6.4,16,10,6,88,94,91,66256,31732,6601556
|
||||
16:47:24.403 [ 74422][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v215 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:24.687 [ 74707][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v216 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:24.852 [ 74872][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v217 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:24.988 [ 75007][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v218 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:25.182 [ 75201][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v219 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:25.216 PERF,75251,24.8,5.8,14,8,27,68,88,78,66256,31732,6601556
|
||||
16:47:25.346 [ 75366][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v220 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:25.480 [ 75499][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v221 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:25.885 [ 75905][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v222 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:26.013 [ 76039][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v223 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:26.184 [ 76204][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v224 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:26.226 PERF,76259,28.7,5.2,10,8,31,73,88,76,66256,31732,6601556
|
||||
16:47:26.739 [ 76759][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v225 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:27.084 [ 77104][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v226 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:27.230 [ 77262][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:27.237 PERF,77269,26.7,4.6,10,6,24,73,92,80,66256,31732,6601556
|
||||
16:47:27.463 [ 77478][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #94 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=407 fail=0]
|
||||
16:47:27.565 [ 77584][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v227 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:28.237 PERF,78270,16.9,4.4,10,6,15,88,92,85,66256,31732,6601556
|
||||
16:47:28.269 [ 78288][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v228 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:28.434 [ 78452][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v229 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:28.958 [ 78977][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v230 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:29.253 PERF,79287,19.6,5.4,12,7,20,78,91,82,66256,31732,6601556
|
||||
16:47:29.482 [ 79502][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v231 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:30.252 PERF,80288,10.9,4.9,12,7,10,92,94,88,66256,31732,6601556
|
||||
16:47:30.578 [ 80598][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v232 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:30.803 [ 80823][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v233 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:30.969 [ 80987][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v234 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:31.162 [ 81182][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v235 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:31.255 PERF,81289,31.9,5.3,12,7,30,67,90,76,66256,31732,6601556
|
||||
16:47:31.715 [ 81737][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v236 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:32.257 [ 82289][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:32.264 PERF,82296,14.9,4.5,10,6,12,85,94,86,66256,31732,6601556
|
||||
16:47:32.422 [ 82441][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v237 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:32.856 [ 82876][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #119 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=443 fail=0]
|
||||
16:47:32.964 [ 82983][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v238 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:33.269 PERF,83301,21.8,4.8,10,7,20,81,91,82,66256,31732,6601556
|
||||
16:47:33.398 [ 83418][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:34.267 PERF,84302,9.9,5.0,12,7,9,92,94,89,66256,31732,6601556
|
||||
16:47:35.270 PERF,85303,0.0,0.0,0,0,0,93,96,95,66256,31732,6601556
|
||||
16:47:36.271 PERF,86304,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:37.288 [ 87319][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:37.294 PERF,87326,0.9,6.0,6,9,1,89,95,92,66256,31732,6601556
|
||||
16:47:38.122 [ 88143][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #144 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=470 fail=0]
|
||||
16:47:38.294 PERF,88327,0.0,0.0,0,0,0,93,94,95,66256,31732,6601556
|
||||
16:47:38.410 [ 88429][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:39.295 PERF,89328,0.0,0.0,0,0,0,93,95,94,66256,31732,6601556
|
||||
16:47:40.296 PERF,90329,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:41.297 PERF,91330,0.0,0.0,0,0,0,91,96,95,66256,31732,6601556
|
||||
16:47:42.301 [ 92332][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:42.307 PERF,92338,0.0,0.0,0,0,0,91,96,94,66256,31732,6601556
|
||||
16:47:43.306 PERF,93339,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:43.410 [ 93424][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #169 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=496 fail=0]
|
||||
16:47:43.452 [ 93470][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:44.422 PERF,94455,6.2,24.0,134,89,61,84,93,79,66256,31732,6601556
|
||||
16:47:45.423 PERF,95455,0.9,6.0,6,17,2,92,96,93,66256,31732,6601556
|
||||
16:47:46.429 PERF,96461,0.0,0.0,0,0,0,93,96,95,66256,31732,6601556
|
||||
16:47:47.331 [ 97362][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:47.435 PERF,97468,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:48.476 [ 98495][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:48.535 PERF,98567,19.1,26.6,34,94,200,9,93,41,66256,31732,6601556
|
||||
16:47:48.676 [ 98690][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #194 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=523 fail=0]
|
||||
16:47:48.759 [cfg] override mode=0 rpm=0 duty=0 (not saved)
|
||||
16:47:48.776 [ 98797][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v240 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:49.558 PERF,99590,8.8,25.7,32,93,88,87,92,70,66256,31732,6601556
|
||||
16:47:49.772 [cfg] override mode=1 rpm=0 duty=0 (not saved)
|
||||
16:47:49.812 [ 99831][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v241 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=1
|
||||
16:47:50.559 PERF,100591,4.9,6.4,8,8,5,86,94,91,66256,31732,6601556
|
||||
16:47:51.589 PERF,101621,9.7,29.0,34,98,109,80,95,65,66256,31732,6601556
|
||||
16:47:52.355 [102386][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:52.601 PERF,102633,22.7,29.3,36,99,261,44,94,25,66256,31732,6601556
|
||||
16:47:52.793 [cfg] override mode=1 rpm=0 duty=0 (not saved)
|
||||
16:47:52.830 [102849][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v242 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=1
|
||||
16:47:53.502 [cfg] override mode=0 rpm=0 duty=0 (not saved)
|
||||
16:47:53.534 [103554][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v243 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:53.625 PERF,103657,12.6,17.5,34,59,81,89,92,71,66256,31732,6601556
|
||||
16:47:53.975 [103989][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #219 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=552 fail=0]
|
||||
16:47:54.403 [cfg] override mode=2 rpm=0 duty=0 (not saved)
|
||||
16:47:54.437 [104456][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v244 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=2
|
||||
16:47:54.627 PERF,104659,4.9,7.2,12,8,5,92,93,90,66256,31732,6601556
|
||||
16:47:55.684 PERF,105716,12.3,26.0,34,91,125,67,95,61,66256,31732,6601556
|
||||
16:47:56.400 [cfg] override mode=2 rpm=0 duty=0 (not saved)
|
||||
16:47:56.432 [106451][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=2
|
||||
16:47:56.764 PERF,106796,19.4,25.3,34,91,197,19,93,42,66256,31732,6601556
|
||||
16:47:57.141 [cfg] override mode=0 rpm=0 duty=0 (not saved)
|
||||
16:47:57.158 [107186][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:47:57.372 [107406][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:47:57.776 PERF,107812,5.9,6.6,10,7,5,84,94,90,66256,31732,6601556
|
||||
16:47:58.780 PERF,108813,0.0,0.0,0,0,0,92,96,94,66256,31732,6601556
|
||||
16:47:59.279 [109301][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #244 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=580 fail=0]
|
||||
16:47:59.866 PERF,109898,9.2,24.2,114,81,81,84,94,72,66256,31732,6601556
|
||||
16:48:00.879 PERF,110911,9.8,29.6,32,39,51,63,95,64,66256,31732,6601556
|
||||
16:48:01.975 PERF,112010,4.5,52.0,142,154,76,93,95,71,66256,31732,6601556
|
||||
16:48:02.179 [112197][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:02.389 [112420][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:48:03.067 PERF,113099,2.7,48.6,114,181,57,94,94,80,66256,31732,6601556
|
||||
16:48:04.100 PERF,114131,6.7,46.8,276,106,79,45,95,62,66256,31732,6601556
|
||||
16:48:04.561 [114583][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #13 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=606 fail=0]
|
||||
16:48:05.103 PERF,115135,0.0,0.0,0,0,0,91,94,94,66256,31732,6601556
|
||||
16:48:06.107 PERF,116139,0.0,0.0,0,0,0,93,96,94,66256,31732,6601556
|
||||
16:48:07.036 [ota] working - console and screen values pause until done
|
||||
16:48:07.193 [117212][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:07.198 PERF,117214,1.8,82.0,134,329,63,92,95,78,66080,31732,6601556
|
||||
16:48:08.765 [ota] installing v0.1.6 -> app1 (1709280 bytes)
|
||||
16:48:09.855 [119869][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #38 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=632 fail=0]
|
||||
16:48:12.206 [122227][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:12.670 [ota] 0%
|
||||
16:48:15.397 [125372][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #63 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=658 fail=0]
|
||||
16:48:16.508 [ota] 10%
|
||||
16:48:17.241 [127258][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:20.131 [ota] 20%
|
||||
16:48:21.127 [131107][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #88 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=684 fail=0]
|
||||
16:48:22.263 [132282][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:23.917 [ota] 30%
|
||||
16:48:26.655 [136669][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #113 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=710 fail=0]
|
||||
16:48:27.290 [137309][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:27.630 [ota] 40%
|
||||
16:48:31.439 [ota] 50%
|
||||
16:48:32.285 [142262][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #138 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=736 fail=0]
|
||||
16:48:32.358 [142374][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:35.093 [ota] 60%
|
||||
16:48:37.410 [147395][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:37.842 [147824][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #163 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=763 fail=0]
|
||||
16:48:38.668 [ota] 70%
|
||||
16:48:42.029 [ota] 80%
|
||||
16:48:42.449 [152434][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:43.427 [153409][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #188 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=789 fail=0]
|
||||
16:48:45.431 [ota] 90%
|
||||
16:48:47.459 [157447][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:48:48.896 [ota] 100%
|
||||
16:48:48.914 [158935][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #213 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=815 fail=0]
|
||||
16:48:49.326 [ota] verified and installed v0.1.6. Rebooting in 3 s; it confirms itself after 30 s of uptime.
|
||||
16:48:52.331 [162361][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
|
||||
16:58:59.826 >>> python tools\perf_session.py COM14
|
||||
16:58:59.826 >>> perf off
|
||||
@@ -0,0 +1,146 @@
|
||||
16:59:03.876 >>> perf on 1
|
||||
16:59:03.880 [ 30257][I][main.cpp:152] loop(): [LOOP] Heartbeat - system runn[188177][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #107 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=914 fail=0]
|
||||
16:59:03.962 [perf] periodic every 1 s (columns: ts,fps,avg_ms,max_ms,kpx,flush_ms/s,lv_idle,idle0,idle1,int_free,int_largest,psram,vsync/s,vsync_gap_max_us)
|
||||
16:59:04.496 [188793][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:04.948
|
||||
16:59:05.956 PERF,190262,1.0,8.0,8,19,2,91,96,94,66820,31732,6601780,25,41612
|
||||
16:59:06.948 41501
|
||||
16:59:07.195 [191501][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:07.955 PERF,192262,0.0,0.0,0,0,0,93,96,94,66820,31732,6601780,24,41498
|
||||
16:59:08.534 [ota] working - console and screen values pause until done
|
||||
16:59:08.956 PERF,193262,11.0,7.8,16,25,35,80,94,65,63800,31732,6542036,24,41594
|
||||
16:59:09.170 [193457][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #132 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=940 fail=0]
|
||||
16:59:09.514 [193807][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:09.952 PERF,194262,0.0,0.0,0,0,0,92,89,25,61380,31732,6556892,24,41837
|
||||
16:59:10.230 [ota] running dev | latest release v0.1.6 (1709280 bytes, signature OK) - `ota install` to update
|
||||
16:59:10.234 [ota] loop stack headroom after job: 3556 B
|
||||
16:59:10.956 PERF,195262,6.0,12.3,34,34,24,79,95,61,66320,31732,6601580,24,41591
|
||||
16:59:11.955 PERF,196262,0.0,0.0,0,0,0,91,96,94,66320,31732,6601580,24,41500
|
||||
16:59:12.237 [196543][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:12.955 PERF,197262,0.0,0.0,0,0,0,91,96,94,66320,31732,6601580,24,41511
|
||||
16:59:13.956 PERF,198262,1.0,116.0,116,614,64,0,96,83,66320,31732,6601580,24,41584
|
||||
16:59:14.069 [198374][I][tuning_screen.cpp:558] build(): [Tuning] Gauge tuning screen built
|
||||
16:59:14.455 [198742][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #157 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=966 fail=0]
|
||||
16:59:14.521 [198819][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v239 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:14.956 PERF,199262,2.0,154.0,302,310,64,92,92,54,66320,31732,6601580,24,41625
|
||||
16:59:15.955 PERF,200262,0.0,0.0,0,0,0,91,96,95,66320,31732,6601580,25,41497
|
||||
16:59:16.399 [200694][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v240 (changed): ppr=2 trim=-12 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:16.595 [200888][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v241 (changed): ppr=2 trim=-11 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:16.819 [201112][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v242 (changed): ppr=2 trim=-10 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:16.955 PERF,201262,26.0,4.8,14,7,26,74,91,79,66320,31732,6601580,24,41721
|
||||
16:59:17.301 [201607][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:17.733 [202027][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v243 (changed): ppr=2 trim=-11 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:17.955 PERF,202262,8.0,5.0,10,7,7,82,94,89,66320,31732,6601580,24,41645
|
||||
16:59:17.988 [202281][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v244 (changed): ppr=2 trim=-12 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:18.209 [202504][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:18.955 PERF,203262,14.0,4.8,12,7,13,91,93,86,66320,31732,6601580,24,41563
|
||||
16:59:19.790 [204079][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #182 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=998 fail=0]
|
||||
16:59:19.955 PERF,204262,0.0,0.0,0,0,0,92,94,95,66320,31732,6601580,24,41505
|
||||
16:59:20.956 PERF,205262,7.0,24.2,134,83,66,90,95,78,66320,31732,6601580,24,41504
|
||||
16:59:21.956 PERF,206262,11.0,13.2,96,58,65,64,95,78,66320,31732,6601580,24,41508
|
||||
16:59:22.316 [206622][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:22.955 PERF,207262,6.0,6.3,8,16,14,91,96,90,66320,31732,6601580,24,41729
|
||||
16:59:23.227 [207519][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:23.889 [cfg] override mode=1 rpm=0 duty=0 (not saved)
|
||||
16:59:23.931 [208224][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v246 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=1
|
||||
16:59:23.953 PERF,208262,5.0,33.2,136,114,66,63,92,77,66320,31732,6601580,24,41751
|
||||
16:59:24.955 PERF,209262,3.0,14.0,32,38,13,89,96,90,66320,31732,6601580,24,41498
|
||||
16:59:25.084 [209379][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #207 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1025 fail=0]
|
||||
16:59:25.330 [cfg] override mode=1 rpm=3952 duty=0 (not saved)
|
||||
16:59:25.365 [209665][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v247 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=1
|
||||
16:59:25.956 PERF,210262,14.0,23.7,34,86,135,28,92,59,66320,31732,6601580,25,41597
|
||||
16:59:26.728 [cfg] override mode=0 rpm=3952 duty=0 (not saved)
|
||||
16:59:26.759 [211059][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v248 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:26.951 PERF,211262,5.0,6.4,8,8,5,92,95,91,66320,31732,6601580,24,41537
|
||||
16:59:27.389 [211694][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:27.955 PERF,212262,10.0,29.6,36,98,121,0,95,60,66320,31732,6601580,24,41556
|
||||
16:59:27.992 [cfg] override mode=0 rpm=0 duty=0 (not saved)
|
||||
16:59:28.033 [212333][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (changed): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:28.952 PERF,213262,5.0,17.2,32,71,31,83,94,88,66320,31732,6601580,24,41501
|
||||
16:59:29.949 ,41617
|
||||
16:59:30.399 [214688][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #232 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1053 fail=0]
|
||||
16:59:30.956 PERF,215262,1.0,138.0,138,614,62,64,94,80,66320,31732,6601580,24,41599
|
||||
16:59:31.956 PERF,216262,1.0,8.0,8,27,3,0,96,92,66320,31732,6601580,24,41498
|
||||
16:59:32.476 [216782][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
16:59:32.956 PERF,217262,3.0,46.0,120,163,68,0,96,77,66320,31732,6601580,24,41506
|
||||
16:59:33.051 [217345][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:33.957 PERF,218262,7.0,22.0,116,82,92,0,94,61,66320,31732,6601580,24,41602
|
||||
16:59:34.955 PERF,219262,2.0,147.0,278,318,26,91,96,86,66320,31732,6601580,24,41660
|
||||
16:59:35.681 [219970][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #1 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1079 fail=0]
|
||||
16:59:35.729 [ota] working - console and screen values pause until done
|
||||
16:59:35.956 PERF,220262,4.0,46.5,140,176,77,86,94,73,63800,31732,6558824,25,41725
|
||||
16:59:36.955 PERF,221262,0.0,0.0,0,0,0,91,92,22,61428,31732,6550072,24,41637
|
||||
16:59:37.503 [ota] installing v0.1.6 -> app1 (1709280 bytes)
|
||||
16:59:37.958 PERF,222262,1.0,160.0,160,614,70,64,94,39,66320,31732,6601580,24,42322
|
||||
16:59:38.063 [222356][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:38.955 PERF,223262,0.0,0.0,0,0,0,93,94,94,66320,31732,6601580,24,41525
|
||||
16:59:39.956 PERF,224262,0.0,0.0,0,0,0,92,96,95,66320,31732,6601580,24,41510
|
||||
16:59:40.963 [225251][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #26 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1105 fail=0]
|
||||
16:59:41.250 [ota] 0%
|
||||
16:59:41.969 PERF,226271,0.0,0.0,0,0,0,95,43,26,59376,31732,6544660,5,331969
|
||||
16:59:42.972 PERF,227278,0.0,0.0,0,0,0,96,37,28,59376,31732,6542356,4,747276
|
||||
16:59:43.098 [227385][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:43.994 PERF,228297,0.0,0.0,0,0,0,91,37,29,59376,31732,6544768,6,373448
|
||||
16:59:44.956 PERF,229262,0.0,0.0,0,0,0,96,39,31,59376,31732,6556888,6,291250
|
||||
16:59:45.138 [ota] 10%
|
||||
16:59:45.956 PERF,230262,0.0,0.0,0,0,0,82,32,23,59376,31732,6556876,5,331968
|
||||
16:59:46.683 [230982][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #51 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1131 fail=0]
|
||||
16:59:46.990 PERF,231295,0.0,0.0,0,0,0,93,33,27,59376,31732,6542384,4,331968
|
||||
16:59:47.973 PERF,232283,0.0,0.0,0,0,0,85,37,29,59376,31732,6544788,6,331969
|
||||
16:59:48.110 [232411][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:48.743 [ota] 20%
|
||||
16:59:48.954 PERF,233264,0.0,0.0,0,0,0,94,35,27,59376,31732,6544804,4,331969
|
||||
16:59:49.952 PERF,234262,0.0,0.0,0,0,0,95,39,31,59376,31732,6547224,6,331969
|
||||
16:59:50.965 PERF,235274,0.0,0.0,0,0,0,93,36,28,59376,31732,6547216,4,331967
|
||||
16:59:51.952 PERF,236262,0.0,0.0,0,0,0,95,33,25,59376,31732,6552048,4,331969
|
||||
16:59:52.227 [236529][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #76 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1157 fail=0]
|
||||
16:59:52.392 [ota] 30%
|
||||
16:59:52.952 PERF,237262,0.0,0.0,0,0,0,91,33,25,59156,31732,6551976,4,331968
|
||||
16:59:53.123 [237416][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:53.990 PERF,238295,0.0,0.0,0,0,0,96,33,26,59376,31732,6544788,6,331968
|
||||
16:59:54.960 PERF,239269,0.0,0.0,0,0,0,94,44,36,59376,31732,6547188,8,331969
|
||||
16:59:55.957 PERF,240262,0.0,0.0,0,0,0,94,36,30,59376,31732,6556876,7,331968
|
||||
16:59:56.222 [ota] 40%
|
||||
16:59:56.979 PERF,241286,0.0,0.0,0,0,0,95,33,25,59376,31732,6542304,5,331968
|
||||
16:59:57.960 PERF,242264,0.0,0.0,0,0,0,95,44,34,59376,31732,6547100,7,332029
|
||||
16:59:58.020 [242287][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #101 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1183 fail=0]
|
||||
16:59:58.156 [242459][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
16:59:58.986 PERF,243293,0.0,0.0,0,0,0,94,32,24,59376,31732,6544660,4,331968
|
||||
17:00:00.068 PERF,244262,0.0,0.0,0,0,0,0,34,26,59376,31732,6549452,5,331802
|
||||
17:00:00.069 [ota] 50%
|
||||
17:00:00.988 PERF,245297,0.0,0.0,0,0,0,94,35,27,59376,31732,6542348,6,331968
|
||||
17:00:01.958 PERF,246268,0.0,0.0,0,0,0,97,34,26,59376,31732,6542388,6,290838
|
||||
17:00:02.984 PERF,247289,0.0,0.0,0,0,0,95,37,29,59376,31732,6547224,4,331969
|
||||
17:00:03.186 [247487][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:00:03.585 [247886][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #126 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1210 fail=0]
|
||||
17:00:03.876 [ota] 60%
|
||||
17:00:03.953 PERF,248262,0.0,0.0,0,0,0,94,35,29,59376,31732,6556876,7,331968
|
||||
17:00:04.948
|
||||
17:00:05.956 PERF,250262,0.0,0.0,0,0,0,94,37,28,59376,31732,6556888,7,290482
|
||||
17:00:06.958 PERF,251262,0.0,0.0,0,0,0,95,39,30,59376,31732,6556892,6,290844
|
||||
17:00:07.248 [ota] 70%
|
||||
17:00:07.956 PERF,252262,0.0,0.0,0,0,0,90,39,29,59376,31732,6556876,6,290471
|
||||
17:00:08.233 [252497][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:00:08.953 PERF,253262,0.0,0.0,0,0,0,93,35,26,59376,31732,6556876,4,331971
|
||||
17:00:09.128 [253396][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #151 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1236 fail=0]
|
||||
17:00:10.835 PERF,254262,0.0,0.0,0,0,0,0,38,30,59376,31732,6556876,6,291034
|
||||
17:00:10.836 [ota] 80%
|
||||
17:00:10.956 PERF,255262,0.0,0.0,0,0,0,95,38,28,59376,31732,6556876,7,291116
|
||||
17:00:11.951 PERF,256262,0.0,0.0,0,0,0,86,37,29,59376,31732,6556876,6,290473
|
||||
17:00:12.948
|
||||
17:00:13.226 [257521][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:00:13.949
|
||||
17:00:14.257 [ota] 90%
|
||||
17:00:14.616 [258876][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #176 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1262 fail=0]
|
||||
17:00:14.952 PERF,259262,0.0,0.0,0,0,0,95,39,33,59376,31732,6547200,6,290474
|
||||
17:00:15.955 PERF,260262,0.0,0.0,0,0,0,94,38,29,59376,31732,6544784,5,290836
|
||||
17:00:16.955 PERF,261262,0.0,0.0,0,0,0,95,39,30,59376,31732,6556888,7,290894
|
||||
17:00:17.623 [ota] 100%
|
||||
17:00:17.956 PERF,262262,0.0,0.0,0,0,0,95,53,17,66068,31732,6601536,10,373467
|
||||
17:00:18.049 [ota] verified and installed v0.1.6. Rebooting in 3 s; it confirms itself after 30 s of uptime.
|
||||
17:00:18.234 [262527][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v249 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:00:18.958 PERF,263262,1.0,148.0,148,614,65,65,91,72,66320,31732,6601580,22,124588
|
||||
17:00:20.072 PERF,264262,0.0,0.0,0,0,0,0,96,94,66320,31732,6601580,24,41564
|
||||
17:00:20.095 [264372][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #201 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=1288 fail=0]
|
||||
17:00:20.949
|
||||
17:00:21.051 [265359][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
|
||||
@@ -0,0 +1,87 @@
|
||||
17:46:18.747 >>> perf on 1
|
||||
17:46:18.831 [ 23256][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] [perf] periodic every 1 s (columns: ts,fps,avg_ms,max_ms,kpx,flush_ms/s,lv_idle,idle0,idle1,int_free,int_largest,psram,vsync/s,vsync_gap_max_us)
|
||||
17:46:19.228 [ 60516][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
17:46:19.828 PERF,61113,0.0,0.0,0,0,0,100,96,95,63268,31732,4891400,24,41576
|
||||
17:46:19.941 [ 61220][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #19 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=289 fail=0]
|
||||
17:46:21.826 PERF,62113,0.0,0.0,0,0,0,99,95,96,63268,31732,4891400,24,41496
|
||||
17:46:21.830 PERF,63113,0.0,0.0,0,0,0,100,96,96,63268,31732,4891400,24,41498
|
||||
17:46:22.054 [ 63336][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:22.827 PERF,64113,0.0,0.0,0,0,0,100,95,96,63268,31732,4891400,24,41497
|
||||
17:46:22.827 >>> wifi status
|
||||
17:46:22.850 [wifi] connected to 'ArtServis', IP 10.0.10.104, RSSI -53 dBm, channel 1
|
||||
17:46:22.851 [wifi] saved network: ArtServis
|
||||
17:46:22.853 [wifi] ESP-NOW ready, sent 303, failed 0
|
||||
17:46:23.826 PERF,65113,0.0,0.0,0,0,0,100,96,96,63268,31732,4891400,24,41510
|
||||
17:46:24.256 [ 65543][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
17:46:24.826 PERF,66113,0.0,0.0,0,0,0,100,96,95,63268,31732,4891400,24,41500
|
||||
17:46:25.033 >>> ota install force
|
||||
17:46:25.067 [ota] working - console and screen values pause until done
|
||||
17:46:25.226 [ 66500][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #44 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=315 fail=0]
|
||||
17:46:26.585 PERF,67113,0.0,0.0,0,0,0,99,92,50,57880,31732,4839564,24,41604
|
||||
17:46:26.588 [ota] installing v0.1.6 -> app1 (1709280 bytes)
|
||||
17:46:26.831 PERF,68113,1.0,142.0,142,614,67,100,95,18,62772,31732,4888752,24,41569
|
||||
17:46:27.067 [ 68349][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:28.831 PERF,70113,0.0,0.0,0,0,0,100,96,96,62772,31732,4891200,24,41497
|
||||
17:46:29.827 PERF,71113,0.0,0.0,0,0,0,100,96,83,60124,31732,4831640,25,41598
|
||||
17:46:30.304 [ota] 0%
|
||||
17:46:30.507 [ 71784][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #69 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=341 fail=0]
|
||||
17:46:30.826 PERF,72113,0.0,0.0,0,0,0,100,91,25,55828,31732,4836836,24,41504
|
||||
17:46:31.826 PERF,73113,0.0,0.0,0,0,0,100,92,30,55828,31732,4836836,24,41496
|
||||
17:46:32.083 [ 73365][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:33.728 PERF,74113,0.0,0.0,0,0,0,99,91,30,55828,31732,4834420,24,41515
|
||||
17:46:33.728 [ota] 10%
|
||||
17:46:33.826 PERF,75113,0.0,0.0,0,0,0,99,93,30,55828,31732,4834420,24,41496
|
||||
17:46:34.824
|
||||
17:46:35.801 [ 77080][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #94 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=367 fail=0]
|
||||
17:46:36.825 PERF,77113,0.0,0.0,0,0,0,99,91,33,55828,31732,4846500,24,41499
|
||||
17:46:36.827
|
||||
17:46:37.016 [ota] 20%
|
||||
17:46:37.113 [ 78386][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:37.828 PERF,79113,0.0,0.0,0,0,0,100,91,29,55828,31732,4834420,24,41497
|
||||
17:46:38.831 PERF,80113,0.0,0.0,0,0,0,100,92,29,55828,31732,4834420,24,41500
|
||||
17:46:40.443 PERF,81113,0.0,0.0,0,0,0,99,92,37,55828,31732,4836836,25,41503
|
||||
17:46:40.444 [ota] 30%
|
||||
17:46:40.827 PERF,82113,0.0,0.0,0,0,0,100,92,28,55828,31732,4832004,24,41525
|
||||
17:46:41.090 [ 82368][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #119 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=393 fail=0]
|
||||
17:46:41.826 PERF,83113,0.0,0.0,0,0,0,100,91,29,55828,31732,4846500,24,41539
|
||||
17:46:42.122 [ 83404][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:42.826 PERF,84113,0.0,0.0,0,0,0,100,91,30,55828,31732,4846500,24,41497
|
||||
17:46:43.786 [ota] 40%
|
||||
17:46:44.827 PERF,85113,0.0,0.0,0,0,0,99,92,29,55828,31732,4846500,24,41611
|
||||
17:46:44.829 PERF,86113,0.0,0.0,0,0,0,100,92,30,55828,31732,4846500,24,41565
|
||||
17:46:46.379 PERF,87113,0.0,0.0,0,0,0,99,92,32,55620,31732,4841636,24,41560
|
||||
17:46:46.396 [ 87657][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #144 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=419 fail=0]
|
||||
17:46:47.143 [ 88424][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:47.181 [ota] 50%
|
||||
17:46:47.826 PERF,89113,0.0,0.0,0,0,0,100,91,27,55828,31732,4834420,24,41697
|
||||
17:46:48.829 PERF,90113,0.0,0.0,0,0,0,99,92,30,55828,31732,4836836,24,41498
|
||||
17:46:49.827 PERF,91113,0.0,0.0,0,0,0,100,92,27,55828,31732,4834420,25,41507
|
||||
17:46:50.527 [ota] 60%
|
||||
17:46:50.830 PERF,92113,0.0,0.0,0,0,0,100,92,30,55828,31732,4834420,24,41497
|
||||
17:46:51.669 [ 92948][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #169 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=445 fail=0]
|
||||
17:46:52.164 PERF,93113,0.0,0.0,0,0,0,99,91,32,55828,31732,4846500,24,41579
|
||||
17:46:52.171 [ 93445][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:52.825 55828,31732,4841668,24,41499
|
||||
17:46:53.782 [ota] 70%
|
||||
17:46:54.827 PERF,95113,0.0,0.0,0,0,0,99,92,30,55828,31732,4832004,24,41634
|
||||
17:46:55.830 PERF,97113,0.0,0.0,0,0,0,0,92,37,55828,31732,4844084,24,41496
|
||||
17:46:56.801 [ota] 80%
|
||||
17:46:56.831 PERF,98113,0.0,0.0,0,0,0,99,92,29,55828,31732,4829588,24,41505
|
||||
17:46:56.967 [ 98241][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #194 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=471 fail=0]
|
||||
17:46:57.186 [ 98467][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:46:57.826 PERF,99113,0.0,0.0,0,0,0,0,90,32,55828,31732,4846500,24,41528
|
||||
17:46:58.828 PERF,100113,0.0,0.0,0,0,0,100,91,34,55828,31732,4829492,24,41522
|
||||
17:46:59.825 P
|
||||
17:46:59.903 [ota] 90%
|
||||
17:47:01.025 P
|
||||
17:47:01.826 ERF,102113,0.0,0.0,0,0,0,99,93,32,55828,31732,4846500,24,41548
|
||||
17:47:01.828 PERF,103113,0.0,0.0,0,0,0,100,92,38,55828,31732,4846500,24,41715
|
||||
17:47:02.196 [103478][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:47:02.273 [103552][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #219 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=498 fail=0]
|
||||
17:47:02.830 PERF,104113,0.0,0.0,0,0,0,99,89,30,55828,31732,4834412,24,41610
|
||||
17:47:03.055 [ota] 100%
|
||||
17:47:03.458 [ota] verified and installed v0.1.6. Rebooting in 3 s; it confirms itself after 30 s of uptime.
|
||||
17:47:03.827 PERF,105113,1.0,128.0,128,614,62,73,95,28,62772,31732,4891200,24,41616
|
||||
17:47:04.828 PERF,106113,0.0,0.0,0,0,0,99,96,96,62772,31732,4891200,24,41496
|
||||
17:47:05.831 PERF,107113,0.0,0.0,0,0,0,100,96,96,62552,31732,4891200,24,41496
|
||||
17:47:06.457 [107742][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
|
||||
@@ -0,0 +1,88 @@
|
||||
17:55:22.250 [ 23254][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:23.071 >>> perf on 1
|
||||
17:55:23.091 [perf] periodic every 1 s (columns: ts,fps,avg_ms,max_ms,kpx,flush_ms/s,lv_idle,idle0,idle1,int_free,int_largest,psram,vsync/s,vsync_gap_max_us)
|
||||
17:55:23.260 [ 24258][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #100 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=107 fail=0]
|
||||
17:55:24.081 PERF,25097,0.0,0.0,0,0,0,100,95,98,63452,31732,4891400,23,41498
|
||||
17:55:24.092 [ 25098][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
17:55:25.084 PERF,26097,0.0,0.0,0,0,0,0,96,97,63452,31732,4891400,24,41496
|
||||
17:55:26.082 PERF,27097,0.0,0.0,0,0,0,100,96,97,63452,31732,4891400,24,41498
|
||||
17:55:27.085 PERF,28097,0.0,0.0,0,0,0,100,96,97,63452,31732,4891400,24,41496
|
||||
17:55:27.085 >>> wifi status
|
||||
17:55:27.094 [wifi] connected to 'ArtServis', IP 10.0.10.104, RSSI -51 dBm, channel 1
|
||||
17:55:27.096 [wifi] saved network: ArtServis
|
||||
17:55:27.100 [wifi] ESP-NOW ready, sent 125, failed 0
|
||||
17:55:27.252 [ 28264][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:28.080 PERF,29097,0.0,0.0,0,0,0,100,95,98,63452,31732,4891400,24,41497
|
||||
17:55:28.541 [ 29538][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #125 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=133 fail=0]
|
||||
17:55:29.085 PERF,30097,0.0,0.0,0,0,0,100,95,97,63452,31732,4891400,24,41519
|
||||
17:55:29.094 [ 30106][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
|
||||
17:55:29.094 >>> ota install force
|
||||
17:55:29.200 [ota] working - console and screen values pause until done
|
||||
17:55:30.083 PERF,31097,0.0,0.0,0,0,0,100,93,38,58044,31732,4831368,24,41563
|
||||
17:55:30.673 [ota] installing v0.1.6 -> app1 (1709280 bytes)
|
||||
17:55:31.081 PERF,32097,1.0,118.0,118,614,63,100,95,18,60296,31732,4831628,24,41523
|
||||
17:55:31.526 [ota] 0%
|
||||
17:55:32.085 PERF,33097,2.0,7.0,10,15,2,100,93,29,56000,31732,4836832,24,41504
|
||||
17:55:32.269 [ 33278][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:33.083 PERF,34097,3.0,12.0,12,27,9,98,91,36,56000,31732,4832004,25,41629
|
||||
17:55:33.825 [ 34824][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #150 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=159 fail=0]
|
||||
17:55:34.084 PERF,35097,2.0,11.0,12,27,6,98,91,34,56000,31732,4844072,24,41500
|
||||
17:55:35.085 PERF,36097,3.0,10.0,10,27,8,98,93,35,56000,31732,4844072,24,41590
|
||||
17:55:35.124 [ota] 10%
|
||||
17:55:36.085 PERF,37097,3.0,12.0,12,27,9,98,93,33,56000,31732,4846492,24,41499
|
||||
17:55:37.083 PERF,38097,3.0,11.3,12,27,7,96,92,32,56000,31732,4846492,24,41501
|
||||
17:55:37.292 [ 38299][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:38.082 PERF,39097,3.0,12.0,12,27,9,95,91,34,56000,31732,4846492,24,41499
|
||||
17:55:38.608 [ota] 20%
|
||||
17:55:39.079 PERF,461
|
||||
17:55:39.109 [ 40114][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #175 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=185 fail=0]
|
||||
17:55:40.082 PERF,41097,3.0,10.0,10,28,7,98,91,32,56000,31732,4844084,24,41609
|
||||
17:55:41.083 PERF,42097,3.0,12.0,12,28,9,98,92,29,56000,31732,4844076,24,41516
|
||||
17:55:42.082 PERF,43097,2.0,11.0,12,28,5,97,92,29,56000,31732,4834412,24,41527
|
||||
17:55:42.091 [ota] 30%
|
||||
17:55:42.304 [ 43315][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:43.081 PERF,44097,3.0,12.0,12,28,9,96,91,35,56000,31732,4836824,25,41496
|
||||
17:55:44.083 PERF,45097,3.0,12.6,14,28,8,95,93,33,56000,31732,4841672,24,41513
|
||||
17:55:44.403 [ 45411][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #200 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=211 fail=0]
|
||||
17:55:45.085 PERF,46097,3.0,11.3,12,28,9,95,90,31,56000,31732,4834404,24,41599
|
||||
17:55:45.584 [ota] 40%
|
||||
17:55:46.084 PERF,47097,3.0,11.3,12,28,8,98,93,34,54364,31732,4844072,24,41767
|
||||
17:55:47.082 PERF,48097,3.0,10.6,12,28,7,98,93,31,56000,31732,4846492,24,41594
|
||||
17:55:47.339 [ 48341][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:48.085 PERF,49097,3.0,10.6,12,28,9,98,92,31,56000,31732,4846492,24,41563
|
||||
17:55:49.028 [ota] 50%
|
||||
17:55:49.083 PERF,50097,3.0,11.3,12,28,8,98,93,29,56000,31732,4846492,24,41499
|
||||
17:55:49.699 [ 50696][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #225 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=237 fail=0]
|
||||
17:55:50.081 PERF,51097,2.0,12.0,12,28,6,98,91,31,56000,31732,4846504,24,41634
|
||||
17:55:51.081 PERF,52097,3.0,10.6,12,28,7,96,93,33,56000,31732,4846504,24,41500
|
||||
17:55:52.083 PERF,53097,3.0,11.3,12,28,8,0,92,31,56000,31732,4846504,24,41611
|
||||
17:55:52.348 [ 53354][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:52.655 [ota] 60%
|
||||
17:55:53.081 PERF,54097,3.0,11.3,12,28,8,96,91,33,56000,31732,4834408,24,41549
|
||||
17:55:54.081 PERF,55097,3.0,12.0,12,28,9,95,92,37,56000,31732,4846492,24,41607
|
||||
17:55:54.982 [ 55989][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #250 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=263 fail=0]
|
||||
17:55:55.085 PERF,56097,3.0,11.3,12,28,8,99,90,35,56000,31732,4844076,24,41505
|
||||
17:55:55.876 [ota] 70%
|
||||
17:55:56.085 PERF,57097,3.0,11.3,12,28,8,96,92,29,56000,31732,4834416,24,41516
|
||||
17:55:57.083 PERF,58097,3.0,11.3,12,28,8,95,93,35,56000,31732,4836820,24,41543
|
||||
17:55:57.375 [ 58384][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:55:58.086 PERF,59097,3.0,11.3,12,28,9,98,91,31,56000,31732,4831984,24,41498
|
||||
17:55:59.082 PERF,60097,3.0,10.6,12,28,6,97,92,35,56000,31732,4846492,24,41570
|
||||
17:55:59.236 [ota] 80%
|
||||
17:56:00.079 6
|
||||
17:56:00.272 [ 61279][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #19 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=289 fail=0]
|
||||
17:56:01.085 PERF,62097,3.0,11.3,12,28,8,96,91,36,56000,31732,4841656,24,41652
|
||||
17:56:02.085 PERF,63097,3.0,11.3,12,28,9,98,92,35,56000,31732,4829588,24,41566
|
||||
17:56:02.394 [ 63398][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:56:02.474 [ota] 90%
|
||||
17:56:03.082 PERF,64097,3.0,11.3,12,28,9,98,91,32,56000,31732,4829576,24,41506
|
||||
17:56:04.079 7
|
||||
17:56:05.082 PERF,66097,3.0,12.0,12,28,7,96,92,35,56000,31732,4846492,24,41499
|
||||
17:56:05.568 [ 66574][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #44 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=315 fail=0]
|
||||
17:56:05.644 [ota] 100%
|
||||
17:56:06.045 [ota] verified and installed v0.1.6. Rebooting in 3 s; it confirms itself after 30 s of uptime.
|
||||
17:56:06.081 PERF,67097,3.0,12.0,12,28,29,0,92,14,62964,31732,4891196,24,41503
|
||||
17:56:07.082 PERF,68097,1.0,112.0,112,614,42,100,96,90,62964,31732,4891200,24,41504
|
||||
17:56:07.410 [ 68420][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
|
||||
17:56:08.082 PERF,69097,0.0,0.0,0,0,0,100,95,98,62964,31732,4891200,24,41498
|
||||
17:56:09.050 [ 70065][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-23
|
||||
|
||||
# Route A probe — first live run (2026-09-23)
|
||||
|
||||
First execution of the [[obd-diagnostic-polling]] Route A test: the `diag` console probe on Controller A, engine idling, Launch unplugged, tapped PT-CAN. Two sessions, raw console logs (CANRAW + CANTX + diag output interleaved):
|
||||
First execution of the [[obd-diagnostic-polling]] Route A test: the `diag` console probe on Main CTRL, engine idling, Launch unplugged, tapped PT-CAN. Two sessions, raw console logs (CANRAW + CANTX + diag output interleaved):
|
||||
|
||||
- `raw/diag-20260923-111737.log` — `pids`, `pid 0C`, `pid 05`, `pid 0B`, `pid 70`, `vin`, `ecu`, `status`
|
||||
- `raw/diag-20260923-111851.log` — `pid 10`, `pid 04`, `pid 0F`, `pid 0D`, `pid 1C`, `pid 01`, `pid 21`, `status`
|
||||
|
||||
@@ -20,7 +20,7 @@ raw: raw/ESP32-S3-Touch-LCD-5-details-intro.jpg
|
||||
|
||||
## Relevance
|
||||
|
||||
- Confirms the terminal-block signal set and that the RS485 pair is the only UART1 exit → `(sibling: 1.3 wiki → controller-link)` open question #1 on how the wire to Controller B is really made
|
||||
- Confirms the terminal-block signal set and that the RS485 pair is the only UART1 exit → `(sibling: 1.3 wiki → controller-link)` open question #1 on how the wire to Inst. Cluster is really made
|
||||
- Confirms one shared termination switch for CAN and RS485 — keep it **OFF** when tapping the vehicle CAN bus, which also leaves the RS485 link unterminated on this end
|
||||
- Strapping pads IO0/IO3/IO4/IO46 exist as solder points — the only bare GPIO access on the board, and all four are already committed (G3, VSYNC, CTP_IRQ, HSYNC)
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
type: source
|
||||
tags: [hardware, waveshare, schematic, power, i2c, verified-source]
|
||||
updated: 2026-09-26
|
||||
---
|
||||
|
||||
# Waveshare ESP32-S3-Touch-LCD-5 schematic (`ESP32-S3-Touch-LCD-5-Sch.pdf`)
|
||||
|
||||
Raw: `raw/ESP32-S3-Touch-LCD-5-Sch.pdf` (3 sheets, V1.2), re-downloaded 2026-09-26 from `https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-5/ESP32-S3-Touch-LCD-5-Sch.pdf`. The LCD-5 and LCD-5B share this sheet (the B is the 1024×600 panel variant). Its net list was read once in the 2026-09-21 session and then lost; this copy is the one to keep. Read for the **VOUT question** (2026-09-26); the rest of the sheet is only indexed here.
|
||||
|
||||
## VOUT / I2C_VCC selection — answered
|
||||
|
||||
- Terminal block `P1` pin 3 (silkscreen **VOUT**) is net **`I2C_VCC`** (sheet 1, the 16-way header: `VIN GND I2C_VCC GND D_SDA D_SCL CANL CANH RS485_TX- RS485_TX+ DOUT0 DOUT1 DI_COM GND DIN0 DIN1`).
|
||||
- `I2C_VCC` is chosen by **`H8`, a three-pad solder jumper**, not a resistor: pad 1 = `3V3`, pad 2 (centre) = `I2C_VCC`, pad 3 = `5V`. Sheet note: *"The default paste is 3V3"* — the factory solder bridge joins pads 1–2.
|
||||
- **To get 5 V on VOUT: remove the bridge between pads 1–2 and bridge pads 2–3.** Never leave all three joined (it shorts the 3.3 V regulator output to the 5 V rail).
|
||||
- The external SDA/SCL are **level-shifted** through `M1` (NDC7002N dual MOSFET) with 4.7 kΩ pull-ups `R101`/`R102` to `I2C_VCC` on the terminal side and `R99`/`R100` to `3V3` on the ESP side — so moving `H8` to 5 V also makes the terminal-block I2C lines 5 V logic, safely. This is what the Waveshare wiki means by "sets the supply voltage and I/O level for I2C devices".
|
||||
- `I2C_VCC` also appears at header `H8`'s neighbour `H1` (touch-panel FPC) area only as a label; the touch panel itself runs on `3V3`.
|
||||
|
||||
## 5 V rail budget (for whatever hangs on VOUT)
|
||||
|
||||
- `VIN` (7–36 V terminal) → `D17` 1N5822 reverse-protection Schottky + `D3` SMAJ36CA TVS → `U1` **SY8293** synchronous buck → **`DC_5V`**, `L3` 4.7 µH 8 A, note *"Run the line at current 2A"*. `DC_5V` feeds the 5 V rail (and VBUS via `Q4` AO3401 ideal-diode-style switch).
|
||||
- Sheet note: *"The screen itself consumes close to 550 mA"*; the wiki's whole-board figure is ~450 mA @ 5 V. Realistic headroom on VOUT@5 V from the 12 V input: **roughly 1 A**, comfortably enough for Inst. Cluster (~150–200 mA) `(unverified estimate; the regulator is rated for 2 A total)`.
|
||||
- On USB-only power the 5 V rail is the host's 500 mA — do not load VOUT then.
|
||||
- Caveat for the vehicle: the 36 V TVS is the only transient clamp; the ISO 7637 concern in [[open-questions]] #6 stands.
|
||||
|
||||
## Other confirmations (index only)
|
||||
|
||||
- CAN: `CANTX` = IO15, `CANRX` = IO16 (matches `(repo)`); RS485: `RS485_TXD` = IO44, `RS485_RXD` = IO43 (matches [[esp32-s3-touch-lcd-5-intro-photo]]).
|
||||
- SD card on `MOSI` IO11 / `SCK` IO12 / `MISO` IO13, `SDCS` on CH422G `EXIO4` — the pin facts needed for the SD "black box" idea in [[obd-diagnostic-polling]].
|
||||
- Isolated outputs `DO0`/`DO1` via PC817 optocouplers driven from `OD0`/`OD1` (CH422G), inputs `DI0`/`DI1` via PC814.
|
||||
- Input detail (read 2026-09-29 for [[diff-lock-inputs]]): `DINx` → PC814 LED → 3.6 kΩ 1206 → `DI_COM`, 100 nF across. `DI_COM` is also fed from 5 V via D4 1N5822 + R79 220 Ω, for dry contacts. The phototransistor pulls `DI0`/`DI1` (4.7 kΩ to 3V3) low. The net table maps `DI0` = **EXIO0** and `DI1` = **EXIO5**. The rest of the bank: EXIO1 `CTP_RST`, EXIO2 `DISP`, EXIO3 `LCD_RST`, EXIO4 `SDCS`.
|
||||
- Strapping pads `R87–R94` (IO0/IO3/IO45/IO46).
|
||||
|
||||
## Related
|
||||
|
||||
[[esp32-s3-touch-lcd-5b]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]] · [[esp32-s3-touch-lcd-5-intro-photo]] · [[dual-controller-architecture]]
|
||||
@@ -23,7 +23,7 @@ Official product documentation for the ESP32-S3-Touch-LCD-5 family. Covers four
|
||||
- **120 Ω termination resistor switch, OFF by default** — correct setting for tapping into an existing, already-terminated vehicle bus; leave it off.
|
||||
|
||||
**Other onboard peripherals:**
|
||||
- RS485 via SP3485, automatic TX/RX direction switching (this is the terminal block the firmware uses for UART1 → Controller B `(repo)`).
|
||||
- RS485 via SP3485, automatic TX/RX direction switching (this is the terminal block the firmware uses for UART1 → Inst. Cluster `(repo)`).
|
||||
- Optocoupler-isolated digital I/O: inputs 5–36 V (dry/wet contact, NPN or PNP), open-drain outputs sinking up to 450 mA/channel.
|
||||
- PCF85063 RTC with CR927 coin-cell holder.
|
||||
- TF card slot (SD_CS must be driven via CH422G EXIO4).
|
||||
|
||||
@@ -6,7 +6,7 @@ updated: 2026-09-23
|
||||
|
||||
# Launch live-data capture — rail pressure decoded (2026-09-23)
|
||||
|
||||
The capture-with-Launch session that [[obd-diagnostic-polling]] had been pointing at since July, finally run. Engine idling, our read-only logger (`tools/serial_logger.py`) on Controller A's USB recording the full `CANRAW` stream while the Launch polled the DDE; then the user selected **Rail Pressure (actual)** and blipped to 2500 rpm for a second calibration point. Raw: `raw/serial-COM10-20260923-163511.log` (~13 MB, both halves of every exchange).
|
||||
The capture-with-Launch session that [[obd-diagnostic-polling]] had been pointing at since July, finally run. Engine idling, our read-only logger (`tools/serial_logger.py`) on Main CTRL's USB recording the full `CANRAW` stream while the Launch polled the DDE; then the user selected **Rail Pressure (actual)** and blipped to 2500 rpm for a second calibration point. Raw: `raw/serial-COM10-20260923-163511.log` (~13 MB, both halves of every exchange).
|
||||
|
||||
## Headline: rail pressure actual is decoded and VERIFIED
|
||||
|
||||
@@ -41,7 +41,7 @@ This is the key operational finding: **rail pressure is served in the DDE's defa
|
||||
- **The method generalises**: any value the Launch will display can be decoded the same way — capture the `2C`/`6C` pair while its screen shows the number, calibrate scale against the display at two points. Boost, MAF, injection quantity, EGTs are each one session away. See [[obd-diagnostic-polling]] "Beyond the probe".
|
||||
- **Self-poll is feasible without any secret.** To read rail pressure ourselves: send the one-time define `2C 10 15 E0`, then poll `2C 10 00 DF` → parse `6C 10 HHLL`. **No `10` session, no `27` security, no `3E` tester-present required** (proven above). The only barriers are our own choices, not the ECU's — see the two below.
|
||||
- **It is still a transmit-on-the-bus action, and `2C` is not strictly read-only** (it writes a definition into the ECU's dynamic-identifier table — harmless, but a state change). So it stays outside the current probe whitelist by policy.
|
||||
- **Intended home (design decision, 2026-09-23):** any active polling belongs behind a **password-protected "Diagnostics" screen** on Controller A — authorized-technician gate — never a background/automatic poller and never while a scan tool is connected. Records [[open-questions]]; not built yet.
|
||||
- **Intended home (design decision, 2026-09-23):** any active polling belongs behind a **password-protected "Diagnostics" screen** on Main CTRL — authorized-technician gate — never a background/automatic poller and never while a scan tool is connected. Records [[open-questions]]; not built yet.
|
||||
- No EGS traffic (`0x618`) — only the DDE (`0x612`) answered; the Launch was on an engine page.
|
||||
|
||||
## Related
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
type: source
|
||||
tags: [display, performance, lvgl, psram, baseline, verified]
|
||||
updated: 2026-09-27
|
||||
---
|
||||
|
||||
# Display performance baseline session (2026-09-27)
|
||||
|
||||
Raw: `raw/perf-20260927-164620.log` — first run of `tools/perf_session.py COM14` on firmware `dev` = v0.1.6 + the new `perf` monitor `(repo)`. Bench, both controllers on laptop USB, no car, Wi-Fi joined to the home AP during the run. 2 min 30 s, `PERF,` line every second, no `#` markers typed — the timeline below is reconstructed from the board's own log lines (screen "built" messages, CONFIG frames, `[ota]`/`[wifi]` output). Columns: fps = frames LVGL rendered per second; avg/max = ms per frame (render + copy into the PSRAM framebuffer); kpx = pixels redrawn per frame; flush = ms per second spent copying into the framebuffer; LVGL idle %, core 0 / core 1 idle %.
|
||||
|
||||
## Timeline and numbers (verified)
|
||||
|
||||
| Time | What was happening | fps | ms/frame avg / max | kpx/frame | flush ms/s | LVGL idle | core 1 idle |
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| 16:46:22 | Driveline, idle, bench data constant | 9.5–9.8 | 30 / 32 | 39 | 51 | 67 % | 66 % |
|
||||
| 16:46:24 | swipe → Settings (full-screen redraw) | 5.6 | 46 / **148** | 131 | 85 | 30 % | 55 % |
|
||||
| 16:46:25 | Settings, static | 0 | – | 0 | 0 | 92 % | 94 % |
|
||||
| 16:46:27–37 | Wi-Fi page: scan, network list drawn | 1.7–5.9 | 40–78 / **142–104** | 150–334 | 63–166 | 36–94 % | 56–87 % |
|
||||
| 16:46:39–42 | joining the AP (spinner) | 24–49 | 5–11 / 134 | <1–26 | 12–82 | 56–70 % | 64–75 % |
|
||||
| 16:46:45–47 | `ota check` (TLS in the loop task) | 3–5 | 8–11 / 34 | 22–32 | 8–24 | 91 % | **25 %** |
|
||||
| 16:46:53–54 | swipe → Gauge Tuning (build + redraw) | 7–8 | 39–71 / **116–312** | 110–121 | 97–100 | 29–48 % | 35–64 % |
|
||||
| 16:47:03–07 | trim −/+ held (hold-repeat, tiny redraws) | 20–29 | 5 / 10–12 | 7–9 | 16–30 | 68–85 % | 76–84 % |
|
||||
| 16:47:10–11 | the deferred NVS save (flash write) | 0–0.9 | – | – | – | 92 % | 93 % |
|
||||
| 16:47:48–57 | Simulation tab: override switches / sliders | 9–23 | 25–29 / 32–36 | 91–99 | **200–261** | **9–19 %** | **25–42 %** |
|
||||
| 16:48:00 | back on Driveline | 9.8 | 30 / 32 | 39 | 51 | 63 % | 64 % |
|
||||
| 16:48:01–04 | Settings again (redraws) | 2.7–6.7 | 47–52 / 142–276 | 106–181 | 57–79 | 45–94 % | 62–80 % |
|
||||
| 16:48:07 → 16:48:49 | `ota install` v0.1.6: **no PERF lines** — the job blocks `loop()` for the whole 41 s download (1.71 MB, ~42 KB/s), then reboot | – | – | – | – | – | – |
|
||||
|
||||
Heap never moved: internal 66.1–67.5 KB free, largest block 31.7 KB throughout; PSRAM 6.60 MB free. No leak across screen changes, scan, OTA check.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The Driveline screen redraws ~10 times a second with nothing changing** — 39 kpx and 30 ms per frame, 51 ms/s of PSRAM copying, a third of core 1, permanently. Something in its `tick()` invalidates every 100 ms even when every value is constant `(repo, to be found)`. This is the largest steady PSRAM writer in normal driving and therefore the biggest steady contributor to the dots' opportunity window. Cheapest win on the whole page.
|
||||
2. **Screen changes cost 140–330 ms in one frame** (full 614 kpx redraw ≈ 2–4 Mpx/s render+copy). That single frame holds the LVGL lock — this *is* the swipe lag. Cannot be fixed by bounce buffers; only by drawing less (or faster).
|
||||
3. **The Simulation tab is the heaviest normal-use load**: ~95 kpx per frame at ~20 fps → 2 Mpx/s, 26 % of the time copying into PSRAM, LVGL idle down to 9 %, core 1 idle 25 %. Bounce-buffer refill will compete with exactly this; step 2 must be measured on this tab, not on an idle screen.
|
||||
4. **Wi-Fi scan window**: core 1 idle 55–60 %, frames to 148 ms, PSRAM traffic from the list redraw plus the radio's own buffers — the scenario that produces dots. No marker was typed, so whether dots showed this time is not in the log (ask the user).
|
||||
5. **A flash write is invisible to these counters** (16:47:10 save: nothing in the numbers). The flicker happens on the panel's DMA side, not in LVGL. The monitor needs a **panel refresh counter** (vsync events per second; a DMA restart drops a frame) to measure flicker and dots directly — otherwise steps 2 and 3 can only be judged by eye.
|
||||
6. **During OTA the monitor is blind** because it ticks from `loop()`, which the OTA job occupies for ~41 s. Needs a timer-driven report (or a tick from the OTA progress callback) before the OTA-with-screen-on work.
|
||||
7. **`ota check` drops core 1 idle to 25 %**: the TLS handshake runs in the loop task on core 1 next to LVGL. Not a display defect, but it explains a stutter at that moment.
|
||||
|
||||
## Consequences for the plan ([[open-questions]] #13)
|
||||
|
||||
- Add to the monitor before step 2: vsync/panel-refresh counter, timer-driven reporting.
|
||||
- Add a step 1b: find and stop the Driveline 10 Hz redraw; re-baseline (expect Driveline to look like static Settings: 0 fps, ~94 % idle).
|
||||
- Judge bounce buffers on the Simulation tab and during a Wi-Fi scan, by the refresh counter, not by fps.
|
||||
|
||||
## Related
|
||||
|
||||
[[open-questions]] · [[esp32-s3-touch-lcd-5b]] · [[ota-updates]]
|
||||
@@ -0,0 +1,60 @@
|
||||
---
|
||||
type: source
|
||||
tags: [display, performance, psram, dma, flicker, ota, verified]
|
||||
updated: 2026-09-27
|
||||
---
|
||||
|
||||
# Perf session with dots on screen, then an OTA (2026-09-27, 16:59–17:00)
|
||||
|
||||
Raw: `raw/perf-20260927-165903.log` — second `tools/perf_session.py COM14` run, firmware `dev` = v0.1.6 + perf monitor with the **panel vsync counter** (step 1b). Bench, USB, Wi-Fi joined. The user started the session **while the screen was showing horizontally aligned small dots and dashes** on the idle Driveline screen, then ran `ota check`, edited trim on Gauge Tuning (deferred NVS save), toggled the Simulation override, and installed v0.1.6 over the air. No `#` markers were typed; the timeline comes from the board's own lines.
|
||||
|
||||
## The two results
|
||||
|
||||
### 1. Dots are NOT dropped panel frames `(verified)`
|
||||
|
||||
| 16:59:05–07, Driveline idle, dots visible (user) | value |
|
||||
|---|---|
|
||||
| frames LVGL rendered | 0–1 per second |
|
||||
| PSRAM copy time | 0–2 ms/s |
|
||||
| LVGL idle / core 0 idle / core 1 idle | 91–93 % / 96 % / 94 % |
|
||||
| **panel refreshes** | **24–25 per second** |
|
||||
| **longest gap between refreshes** | **41.5–41.6 ms = exactly one frame** |
|
||||
|
||||
The RGB panel completed every frame on time while the dots were on screen, with the CPUs idle and nothing being drawn. So the dots are **not** the DMA restart the driver knows about (`RESTART_IN_VSYNC`) — they are **sub-frame data glitches**: the LCD DMA's FIFO runs dry for a handful of pixels while the PSRAM bus is busy elsewhere, the peripheral keeps clocking, wrong pixels go out, the frame still ends on time. That is why they look like short horizontal dashes and why the vsync counter cannot see them. Who was using the PSRAM/flash bus with LVGL idle: Wi-Fi (associated), ESP-NOW every 200 ms, the UART/console tasks, and every **flash cache miss** — on this module the flash and the OPI PSRAM share the SPI0 bus, so instruction fetches from flash steal cycles from the framebuffer DMA `(unverified: bus-sharing detail)`. > [!warning] Correction (same day, after reading the panel library)
|
||||
> **Bounce buffers are already active.** The board header `BOARD_WAVESHARE_ESP32_S3_TOUCH_LCD_5_B.h` sets `ESP_PANEL_BOARD_LCD_RGB_BOUNCE_BUF_SIZE = width × 10` (two 10-line, 20 KB internal buffers) and `ESP_PANEL_BOARD_LCD_RGB_CLK_HZ = 21 MHz`; the `-DESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE=0` flag in `platformio.ini` used a name the library never reads (removed). The wiki's earlier "no bounce buffer, 16 MHz" claims were wrong. 21 MHz over 1368 × 637 clocks per frame = 24.1 Hz — matches the measured vsync rate exactly `(verified)`.
|
||||
>
|
||||
> With bounce buffers in use the dots have a sharper explanation: the DMA streams 10-line chunks from internal SRAM while an interrupt refills the other chunk from the PSRAM framebuffer (a 20 KB copy every ~690 µs, ~29 MB/s). When that refill is late — PSRAM/flash bus busy (Wi-Fi/LWIP buffers live in PSRAM: `CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y`; flash cache misses on either core), or the interrupt delayed — the DMA re-sends **the previous chunk's pixels**, i.e. content from ~10 lines above appears displaced: exactly the text-coloured dashes under each text line in the photo. Frame timing is untouched, so vsync stays perfect. The fix is therefore not "add bounce buffers" but **make the refill never miss**: `CONFIG_LCD_RGB_ISR_IRAM_SAFE` (refill ISR keeps running while flash is busy) and `CONFIG_SPIRAM_XIP_FROM_PSRAM` (code and constants execute from PSRAM, so flash writes no longer stop the world and there is no flash↔PSRAM switching) — both sdkconfig options, i.e. step 3 covers the dots as well as the OTA blanking.
|
||||
|
||||
**Photo evidence** `raw/dots-20260927_170136.jpg` (user, 17:01, Settings screen static, Wi-Fi connected): the dashes sit a few rows *below* each text line and carry **that line's colour** — green under the green SSID, white under white labels. They are the text's own pixels arriving late and being clocked out in the wrong place: a FIFO underrun of a few pixels with the frame timing intact. Exactly the sub-frame glitch the counters cannot see.
|
||||
|
||||
Consequence for measurement: **dots can only be judged by eye** (or a camera); the vsync gap is the instrument for *flicker* and *frame loss*, not for dots.
|
||||
|
||||
### 2. During an OTA the panel loses ~75 % of its frames `(verified)`
|
||||
|
||||
| 16:59:41 → 17:00:17, `ota install` v0.1.6 (1.71 MB, ~42 KB/s) | value |
|
||||
|---|---|
|
||||
| panel refreshes | **4–8 per second** (healthy: 24) |
|
||||
| longest gap | **290–747 ms** (healthy: 41.5) — repeatedly 332 ms ≈ 8 frames |
|
||||
| core 0 / core 1 idle | 33–44 % / 23–31 % |
|
||||
| LVGL rendered frames | 0 (the job owns the loop; nothing is drawn) |
|
||||
| internal free | 59.4 KB (TLS buffers); back to 66 KB after |
|
||||
|
||||
Every flash write disables the cache, the PSRAM framebuffer becomes unreadable, the DMA underruns, the driver restarts at the next vsync — and the next sector write hits again. With ~42 KB/s of writes the panel is dead about three quarters of the time. This is the mechanism behind "the screen goes dark during updates", independent of the backlight: **no on-screen progress bar is possible until flash writes stop blanking the panel** → step 3 (`CONFIG_SPIRAM_XIP_FROM_PSRAM`). Target after step 3: 24 refreshes/s and a 41.5 ms gap throughout `ota install`.
|
||||
|
||||
Reboot after install: gap 373 ms at 17:00:17 (slot switch), 125 ms at 17:00:18 (first full redraw, 614 kpx, 148 ms), back to 41.5 ms at 17:00:20.
|
||||
|
||||
## Other observations
|
||||
|
||||
- `ota check` (16:59:08–10): core 1 idle fell to 25 % (TLS in the loop task), internal free dipped to 61 KB, **no frame lost** (gap 41.8 ms).
|
||||
- Trim edits (16:59:16–18) and the deferred NVS save ~3 s later: **no frame lost** (gap 41.5 ms). A single small NVS write is short enough to hide inside a frame; the old per-tap saves were many of them in a row.
|
||||
- Screen changes are single 116–160 ms frames of 614 kpx, as in the first session — the swipe lag, unaffected by 1b (only idle redraws were removed).
|
||||
- Step 1b confirmed in the wild: idle Driveline windows show 0 fps and 0 ms/s of PSRAM copying.
|
||||
|
||||
## Consequences for [[open-questions]] #13
|
||||
|
||||
- **Step 2 as written (add bounce buffers) is moot** — they are already on. What remains of step 2: the refill's slack can be widened by a lower pixel clock (21 → 18 MHz ≈ 20.7 Hz refresh) or bigger bounce buffers (internal RAM cost); both are fallbacks if step 3 leaves residual dots.
|
||||
- **Step 3 (XIP from PSRAM)** is aimed at the OTA collapse and any flash-write flicker. Success criterion: 24 vsync/s, 41.5 ms gap during `ota install`. Only then does step 4 (progress bar on screen) make sense.
|
||||
|
||||
## Related
|
||||
|
||||
[[perf-baseline-2026-09-27]] · [[open-questions]] · [[esp32-s3-touch-lcd-5b]] · [[ota-updates]]
|
||||
@@ -0,0 +1,43 @@
|
||||
---
|
||||
type: source
|
||||
tags: [display, performance, psram, xip, ota, flicker, verified]
|
||||
updated: 2026-09-27
|
||||
---
|
||||
|
||||
# OTA under XIP-from-PSRAM: the panel keeps every frame (2026-09-27, 17:46)
|
||||
|
||||
Raw: `raw/perf-xip-ota-20260927-174617.log` — scripted session on COM14 (attach without reset, `perf on 1`, `wifi status`, `ota install force`, log until the reboot). Firmware: branch `display-xip` `dev` build = v0.1.6 + perf monitor + **core rebuilt with `CONFIG_SPIRAM_XIP_FROM_PSRAM=y` (`FETCH_INSTRUCTIONS`, `RODATA`) and `CONFIG_LCD_RGB_ISR_IRAM_SAFE=y`** via pioarduino `custom_sdkconfig`. Bench, USB, Wi-Fi joined (RSSI −53 dBm, channel 1). Same test as in [[perf-dots-and-ota-2026-09-27]] an hour earlier on the stock core.
|
||||
|
||||
## Result `(verified)`
|
||||
|
||||
| `ota install force`, v0.1.6, 1.71 MB | stock core (16:59) | XIP core (17:46) |
|
||||
|---|---|---|
|
||||
| panel refreshes per second during the download | **4–8** | **24–25** |
|
||||
| longest gap between refreshes | **290–747 ms** | **41.5–41.7 ms** (one frame) |
|
||||
| download time | ~36 s | ~33 s |
|
||||
| core 1 idle during download | 23–31 % | 25–38 % |
|
||||
| core 0 idle during download | 33–44 % | 89–93 % |
|
||||
| internal free during download | 59.4 KB | 55.8 KB |
|
||||
| PSRAM free (idle, before) | 6.60 MB | **4.89 MB** (code + rodata now resident in PSRAM, ~1.7 MB) |
|
||||
|
||||
Not one dropped frame in 33 s of continuous flash writes. The mechanism in the earlier page — cache disabled for every sector write → framebuffer refill starves → restart at vsync — no longer applies: with the code executing from PSRAM the flash operation does not take the PSRAM away, and with the refill interrupt in IRAM it keeps running while flash is busy. **The screen can stay on during an update; a progress bar is now possible** (step 4).
|
||||
|
||||
Also seen:
|
||||
- Boot / first full redraw under XIP: 614 kpx in 142 ms (stock: ~148 ms) — no measurable render slow-down from executing code out of PSRAM in this one sample; screen-change frames should be compared over a real session.
|
||||
- Idle Driveline under XIP: 0 fps, LVGL idle 99–100 %, cores 95–96 % idle, 24 vsync/s, gap 41.5 ms — same as the stock core after step 1b.
|
||||
- Internal free at idle 63.3 KB (stock 66.3 KB); largest block unchanged at 31.7 KB.
|
||||
- Cost: `custom_sdkconfig` rebuilds the Arduino core: first build 20 min (and it failed on RainMaker/Insights embedding `https_server.crt` until those unused components were dropped with `custom_component_remove`), rebuilds ~3 min, normal incremental builds unchanged. Generated `sdkconfig.defaults`, `sdkconfig.<env>`, `managed_components/`, `.dummy/` are git-ignored. CI must be able to do the same rebuild (open).
|
||||
|
||||
## Second run, with the progress bar (17:55, `raw/perf-xip-ota-20260927-175522.log`)
|
||||
|
||||
Same forced install with the new on-screen notice (bar updated per percent from the download loop, screen lit). Panel: **24–25 frames/s, 41.5–41.8 ms gap throughout**; LVGL rendered 2–3 small frames/s (~28 kpx, the bar) at 10–12 ms each; core 1 idle 29–38 %. User watching the screen: "the progress bar appeared and no flickering or other issues" `(verified)`.
|
||||
|
||||
## Still to verify (needs eyes)
|
||||
|
||||
- **Dots**: idle screen with Wi-Fi associated, several minutes, on the XIP build. The vsync counter cannot see them; only the user can. If the refill ISR being IRAM-safe and the flash traffic being gone were the cause, they are gone; if PSRAM bandwidth contention alone can still delay a refill, some may remain → fallbacks on [[open-questions]] #13 (lower pixel clock, larger bounce buffers, Wi-Fi/LWIP buffers to internal RAM).
|
||||
- **Swipe lag**: screen-change frame times on the XIP build vs the 140–330 ms measured on stock.
|
||||
- **Gauge Tuning save flicker**: no frame was lost on stock either; expect none.
|
||||
|
||||
## Related
|
||||
|
||||
[[perf-dots-and-ota-2026-09-27]] · [[perf-baseline-2026-09-27]] · [[open-questions]] · [[ota-updates]] · [[esp32-s3-touch-lcd-5b]]
|
||||
Reference in New Issue
Block a user