Stand alone OBC/PDModule EV system Can 2015 - SOLVED

My Nissan Leaf Forum

Help Support My Nissan Leaf Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Finally a major breakthru, it's amazing to think it's so simple after all the work I have done.

I am on the verge of setting up the spare PDM I have to utilize the leaf pack in the back of my van. Hooking the battery up directly of course would solve a number of issues. Thanks for the link to the code and THANK YOU Damien for jumping in here. I will report back on my success to run "stand alone"
Peter
 
Sorry IonTurkey been off this topic some time working on decoding other stuff
Looking at charging again now, both for the Gen1 and Gen2 solutions.

IonTurkey said:
I'm planning to reproduce this code to get the charger going (on a gen2). Did you manage to get it working? I noticed that the sequence control for ID4 message might have an error. According to your annotations the cycler should be {0x87, 0xc7,0x07, 0x47}, but your code is {0x87, 0xc7,0x07, 0x45 }. Do you know which one is correct?


This what been up to since
https://www.youtube.com/watch?app=desktop&v=eQENOgw6AUQ

Plus this
https://www.youtube.com/watch?v=eT_unu_jIXc

And if we did not have a global chip shortage I would have a EV controller out on market now
 
Give the Gen2 Charger solutions now working does any one actual need the Gen1 (2001-2012) code ?
 
Great work on the Rover and the Boat motor--you've been busy during the covid pandemic.
 
nlspace said:
Great work on the Rover and the Boat motor--you've been busy during the covid pandemic.

Got locked up at home, its where I had most of my project so had time to play.
Was like a kid that got lock in their room with all their favorite toys
 
IonTurkey said:
I have now implemented the messages:
10ms:
* 1d4,
* 11a,
* 1db,
(for charge mode only):
* 1dc,
* 1f2
100ms:
* 50b
* 55b
* 59e
* 5bc
Any now, my whole nissan stack (motor/inverter/charger) is now working using only CAN =)

See you moved to Gen2 and got working, well done.
Im setting up now to complete charging code, have the Nissan Battery and Gen2 stack
Own controller also DUE based
 
Dala said:
Here's a pinout for the ZE1 2018+ PDM.
Note that they connector is now named F18 instead of F23!

This is the pin out for Plug F23 for older Gen2
uc


IonTurkey said:
Need to connect the EVSE connection signal to pin 29
and EVSE communication (PWM) to pin 30.
Otherwise my EVSE will not close its contacts.


Image above has plug E25 that need to connect back to for charger as IonTurnKey mentioned
 
Just an update, Not got the Charger to work yet
Working through setup and checking wires all connected

Have a Inverter, and battery connected.
So only going to try and simulate the VCM messages

100ms 50B VCM
10ms 11A VCM
10ms 1DC VCM
10ms 1F2 VCM

Going to log a Gen2 car again so have something to compare with.
Then I can log my message sent also till have all needed and turns on
 
I have not had any success with this method yet either. That said I have not done a deep dive yet I just ran the sequence as indicated in Jack Bauers open inverter code. I am running it on the arduino due that I have been doing this work on. I am setting up Muxans Man in the middle device and running the sequence on itI. I started doing the coding but ran out of time. I am suspicious there is an unaccounted for wake up sequence on the Nissan VCM and on the open source inverter project that we are missing for a "stand alone" charger. I have a Nissan VCM and am thinking of connecting it to my system just see what happens. I have been having to catch up on other getting ready for winter chores here and hope to get back to the leaf charger shortly. Nice to have somebody else following this lead and confirming that it's not as easy as it looks. By the way my charger setup is in a working leaf system installed in my Kubvan. So I know all the wiring is right, the charger is just not getting the right commands yet. I did buy an Olimex STM32 development board thinking I might be able to get the open inverter code running on it and see if my suspicion of something else coming from the VCM is true. Dala has mentioned wake up commands to me before but my implementation did not work. I trust you have seen his excellent description of the CRC codes and more on his channel. The good news is however that it can be done.

By the way TrueSoln, brilliant work on the outboard.
 
49thdiver said:
I have not had any success with this method yet either. That said I have not done a deep dive yet I just ran the sequence as indicated in Jack Bauers open inverter code. I am running it on the arduino due that I have been doing this work on. I am setting up Muxans Man in the middle device and running the sequence on itI. I started doing the coding but ran out of time. I am suspicious there is an unaccounted for wake up sequence on the Nissan VCM and on the open source inverter project that we are missing for a "stand alone" charger. I have a Nissan VCM and am thinking of connecting it to my system just see what happens. I have been having to catch up on other getting ready for winter chores here and hope to get back to the leaf charger shortly. Nice to have somebody else following this lead and confirming that it's not as easy as it looks. By the way my charger setup is in a working leaf system installed in my Kubvan. So I know all the wiring is right, the charger is just not getting the right commands yet. I did buy an Olimex STM32 development board thinking I might be able to get the open inverter code running on it and see if my suspicion of something else coming from the VCM is true. Dala has mentioned wake up commands to me before but my implementation did not work. I trust you have seen his excellent description of the CRC codes and more on his channel. The good news is however that it can be done.

By the way TrueSoln, brilliant work on the outboard.

Hello, I am also trying to Awake the SOC on gen 2. Nothing is successful yet only running the 50B. 50C and 1F2 msgs but no hope till now. I am also following Dala suggestions. But I feel I am so near to get it working
 
IonTurkey said:
I have now implemented the messages:
10ms:
* 1d4,
* 11a,
* 1db,
(for charge mode only):
* 1dc,
* 1f2
100ms:
* 50b
* 55b
* 59e
* 5bc

Any now, my whole nissan stack (motor/inverter/charger) is now working using only CAN =)


