feat: expand 0x210 telemetry layout (state/udc/idc/uaux@5/soc) #2

Merged
bastian merged 1 commits from feat/skudak-448-expanded-0x210-telemetry into main 2026-05-08 17:00:31 -04:00
Showing only changes of commit 3580123a39 - Show all commits
+13 -2
View File
@@ -100,6 +100,17 @@ void ChargerCAN::MapMessages(CanMap* can)
can->AddSend(Param::idc, 0x109, 24, 16, 1); can->AddSend(Param::idc, 0x109, 24, 16, 1);
can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once
/***** Auxiliary TX *****/ /***** SKUDAK VCU telemetry (0x210) — SKUDAK-448 expanded charger telemetry *****/
can->AddSend(Param::uaux, 0x210, 0, 8, 10); //12V aux battery: byte 0, gain=10 (0.1V/decivolts, SKUDAK-448) // Byte 0: state (0=Off, 1=WaitStart, 2=Enable, 3=Activate, 4=Run, 5=Stop)
// Bytes 1-2: udc (V, gain=1)
// Bytes 3-4: idc (0.1A, gain=10)
// Byte 5: uaux (decivolts, gain=10) — 12V aux battery rail
// Byte 6: soc (%, gain=1)
// Byte 7: reserved
// Consumed by stm32-hal-vcu Core/Src/main.c CHARGER_CAN_ID_OI_OBC_AUX handler.
can->AddSend(Param::state, 0x210, 0, 8, 1);
can->AddSend(Param::udc, 0x210, 8, 16, 1);
can->AddSend(Param::idc, 0x210, 24, 16, 10);
can->AddSend(Param::uaux, 0x210, 40, 8, 10);
can->AddSend(Param::soc, 0x210, 48, 8, 1);
} }