dashboard: show sensor node RS485 diagnostics
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
- Added fixed-address BNO086 power-up retries, runtime recovery, and report restoration after sensor resets.
|
||||
- Expanded telemetry with BNO086 motion/gravity/stability reports and GPS HDOP/data ages.
|
||||
- Hardened RS485 transmission with local-echo draining, frame-size guards, a larger RX buffer, and boot/frame sequence identifiers.
|
||||
- Added dashboard reception of XIAO sensor-node RS485 telemetry and a basic diagnostics-overlay view without changing Cargo `/api/v1` behavior.
|
||||
|
||||
## Unreleased
|
||||
|
||||
|
||||
@@ -240,6 +240,17 @@ Important guardrails:
|
||||
|
||||
The dashboard enclosure will include an M9N GPS module connected to the ESP32-S3 dashboard over UART. It will provide GPS fix status, satellite count, position, speed, and UTC time. Future work will use GPS time/location for automatic timezone and DST handling.
|
||||
|
||||
## XIAO sensor-node RS485 link
|
||||
|
||||
The dashboard uses the Waveshare ESP32-S3-Touch-LCD-5B onboard RS485 receiver for the XIAO BNO086/MAX-M10S node:
|
||||
|
||||
| Function | Dashboard GPIO |
|
||||
| --- | --- |
|
||||
| RS485 RX | GPIO43 |
|
||||
| RS485 TX | GPIO44 |
|
||||
|
||||
The onboard transceiver handles direction automatically. Configure 115200 baud, 8-N-1, connect A-to-A, B-to-B, and share ground. Keep **USB CDC On Boot** enabled so USB diagnostics do not claim the RS485 UART pins.
|
||||
|
||||
|
||||
### LilyGO T-Relay-S3 6-relay cargo controller
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ The receiver should parse only newline-complete JSON objects. A changed `boot_id
|
||||
5. Disconnect/reconnect one bus conductor and verify the receiver detects sequence gaps rather than accepting partial JSON.
|
||||
6. Terminate only the two physical ends of a long installed bus; a short bench cable normally does not need termination.
|
||||
|
||||
The Waveshare dashboard receiver uses GPIO43 RX and GPIO44 TX through its onboard automatic-direction RS485 transceiver. Its diagnostics overlay displays the initial parsed sensor model and transport counters; this link is separate from Cargo WiFi/HTTP control.
|
||||
|
||||
This link does not replace dashboard-to-Cargo WiFi/HTTP. A future dashboard receiver may display this telemetry without moving relay, BMS, alarm, or configuration authority away from Cargo.
|
||||
|
||||
## Level calibration commands
|
||||
|
||||
@@ -303,6 +303,8 @@ The dashboard enclosure will include an M9N GPS module connected to the ESP32-S3
|
||||
|
||||
The dashboard has a hidden diagnostics overlay. Tap the top status card five times within roughly three seconds to open it. Double-tap the diagnostics overlay to return to the main dashboard.
|
||||
|
||||
The overlay also provides the initial XIAO sensor-node bring-up view. The dashboard receives newline-delimited JSON through its onboard automatic-direction RS485 transceiver on GPIO43 RX / GPIO44 TX at 115200 baud. It shows link age, received/dropped/error counts, IMU pitch/roll/accuracy/stability, and GPS fix/satellites/HDOP/location/speed. Cargo communication remains WiFi/HTTP through `/api/v1`.
|
||||
|
||||
The diagnostics overlay shows dashboard version, uptime, heap, WiFi RSSI/IP, Cargo API status, Cargo firmware version, Cargo uptime, Cargo heap, Cargo AP client count, BMS status, relay count, and basic control-loop state.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user