CANopen diagnostics and map data over HTTPS: /can.html (interfaces, nodes with heartbeat state and last EMCY, decoded signals, every COB-ID with role, count, rate and last data); signals can mark an invalid raw value (esphome-canopen's unknown) and NaN gives no value; the CAN reader never dies and a broken can.json only turns CAN off; the GNSS node mcu-stm32-xiao-c5-2 (0x21) and host networking for the car's server in docs; bin/pull-maps.sh pulls map data from GET /api/sync/maps(/file) with SYNC_TOKEN instead of rsync over SSH, resuming cut-off downloads
This commit is contained in:
1 parent
a3e5fefaf1
commit
6a0d6194fe
9 files changed
+365
-43
No files matched your search
@@ -167,7 +167,18 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
names) or a vxcan pair moved into the container's namespace by a host script
|
||||
** [ ] The car-CAN → CANopen bridge's mapping (not decided yet) as signals in `data/can.json`;
|
||||
a dashboard panel for the `car.*` signals
|
||||
** [ ] The GNSS node's PDO layout (lat/lon i32 × 1e-7, speed, course, fix) as `gnss.*` signals
|
||||
** [x] The GNSS node's PDO layout as `gnss.*` signals — `mcu-stm32-xiao-c5-2` (node 0x21,
|
||||
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
|
||||
** [ ] A configurable dashboard overlay over the map (like dashcams burn it in): widgets picked
|
||||
and placed per screen, each bound to a signal — speed, turn signals, brake, … — and one
|
||||
combined inclinometer (Pajero style, but one instrument, not three): compass heading, pitch
|
||||
and roll, all from the GNSS node (pitch/roll already in its TPDO1; the HMC5883L compass
|
||||
still to add to its firmware); GNSS course as the heading until then
|
||||
|
||||
=== 3D navigation mode
|
||||
|
||||
@@ -199,7 +210,8 @@ already offline work on the road. The Pi only serves; heavy builds stay on brick
|
||||
without login (e.g. `TRUSTED_NETWORKS` CIDR list), or a local fallback account
|
||||
* [ ] HTTPS on the LAN (the secure session cookie, the PWA and the service worker need it):
|
||||
the same hostname resolved to the Pi by the car router's DNS, Let's Encrypt cert via DNS-01
|
||||
* [ ] A touch display on the Pi itself (USB touchscreen, Chromium in kiosk mode on
|
||||
* [ ] A touch display on the Pi itself (a portable ~16" USB touchscreen, the co-driver's —
|
||||
the navigator plans on it while driving; Chromium in kiosk mode on
|
||||
`http://localhost`) as the car display — solves a lot at once: localhost is a secure
|
||||
context (no certificate needed for the PWA/service worker) and can skip login, it doesn't
|
||||
depend on the car's Wi-Fi, buttons plug straight into the Pi (a USB/BLE keypad is just a
|
||||
|
||||
Reference in new issue
Block a user