docs: align active hardware and API guidance
This commit is contained in:
1 parent
ab5424d82e
commit
6b39e7e438
24 files changed
+219
-261
No files matched your search
+18
-36
@@ -32,8 +32,8 @@ The Cargo ESP32 should not depend on the dashboard, phone, home server, or inter
|
||||
|
||||
Target hardware:
|
||||
|
||||
- Waveshare ESP32-S3-Touch-LCD-5
|
||||
- 5 inch 800x480 capacitive touchscreen
|
||||
- Waveshare ESP32-S3 Touch LCD 5B
|
||||
- 5 inch 1024x600 capacitive touchscreen
|
||||
- ESP32-S3
|
||||
- 16MB flash
|
||||
- 8MB PSRAM
|
||||
@@ -101,7 +101,8 @@ Preferred direction:
|
||||
POST /api/v1/config/import
|
||||
POST /api/v1/relay/set
|
||||
|
||||
Pre-versioned root routes remain registered as compatibility aliases for existing local clients.
|
||||
Only `/api/v1` routes are registered; root-route compatibility aliases are not
|
||||
part of the current API.
|
||||
|
||||
## Generic IDs
|
||||
|
||||
@@ -111,17 +112,14 @@ Relays:
|
||||
|
||||
relay_1
|
||||
relay_2
|
||||
relay_3
|
||||
relay_4
|
||||
relay_5
|
||||
relay_6
|
||||
|
||||
Temperature sensors:
|
||||
|
||||
temp_1
|
||||
temp_2
|
||||
temp_3
|
||||
temp_4
|
||||
temp_5
|
||||
temp_6
|
||||
temp_7
|
||||
temp_8
|
||||
temp_1 through temp_4
|
||||
|
||||
Install-specific names belong in saved configuration only.
|
||||
|
||||
@@ -201,15 +199,9 @@ Active dashboard communication is WiFi/HTTP using `/api/v1`.
|
||||
|
||||
The old Pico/dashboard UART path is retired from active hardware use. USB Serial remains available for development, debug, and manual configuration from a computer.
|
||||
|
||||
Current Cargo ESP32 GPIO plan:
|
||||
|
||||
- GPIO 16: Relay 1 trigger output
|
||||
- GPIO 17: Relay 2 trigger output
|
||||
- GPIO 4: DS18B20 OneWire temperature bus
|
||||
- GPIO 34: Ignition sense input
|
||||
- GPIO 21: SSD1306 OLED I2C SDA
|
||||
- GPIO 22: SSD1306 OLED I2C SCL
|
||||
- GPIO 25: OLED setup/status button
|
||||
The active LILYGO Cargo profile uses its onboard 74HC595 for relay control.
|
||||
GPIO4 is the relay output-enable pin and the DS18B20 OneWire bus uses GPIO15.
|
||||
See `docs/HARDWARE.md` for the complete current pin map.
|
||||
|
||||
## Role Boundary Summary
|
||||
|
||||
@@ -266,7 +258,7 @@ This means future dashboard work should display existing Cargo ESP temperature t
|
||||
|
||||
## Cargo ESP API Contract
|
||||
|
||||
The Cargo ESP API contract is documented in `docs/cargo-api-contract.md`.
|
||||
The Cargo ESP API contract is documented in `docs/API.md`.
|
||||
|
||||
The Cargo ESP32 is the source of truth for:
|
||||
|
||||
@@ -278,22 +270,12 @@ The Cargo ESP32 is the source of truth for:
|
||||
|
||||
The ESP32-S3 dashboard should consume Cargo ESP API data over WiFi/HTTP REST instead of directly owning cargo sensors or relay state.
|
||||
|
||||
## Cargo ESP Hardware Transition Plan
|
||||
## Cargo ESP Hardware Profile
|
||||
|
||||
Current active development and testing remains on the existing 2-channel relay board.
|
||||
|
||||
A LILYGO T-Relay-S3 6-way board has been ordered as a future Cargo ESP candidate.
|
||||
|
||||
Transition strategy:
|
||||
|
||||
- Keep current 2-channel board working.
|
||||
- Make the Cargo ESP API output-count agnostic.
|
||||
- Represent outputs as a list of output objects.
|
||||
- Let clients render whatever output list the Cargo ESP exposes.
|
||||
- Add a hardware profile/config layer before migrating firmware to LilyGO.
|
||||
- Bench test LilyGO relay boot behavior before connecting it to the WUPP block.
|
||||
|
||||
The API should not require redesign when moving from 2 outputs to 6 outputs.
|
||||
The active Cargo profile is `lilygo_trelay_s3_6ch`: six outputs driven through
|
||||
the LILYGO T-Relay-S3 onboard 74HC595. Clients must render the output list
|
||||
returned by the API rather than assuming a fixed relay count. Bench test relay
|
||||
boot state and CH1–CH6 mapping before connecting vehicle loads.
|
||||
|
||||
## Planned WebSocket Push Layer
|
||||
|
||||
|
||||
Reference in new issue
Block a user