Page 1 of 1

Zombieverter developemental SW version testing on full Leaf setup

Posted: Sun Jun 01, 2025 9:53 pm
by J0hannes
Maybe this is worth a separate topic and to minimize confusion what comes to official releases :)

Ok, so I have noticed this behavior with several developemental versions (can't say if this is true to released versions as current ones have their issues for which I can't drive them.)

Background:
I have "full" Leaf setup meaning full drive stack and an unmodified Leaf battery.
I updated to 2.33TH and I took a couple of CAN traces related to this, short one when I started the charge, a longer one with few captures and then I put this in runmode afterwards.

The issue:
The charge current command in 1F2 doesn't seem to follow LB_Charge_Power_Limit given in 1DC.
Neither does it seem to follow LB_max_power_for_charger
image.png
Looking at the trace, LBC is asking for 0kW, but OBC pushes what comes out of the EVSE

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Mon Jun 02, 2025 5:10 pm
by tom91
Correct, barely any of the BMS messages are ingested and used.

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Thu Jul 10, 2025 8:18 pm
by jerrykco
tom91 wrote: Mon Jun 02, 2025 5:10 pm barely any of the BMS messages are ingested and used.
[/]
HI Tom, is there a list so us new to this can know what is covered and what is not consumed?

I.E. Is there a way in Params to specify these maximums?

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Wed Jul 16, 2025 11:47 pm
by vitecd
J0hannes wrote: Sun Jun 01, 2025 9:53 pm released versions as current ones have their issues for which I can't drive them
Can you share the issues, please?

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Thu Jul 17, 2025 6:05 am
by J0hannes
vitecd wrote: Wed Jul 16, 2025 11:47 pm Can you share the issues, please?
viewtopic.php?p=84499

The no-torque-reversing problem

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Thu Jul 31, 2025 9:50 pm
by J0hannes
Sooo

After changing some fresh contactors, I found myself facing a precharge fail -issue.
I synced my vehicle_testing with the main but did some tweaking to get precharging to work.
https://github.com/Romukeisari/Stm32-vc ... le_testing

To me it seems that we have a DCDC ON command in one of the VCU messages, which should be off status during precharge.
Leaf NAM EVC 58 power voltage variable contrtol system.png
This results in a situation where the DCDC starts to draw power before precharge is complete. This is also visible when plotting
Screenshot 2025-07-30 214524.png
Any ideas, what to try :)

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Thu Jul 31, 2025 9:54 pm
by tom91
Do you know where the DCDC is turned on via CAN?

Possibly the main HV system relay bit should toggle. in 0x1D4

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Fri Aug 01, 2025 3:16 pm
by tom91
Added an update that should now toggle the HV status as per leaf logs. Pushed into the testing branch, so please try this and provide some feedback.
https://github.com/damienmaguire/Stm32- ... 811d0b12e9

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Sat Aug 02, 2025 11:30 am
by J0hannes
Tomorrow, on Sunday I have a test and trace day. I really need this to get back on road as there's an driving event next weekend I want to attend to :D

I'll try the toggle, but then again I have this gut feel that there is a discrete command message for DCDC ON/OFF
tom91 wrote: Thu Jul 31, 2025 9:54 pm Do you know where the DCDC is turned on via CAN?

Possibly the main HV system relay bit should toggle. in 0x1D4
I've been struggling to find a right CAN log from a leaf with startup sequence logged. Then I had troubles to read an EV CAN Log from a 2016 Leaf to check what the VCU sends and how the PDM/OBC responds.
I'm not sure where I found these two PCAP format logs, but they have the clues needed. Savvycan doesn't open this and Wireshark doesn't interpret the messages with CAN DBC, so this was a bit of manual work. I've been looking at this with goggles that something yet unidentified, but documented MUST contain the control command...

Here we go:

In x1F2 there is this unknown bit in byte 7
image.png
image.png (5.98 KiB) Viewed 1392 times
I stared the hex values in Wireshark and saw that x390 byte 3 has values B2, B3 or 13 when DCDC is on
image.png
image.png (5.84 KiB) Viewed 1392 times
This information was also "told" in this google sheets Dala has linked in his LeafLogs
image.png
So if x1F2 byte 7 starts with 8, unknown bit 7 is 1. If it starts with 0, bit 7 is 0. -->
Cue filtered log after learning how to use Wireshark field modifiers
Looks like there is approx 400ms delay/buffer before DCDC turns on after the start of byte 7 in x1F2 changes from 0 to 8
2016-24kWh_chg_tim_override_trace_filtered.png
So this is also what I want to test out tomorrow 8-)

Re: Zombieverter developemental SW version testing on full Leaf setup

Posted: Tue Aug 05, 2025 8:32 pm
by J0hannes
So I did some testing on the weekend. Params attached, though I made my settings default in paramprj in my branch to reduce fudge factor of forgetting the param save to flash.

A side note, LEDs indicating which contactors get pulled is a really good debuging feature :D


Can't identify which version on, but there seems to be a bug in the precharge exit condition. This first test was done without HV, but shows that precharge gets skipped. This is probably what had killed my contactors.
030825_233TH_Prech_skip.csv
(630.33 KiB) Downloaded 23 times
233TH_Screenshot 2025-08-03 154613.png


I modified and then got functioning precharge
030825_233TH_Prech_fail.csv
(863.19 KiB) Downloaded 22 times
233TH_prech_fail_Screenshot 2025-08-03 162240.png


Several iterations and various tweaking later, I still couldn't get the suspect DCDC ON command to do anything else but get the DCDC in failsafe mode?
Screenshot 2025-08-03 145119.png
Then went back some steps and started to look at precharge timing as it seems to be way too slow to pull the contactors before the DCDC kicks in.
Reduced precharge min time and the rlydly so the contactor pulling sequence (precharge) is complete in less than 1200ms which seems to be some magic time after which the DCDC starts chooching and inverter voltage sags if HV main+ is not pulled in time.
2.34.5JN_Success_Screenshot 2025-08-03 174342.png
030825_234.5JN_Prech_success_UDC_OK.csv
(826.47 KiB) Downloaded 25 times
030825_234.5JN_Prech_success_again_also_chg.csv
(851.91 KiB) Downloaded 21 times