Link protocol v2 receiver, ESP-NOW leg, Patrol gauge outputs, gear pulse
- protocol header v2 copied byte-identical from the 5B repo - uart_receiver: processFrame() shared by the UART framing task and ESP-NOW, version check, dedupe on packet_id+timestamp, per-transport liveness, CONFIG cache with sequence number - espnow_receiver: STA mode, channel hopping while silent, locks on frames - gauge_outputs: tach on IO7 (LEDC ch2, 14-bit), coolant PWM on IO8 (LEDC ch4, 8-bit), config cached in NVS, overrides applied but not saved - main: gear label from lever + engaged/target (pulses while shifting, red on mismatch), icons driven by A's alert bits, gauge update at 5 Hz, link stats - wiki: temp_stage.cfd (user's old CANNY program) decoded as prior art; controller-link, link-redundancy, patrol-gauge-outputs, open-questions updated with the bench-verified v2 results and calibration procedure Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+5
-4
@@ -13,15 +13,16 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
|
||||
|
||||
## Concepts
|
||||
|
||||
- [[controller-link]] — the A → B link: 23-byte UART packet @ 5 Hz, what each field really carries (oil temp is dead, RPM missing), pins (A TX = GPIO 44, B RX = IO1), the **RS485-vs-TTL physical-layer question**, and the **gear-enum drift** between the two repos
|
||||
- [[link-redundancy]] — design space for wired + wireless redundancy: RS485 vs TTL, BLE GATT vs ESP-NOW, failover policy on B, and why A must always transmit on both paths
|
||||
- [[patrol-gauge-outputs]] — driving the Patrol cluster's tachometer (variable frequency) and coolant gauge (variable duty) from B's LEDC on IO7/IO8; the external driver stage; what must be measured on the cluster first
|
||||
- [[controller-link]] — the A → B link, **protocol v2 (verified 2026-09-21)**: typed DATA/CONFIG frames on UART1 **and** ESP-NOW with dedupe, split gear fields, rpm, A-side alerts; pins (A TX = GPIO 44 → 485_A → B IO1 on the bench); the RS485-in-the-car question; v1 and the old enum drift kept for the record
|
||||
- [[link-redundancy]] — wired + wireless redundancy: **ESP-NOW leg built and bench-verified** (both paths carry every frame, B dedupes and hops channels); RS485 for the car and BLE still open; failover policy notes
|
||||
- [[patrol-gauge-outputs]] — Patrol tachometer (IO7, 14-bit LEDC, 4 ppr) and coolant gauge (IO8, 8-bit PWM, CANNY duty law) **outputs implemented and bench-verified**; tunables on A via `cfg` console; prior art from the CANNY program; driver stage and needle calibration still to do
|
||||
|
||||
## Synthesis
|
||||
|
||||
- [[open-questions]] — the research frontier: how the wire is really connected, which gear enum is right, which Patrol cluster, RPM field, BLE vs ESP-NOW, gauge behaviour on link loss, vehicle power, missing environmental specs
|
||||
- [[open-questions]] — the research frontier: will the bare A-line wire survive the car, which Patrol cluster / tach pull-up, temp needle calibration + CANNY PWM clock, gauge behaviour on link loss, pull-the-wire failover test, BLE or not, vehicle power, environmental specs
|
||||
|
||||
## Sources
|
||||
|
||||
- [[waveshare-wiki-esp32-s3-lcd-1-3]] — Waveshare product wiki (condensed fetch 2026-09-21, not a verbatim clip); core spec, CH343, PL4054/ME6217 power, BLE 5; silent on pins and environmental limits
|
||||
- [[pinout-photo-details-7]] — Waveshare annotated header photo (`raw/ESP32-S3-LCD-1.3-details-7.jpg`); the authoritative pinout, contradicts the repo's wiring guide
|
||||
- [[temp-stage-cfd]] — **the user's earlier CannyLab program** for the same temp gauge (`raw/temp_stage.cfd`, decoded 2026-09-21): CAN 0x1D0 byte 0 − 48, **duty = 1.5·T + 50 on 0–255**, enable gate; PWM frequency and external circuit not in the file
|
||||
|
||||
Reference in New Issue
Block a user