Native CAN (the van's final setup, MQTT the stopgap): SocketCAN on any number of interfaces, CANopen frame roles, heartbeat states and NMT start, signals decoded by data/can.json (id/mask, byte/bit, type, scale/offset, unit); gnss.* signals feed the GNSS control, GET /api/can; tested over vcan0
This commit is contained in:
1 parent
78bdc7f6f0
commit
850a5946ad
5 files changed
+299
-5
No files matched your search
@@ -157,9 +157,17 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
* [ ] Car CAN data (`mcu-car-can.yaml`, today over the native API to HA): add `mqtt:` like the
|
||||
tracker; RPM, doors, parking brake, … in a dashboard panel
|
||||
* [ ] IMU shocks along a drive as a map layer — road roughness / potholes colored by intensity
|
||||
* [ ] Later in the van: CANopen (or plain CAN with own IDs) to the server, a small CAN → MQTT
|
||||
bridge on the host (SocketCAN; `can0` lives in the host's network namespace), maptool stays
|
||||
on MQTT
|
||||
* [x] Native CAN in maptool (the van's final setup, MQTT is the stopgap): SocketCAN on any
|
||||
number of interfaces (USB adapter, the board's own controller, `vcan0` for tests),
|
||||
CANopen frame roles + heartbeat states, NMT start, signals decoded by `data/can.json`
|
||||
(COB-ID/mask, byte/bit, type, scale/offset — `lib/maptool/can.rb`), `gnss.*` signals feed
|
||||
the GNSS control, `GET /api/can`
|
||||
** [ ] The container on the CAN bus: `can0` lives in the host's network namespace — either
|
||||
`network_mode: host` for maptool (then kiwix/valhalla by localhost ports, not service
|
||||
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
|
||||
|
||||
=== 3D navigation mode
|
||||
|
||||
@@ -213,8 +221,8 @@ already offline work on the road. The Pi only serves; heavy builds stay on brick
|
||||
* [ ] Hardware buttons: keyboard shortcuts in the page (zoom, Navigate, night mode, …) — the
|
||||
cheap way with any BLE/USB keypad that sends plain keys
|
||||
* [ ] … and the full way: a CANopen keypad (Blink Marine style) on the CAN bus wired straight
|
||||
to the Pi (SocketCAN `can0`) → the small CAN → MQTT bridge on the host (see "Later in the
|
||||
van" above; NMT start, key bitmap from `0x180+node`, LEDs via `0x200+node`) → maptool → the
|
||||
to the Pi, read by maptool's native CAN (see "Native CAN" above; NMT start, key bitmap
|
||||
from `0x180+node` as `bit` signals, LEDs via `0x200+node` still to send) → the
|
||||
browser over Server-Sent Events; the page's state (navigating, night) back the same way to
|
||||
light the keypad's LEDs. Server needs to know which browser is "the car display" (a
|
||||
per-device switch — or simply the Pi's own kiosk display)
|
||||
|
||||
Reference in new issue
Block a user