3613387d41
- New wiki/ (Obsidian vault) following the LLM Wiki pattern: schema, index, log, entity page for the board, concept pages for the A->B link, wired+wireless redundancy, and Patrol gauge outputs, open questions, two sources - New CLAUDE.md distilled from the surviving .docs content: verified pins, brightness/receiver/debug APIs, SquareLine rules, CH343 serial notes, gear-enum drift warning, Waveshare demo and schematic URLs - Delete .docs/ (14 files): stale pin-hunting and troubleshooting guides, wrong header table, finished phase roadmap, duplicate UART spec (now in the 5B repo at docs/UART_PROTOCOL.md) - README.md repointed to CLAUDE.md and wiki/ Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
4.2 KiB
Markdown
46 lines
4.2 KiB
Markdown
---
|
||
type: synthesis
|
||
tags: [meta, todo]
|
||
updated: 2026-09-21
|
||
---
|
||
|
||
# Open Questions
|
||
|
||
The research frontier for Controller B. Answering any of these should trigger updates across the wiki. Ordered roughly by how much they block progress.
|
||
|
||
## Blocking
|
||
|
||
1. **How is the wired link physically connected today?** The 5B's GPIO 44 only leaves the board as an RS485 A/B pair through an SP3485, yet both wiring guides describe a direct TTL wire into IO1. Is the RS485 A line going straight into IO1, is there an RS485→TTL module on B, or is it soldered to the module? Decides whether the wired leg is trustworthy in the car and what [[link-redundancy]] has to cover. → [[controller-link]]
|
||
2. **Which `gear_position_t` enum is correct?** A's and B's protocol headers disagree on values 4–13 (Sport/Manual vs M1–M6). Check what A's CAN parser emits, fix the other side, bump `PACKET_VERSION`. → [[controller-link]]
|
||
3. **Which Nissan Patrol cluster, and what does its tach input expect** (signal source, pulses per rev, pull-up voltage)? Fixes the frequency range for the tachometer output. → [[patrol-gauge-outputs]]
|
||
|
||
## Active
|
||
|
||
4. **Add `engine_rpm` to the packet.** A has RPM verified from CAN 0x0AA `(sibling: 5B wiki → can-id-candidates)` but the protocol carries no RPM field. Needed before the tachometer can be driven. → [[controller-link]]
|
||
5. **BLE GATT or ESP-NOW for the wireless leg?** Benchmark reconnect time, latency and RAM cost on A (whose Core 0 already runs Wi-Fi + CAN + UART). → [[link-redundancy]]
|
||
6. **Gauge behaviour on link loss** — zero, hold + warn, or sweep to a "no data" mark? A safety/UX decision the user must make. → [[link-redundancy]]
|
||
7. **Temp sender resistance curve** as seen by the gauge, for the °C → duty lookup. → [[patrol-gauge-outputs]]
|
||
8. **Does `engine_oil_temp` stay in the packet?** Its CAN source reads 0xFF on this engine (sensor not fitted). B currently reserves screen space and a warning threshold for it `(repo)`. Drop it, or repurpose the slot.
|
||
|
||
## Hardware
|
||
|
||
9. **Operating temperature and power draw are not on Waveshare's product wiki** for this board `(source: waveshare-wiki-esp32-s3-lcd-1-3)`. The 5B's spec is 0–65 °C; assume similar until a datasheet says otherwise. Dashboard mounting in a Patrol will see both extremes.
|
||
10. **Vehicle power for B.** The board takes 5 V USB or a LiPo — no wide-input regulator like the 5B has. Needs an automotive 12 V → 5 V buck with transient protection, or a 5 V feed from A `(unverified)`.
|
||
11. **IMU and TF-card GPIOs** are not stated on the product wiki. Irrelevant unless a future feature wants them, but they might share pins with the header (unlikely — the header GPIOs are IO1–5, IO7–14).
|
||
12. **Is IO3 safe to use as an output?** It is a strapping pin on the S3; avoided for now.
|
||
|
||
## Answered
|
||
|
||
- ~~Does the 1.3 have free PWM-capable GPIO?~~ → **Yes, 13 on the headers** (IO1–5, IO7–14), 10 fully free today. (verified from pinout photo, 2026-09-21) → [[esp32-s3-lcd-1-3]]
|
||
- ~~Could the 5B drive the gauges itself?~~ → **No.** All native GPIO consumed; its DO terminals go through an I2C expander + optocoupler and cannot carry hardware PWM. (schematic reviewed 2026-09-21) → [[patrol-gauge-outputs]]
|
||
- ~~Which GPIO does A transmit on?~~ → **GPIO 44** per A's firmware; the "43" in two docs is stale. `(repo)` → [[controller-link]]
|
||
- ~~Is the header IO35–IO42 as the wiring guide says?~~ → **No**, that table is wrong; see the photo. (verified, 2026-09-21)
|
||
|
||
## Sourcing wishlist
|
||
|
||
- Waveshare **schematic PDF** for ESP32-S3-LCD-1.3 (`https://files.waveshare.com/wiki/ESP32-S3-LCD-1.3/ESP32S3_1.3inch.pdf`; demo code zip `https://files.waveshare.com/wiki/ESP32-S3-LCD-1.3/ESP32-S3-LCD-1.3-Demo.zip`) — would settle the IMU/TF pins, confirm the CH343 on UART0, and show the backlight and battery circuits
|
||
- A **verbatim Obsidian web clip** of the Waveshare product wiki into `raw/` (the current source page is from a condensed fetch, not a full clip)
|
||
- Nissan Patrol **cluster wiring diagram** for the target generation — tach input and temp sender pins
|
||
- Scope capture of the original Patrol tach signal at idle and a known RPM, if the original engine's cluster wiring still exists
|
||
- Datasheet or Waveshare note on the board's operating temperature range
|