@IonTurkey when you got you stack to work, does the charger actual make a noise from inside the Stack from PDM/Charger section ?

And would you be willing to share the patterns sending for the messages so able to compare our outputs
 
Have just been logging data from my car
logged the EV line with car off , just plugged in charger to front of car so ignition was never turned on.

These messages will come from the PDM/Charger unit so not changing them
PDM ID #390
PDM ID #393
PDM ID #679 - Lots people say its when charger plugged in, but seem to mean that powered up PDM

The Inverter #1DA I cant change it connected to my stack so will not simulate that and let it do it things.
This is what I got from car logs if want to simulate it for a stand alone unit
INVERTER #1da BE 40 18 0 0 1 0 7E
INVERTER #1da BE 0 18 0 0 1 1 59
INVERTER #1da BE 0 18 0 0 1 2 53
INVERTER #1da BE 40 18 0 0 1 3 74


Has been said that need 1DB, 55B,5BC and 59E from battery
I could not see any 59E when did my logs
And 55B and 5BC only showed up near end of logs when I pulled the plug out.

So think may only need 1DB and this sequence I seen on mine, which give back charge state of battery
HVBAT #1db 1 20 BE AB 2B 0 0 37
HVBAT #1db 1 20 BE AB 2B 0 1 B2
HVBAT #1db 1 20 BE AB 2B 0 2 B8
HVBAT #1db 1 20 BE AB 2B 0 3 3D


Then is the messages that came from the VCM 50B, 11A, 1F2, 1DC
Where don't think 1DC needed, as only seen it when I had charger plugged in and was not powered up
Either way this is what I logged
VCM #50b 0 0 0 C0 0 0 0

VCM #11a 1 80 0 AA C0 0 0 60
VCM #11a 1 80 0 55 0 0 1 76
VCM #11a 1 80 0 55 40 0 2 BB
VCM #11a 1 80 0 AA 80 0 3 AD

VCM #1f2 30 73 20 B4 0 3C 0 87
VCM #1f2 30 73 20 B4 0 3C 1 88
VCM #1f2 30 73 20 B4 0 3C 2 89
VCM #1f2 30 73 20 B4 0 3C 3 8A


VCM #1DC 6E 4 CF FD 1 10 E1 C1
VCM #1DC 6E 4 CF FD 5 2C C6 CF
VCM #1DC 6E 4 CF FD 8 C0 C3 DB
VCM #1DC 6E 4 CF FD C DC DC 4A

They all just sample of the patterns I found
Will try again tomorrow to update my code to direct inject these values

Else im gonna lift my car up, push this battery under it and swap the HV lead over to charge it ;-)
As just want a charged battery to try my boat out.
 
Think I am getting close
Can hear the relay in the home charger clicking

Going to check what wiring correct that power to wires needed

Any one know is their a buzzer or something in the PDB/OBC that will make a tone when its working ?

And what pins do they power up ?
 
49thdiver said:
just getting my setup ready again, will be able to confirm your results ;)

@49 Diver, Hurry up, your slow up me getting this thing on the boat ;-)
It at 50 SOC so will put on soon either way if cant get it going.

I'm just checking all my message and logic again, Will update if get going.
 
PDM #390: AC Voltage Detected: NoSignalQC
BMU 1DB: Voltage 375; KW 0; SOC 42;

PDM #390: AC Voltage Detected: 200V
BMU 1DB: Voltage 375; KW 6; SOC 48;

That's from decoding the 390 and 1DB messages
Can see SOC gone from 42 to 48 on leaf battery plugged in
And #390 message showing detected 200V input

I cant leave charging two long as no pluming setup and don't want to cook the inverter

Need to check logic for 0x55a Inverter Message
It has Temp readings for and got these values
Motor: 17 'c
Inverter:15 'c
IGBT:16'c
IGBT DRIVE:17'c
 
This is the messages that I used to get my Gen2 Leaf PDM/OBC to start charging a battery
HV battery leads where connected to the charger, but HV battery message where not passed on
And you can use the Inverter messages to know when working if you decode them.

You get messages 390 and 393 from PDM/OBC
Will get something like the second line when its working
From PDM/OBC
390 4 0 0 2 0 80 0 A
390 4 10 0 B3 0 88 E 1E

Simulated VCM Messages
50b 0 0 6 C0 0 0 0

11a 1 80 0 AA C0 0 0 60
11a 1 80 0 55 0 0 1 76
11a 1 80 0 55 40 0 2 BB
11a 1 80 0 AA 80 0 3 AD

1f2 30 A0 20 AC 0 3C 0 80
1f2 30 A0 20 AC 0 3C 1 5
1f2 30 A0 20 AC 0 3C 2 F
1f2 30 A0 20 AC 0 3C 3 8A

1DC 6E A 5 D5 0 0 0 2B
1DC 6E A 5 D5 0 0 1 AE
1DC 6E A 5 D5 0 0 2 A4
1DC 6E A 5 D5 0 0 3 21

This one also simulated VCM, Inverter message note the E0 is important
1d4 F7 7 0 0 87 44 E0 97
1d4 F7 7 0 0 C7 44 E0 50
1d4 F7 7 0 0 7 44 E0 9C
1d4 F7 7 0 0 47 44 E0 5B

Simulated HVBAT Message
1db 1 20 BE AB 2B 0 0 37
1db 1 20 BE AB 2B 0 1 B2
1db 1 20 BE AB 2B 0 2 B8
1db 1 20 BE AB 2B 0 3 3D

55b A4 40 AA 0 DF C0 0 76
55b A4 40 AA 0 DF C0 1 F3
55b A4 40 AA 0 DF C0 2 F9
55b A4 40 AA 0 DF C0 3 7C

5bc 3D 80 F0 64 B0 1 0 32
 
Back
Top