diff --git a/src/chargercan.cpp b/src/chargercan.cpp index e20d901..eed043d 100644 --- a/src/chargercan.cpp +++ b/src/chargercan.cpp @@ -100,6 +100,17 @@ void ChargerCAN::MapMessages(CanMap* can) can->AddSend(Param::idc, 0x109, 24, 16, 1); can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once - /***** Auxiliary TX *****/ - can->AddSend(Param::uaux, 0x210, 0, 8, 10); //12V aux battery: byte 0, gain=10 (0.1V/decivolts, SKUDAK-448) + /***** SKUDAK VCU telemetry (0x210) — SKUDAK-448 expanded charger telemetry *****/ + // 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); }