From 5e17259dbf5e68ba3e072cbb73661579eacc7f48 Mon Sep 17 00:00:00 2001 From: coderask Date: Mon, 20 Jul 2026 17:29:42 +0100 Subject: [PATCH 1/2] Add Physical Bus Wiring To `GRCAN.CANdo` As `physical topology` Section Import the physical CAN bus topology (which nodes are physically wired to each bus) from GRCAN-Web's `can_topology.json` into a new hand-editable `physical topology:` top-level section in `GRCAN.CANdo`. CANdo is the authoritative source of truth; topology is enforced only in the web viewer, so no Perl parser consumes this section. Verified inert: all generated headers are byte-identical before and after the change. Reconciled against the authoritative `routing` section: added `HV DC-DC` and `LV DC-DC` to `Primary` (both transmit `DC-DC Status` there per routing, but were absent from the viewer's `can_topology.json`). --- Autogen/CAN/Doc/GRCAN.CANdo | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/Autogen/CAN/Doc/GRCAN.CANdo b/Autogen/CAN/Doc/GRCAN.CANdo index fff052888..d8ee2e98e 100644 --- a/Autogen/CAN/Doc/GRCAN.CANdo +++ b/Autogen/CAN/Doc/GRCAN.CANdo @@ -12,6 +12,53 @@ Bus ID: id: 3 max_dlc: 8 +# physical topology: which devices are physically wired to each CAN bus. +# Hand-editable by design. Device names must match the GR ID section and bus +# names must match the Bus ID section above. Buses omitted here (e.g. Testing) +# are treated as unrestricted. Mirrors can_topology.json from the GRCAN-Web viewer. +physical topology: + Primary: + - ECU + - TCM + - ACU + - DGPS + - GR Inv + - DTI Inv + - Fan Ctrl 1 + - Fan Ctrl 2 + - Fan Ctrl 3 + - EM + - Dash Panel + - HV DC-DC + - LV DC-DC + Data: + - ECU + - TCM + - ACU + - DGPS + - TireTemp FL + - TireTemp FR + - TireTemp RL + - TireTemp RR + - BrakeTemp FL + - BrakeTemp FR + - BrakeTemp RL + - BrakeTemp RR + - Suspension FL + - Suspension FR + - Suspension RL + - Suspension RR + - InboardFloor FL + - InboardFloor FR + - InboardFloor RL + - InboardFloor RR + Charger: + - CCU + - ACU + - Charger + - IMD + - EM + routing: messages: ACU: From ce538efcb84eb4fe48895905c172c926f6b23b59 Mon Sep 17 00:00:00 2001 From: Aarnav Koushik Date: Thu, 30 Jul 2026 21:17:36 -0700 Subject: [PATCH 2/2] Remove comment above physical topology section --- Autogen/CAN/Doc/GRCAN.CANdo | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Autogen/CAN/Doc/GRCAN.CANdo b/Autogen/CAN/Doc/GRCAN.CANdo index d8ee2e98e..c2a6f5211 100644 --- a/Autogen/CAN/Doc/GRCAN.CANdo +++ b/Autogen/CAN/Doc/GRCAN.CANdo @@ -12,10 +12,6 @@ Bus ID: id: 3 max_dlc: 8 -# physical topology: which devices are physically wired to each CAN bus. -# Hand-editable by design. Device names must match the GR ID section and bus -# names must match the Bus ID section above. Buses omitted here (e.g. Testing) -# are treated as unrestricted. Mirrors can_topology.json from the GRCAN-Web viewer. physical topology: Primary: - ECU