Nodes describe themselves: an SDO client (Can::Sdo) reads each esphome-canopen node's TPDOs and entities (type, name, unit, range) on its first heartbeat, cached by the TPDO layout hash, decoded with no hand-written signals — can.json keeps aliases (with unit conversion) and foreign devices; design doc (NPS planning, cockpit instruments, Unigrid band) with color tokens, the dashboard in cockpit colors; starting the simulation turns the GNSS follow on, the GNSS position an arrow by its course
This commit is contained in:
1 parent
ce290f2162
commit
e92f01db12
12 files changed
+713
-76
No files matched your search
@@ -171,9 +171,19 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
esphome-canopen), `data/can.json` in docs/deployment.adoc
|
||||
** [x] `/can.html` diagnostics: interfaces, nodes (heartbeat, last EMCY, what they send),
|
||||
decoded signals, every COB-ID (role, count, rate, last data)
|
||||
** [ ] Discover our esphome-canopen nodes over SDO (0x1008 name, 0x2001 entity types,
|
||||
0x2000+0x10·N names/units/min/max, 0x1A00+n TPDO mapping): their entities decoded with no
|
||||
`can.json`; 0x1008/0x1018 identity for any CANopen device
|
||||
** [ ] Nodes describing themselves — no hand-written signals for our own nodes:
|
||||
*** [x] esphome-canopen nodes over SDO: on a node's first heartbeat read its TPDOs
|
||||
(`0x1800+n`:1 COB-ID, `0x1A00+n` mapping), each mapped entity's type (`0x2001`:N) and
|
||||
metadata (`0x2000+0x10·N`: name, unit, min/max → the scale), the decoder built from that,
|
||||
cached by the TPDO layout hash (`0x3002`:1, read again when it changes — after an OTA);
|
||||
`can.json` keeps only aliases (a node's "Latitude" → `gnss.lat`) and foreign devices
|
||||
(`lib/maptool/can_discovery.rb`, `Can::Sdo`; aliases with a unit conversion; node 0x21
|
||||
reads in 2 s, its 14 signals match the hand-written scales)
|
||||
*** [ ] `/can.html`: each described node's entities (name, unit, range, TPDO), from the cache
|
||||
*** [ ] EDS (CiA 306) read from a node (`0x1021`) or a file, the same decoder from it — once the
|
||||
ESPHome side generates EDS (proposal for mrk in home-gitops `docs/canopen-nodes.adoc`); the
|
||||
car bridge's frames described the same way
|
||||
*** [ ] 0x1008/0x1018 identity for any CANopen device in `/can.html`
|
||||
** [x] A node that stops its heartbeat (3 missed) is flagged: one journal line when it goes
|
||||
silent and when it's back (`can: node 2 silent, last heartbeat …`), red in `/can.html`
|
||||
** [x] Dashboard overlay (Overlays → Live → Dashboard, `public/js/dashboard.js`): one combined
|
||||
@@ -261,6 +271,27 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
* [ ] While following a planned route: the route ahead highlighted, distance to the next
|
||||
maneuver from Valhalla's directions
|
||||
|
||||
=== Design: the park brochure and the cockpit
|
||||
|
||||
Planning in the NPS look, driving in the cockpit look, joined by the Unigrid black band —
|
||||
`docs/design.adoc`. Action plan:
|
||||
|
||||
. [x] Colors: tokens on `:root` (`--band`, `--inst-*`: ok / caution / warning, magenta = what
|
||||
navigation follows, cyan = set by hand); the dashboard in them — a see-through black bezel,
|
||||
light values, inverted back in night mode
|
||||
. [ ] The route line magenta while it's navigated (follow mode), blue while planning; the next
|
||||
waypoint and maneuver magenta on the map too
|
||||
. [ ] The rest of the hard-coded colors → tokens (route, warnings, panel states), one place to tune
|
||||
. [ ] Panel headers as the Unigrid band: black, white title in National Park (headings weight
|
||||
to vendor), the same band as the topbar
|
||||
. [ ] `/can.html` in the cockpit style: dark, the node / signal states in `--inst-*`
|
||||
. [ ] The navigation strip: the next maneuver big at the top (arrow, distance, street, lanes) —
|
||||
with the driving mode's big-button UI
|
||||
. [ ] The PDM switch panel in the cockpit style (tiles: `--inst-ok` on, muted off,
|
||||
`--inst-warning` fault)
|
||||
. [ ] Night: instruments dimmed (brightness) on top of the inverted UI; daylight: a full-opacity
|
||||
bezel preset for sun on the screen
|
||||
|
||||
=== HW integration
|
||||
|
||||
Inspired by Garmin Tread / zūmo, but open and over CANopen — the nodes' side and the options
|
||||
|
||||
Reference in new issue
Block a user